jest-preset-angular 16.2.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/config/ng-jest-config.d.ts +1 -5
- package/build/config/ng-jest-config.js +0 -13
- package/build/ng-jest-transformer.js +1 -1
- package/build/presets/index.d.ts +14 -6
- package/build/serializers/ng-snapshot.js +1 -1
- package/build/transformers/jit_transform.js +23 -23
- package/package.json +41 -44
- package/setup-env/zone/index.js +18 -42
- package/setup-env/zone/index.mjs +18 -39
- package/setup-env/zoneless/index.js +17 -45
- package/setup-env/zoneless/index.mjs +17 -44
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";var XS=Object.create;var Li=Object.defineProperty,YS=Object.defineProperties,QS=Object.getOwnPropertyDescriptor,JS=Object.getOwnPropertyDescriptors,ZS=Object.getOwnPropertyNames,qh=Object.getOwnPropertySymbols,eE=Object.getPrototypeOf,Wh=Object.prototype.hasOwnProperty,tE=Object.prototype.propertyIsEnumerable;var vc=(t,e,n)=>e in t?Li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,x=(t,e)=>{for(var n in e||(e={}))Wh.call(e,n)&&vc(t,n,e[n]);if(qh)for(var n of qh(e))tE.call(e,n)&&vc(t,n,e[n]);return t},he=(t,e)=>YS(t,JS(e));var nE=(t,e)=>()=>(t&&(e=t(t=0)),e);var Y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rE=(t,e)=>{for(var n in e)Li(t,n,{get:e[n],enumerable:!0})},jh=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ZS(e))!Wh.call(t,s)&&s!==n&&Li(t,s,{get:()=>e[s],enumerable:!(r=QS(e,s))||r.enumerable});return t};var N=(t,e,n)=>(n=t!=null?XS(eE(t)):{},jh(e||!t||!t.__esModule?Li(n,"default",{value:t,enumerable:!0}):n,t)),sE=t=>jh(Li({},"__esModule",{value:!0}),t);var l=(t,e,n)=>vc(t,typeof e!="symbol"?e+"":e,n);var O,C=nE(()=>{"use strict";O=require("url").pathToFileURL(__filename)});var ki=Y((n$,by)=>{"use strict";C();var J0="2.0.0",Z0=Number.MAX_SAFE_INTEGER||9007199254740991,eR=16,tR=250,nR=["major","premajor","minor","preminor","patch","prepatch","prerelease"];by.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:eR,MAX_SAFE_BUILD_LENGTH:tR,MAX_SAFE_INTEGER:Z0,RELEASE_TYPES:nR,SEMVER_SPEC_VERSION:J0,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var pa=Y((s$,ky)=>{"use strict";C();var rR=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};ky.exports=rR});var _i=Y(($n,_y)=>{"use strict";C();var{MAX_SAFE_COMPONENT_LENGTH:ph,MAX_SAFE_BUILD_LENGTH:sR,MAX_LENGTH:iR}=ki(),oR=pa();$n=_y.exports={};var aR=$n.re=[],lR=$n.safeRe=[],$=$n.src=[],cR=$n.safeSrc=[],B=$n.t={},uR=0,hh="[a-zA-Z0-9-]",pR=[["\\s",1],["\\d",iR],[hh,sR]],hR=t=>{for(let[e,n]of pR)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},te=(t,e,n)=>{let r=hR(e),s=uR++;oR(t,s,e),B[t]=s,$[s]=e,cR[s]=r,aR[s]=new RegExp(e,n?"g":void 0),lR[s]=new RegExp(r,n?"g":void 0)};te("NUMERICIDENTIFIER","0|[1-9]\\d*");te("NUMERICIDENTIFIERLOOSE","\\d+");te("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${hh}*`);te("MAINVERSION",`(${$[B.NUMERICIDENTIFIER]})\\.(${$[B.NUMERICIDENTIFIER]})\\.(${$[B.NUMERICIDENTIFIER]})`);te("MAINVERSIONLOOSE",`(${$[B.NUMERICIDENTIFIERLOOSE]})\\.(${$[B.NUMERICIDENTIFIERLOOSE]})\\.(${$[B.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASEIDENTIFIER",`(?:${$[B.NONNUMERICIDENTIFIER]}|${$[B.NUMERICIDENTIFIER]})`);te("PRERELEASEIDENTIFIERLOOSE",`(?:${$[B.NONNUMERICIDENTIFIER]}|${$[B.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASE",`(?:-(${$[B.PRERELEASEIDENTIFIER]}(?:\\.${$[B.PRERELEASEIDENTIFIER]})*))`);te("PRERELEASELOOSE",`(?:-?(${$[B.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[B.PRERELEASEIDENTIFIERLOOSE]})*))`);te("BUILDIDENTIFIER",`${hh}+`);te("BUILD",`(?:\\+(${$[B.BUILDIDENTIFIER]}(?:\\.${$[B.BUILDIDENTIFIER]})*))`);te("FULLPLAIN",`v?${$[B.MAINVERSION]}${$[B.PRERELEASE]}?${$[B.BUILD]}?`);te("FULL",`^${$[B.FULLPLAIN]}$`);te("LOOSEPLAIN",`[v=\\s]*${$[B.MAINVERSIONLOOSE]}${$[B.PRERELEASELOOSE]}?${$[B.BUILD]}?`);te("LOOSE",`^${$[B.LOOSEPLAIN]}$`);te("GTLT","((?:<|>)?=?)");te("XRANGEIDENTIFIERLOOSE",`${$[B.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);te("XRANGEIDENTIFIER",`${$[B.NUMERICIDENTIFIER]}|x|X|\\*`);te("XRANGEPLAIN",`[v=\\s]*(${$[B.XRANGEIDENTIFIER]})(?:\\.(${$[B.XRANGEIDENTIFIER]})(?:\\.(${$[B.XRANGEIDENTIFIER]})(?:${$[B.PRERELEASE]})?${$[B.BUILD]}?)?)?`);te("XRANGEPLAINLOOSE",`[v=\\s]*(${$[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[B.XRANGEIDENTIFIERLOOSE]})(?:${$[B.PRERELEASELOOSE]})?${$[B.BUILD]}?)?)?`);te("XRANGE",`^${$[B.GTLT]}\\s*${$[B.XRANGEPLAIN]}$`);te("XRANGELOOSE",`^${$[B.GTLT]}\\s*${$[B.XRANGEPLAINLOOSE]}$`);te("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ph}})(?:\\.(\\d{1,${ph}}))?(?:\\.(\\d{1,${ph}}))?`);te("COERCE",`${$[B.COERCEPLAIN]}(?:$|[^\\d])`);te("COERCEFULL",$[B.COERCEPLAIN]+`(?:${$[B.PRERELEASE]})?(?:${$[B.BUILD]})?(?:$|[^\\d])`);te("COERCERTL",$[B.COERCE],!0);te("COERCERTLFULL",$[B.COERCEFULL],!0);te("LONETILDE","(?:~>?)");te("TILDETRIM",`(\\s*)${$[B.LONETILDE]}\\s+`,!0);$n.tildeTrimReplace="$1~";te("TILDE",`^${$[B.LONETILDE]}${$[B.XRANGEPLAIN]}$`);te("TILDELOOSE",`^${$[B.LONETILDE]}${$[B.XRANGEPLAINLOOSE]}$`);te("LONECARET","(?:\\^)");te("CARETTRIM",`(\\s*)${$[B.LONECARET]}\\s+`,!0);$n.caretTrimReplace="$1^";te("CARET",`^${$[B.LONECARET]}${$[B.XRANGEPLAIN]}$`);te("CARETLOOSE",`^${$[B.LONECARET]}${$[B.XRANGEPLAINLOOSE]}$`);te("COMPARATORLOOSE",`^${$[B.GTLT]}\\s*(${$[B.LOOSEPLAIN]})$|^$`);te("COMPARATOR",`^${$[B.GTLT]}\\s*(${$[B.FULLPLAIN]})$|^$`);te("COMPARATORTRIM",`(\\s*)${$[B.GTLT]}\\s*(${$[B.LOOSEPLAIN]}|${$[B.XRANGEPLAIN]})`,!0);$n.comparatorTrimReplace="$1$2$3";te("HYPHENRANGE",`^\\s*(${$[B.XRANGEPLAIN]})\\s+-\\s+(${$[B.XRANGEPLAIN]})\\s*$`);te("HYPHENRANGELOOSE",`^\\s*(${$[B.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[B.XRANGEPLAINLOOSE]})\\s*$`);te("STAR","(<|>)?=?\\s*\\*");te("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");te("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ic=Y((a$,Ry)=>{"use strict";C();var fR=Object.freeze({loose:!0}),dR=Object.freeze({}),mR=t=>t?typeof t!="object"?fR:t:dR;Ry.exports=mR});var fh=Y((c$,My)=>{"use strict";C();var Py=/^[0-9]+$/,Ly=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let n=Py.test(t),r=Py.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},gR=(t,e)=>Ly(e,t);My.exports={compareIdentifiers:Ly,rcompareIdentifiers:gR}});var ot=Y((p$,Fy)=>{"use strict";C();var oc=pa(),{MAX_LENGTH:Oy,MAX_SAFE_INTEGER:ac}=ki(),{safeRe:lc,t:cc}=_i(),yR=ic(),{compareIdentifiers:dh}=fh(),vR=(t,e)=>{let n=e.split(".");if(n.length>t.length)return!1;for(let r=0;r<n.length;r++)if(dh(t[r],n[r])!==0)return!1;return!0},mh=class t{constructor(e,n){if(n=yR(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>Oy)throw new TypeError(`version is longer than ${Oy} characters`);oc("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?lc[cc.LOOSE]:lc[cc.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>ac||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ac||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ac||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<ac)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(oc("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(oc("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 dh(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(oc("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 dh(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?lc[cc.PRERELEASELOOSE]:lc[cc.PRERELEASE]);if(!s||s[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];if(r===!1&&(i=[n]),vR(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Fy.exports=mh});var Kr=Y((f$,By)=>{"use strict";C();var $y=ot(),SR=(t,e,n=!1)=>{if(t instanceof $y)return t;try{return new $y(t,e)}catch(r){if(!n)return null;throw r}};By.exports=SR});var Vy=Y((m$,Uy)=>{"use strict";C();var ER=Kr(),wR=(t,e)=>{let n=ER(t,e);return n?n.version:null};Uy.exports=wR});var Hy=Y((y$,Gy)=>{"use strict";C();var TR=Kr(),xR=(t,e)=>{let n=TR(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};Gy.exports=xR});var jy=Y((S$,Wy)=>{"use strict";C();var qy=ot(),CR=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new qy(t instanceof qy?t.version:t,n).inc(e,r,s).version}catch(i){return null}};Wy.exports=CR});var Xy=Y((w$,Ky)=>{"use strict";C();var zy=Kr(),NR=(t,e)=>{let n=zy(t,null,!0),r=zy(e,null,!0),s=n.compare(r);if(s===0)return null;let i=s>0,o=i?n:r,a=i?r:n,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let h=c?"pre":"";return n.major!==r.major?h+"major":n.minor!==r.minor?h+"minor":n.patch!==r.patch?h+"patch":"prerelease"};Ky.exports=NR});var Qy=Y((x$,Yy)=>{"use strict";C();var IR=ot(),AR=(t,e)=>new IR(t,e).major;Yy.exports=AR});var Zy=Y((N$,Jy)=>{"use strict";C();var DR=ot(),bR=(t,e)=>new DR(t,e).minor;Jy.exports=bR});var tv=Y((A$,ev)=>{"use strict";C();var kR=ot(),_R=(t,e)=>new kR(t,e).patch;ev.exports=_R});var rv=Y((b$,nv)=>{"use strict";C();var RR=Kr(),PR=(t,e)=>{let n=RR(t,e);return n&&n.prerelease.length?n.prerelease:null};nv.exports=PR});var ln=Y((_$,iv)=>{"use strict";C();var sv=ot(),LR=(t,e,n)=>new sv(t,n).compare(new sv(e,n));iv.exports=LR});var av=Y((P$,ov)=>{"use strict";C();var MR=ln(),OR=(t,e,n)=>MR(e,t,n);ov.exports=OR});var cv=Y((M$,lv)=>{"use strict";C();var FR=ln(),$R=(t,e)=>FR(t,e,!0);lv.exports=$R});var uc=Y((F$,pv)=>{"use strict";C();var uv=ot(),BR=(t,e,n)=>{let r=new uv(t,n),s=new uv(e,n);return r.compare(s)||r.compareBuild(s)};pv.exports=BR});var fv=Y((B$,hv)=>{"use strict";C();var UR=uc(),VR=(t,e)=>t.sort((n,r)=>UR(n,r,e));hv.exports=VR});var mv=Y((V$,dv)=>{"use strict";C();var GR=uc(),HR=(t,e)=>t.sort((n,r)=>GR(r,n,e));dv.exports=HR});var ha=Y((H$,gv)=>{"use strict";C();var qR=ln(),WR=(t,e,n)=>qR(t,e,n)>0;gv.exports=WR});var pc=Y((W$,yv)=>{"use strict";C();var jR=ln(),zR=(t,e,n)=>jR(t,e,n)<0;yv.exports=zR});var gh=Y((z$,vv)=>{"use strict";C();var KR=ln(),XR=(t,e,n)=>KR(t,e,n)===0;vv.exports=XR});var yh=Y((X$,Sv)=>{"use strict";C();var YR=ln(),QR=(t,e,n)=>YR(t,e,n)!==0;Sv.exports=QR});var hc=Y((Q$,Ev)=>{"use strict";C();var JR=ln(),ZR=(t,e,n)=>JR(t,e,n)>=0;Ev.exports=ZR});var fc=Y((Z$,wv)=>{"use strict";C();var eP=ln(),tP=(t,e,n)=>eP(t,e,n)<=0;wv.exports=tP});var vh=Y((tB,Tv)=>{"use strict";C();var nP=gh(),rP=yh(),sP=ha(),iP=hc(),oP=pc(),aP=fc(),lP=(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 nP(t,n,r);case"!=":return rP(t,n,r);case">":return sP(t,n,r);case">=":return iP(t,n,r);case"<":return oP(t,n,r);case"<=":return aP(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};Tv.exports=lP});var Cv=Y((rB,xv)=>{"use strict";C();var cP=ot(),uP=Kr(),{safeRe:dc,t:mc}=_i(),pP=(t,e)=>{if(t instanceof cP)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?dc[mc.COERCEFULL]:dc[mc.COERCE]);else{let c=e.includePrerelease?dc[mc.COERCERTLFULL]:dc[mc.COERCERTL],u;for(;(u=c.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(n===null)return null;let r=n[2],s=n[3]||"0",i=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",a=e.includePrerelease&&n[6]?`+${n[6]}`:"";return uP(`${r}.${s}.${i}${o}${a}`,e)};xv.exports=pP});var Iv=Y((iB,Nv)=>{"use strict";C();var hP=Kr(),fP=ki(),dP=ot(),mP=(t,e,n)=>{if(!fP.RELEASE_TYPES.includes(e))return null;let r=gP(t,n);return r&&yP(r,e)},gP=(t,e)=>{let n=t instanceof dP?t.version:t;return hP(n,e)},yP=(t,e)=>{if(vP(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},vP=t=>t.startsWith("pre");Nv.exports=mP});var Dv=Y((aB,Av)=>{"use strict";C();var Sh=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,n)}return this}};Av.exports=Sh});var cn=Y((cB,Rv)=>{"use strict";C();var SP=/\s+/g,Eh=class t{constructor(e,n){if(n=wP(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof wh)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(SP," "),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=>!kv(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&&kP(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let n=this.set[e];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(bP,"");let r=((this.options.includePrerelease&&AP)|(this.options.loose&&DP))+":"+e,s=bv.get(r);if(s)return s;let i=this.options.loose,o=i?At[at.HYPHENRANGELOOSE]:At[at.HYPHENRANGE];e=e.replace(o,UP(this.options.includePrerelease)),Ee("hyphen replace",e),e=e.replace(At[at.COMPARATORTRIM],CP),Ee("comparator trim",e),e=e.replace(At[at.TILDETRIM],NP),Ee("tilde trim",e),e=e.replace(At[at.CARETTRIM],IP),Ee("caret trim",e);let a=e.split(" ").map(d=>_P(d,this.options)).join(" ").split(/\s+/).map(d=>BP(d,this.options));i&&(a=a.filter(d=>(Ee("loose invalid filter",d,this.options),!!d.match(At[at.COMPARATORLOOSE])))),Ee("range list",a);let c=new Map,u=a.map(d=>new wh(d,this.options));for(let d of u){if(kv(d))return[d];c.set(d.value,d)}c.size>1&&c.has("")&&c.delete("");let h=[...c.values()];return bv.set(r,h),h}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>_v(r,n)&&e.set.some(s=>_v(s,n)&&r.every(i=>s.every(o=>i.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new TP(e,this.options)}catch(n){return!1}for(let n=0;n<this.set.length;n++)if(VP(this.set[n],e,this.options))return!0;return!1}};Rv.exports=Eh;var EP=Dv(),bv=new EP,wP=ic(),wh=fa(),Ee=pa(),TP=ot(),{safeRe:At,src:xP,t:at,comparatorTrimReplace:CP,tildeTrimReplace:NP,caretTrimReplace:IP}=_i(),{FLAG_INCLUDE_PRERELEASE:AP,FLAG_LOOSE:DP}=ki(),bP=new RegExp(xP[at.BUILD],"g"),kv=t=>t.value==="<0.0.0-0",kP=t=>t.value==="",_v=(t,e)=>{let n=!0,r=t.slice(),s=r.pop();for(;n&&r.length;)n=r.every(i=>s.intersects(i,e)),s=r.pop();return n},_P=(t,e)=>(t=t.replace(At[at.BUILD],""),Ee("comp",t,e),t=LP(t,e),Ee("caret",t),t=RP(t,e),Ee("tildes",t),t=OP(t,e),Ee("xrange",t),t=$P(t,e),Ee("stars",t),t),Dt=t=>!t||t.toLowerCase()==="x"||t==="*",RP=(t,e)=>t.trim().split(/\s+/).map(n=>PP(n,e)).join(" "),PP=(t,e)=>{let n=e.loose?At[at.TILDELOOSE]:At[at.TILDE];return t.replace(n,(r,s,i,o,a)=>{Ee("tilde",t,r,s,i,o,a);let c;return Dt(s)?c="":Dt(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:Dt(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(Ee("replaceTilde pr",a),c=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,Ee("tilde return",c),c})},LP=(t,e)=>t.trim().split(/\s+/).map(n=>MP(n,e)).join(" "),MP=(t,e)=>{Ee("caret",t,e);let n=e.loose?At[at.CARETLOOSE]:At[at.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,a,c)=>{Ee("caret",t,s,i,o,a,c);let u;return Dt(i)?u="":Dt(o)?u=`>=${i}.0.0${r} <${+i+1}.0.0-0`:Dt(a)?i==="0"?u=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:c?(Ee("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(Ee("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a}${r} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),Ee("caret return",u),u})},OP=(t,e)=>(Ee("replaceXRanges",t,e),t.split(/\s+/).map(n=>FP(n,e)).join(" ")),FP=(t,e)=>{t=t.trim();let n=e.loose?At[at.XRANGELOOSE]:At[at.XRANGE];return t.replace(n,(r,s,i,o,a,c)=>{Ee("xRange",t,r,s,i,o,a,c);let u=Dt(i),h=u||Dt(o),d=h||Dt(a),p=d;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&p?(h&&(o=0),a=0,s===">"?(s=">=",h?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",h?i=+i+1:o=+o+1),s==="<"&&(c="-0"),r=`${s+i}.${o}.${a}${c}`):h?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Ee("xRange return",r),r})},$P=(t,e)=>(Ee("replaceStars",t,e),t.trim().replace(At[at.STAR],"")),BP=(t,e)=>(Ee("replaceGTE0",t,e),t.trim().replace(At[e.includePrerelease?at.GTE0PRE:at.GTE0],"")),UP=t=>(e,n,r,s,i,o,a,c,u,h,d,p)=>(Dt(r)?n="":Dt(s)?n=`>=${r}.0.0${t?"-0":""}`:Dt(i)?n=`>=${r}.${s}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Dt(u)?c="":Dt(h)?c=`<${+u+1}.0.0-0`:Dt(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()),VP=(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(Ee(t[r].semver),t[r].semver!==wh.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 fa=Y((pB,$v)=>{"use strict";C();var da=Symbol("SemVer ANY"),Ch=class t{static get ANY(){return da}constructor(e,n){if(n=Pv(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),xh("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===da?this.value="":this.value=this.operator+this.semver.version,xh("comp",this)}parse(e){let n=this.options.loose?Lv[Mv.COMPARATORLOOSE]:Lv[Mv.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new Ov(r[2],this.options.loose):this.semver=da}toString(){return this.value}test(e){if(xh("Comparator.test",e,this.options.loose),this.semver===da||e===da)return!0;if(typeof e=="string")try{e=new Ov(e,this.options)}catch(n){return!1}return Th(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 Fv(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Fv(this.value,n).test(e.semver):(n=Pv(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("=")||Th(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Th(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};$v.exports=Ch;var Pv=ic(),{safeRe:Lv,t:Mv}=_i(),Th=vh(),xh=pa(),Ov=ot(),Fv=cn()});var ma=Y((fB,Bv)=>{"use strict";C();var GP=cn(),HP=(t,e,n)=>{try{e=new GP(e,n)}catch(r){return!1}return e.test(t)};Bv.exports=HP});var Vv=Y((mB,Uv)=>{"use strict";C();var qP=cn(),WP=(t,e)=>new qP(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));Uv.exports=WP});var Hv=Y((yB,Gv)=>{"use strict";C();var jP=ot(),zP=cn(),KP=(t,e,n)=>{let r=null,s=null,i=null;try{i=new zP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===-1)&&(r=o,s=new jP(r,n))}),r};Gv.exports=KP});var Wv=Y((SB,qv)=>{"use strict";C();var XP=ot(),YP=cn(),QP=(t,e,n)=>{let r=null,s=null,i=null;try{i=new YP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===1)&&(r=o,s=new XP(r,n))}),r};qv.exports=QP});var Kv=Y((wB,zv)=>{"use strict";C();var Nh=ot(),JP=cn(),jv=ha(),ZP=(t,e)=>{t=new JP(t,e);let n=new Nh("0.0.0");if(t.test(n)||(n=new Nh("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r<t.set.length;++r){let s=t.set[r],i=null;s.forEach(o=>{let a=new Nh(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||jv(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||jv(n,i))&&(n=i)}return n&&t.test(n)?n:null};zv.exports=ZP});var Yv=Y((xB,Xv)=>{"use strict";C();var eL=cn(),tL=(t,e)=>{try{return new eL(t,e).range||"*"}catch(n){return null}};Xv.exports=tL});var gc=Y((NB,eS)=>{"use strict";C();var nL=ot(),Zv=fa(),{ANY:rL}=Zv,sL=cn(),iL=ma(),Qv=ha(),Jv=pc(),oL=fc(),aL=hc(),lL=(t,e,n,r)=>{t=new nL(t,r),e=new sL(e,r);let s,i,o,a,c;switch(n){case">":s=Qv,i=oL,o=Jv,a=">",c=">=";break;case"<":s=Jv,i=aL,o=Qv,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(iL(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===rL&&(g=new Zv(">=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===a||d.operator===c||(!p.operator||p.operator===a)&&i(t,p.semver))return!1;if(p.operator===c&&o(t,p.semver))return!1}return!0};eS.exports=lL});var nS=Y((AB,tS)=>{"use strict";C();var cL=gc(),uL=(t,e,n)=>cL(t,e,">",n);tS.exports=uL});var sS=Y((bB,rS)=>{"use strict";C();var pL=gc(),hL=(t,e,n)=>pL(t,e,"<",n);rS.exports=hL});var aS=Y((_B,oS)=>{"use strict";C();var iS=cn(),fL=(t,e,n)=>(t=new iS(t,n),e=new iS(e,n),t.intersects(e,n));oS.exports=fL});var cS=Y((PB,lS)=>{"use strict";C();var dL=ma(),mL=ln();lS.exports=(t,e,n)=>{let r=[],s=null,i=null,o=t.sort((h,d)=>mL(h,d,n));for(let h of o)dL(h,e,n)?(i=h,s||(s=h)):(i&&r.push([s,i]),i=null,s=null);s&&r.push([s,null]);let a=[];for(let[h,d]of r)h===d?a.push(h):!d&&h===o[0]?a.push("*"):d?h===o[0]?a.push(`<=${d}`):a.push(`${h} - ${d}`):a.push(`>=${h}`);let c=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var mS=Y((MB,dS)=>{"use strict";C();var uS=cn(),Dh=fa(),{ANY:Ih}=Dh,Ah=ma(),bh=ln(),gL=(t,e,n={})=>{if(t===e)return!0;t=new uS(t,n),e=new uS(e,n);let r=!1;e:for(let s of t.set){for(let i of e.set){let o=vL(s,i,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},yL=[new Dh(">=0.0.0-0")],pS=[new Dh(">=0.0.0")],vL=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Ih){if(e.length===1&&e[0].semver===Ih)return!0;n.includePrerelease?t=yL:t=pS}if(e.length===1&&e[0].semver===Ih){if(n.includePrerelease)return!0;e=pS}let r=new Set,s,i;for(let g of t)g.operator===">"||g.operator===">="?s=hS(s,g,n):g.operator==="<"||g.operator==="<="?i=fS(i,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(s&&i){if(o=bh(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&&!Ah(g,String(s),n)||i&&!Ah(g,String(i),n))return null;for(let v of e)if(!Ah(g,String(v),n))return!1;return!0}let a,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(a=hS(s,g,n),a===g&&a!==s)return!1}else if(s.operator===">="&&!g.test(s.semver))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=fS(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!g.test(i.semver))return!1}if(!g.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&h&&!s&&o!==0||p||d)},hS=(t,e,n)=>{if(!t)return e;let r=bh(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},fS=(t,e,n)=>{if(!t)return e;let r=bh(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};dS.exports=gL});var SS=Y((FB,vS)=>{"use strict";C();var kh=_i(),gS=ki(),SL=ot(),yS=fh(),EL=Kr(),wL=Vy(),TL=Hy(),xL=jy(),CL=Xy(),NL=Qy(),IL=Zy(),AL=tv(),DL=rv(),bL=ln(),kL=av(),_L=cv(),RL=uc(),PL=fv(),LL=mv(),ML=ha(),OL=pc(),FL=gh(),$L=yh(),BL=hc(),UL=fc(),VL=vh(),GL=Cv(),HL=Iv(),qL=fa(),WL=cn(),jL=ma(),zL=Vv(),KL=Hv(),XL=Wv(),YL=Kv(),QL=Yv(),JL=gc(),ZL=nS(),eM=sS(),tM=aS(),nM=cS(),rM=mS();vS.exports={parse:EL,valid:wL,clean:TL,inc:xL,diff:CL,major:NL,minor:IL,patch:AL,prerelease:DL,compare:bL,rcompare:kL,compareLoose:_L,compareBuild:RL,sort:PL,rsort:LL,gt:ML,lt:OL,eq:FL,neq:$L,gte:BL,lte:UL,cmp:VL,coerce:GL,truncate:HL,Comparator:qL,Range:WL,satisfies:jL,toComparators:zL,maxSatisfying:KL,minSatisfying:XL,minVersion:YL,validRange:QL,outside:JL,gtr:ZL,ltr:eM,intersects:tM,simplifyRange:nM,subset:rM,SemVer:SL,re:kh.re,src:kh.src,tokens:kh.t,SEMVER_SPEC_VERSION:gS.SEMVER_SPEC_VERSION,RELEASE_TYPES:gS.RELEASE_TYPES,compareIdentifiers:yS.compareIdentifiers,rcompareIdentifiers:yS.rcompareIdentifiers}});var zO={};rE(zO,{angularJitApplicationTransform:()=>sc});module.exports=sE(zO);C();C();var zS=require("module");C();var LS=require("module");C();var PS=require("module");C();var gy=require("module");C();var sy=require("module");C();var Hg=require("module");C();var zh=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Er=class t{constructor(){l(this,"element",null);l(this,"classNames",[]);l(this,"attrs",[]);l(this,"notSelectors",[])}static parse(e){let n=[],r=(c,u)=>{u.notSelectors.length>0&&!u.element&&u.classNames.length==0&&u.attrs.length==0&&(u.element="*"),c.push(u)},s=new t,i,o=s,a=!1;for(zh.lastIndex=0;i=zh.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new t,s.notSelectors.push(o)}let c=i[2];if(c){let 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]&&(a=!1,o=s),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");r(n,s),s=o=new t}}return r(n,s),n}unescapeAttribute(e){let n="",r=!1;for(let s=0;s<e.length;s++){let i=e.charAt(s);if(i==="\\"){r=!0;continue}if(i==="$"&&!r)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);r=!1,n+=i}return n}escapeAttribute(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&this.classNames.length==0&&this.attrs.length==0&&this.notSelectors.length===0}hasElementSelector(){return!!this.element}setElement(e=null){this.element=e}getAttrs(){let e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,n=""){this.attrs.push(e,n&&n.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(n=>e+=`.${n}`),this.attrs)for(let n=0;n<this.attrs.length;n+=2){let r=this.escapeAttribute(this.attrs[n]),s=this.attrs[n+1];e+=`[${r}${s?"="+s:""}]`}return this.notSelectors.forEach(n=>e+=`:not(${n})`),e}},Xs=class t{constructor(){l(this,"_elementMap",new Map);l(this,"_elementPartialMap",new Map);l(this,"_classMap",new Map);l(this,"_classPartialMap",new Map);l(this,"_attrValueMap",new Map);l(this,"_attrValuePartialMap",new Map);l(this,"_listContexts",[])}static createNotMatcher(e){let n=new t;return n.addSelectables(e,null),n}addSelectables(e,n){let r=null;e.length>1&&(r=new Uc(e),this._listContexts.push(r));for(let s=0;s<e.length;s++)this._addSelectable(e[s],n,r)}_addSelectable(e,n,r){let s=this,i=e.element,o=e.classNames,a=e.attrs,c=new Vc(e,n,r);if(i&&(a.length===0&&o.length===0?this._addTerminal(s._elementMap,i,c):s=this._addPartial(s._elementPartialMap,i)),o)for(let u=0;u<o.length;u++){let h=a.length===0&&u===o.length-1,d=o[u];h?this._addTerminal(s._classMap,d,c):s=this._addPartial(s._classPartialMap,d)}if(a)for(let u=0;u<a.length;u+=2){let h=u===a.length-2,d=a[u],p=a[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 a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,s,e,n)||r,r=this._matchPartial(this._elementPartialMap,s,e,n)||r,i)for(let a=0;a<i.length;a++){let c=i[a];r=this._matchTerminal(this._classMap,c,e,n)||r,r=this._matchPartial(this._classPartialMap,c,e,n)||r}if(o)for(let a=0;a<o.length;a+=2){let c=o[a],u=o[a+1],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 a,c=!1;for(let u=0;u<i.length;u++)a=i[u],c=a.finalize(r,s)||c;return c}_matchPartial(e,n,r,s){if(!e||typeof n!="string")return!1;let i=e.get(n);return i?i.match(r,s):!1}},Uc=class{constructor(e){l(this,"selectors");l(this,"alreadyMatched",!1);this.selectors=e}},Vc=class{constructor(e,n,r){l(this,"selector");l(this,"cbContext");l(this,"listContext");l(this,"notSelectors");this.selector=e,this.cbContext=n,this.listContext=r,this.notSelectors=e.notSelectors}finalize(e,n){let r=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(r=!Xs.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}},Ys=class{constructor(e){l(this,"registry");this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}},re;(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"})(re||(re={}));var Ra,Kh="svg",iE="math";function oE(){return Ra||(Ra={},ir(re.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),ir(re.STYLE,void 0,[["*",["style"]]]),ir(re.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),ir(re.URL,iE,[["annotation",["href","xlink:href"]],["annotation-xml",["href","xlink:href"]],["maction",["href","xlink:href"]],["malignmark",["href","xlink:href"]],["math",["href","xlink:href"]],["mroot",["href","xlink:href"]],["msqrt",["href","xlink:href"]],["merror",["href","xlink:href"]],["mfrac",["href","xlink:href"]],["mglyph",["href","xlink:href"]],["msub",["href","xlink:href"]],["msup",["href","xlink:href"]],["msubsup",["href","xlink:href"]],["mmultiscripts",["href","xlink:href"]],["mprescripts",["href","xlink:href"]],["mi",["href","xlink:href"]],["mn",["href","xlink:href"]],["mo",["href","xlink:href"]],["mpadded",["href","xlink:href"]],["mphantom",["href","xlink:href"]],["mrow",["href","xlink:href"]],["ms",["href","xlink:href"]],["mspace",["href","xlink:href"]],["mstyle",["href","xlink:href"]],["mtable",["href","xlink:href"]],["mtd",["href","xlink:href"]],["mtr",["href","xlink:href"]],["mtext",["href","xlink:href"]],["mover",["href","xlink:href"]],["munder",["href","xlink:href"]],["munderover",["href","xlink:href"]],["semantics",["href","xlink:href"]],["none",["href","xlink:href"]]]),ir(re.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),ir(re.URL,Kh,[["a",["href","xlink:href"]]]),ir(re.ATTRIBUTE_NO_BINDING,Kh,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),ir(re.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),Ra}function ir(t,e,n){for(let[r,s]of n){let i=e&&r!=="*"&&r!=="unknown"?`:${e}:${r}`:r;i=i.toLowerCase();for(let o of s)Ra[`${i}|${o.toLowerCase()}`]=t}}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 Fa;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t[t.Eager=1]="Eager"})(Fa||(Fa={}));var Fs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Fs||(Fs={}));var Gc={name:"custom-elements"},Hc={name:"no-errors-schema"};var Xh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Xh||(Xh={}));function aE(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function lE(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 cE(t){let e=aE(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>lE(r)):[];return e.concat(...n)}function yp(t){return t?Er.parse(t).map(cE):[]}var ut;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule",t[t.Service=5]="Service"})(ut||(ut={}));var Yh;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Yh||(Yh={}));var Qh;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(Qh||(Qh={}));var dr;function uE(t){return dE(fE(t.nodes).join("")+`[${t.meaning}]`)}function pE(t){return t.id||Zd(t)}function Zd(t){let e=new qc,n=t.nodes.map(r=>r.visit(e,null));return em(n.join(""),t.meaning)}var $a=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}">`}},hE=new $a;function fE(t){return t.map(e=>e.visit(hE,null))}var qc=class extends $a{visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function dE(t){dr!=null||(dr=new TextEncoder);let e=[...dr.encode(t)],n=yE(e,Ba.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,c=271733878,u=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let h=0;h<n.length;h+=16){let d=i,p=o,g=a,v=c,E=u;for(let I=0;I<80;I++){I<16?s[I]=n[h+I]:s[I]=Sc(s[I-3]^s[I-8]^s[I-14]^s[I-16],1);let D=mE(I,o,a,c),k=D[0],_=D[1],H=[Sc(i,5),k,u,_,s[I]].reduce(Ds);u=c,c=a,a=Sc(o,30),o=i,i=H}i=Ds(i,d),o=Ds(o,p),a=Ds(a,g),c=Ds(c,v),u=Ds(u,E)}return Mi(i)+Mi(o)+Mi(a)+Mi(c)+Mi(u)}function Mi(t){return(t>>>0).toString(16).padStart(8,"0")}function mE(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 Jh(t){dr!=null||(dr=new TextEncoder);let e=dr.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=Zh(n,e.length,0),s=Zh(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 em(t,e=""){let n=Jh(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=Jh(e)),BigInt.asUintN(63,n).toString()}function Zh(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=ef(r,s,n);r=c[0],s=c[1],n=c[2]}let a=e-i;return n+=e,a>=4?(r+=t.getUint32(i,!0),i+=4,a>=8?(s+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(s+=t.getUint8(i++)),a>=6&&(s+=t.getUint8(i++)<<8),a===7&&(s+=t.getUint8(i++)<<16))):(a>=1&&(r+=t.getUint8(i++)),a>=2&&(r+=t.getUint8(i++)<<8),a===3&&(r+=t.getUint8(i++)<<16)),ef(r,s,n)[2]}function ef(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 Ba;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Ba||(Ba={}));function Ds(t,e){return gE(t,e)[1]}function gE(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function Sc(t,e){return t<<e|t>>>32-e}function yE(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=vE(t,s*4,e);return r}function tf(t,e){return e>=t.length?0:t[e]}function vE(t,e,n){let r=0;if(n===Ba.Big)for(let s=0;s<4;s++)r+=tf(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=tf(t,e+s)<<8*s;return r}var Ua;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(Ua||(Ua={}));var wr=class{constructor(e=Ua.None){l(this,"modifiers");this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Oe;(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"})(Oe||(Oe={}));var fn=class extends wr{constructor(n,r){super(r);l(this,"name");this.name=n}visitType(n,r){return n.visitBuiltinType(this,r)}},pt=class extends wr{constructor(n,r,s=null){super(r);l(this,"value");l(this,"typeParams");this.value=n,this.typeParams=s}visitType(n,r){return n.visitExpressionType(this,r)}},Wc=class extends wr{constructor(n,r){super(r);l(this,"of");this.of=n}visitType(n,r){return n.visitArrayType(this,r)}},jc=class extends wr{constructor(n,r){super(r);l(this,"valueType");this.valueType=n||null}visitType(n,r){return n.visitMapType(this,r)}},io=class extends wr{constructor(n,r){super(r);l(this,"type");this.type=n}visitType(n,r){return n.visitTransplantedType(this,r)}},Ke=new fn(Oe.Dynamic),dn=new fn(Oe.Inferred),tm=new fn(Oe.Bool),SE=new fn(Oe.Int),Tr=new fn(Oe.Number),Dl=new fn(Oe.String),EE=new fn(Oe.Function),Lt=new fn(Oe.None),bn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(bn||(bn={}));var w;(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"})(w||(w={}));function nm(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function rm(t,e,n){let r=t.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(!n(t[s],e[s]))return!1;return!0}function xt(t,e){return rm(t,e,(n,r)=>n.isEquivalent(r))}var oe=class{constructor(e,n,r){l(this,"leadingComments");l(this,"type");l(this,"sourceSpan");this.leadingComments=r,this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new st(this,e,null,n)}key(e,n,r){return new rn(this,e,n,r)}callFn(e,n,r,s){return new Ae(this,e,null,n,r,s)}instantiate(e,n,r,s){return new Js(this,e,n,r)}conditional(e,n=null,r,s){return new mn(this,e,n,null,r)}equals(e,n){return new se(w.Equals,this,e,null,n)}notEquals(e,n){return new se(w.NotEquals,this,e,null,n)}identical(e,n){return new se(w.Identical,this,e,null,n)}notIdentical(e,n){return new se(w.NotIdentical,this,e,null,n)}minus(e,n){return new se(w.Minus,this,e,null,n)}plus(e,n){return new se(w.Plus,this,e,null,n)}divide(e,n){return new se(w.Divide,this,e,null,n)}multiply(e,n){return new se(w.Multiply,this,e,null,n)}modulo(e,n){return new se(w.Modulo,this,e,null,n)}power(e,n){return new se(w.Exponentiation,this,e,null,n)}and(e,n){return new se(w.And,this,e,null,n)}bitwiseOr(e,n){return new se(w.BitwiseOr,this,e,null,n)}bitwiseAnd(e,n){return new se(w.BitwiseAnd,this,e,null,n)}or(e,n){return new se(w.Or,this,e,null,n)}lower(e,n){return new se(w.Lower,this,e,null,n)}lowerEquals(e,n){return new se(w.LowerEquals,this,e,null,n)}bigger(e,n){return new se(w.Bigger,this,e,null,n)}biggerEquals(e,n){return new se(w.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(sm,e)}nullishCoalesce(e,n){return new se(w.NullishCoalesce,this,e,null,n)}toStmt(e){return new et(this,null,e)}},tn=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"name");this.name=n}isEquivalent(n){return n instanceof t&&this.name===n.name}isConstant(){return!1}visitExpression(n,r){return n.visitReadVarExpr(this,r)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(n){return new se(w.Assign,this,n,null,this.sourceSpan)}},xr=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitTypeofExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},oo=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitVoidExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},W=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"node");this.node=n}isEquivalent(n){return n instanceof t&&this.node===n.node}isConstant(){return!1}visitExpression(n,r){return n.visitWrappedNodeExpr(this,r)}clone(){return new t(this.node,this.type,this.sourceSpan)}},Ae=class t extends oe{constructor(n,r,s,i,o=!1,a,c=!1){super(s,i,a);l(this,"fn");l(this,"args");l(this,"pure");l(this,"isOptional");this.fn=n,this.args=r,this.pure=o,this.isOptional=c}get receiver(){return this.fn}isEquivalent(n){return n instanceof t&&this.fn.isEquivalent(n.fn)&&xt(this.args,n.args)&&this.pure===n.pure}isConstant(){return!1}visitExpression(n,r){return n.visitInvokeFunctionExpr(this,r)}clone(){return new t(this.fn.clone(),this.args.map(n=>n.clone()),this.type,this.sourceSpan,this.pure,[],this.isOptional)}},Qs=class t extends oe{constructor(n,r,s,i,o){super(s,i,o);l(this,"tag");l(this,"template");this.tag=n,this.template=r}isEquivalent(n){return n instanceof t&&this.tag.isEquivalent(n.tag)&&this.template.isEquivalent(n.template)}isConstant(){return!1}visitExpression(n,r){return n.visitTaggedTemplateLiteralExpr(this,r)}clone(){return new t(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},Js=class t extends oe{constructor(n,r,s,i,o){super(s,i,o);l(this,"classExpr");l(this,"args");this.classExpr=n,this.args=r}isEquivalent(n){return n instanceof t&&this.classExpr.isEquivalent(n.classExpr)&&xt(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)}},ps=class t extends oe{constructor(n,r,s,i){super(null,s,i);l(this,"body");l(this,"flags");this.body=n,this.flags=r}isEquivalent(n){return n instanceof t&&this.body===n.body&&this.flags===n.flags}isConstant(){return!0}visitExpression(n,r){return n.visitRegularExpressionLiteral(this,r)}clone(){return new t(this.body,this.flags,this.sourceSpan)}},_e=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value===n.value}isConstant(){return!0}visitExpression(n,r){return n.visitLiteralExpr(this,r)}clone(){return new t(this.value,this.type,this.sourceSpan)}},Zs=class t extends oe{constructor(n,r,s,i){super(null,s,i);l(this,"elements");l(this,"expressions");this.elements=n,this.expressions=r}isEquivalent(n){return n instanceof t&&rm(this.elements,n.elements,(r,s)=>r.text===s.text)&&xt(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()))}},ao=class t extends oe{constructor(n,r,s,i){super(Dl,r,i);l(this,"text");l(this,"rawText");this.text=n,this.rawText=s!=null?s:zc(Pa(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)}},yr=class{constructor(e,n){l(this,"text");l(this,"sourceSpan");this.text=e,this.sourceSpan=n}},ns=class{constructor(e,n,r){l(this,"text");l(this,"sourceSpan");l(this,"associatedMessage");this.text=e,this.sourceSpan=n,this.associatedMessage=r}},wE="|",nf="@@",TE="\u241F",lo=class t extends oe{constructor(n,r,s,i,o,a){super(Dl,o,a);l(this,"metaBlock");l(this,"messageParts");l(this,"placeHolderNames");l(this,"expressions");this.metaBlock=n,this.messageParts=r,this.placeHolderNames=s,this.expressions=i}isEquivalent(n){return!1}isConstant(){return!1}visitExpression(n,r){return n.visitLocalizedString(this,r)}clone(){return new t(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(n=>n.clone()),this.sourceSpan)}serializeI18nHead(){let n=this.metaBlock.description||"";return this.metaBlock.meaning&&(n=`${this.metaBlock.meaning}${wE}${n}`),this.metaBlock.customId&&(n=`${n}${nf}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(r=>{n=`${n}${TE}${r}`}),rf(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+=`${nf}${em(r.associatedMessage.messageString,r.associatedMessage.meaning)}`),rf(i,s.text,this.getMessagePartSourceSpan(n))}},Pa=t=>t.replace(/\\/g,"\\\\"),xE=t=>t.replace(/^:/,"\\:"),CE=t=>t.replace(/:/g,"\\:"),zc=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function rf(t,e,n){return t===""?{cooked:e,raw:zc(xE(Pa(e))),range:n}:{cooked:`:${t}:${e}`,raw:zc(`:${CE(Pa(t))}:${Pa(e)}`),range:n}}var Ze=class t extends oe{constructor(n,r,s=null,i,o){super(r,i,o);l(this,"value");l(this,"typeParams");this.value=n,this.typeParams=s}isEquivalent(n){return n instanceof t&&this.value.name===n.value.name&&this.value.moduleName===n.value.moduleName}isConstant(){return!1}visitExpression(n,r){return n.visitExternalExpr(this,r)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}},co=class{constructor(e,n){l(this,"moduleName");l(this,"name");this.moduleName=e,this.name=n}},mn=class t extends oe{constructor(n,r,s=null,i,o,a){super(i||r.type,o,a);l(this,"condition");l(this,"falseCase");l(this,"trueCase");this.condition=n,this.falseCase=s,this.trueCase=r}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&this.trueCase.isEquivalent(n.trueCase)&&nm(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)}},Kc=class t extends oe{constructor(n,r,s,i){super(null,r,i);l(this,"url");l(this,"urlComment");this.url=n,this.urlComment=s}isEquivalent(n){return n instanceof t&&this.url===n.url&&this.urlComment===n.urlComment}isConstant(){return!1}visitExpression(n,r){return n.visitDynamicImportExpr(this,r)}clone(){return new t(typeof this.url=="string"?this.url:this.url.clone(),this.sourceSpan,this.urlComment)}},ei=class t extends oe{constructor(n,r,s){super(tm,r,s);l(this,"condition");this.condition=n}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)}isConstant(){return!1}visitExpression(n,r){return n.visitNotExpr(this,r)}clone(){return new t(this.condition.clone(),this.sourceSpan)}},Be=class t{constructor(e,n=null){l(this,"name");l(this,"type");this.name=e,this.type=n}isEquivalent(e){return this.name===e.name}clone(){return new t(this.name,this.type)}},hn=class t extends oe{constructor(n,r,s,i,o,a){super(s,i,a);l(this,"params");l(this,"statements");l(this,"name");this.params=n,this.statements=r,this.name=o}isEquivalent(n){return(n instanceof t||n instanceof ti)&&xt(this.params,n.params)&&xt(this.statements,n.statements)}isConstant(){return!1}visitExpression(n,r){return n.visitFunctionExpr(this,r)}toDeclStmt(n,r){return new ti(n,this.params,this.statements,this.type,r,this.sourceSpan)}clone(){return new t(this.params.map(n=>n.clone()),this.statements,this.type,this.sourceSpan,this.name)}},gn=class Xc extends oe{constructor(n,r,s,i,o){super(s,i,o);l(this,"params");l(this,"body");this.params=n,this.body=r}isEquivalent(n){return!(n instanceof Xc)||!xt(this.params,n.params)?!1:this.body instanceof oe&&n.body instanceof oe?this.body.isEquivalent(n.body):Array.isArray(this.body)&&Array.isArray(n.body)?xt(this.body,n.body):!1}isConstant(){return!1}visitExpression(n,r){return n.visitArrowFunctionExpr(this,r)}clone(){return new Xc(this.params.map(n=>n.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(n,r){return new Xe(n,this,dn,r,this.sourceSpan)}},qn=class t extends oe{constructor(n,r,s,i,o=!0,a){super(s||Tr,i,a);l(this,"operator");l(this,"expr");l(this,"parens");this.operator=n,this.expr=r,this.parens=o}isEquivalent(n){return n instanceof t&&this.operator===n.operator&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}visitExpression(n,r){return n.visitUnaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},nn=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitParenthesizedExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},se=class t extends oe{constructor(n,r,s,i,o,a){super(i||r.type,o,a);l(this,"operator");l(this,"rhs");l(this,"lhs");this.operator=n,this.rhs=s,this.lhs=r}isEquivalent(n){return n instanceof t&&this.operator===n.operator&&this.lhs.isEquivalent(n.lhs)&&this.rhs.isEquivalent(n.rhs)}isConstant(){return!1}visitExpression(n,r){return n.visitBinaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let n=this.operator;return n===w.Assign||n===w.AdditionAssignment||n===w.SubtractionAssignment||n===w.MultiplicationAssignment||n===w.DivisionAssignment||n===w.RemainderAssignment||n===w.ExponentiationAssignment||n===w.AndAssignment||n===w.OrAssignment||n===w.NullishCoalesceAssignment}},st=class t extends oe{constructor(n,r,s,i,o,a=!1){super(s,i,o);l(this,"receiver");l(this,"name");l(this,"isOptional");this.receiver=n,this.name=r,this.isOptional=a}get index(){return this.name}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.name===n.name&&this.isOptional===n.isOptional}isConstant(){return!1}visitExpression(n,r){return n.visitReadPropExpr(this,r)}set(n){return new se(w.Assign,this.receiver.prop(this.name),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan,[],this.isOptional)}},rn=class t extends oe{constructor(n,r,s,i,o,a=!1){super(s,i,o);l(this,"receiver");l(this,"index");l(this,"isOptional");this.receiver=n,this.index=r,this.isOptional=a}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.index.isEquivalent(n.index)&&this.isOptional===n.isOptional}isConstant(){return!1}visitExpression(n,r){return n.visitReadKeyExpr(this,r)}set(n){return new se(w.Assign,this.receiver.key(this.index),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan,[],this.isOptional)}},Mt=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"entries");this.entries=n}isConstant(){return this.entries.every(n=>n.isConstant())}isEquivalent(n){return n instanceof t&&xt(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)}},Cr=class t{constructor(e,n,r){l(this,"key");l(this,"value");l(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()}},yn=class t{constructor(e){l(this,"expression");this.expression=e}isEquivalent(e){return e instanceof t&&this.expression.isEquivalent(e.expression)}clone(){return new t(this.expression.clone())}isConstant(){return this.expression.isConstant()}},sn=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"entries");l(this,"valueType",null);this.entries=n,r&&(this.valueType=r.valueType)}isEquivalent(n){return n instanceof t&&xt(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)}},Yc=class t extends oe{constructor(n,r,s){super(n[n.length-1].type,r,s);l(this,"parts");this.parts=n}isEquivalent(n){return n instanceof t&&xt(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()))}},Nr=class t extends oe{constructor(n,r,s){super(null,r,s);l(this,"expression");this.expression=n}isEquivalent(n){return n instanceof t&&this.expression.isEquivalent(n.expression)}isConstant(){return this.expression.isConstant()}visitExpression(n,r){return n.visitSpreadElementExpr(this,r)}clone(){return new t(this.expression.clone(),this.sourceSpan)}},hs=new _e(null,null,null),sm=new _e(null,dn,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 uo=class{constructor(e,n,r){l(this,"text");l(this,"multiline");l(this,"trailingNewline");this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},po=class extends uo{constructor(n){super("",!0,!0);l(this,"tags");this.tags=n}toString(){return kE(this.tags)}},Ir=class{constructor(e=Ue.None,n=null,r){l(this,"modifiers");l(this,"sourceSpan");l(this,"leadingComments");this.modifiers=e,this.sourceSpan=n,this.leadingComments=r}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){var n;this.leadingComments=(n=this.leadingComments)!=null?n:[],this.leadingComments.push(e)}},Xe=class t extends Ir{constructor(n,r,s,i,o,a){super(i,o,a);l(this,"name");l(this,"value");l(this,"type");this.name=n,this.value=r,this.type=s||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)}},ti=class t extends Ir{constructor(n,r,s,i,o,a,c){super(o,a,c);l(this,"name");l(this,"params");l(this,"statements");l(this,"type");this.name=n,this.params=r,this.statements=s,this.type=i||null}isEquivalent(n){return n instanceof t&&xt(this.params,n.params)&&xt(this.statements,n.statements)}visitStatement(n,r){return n.visitDeclareFunctionStmt(this,r)}},et=class t extends Ir{constructor(n,r,s){super(Ue.None,r,s);l(this,"expr");this.expr=n}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}visitStatement(n,r){return n.visitExpressionStmt(this,r)}},ke=class t extends Ir{constructor(n,r=null,s){super(Ue.None,r,s);l(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value.isEquivalent(n.value)}visitStatement(n,r){return n.visitReturnStmt(this,r)}},ho=class t extends Ir{constructor(n,r,s=[],i,o){super(Ue.None,i,o);l(this,"condition");l(this,"trueCase");l(this,"falseCase");this.condition=n,this.trueCase=r,this.falseCase=s}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&xt(this.trueCase,n.trueCase)&&xt(this.falseCase,n.falseCase)}visitStatement(n,r){return n.visitIfStmt(this,r)}},NE=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 yn?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 vp(t,e=!1,n=!0){return new uo(t,e,n)}function im(t=[]){return new po(t)}function Z(t,e,n,r){return new tn(t,e,n,r)}function R(t,e=null,n){return new Ze(t,null,e,n)}function IE(t,e,n){return t!=null?Ve(R(t,e,null),n):null}function Ve(t,e,n){return new pt(t,e,n)}function AE(t,e){return new io(t,e)}function Ei(t){return new xr(t)}function ce(t,e,n){return new Mt(t,e,n)}function Ct(t,e=null){return new sn(t.map(n=>new Cr(n.key,n.value,n.quoted)),e,null)}function DE(t,e,n,r){return new qn(t,e,n,r)}function om(t,e){return new ei(t,e)}function Wn(t,e,n,r,s){return new hn(t,e,n,r,s)}function Nt(t,e,n,r){return new gn(t,e,n,r)}function na(t,e,n,r,s){return new ho(t,e,n,r,s)}function am(t,e,n,r){return new Qs(t,e,n,r)}function S(t,e,n){return new _e(t,e,n)}function lm(t,e,n,r,s){return new lo(t,e,n,r,s)}function bE(t){return t instanceof _e&&t.value===null}function sf(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 kE(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${sf(t[0])} `;let e=`*
|
|
1
|
+
"use strict";var YS=Object.create;var Li=Object.defineProperty,QS=Object.defineProperties,JS=Object.getOwnPropertyDescriptor,ZS=Object.getOwnPropertyDescriptors,eE=Object.getOwnPropertyNames,Wh=Object.getOwnPropertySymbols,tE=Object.getPrototypeOf,jh=Object.prototype.hasOwnProperty,nE=Object.prototype.propertyIsEnumerable;var vc=(t,e,n)=>e in t?Li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,x=(t,e)=>{for(var n in e||(e={}))jh.call(e,n)&&vc(t,n,e[n]);if(Wh)for(var n of Wh(e))nE.call(e,n)&&vc(t,n,e[n]);return t},he=(t,e)=>QS(t,ZS(e));var rE=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(r){throw n=[r],r}};var Y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},sE=(t,e)=>{for(var n in e)Li(t,n,{get:e[n],enumerable:!0})},zh=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of eE(e))!jh.call(t,s)&&s!==n&&Li(t,s,{get:()=>e[s],enumerable:!(r=JS(e,s))||r.enumerable});return t};var N=(t,e,n)=>(n=t!=null?YS(tE(t)):{},zh(e||!t||!t.__esModule?Li(n,"default",{value:t,enumerable:!0}):n,t)),iE=t=>zh(Li({},"__esModule",{value:!0}),t);var l=(t,e,n)=>vc(t,typeof e!="symbol"?e+"":e,n);var O,C=rE(()=>{"use strict";O=require("url").pathToFileURL(__filename)});var _i=Y((o$,_y)=>{"use strict";C();var tR="2.0.0",nR=Number.MAX_SAFE_INTEGER||9007199254740991,rR=16,sR=250,iR=["major","premajor","minor","preminor","patch","prepatch","prerelease"];_y.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rR,MAX_SAFE_BUILD_LENGTH:sR,MAX_SAFE_INTEGER:nR,RELEASE_TYPES:iR,SEMVER_SPEC_VERSION:tR,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ua=Y((l$,ky)=>{"use strict";C();var oR=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};ky.exports=oR});var ki=Y(($n,Ry)=>{"use strict";C();var{MAX_SAFE_COMPONENT_LENGTH:hh,MAX_SAFE_BUILD_LENGTH:aR,MAX_LENGTH:lR}=_i(),cR=ua();$n=Ry.exports={};var uR=$n.re=[],pR=$n.safeRe=[],$=$n.src=[],hR=$n.safeSrc=[],B=$n.t={},fR=0,fh="[a-zA-Z0-9-]",dR=[["\\s",1],["\\d",lR],[fh,aR]],mR=t=>{for(let[e,n]of dR)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},te=(t,e,n)=>{let r=mR(e),s=fR++;cR(t,s,e),B[t]=s,$[s]=e,hR[s]=r,uR[s]=new RegExp(e,n?"g":void 0),pR[s]=new RegExp(r,n?"g":void 0)};te("NUMERICIDENTIFIER","0|[1-9]\\d*");te("NUMERICIDENTIFIERLOOSE","\\d+");te("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${fh}*`);te("MAINVERSION",`(${$[B.NUMERICIDENTIFIER]})\\.(${$[B.NUMERICIDENTIFIER]})\\.(${$[B.NUMERICIDENTIFIER]})`);te("MAINVERSIONLOOSE",`(${$[B.NUMERICIDENTIFIERLOOSE]})\\.(${$[B.NUMERICIDENTIFIERLOOSE]})\\.(${$[B.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASEIDENTIFIER",`(?:${$[B.NONNUMERICIDENTIFIER]}|${$[B.NUMERICIDENTIFIER]})`);te("PRERELEASEIDENTIFIERLOOSE",`(?:${$[B.NONNUMERICIDENTIFIER]}|${$[B.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASE",`(?:-(${$[B.PRERELEASEIDENTIFIER]}(?:\\.${$[B.PRERELEASEIDENTIFIER]})*))`);te("PRERELEASELOOSE",`(?:-?(${$[B.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$[B.PRERELEASEIDENTIFIERLOOSE]})*))`);te("BUILDIDENTIFIER",`${fh}+`);te("BUILD",`(?:\\+(${$[B.BUILDIDENTIFIER]}(?:\\.${$[B.BUILDIDENTIFIER]})*))`);te("FULLPLAIN",`v?${$[B.MAINVERSION]}${$[B.PRERELEASE]}?${$[B.BUILD]}?`);te("FULL",`^${$[B.FULLPLAIN]}$`);te("LOOSEPLAIN",`[v=\\s]*${$[B.MAINVERSIONLOOSE]}${$[B.PRERELEASELOOSE]}?${$[B.BUILD]}?`);te("LOOSE",`^${$[B.LOOSEPLAIN]}$`);te("GTLT","((?:<|>)?=?)");te("XRANGEIDENTIFIERLOOSE",`${$[B.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);te("XRANGEIDENTIFIER",`${$[B.NUMERICIDENTIFIER]}|x|X|\\*`);te("XRANGEPLAIN",`[v=\\s]*(${$[B.XRANGEIDENTIFIER]})(?:\\.(${$[B.XRANGEIDENTIFIER]})(?:\\.(${$[B.XRANGEIDENTIFIER]})(?:${$[B.PRERELEASE]})?${$[B.BUILD]}?)?)?`);te("XRANGEPLAINLOOSE",`[v=\\s]*(${$[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$[B.XRANGEIDENTIFIERLOOSE]})(?:${$[B.PRERELEASELOOSE]})?${$[B.BUILD]}?)?)?`);te("XRANGE",`^${$[B.GTLT]}\\s*${$[B.XRANGEPLAIN]}$`);te("XRANGELOOSE",`^${$[B.GTLT]}\\s*${$[B.XRANGEPLAINLOOSE]}$`);te("COERCEPLAIN",`(^|[^\\d])(\\d{1,${hh}})(?:\\.(\\d{1,${hh}}))?(?:\\.(\\d{1,${hh}}))?`);te("COERCE",`${$[B.COERCEPLAIN]}(?:$|[^\\d])`);te("COERCEFULL",$[B.COERCEPLAIN]+`(?:${$[B.PRERELEASE]})?(?:${$[B.BUILD]})?(?:$|[^\\d])`);te("COERCERTL",$[B.COERCE],!0);te("COERCERTLFULL",$[B.COERCEFULL],!0);te("LONETILDE","(?:~>?)");te("TILDETRIM",`(\\s*)${$[B.LONETILDE]}\\s+`,!0);$n.tildeTrimReplace="$1~";te("TILDE",`^${$[B.LONETILDE]}${$[B.XRANGEPLAIN]}$`);te("TILDELOOSE",`^${$[B.LONETILDE]}${$[B.XRANGEPLAINLOOSE]}$`);te("LONECARET","(?:\\^)");te("CARETTRIM",`(\\s*)${$[B.LONECARET]}\\s+`,!0);$n.caretTrimReplace="$1^";te("CARET",`^${$[B.LONECARET]}${$[B.XRANGEPLAIN]}$`);te("CARETLOOSE",`^${$[B.LONECARET]}${$[B.XRANGEPLAINLOOSE]}$`);te("COMPARATORLOOSE",`^${$[B.GTLT]}\\s*(${$[B.LOOSEPLAIN]})$|^$`);te("COMPARATOR",`^${$[B.GTLT]}\\s*(${$[B.FULLPLAIN]})$|^$`);te("COMPARATORTRIM",`(\\s*)${$[B.GTLT]}\\s*(${$[B.LOOSEPLAIN]}|${$[B.XRANGEPLAIN]})`,!0);$n.comparatorTrimReplace="$1$2$3";te("HYPHENRANGE",`^\\s*(${$[B.XRANGEPLAIN]})\\s+-\\s+(${$[B.XRANGEPLAIN]})\\s*$`);te("HYPHENRANGELOOSE",`^\\s*(${$[B.XRANGEPLAINLOOSE]})\\s+-\\s+(${$[B.XRANGEPLAINLOOSE]})\\s*$`);te("STAR","(<|>)?=?\\s*\\*");te("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");te("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ic=Y((p$,Py)=>{"use strict";C();var gR=Object.freeze({loose:!0}),yR=Object.freeze({}),vR=t=>t?typeof t!="object"?gR:t:yR;Py.exports=vR});var dh=Y((f$,Oy)=>{"use strict";C();var Ly=/^[0-9]+$/,My=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let n=Ly.test(t),r=Ly.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1},SR=(t,e)=>My(e,t);Oy.exports={compareIdentifiers:My,rcompareIdentifiers:SR}});var lt=Y((m$,$y)=>{"use strict";C();var oc=ua(),{MAX_LENGTH:Fy,MAX_SAFE_INTEGER:ac}=_i(),{safeRe:lc,t:cc}=ki(),ER=ic(),{compareIdentifiers:mh}=dh(),wR=(t,e)=>{let n=e.split(".");if(n.length>t.length)return!1;for(let r=0;r<n.length;r++)if(mh(t[r],n[r])!==0)return!1;return!0},gh=class t{constructor(e,n){if(n=ER(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>Fy)throw new TypeError(`version is longer than ${Fy} characters`);oc("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?lc[cc.LOOSE]:lc[cc.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>ac||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ac||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ac||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<ac)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(oc("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(oc("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 mh(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(oc("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 mh(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?lc[cc.PRERELEASELOOSE]:lc[cc.PRERELEASE]);if(!s||s[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let i=[n,s];if(r===!1&&(i=[n]),wR(this.prerelease,n)){let o=this.prerelease[n.split(".").length];isNaN(o)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};$y.exports=gh});var Kr=Y((y$,Uy)=>{"use strict";C();var By=lt(),TR=(t,e,n=!1)=>{if(t instanceof By)return t;try{return new By(t,e)}catch(r){if(!n)return null;throw r}};Uy.exports=TR});var Gy=Y((S$,Vy)=>{"use strict";C();var xR=Kr(),CR=(t,e)=>{let n=xR(t,e);return n?n.version:null};Vy.exports=CR});var qy=Y((w$,Hy)=>{"use strict";C();var NR=Kr(),IR=(t,e)=>{let n=NR(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};Hy.exports=IR});var zy=Y((x$,jy)=>{"use strict";C();var Wy=lt(),AR=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new Wy(t instanceof Wy?t.version:t,n).inc(e,r,s).version}catch(i){return null}};jy.exports=AR});var Yy=Y((N$,Xy)=>{"use strict";C();var Ky=Kr(),DR=(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,a=i?r:n,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let h=c?"pre":"";return n.major!==r.major?h+"major":n.minor!==r.minor?h+"minor":n.patch!==r.patch?h+"patch":"prerelease"};Xy.exports=DR});var Jy=Y((A$,Qy)=>{"use strict";C();var bR=lt(),_R=(t,e)=>new bR(t,e).major;Qy.exports=_R});var ev=Y((b$,Zy)=>{"use strict";C();var kR=lt(),RR=(t,e)=>new kR(t,e).minor;Zy.exports=RR});var nv=Y((k$,tv)=>{"use strict";C();var PR=lt(),LR=(t,e)=>new PR(t,e).patch;tv.exports=LR});var sv=Y((P$,rv)=>{"use strict";C();var MR=Kr(),OR=(t,e)=>{let n=MR(t,e);return n&&n.prerelease.length?n.prerelease:null};rv.exports=OR});var ln=Y((M$,ov)=>{"use strict";C();var iv=lt(),FR=(t,e,n)=>new iv(t,n).compare(new iv(e,n));ov.exports=FR});var lv=Y((F$,av)=>{"use strict";C();var $R=ln(),BR=(t,e,n)=>$R(e,t,n);av.exports=BR});var uv=Y((B$,cv)=>{"use strict";C();var UR=ln(),VR=(t,e)=>UR(t,e,!0);cv.exports=VR});var uc=Y((V$,hv)=>{"use strict";C();var pv=lt(),GR=(t,e,n)=>{let r=new pv(t,n),s=new pv(e,n);return r.compare(s)||r.compareBuild(s)};hv.exports=GR});var dv=Y((H$,fv)=>{"use strict";C();var HR=uc(),qR=(t,e)=>t.sort((n,r)=>HR(n,r,e));fv.exports=qR});var gv=Y((W$,mv)=>{"use strict";C();var WR=uc(),jR=(t,e)=>t.sort((n,r)=>WR(r,n,e));mv.exports=jR});var pa=Y((z$,yv)=>{"use strict";C();var zR=ln(),KR=(t,e,n)=>zR(t,e,n)>0;yv.exports=KR});var pc=Y((X$,vv)=>{"use strict";C();var XR=ln(),YR=(t,e,n)=>XR(t,e,n)<0;vv.exports=YR});var yh=Y((Q$,Sv)=>{"use strict";C();var QR=ln(),JR=(t,e,n)=>QR(t,e,n)===0;Sv.exports=JR});var vh=Y((Z$,Ev)=>{"use strict";C();var ZR=ln(),eP=(t,e,n)=>ZR(t,e,n)!==0;Ev.exports=eP});var hc=Y((tB,wv)=>{"use strict";C();var tP=ln(),nP=(t,e,n)=>tP(t,e,n)>=0;wv.exports=nP});var fc=Y((rB,Tv)=>{"use strict";C();var rP=ln(),sP=(t,e,n)=>rP(t,e,n)<=0;Tv.exports=sP});var Sh=Y((iB,xv)=>{"use strict";C();var iP=yh(),oP=vh(),aP=pa(),lP=hc(),cP=pc(),uP=fc(),pP=(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 iP(t,n,r);case"!=":return oP(t,n,r);case">":return aP(t,n,r);case">=":return lP(t,n,r);case"<":return cP(t,n,r);case"<=":return uP(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};xv.exports=pP});var Nv=Y((aB,Cv)=>{"use strict";C();var hP=lt(),fP=Kr(),{safeRe:dc,t:mc}=ki(),dP=(t,e)=>{if(t instanceof hP)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?dc[mc.COERCEFULL]:dc[mc.COERCE]);else{let c=e.includePrerelease?dc[mc.COERCERTLFULL]:dc[mc.COERCERTL],u;for(;(u=c.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(n===null)return null;let r=n[2],s=n[3]||"0",i=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",a=e.includePrerelease&&n[6]?`+${n[6]}`:"";return fP(`${r}.${s}.${i}${o}${a}`,e)};Cv.exports=dP});var Av=Y((cB,Iv)=>{"use strict";C();var mP=Kr(),gP=_i(),yP=lt(),vP=(t,e,n)=>{if(!gP.RELEASE_TYPES.includes(e))return null;let r=SP(t,n);return r&&EP(r,e)},SP=(t,e)=>{let n=t instanceof yP?t.version:t;return mP(n,e)},EP=(t,e)=>{if(wP(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},wP=t=>t.startsWith("pre");Iv.exports=vP});var bv=Y((pB,Dv)=>{"use strict";C();var Eh=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}};Dv.exports=Eh});var cn=Y((fB,Pv)=>{"use strict";C();var TP=/\s+/g,wh=class t{constructor(e,n){if(n=CP(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof Th)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(TP," "),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=>!kv(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&&PP(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let n=this.set[e];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(RP,"");let r=((this.options.includePrerelease&&_P)|(this.options.loose&&kP))+":"+e,s=_v.get(r);if(s)return s;let i=this.options.loose,o=i?Dt[ct.HYPHENRANGELOOSE]:Dt[ct.HYPHENRANGE];e=e.replace(o,qP(this.options.includePrerelease)),Ee("hyphen replace",e),e=e.replace(Dt[ct.COMPARATORTRIM],AP),Ee("comparator trim",e),e=e.replace(Dt[ct.TILDETRIM],DP),Ee("tilde trim",e),e=e.replace(Dt[ct.CARETTRIM],bP),Ee("caret trim",e);let a=e.split(" ").map(d=>LP(d,this.options)).join(" ").split(/\s+/).map(d=>HP(d,this.options));i&&(a=a.filter(d=>(Ee("loose invalid filter",d,this.options),!!d.match(Dt[ct.COMPARATORLOOSE])))),Ee("range list",a);let c=new Map,u=a.map(d=>new Th(d,this.options));for(let d of u){if(kv(d))return[d];c.set(d.value,d)}c.size>1&&c.has("")&&c.delete("");let h=[...c.values()];return _v.set(r,h),h}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>Rv(r,n)&&e.set.some(s=>Rv(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 NP(e,this.options)}catch(n){return!1}for(let n=0;n<this.set.length;n++)if(WP(this.set[n],e,this.options))return!0;return!1}};Pv.exports=wh;var xP=bv(),_v=new xP,CP=ic(),Th=ha(),Ee=ua(),NP=lt(),{safeRe:Dt,src:IP,t:ct,comparatorTrimReplace:AP,tildeTrimReplace:DP,caretTrimReplace:bP}=ki(),{FLAG_INCLUDE_PRERELEASE:_P,FLAG_LOOSE:kP}=_i(),RP=new RegExp(IP[ct.BUILD],"g"),kv=t=>t.value==="<0.0.0-0",PP=t=>t.value==="",Rv=(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},LP=(t,e)=>(t=t.replace(Dt[ct.BUILD],""),Ee("comp",t,e),t=$P(t,e),Ee("caret",t),t=OP(t,e),Ee("tildes",t),t=UP(t,e),Ee("xrange",t),t=GP(t,e),Ee("stars",t),t),Je=t=>!t||t.toLowerCase()==="x"||t==="*",MP=(t,e,n)=>Je(t)&&!Je(e)||Je(e)&&n&&!Je(n),OP=(t,e)=>t.trim().split(/\s+/).map(n=>FP(n,e)).join(" "),FP=(t,e)=>{let n=e.loose?Dt[ct.TILDELOOSE]:Dt[ct.TILDE];return t.replace(n,(r,s,i,o,a)=>{Ee("tilde",t,r,s,i,o,a);let c;return Je(s)?c="":Je(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:Je(o)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?(Ee("replaceTilde pr",a),c=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,Ee("tilde return",c),c})},$P=(t,e)=>t.trim().split(/\s+/).map(n=>BP(n,e)).join(" "),BP=(t,e)=>{Ee("caret",t,e);let n=e.loose?Dt[ct.CARETLOOSE]:Dt[ct.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,i,o,a,c)=>{Ee("caret",t,s,i,o,a,c);let u;return Je(i)?u="":Je(o)?u=`>=${i}.0.0${r} <${+i+1}.0.0-0`:Je(a)?i==="0"?u=`>=${i}.${o}.0${r} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.0${r} <${+i+1}.0.0-0`:c?(Ee("replaceCaret pr",c),i==="0"?o==="0"?u=`>=${i}.${o}.${a}-${c} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a}-${c} <${+i+1}.0.0-0`):(Ee("no pr"),i==="0"?o==="0"?u=`>=${i}.${o}.${a} <${i}.${o}.${+a+1}-0`:u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`:u=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),Ee("caret return",u),u})},UP=(t,e)=>(Ee("replaceXRanges",t,e),t.split(/\s+/).map(n=>VP(n,e)).join(" ")),VP=(t,e)=>{t=t.trim();let n=e.loose?Dt[ct.XRANGELOOSE]:Dt[ct.XRANGE];return t.replace(n,(r,s,i,o,a,c)=>{if(Ee("xRange",t,r,s,i,o,a,c),MP(i,o,a))return t;let u=Je(i),h=u||Je(o),d=h||Je(a),p=d;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",u?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&p?(h&&(o=0),a=0,s===">"?(s=">=",h?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",h?i=+i+1:o=+o+1),s==="<"&&(c="-0"),r=`${s+i}.${o}.${a}${c}`):h?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),Ee("xRange return",r),r})},GP=(t,e)=>(Ee("replaceStars",t,e),t.trim().replace(Dt[ct.STAR],"")),HP=(t,e)=>(Ee("replaceGTE0",t,e),t.trim().replace(Dt[e.includePrerelease?ct.GTE0PRE:ct.GTE0],"")),qP=t=>(e,n,r,s,i,o,a,c,u,h,d,p)=>(Je(r)?n="":Je(s)?n=`>=${r}.0.0${t?"-0":""}`:Je(i)?n=`>=${r}.${s}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Je(u)?c="":Je(h)?c=`<${+u+1}.0.0-0`:Je(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()),WP=(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(Ee(t[r].semver),t[r].semver!==Th.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 ha=Y((mB,Bv)=>{"use strict";C();var fa=Symbol("SemVer ANY"),Nh=class t{static get ANY(){return fa}constructor(e,n){if(n=Lv(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Ch("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===fa?this.value="":this.value=this.operator+this.semver.version,Ch("comp",this)}parse(e){let n=this.options.loose?Mv[Ov.COMPARATORLOOSE]:Mv[Ov.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 Fv(r[2],this.options.loose):this.semver=fa}toString(){return this.value}test(e){if(Ch("Comparator.test",e,this.options.loose),this.semver===fa||e===fa)return!0;if(typeof e=="string")try{e=new Fv(e,this.options)}catch(n){return!1}return xh(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new $v(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new $v(this.value,n).test(e.semver):(n=Lv(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("=")||xh(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||xh(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Bv.exports=Nh;var Lv=ic(),{safeRe:Mv,t:Ov}=ki(),xh=Sh(),Ch=ua(),Fv=lt(),$v=cn()});var da=Y((yB,Uv)=>{"use strict";C();var jP=cn(),zP=(t,e,n)=>{try{e=new jP(e,n)}catch(r){return!1}return e.test(t)};Uv.exports=zP});var Gv=Y((SB,Vv)=>{"use strict";C();var KP=cn(),XP=(t,e)=>new KP(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));Vv.exports=XP});var qv=Y((wB,Hv)=>{"use strict";C();var YP=lt(),QP=cn(),JP=(t,e,n)=>{let r=null,s=null,i=null;try{i=new QP(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===-1)&&(r=o,s=new YP(r,n))}),r};Hv.exports=JP});var jv=Y((xB,Wv)=>{"use strict";C();var ZP=lt(),eL=cn(),tL=(t,e,n)=>{let r=null,s=null,i=null;try{i=new eL(e,n)}catch(o){return null}return t.forEach(o=>{i.test(o)&&(!r||s.compare(o)===1)&&(r=o,s=new ZP(r,n))}),r};Wv.exports=tL});var Xv=Y((NB,Kv)=>{"use strict";C();var Ih=lt(),nL=cn(),zv=pa(),rL=(t,e)=>{t=new nL(t,e);let n=new Ih("0.0.0");if(t.test(n)||(n=new Ih("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r<t.set.length;++r){let s=t.set[r],i=null;s.forEach(o=>{let a=new Ih(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||zv(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!n||zv(n,i))&&(n=i)}return n&&t.test(n)?n:null};Kv.exports=rL});var Qv=Y((AB,Yv)=>{"use strict";C();var sL=cn(),iL=(t,e)=>{try{return new sL(t,e).range||"*"}catch(n){return null}};Yv.exports=iL});var gc=Y((bB,tS)=>{"use strict";C();var oL=lt(),eS=ha(),{ANY:aL}=eS,lL=cn(),cL=da(),Jv=pa(),Zv=pc(),uL=fc(),pL=hc(),hL=(t,e,n,r)=>{t=new oL(t,r),e=new lL(e,r);let s,i,o,a,c;switch(n){case">":s=Jv,i=uL,o=Zv,a=">",c=">=";break;case"<":s=Zv,i=pL,o=Jv,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(cL(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===aL&&(g=new eS(">=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===a||d.operator===c||(!p.operator||p.operator===a)&&i(t,p.semver))return!1;if(p.operator===c&&o(t,p.semver))return!1}return!0};tS.exports=hL});var rS=Y((kB,nS)=>{"use strict";C();var fL=gc(),dL=(t,e,n)=>fL(t,e,">",n);nS.exports=dL});var iS=Y((PB,sS)=>{"use strict";C();var mL=gc(),gL=(t,e,n)=>mL(t,e,"<",n);sS.exports=gL});var lS=Y((MB,aS)=>{"use strict";C();var oS=cn(),yL=(t,e,n)=>(t=new oS(t,n),e=new oS(e,n),t.intersects(e,n));aS.exports=yL});var uS=Y((FB,cS)=>{"use strict";C();var vL=da(),SL=ln();cS.exports=(t,e,n)=>{let r=[],s=null,i=null,o=t.sort((h,d)=>SL(h,d,n));for(let h of o)vL(h,e,n)?(i=h,s||(s=h)):(i&&r.push([s,i]),i=null,s=null);s&&r.push([s,null]);let a=[];for(let[h,d]of r)h===d?a.push(h):!d&&h===o[0]?a.push("*"):d?h===o[0]?a.push(`<=${d}`):a.push(`${h} - ${d}`):a.push(`>=${h}`);let c=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return c.length<u.length?c:e}});var gS=Y((BB,mS)=>{"use strict";C();var pS=cn(),bh=ha(),{ANY:Ah}=bh,Dh=da(),_h=ln(),EL=(t,e,n={})=>{if(t===e)return!0;t=new pS(t,n),e=new pS(e,n);let r=!1;e:for(let s of t.set){for(let i of e.set){let o=TL(s,i,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},wL=[new bh(">=0.0.0-0")],hS=[new bh(">=0.0.0")],TL=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Ah){if(e.length===1&&e[0].semver===Ah)return!0;n.includePrerelease?t=wL:t=hS}if(e.length===1&&e[0].semver===Ah){if(n.includePrerelease)return!0;e=hS}let r=new Set,s,i;for(let g of t)g.operator===">"||g.operator===">="?s=fS(s,g,n):g.operator==="<"||g.operator==="<="?i=dS(i,g,n):r.add(g.semver);if(r.size>1)return null;let o;if(s&&i){if(o=_h(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&&!Dh(g,String(s),n)||i&&!Dh(g,String(i),n))return null;for(let v of e)if(!Dh(g,String(v),n))return!1;return!0}let a,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(a=fS(s,g,n),a===g&&a!==s)return!1}else if(s.operator===">="&&!g.test(s.semver))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=dS(i,g,n),c===g&&c!==i)return!1}else if(i.operator==="<="&&!g.test(i.semver))return!1}if(!g.operator&&(i||s)&&o!==0)return!1}return!(s&&u&&!i&&o!==0||i&&h&&!s&&o!==0||p||d)},fS=(t,e,n)=>{if(!t)return e;let r=_h(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},dS=(t,e,n)=>{if(!t)return e;let r=_h(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};mS.exports=EL});var ES=Y((VB,SS)=>{"use strict";C();var kh=ki(),yS=_i(),xL=lt(),vS=dh(),CL=Kr(),NL=Gy(),IL=qy(),AL=zy(),DL=Yy(),bL=Jy(),_L=ev(),kL=nv(),RL=sv(),PL=ln(),LL=lv(),ML=uv(),OL=uc(),FL=dv(),$L=gv(),BL=pa(),UL=pc(),VL=yh(),GL=vh(),HL=hc(),qL=fc(),WL=Sh(),jL=Nv(),zL=Av(),KL=ha(),XL=cn(),YL=da(),QL=Gv(),JL=qv(),ZL=jv(),eM=Xv(),tM=Qv(),nM=gc(),rM=rS(),sM=iS(),iM=lS(),oM=uS(),aM=gS();SS.exports={parse:CL,valid:NL,clean:IL,inc:AL,diff:DL,major:bL,minor:_L,patch:kL,prerelease:RL,compare:PL,rcompare:LL,compareLoose:ML,compareBuild:OL,sort:FL,rsort:$L,gt:BL,lt:UL,eq:VL,neq:GL,gte:HL,lte:qL,cmp:WL,coerce:jL,truncate:zL,Comparator:KL,Range:XL,satisfies:YL,toComparators:QL,maxSatisfying:JL,minSatisfying:ZL,minVersion:eM,validRange:tM,outside:nM,gtr:rM,ltr:sM,intersects:iM,simplifyRange:oM,subset:aM,SemVer:xL,re:kh.re,src:kh.src,tokens:kh.t,SEMVER_SPEC_VERSION:yS.SEMVER_SPEC_VERSION,RELEASE_TYPES:yS.RELEASE_TYPES,compareIdentifiers:vS.compareIdentifiers,rcompareIdentifiers:vS.rcompareIdentifiers}});var QO={};sE(QO,{angularJitApplicationTransform:()=>sc});module.exports=iE(QO);C();C();var KS=require("module");C();var MS=require("module");C();var LS=require("module");C();var yy=require("module");C();var iy=require("module");C();var qg=require("module");C();var Kh=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Er=class t{constructor(){l(this,"element",null);l(this,"classNames",[]);l(this,"attrs",[]);l(this,"notSelectors",[])}static parse(e){let n=[],r=(c,u)=>{u.notSelectors.length>0&&!u.element&&u.classNames.length==0&&u.attrs.length==0&&(u.element="*"),c.push(u)},s=new t,i,o=s,a=!1;for(Kh.lastIndex=0;i=Kh.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new t,s.notSelectors.push(o)}let c=i[2];if(c){let 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]&&(a=!1,o=s),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");r(n,s),s=o=new t}}return r(n,s),n}unescapeAttribute(e){let n="",r=!1;for(let s=0;s<e.length;s++){let i=e.charAt(s);if(i==="\\"){r=!0;continue}if(i==="$"&&!r)throw new Error(`Error in attribute selector "${e}". Unescaped "$" is not supported. Please escape with "\\$".`);r=!1,n+=i}return n}escapeAttribute(e){return e.replace(/\\/g,"\\\\").replace(/\$/g,"\\$")}isElementSelector(){return this.hasElementSelector()&&this.classNames.length==0&&this.attrs.length==0&&this.notSelectors.length===0}hasElementSelector(){return!!this.element}setElement(e=null){this.element=e}getAttrs(){let e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,n=""){this.attrs.push(e,n&&n.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(n=>e+=`.${n}`),this.attrs)for(let n=0;n<this.attrs.length;n+=2){let r=this.escapeAttribute(this.attrs[n]),s=this.attrs[n+1];e+=`[${r}${s?"="+s:""}]`}return this.notSelectors.forEach(n=>e+=`:not(${n})`),e}},Xs=class t{constructor(){l(this,"_elementMap",new Map);l(this,"_elementPartialMap",new Map);l(this,"_classMap",new Map);l(this,"_classPartialMap",new Map);l(this,"_attrValueMap",new Map);l(this,"_attrValuePartialMap",new Map);l(this,"_listContexts",[])}static createNotMatcher(e){let n=new t;return n.addSelectables(e,null),n}addSelectables(e,n){let r=null;e.length>1&&(r=new Uc(e),this._listContexts.push(r));for(let s=0;s<e.length;s++)this._addSelectable(e[s],n,r)}_addSelectable(e,n,r){let s=this,i=e.element,o=e.classNames,a=e.attrs,c=new Vc(e,n,r);if(i&&(a.length===0&&o.length===0?this._addTerminal(s._elementMap,i,c):s=this._addPartial(s._elementPartialMap,i)),o)for(let u=0;u<o.length;u++){let h=a.length===0&&u===o.length-1,d=o[u];h?this._addTerminal(s._classMap,d,c):s=this._addPartial(s._classPartialMap,d)}if(a)for(let u=0;u<a.length;u+=2){let h=u===a.length-2,d=a[u],p=a[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 a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,s,e,n)||r,r=this._matchPartial(this._elementPartialMap,s,e,n)||r,i)for(let a=0;a<i.length;a++){let c=i[a];r=this._matchTerminal(this._classMap,c,e,n)||r,r=this._matchPartial(this._classPartialMap,c,e,n)||r}if(o)for(let a=0;a<o.length;a+=2){let c=o[a],u=o[a+1],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 a,c=!1;for(let u=0;u<i.length;u++)a=i[u],c=a.finalize(r,s)||c;return c}_matchPartial(e,n,r,s){if(!e||typeof n!="string")return!1;let i=e.get(n);return i?i.match(r,s):!1}},Uc=class{constructor(e){l(this,"selectors");l(this,"alreadyMatched",!1);this.selectors=e}},Vc=class{constructor(e,n,r){l(this,"selector");l(this,"cbContext");l(this,"listContext");l(this,"notSelectors");this.selector=e,this.cbContext=n,this.listContext=r,this.notSelectors=e.notSelectors}finalize(e,n){let r=!0;return this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)&&(r=!Xs.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}},Ys=class{constructor(e){l(this,"registry");this.registry=e}match(e){return this.registry.has(e)?this.registry.get(e):[]}},re;(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"})(re||(re={}));var Ra,Gc="svg",Zd="math";function oE(){return Ra||(Ra={},ir(re.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),ir(re.STYLE,void 0,[["*",["style"]]]),ir(re.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),ir(re.URL,Zd,[["*",["href","xlink:href"]]]),ir(re.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),ir(re.URL,Gc,[["a",["href","xlink:href"]]]),ir(re.ATTRIBUTE_NO_BINDING,Gc,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),ir(re.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),Ra}function ir(t,e,n){for(let[r,s]of n){let i=r;e&&r!=="unknown"&&(i=`:${e}:${r}`),i=i.toLowerCase();for(let o of s)Ra[`${i}|${o.toLowerCase()}`]=t}}function aE(t,e,n){var o,a,c;let r=oE();e=e.toLowerCase(),t=t.toLowerCase();let s=t,i;return(n===Gc||n===Zd)&&(s=`:${n}:${t}`,i=`:${n}:*`),(c=(a=(o=r[s+"|"+e])!=null?o:i!==void 0?r[i+"|"+e]:void 0)!=null?a:r["*|"+e])!=null?c:re.NONE}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 Fa;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t[t.Eager=1]="Eager"})(Fa||(Fa={}));var Fs;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Fs||(Fs={}));var Hc={name:"custom-elements"},qc={name:"no-errors-schema"};var Xh;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Xh||(Xh={}));function lE(t){let e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&t.element!=="*"?t.element:"",...t.attrs,...e]}function cE(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 uE(t){let e=lE(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(r=>cE(r)):[];return e.concat(...n)}function vp(t){return t?Er.parse(t).map(uE):[]}var ht;(function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule",t[t.Service=5]="Service"})(ht||(ht={}));var Yh;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Yh||(Yh={}));var Qh;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(Qh||(Qh={}));var dr;function pE(t){return mE(dE(t.nodes).join("")+`[${t.meaning}]`)}function hE(t){return t.id||em(t)}function em(t){let e=new Wc,n=t.nodes.map(r=>r.visit(e,null));return tm(n.join(""),t.meaning)}var $a=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}">`}},fE=new $a;function dE(t){return t.map(e=>e.visit(fE,null))}var Wc=class extends $a{visitIcu(e){let n=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${n.join(", ")}}`}};function mE(t){dr!=null||(dr=new TextEncoder);let e=[...dr.encode(t)],n=vE(e,Ba.Big),r=e.length*8,s=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,c=271733878,u=3285377520;n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(let h=0;h<n.length;h+=16){let d=i,p=o,g=a,v=c,E=u;for(let I=0;I<80;I++){I<16?s[I]=n[h+I]:s[I]=Sc(s[I-3]^s[I-8]^s[I-14]^s[I-16],1);let D=gE(I,o,a,c),_=D[0],k=D[1],H=[Sc(i,5),_,u,k,s[I]].reduce(Ds);u=c,c=a,a=Sc(o,30),o=i,i=H}i=Ds(i,d),o=Ds(o,p),a=Ds(a,g),c=Ds(c,v),u=Ds(u,E)}return Mi(i)+Mi(o)+Mi(a)+Mi(c)+Mi(u)}function Mi(t){return(t>>>0).toString(16).padStart(8,"0")}function gE(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 Jh(t){dr!=null||(dr=new TextEncoder);let e=dr.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=Zh(n,e.length,0),s=Zh(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 tm(t,e=""){let n=Jh(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=Jh(e)),BigInt.asUintN(63,n).toString()}function Zh(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=ef(r,s,n);r=c[0],s=c[1],n=c[2]}let a=e-i;return n+=e,a>=4?(r+=t.getUint32(i,!0),i+=4,a>=8?(s+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(s+=t.getUint8(i++)),a>=6&&(s+=t.getUint8(i++)<<8),a===7&&(s+=t.getUint8(i++)<<16))):(a>=1&&(r+=t.getUint8(i++)),a>=2&&(r+=t.getUint8(i++)<<8),a===3&&(r+=t.getUint8(i++)<<16)),ef(r,s,n)[2]}function ef(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 Ba;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Ba||(Ba={}));function Ds(t,e){return yE(t,e)[1]}function yE(t,e){let n=(t&65535)+(e&65535),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|n&65535]}function Sc(t,e){return t<<e|t>>>32-e}function vE(t,e){let n=t.length+3>>>2,r=[];for(let s=0;s<n;s++)r[s]=SE(t,s*4,e);return r}function tf(t,e){return e>=t.length?0:t[e]}function SE(t,e,n){let r=0;if(n===Ba.Big)for(let s=0;s<4;s++)r+=tf(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)r+=tf(t,e+s)<<8*s;return r}var Ua;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(Ua||(Ua={}));var wr=class{constructor(e=Ua.None){l(this,"modifiers");this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Oe;(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"})(Oe||(Oe={}));var fn=class extends wr{constructor(n,r){super(r);l(this,"name");this.name=n}visitType(n,r){return n.visitBuiltinType(this,r)}},ft=class extends wr{constructor(n,r,s=null){super(r);l(this,"value");l(this,"typeParams");this.value=n,this.typeParams=s}visitType(n,r){return n.visitExpressionType(this,r)}},jc=class extends wr{constructor(n,r){super(r);l(this,"of");this.of=n}visitType(n,r){return n.visitArrayType(this,r)}},zc=class extends wr{constructor(n,r){super(r);l(this,"valueType");this.valueType=n||null}visitType(n,r){return n.visitMapType(this,r)}},so=class extends wr{constructor(n,r){super(r);l(this,"type");this.type=n}visitType(n,r){return n.visitTransplantedType(this,r)}},Ke=new fn(Oe.Dynamic),dn=new fn(Oe.Inferred),nm=new fn(Oe.Bool),EE=new fn(Oe.Int),Tr=new fn(Oe.Number),Dl=new fn(Oe.String),wE=new fn(Oe.Function),Lt=new fn(Oe.None),bn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(bn||(bn={}));var w;(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"})(w||(w={}));function rm(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function sm(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 Ct(t,e){return sm(t,e,(n,r)=>n.isEquivalent(r))}var oe=class{constructor(e,n,r){l(this,"leadingComments");l(this,"type");l(this,"sourceSpan");this.leadingComments=r,this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new ot(this,e,null,n)}key(e,n,r){return new rn(this,e,n,r)}callFn(e,n,r,s){return new Ae(this,e,null,n,r,s)}instantiate(e,n,r,s){return new Js(this,e,n,r)}conditional(e,n=null,r,s){return new mn(this,e,n,null,r)}equals(e,n){return new se(w.Equals,this,e,null,n)}notEquals(e,n){return new se(w.NotEquals,this,e,null,n)}identical(e,n){return new se(w.Identical,this,e,null,n)}notIdentical(e,n){return new se(w.NotIdentical,this,e,null,n)}minus(e,n){return new se(w.Minus,this,e,null,n)}plus(e,n){return new se(w.Plus,this,e,null,n)}divide(e,n){return new se(w.Divide,this,e,null,n)}multiply(e,n){return new se(w.Multiply,this,e,null,n)}modulo(e,n){return new se(w.Modulo,this,e,null,n)}power(e,n){return new se(w.Exponentiation,this,e,null,n)}and(e,n){return new se(w.And,this,e,null,n)}bitwiseOr(e,n){return new se(w.BitwiseOr,this,e,null,n)}bitwiseAnd(e,n){return new se(w.BitwiseAnd,this,e,null,n)}or(e,n){return new se(w.Or,this,e,null,n)}lower(e,n){return new se(w.Lower,this,e,null,n)}lowerEquals(e,n){return new se(w.LowerEquals,this,e,null,n)}bigger(e,n){return new se(w.Bigger,this,e,null,n)}biggerEquals(e,n){return new se(w.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(im,e)}nullishCoalesce(e,n){return new se(w.NullishCoalesce,this,e,null,n)}toStmt(e){return new tt(this,null,e)}},tn=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"name");this.name=n}isEquivalent(n){return n instanceof t&&this.name===n.name}isConstant(){return!1}visitExpression(n,r){return n.visitReadVarExpr(this,r)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(n){return new se(w.Assign,this,n,null,this.sourceSpan)}},xr=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitTypeofExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},io=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitVoidExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},W=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"node");this.node=n}isEquivalent(n){return n instanceof t&&this.node===n.node}isConstant(){return!1}visitExpression(n,r){return n.visitWrappedNodeExpr(this,r)}clone(){return new t(this.node,this.type,this.sourceSpan)}},Ae=class t extends oe{constructor(n,r,s,i,o=!1,a,c=!1){super(s,i,a);l(this,"fn");l(this,"args");l(this,"pure");l(this,"isOptional");this.fn=n,this.args=r,this.pure=o,this.isOptional=c}get receiver(){return this.fn}isEquivalent(n){return n instanceof t&&this.fn.isEquivalent(n.fn)&&Ct(this.args,n.args)&&this.pure===n.pure}isConstant(){return!1}visitExpression(n,r){return n.visitInvokeFunctionExpr(this,r)}clone(){return new t(this.fn.clone(),this.args.map(n=>n.clone()),this.type,this.sourceSpan,this.pure,[],this.isOptional)}},Qs=class t extends oe{constructor(n,r,s,i,o){super(s,i,o);l(this,"tag");l(this,"template");this.tag=n,this.template=r}isEquivalent(n){return n instanceof t&&this.tag.isEquivalent(n.tag)&&this.template.isEquivalent(n.template)}isConstant(){return!1}visitExpression(n,r){return n.visitTaggedTemplateLiteralExpr(this,r)}clone(){return new t(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},Js=class t extends oe{constructor(n,r,s,i,o){super(s,i,o);l(this,"classExpr");l(this,"args");this.classExpr=n,this.args=r}isEquivalent(n){return n instanceof t&&this.classExpr.isEquivalent(n.classExpr)&&Ct(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)}},ps=class t extends oe{constructor(n,r,s,i){super(null,s,i);l(this,"body");l(this,"flags");this.body=n,this.flags=r}isEquivalent(n){return n instanceof t&&this.body===n.body&&this.flags===n.flags}isConstant(){return!0}visitExpression(n,r){return n.visitRegularExpressionLiteral(this,r)}clone(){return new t(this.body,this.flags,this.sourceSpan)}},ke=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value===n.value}isConstant(){return!0}visitExpression(n,r){return n.visitLiteralExpr(this,r)}clone(){return new t(this.value,this.type,this.sourceSpan)}},Zs=class t extends oe{constructor(n,r,s,i){super(null,s,i);l(this,"elements");l(this,"expressions");this.elements=n,this.expressions=r}isEquivalent(n){return n instanceof t&&sm(this.elements,n.elements,(r,s)=>r.text===s.text)&&Ct(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()))}},oo=class t extends oe{constructor(n,r,s,i){super(Dl,r,i);l(this,"text");l(this,"rawText");this.text=n,this.rawText=s!=null?s:Kc(Pa(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)}},yr=class{constructor(e,n){l(this,"text");l(this,"sourceSpan");this.text=e,this.sourceSpan=n}},ns=class{constructor(e,n,r){l(this,"text");l(this,"sourceSpan");l(this,"associatedMessage");this.text=e,this.sourceSpan=n,this.associatedMessage=r}},TE="|",nf="@@",xE="\u241F",ao=class t extends oe{constructor(n,r,s,i,o,a){super(Dl,o,a);l(this,"metaBlock");l(this,"messageParts");l(this,"placeHolderNames");l(this,"expressions");this.metaBlock=n,this.messageParts=r,this.placeHolderNames=s,this.expressions=i}isEquivalent(n){return!1}isConstant(){return!1}visitExpression(n,r){return n.visitLocalizedString(this,r)}clone(){return new t(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(n=>n.clone()),this.sourceSpan)}serializeI18nHead(){let n=this.metaBlock.description||"";return this.metaBlock.meaning&&(n=`${this.metaBlock.meaning}${TE}${n}`),this.metaBlock.customId&&(n=`${n}${nf}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(r=>{n=`${n}${xE}${r}`}),rf(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+=`${nf}${tm(r.associatedMessage.messageString,r.associatedMessage.meaning)}`),rf(i,s.text,this.getMessagePartSourceSpan(n))}},Pa=t=>t.replace(/\\/g,"\\\\"),CE=t=>t.replace(/^:/,"\\:"),NE=t=>t.replace(/:/g,"\\:"),Kc=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function rf(t,e,n){return t===""?{cooked:e,raw:Kc(CE(Pa(e))),range:n}:{cooked:`:${t}:${e}`,raw:Kc(`:${NE(Pa(t))}:${Pa(e)}`),range:n}}var et=class t extends oe{constructor(n,r,s=null,i,o){super(r,i,o);l(this,"value");l(this,"typeParams");this.value=n,this.typeParams=s}isEquivalent(n){return n instanceof t&&this.value.name===n.value.name&&this.value.moduleName===n.value.moduleName}isConstant(){return!1}visitExpression(n,r){return n.visitExternalExpr(this,r)}clone(){return new t(this.value,this.type,this.typeParams,this.sourceSpan)}},lo=class{constructor(e,n){l(this,"moduleName");l(this,"name");this.moduleName=e,this.name=n}},mn=class t extends oe{constructor(n,r,s=null,i,o,a){super(i||r.type,o,a);l(this,"condition");l(this,"falseCase");l(this,"trueCase");this.condition=n,this.falseCase=s,this.trueCase=r}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&this.trueCase.isEquivalent(n.trueCase)&&rm(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)}},Xc=class t extends oe{constructor(n,r,s,i){super(null,r,i);l(this,"url");l(this,"urlComment");this.url=n,this.urlComment=s}isEquivalent(n){return n instanceof t&&this.url===n.url&&this.urlComment===n.urlComment}isConstant(){return!1}visitExpression(n,r){return n.visitDynamicImportExpr(this,r)}clone(){return new t(typeof this.url=="string"?this.url:this.url.clone(),this.sourceSpan,this.urlComment)}},ei=class t extends oe{constructor(n,r,s){super(nm,r,s);l(this,"condition");this.condition=n}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)}isConstant(){return!1}visitExpression(n,r){return n.visitNotExpr(this,r)}clone(){return new t(this.condition.clone(),this.sourceSpan)}},Be=class t{constructor(e,n=null){l(this,"name");l(this,"type");this.name=e,this.type=n}isEquivalent(e){return this.name===e.name}clone(){return new t(this.name,this.type)}},hn=class t extends oe{constructor(n,r,s,i,o,a){super(s,i,a);l(this,"params");l(this,"statements");l(this,"name");this.params=n,this.statements=r,this.name=o}isEquivalent(n){return(n instanceof t||n instanceof ti)&&Ct(this.params,n.params)&&Ct(this.statements,n.statements)}isConstant(){return!1}visitExpression(n,r){return n.visitFunctionExpr(this,r)}toDeclStmt(n,r){return new ti(n,this.params,this.statements,this.type,r,this.sourceSpan)}clone(){return new t(this.params.map(n=>n.clone()),this.statements,this.type,this.sourceSpan,this.name)}},gn=class Yc extends oe{constructor(n,r,s,i,o){super(s,i,o);l(this,"params");l(this,"body");this.params=n,this.body=r}isEquivalent(n){return!(n instanceof Yc)||!Ct(this.params,n.params)?!1:this.body instanceof oe&&n.body instanceof oe?this.body.isEquivalent(n.body):Array.isArray(this.body)&&Array.isArray(n.body)?Ct(this.body,n.body):!1}isConstant(){return!1}visitExpression(n,r){return n.visitArrowFunctionExpr(this,r)}clone(){return new Yc(this.params.map(n=>n.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(n,r){return new Xe(n,this,dn,r,this.sourceSpan)}},qn=class t extends oe{constructor(n,r,s,i,o=!0,a){super(s||Tr,i,a);l(this,"operator");l(this,"expr");l(this,"parens");this.operator=n,this.expr=r,this.parens=o}isEquivalent(n){return n instanceof t&&this.operator===n.operator&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}visitExpression(n,r){return n.visitUnaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},nn=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"expr");this.expr=n}visitExpression(n,r){return n.visitParenthesizedExpr(this,r)}isEquivalent(n){return n instanceof t&&n.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}},se=class t extends oe{constructor(n,r,s,i,o,a){super(i||r.type,o,a);l(this,"operator");l(this,"rhs");l(this,"lhs");this.operator=n,this.rhs=s,this.lhs=r}isEquivalent(n){return n instanceof t&&this.operator===n.operator&&this.lhs.isEquivalent(n.lhs)&&this.rhs.isEquivalent(n.rhs)}isConstant(){return!1}visitExpression(n,r){return n.visitBinaryOperatorExpr(this,r)}clone(){return new t(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let n=this.operator;return n===w.Assign||n===w.AdditionAssignment||n===w.SubtractionAssignment||n===w.MultiplicationAssignment||n===w.DivisionAssignment||n===w.RemainderAssignment||n===w.ExponentiationAssignment||n===w.AndAssignment||n===w.OrAssignment||n===w.NullishCoalesceAssignment}},ot=class t extends oe{constructor(n,r,s,i,o,a=!1){super(s,i,o);l(this,"receiver");l(this,"name");l(this,"isOptional");this.receiver=n,this.name=r,this.isOptional=a}get index(){return this.name}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.name===n.name&&this.isOptional===n.isOptional}isConstant(){return!1}visitExpression(n,r){return n.visitReadPropExpr(this,r)}set(n){return new se(w.Assign,this.receiver.prop(this.name),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.name,this.type,this.sourceSpan,[],this.isOptional)}},rn=class t extends oe{constructor(n,r,s,i,o,a=!1){super(s,i,o);l(this,"receiver");l(this,"index");l(this,"isOptional");this.receiver=n,this.index=r,this.isOptional=a}isEquivalent(n){return n instanceof t&&this.receiver.isEquivalent(n.receiver)&&this.index.isEquivalent(n.index)&&this.isOptional===n.isOptional}isConstant(){return!1}visitExpression(n,r){return n.visitReadKeyExpr(this,r)}set(n){return new se(w.Assign,this.receiver.key(this.index),n,null,this.sourceSpan)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan,[],this.isOptional)}},Mt=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"entries");this.entries=n}isConstant(){return this.entries.every(n=>n.isConstant())}isEquivalent(n){return n instanceof t&&Ct(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)}},Cr=class t{constructor(e,n,r){l(this,"key");l(this,"value");l(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()}},yn=class t{constructor(e){l(this,"expression");this.expression=e}isEquivalent(e){return e instanceof t&&this.expression.isEquivalent(e.expression)}clone(){return new t(this.expression.clone())}isConstant(){return this.expression.isConstant()}},sn=class t extends oe{constructor(n,r,s,i){super(r,s,i);l(this,"entries");l(this,"valueType",null);this.entries=n,r&&(this.valueType=r.valueType)}isEquivalent(n){return n instanceof t&&Ct(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)}},Qc=class t extends oe{constructor(n,r,s){super(n[n.length-1].type,r,s);l(this,"parts");this.parts=n}isEquivalent(n){return n instanceof t&&Ct(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()))}},Nr=class t extends oe{constructor(n,r,s){super(null,r,s);l(this,"expression");this.expression=n}isEquivalent(n){return n instanceof t&&this.expression.isEquivalent(n.expression)}isConstant(){return this.expression.isConstant()}visitExpression(n,r){return n.visitSpreadElementExpr(this,r)}clone(){return new t(this.expression.clone(),this.sourceSpan)}},hs=new ke(null,null,null),im=new ke(null,dn,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 co=class{constructor(e,n,r){l(this,"text");l(this,"multiline");l(this,"trailingNewline");this.text=e,this.multiline=n,this.trailingNewline=r}toString(){return this.multiline?` ${this.text} `:this.text}},uo=class extends co{constructor(n){super("",!0,!0);l(this,"tags");this.tags=n}toString(){return kE(this.tags)}},Ir=class{constructor(e=Ue.None,n=null,r){l(this,"modifiers");l(this,"sourceSpan");l(this,"leadingComments");this.modifiers=e,this.sourceSpan=n,this.leadingComments=r}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){var n;this.leadingComments=(n=this.leadingComments)!=null?n:[],this.leadingComments.push(e)}},Xe=class t extends Ir{constructor(n,r,s,i,o,a){super(i,o,a);l(this,"name");l(this,"value");l(this,"type");this.name=n,this.value=r,this.type=s||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)}},ti=class t extends Ir{constructor(n,r,s,i,o,a,c){super(o,a,c);l(this,"name");l(this,"params");l(this,"statements");l(this,"type");this.name=n,this.params=r,this.statements=s,this.type=i||null}isEquivalent(n){return n instanceof t&&Ct(this.params,n.params)&&Ct(this.statements,n.statements)}visitStatement(n,r){return n.visitDeclareFunctionStmt(this,r)}},tt=class t extends Ir{constructor(n,r,s){super(Ue.None,r,s);l(this,"expr");this.expr=n}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}visitStatement(n,r){return n.visitExpressionStmt(this,r)}},_e=class t extends Ir{constructor(n,r=null,s){super(Ue.None,r,s);l(this,"value");this.value=n}isEquivalent(n){return n instanceof t&&this.value.isEquivalent(n.value)}visitStatement(n,r){return n.visitReturnStmt(this,r)}},po=class t extends Ir{constructor(n,r,s=[],i,o){super(Ue.None,i,o);l(this,"condition");l(this,"trueCase");l(this,"falseCase");this.condition=n,this.trueCase=r,this.falseCase=s}isEquivalent(n){return n instanceof t&&this.condition.isEquivalent(n.condition)&&Ct(this.trueCase,n.trueCase)&&Ct(this.falseCase,n.falseCase)}visitStatement(n,r){return n.visitIfStmt(this,r)}},IE=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 yn?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 Sp(t,e=!1,n=!0){return new co(t,e,n)}function om(t=[]){return new uo(t)}function Z(t,e,n,r){return new tn(t,e,n,r)}function R(t,e=null,n){return new et(t,null,e,n)}function AE(t,e,n){return t!=null?Ve(R(t,e,null),n):null}function Ve(t,e,n){return new ft(t,e,n)}function DE(t,e){return new so(t,e)}function Ei(t){return new xr(t)}function ce(t,e,n){return new Mt(t,e,n)}function Nt(t,e=null){return new sn(t.map(n=>new Cr(n.key,n.value,n.quoted)),e,null)}function bE(t,e,n,r){return new qn(t,e,n,r)}function am(t,e){return new ei(t,e)}function Wn(t,e,n,r,s){return new hn(t,e,n,r,s)}function It(t,e,n,r){return new gn(t,e,n,r)}function ta(t,e,n,r,s){return new po(t,e,n,r,s)}function lm(t,e,n,r){return new Qs(t,e,n,r)}function S(t,e,n){return new ke(t,e,n)}function cm(t,e,n,r,s){return new ao(t,e,n,r,s)}function _E(t){return t instanceof ke&&t.value===null}function sf(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 kE(t){if(t.length===0)return"";if(t.length===1&&t[0].tagName&&!t[0].text)return`*${sf(t[0])} `;let e=`*
|
|
2
2
|
`;for(let n of t)e+=" *",e+=sf(n).replace(/\n/g,`
|
|
3
3
|
* `),e+=`
|
|
4
|
-
`;return e+=" ",e}var Gr=Object.freeze({__proto__:null,ArrayType:Wc,ArrowFunctionExpr:gn,BOOL_TYPE:tm,get BinaryOperator(){return w},BinaryOperatorExpr:se,BuiltinType:fn,get BuiltinTypeName(){return Oe},CommaExpr:Yc,ConditionalExpr:mn,DYNAMIC_TYPE:Ke,DeclareFunctionStmt:ti,DeclareVarStmt:Xe,DynamicImportExpr:Kc,Expression:oe,ExpressionStatement:et,ExpressionType:pt,ExternalExpr:Ze,ExternalReference:co,FUNCTION_TYPE:EE,FnParam:Be,FunctionExpr:hn,INFERRED_TYPE:dn,INT_TYPE:SE,IfStmt:ho,InstantiateExpr:Js,InvokeFunctionExpr:Ae,JSDocComment:po,LeadingComment:uo,LiteralArrayExpr:Mt,LiteralExpr:_e,LiteralMapExpr:sn,LiteralMapPropertyAssignment:Cr,LiteralMapSpreadAssignment:yn,LiteralPiece:yr,LocalizedString:lo,MapType:jc,NONE_TYPE:Lt,NULL_EXPR:hs,NUMBER_TYPE:Tr,NotExpr:ei,ParenthesizedExpr:nn,PlaceholderPiece:ns,ReadKeyExpr:rn,ReadPropExpr:st,ReadVarExpr:tn,RecursiveAstVisitor:NE,RegularExpressionLiteralExpr:ps,ReturnStatement:ke,STRING_TYPE:Dl,SpreadElementExpr:Nr,Statement:Ir,get StmtModifier(){return Ue},TYPED_NULL_EXPR:sm,TaggedTemplateLiteralExpr:Qs,TemplateLiteralElementExpr:ao,TemplateLiteralExpr:Zs,TransplantedType:io,Type:wr,get TypeModifier(){return Ua},TypeofExpr:xr,get UnaryOperator(){return bn},UnaryOperatorExpr:qn,VoidExpr:oo,WrappedNodeExpr:W,areAllEquivalent:xt,arrowFn:Nt,expressionType:Ve,fn:Wn,ifStmt:na,importExpr:R,importType:IE,isNull:bE,jsDocComment:im,leadingComment:vp,literal:S,literalArr:ce,literalMap:Ct,localizedString:lm,not:om,nullSafeIsEquivalent:nm,taggedTemplate:am,transplantedType:AE,typeofExpr:Ei,unary:DE,variable:Z}),_E="_c",RE={},PE=50,Va=class t extends oe{constructor(n){super(n.type);l(this,"resolved");l(this,"original");l(this,"shared",!1);this.resolved=n,this.original=n}visitExpression(n,r){return r===RE?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}},ni=class{constructor(e=!1){l(this,"isClosureCompilerEnabled");l(this,"statements",[]);l(this,"literals",new Map);l(this,"literalFactories",new Map);l(this,"sharedConstants",new Map);l(this,"_claimedNames",new Map);l(this,"nextNameIndex",0);this.isClosureCompilerEnabled=e}getConstLiteral(e,n){if(e instanceof _e&&!of(e)||e instanceof Va)return e;let r=fo.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new Va(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),a,c;this.isClosureCompilerEnabled&&of(e)?(a=new hn([],[new ke(e)]),c=Z(o).callFn([])):(a=e,c=Z(o)),this.statements.push(new Xe(o,a,dn,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,Z(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getSharedFunctionReference(e,n,r=!0){var o;let s=e instanceof gn;for(let a of this.statements)if(s&&a instanceof Xe&&((o=a.value)!=null&&o.isEquivalent(e))||!s&&a instanceof ti&&e instanceof hn&&e.isEquivalent(a))return Z(a.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof hn?e.toDeclStmt(i,Ue.Final):new Xe(i,e,dn,Ue.Final,e.sourceSpan)),Z(i)}uniqueName(e,n=!0){var i;let r=(i=this._claimedNames.get(e))!=null?i:0,s=r===0&&!n?`${e}`:`${e}${r}`;return this._claimedNames.set(e,r+1),s}freshName(){return this.uniqueName(_E)}},Al=class Al{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 ps)return`/${e.body}/${(n=e.flags)!=null?n:""}`;if(e instanceof Mt){let r=[];for(let s of e.entries)r.push(this.keyOf(s));return`[${r.join(",")}]`}else if(e instanceof sn){let r=[];for(let s of e.entries)if(s instanceof yn)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 Ze)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof tn)return`read(${e.name})`;if(e instanceof xr)return`typeof(${this.keyOf(e.expr)})`;if(e instanceof Nr)return`...${this.keyOf(e.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};l(Al,"INSTANCE",new Al);var fo=Al;function of(t){return t instanceof _e&&typeof t.value=="string"&&t.value.length>=PE}var y="@angular/core",m=class{};l(m,"core",{name:null,moduleName:y}),l(m,"namespaceHTML",{name:"\u0275\u0275namespaceHTML",moduleName:y}),l(m,"namespaceMathML",{name:"\u0275\u0275namespaceMathML",moduleName:y}),l(m,"namespaceSVG",{name:"\u0275\u0275namespaceSVG",moduleName:y}),l(m,"element",{name:"\u0275\u0275element",moduleName:y}),l(m,"elementStart",{name:"\u0275\u0275elementStart",moduleName:y}),l(m,"elementEnd",{name:"\u0275\u0275elementEnd",moduleName:y}),l(m,"domElement",{name:"\u0275\u0275domElement",moduleName:y}),l(m,"domElementStart",{name:"\u0275\u0275domElementStart",moduleName:y}),l(m,"domElementEnd",{name:"\u0275\u0275domElementEnd",moduleName:y}),l(m,"domElementContainer",{name:"\u0275\u0275domElementContainer",moduleName:y}),l(m,"domElementContainerStart",{name:"\u0275\u0275domElementContainerStart",moduleName:y}),l(m,"domElementContainerEnd",{name:"\u0275\u0275domElementContainerEnd",moduleName:y}),l(m,"domTemplate",{name:"\u0275\u0275domTemplate",moduleName:y}),l(m,"domListener",{name:"\u0275\u0275domListener",moduleName:y}),l(m,"advance",{name:"\u0275\u0275advance",moduleName:y}),l(m,"syntheticHostProperty",{name:"\u0275\u0275syntheticHostProperty",moduleName:y}),l(m,"syntheticHostListener",{name:"\u0275\u0275syntheticHostListener",moduleName:y}),l(m,"attribute",{name:"\u0275\u0275attribute",moduleName:y}),l(m,"classProp",{name:"\u0275\u0275classProp",moduleName:y}),l(m,"elementContainerStart",{name:"\u0275\u0275elementContainerStart",moduleName:y}),l(m,"elementContainerEnd",{name:"\u0275\u0275elementContainerEnd",moduleName:y}),l(m,"elementContainer",{name:"\u0275\u0275elementContainer",moduleName:y}),l(m,"styleMap",{name:"\u0275\u0275styleMap",moduleName:y}),l(m,"classMap",{name:"\u0275\u0275classMap",moduleName:y}),l(m,"styleProp",{name:"\u0275\u0275styleProp",moduleName:y}),l(m,"interpolate",{name:"\u0275\u0275interpolate",moduleName:y}),l(m,"interpolate1",{name:"\u0275\u0275interpolate1",moduleName:y}),l(m,"interpolate2",{name:"\u0275\u0275interpolate2",moduleName:y}),l(m,"interpolate3",{name:"\u0275\u0275interpolate3",moduleName:y}),l(m,"interpolate4",{name:"\u0275\u0275interpolate4",moduleName:y}),l(m,"interpolate5",{name:"\u0275\u0275interpolate5",moduleName:y}),l(m,"interpolate6",{name:"\u0275\u0275interpolate6",moduleName:y}),l(m,"interpolate7",{name:"\u0275\u0275interpolate7",moduleName:y}),l(m,"interpolate8",{name:"\u0275\u0275interpolate8",moduleName:y}),l(m,"interpolateV",{name:"\u0275\u0275interpolateV",moduleName:y}),l(m,"nextContext",{name:"\u0275\u0275nextContext",moduleName:y}),l(m,"resetView",{name:"\u0275\u0275resetView",moduleName:y}),l(m,"templateCreate",{name:"\u0275\u0275template",moduleName:y}),l(m,"defer",{name:"\u0275\u0275defer",moduleName:y}),l(m,"deferWhen",{name:"\u0275\u0275deferWhen",moduleName:y}),l(m,"deferOnIdle",{name:"\u0275\u0275deferOnIdle",moduleName:y}),l(m,"deferOnImmediate",{name:"\u0275\u0275deferOnImmediate",moduleName:y}),l(m,"deferOnTimer",{name:"\u0275\u0275deferOnTimer",moduleName:y}),l(m,"deferOnHover",{name:"\u0275\u0275deferOnHover",moduleName:y}),l(m,"deferOnInteraction",{name:"\u0275\u0275deferOnInteraction",moduleName:y}),l(m,"deferOnViewport",{name:"\u0275\u0275deferOnViewport",moduleName:y}),l(m,"deferPrefetchWhen",{name:"\u0275\u0275deferPrefetchWhen",moduleName:y}),l(m,"deferPrefetchOnIdle",{name:"\u0275\u0275deferPrefetchOnIdle",moduleName:y}),l(m,"deferPrefetchOnImmediate",{name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:y}),l(m,"deferPrefetchOnTimer",{name:"\u0275\u0275deferPrefetchOnTimer",moduleName:y}),l(m,"deferPrefetchOnHover",{name:"\u0275\u0275deferPrefetchOnHover",moduleName:y}),l(m,"deferPrefetchOnInteraction",{name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:y}),l(m,"deferPrefetchOnViewport",{name:"\u0275\u0275deferPrefetchOnViewport",moduleName:y}),l(m,"deferHydrateWhen",{name:"\u0275\u0275deferHydrateWhen",moduleName:y}),l(m,"deferHydrateNever",{name:"\u0275\u0275deferHydrateNever",moduleName:y}),l(m,"deferHydrateOnIdle",{name:"\u0275\u0275deferHydrateOnIdle",moduleName:y}),l(m,"deferHydrateOnImmediate",{name:"\u0275\u0275deferHydrateOnImmediate",moduleName:y}),l(m,"deferHydrateOnTimer",{name:"\u0275\u0275deferHydrateOnTimer",moduleName:y}),l(m,"deferHydrateOnHover",{name:"\u0275\u0275deferHydrateOnHover",moduleName:y}),l(m,"deferHydrateOnInteraction",{name:"\u0275\u0275deferHydrateOnInteraction",moduleName:y}),l(m,"deferHydrateOnViewport",{name:"\u0275\u0275deferHydrateOnViewport",moduleName:y}),l(m,"deferEnableTimerScheduling",{name:"\u0275\u0275deferEnableTimerScheduling",moduleName:y}),l(m,"enableIncrementalHydrationRuntime",{name:"\u0275\u0275enableIncrementalHydrationRuntime",moduleName:y}),l(m,"conditionalCreate",{name:"\u0275\u0275conditionalCreate",moduleName:y}),l(m,"conditionalBranchCreate",{name:"\u0275\u0275conditionalBranchCreate",moduleName:y}),l(m,"conditional",{name:"\u0275\u0275conditional",moduleName:y}),l(m,"repeater",{name:"\u0275\u0275repeater",moduleName:y}),l(m,"repeaterCreate",{name:"\u0275\u0275repeaterCreate",moduleName:y}),l(m,"repeaterTrackByIndex",{name:"\u0275\u0275repeaterTrackByIndex",moduleName:y}),l(m,"repeaterTrackByIdentity",{name:"\u0275\u0275repeaterTrackByIdentity",moduleName:y}),l(m,"componentInstance",{name:"\u0275\u0275componentInstance",moduleName:y}),l(m,"text",{name:"\u0275\u0275text",moduleName:y}),l(m,"enableBindings",{name:"\u0275\u0275enableBindings",moduleName:y}),l(m,"disableBindings",{name:"\u0275\u0275disableBindings",moduleName:y}),l(m,"getCurrentView",{name:"\u0275\u0275getCurrentView",moduleName:y}),l(m,"textInterpolate",{name:"\u0275\u0275textInterpolate",moduleName:y}),l(m,"textInterpolate1",{name:"\u0275\u0275textInterpolate1",moduleName:y}),l(m,"textInterpolate2",{name:"\u0275\u0275textInterpolate2",moduleName:y}),l(m,"textInterpolate3",{name:"\u0275\u0275textInterpolate3",moduleName:y}),l(m,"textInterpolate4",{name:"\u0275\u0275textInterpolate4",moduleName:y}),l(m,"textInterpolate5",{name:"\u0275\u0275textInterpolate5",moduleName:y}),l(m,"textInterpolate6",{name:"\u0275\u0275textInterpolate6",moduleName:y}),l(m,"textInterpolate7",{name:"\u0275\u0275textInterpolate7",moduleName:y}),l(m,"textInterpolate8",{name:"\u0275\u0275textInterpolate8",moduleName:y}),l(m,"textInterpolateV",{name:"\u0275\u0275textInterpolateV",moduleName:y}),l(m,"restoreView",{name:"\u0275\u0275restoreView",moduleName:y}),l(m,"pureFunction0",{name:"\u0275\u0275pureFunction0",moduleName:y}),l(m,"pureFunction1",{name:"\u0275\u0275pureFunction1",moduleName:y}),l(m,"pureFunction2",{name:"\u0275\u0275pureFunction2",moduleName:y}),l(m,"pureFunction3",{name:"\u0275\u0275pureFunction3",moduleName:y}),l(m,"pureFunction4",{name:"\u0275\u0275pureFunction4",moduleName:y}),l(m,"pureFunction5",{name:"\u0275\u0275pureFunction5",moduleName:y}),l(m,"pureFunction6",{name:"\u0275\u0275pureFunction6",moduleName:y}),l(m,"pureFunction7",{name:"\u0275\u0275pureFunction7",moduleName:y}),l(m,"pureFunction8",{name:"\u0275\u0275pureFunction8",moduleName:y}),l(m,"pureFunctionV",{name:"\u0275\u0275pureFunctionV",moduleName:y}),l(m,"pipeBind1",{name:"\u0275\u0275pipeBind1",moduleName:y}),l(m,"pipeBind2",{name:"\u0275\u0275pipeBind2",moduleName:y}),l(m,"pipeBind3",{name:"\u0275\u0275pipeBind3",moduleName:y}),l(m,"pipeBind4",{name:"\u0275\u0275pipeBind4",moduleName:y}),l(m,"pipeBindV",{name:"\u0275\u0275pipeBindV",moduleName:y}),l(m,"domProperty",{name:"\u0275\u0275domProperty",moduleName:y}),l(m,"ariaProperty",{name:"\u0275\u0275ariaProperty",moduleName:y}),l(m,"property",{name:"\u0275\u0275property",moduleName:y}),l(m,"control",{name:"\u0275\u0275control",moduleName:y}),l(m,"controlCreate",{name:"\u0275\u0275controlCreate",moduleName:y}),l(m,"animationEnterListener",{name:"\u0275\u0275animateEnterListener",moduleName:y}),l(m,"animationLeaveListener",{name:"\u0275\u0275animateLeaveListener",moduleName:y}),l(m,"animationEnter",{name:"\u0275\u0275animateEnter",moduleName:y}),l(m,"animationLeave",{name:"\u0275\u0275animateLeave",moduleName:y}),l(m,"i18n",{name:"\u0275\u0275i18n",moduleName:y}),l(m,"i18nAttributes",{name:"\u0275\u0275i18nAttributes",moduleName:y}),l(m,"i18nExp",{name:"\u0275\u0275i18nExp",moduleName:y}),l(m,"i18nStart",{name:"\u0275\u0275i18nStart",moduleName:y}),l(m,"i18nEnd",{name:"\u0275\u0275i18nEnd",moduleName:y}),l(m,"i18nApply",{name:"\u0275\u0275i18nApply",moduleName:y}),l(m,"i18nPostprocess",{name:"\u0275\u0275i18nPostprocess",moduleName:y}),l(m,"pipe",{name:"\u0275\u0275pipe",moduleName:y}),l(m,"projection",{name:"\u0275\u0275projection",moduleName:y}),l(m,"projectionDef",{name:"\u0275\u0275projectionDef",moduleName:y}),l(m,"reference",{name:"\u0275\u0275reference",moduleName:y}),l(m,"inject",{name:"\u0275\u0275inject",moduleName:y}),l(m,"injectAttribute",{name:"\u0275\u0275injectAttribute",moduleName:y}),l(m,"directiveInject",{name:"\u0275\u0275directiveInject",moduleName:y}),l(m,"invalidFactory",{name:"\u0275\u0275invalidFactory",moduleName:y}),l(m,"invalidFactoryDep",{name:"\u0275\u0275invalidFactoryDep",moduleName:y}),l(m,"templateRefExtractor",{name:"\u0275\u0275templateRefExtractor",moduleName:y}),l(m,"forwardRef",{name:"forwardRef",moduleName:y}),l(m,"resolveForwardRef",{name:"resolveForwardRef",moduleName:y}),l(m,"replaceMetadata",{name:"\u0275\u0275replaceMetadata",moduleName:y}),l(m,"getReplaceMetadataURL",{name:"\u0275\u0275getReplaceMetadataURL",moduleName:y}),l(m,"\u0275\u0275defineInjectable",{name:"\u0275\u0275defineInjectable",moduleName:y}),l(m,"declareInjectable",{name:"\u0275\u0275ngDeclareInjectable",moduleName:y}),l(m,"InjectableDeclaration",{name:"\u0275\u0275InjectableDeclaration",moduleName:y}),l(m,"defineService",{name:"\u0275\u0275defineService",moduleName:y}),l(m,"declareService",{name:"\u0275\u0275ngDeclareService",moduleName:y}),l(m,"resolveWindow",{name:"\u0275\u0275resolveWindow",moduleName:y}),l(m,"resolveDocument",{name:"\u0275\u0275resolveDocument",moduleName:y}),l(m,"resolveBody",{name:"\u0275\u0275resolveBody",moduleName:y}),l(m,"getComponentDepsFactory",{name:"\u0275\u0275getComponentDepsFactory",moduleName:y}),l(m,"defineComponent",{name:"\u0275\u0275defineComponent",moduleName:y}),l(m,"declareComponent",{name:"\u0275\u0275ngDeclareComponent",moduleName:y}),l(m,"setComponentScope",{name:"\u0275\u0275setComponentScope",moduleName:y}),l(m,"ChangeDetectionStrategy",{name:"ChangeDetectionStrategy",moduleName:y}),l(m,"ViewEncapsulation",{name:"ViewEncapsulation",moduleName:y}),l(m,"ComponentDeclaration",{name:"\u0275\u0275ComponentDeclaration",moduleName:y}),l(m,"FactoryDeclaration",{name:"\u0275\u0275FactoryDeclaration",moduleName:y}),l(m,"declareFactory",{name:"\u0275\u0275ngDeclareFactory",moduleName:y}),l(m,"FactoryTarget",{name:"\u0275\u0275FactoryTarget",moduleName:y}),l(m,"defineDirective",{name:"\u0275\u0275defineDirective",moduleName:y}),l(m,"declareDirective",{name:"\u0275\u0275ngDeclareDirective",moduleName:y}),l(m,"DirectiveDeclaration",{name:"\u0275\u0275DirectiveDeclaration",moduleName:y}),l(m,"InjectorDef",{name:"\u0275\u0275InjectorDef",moduleName:y}),l(m,"InjectorDeclaration",{name:"\u0275\u0275InjectorDeclaration",moduleName:y}),l(m,"defineInjector",{name:"\u0275\u0275defineInjector",moduleName:y}),l(m,"declareInjector",{name:"\u0275\u0275ngDeclareInjector",moduleName:y}),l(m,"NgModuleDeclaration",{name:"\u0275\u0275NgModuleDeclaration",moduleName:y}),l(m,"ModuleWithProviders",{name:"ModuleWithProviders",moduleName:y}),l(m,"defineNgModule",{name:"\u0275\u0275defineNgModule",moduleName:y}),l(m,"declareNgModule",{name:"\u0275\u0275ngDeclareNgModule",moduleName:y}),l(m,"setNgModuleScope",{name:"\u0275\u0275setNgModuleScope",moduleName:y}),l(m,"registerNgModuleType",{name:"\u0275\u0275registerNgModuleType",moduleName:y}),l(m,"PipeDeclaration",{name:"\u0275\u0275PipeDeclaration",moduleName:y}),l(m,"definePipe",{name:"\u0275\u0275definePipe",moduleName:y}),l(m,"declarePipe",{name:"\u0275\u0275ngDeclarePipe",moduleName:y}),l(m,"declareClassMetadata",{name:"\u0275\u0275ngDeclareClassMetadata",moduleName:y}),l(m,"declareClassMetadataAsync",{name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:y}),l(m,"setClassMetadata",{name:"\u0275setClassMetadata",moduleName:y}),l(m,"setClassMetadataAsync",{name:"\u0275setClassMetadataAsync",moduleName:y}),l(m,"setClassDebugInfo",{name:"\u0275setClassDebugInfo",moduleName:y}),l(m,"queryRefresh",{name:"\u0275\u0275queryRefresh",moduleName:y}),l(m,"viewQuery",{name:"\u0275\u0275viewQuery",moduleName:y}),l(m,"loadQuery",{name:"\u0275\u0275loadQuery",moduleName:y}),l(m,"contentQuery",{name:"\u0275\u0275contentQuery",moduleName:y}),l(m,"viewQuerySignal",{name:"\u0275\u0275viewQuerySignal",moduleName:y}),l(m,"contentQuerySignal",{name:"\u0275\u0275contentQuerySignal",moduleName:y}),l(m,"queryAdvance",{name:"\u0275\u0275queryAdvance",moduleName:y}),l(m,"twoWayProperty",{name:"\u0275\u0275twoWayProperty",moduleName:y}),l(m,"twoWayBindingSet",{name:"\u0275\u0275twoWayBindingSet",moduleName:y}),l(m,"twoWayListener",{name:"\u0275\u0275twoWayListener",moduleName:y}),l(m,"declareLet",{name:"\u0275\u0275declareLet",moduleName:y}),l(m,"storeLet",{name:"\u0275\u0275storeLet",moduleName:y}),l(m,"readContextLet",{name:"\u0275\u0275readContextLet",moduleName:y}),l(m,"arrowFunction",{name:"\u0275\u0275arrowFunction",moduleName:y}),l(m,"attachSourceLocations",{name:"\u0275\u0275attachSourceLocations",moduleName:y}),l(m,"NgOnChangesFeature",{name:"\u0275\u0275NgOnChangesFeature",moduleName:y}),l(m,"ControlFeature",{name:"\u0275\u0275ControlFeature",moduleName:y}),l(m,"InheritDefinitionFeature",{name:"\u0275\u0275InheritDefinitionFeature",moduleName:y}),l(m,"ProvidersFeature",{name:"\u0275\u0275ProvidersFeature",moduleName:y}),l(m,"HostDirectivesFeature",{name:"\u0275\u0275HostDirectivesFeature",moduleName:y}),l(m,"ExternalStylesFeature",{name:"\u0275\u0275ExternalStylesFeature",moduleName:y}),l(m,"listener",{name:"\u0275\u0275listener",moduleName:y}),l(m,"getInheritedFactory",{name:"\u0275\u0275getInheritedFactory",moduleName:y}),l(m,"sanitizeHtml",{name:"\u0275\u0275sanitizeHtml",moduleName:y}),l(m,"sanitizeStyle",{name:"\u0275\u0275sanitizeStyle",moduleName:y}),l(m,"validateAttribute",{name:"\u0275\u0275validateAttribute",moduleName:y}),l(m,"sanitizeResourceUrl",{name:"\u0275\u0275sanitizeResourceUrl",moduleName:y}),l(m,"sanitizeScript",{name:"\u0275\u0275sanitizeScript",moduleName:y}),l(m,"sanitizeUrl",{name:"\u0275\u0275sanitizeUrl",moduleName:y}),l(m,"sanitizeUrlOrResourceUrl",{name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:y}),l(m,"trustConstantHtml",{name:"\u0275\u0275trustConstantHtml",moduleName:y}),l(m,"trustConstantResourceUrl",{name:"\u0275\u0275trustConstantResourceUrl",moduleName:y}),l(m,"inputDecorator",{name:"Input",moduleName:y}),l(m,"outputDecorator",{name:"Output",moduleName:y}),l(m,"viewChildDecorator",{name:"ViewChild",moduleName:y}),l(m,"viewChildrenDecorator",{name:"ViewChildren",moduleName:y}),l(m,"contentChildDecorator",{name:"ContentChild",moduleName:y}),l(m,"contentChildrenDecorator",{name:"ContentChildren",moduleName:y}),l(m,"InputSignalBrandWriteType",{name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:y}),l(m,"UnwrapDirectiveSignalInputs",{name:"\u0275UnwrapDirectiveSignalInputs",moduleName:y}),l(m,"unwrapWritableSignal",{name:"\u0275unwrapWritableSignal",moduleName:y}),l(m,"assertType",{name:"\u0275assertType",moduleName:y});var LE=/-+([a-z0-9])/g;function ME(t){return t.replace(LE,(...e)=>e[1].toUpperCase())}function OE(t,e){return cm(t,":",e)}function FE(t,e){return cm(t,".",e)}function cm(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function $E(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 um(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(um).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 r>=0?n.slice(0,r):n}var
|
|
6
|
-
`)}toSourceMapGenerator(e,n=0){let r=new
|
|
7
|
-
`).forEach(s=>n.println(e,`// ${s}`))}};function mr(t,e=!0){if(t==null)return null;let n=t.replace(
|
|
8
|
-
`?"\\n":s[0]=="\r"?"\\r":`\\${s[0]}`);return e||!WE.test(n)?`'${n}'`:n}var zE=/[-.]/;function bl(t,e){if(e===0)return Ve(t);let n=[];for(let r=0;r<e;r++)n.push(Ke);return Ve(t,void 0,n)}function hm(t,e){let n=mr(e,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function KE(t){return XE("ngJitMode",t)}function XE(t,e){let n=new Ze({name:t,moduleName:null}),r=new se(w.Identical,new xr(n),S("undefined")),s=new se(w.Or,r,n,void 0,void 0);return new se(w.And,s,e)}function Me(t){let e=new W(t);return{value:e,type:e}}function es(t,e){let n=ce(t.map(r=>r.value));return e?Nt([],n):n}function go(){return vp("@ts-ignore",!0,!0)}function kl(t){return zE.test(t)}function Is(t,e){return{expression:t,forwardRef:e}}function YE({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return QE(t)}}function QE(t){return R(m.forwardRef).callFn([Nt([],t)])}var yo;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(yo||(yo={}));function hr(t){let e=Z("__ngFactoryType__"),n=null,r=lf(t)?e:new se(w.Or,e,t.type.value),s=null,i=t.deps!==null&&t.deps!=="invalid"&&t.deps.length>0?[go()]:void 0;t.deps!==null?t.deps!=="invalid"&&(s=new Js(r,af(t.deps,t.target))):(n=Z(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let o=[],a=null;function c(h){let d=Z("__ngConditionalFactory__");o.push(new Xe(d.name,hs,Ke));let p=s!==null?d.set(s).toStmt(i):R(m.invalidFactory).callFn([]).toStmt();return o.push(na(e,[p],[d.set(h).toStmt([go()])])),d}if(lf(t)){let h=af(t.delegateDeps,t.target),d=new(t.delegateType===yo.Class?Js:Ae)(t.delegate,h);a=c(d)}else nw(t)?a=c(t.expression):a=s;if(a===null)o.push(R(m.invalidFactory).callFn([]).toStmt());else if(n!==null){let h=R(m.getInheritedFactory).callFn([t.type.value]),d=new se(w.Or,n,n.set(h));o.push(new ke(d.callFn([r])))}else o.push(new ke(a,null,i));let u=Wn([new Be(e.name,Ke)],o,dn,void 0,`${t.name}_Factory`);return n!==null&&(u=Nt([],[new Xe(n.name,void 0,Ke),new ke(u)]).callFn([],void 0,!0)),{expression:u,statements:[],type:JE(t)}}function JE(t){let e=t.deps!==null&&t.deps!=="invalid"?ew(t.deps):Lt;return Ve(R(m.FactoryDeclaration,[bl(t.type.type,t.typeArgumentCount),e]))}function af(t,e){return t.map((n,r)=>ZE(n,e,r))}function ZE(t,e,n){if(t.token===null)return R(m.invalidFactoryDep).callFn([S(n)]);if(t.attributeNameType===null){let r=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(e===ut.Pipe?16:0),s=r!==0||t.optional?S(r):null,i=[t.token];s&&i.push(s);let o=rw(e);return R(o).callFn(i)}else return R(m.injectAttribute).callFn([t.token])}function ew(t){let e=!1,n=t.map(r=>{let s=tw(r);return s!==null?(e=!0,s):S(null)});return e?Ve(ce(n)):Lt}function tw(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?Ct(e):null}function lf(t){return t.delegateType!==void 0}function nw(t){return t.expression!==void 0}function rw(t){switch(t){case ut.Component:case ut.Directive:case ut.Pipe:return m.directiveInject;case ut.NgModule:case ut.Injectable:default:return m.inject}}var fs=class{constructor(e,n){l(this,"start");l(this,"end");this.start=e,this.end=n}toAbsolute(e){return new ht(e+this.start,e+this.end)}},ae=class{constructor(e,n){l(this,"span");l(this,"sourceSpan");this.span=e,this.sourceSpan=n}toString(){return"AST"}},ri=class extends ae{constructor(n,r,s){super(n,r);l(this,"nameSpan");this.nameSpan=s}},nt=class extends ae{visit(e,n=null){var r;return(r=e.visitEmptyExpr)==null?void 0:r.call(e,this,n)}},Ht=class extends ae{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},Ar=class extends ae{visit(e,n=null){var r;return(r=e.visitThisReceiver)==null?void 0:r.call(e,this,n)}},Dr=class extends ae{constructor(n,r,s){super(n,r);l(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitChain(this,r)}},si=class extends ae{constructor(n,r,s,i,o){super(n,r);l(this,"condition");l(this,"trueExp");l(this,"falseExp");this.condition=s,this.trueExp=i,this.falseExp=o}visit(n,r=null){return n.visitConditional(this,r)}},ge=class extends ri{constructor(n,r,s,i,o){super(n,r,s);l(this,"receiver");l(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitPropertyRead(this,r)}},dt=class extends ri{constructor(n,r,s,i,o){super(n,r,s);l(this,"receiver");l(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitSafePropertyRead(this,r)}},jn=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"receiver");l(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitKeyedRead(this,r)}},ds=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"receiver");l(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitSafeKeyedRead(this,r)}},qs;(function(t){t[t.ReferencedByName=0]="ReferencedByName",t[t.ReferencedDirectly=1]="ReferencedDirectly"})(qs||(qs={}));var ii=class extends ri{constructor(n,r,s,i,o,a,c){super(n,r,c);l(this,"exp");l(this,"name");l(this,"args");l(this,"type");this.exp=s,this.name=i,this.args=o,this.type=a}visit(n,r=null){return n.visitPipe(this,r)}},lt=class extends ae{constructor(n,r,s){super(n,r);l(this,"value");this.value=s}visit(n,r=null){return n.visitLiteralPrimitive(this,r)}},vo=class extends ae{constructor(n,r,s){super(n,r);l(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitLiteralArray(this,r)}},Ha=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitSpreadElement(this,r)}},ms=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"keys");l(this,"values");this.keys=s,this.values=i}visit(n,r=null){return n.visitLiteralMap(this,r)}},Zn=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"strings");l(this,"expressions");this.strings=s,this.expressions=i}visit(n,r=null){return n.visitInterpolation(this,r)}},Ie=class extends ae{constructor(n,r,s,i,o){super(n,r);l(this,"operation");l(this,"left");l(this,"right");this.operation=s,this.left=i,this.right=o}visit(n,r=null){return n.visitBinary(this,r)}static isAssignmentOperation(n){return n==="="||n==="+="||n==="-="||n==="*="||n==="/="||n==="%="||n==="**="||n==="&&="||n==="||="||n==="??="}},Ws=class t extends Ie{constructor(n,r,s,i,o,a,c){super(n,r,o,a,c);l(this,"operator");l(this,"expr");l(this,"left",null);l(this,"right",null);l(this,"operation",null);this.operator=s,this.expr=i}static createMinus(n,r,s){return new t(n,r,"-",s,"-",new lt(n,r,0),s)}static createPlus(n,r,s){return new t(n,r,"+",s,"-",s,new lt(n,r,0))}visit(n,r=null){return n.visitUnary!==void 0?n.visitUnary(this,r):n.visitBinary(this,r)}},kn=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitPrefixNot(this,r)}},So=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitTypeofExpression(this,r)}},Eo=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitVoidExpression(this,r)}},wo=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitNonNullAssert(this,r)}},vn=class extends ae{constructor(n,r,s,i,o){super(n,r);l(this,"receiver");l(this,"args");l(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitCall(this,r)}},_n=class extends ae{constructor(n,r,s,i,o){super(n,r);l(this,"receiver");l(this,"args");l(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitSafeCall(this,r)}},To=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"tag");l(this,"template");this.tag=s,this.template=i}visit(n,r){return n.visitTaggedTemplateLiteral(this,r)}},xo=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"elements");l(this,"expressions");this.elements=s,this.expressions=i}visit(n,r){return n.visitTemplateLiteral(this,r)}},qa=class extends ae{constructor(n,r,s){super(n,r);l(this,"text");this.text=s}visit(n,r){return n.visitTemplateLiteralElement(this,r)}},Co=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r){return n.visitParenthesizedExpression(this,r)}},eu=class{constructor(e,n,r){l(this,"name");l(this,"span");l(this,"sourceSpan");this.name=e,this.span=n,this.sourceSpan=r}},oi=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"parameters");l(this,"body");this.parameters=s,this.body=i}visit(n,r){return n.visitArrowFunction(this,r)}},Wa=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"body");l(this,"flags");this.body=s,this.flags=i}visit(n,r){return n.visitRegularExpressionLiteral(this,r)}},ht=class{constructor(e,n){l(this,"start");l(this,"end");this.start=e,this.end=n}},Se=class extends ae{constructor(n,r,s,i,o){super(new fs(0,r===null?0:r.length),new ht(i,r===null?i:i+r.length));l(this,"ast");l(this,"source");l(this,"location");l(this,"errors");this.ast=n,this.source=r,this.location=s,this.errors=o}visit(n,r=null){return n.visitASTWithSource?n.visitASTWithSource(this,r):this.ast.visit(n,r)}toString(){return`${this.source} in ${this.location}`}},No=class{constructor(e,n,r){l(this,"sourceSpan");l(this,"key");l(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},tu=class{constructor(e,n,r){l(this,"sourceSpan");l(this,"key");l(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},gs=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)}},$s=class{constructor(e,n,r,s,i,o){l(this,"name");l(this,"expression");l(this,"type");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"isLiteral");l(this,"isLegacyAnimation");l(this,"isAnimation");this.name=e,this.expression=n,this.type=r,this.sourceSpan=s,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===un.LITERAL_ATTR,this.isLegacyAnimation=this.type===un.LEGACY_ANIMATION,this.isAnimation=this.type===un.ANIMATION}},un;(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"})(un||(un={}));var ze;(function(t){t[t.Regular=0]="Regular",t[t.LegacyAnimation=1]="LegacyAnimation",t[t.TwoWay=2]="TwoWay",t[t.Animation=3]="Animation"})(ze||(ze={}));var ja=class{constructor(e,n,r,s,i,o,a){l(this,"name");l(this,"targetOrPhase");l(this,"type");l(this,"handler");l(this,"sourceSpan");l(this,"handlerSpan");l(this,"keySpan");this.name=e,this.targetOrPhase=n,this.type=r,this.handler=s,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}},nu=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}},J;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.LegacyAnimation=4]="LegacyAnimation",t[t.TwoWay=5]="TwoWay",t[t.Animation=6]="Animation"})(J||(J={}));var za=class{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"type");l(this,"securityContext");l(this,"value");l(this,"unit");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=c}},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 ft(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 cf(t){return ft(t)[1]==="ng-container"}function ru(t){return ft(t)[1]==="ng-content"}function sw(t){return ft(t)[1]==="ng-template"}function su(t){return t===null?null:ft(t)[0]}function La(t,e){return t?`:${t}:${e}`:e}var _l=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){throw new Error("visit() not implemented for Comment")}},ts=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},ai=class{constructor(e,n,r){l(this,"value");l(this,"sourceSpan");l(this,"i18n");this.value=e,this.sourceSpan=n,this.i18n=r}visit(e){return e.visitBoundText(this)}},on=class{constructor(e,n,r,s,i,o){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"i18n");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Sn=class t{constructor(e,n,r,s,i,o,a,c,u){l(this,"name");l(this,"type");l(this,"securityContext");l(this,"value");l(this,"unit");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"i18n");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=c,this.i18n=u}static fromBoundElementProperty(e,n){if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new t(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,n)}visit(e){return e.visitBoundAttribute(this)}},Rn=class t{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"type");l(this,"handler");l(this,"target");l(this,"phase");l(this,"sourceSpan");l(this,"handlerSpan");l(this,"keySpan");this.name=e,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=c}static fromParsedEvent(e){let n=e.type===ze.Regular?e.targetOrPhase:null,r=e.type===ze.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)}},It=class{constructor(e,n,r,s,i,o,a,c,u,h,d,p,g){l(this,"name");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"children");l(this,"references");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"isVoid");l(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.children=o,this.references=a,this.isSelfClosing=c,this.sourceSpan=u,this.startSourceSpan=h,this.endSourceSpan=d,this.isVoid=p,this.i18n=g}visit(e){return e.visitElement(this)}},Pn=class{constructor(e,n,r,s,i){l(this,"nameSpan");l(this,"sourceSpan");l(this,"prefetchSpan");l(this,"whenOrOnSourceSpan");l(this,"hydrateSpan");this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=r,this.whenOrOnSourceSpan=s,this.hydrateSpan=i}visit(e){return e.visitDeferredTrigger(this)}},Ka=class extends Pn{constructor(n,r,s,i,o){super(null,r,s,i,o);l(this,"value");this.value=n}},iu=class extends Pn{},li=class extends Pn{constructor(n,r,s,i,o,a){super(n,r,s,i,o);l(this,"timeout");this.timeout=a}},ci=class extends Pn{},ys=class extends Pn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"reference");this.reference=n}},zn=class extends Pn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"delay");this.delay=n}},vs=class extends Pn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"reference");this.reference=n}},br=class extends Pn{constructor(n,r,s,i,o,a,c){super(s,i,o,a,c);l(this,"reference");l(this,"options");this.reference=n,this.options=r}},Ot=class{constructor(e,n,r,s){l(this,"nameSpan");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}},Io=class extends Ot{constructor(n,r,s,i,o,a,c){super(s,i,o,a);l(this,"children");l(this,"minimumTime");l(this,"i18n");this.children=n,this.minimumTime=r,this.i18n=c}visit(n){return n.visitDeferredBlockPlaceholder(this)}},Ao=class extends Ot{constructor(n,r,s,i,o,a,c,u){super(i,o,a,c);l(this,"children");l(this,"afterTime");l(this,"minimumTime");l(this,"i18n");this.children=n,this.afterTime=r,this.minimumTime=s,this.i18n=u}visit(n){return n.visitDeferredBlockLoading(this)}},Do=class extends Ot{constructor(n,r,s,i,o,a){super(r,s,i,o);l(this,"children");l(this,"i18n");this.children=n,this.i18n=a}visit(n){return n.visitDeferredBlockError(this)}},Kn=class extends Ot{constructor(n,r,s,i,o,a,c,u,h,d,p,g,v){super(u,h,p,g);l(this,"children");l(this,"placeholder");l(this,"loading");l(this,"error");l(this,"mainBlockSpan");l(this,"i18n");l(this,"triggers");l(this,"prefetchTriggers");l(this,"hydrateTriggers");l(this,"definedTriggers");l(this,"definedPrefetchTriggers");l(this,"definedHydrateTriggers");this.children=n,this.placeholder=o,this.loading=a,this.error=c,this.mainBlockSpan=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),js(n,this.children);let r=[this.placeholder,this.loading,this.error].filter(s=>s!==null);js(n,r)}visitTriggers(n,r,s){js(s,n.map(i=>r[i]))}},ui=class extends Ot{constructor(n,r,s,i,o,a,c,u){super(u,o,a,c);l(this,"expression");l(this,"groups");l(this,"unknownBlocks");l(this,"exhaustiveCheck");this.expression=n,this.groups=r,this.unknownBlocks=s,this.exhaustiveCheck=i}visit(n){return n.visitSwitchBlock(this)}},ou=class extends Ot{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"expression");this.expression=n}visit(n){return n.visitSwitchBlockCase(this)}},bo=class extends Ot{constructor(n,r,s,i,o,a,c){super(a,s,i,o);l(this,"cases");l(this,"children");l(this,"i18n");this.cases=n,this.children=r,this.i18n=c}visit(n){return n.visitSwitchBlockCaseGroup(this)}},au=class extends Ot{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"expression");this.expression=n}visit(n){return n.visitSwitchExhaustiveCheck(this)}},kr=class extends Ot{constructor(n,r,s,i,o,a,c,u,h,d,p,g,v){super(g,u,d,p);l(this,"item");l(this,"expression");l(this,"trackBy");l(this,"trackKeywordSpan");l(this,"contextVariables");l(this,"children");l(this,"empty");l(this,"mainBlockSpan");l(this,"i18n");this.item=n,this.expression=r,this.trackBy=s,this.trackKeywordSpan=i,this.contextVariables=o,this.children=a,this.empty=c,this.mainBlockSpan=h,this.i18n=v}visit(n){return n.visitForLoopBlock(this)}},ko=class extends Ot{constructor(n,r,s,i,o,a){super(o,r,s,i);l(this,"children");l(this,"i18n");this.children=n,this.i18n=a}visit(n){return n.visitForLoopBlockEmpty(this)}},pi=class extends Ot{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"branches");this.branches=n}visit(n){return n.visitIfBlock(this)}},rs=class extends Ot{constructor(n,r,s,i,o,a,c,u){super(c,i,o,a);l(this,"expression");l(this,"children");l(this,"expressionAlias");l(this,"i18n");this.expression=n,this.children=r,this.expressionAlias=s,this.i18n=u}visit(n){return n.visitIfBlockBranch(this)}},Xa=class{constructor(e,n,r){l(this,"name");l(this,"sourceSpan");l(this,"nameSpan");this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},er=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"nameSpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},vr=class{constructor(e,n,r,s,i,o,a,c,u,h,d,p,g,v){l(this,"componentName");l(this,"tagName");l(this,"fullName");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"children");l(this,"references");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.componentName=e,this.tagName=n,this.fullName=r,this.attributes=s,this.inputs=i,this.outputs=o,this.directives=a,this.children=c,this.references=u,this.isSelfClosing=h,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=v}visit(e){return e.visitComponent(this)}},ra=class{constructor(e,n,r,s,i,o,a,c,u){l(this,"name");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"references");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.references=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitDirective(this)}},Te=class{constructor(e,n,r,s,i,o,a,c,u,h,d,p,g,v){l(this,"tagName");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"templateAttrs");l(this,"children");l(this,"references");l(this,"variables");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.templateAttrs=o,this.children=a,this.references=c,this.variables=u,this.isSelfClosing=h,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=v}visit(e){return e.visitTemplate(this)}},hi=class{constructor(e,n,r,s,i,o,a,c){l(this,"selector");l(this,"attributes");l(this,"children");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");l(this,"name","ng-content");this.selector=e,this.attributes=n,this.children=r,this.isSelfClosing=s,this.sourceSpan=i,this.startSourceSpan=o,this.endSourceSpan=a,this.i18n=c}visit(e){return e.visitContent(this)}},En=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitVariable(this)}},_r=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitReference(this)}},fm=class{constructor(e,n,r,s){l(this,"vars");l(this,"placeholders");l(this,"sourceSpan");l(this,"i18n");this.vars=e,this.placeholders=n,this.sourceSpan=r,this.i18n=s}visit(e){return e.visitIcu(this)}},_o=class{constructor(e,n,r,s){l(this,"tagNames");l(this,"bindings");l(this,"listeners");l(this,"sourceSpan");if(this.tagNames=e,this.bindings=n,this.listeners=r,this.sourceSpan=s,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function js(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 wt=class{constructor(e,n,r,s,i,o){l(this,"nodes");l(this,"placeholders");l(this,"placeholderToMessage");l(this,"meaning");l(this,"description");l(this,"customId");l(this,"sources");l(this,"id");l(this,"legacyIds",[]);l(this,"messageString");this.nodes=e,this.placeholders=n,this.placeholderToMessage=r,this.meaning=s,this.description=i,this.customId=o,this.id=this.customId,this.messageString=iw(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=[]}},Oi=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},Gn=class{constructor(e,n){l(this,"children");l(this,"sourceSpan");this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},Ya=class{constructor(e,n,r,s,i){l(this,"expression");l(this,"type");l(this,"cases");l(this,"sourceSpan");l(this,"expressionPlaceholder");this.expression=e,this.type=n,this.cases=r,this.sourceSpan=s,this.expressionPlaceholder=i}visit(e,n){return e.visitIcu(this,n)}},Rr=class{constructor(e,n,r,s,i,o,a,c,u){l(this,"tag");l(this,"attrs");l(this,"startName");l(this,"closeName");l(this,"children");l(this,"isVoid");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,n){return e.visitTagPlaceholder(this,n)}},Ro=class{constructor(e,n,r){l(this,"value");l(this,"name");l(this,"sourceSpan");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},fi=class{constructor(e,n,r){l(this,"value");l(this,"name");l(this,"sourceSpan");l(this,"previousMessage");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},Pr=class{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"parameters");l(this,"startName");l(this,"closeName");l(this,"children");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=c}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function iw(t){let e=new lu;return t.map(r=>r.visit(e)).join("")}var lu=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 ow=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 Gr=Object.freeze({__proto__:null,ArrayType:jc,ArrowFunctionExpr:gn,BOOL_TYPE:nm,get BinaryOperator(){return w},BinaryOperatorExpr:se,BuiltinType:fn,get BuiltinTypeName(){return Oe},CommaExpr:Qc,ConditionalExpr:mn,DYNAMIC_TYPE:Ke,DeclareFunctionStmt:ti,DeclareVarStmt:Xe,DynamicImportExpr:Xc,Expression:oe,ExpressionStatement:tt,ExpressionType:ft,ExternalExpr:et,ExternalReference:lo,FUNCTION_TYPE:wE,FnParam:Be,FunctionExpr:hn,INFERRED_TYPE:dn,INT_TYPE:EE,IfStmt:po,InstantiateExpr:Js,InvokeFunctionExpr:Ae,JSDocComment:uo,LeadingComment:co,LiteralArrayExpr:Mt,LiteralExpr:ke,LiteralMapExpr:sn,LiteralMapPropertyAssignment:Cr,LiteralMapSpreadAssignment:yn,LiteralPiece:yr,LocalizedString:ao,MapType:zc,NONE_TYPE:Lt,NULL_EXPR:hs,NUMBER_TYPE:Tr,NotExpr:ei,ParenthesizedExpr:nn,PlaceholderPiece:ns,ReadKeyExpr:rn,ReadPropExpr:ot,ReadVarExpr:tn,RecursiveAstVisitor:IE,RegularExpressionLiteralExpr:ps,ReturnStatement:_e,STRING_TYPE:Dl,SpreadElementExpr:Nr,Statement:Ir,get StmtModifier(){return Ue},TYPED_NULL_EXPR:im,TaggedTemplateLiteralExpr:Qs,TemplateLiteralElementExpr:oo,TemplateLiteralExpr:Zs,TransplantedType:so,Type:wr,get TypeModifier(){return Ua},TypeofExpr:xr,get UnaryOperator(){return bn},UnaryOperatorExpr:qn,VoidExpr:io,WrappedNodeExpr:W,areAllEquivalent:Ct,arrowFn:It,expressionType:Ve,fn:Wn,ifStmt:ta,importExpr:R,importType:AE,isNull:_E,jsDocComment:om,leadingComment:Sp,literal:S,literalArr:ce,literalMap:Nt,localizedString:cm,not:am,nullSafeIsEquivalent:rm,taggedTemplate:lm,transplantedType:DE,typeofExpr:Ei,unary:bE,variable:Z}),RE="_c",PE={},LE=50,Va=class t extends oe{constructor(n){super(n.type);l(this,"resolved");l(this,"original");l(this,"shared",!1);this.resolved=n,this.original=n}visitExpression(n,r){return r===PE?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}},ni=class{constructor(e=!1){l(this,"isClosureCompilerEnabled");l(this,"statements",[]);l(this,"literals",new Map);l(this,"literalFactories",new Map);l(this,"sharedConstants",new Map);l(this,"_claimedNames",new Map);l(this,"nextNameIndex",0);this.isClosureCompilerEnabled=e}getConstLiteral(e,n){if(e instanceof ke&&!of(e)||e instanceof Va)return e;let r=ho.INSTANCE.keyOf(e),s=this.literals.get(r),i=!1;if(s||(s=new Va(e),this.literals.set(r,s),i=!0),!i&&!s.shared||i&&n){let o=this.freshName(),a,c;this.isClosureCompilerEnabled&&of(e)?(a=new hn([],[new _e(e)]),c=Z(o).callFn([])):(a=e,c=Z(o)),this.statements.push(new Xe(o,a,dn,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,Z(s)),this.statements.push(e.toSharedConstantDeclaration(s,n))}return this.sharedConstants.get(r)}getSharedFunctionReference(e,n,r=!0){var o;let s=e instanceof gn;for(let a of this.statements)if(s&&a instanceof Xe&&((o=a.value)!=null&&o.isEquivalent(e))||!s&&a instanceof ti&&e instanceof hn&&e.isEquivalent(a))return Z(a.name);let i=r?this.uniqueName(n):n;return this.statements.push(e instanceof hn?e.toDeclStmt(i,Ue.Final):new Xe(i,e,dn,Ue.Final,e.sourceSpan)),Z(i)}uniqueName(e,n=!0){var i;let r=(i=this._claimedNames.get(e))!=null?i:0,s=r===0&&!n?`${e}`:`${e}${r}`;return this._claimedNames.set(e,r+1),s}freshName(){return this.uniqueName(RE)}},Al=class Al{keyOf(e){var n;if(e instanceof ke&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof ke)return String(e.value);if(e instanceof ps)return`/${e.body}/${(n=e.flags)!=null?n:""}`;if(e instanceof Mt){let r=[];for(let s of e.entries)r.push(this.keyOf(s));return`[${r.join(",")}]`}else if(e instanceof sn){let r=[];for(let s of e.entries)if(s instanceof yn)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 et)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof tn)return`read(${e.name})`;if(e instanceof xr)return`typeof(${this.keyOf(e.expr)})`;if(e instanceof Nr)return`...${this.keyOf(e.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};l(Al,"INSTANCE",new Al);var ho=Al;function of(t){return t instanceof ke&&typeof t.value=="string"&&t.value.length>=LE}var y="@angular/core",m=class{};l(m,"core",{name:null,moduleName:y}),l(m,"namespaceHTML",{name:"\u0275\u0275namespaceHTML",moduleName:y}),l(m,"namespaceMathML",{name:"\u0275\u0275namespaceMathML",moduleName:y}),l(m,"namespaceSVG",{name:"\u0275\u0275namespaceSVG",moduleName:y}),l(m,"element",{name:"\u0275\u0275element",moduleName:y}),l(m,"elementStart",{name:"\u0275\u0275elementStart",moduleName:y}),l(m,"elementEnd",{name:"\u0275\u0275elementEnd",moduleName:y}),l(m,"domElement",{name:"\u0275\u0275domElement",moduleName:y}),l(m,"domElementStart",{name:"\u0275\u0275domElementStart",moduleName:y}),l(m,"domElementEnd",{name:"\u0275\u0275domElementEnd",moduleName:y}),l(m,"domElementContainer",{name:"\u0275\u0275domElementContainer",moduleName:y}),l(m,"domElementContainerStart",{name:"\u0275\u0275domElementContainerStart",moduleName:y}),l(m,"domElementContainerEnd",{name:"\u0275\u0275domElementContainerEnd",moduleName:y}),l(m,"domTemplate",{name:"\u0275\u0275domTemplate",moduleName:y}),l(m,"domListener",{name:"\u0275\u0275domListener",moduleName:y}),l(m,"advance",{name:"\u0275\u0275advance",moduleName:y}),l(m,"syntheticHostProperty",{name:"\u0275\u0275syntheticHostProperty",moduleName:y}),l(m,"syntheticHostListener",{name:"\u0275\u0275syntheticHostListener",moduleName:y}),l(m,"attribute",{name:"\u0275\u0275attribute",moduleName:y}),l(m,"classProp",{name:"\u0275\u0275classProp",moduleName:y}),l(m,"elementContainerStart",{name:"\u0275\u0275elementContainerStart",moduleName:y}),l(m,"elementContainerEnd",{name:"\u0275\u0275elementContainerEnd",moduleName:y}),l(m,"elementContainer",{name:"\u0275\u0275elementContainer",moduleName:y}),l(m,"styleMap",{name:"\u0275\u0275styleMap",moduleName:y}),l(m,"classMap",{name:"\u0275\u0275classMap",moduleName:y}),l(m,"styleProp",{name:"\u0275\u0275styleProp",moduleName:y}),l(m,"interpolate",{name:"\u0275\u0275interpolate",moduleName:y}),l(m,"interpolate1",{name:"\u0275\u0275interpolate1",moduleName:y}),l(m,"interpolate2",{name:"\u0275\u0275interpolate2",moduleName:y}),l(m,"interpolate3",{name:"\u0275\u0275interpolate3",moduleName:y}),l(m,"interpolate4",{name:"\u0275\u0275interpolate4",moduleName:y}),l(m,"interpolate5",{name:"\u0275\u0275interpolate5",moduleName:y}),l(m,"interpolate6",{name:"\u0275\u0275interpolate6",moduleName:y}),l(m,"interpolate7",{name:"\u0275\u0275interpolate7",moduleName:y}),l(m,"interpolate8",{name:"\u0275\u0275interpolate8",moduleName:y}),l(m,"interpolateV",{name:"\u0275\u0275interpolateV",moduleName:y}),l(m,"nextContext",{name:"\u0275\u0275nextContext",moduleName:y}),l(m,"resetView",{name:"\u0275\u0275resetView",moduleName:y}),l(m,"templateCreate",{name:"\u0275\u0275template",moduleName:y}),l(m,"defer",{name:"\u0275\u0275defer",moduleName:y}),l(m,"deferWhen",{name:"\u0275\u0275deferWhen",moduleName:y}),l(m,"deferOnIdle",{name:"\u0275\u0275deferOnIdle",moduleName:y}),l(m,"deferOnImmediate",{name:"\u0275\u0275deferOnImmediate",moduleName:y}),l(m,"deferOnTimer",{name:"\u0275\u0275deferOnTimer",moduleName:y}),l(m,"deferOnHover",{name:"\u0275\u0275deferOnHover",moduleName:y}),l(m,"deferOnInteraction",{name:"\u0275\u0275deferOnInteraction",moduleName:y}),l(m,"deferOnViewport",{name:"\u0275\u0275deferOnViewport",moduleName:y}),l(m,"deferPrefetchWhen",{name:"\u0275\u0275deferPrefetchWhen",moduleName:y}),l(m,"deferPrefetchOnIdle",{name:"\u0275\u0275deferPrefetchOnIdle",moduleName:y}),l(m,"deferPrefetchOnImmediate",{name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:y}),l(m,"deferPrefetchOnTimer",{name:"\u0275\u0275deferPrefetchOnTimer",moduleName:y}),l(m,"deferPrefetchOnHover",{name:"\u0275\u0275deferPrefetchOnHover",moduleName:y}),l(m,"deferPrefetchOnInteraction",{name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:y}),l(m,"deferPrefetchOnViewport",{name:"\u0275\u0275deferPrefetchOnViewport",moduleName:y}),l(m,"deferHydrateWhen",{name:"\u0275\u0275deferHydrateWhen",moduleName:y}),l(m,"deferHydrateNever",{name:"\u0275\u0275deferHydrateNever",moduleName:y}),l(m,"deferHydrateOnIdle",{name:"\u0275\u0275deferHydrateOnIdle",moduleName:y}),l(m,"deferHydrateOnImmediate",{name:"\u0275\u0275deferHydrateOnImmediate",moduleName:y}),l(m,"deferHydrateOnTimer",{name:"\u0275\u0275deferHydrateOnTimer",moduleName:y}),l(m,"deferHydrateOnHover",{name:"\u0275\u0275deferHydrateOnHover",moduleName:y}),l(m,"deferHydrateOnInteraction",{name:"\u0275\u0275deferHydrateOnInteraction",moduleName:y}),l(m,"deferHydrateOnViewport",{name:"\u0275\u0275deferHydrateOnViewport",moduleName:y}),l(m,"deferEnableTimerScheduling",{name:"\u0275\u0275deferEnableTimerScheduling",moduleName:y}),l(m,"enableIncrementalHydrationRuntime",{name:"\u0275\u0275enableIncrementalHydrationRuntime",moduleName:y}),l(m,"conditionalCreate",{name:"\u0275\u0275conditionalCreate",moduleName:y}),l(m,"conditionalBranchCreate",{name:"\u0275\u0275conditionalBranchCreate",moduleName:y}),l(m,"conditional",{name:"\u0275\u0275conditional",moduleName:y}),l(m,"repeater",{name:"\u0275\u0275repeater",moduleName:y}),l(m,"repeaterCreate",{name:"\u0275\u0275repeaterCreate",moduleName:y}),l(m,"repeaterTrackByIndex",{name:"\u0275\u0275repeaterTrackByIndex",moduleName:y}),l(m,"repeaterTrackByIdentity",{name:"\u0275\u0275repeaterTrackByIdentity",moduleName:y}),l(m,"componentInstance",{name:"\u0275\u0275componentInstance",moduleName:y}),l(m,"text",{name:"\u0275\u0275text",moduleName:y}),l(m,"enableBindings",{name:"\u0275\u0275enableBindings",moduleName:y}),l(m,"disableBindings",{name:"\u0275\u0275disableBindings",moduleName:y}),l(m,"getCurrentView",{name:"\u0275\u0275getCurrentView",moduleName:y}),l(m,"textInterpolate",{name:"\u0275\u0275textInterpolate",moduleName:y}),l(m,"textInterpolate1",{name:"\u0275\u0275textInterpolate1",moduleName:y}),l(m,"textInterpolate2",{name:"\u0275\u0275textInterpolate2",moduleName:y}),l(m,"textInterpolate3",{name:"\u0275\u0275textInterpolate3",moduleName:y}),l(m,"textInterpolate4",{name:"\u0275\u0275textInterpolate4",moduleName:y}),l(m,"textInterpolate5",{name:"\u0275\u0275textInterpolate5",moduleName:y}),l(m,"textInterpolate6",{name:"\u0275\u0275textInterpolate6",moduleName:y}),l(m,"textInterpolate7",{name:"\u0275\u0275textInterpolate7",moduleName:y}),l(m,"textInterpolate8",{name:"\u0275\u0275textInterpolate8",moduleName:y}),l(m,"textInterpolateV",{name:"\u0275\u0275textInterpolateV",moduleName:y}),l(m,"restoreView",{name:"\u0275\u0275restoreView",moduleName:y}),l(m,"pureFunction0",{name:"\u0275\u0275pureFunction0",moduleName:y}),l(m,"pureFunction1",{name:"\u0275\u0275pureFunction1",moduleName:y}),l(m,"pureFunction2",{name:"\u0275\u0275pureFunction2",moduleName:y}),l(m,"pureFunction3",{name:"\u0275\u0275pureFunction3",moduleName:y}),l(m,"pureFunction4",{name:"\u0275\u0275pureFunction4",moduleName:y}),l(m,"pureFunction5",{name:"\u0275\u0275pureFunction5",moduleName:y}),l(m,"pureFunction6",{name:"\u0275\u0275pureFunction6",moduleName:y}),l(m,"pureFunction7",{name:"\u0275\u0275pureFunction7",moduleName:y}),l(m,"pureFunction8",{name:"\u0275\u0275pureFunction8",moduleName:y}),l(m,"pureFunctionV",{name:"\u0275\u0275pureFunctionV",moduleName:y}),l(m,"pipeBind1",{name:"\u0275\u0275pipeBind1",moduleName:y}),l(m,"pipeBind2",{name:"\u0275\u0275pipeBind2",moduleName:y}),l(m,"pipeBind3",{name:"\u0275\u0275pipeBind3",moduleName:y}),l(m,"pipeBind4",{name:"\u0275\u0275pipeBind4",moduleName:y}),l(m,"pipeBindV",{name:"\u0275\u0275pipeBindV",moduleName:y}),l(m,"domProperty",{name:"\u0275\u0275domProperty",moduleName:y}),l(m,"ariaProperty",{name:"\u0275\u0275ariaProperty",moduleName:y}),l(m,"property",{name:"\u0275\u0275property",moduleName:y}),l(m,"control",{name:"\u0275\u0275control",moduleName:y}),l(m,"controlCreate",{name:"\u0275\u0275controlCreate",moduleName:y}),l(m,"animationEnterListener",{name:"\u0275\u0275animateEnterListener",moduleName:y}),l(m,"animationLeaveListener",{name:"\u0275\u0275animateLeaveListener",moduleName:y}),l(m,"animationEnter",{name:"\u0275\u0275animateEnter",moduleName:y}),l(m,"animationLeave",{name:"\u0275\u0275animateLeave",moduleName:y}),l(m,"i18n",{name:"\u0275\u0275i18n",moduleName:y}),l(m,"i18nAttributes",{name:"\u0275\u0275i18nAttributes",moduleName:y}),l(m,"i18nExp",{name:"\u0275\u0275i18nExp",moduleName:y}),l(m,"i18nStart",{name:"\u0275\u0275i18nStart",moduleName:y}),l(m,"i18nEnd",{name:"\u0275\u0275i18nEnd",moduleName:y}),l(m,"i18nApply",{name:"\u0275\u0275i18nApply",moduleName:y}),l(m,"i18nPostprocess",{name:"\u0275\u0275i18nPostprocess",moduleName:y}),l(m,"pipe",{name:"\u0275\u0275pipe",moduleName:y}),l(m,"projection",{name:"\u0275\u0275projection",moduleName:y}),l(m,"projectionDef",{name:"\u0275\u0275projectionDef",moduleName:y}),l(m,"reference",{name:"\u0275\u0275reference",moduleName:y}),l(m,"inject",{name:"\u0275\u0275inject",moduleName:y}),l(m,"injectAttribute",{name:"\u0275\u0275injectAttribute",moduleName:y}),l(m,"directiveInject",{name:"\u0275\u0275directiveInject",moduleName:y}),l(m,"invalidFactory",{name:"\u0275\u0275invalidFactory",moduleName:y}),l(m,"invalidFactoryDep",{name:"\u0275\u0275invalidFactoryDep",moduleName:y}),l(m,"templateRefExtractor",{name:"\u0275\u0275templateRefExtractor",moduleName:y}),l(m,"forwardRef",{name:"forwardRef",moduleName:y}),l(m,"resolveForwardRef",{name:"resolveForwardRef",moduleName:y}),l(m,"replaceMetadata",{name:"\u0275\u0275replaceMetadata",moduleName:y}),l(m,"getReplaceMetadataURL",{name:"\u0275\u0275getReplaceMetadataURL",moduleName:y}),l(m,"\u0275\u0275defineInjectable",{name:"\u0275\u0275defineInjectable",moduleName:y}),l(m,"declareInjectable",{name:"\u0275\u0275ngDeclareInjectable",moduleName:y}),l(m,"InjectableDeclaration",{name:"\u0275\u0275InjectableDeclaration",moduleName:y}),l(m,"defineService",{name:"\u0275\u0275defineService",moduleName:y}),l(m,"declareService",{name:"\u0275\u0275ngDeclareService",moduleName:y}),l(m,"resolveWindow",{name:"\u0275\u0275resolveWindow",moduleName:y}),l(m,"resolveDocument",{name:"\u0275\u0275resolveDocument",moduleName:y}),l(m,"resolveBody",{name:"\u0275\u0275resolveBody",moduleName:y}),l(m,"getComponentDepsFactory",{name:"\u0275\u0275getComponentDepsFactory",moduleName:y}),l(m,"defineComponent",{name:"\u0275\u0275defineComponent",moduleName:y}),l(m,"declareComponent",{name:"\u0275\u0275ngDeclareComponent",moduleName:y}),l(m,"setComponentScope",{name:"\u0275\u0275setComponentScope",moduleName:y}),l(m,"ChangeDetectionStrategy",{name:"ChangeDetectionStrategy",moduleName:y}),l(m,"ViewEncapsulation",{name:"ViewEncapsulation",moduleName:y}),l(m,"ComponentDeclaration",{name:"\u0275\u0275ComponentDeclaration",moduleName:y}),l(m,"FactoryDeclaration",{name:"\u0275\u0275FactoryDeclaration",moduleName:y}),l(m,"declareFactory",{name:"\u0275\u0275ngDeclareFactory",moduleName:y}),l(m,"FactoryTarget",{name:"\u0275\u0275FactoryTarget",moduleName:y}),l(m,"defineDirective",{name:"\u0275\u0275defineDirective",moduleName:y}),l(m,"declareDirective",{name:"\u0275\u0275ngDeclareDirective",moduleName:y}),l(m,"DirectiveDeclaration",{name:"\u0275\u0275DirectiveDeclaration",moduleName:y}),l(m,"InjectorDef",{name:"\u0275\u0275InjectorDef",moduleName:y}),l(m,"InjectorDeclaration",{name:"\u0275\u0275InjectorDeclaration",moduleName:y}),l(m,"defineInjector",{name:"\u0275\u0275defineInjector",moduleName:y}),l(m,"declareInjector",{name:"\u0275\u0275ngDeclareInjector",moduleName:y}),l(m,"NgModuleDeclaration",{name:"\u0275\u0275NgModuleDeclaration",moduleName:y}),l(m,"ModuleWithProviders",{name:"ModuleWithProviders",moduleName:y}),l(m,"defineNgModule",{name:"\u0275\u0275defineNgModule",moduleName:y}),l(m,"declareNgModule",{name:"\u0275\u0275ngDeclareNgModule",moduleName:y}),l(m,"setNgModuleScope",{name:"\u0275\u0275setNgModuleScope",moduleName:y}),l(m,"registerNgModuleType",{name:"\u0275\u0275registerNgModuleType",moduleName:y}),l(m,"PipeDeclaration",{name:"\u0275\u0275PipeDeclaration",moduleName:y}),l(m,"definePipe",{name:"\u0275\u0275definePipe",moduleName:y}),l(m,"declarePipe",{name:"\u0275\u0275ngDeclarePipe",moduleName:y}),l(m,"declareClassMetadata",{name:"\u0275\u0275ngDeclareClassMetadata",moduleName:y}),l(m,"declareClassMetadataAsync",{name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:y}),l(m,"setClassMetadata",{name:"\u0275setClassMetadata",moduleName:y}),l(m,"setClassMetadataAsync",{name:"\u0275setClassMetadataAsync",moduleName:y}),l(m,"setClassDebugInfo",{name:"\u0275setClassDebugInfo",moduleName:y}),l(m,"queryRefresh",{name:"\u0275\u0275queryRefresh",moduleName:y}),l(m,"viewQuery",{name:"\u0275\u0275viewQuery",moduleName:y}),l(m,"loadQuery",{name:"\u0275\u0275loadQuery",moduleName:y}),l(m,"contentQuery",{name:"\u0275\u0275contentQuery",moduleName:y}),l(m,"viewQuerySignal",{name:"\u0275\u0275viewQuerySignal",moduleName:y}),l(m,"contentQuerySignal",{name:"\u0275\u0275contentQuerySignal",moduleName:y}),l(m,"queryAdvance",{name:"\u0275\u0275queryAdvance",moduleName:y}),l(m,"twoWayProperty",{name:"\u0275\u0275twoWayProperty",moduleName:y}),l(m,"twoWayBindingSet",{name:"\u0275\u0275twoWayBindingSet",moduleName:y}),l(m,"twoWayListener",{name:"\u0275\u0275twoWayListener",moduleName:y}),l(m,"declareLet",{name:"\u0275\u0275declareLet",moduleName:y}),l(m,"storeLet",{name:"\u0275\u0275storeLet",moduleName:y}),l(m,"readContextLet",{name:"\u0275\u0275readContextLet",moduleName:y}),l(m,"arrowFunction",{name:"\u0275\u0275arrowFunction",moduleName:y}),l(m,"attachSourceLocations",{name:"\u0275\u0275attachSourceLocations",moduleName:y}),l(m,"NgOnChangesFeature",{name:"\u0275\u0275NgOnChangesFeature",moduleName:y}),l(m,"ControlFeature",{name:"\u0275\u0275ControlFeature",moduleName:y}),l(m,"InheritDefinitionFeature",{name:"\u0275\u0275InheritDefinitionFeature",moduleName:y}),l(m,"ProvidersFeature",{name:"\u0275\u0275ProvidersFeature",moduleName:y}),l(m,"HostDirectivesFeature",{name:"\u0275\u0275HostDirectivesFeature",moduleName:y}),l(m,"ExternalStylesFeature",{name:"\u0275\u0275ExternalStylesFeature",moduleName:y}),l(m,"listener",{name:"\u0275\u0275listener",moduleName:y}),l(m,"getInheritedFactory",{name:"\u0275\u0275getInheritedFactory",moduleName:y}),l(m,"sanitizeHtml",{name:"\u0275\u0275sanitizeHtml",moduleName:y}),l(m,"sanitizeStyle",{name:"\u0275\u0275sanitizeStyle",moduleName:y}),l(m,"validateAttribute",{name:"\u0275\u0275validateAttribute",moduleName:y}),l(m,"sanitizeResourceUrl",{name:"\u0275\u0275sanitizeResourceUrl",moduleName:y}),l(m,"sanitizeScript",{name:"\u0275\u0275sanitizeScript",moduleName:y}),l(m,"sanitizeUrl",{name:"\u0275\u0275sanitizeUrl",moduleName:y}),l(m,"sanitizeUrlOrResourceUrl",{name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:y}),l(m,"trustConstantHtml",{name:"\u0275\u0275trustConstantHtml",moduleName:y}),l(m,"trustConstantResourceUrl",{name:"\u0275\u0275trustConstantResourceUrl",moduleName:y}),l(m,"inputDecorator",{name:"Input",moduleName:y}),l(m,"outputDecorator",{name:"Output",moduleName:y}),l(m,"viewChildDecorator",{name:"ViewChild",moduleName:y}),l(m,"viewChildrenDecorator",{name:"ViewChildren",moduleName:y}),l(m,"contentChildDecorator",{name:"ContentChild",moduleName:y}),l(m,"contentChildrenDecorator",{name:"ContentChildren",moduleName:y}),l(m,"InputSignalBrandWriteType",{name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:y}),l(m,"UnwrapDirectiveSignalInputs",{name:"\u0275UnwrapDirectiveSignalInputs",moduleName:y}),l(m,"unwrapWritableSignal",{name:"\u0275unwrapWritableSignal",moduleName:y}),l(m,"assertType",{name:"\u0275assertType",moduleName:y});var ME=/-+([a-z0-9])/g;function OE(t){return t.replace(ME,(...e)=>e[1].toUpperCase())}function FE(t,e){return um(t,":",e)}function $E(t,e){return um(t,".",e)}function um(t,e,n){let r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function BE(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 pm(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(pm).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 r>=0?n.slice(0,r):n}var fo=class{constructor(e){l(this,"full");l(this,"major");l(this,"minor");l(this,"patch");this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},Ki=globalThis,UE=/^([1-9]|1[0-8])\./;function hm(t){return t.startsWith("0.")?!0:!UE.test(t)}var VE=3,GE="# sourceMappingURL=data:application/json;base64,",Jc=class{constructor(e=null){l(this,"file");l(this,"sourcesContent",new Map);l(this,"lines",[]);l(this,"lastCol0",0);l(this,"hasMappings",!1);this.file=e}addSource(e,n=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,n),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,n,r,s){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(n!=null&&!this.sourcesContent.has(n))throw new Error(`Unknown source file "${n}"`);if(e==null)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(n&&(r==null||s==null))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:n,sourceLine0:r,sourceCol0:s}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;let e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach((u,h)=>{e.set(u,h),n.push(u),r.push(this.sourcesContent.get(u)||null)});let s="",i=0,o=0,a=0,c=0;return this.lines.forEach(u=>{i=0,s+=u.map(h=>{let d=ya(h.col0-i);return i=h.col0,h.sourceUrl!=null&&(d+=ya(e.get(h.sourceUrl)-o),o=e.get(h.sourceUrl),d+=ya(h.sourceLine0-a),a=h.sourceLine0,d+=ya(h.sourceCol0-c),c=h.sourceCol0),d}).join(","),s+=";"}),s=s.slice(0,-1),{file:this.file||"",version:VE,sourceRoot:"",sources:n,sourcesContent:r,mappings:s}}toJsComment(){return this.hasMappings?"//"+GE+HE(JSON.stringify(this,null,0)):""}};function HE(t){let e="",n=BE(t);for(let r=0;r<n.length;){let s=n[r++],i=r<n.length?n[r++]:null,o=r<n.length?n[r++]:null;e+=qi(s>>2),e+=qi((s&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":qi((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":qi(o&63)}return e}function ya(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+=qi(n)}while(t>0);return e}var qE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function qi(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return qE[t]}var WE=/'|\\|\n|\r/g,jE=/^[$A-Z_][0-9A-Z_$]*$/i,va=" ",Ga=class{constructor(e){l(this,"indent");l(this,"partsLength",0);l(this,"parts",[]);l(this,"srcSpans",[]);this.indent=e}},zE=new Map([[w.And,"&&"],[w.Bigger,">"],[w.BiggerEquals,">="],[w.BitwiseOr,"|"],[w.BitwiseAnd,"&"],[w.Divide,"/"],[w.Assign,"="],[w.Equals,"=="],[w.Identical,"==="],[w.Lower,"<"],[w.LowerEquals,"<="],[w.Minus,"-"],[w.Modulo,"%"],[w.Exponentiation,"**"],[w.Multiply,"*"],[w.NotEquals,"!="],[w.NotIdentical,"!=="],[w.NullishCoalesce,"??"],[w.Or,"||"],[w.Plus,"+"],[w.In,"in"],[w.InstanceOf,"instanceof"],[w.AdditionAssignment,"+="],[w.SubtractionAssignment,"-="],[w.MultiplicationAssignment,"*="],[w.DivisionAssignment,"/="],[w.RemainderAssignment,"%="],[w.ExponentiationAssignment,"**="],[w.AndAssignment,"&&="],[w.OrAssignment,"||="],[w.NullishCoalesceAssignment,"??="]]),Zc=class t{constructor(e){l(this,"_indent");l(this,"_lines");this._indent=e,this._lines=[new Ga(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*va.length+this._currentLine.partsLength}print(e,n,r=!1){n.length>0&&(this._currentLine.parts.push(n),this._currentLine.partsLength+=n.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),r&&this._lines.push(new Ga(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?va.repeat(e.indent)+e.parts.join(""):"").join(`
|
|
6
|
+
`)}toSourceMapGenerator(e,n=0){let r=new Jc(e),s=!1,i=()=>{s||(r.addSource(e," ").addMapping(0,e,0,0),s=!0)};for(let o=0;o<n;o++)r.addLine(),i();return this.sourceLines.forEach((o,a)=>{r.addLine();let c=o.srcSpans,u=o.parts,h=o.indent*va.length,d=0;for(;d<c.length&&!c[d];)h+=u[d].length,d++;for(d<c.length&&a===0&&h===0?s=!0:i();d<c.length;){let p=c[d],g=p.start.file,v=p.start.line,E=p.start.col;for(r.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++}}),r}spanOf(e,n){let r=this._lines[e];if(r){let s=n-va.repeat(r.indent).length;for(let i=0;i<r.parts.length;i++){let o=r.parts[i];if(o.length>s)return r.srcSpans[i];s-=o.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},eu=class{constructor(e,n){l(this,"printComments");l(this,"printTypes");l(this,"lastIfCondition",null);this.printComments=e,this.printTypes=n}visitExpressionStmt(e,n){this.printLeadingComments(e,n),e.expr.visitExpression(this,n),n.println(e,";")}visitReturnStmt(e,n){this.printLeadingComments(e,n),n.print(e,"return "),e.value.visitExpression(this,n),n.println(e,";")}visitIfStmt(e,n){this.printLeadingComments(e,n),n.print(e,"if ("),this.lastIfCondition=e.condition,e.condition.visitExpression(this,n),this.lastIfCondition=null,n.print(e,") {");let r=e.falseCase!=null&&e.falseCase.length>0;e.trueCase.length<=1&&!r?(n.print(e," "),this.visitAllStatements(e.trueCase,n),n.removeEmptyLastLine(),n.print(e," ")):(n.println(),n.incIndent(),this.visitAllStatements(e.trueCase,n),n.decIndent(),r&&(n.println(e,"} else {"),n.incIndent(),this.visitAllStatements(e.falseCase,n),n.decIndent())),n.println(e,"}")}visitDeclareVarStmt(e,n){var s;let r=e.hasModifier(Ue.Final)?"const":"let";this.printLeadingComments(e,n),n.print(e,`${r} ${e.name}`),(s=e.type)==null||s.visitType(this,n),e.value&&(n.print(e," = "),e.value.visitExpression(this,n)),n.println(e,";")}visitInvokeFunctionExpr(e,n){this.printLeadingComments(e,n);let r=this.shouldParenthesize(e.fn,e);r&&n.print(e.fn,"("),e.fn.visitExpression(this,n),r&&n.print(e.fn,")"),n.print(e,e.isOptional?"?.(":"("),this.visitAllExpressions(e.args,n,","),n.print(e,")")}visitTaggedTemplateLiteralExpr(e,n){this.printLeadingComments(e,n),e.tag.visitExpression(this,n),e.template.visitExpression(this,n)}visitTemplateLiteralExpr(e,n){this.printLeadingComments(e,n),n.print(e,"`");for(let r=0;r<e.elements.length;r++){e.elements[r].visitExpression(this,n);let s=r<e.expressions.length?e.expressions[r]:null;s!==null&&(n.print(s,"${"),s.visitExpression(this,n),n.print(s,"}"))}n.print(e,"`")}visitTemplateLiteralElementExpr(e,n){this.printLeadingComments(e,n),n.print(e,e.rawText)}visitTypeofExpr(e,n){this.printLeadingComments(e,n),n.print(e,"typeof "),e.expr.visitExpression(this,n)}visitVoidExpr(e,n){this.printLeadingComments(e,n),n.print(e,"void "),e.expr.visitExpression(this,n)}visitReadVarExpr(e,n){this.printLeadingComments(e,n),n.print(e,e.name)}visitInstantiateExpr(e,n){this.printLeadingComments(e,n),n.print(e,"new "),e.classExpr.visitExpression(this,n),n.print(e,"("),this.visitAllExpressions(e.args,n,","),n.print(e,")")}visitLiteralExpr(e,n){this.printLeadingComments(e,n);let r=e.value;typeof r=="string"?n.print(e,mr(r)):n.print(e,`${r}`)}visitRegularExpressionLiteral(e,n){this.printLeadingComments(e,n),n.print(e,`/${e.body}/${e.flags||""}`)}visitLocalizedString(e,n){this.printLeadingComments(e,n);let r=e.serializeI18nHead();n.print(e,"$localize `"+r.raw);for(let s=1;s<e.messageParts.length;s++)n.print(e,"${"),e.expressions[s-1].visitExpression(this,n),n.print(e,`}${e.serializeI18nTemplatePart(s).raw}`);n.print(e,"`")}visitConditionalExpr(e,n){var r;this.printLeadingComments(e,n),n.print(e,"("),e.condition.visitExpression(this,n),n.print(e," ? "),e.trueCase.visitExpression(this,n),n.print(e," : "),(r=e.falseCase)==null||r.visitExpression(this,n),n.print(e,")")}visitDynamicImportExpr(e,n){this.printLeadingComments(e,n),n.print(e,"import("),typeof e.url=="string"?n.print(e,mr(e.url,!0)):e.url.visitExpression(this,n),n.print(e,")")}visitNotExpr(e,n){this.printLeadingComments(e,n),n.print(e,"!"),e.condition.visitExpression(this,n)}visitFunctionExpr(e,n){var r;this.printLeadingComments(e,n),n.print(e,`function${e.name?" "+e.name:""}(`),this.visitParams(e.params,n),n.print(e,")"),(r=e.type)==null||r.visitType(this,n),n.print(e," {"),n.println(e),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.println(e,"}")}visitArrowFunctionExpr(e,n){var r;if(this.printLeadingComments(e,n),n.print(e,"("),this.visitParams(e.params,n),n.print(e,")"),(r=e.type)==null||r.visitType(this,n),n.print(e," => "),Array.isArray(e.body))n.print(e,"{"),n.println(e),n.incIndent(),this.visitAllStatements(e.body,n),n.decIndent(),n.println(e,"}");else{let s=this.shouldParenthesize(e.body,e);s&&n.print(e,"("),e.body.visitExpression(this,n),s&&n.print(e,")")}}visitDeclareFunctionStmt(e,n){var r;this.printLeadingComments(e,n),n.print(e,`function ${e.name}(`),this.visitParams(e.params,n),n.print(e,")"),(r=e.type)==null||r.visitType(this,n),n.print(e," {"),n.println(e),n.incIndent(),this.visitAllStatements(e.statements,n),n.decIndent(),n.println(e,"}")}visitUnaryOperatorExpr(e,n){this.printLeadingComments(e,n);let r;switch(e.operator){case bn.Plus:r="+";break;case bn.Minus:r="-";break;default:throw new Error(`Unknown operator ${e.operator}`)}let s=e!==this.lastIfCondition;s&&n.print(e,"("),n.print(e,r),e.expr.visitExpression(this,n),s&&n.print(e,")")}visitBinaryOperatorExpr(e,n){this.printLeadingComments(e,n);let r=zE.get(e.operator);if(!r)throw new Error(`Unknown operator ${e.operator}`);let s=e!==this.lastIfCondition;s&&n.print(e,"("),e.lhs.visitExpression(this,n),n.print(e,` ${r} `),e.rhs.visitExpression(this,n),s&&n.print(e,")")}visitReadPropExpr(e,n){this.printLeadingComments(e,n),e.receiver.visitExpression(this,n),n.print(e,e.isOptional?"?.":"."),n.print(e,e.name)}visitReadKeyExpr(e,n){this.printLeadingComments(e,n),e.receiver.visitExpression(this,n),n.print(e,e.isOptional?"?.[":"["),e.index.visitExpression(this,n),n.print(e,"]")}visitLiteralArrayExpr(e,n){this.printLeadingComments(e,n),n.print(e,"["),this.visitAllExpressions(e.entries,n,", "),n.print(e,"]")}visitLiteralMapExpr(e,n){this.printLeadingComments(e,n),n.print(e,"{"),this.visitAllObjects(r=>{r instanceof yn?(n.print(e,"..."),r.expression.visitExpression(this,n)):(n.print(e,`${mr(r.key,r.quoted)}: `),r.value.visitExpression(this,n))},e.entries,n,", "),n.print(e,"}")}visitCommaExpr(e,n){this.printLeadingComments(e,n),n.print(e,"("),this.visitAllExpressions(e.parts,n,", "),n.print(e,")")}visitParenthesizedExpr(e,n){this.printLeadingComments(e,n),e.expr.visitExpression(this,n)}visitSpreadElementExpr(e,n){this.printLeadingComments(e,n),n.print(e,"..."),e.expression.visitExpression(this,n)}visitBuiltinType(e,n){if(this.printTypes)switch(e.name){case Oe.Bool:n.print(null,": boolean");break;case Oe.Dynamic:n.print(null,": any");break;case Oe.Int:case Oe.Number:n.print(null,": number");break;case Oe.String:n.print(null,": string");break;case Oe.None:n.print(null,": void");break;case Oe.Inferred:break;case Oe.Function:n.print(null,": Function");break;default:n.print(null,": any");break}}visitExpressionType(e,n){this.printTypes&&(n.print(null,": "),e.value.visitExpression(this,n),e.typeParams&&e.typeParams.length>0&&(n.print(null,"<"),this.visitAllObjects(r=>r.visitType(this,n),e.typeParams,n,","),n.print(null,">")))}visitArrayType(e,n){this.printTypes&&(n.print(null,": "),e.of.visitType(this,n),n.print(null,"[]"))}visitMapType(e,n){this.printTypes&&(n.print(null,": { [key: string]: "),e.valueType?e.valueType.visitType(this,n):n.print(null,"any"),n.print(null,"}"))}visitTransplantedType(e,n){throw new Error("TransplantedType nodes are not supported")}visitAllExpressions(e,n,r){this.visitAllObjects(s=>s.visitExpression(this,n),e,n,r)}visitAllObjects(e,n,r,s){for(let i=0;i<n.length;i++)i>0&&r.print(null,s,!1),e(n[i])}visitAllStatements(e,n){e.forEach(r=>r.visitStatement(this,n))}visitParams(e,n){this.visitAllObjects(r=>{var s;n.print(null,r.name),(s=r.type)==null||s.visitType(this,n)},e,n,", ")}shouldParenthesize(e,n){return(e instanceof gn||e instanceof hn)&&n instanceof Ae||e instanceof sn&&n instanceof gn}printLeadingComments(e,n){if(!(!this.printComments||e.leadingComments===void 0))for(let r of e.leadingComments)r instanceof uo?n.print(e,`/*${r.toString()}*/`,r.trailingNewline):r.multiline?n.print(e,`/* ${r.text} */`,r.trailingNewline):r.text.split(`
|
|
7
|
+
`).forEach(s=>n.println(e,`// ${s}`))}};function mr(t,e=!0){if(t==null)return null;let n=t.replace(WE,(...s)=>s[0]==`
|
|
8
|
+
`?"\\n":s[0]=="\r"?"\\r":`\\${s[0]}`);return e||!jE.test(n)?`'${n}'`:n}var KE=/[-.]/;function bl(t,e){if(e===0)return Ve(t);let n=[];for(let r=0;r<e;r++)n.push(Ke);return Ve(t,void 0,n)}function fm(t,e){let n=mr(e,!1);return n!==e?`${t}[${n}]`:`${t}.${e}`}function XE(t){return YE("ngJitMode",t)}function YE(t,e){let n=new et({name:t,moduleName:null}),r=new se(w.Identical,new xr(n),S("undefined")),s=new se(w.Or,r,n,void 0,void 0);return new se(w.And,s,e)}function Me(t){let e=new W(t);return{value:e,type:e}}function es(t,e){let n=ce(t.map(r=>r.value));return e?It([],n):n}function mo(){return Sp("@ts-ignore",!0,!0)}function _l(t){return KE.test(t)}function Is(t,e){return{expression:t,forwardRef:e}}function QE({expression:t,forwardRef:e}){switch(e){case 0:case 1:return t;case 2:return JE(t)}}function JE(t){return R(m.forwardRef).callFn([It([],t)])}var go;(function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"})(go||(go={}));function hr(t){let e=Z("__ngFactoryType__"),n=null,r=lf(t)?e:new se(w.Or,e,t.type.value),s=null,i=t.deps!==null&&t.deps!=="invalid"&&t.deps.length>0?[mo()]:void 0;t.deps!==null?t.deps!=="invalid"&&(s=new Js(r,af(t.deps,t.target))):(n=Z(`\u0275${t.name}_BaseFactory`),s=n.callFn([r]));let o=[],a=null;function c(h){let d=Z("__ngConditionalFactory__");o.push(new Xe(d.name,hs,Ke));let p=s!==null?d.set(s).toStmt(i):R(m.invalidFactory).callFn([]).toStmt();return o.push(ta(e,[p],[d.set(h).toStmt([mo()])])),d}if(lf(t)){let h=af(t.delegateDeps,t.target),d=new(t.delegateType===go.Class?Js:Ae)(t.delegate,h);a=c(d)}else rw(t)?a=c(t.expression):a=s;if(a===null)o.push(R(m.invalidFactory).callFn([]).toStmt());else if(n!==null){let h=R(m.getInheritedFactory).callFn([t.type.value]),d=new se(w.Or,n,n.set(h));o.push(new _e(d.callFn([r])))}else o.push(new _e(a,null,i));let u=Wn([new Be(e.name,Ke)],o,dn,void 0,`${t.name}_Factory`);return n!==null&&(u=It([],[new Xe(n.name,void 0,Ke),new _e(u)]).callFn([],void 0,!0)),{expression:u,statements:[],type:ZE(t)}}function ZE(t){let e=t.deps!==null&&t.deps!=="invalid"?tw(t.deps):Lt;return Ve(R(m.FactoryDeclaration,[bl(t.type.type,t.typeArgumentCount),e]))}function af(t,e){return t.map((n,r)=>ew(n,e,r))}function ew(t,e,n){if(t.token===null)return R(m.invalidFactoryDep).callFn([S(n)]);if(t.attributeNameType===null){let r=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(e===ht.Pipe?16:0),s=r!==0||t.optional?S(r):null,i=[t.token];s&&i.push(s);let o=sw(e);return R(o).callFn(i)}else return R(m.injectAttribute).callFn([t.token])}function tw(t){let e=!1,n=t.map(r=>{let s=nw(r);return s!==null?(e=!0,s):S(null)});return e?Ve(ce(n)):Lt}function nw(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?Nt(e):null}function lf(t){return t.delegateType!==void 0}function rw(t){return t.expression!==void 0}function sw(t){switch(t){case ht.Component:case ht.Directive:case ht.Pipe:return m.directiveInject;case ht.NgModule:case ht.Injectable:default:return m.inject}}var fs=class{constructor(e,n){l(this,"start");l(this,"end");this.start=e,this.end=n}toAbsolute(e){return new dt(e+this.start,e+this.end)}},ae=class{constructor(e,n){l(this,"span");l(this,"sourceSpan");this.span=e,this.sourceSpan=n}toString(){return"AST"}},ri=class extends ae{constructor(n,r,s){super(n,r);l(this,"nameSpan");this.nameSpan=s}},rt=class extends ae{visit(e,n=null){var r;return(r=e.visitEmptyExpr)==null?void 0:r.call(e,this,n)}},Ht=class extends ae{visit(e,n=null){return e.visitImplicitReceiver(this,n)}},Ar=class extends ae{visit(e,n=null){var r;return(r=e.visitThisReceiver)==null?void 0:r.call(e,this,n)}},Dr=class extends ae{constructor(n,r,s){super(n,r);l(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitChain(this,r)}},si=class extends ae{constructor(n,r,s,i,o){super(n,r);l(this,"condition");l(this,"trueExp");l(this,"falseExp");this.condition=s,this.trueExp=i,this.falseExp=o}visit(n,r=null){return n.visitConditional(this,r)}},ge=class extends ri{constructor(n,r,s,i,o){super(n,r,s);l(this,"receiver");l(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitPropertyRead(this,r)}},mt=class extends ri{constructor(n,r,s,i,o){super(n,r,s);l(this,"receiver");l(this,"name");this.receiver=i,this.name=o}visit(n,r=null){return n.visitSafePropertyRead(this,r)}},jn=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"receiver");l(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitKeyedRead(this,r)}},ds=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"receiver");l(this,"key");this.receiver=s,this.key=i}visit(n,r=null){return n.visitSafeKeyedRead(this,r)}},qs;(function(t){t[t.ReferencedByName=0]="ReferencedByName",t[t.ReferencedDirectly=1]="ReferencedDirectly"})(qs||(qs={}));var ii=class extends ri{constructor(n,r,s,i,o,a,c){super(n,r,c);l(this,"exp");l(this,"name");l(this,"args");l(this,"type");this.exp=s,this.name=i,this.args=o,this.type=a}visit(n,r=null){return n.visitPipe(this,r)}},ut=class extends ae{constructor(n,r,s){super(n,r);l(this,"value");this.value=s}visit(n,r=null){return n.visitLiteralPrimitive(this,r)}},yo=class extends ae{constructor(n,r,s){super(n,r);l(this,"expressions");this.expressions=s}visit(n,r=null){return n.visitLiteralArray(this,r)}},Ha=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitSpreadElement(this,r)}},ms=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"keys");l(this,"values");this.keys=s,this.values=i}visit(n,r=null){return n.visitLiteralMap(this,r)}},Zn=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"strings");l(this,"expressions");this.strings=s,this.expressions=i}visit(n,r=null){return n.visitInterpolation(this,r)}},Ie=class extends ae{constructor(n,r,s,i,o){super(n,r);l(this,"operation");l(this,"left");l(this,"right");this.operation=s,this.left=i,this.right=o}visit(n,r=null){return n.visitBinary(this,r)}static isAssignmentOperation(n){return n==="="||n==="+="||n==="-="||n==="*="||n==="/="||n==="%="||n==="**="||n==="&&="||n==="||="||n==="??="}},Ws=class t extends Ie{constructor(n,r,s,i,o,a,c){super(n,r,o,a,c);l(this,"operator");l(this,"expr");l(this,"left",null);l(this,"right",null);l(this,"operation",null);this.operator=s,this.expr=i}static createMinus(n,r,s){return new t(n,r,"-",s,"-",new ut(n,r,0),s)}static createPlus(n,r,s){return new t(n,r,"+",s,"-",s,new ut(n,r,0))}visit(n,r=null){return n.visitUnary!==void 0?n.visitUnary(this,r):n.visitBinary(this,r)}},_n=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitPrefixNot(this,r)}},vo=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitTypeofExpression(this,r)}},So=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitVoidExpression(this,r)}},Eo=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r=null){return n.visitNonNullAssert(this,r)}},vn=class extends ae{constructor(n,r,s,i,o){super(n,r);l(this,"receiver");l(this,"args");l(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitCall(this,r)}},kn=class extends ae{constructor(n,r,s,i,o){super(n,r);l(this,"receiver");l(this,"args");l(this,"argumentSpan");this.receiver=s,this.args=i,this.argumentSpan=o}visit(n,r=null){return n.visitSafeCall(this,r)}},wo=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"tag");l(this,"template");this.tag=s,this.template=i}visit(n,r){return n.visitTaggedTemplateLiteral(this,r)}},To=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"elements");l(this,"expressions");this.elements=s,this.expressions=i}visit(n,r){return n.visitTemplateLiteral(this,r)}},qa=class extends ae{constructor(n,r,s){super(n,r);l(this,"text");this.text=s}visit(n,r){return n.visitTemplateLiteralElement(this,r)}},xo=class extends ae{constructor(n,r,s){super(n,r);l(this,"expression");this.expression=s}visit(n,r){return n.visitParenthesizedExpression(this,r)}},tu=class{constructor(e,n,r){l(this,"name");l(this,"span");l(this,"sourceSpan");this.name=e,this.span=n,this.sourceSpan=r}},oi=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"parameters");l(this,"body");this.parameters=s,this.body=i}visit(n,r){return n.visitArrowFunction(this,r)}},Wa=class extends ae{constructor(n,r,s,i){super(n,r);l(this,"body");l(this,"flags");this.body=s,this.flags=i}visit(n,r){return n.visitRegularExpressionLiteral(this,r)}},dt=class{constructor(e,n){l(this,"start");l(this,"end");this.start=e,this.end=n}},Se=class extends ae{constructor(n,r,s,i,o){super(new fs(0,r===null?0:r.length),new dt(i,r===null?i:i+r.length));l(this,"ast");l(this,"source");l(this,"location");l(this,"errors");this.ast=n,this.source=r,this.location=s,this.errors=o}visit(n,r=null){return n.visitASTWithSource?n.visitASTWithSource(this,r):this.ast.visit(n,r)}toString(){return`${this.source} in ${this.location}`}},Co=class{constructor(e,n,r){l(this,"sourceSpan");l(this,"key");l(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},nu=class{constructor(e,n,r){l(this,"sourceSpan");l(this,"key");l(this,"value");this.sourceSpan=e,this.key=n,this.value=r}},gs=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)}},$s=class{constructor(e,n,r,s,i,o){l(this,"name");l(this,"expression");l(this,"type");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"isLiteral");l(this,"isLegacyAnimation");l(this,"isAnimation");this.name=e,this.expression=n,this.type=r,this.sourceSpan=s,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===un.LITERAL_ATTR,this.isLegacyAnimation=this.type===un.LEGACY_ANIMATION,this.isAnimation=this.type===un.ANIMATION}},un;(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"})(un||(un={}));var ze;(function(t){t[t.Regular=0]="Regular",t[t.LegacyAnimation=1]="LegacyAnimation",t[t.TwoWay=2]="TwoWay",t[t.Animation=3]="Animation"})(ze||(ze={}));var ja=class{constructor(e,n,r,s,i,o,a){l(this,"name");l(this,"targetOrPhase");l(this,"type");l(this,"handler");l(this,"sourceSpan");l(this,"handlerSpan");l(this,"keySpan");this.name=e,this.targetOrPhase=n,this.type=r,this.handler=s,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}},ru=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}},J;(function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style",t[t.LegacyAnimation=4]="LegacyAnimation",t[t.TwoWay=5]="TwoWay",t[t.Animation=6]="Animation"})(J||(J={}));var za=class{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"type");l(this,"securityContext");l(this,"value");l(this,"unit");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=c}},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 it(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 cf(t){return it(t)[1]==="ng-container"}function su(t){return it(t)[1]==="ng-content"}function iw(t){return it(t)[1]==="ng-template"}function iu(t){return t===null?null:it(t)[0]}function La(t,e){return t?`:${t}:${e}`:e}var kl=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){throw new Error("visit() not implemented for Comment")}},ts=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e){return e.visitText(this)}},ai=class{constructor(e,n,r){l(this,"value");l(this,"sourceSpan");l(this,"i18n");this.value=e,this.sourceSpan=n,this.i18n=r}visit(e){return e.visitBoundText(this)}},on=class{constructor(e,n,r,s,i,o){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"i18n");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Sn=class t{constructor(e,n,r,s,i,o,a,c,u){l(this,"name");l(this,"type");l(this,"securityContext");l(this,"value");l(this,"unit");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");l(this,"i18n");this.name=e,this.type=n,this.securityContext=r,this.value=s,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=c,this.i18n=u}static fromBoundElementProperty(e,n){if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new t(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,n)}visit(e){return e.visitBoundAttribute(this)}},Rn=class t{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"type");l(this,"handler");l(this,"target");l(this,"phase");l(this,"sourceSpan");l(this,"handlerSpan");l(this,"keySpan");this.name=e,this.type=n,this.handler=r,this.target=s,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=c}static fromParsedEvent(e){let n=e.type===ze.Regular?e.targetOrPhase:null,r=e.type===ze.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)}},At=class{constructor(e,n,r,s,i,o,a,c,u,h,d,p,g){l(this,"name");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"children");l(this,"references");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"isVoid");l(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.children=o,this.references=a,this.isSelfClosing=c,this.sourceSpan=u,this.startSourceSpan=h,this.endSourceSpan=d,this.isVoid=p,this.i18n=g}visit(e){return e.visitElement(this)}},Pn=class{constructor(e,n,r,s,i){l(this,"nameSpan");l(this,"sourceSpan");l(this,"prefetchSpan");l(this,"whenOrOnSourceSpan");l(this,"hydrateSpan");this.nameSpan=e,this.sourceSpan=n,this.prefetchSpan=r,this.whenOrOnSourceSpan=s,this.hydrateSpan=i}visit(e){return e.visitDeferredTrigger(this)}},Ka=class extends Pn{constructor(n,r,s,i,o){super(null,r,s,i,o);l(this,"value");this.value=n}},ou=class extends Pn{},li=class extends Pn{constructor(n,r,s,i,o,a){super(n,r,s,i,o);l(this,"timeout");this.timeout=a}},ci=class extends Pn{},ys=class extends Pn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"reference");this.reference=n}},zn=class extends Pn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"delay");this.delay=n}},vs=class extends Pn{constructor(n,r,s,i,o,a){super(r,s,i,o,a);l(this,"reference");this.reference=n}},br=class extends Pn{constructor(n,r,s,i,o,a,c){super(s,i,o,a,c);l(this,"reference");l(this,"options");this.reference=n,this.options=r}},Ot=class{constructor(e,n,r,s){l(this,"nameSpan");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.nameSpan=e,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=s}},No=class extends Ot{constructor(n,r,s,i,o,a,c){super(s,i,o,a);l(this,"children");l(this,"minimumTime");l(this,"i18n");this.children=n,this.minimumTime=r,this.i18n=c}visit(n){return n.visitDeferredBlockPlaceholder(this)}},Io=class extends Ot{constructor(n,r,s,i,o,a,c,u){super(i,o,a,c);l(this,"children");l(this,"afterTime");l(this,"minimumTime");l(this,"i18n");this.children=n,this.afterTime=r,this.minimumTime=s,this.i18n=u}visit(n){return n.visitDeferredBlockLoading(this)}},Ao=class extends Ot{constructor(n,r,s,i,o,a){super(r,s,i,o);l(this,"children");l(this,"i18n");this.children=n,this.i18n=a}visit(n){return n.visitDeferredBlockError(this)}},Kn=class extends Ot{constructor(n,r,s,i,o,a,c,u,h,d,p,g,v){super(u,h,p,g);l(this,"children");l(this,"placeholder");l(this,"loading");l(this,"error");l(this,"mainBlockSpan");l(this,"i18n");l(this,"triggers");l(this,"prefetchTriggers");l(this,"hydrateTriggers");l(this,"definedTriggers");l(this,"definedPrefetchTriggers");l(this,"definedHydrateTriggers");this.children=n,this.placeholder=o,this.loading=a,this.error=c,this.mainBlockSpan=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),js(n,this.children);let r=[this.placeholder,this.loading,this.error].filter(s=>s!==null);js(n,r)}visitTriggers(n,r,s){js(s,n.map(i=>r[i]))}},ui=class extends Ot{constructor(n,r,s,i,o,a,c,u){super(u,o,a,c);l(this,"expression");l(this,"groups");l(this,"unknownBlocks");l(this,"exhaustiveCheck");this.expression=n,this.groups=r,this.unknownBlocks=s,this.exhaustiveCheck=i}visit(n){return n.visitSwitchBlock(this)}},au=class extends Ot{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"expression");this.expression=n}visit(n){return n.visitSwitchBlockCase(this)}},Do=class extends Ot{constructor(n,r,s,i,o,a,c){super(a,s,i,o);l(this,"cases");l(this,"children");l(this,"i18n");this.cases=n,this.children=r,this.i18n=c}visit(n){return n.visitSwitchBlockCaseGroup(this)}},lu=class extends Ot{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"expression");this.expression=n}visit(n){return n.visitSwitchExhaustiveCheck(this)}},_r=class extends Ot{constructor(n,r,s,i,o,a,c,u,h,d,p,g,v){super(g,u,d,p);l(this,"item");l(this,"expression");l(this,"trackBy");l(this,"trackKeywordSpan");l(this,"contextVariables");l(this,"children");l(this,"empty");l(this,"mainBlockSpan");l(this,"i18n");this.item=n,this.expression=r,this.trackBy=s,this.trackKeywordSpan=i,this.contextVariables=o,this.children=a,this.empty=c,this.mainBlockSpan=h,this.i18n=v}visit(n){return n.visitForLoopBlock(this)}},bo=class extends Ot{constructor(n,r,s,i,o,a){super(o,r,s,i);l(this,"children");l(this,"i18n");this.children=n,this.i18n=a}visit(n){return n.visitForLoopBlockEmpty(this)}},pi=class extends Ot{constructor(n,r,s,i,o){super(o,r,s,i);l(this,"branches");this.branches=n}visit(n){return n.visitIfBlock(this)}},rs=class extends Ot{constructor(n,r,s,i,o,a,c,u){super(c,i,o,a);l(this,"expression");l(this,"children");l(this,"expressionAlias");l(this,"i18n");this.expression=n,this.children=r,this.expressionAlias=s,this.i18n=u}visit(n){return n.visitIfBlockBranch(this)}},Xa=class{constructor(e,n,r){l(this,"name");l(this,"sourceSpan");l(this,"nameSpan");this.name=e,this.sourceSpan=n,this.nameSpan=r}visit(e){return e.visitUnknownBlock(this)}},er=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"nameSpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},vr=class{constructor(e,n,r,s,i,o,a,c,u,h,d,p,g,v){l(this,"componentName");l(this,"tagName");l(this,"fullName");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"children");l(this,"references");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.componentName=e,this.tagName=n,this.fullName=r,this.attributes=s,this.inputs=i,this.outputs=o,this.directives=a,this.children=c,this.references=u,this.isSelfClosing=h,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=v}visit(e){return e.visitComponent(this)}},na=class{constructor(e,n,r,s,i,o,a,c,u){l(this,"name");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"references");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.name=e,this.attributes=n,this.inputs=r,this.outputs=s,this.references=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitDirective(this)}},Te=class{constructor(e,n,r,s,i,o,a,c,u,h,d,p,g,v){l(this,"tagName");l(this,"attributes");l(this,"inputs");l(this,"outputs");l(this,"directives");l(this,"templateAttrs");l(this,"children");l(this,"references");l(this,"variables");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");this.tagName=e,this.attributes=n,this.inputs=r,this.outputs=s,this.directives=i,this.templateAttrs=o,this.children=a,this.references=c,this.variables=u,this.isSelfClosing=h,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=g,this.i18n=v}visit(e){return e.visitTemplate(this)}},hi=class{constructor(e,n,r,s,i,o,a,c){l(this,"selector");l(this,"attributes");l(this,"children");l(this,"isSelfClosing");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");l(this,"i18n");l(this,"name","ng-content");this.selector=e,this.attributes=n,this.children=r,this.isSelfClosing=s,this.sourceSpan=i,this.startSourceSpan=o,this.endSourceSpan=a,this.i18n=c}visit(e){return e.visitContent(this)}},En=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitVariable(this)}},kr=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"keySpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.keySpan=s,this.valueSpan=i}visit(e){return e.visitReference(this)}},dm=class{constructor(e,n,r,s){l(this,"vars");l(this,"placeholders");l(this,"sourceSpan");l(this,"i18n");this.vars=e,this.placeholders=n,this.sourceSpan=r,this.i18n=s}visit(e){return e.visitIcu(this)}},_o=class{constructor(e,n,r,s){l(this,"tagNames");l(this,"bindings");l(this,"listeners");l(this,"sourceSpan");if(this.tagNames=e,this.bindings=n,this.listeners=r,this.sourceSpan=s,e.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function js(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 Tt=class{constructor(e,n,r,s,i,o){l(this,"nodes");l(this,"placeholders");l(this,"placeholderToMessage");l(this,"meaning");l(this,"description");l(this,"customId");l(this,"sources");l(this,"id");l(this,"legacyIds",[]);l(this,"messageString");this.nodes=e,this.placeholders=n,this.placeholderToMessage=r,this.meaning=s,this.description=i,this.customId=o,this.id=this.customId,this.messageString=ow(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=[]}},Oi=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitText(this,n)}},Gn=class{constructor(e,n){l(this,"children");l(this,"sourceSpan");this.children=e,this.sourceSpan=n}visit(e,n){return e.visitContainer(this,n)}},Ya=class{constructor(e,n,r,s,i){l(this,"expression");l(this,"type");l(this,"cases");l(this,"sourceSpan");l(this,"expressionPlaceholder");this.expression=e,this.type=n,this.cases=r,this.sourceSpan=s,this.expressionPlaceholder=i}visit(e,n){return e.visitIcu(this,n)}},Rr=class{constructor(e,n,r,s,i,o,a,c,u){l(this,"tag");l(this,"attrs");l(this,"startName");l(this,"closeName");l(this,"children");l(this,"isVoid");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.tag=e,this.attrs=n,this.startName=r,this.closeName=s,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=c,this.endSourceSpan=u}visit(e,n){return e.visitTagPlaceholder(this,n)}},ko=class{constructor(e,n,r){l(this,"value");l(this,"name");l(this,"sourceSpan");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitPlaceholder(this,n)}},fi=class{constructor(e,n,r){l(this,"value");l(this,"name");l(this,"sourceSpan");l(this,"previousMessage");this.value=e,this.name=n,this.sourceSpan=r}visit(e,n){return e.visitIcuPlaceholder(this,n)}},Pr=class{constructor(e,n,r,s,i,o,a,c){l(this,"name");l(this,"parameters");l(this,"startName");l(this,"closeName");l(this,"children");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=e,this.parameters=n,this.startName=r,this.closeName=s,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=c}visit(e,n){return e.visitBlockPlaceholder(this,n)}};function ow(t){let e=new cu;return t.map(r=>r.visit(e)).join("")}var cu=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 aw=class{visitTag(e){let n=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${n}/>`;let r=e.children.map(s=>s.visit(this));return`<${e.name}${n}>${r.join("")}</${e.name}>`}visitText(e){return e.value}visitDeclaration(e){return`<?xml${this._serializeAttributes(e.attrs)} ?>`}_serializeAttributes(e){let n=Object.keys(e).map(r=>`${r}="${e[r]}"`).join(" ");return n.length>0?" "+n:""}visitDoctype(e){return`<!DOCTYPE ${e.rootTag} [
|
|
9
9
|
${e.dtd}
|
|
10
|
-
]>`}},
|
|
10
|
+
]>`}},hF=new aw;function lw(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var mm="i18n",uu="i18n-",cw="VAR_";function gm(t){return t===mm||t.startsWith(uu)}function uw(t){return t.attrs.some(e=>gm(e.name))}function ym(t){return t.nodes[0]}function Ep(t={},e){let n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(r=>n[ra(r,e)]=t[r]),n}function ra(t,e=!0){let n=lw(t);if(!e)return n;let r=n.split("_");if(r.length===1)return t.toLowerCase();let s;/^\d+$/.test(r[r.length-1])&&(s=r.pop());let i=r.shift().toLowerCase();return r.length&&(i+=r.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),s?`${i}_${s}`:i}var wp="_t",qt="ctx",wi="rf";function vm(t,e){let n=null;return()=>(n||(t(new Xe(wp,void 0,Ke)),n=Z(e)),n)}function Bs(t){return Array.isArray(t)?ce(t.map(Bs)):S(t,dn)}function uf(t,e){let n=Object.getOwnPropertyNames(t);return n.length===0?null:Nt(n.map(r=>{let s=t[r],i,o,a,c;if(typeof s=="string")i=r,a=r,o=s,c=Bs(o);else{a=r,i=s.classPropertyName,o=s.bindingPropertyName;let u=o!==i,h=s.transformFunction!==null,d=Fs.None;if(s.isSignal&&(d|=Fs.SignalBased),h&&(d|=Fs.HasDecoratorInputTransform),e&&(u||h||d!==Fs.None)){let p=[S(d),Bs(o)];(u||h)&&(p.push(Bs(i)),h&&p.push(s.transformFunction)),c=ce(p)}else c=Bs(o)}return{key:a,quoted:_l(a),value:c}}))}var Xn=class{constructor(){l(this,"values",[])}set(e,n){if(n){let r=this.values.find(s=>s.key===e);r?r.value=n:this.values.push({key:e,value:n,quoted:!1})}}toLiteralMap(){return Nt(this.values)}};function pw(t){let e=t instanceof At?t.name:"ng-template",n=hw(t),r=new Er,s=it(e)[1];return r.setElement(s),Object.getOwnPropertyNames(n).forEach(i=>{let o=it(i)[1],a=n[i];r.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(u=>r.addClassName(u))}),r}function hw(t){let e={};return t instanceof Te&&t.tagName!=="ng-template"?t.templateAttrs.forEach(n=>e[n.name]=""):(t.attributes.forEach(n=>{gm(n.name)||(e[n.name]=n.value)}),t.inputs.forEach(n=>{(n.type===J.Property||n.type===J.TwoWay)&&(e[n.name]="")}),t.outputs.forEach(n=>{e[n.name]=""})),e}function pu(t,e){let n=null,r={name:t.name,type:t.type,typeArgumentCount:t.typeArgumentCount,deps:[],target:ht.Injectable};if(t.useClass!==void 0){let a=t.useClass.expression.isEquivalent(t.type.value),c;t.deps!==void 0&&(c=t.deps),c!==void 0?n=hr(he(x({},r),{delegate:t.useClass.expression,delegateDeps:c,delegateType:go.Class})):a?n=hr(r):n={statements:[],expression:hu(t.type.value,t.useClass.expression,e)}}else t.useFactory!==void 0?t.deps!==void 0?n=hr(he(x({},r),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:go.Function})):n={statements:[],expression:It([],t.useFactory.callFn([]))}:t.useValue!==void 0?n=hr(he(x({},r),{expression:t.useValue.expression})):t.useExisting!==void 0?n=hr(he(x({},r),{expression:R(m.inject).callFn([t.useExisting.expression])})):n={statements:[],expression:hu(t.type.value,t.type.value,e)};let s=t.type.value,i=new Xn;return i.set("token",s),i.set("factory",n.expression),t.providedIn.expression.value!==null&&i.set("providedIn",QE(t.providedIn)),{expression:R(m.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:Sm(t.type.type,t.typeArgumentCount),statements:n.statements}}function Sm(t,e){return new ft(R(m.InjectableDeclaration,[bl(t,e)]))}function hu(t,e,n){if(t.node===e.node)return e.prop("\u0275fac");if(!n)return pf(e);let r=R(m.resolveForwardRef).callFn([e]);return pf(r)}function pf(t){let e=new Be("__ngFactoryType__",Ke);return It([e],t.prop("\u0275fac").callFn([Z(e.name)]))}var Tp=!1,qe=0,fw=8,xp=9,ss=10,Em=11,wm=12,Cp=13,Tm=32,fu=33,Ro=34,xm=35,Rl=36,dw=37,Qa=38,Po=39,wt=40,We=41,du=42,Cm=43,pt=44,Ja=45,Qr=46,Vt=47,Nn=58,Rt=59,zs=60,Ze=61,Ut=62,hf=63,Np=48,mw=55,Nm=57,Hr=65,gw=69,yw=70,vw=88,Ti=90,An=91,is=92,Bn=93,Sw=94,qr=95,Ss=97,Ew=98,ww=101,Ip=102,Im=110,Am=114,Dm=116,bm=117,_m=118,km=120,sa=122,Jt=123,ff=124,Et=125,Rm=160,bs=64,mu=96;function Lo(t){return t>=xp&&t<=Tm||t==Rm}function Yt(t){return Np<=t&&t<=Nm}function Lr(t){return t>=Ss&&t<=sa||t>=Hr&&t<=Ti}function Tw(t){return t>=Ss&&t<=Ip||t>=Hr&&t<=yw||Yt(t)}function Xi(t){return t===ss||t===Cp}function df(t){return Np<=t&&t<=mw}function Yi(t){return t===Po||t===Ro||t===mu}var Es=class t{constructor(e,n,r,s){l(this,"file");l(this,"offset");l(this,"line");l(this,"col");this.file=e,this.offset=n,this.line=r,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let n=this.file.content,r=n.length,s=this.offset,i=this.line,o=this.col;for(;s>0&&e<0;)if(s--,e++,n.charCodeAt(s)==ss){i--;let c=n.substring(0,s-1).lastIndexOf(String.fromCharCode(ss));o=c>0?s-c:s}else o--;for(;s<r&&e>0;){let a=n.charCodeAt(s);s++,e--,a==ss?(i++,o=0):o++}return new t(this.file,s,i,o)}getContext(e,n){let r=this.file.content,s=this.offset;if(s!=null){s>r.length-1&&(s=r.length-1);let i=s,o=0,a=0;for(;o<e&&s>0&&(s--,o++,!(r[s]==`
|
|
11
11
|
`&&++a==n)););for(o=0,a=0;o<e&&i<r.length-1&&(i++,o++,!(r[i]==`
|
|
12
|
-
`&&++a==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},Mr=class{constructor(e,n){l(this,"content");l(this,"url");this.content=e,this.url=n}},G=class{constructor(e,n,r=e,s=null){l(this,"start");l(this,"end");l(this,"fullStart");l(this,"details");this.start=e,this.end=n,this.fullStart=r,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Un;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Un||(Un={}));var V=class extends Error{constructor(n,r,s=Un.ERROR,i){super(r);l(this,"span");l(this,"msg");l(this,"level");l(this,"relatedError");this.span=n,this.msg=r,this.level=s,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let n=this.span.start.getContext(100,3);return n?`${this.msg} ("${n.before}[${Un[this.level]} ->]${n.after}")`:this.msg}toString(){let n=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${n}`}};function
|
|
12
|
+
`&&++a==n)););return{before:r.substring(s,this.offset),after:r.substring(this.offset,i+1)}}return null}},Mr=class{constructor(e,n){l(this,"content");l(this,"url");this.content=e,this.url=n}},G=class{constructor(e,n,r=e,s=null){l(this,"start");l(this,"end");l(this,"fullStart");l(this,"details");this.start=e,this.end=n,this.fullStart=r,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Un;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Un||(Un={}));var V=class extends Error{constructor(n,r,s=Un.ERROR,i){super(r);l(this,"span");l(this,"msg");l(this,"level");l(this,"relatedError");this.span=n,this.msg=r,this.level=s,this.relatedError=i,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let n=this.span.start.getContext(100,3);return n?`${this.msg} ("${n.before}[${Un[this.level]} ->]${n.after}")`:this.msg}toString(){let n=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${n}`}};function xw(t,e,n){let r=`in ${t} ${e} in ${n}`,s=new Mr("",r);return new G(new Es(s,-1,-1,-1),new Es(s,-1,-1,-1))}var Cw=0;function Nw(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=pm(e);return n.indexOf("(")>=0?(n=`anonymous_${Cw++}`,e.__anonymousType=n):n=Jr(n),n}function Jr(t){return t.replace(/\W/g,"_")}var mf='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',gu=class extends eu{constructor(){super(!1,!1)}visitWrappedNodeExpr(e,n){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,n){n.print(e,`var ${e.name}`),e.value&&(n.print(e," = "),e.value.visitExpression(this,n)),n.println(e,";")}visitTaggedTemplateLiteralExpr(e,n){let r=e.template.elements;e.tag.visitExpression(this,n),n.print(e,`(${mf}(`),n.print(e,`[${r.map(s=>mr(s.text)).join(", ")}], `),n.print(e,`[${r.map(s=>mr(s.rawText)).join(", ")}])`),e.template.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")")}visitTemplateLiteralExpr(e,n){n.print(e,"`");for(let r=0;r<e.elements.length;r++){e.elements[r].visitExpression(this,n);let s=r<e.expressions.length?e.expressions[r]:null;s!==null&&(n.print(s,"${"),s.visitExpression(this,n),n.print(s,"}"))}n.print(e,"`")}visitTemplateLiteralElementExpr(e,n){n.print(e,e.rawText)}visitLocalizedString(e,n){n.print(e,`$localize(${mf}(`);let r=[e.serializeI18nHead()];for(let s=1;s<e.messageParts.length;s++)r.push(e.serializeI18nTemplatePart(s));n.print(e,`[${r.map(s=>mr(s.cooked)).join(", ")}], `),n.print(e,`[${r.map(s=>mr(s.raw)).join(", ")}])`),e.expressions.forEach(s=>{n.print(e,", "),s.visitExpression(this,n)}),n.print(e,")")}},Sa;function Iw(){if(Sa===void 0){let t=Ki.trustedTypes;if(Sa=null,t)try{Sa=t.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch(e){}}return Sa}function Aw(t){var e;return((e=Iw())==null?void 0:e.createScript(t))||t}function gf(...t){if(!Ki.trustedTypes)return new Function(...t);let e=t.slice(0,-1).join(","),n=t[t.length-1],r=`(function anonymous(${e}
|
|
13
13
|
) { ${n}
|
|
14
|
-
})`,s=
|
|
14
|
+
})`,s=Ki.eval(Aw(r));return s.bind===void 0?new Function(...t):(s.toString=()=>r,s.bind(Ki))}var yu=class{evaluateStatements(e,n,r,s){let i=new vu(r),o=Zc.createRoot();return n.length>0&&!Dw(n[0])&&(n=[S("use strict").toStmt(),...n]),i.visitAllStatements(n,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),s)}evaluateCode(e,n,r,s){let i=`"use strict";${n.toSource()}
|
|
15
15
|
//# sourceURL=${e}`,o=[],a=[];for(let u in r)a.push(r[u]),o.push(u);if(s){let u=gf(...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=gf(...o.concat(i));return this.executeFunction(c,a)}executeFunction(e,n){return e(...n)}},yu=class extends mu{constructor(n){super();l(this,"refResolver");l(this,"_evalArgNames",[]);l(this,"_evalArgValues",[]);l(this,"_evalExportedVars",[]);this.refResolver=n}createReturnStmt(n){new ke(new sn(this._evalExportedVars.map(s=>new Cr(s,Z(s),!1)))).visitStatement(this,n)}getArgs(){let n={};for(let r=0;r<this._evalArgNames.length;r++)n[this._evalArgNames[r]]=this._evalArgValues[r];return n}visitExternalExpr(n,r){return this._emitReferenceToExternal(n,this.refResolver.resolveExternalReference(n.value),r),null}visitWrappedNodeExpr(n,r){return this._emitReferenceToExternal(n,n.node,r),null}visitDeclareVarStmt(n,r){return n.hasModifier(Ue.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareVarStmt(n,r)}visitDeclareFunctionStmt(n,r){return n.hasModifier(Ue.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareFunctionStmt(n,r)}_emitReferenceToExternal(n,r,s){let i=this._evalArgValues.indexOf(r);if(i===-1){i=this._evalArgValues.length,this._evalArgValues.push(r);let o=Cw({reference:r})||"val";this._evalArgNames.push(`jit_${o}_${i}`)}s.print(n,this._evalArgNames[i])}};function Aw(t){return t.isEquivalent(S("use strict").toStmt())}function vu(t){let e=new Xn;t.providers!==null&&e.set("providers",t.providers),t.imports.length>0&&e.set("imports",ce(t.imports));let n=R(m.defineInjector).callFn([e.toLiteralMap()],void 0,!0),r=Dw(t);return{expression:n,type:r,statements:[]}}function Dw(t){return new pt(R(m.InjectorDeclaration,[new pt(t.type.type)]))}var Su=class{constructor(e){l(this,"context");this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},di;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(di||(di={}));var _t;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local",t[t.Isolated=2]="Isolated"})(_t||(_t={}));function Rm(t){let e=[],n=new Xn;if(n.set("type",t.type.value),t.kind===_t.Global&&t.bootstrap.length>0&&n.set("bootstrap",es(t.bootstrap,t.containsForwardDecls)),t.selectorScopeMode===di.Inline)t.declarations.length>0&&n.set("declarations",es(t.declarations,t.containsForwardDecls)),t.imports.length>0&&n.set("imports",es(t.imports,t.containsForwardDecls)),t.exports.length>0&&n.set("exports",es(t.exports,t.containsForwardDecls));else if(t.selectorScopeMode===di.SideEffect){let i=_w(t);i!==null&&e.push(i)}t.schemas!==null&&t.schemas.length>0&&n.set("schemas",ce(t.schemas.map(i=>i.value))),t.id!==null&&(n.set("id",t.id),e.push(R(m.registerNgModuleType).callFn([t.type.value,t.id]).toStmt()));let r=R(m.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),s=kw(t);return{expression:r,type:s,statements:e}}function bw(t){let e=new Xn;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)),R(m.defineNgModule).callFn([e.toLiteralMap()])}function kw(t){if(t.kind===_t.Local)return new pt(t.type.value);if(t.kind===_t.Isolated)return new pt(R(m.NgModuleDeclaration,[new pt(t.type.type),Lt,t.importsExpression?Ve(t.importsExpression):Lt,t.exportsExpression?Ve(t.exportsExpression):Lt]));let{type:e,declarations:n,exports:r,imports:s,includeImportTypes:i,publicDeclarationTypes:o}=t;return new pt(R(m.NgModuleDeclaration,[new pt(e.type),o===null?Ec(n):Rw(o),i?Ec(s):Lt,Ec(r)]))}function _w(t){let e=new Xn;if(t.kind===_t.Global?t.declarations.length>0&&e.set("declarations",es(t.declarations,t.containsForwardDecls)):t.kind===_t.Local&&t.declarationsExpression&&e.set("declarations",t.declarationsExpression),t.kind===_t.Global?t.imports.length>0&&e.set("imports",es(t.imports,t.containsForwardDecls)):t.kind===_t.Local&&t.importsExpression&&e.set("imports",t.importsExpression),t.kind===_t.Global?t.exports.length>0&&e.set("exports",es(t.exports,t.containsForwardDecls)):t.kind===_t.Local&&t.exportsExpression&&e.set("exports",t.exportsExpression),t.kind===_t.Local&&t.bootstrapExpression&&e.set("bootstrap",t.bootstrapExpression),Object.keys(e.values).length===0)return null;let n=new Ae(R(m.setNgModuleScope),[t.type.value,e.toLiteralMap()]),r=KE(n),s=new hn([],[r.toStmt()]);return new Ae(s,[]).toStmt()}function Ec(t){let e=t.map(n=>Ei(n.type));return t.length>0?Ve(ce(e)):Lt}function Rw(t){let e=t.map(n=>Ei(n));return t.length>0?Ve(ce(e)):Lt}function Eu(t){var s;let e=[];e.push({key:"name",value:S((s=t.pipeName)!=null?s:t.name),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:S(t.pure),quoted:!1}),t.isStandalone===!1&&e.push({key:"standalone",value:S(!1),quoted:!1});let n=R(m.definePipe).callFn([Ct(e)],void 0,!0),r=Pw(t);return{expression:n,type:r,statements:[]}}function Pw(t){return new pt(R(m.PipeDeclaration,[bl(t.type.type,t.typeArgumentCount),new pt(new _e(t.pipeName)),new pt(new _e(t.isStandalone))]))}var Or;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Or||(Or={}));var Lw=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"]),Mw=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],wu=class{constructor(){l(this,"_animationDeclarationKeyframesRe",/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g);l(this,"_safeSelector");l(this,"_shouldScopeIndicator")}shimCssText(e,n,r=""){let s=[];e=e.replace(Kw,a=>{var c;if(a.match(Xw))s.push(a);else{let u=a.match(zw);s.push((c=u==null?void 0:u.join(""))!=null?c:"")}return Ap});let i=this._scopeCssText(e,n,r),o=0;return i.replace(Yw,()=>s[o++])}_scopeKeyframesRelatedCss(e,n){let r=new Set,s=wa(e,i=>this._scopeLocalKeyframeDeclarations(i,n,r));return wa(s,i=>this._scopeAnimationRule(i,n,r))}_scopeLocalKeyframeDeclarations(e,n,r){return he(x({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(s,i,o,a,c)=>(r.add(vf(a,o)),`${i}${o}${n}_${a}${o}${c}`))})}_scopeAnimationKeyframe(e,n,r){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(s,i,o,a,c)=>(a=`${r.has(vf(a,o))?n+"_":""}${a}`,`${i}${o}${a}${o}${c}`))}_scopeAnimationRule(e,n,r){let s=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*)([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(c,u,h="",d,p)=>d?`${u}${this._scopeAnimationKeyframe(`${h}${d}${h}`,n,r)}`:Lw.has(p)?c:`${u}${this._scopeAnimationKeyframe(p,n,r)}`));return s=s.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(c=>this._scopeAnimationKeyframe(c,n,r)).join(",")}`),he(x({},e),{content:s})}_scopeCssText(e,n,r){return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),n&&(e=this._scopeKeyframesRelatedCss(e,n),e=this._scopeSelectors(e,n,r)),e.trim()}_convertColonHost(e){return e.replace(Uw,(n,r,s)=>{if(r){let i=[...this._splitOnTopLevelCommas(r,!0)];if(i.length>1)return":host("+r+")"+s;let o=i[0].trim();if(o)return ur+o.replace(Za,"")+s}return ur+s})}*_splitOnTopLevelCommas(e,n){let r=e.length,s=0,i=0;for(let o=0;o<r;o++){let a=e.charCodeAt(o);if(a===Et)s++;else if(a===We){if(s--,s<0&&n){yield e.slice(i,o);return}}else a===ct&&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(Gw,(n,r)=>{let s=[[]],i=n.indexOf(Ms);for(;i!==-1;){let o=n.substring(i+Ms.length);if(!o||o[0]!=="("){n=o,i=n.indexOf(Ms);continue}let a=[],c=0;for(let h of this._splitOnTopLevelCommas(o.substring(1),!0)){c=c+h.length+1;let d=h.trim();d&&a.push(d)}let u=s.length;aT(s,a.length);for(let h=0;h<a.length;h++)for(let d=0;d<u;d++)s[d+h*u].push(a[h]);n=o.substring(c+1),i=n.indexOf(Ms)}return s.map(o=>oT(o,n,r)).join(", ")})}_scopeSelectors(e,n,r){return wa(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector({selector:i,scopeSelector:n,hostSelector:r,isParentSelector:!0}):Mw.some(a=>s.selector.startsWith(a))?o=this._scopeSelectors(s.content,n,r):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(s.content)),new Oo(i,o)})}_stripScopingSelectors(e){return wa(e,n=>{let r=n.selector.replace(yf," ").replace(wc," ");return new Oo(r,n.content)})}_scopeSelector({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s=!1}){let i=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(i).map(o=>o.split(yf)).map(o=>{let[a,...c]=o;return[(h=>this._selectorNeedsScoping(h,n)?this._applySelectorScope({selector:h,scopeSelector:n,hostSelector:r,isParentSelector:s}):h)(a),...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+")"+qw,"m")}_applySimpleSelectorScope(e,n,r){if(Us.lastIndex=0,Us.test(e)){let s=`[${r}]`,i=e;for(;i.match(wc);)i=i.replace(wc,(o,a)=>a.replace(/([^:\)]*)(:*)(.*)/,(c,u,h,d)=>u+s+h+d));return i.replace(Us,s)}return n+" "+e}_applySelectorScope({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s}){var E;let i=/\[is=([^\]]*)\]/g;n=n.replace(i,(I,...D)=>D[0]);let o=`[${n}]`,a=I=>{let D=I.trim();if(!D)return I;if(I.includes(ur)){if(D=this._applySimpleSelectorScope(I,n,r),!I.match(Hw)){let[k,_,H,X]=D.match(/([^:]*)(:*)([\s\S]*)/);D=_+o+H+X}}else{let k=I.replace(Us,"");if(k.length>0){let _=k.match(/([^:]*)(:*)([\s\S]*)/);_&&(D=_[1]+o+_[2]+_[3])}}return D},c=I=>{let D="",k=[],_;for(;(_=Fi.exec(I))!==null;){let H=1,X=Fi.lastIndex;for(;X<I.length;){let ie=I[X];if(X++,ie==="("){H++;continue}if(ie===")"){if(H--,H===0)break;continue}}k.push(`${_[0]}${I.slice(Fi.lastIndex,X)}`),Fi.lastIndex=X}return k.join("")===I?D=k.map(H=>{var we;let[X]=(we=H.match(Fi))!=null?we:[],ie=H.slice(X==null?void 0:X.length,-1);ie.includes(ur)&&(this._shouldScopeIndicator=!0);let Re=this._scopeSelector({selector:ie,scopeSelector:n,hostSelector:r});return`${X}${Re})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||I.includes(ur),D=this._shouldScopeIndicator?a(I):I),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 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 k=c(D);u+=`${k} ${I} `,h=p.lastIndex}let v=e.substring(h);return u+=c(v),this._safeSelector.restore(u)}_insertPolyfillHostInCssText(e){return e.replace(jw,Ms).replace(Ww,Za)}},Tu=class{constructor(e){l(this,"placeholders",[]);l(this,"index",0);l(this,"_content");e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(n,r)=>{let s=`__esc-ph-${this.index}__`;return this.placeholders.push(r),this.index++,s}),this._content=e.replace(Bw,(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})}},Ow="(:(where|is)\\()?",Fi=/:(where|is)\(/gi,Za="-shadowcsshost",Ms="-shadowcsscontext",xu="[^)(]*",Fw=String.raw`(?:\(${xu}\)|${xu})+?`,$w=String.raw`(?:\(${Fw}\)|${xu})+?`,Ip=String.raw`(?:\((${$w})\))`,Bw=new RegExp(String.raw`(:nth-[-\w]+)`+Ip,"g"),Uw=new RegExp(Za+Ip+"?([^,{]*)","gim"),Vw=Ms+Ip+"([^{]*)",Gw=new RegExp(`${Ow}(${Vw})`,"gim"),ur=Za+"-no-combinator",Hw=new RegExp(`${ur}(?![^(]*\\))`,"g"),wc=/-shadowcsshost-no-combinator([^\s,]*)/,yf=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,qw="([>\\s~+[.,{:][\\s\\S]*)?$",Us=/-shadowcsshost/gim,Ww=/:host(?!\-context)/gim,jw=/:host-context(?=\(\s*[^)\s])/gim,zw=/\r?\n/g,Kw=/\/\*[\s\S]*?\*\//g,Xw=/\/\*\s*#\s*source(Mapping)?URL=/g,Ap="%COMMENT%",Yw=new RegExp(Ap,"g"),Tc="%BLOCK%",Qw=new RegExp(`(\\s*(?:${Ap}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),Jw=new Map([["{","}"]]),Pm="%COMMA_IN_PLACEHOLDER%",Lm="%SEMI_IN_PLACEHOLDER%",Mm="%COLON_IN_PLACEHOLDER%",Zw=new RegExp(Pm,"g"),eT=new RegExp(Lm,"g"),tT=new RegExp(Mm,"g"),Oo=class{constructor(e,n){l(this,"selector");l(this,"content");this.selector=e,this.content=n}};function wa(t,e){let n=sT(t),r=nT(n,Jw,Tc),s=0,i=r.escapedString.replace(Qw,(...o)=>{let a=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 Oo(a,c));return`${o[1]}${d.selector}${o[3]}${h}${d.content}${u}`});return iT(i)}var Cu=class{constructor(e,n){l(this,"escapedString");l(this,"blocks");this.escapedString=e,this.blocks=n}};function nT(t,e,n){let r=[],s=[],i=0,o=0,a=-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(a,h)),r.push(n),o=h,a=-1,c=u=void 0)):d===c?i++:i===0&&e.has(d)&&(c=d,u=e.get(d),i=1,a=h+1,r.push(t.substring(o,a)))}return a!==-1?(s.push(t.substring(a)),r.push(n)):r.push(t.substring(o)),new Cu(r.join(""),s)}var rT={";":Lm,",":Pm,":":Mm};function sT(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=rT[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function iT(t){let e=t.replace(Zw,",");return e=e.replace(eT,";"),e=e.replace(tT,":"),e}function vf(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function oT(t,e,n=""){let r=ur;Us.lastIndex=0;let s=Us.test(e);if(t.length===0)return r+e;let i=[t.pop()||""];for(;t.length>0;){let o=i.length,a=t.pop();for(let c=0;c<o;c++){let u=i[c];i[o*2+c]=u+" "+a,i[o+c]=a+" "+u,i[c]=a+u}}return i.map(o=>s?`${n}${o}${e}`:`${n}${o}${r}${e}, ${n}${o} ${r}${e}`).join(",")}function aT(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.EnableIncrementalHydrationRuntime=35]="EnableIncrementalHydrationRuntime",t[t.Projection=36]="Projection",t[t.RepeaterCreate=37]="RepeaterCreate",t[t.Repeater=38]="Repeater",t[t.TwoWayProperty=39]="TwoWayProperty",t[t.TwoWayListener=40]="TwoWayListener",t[t.DeclareLet=41]="DeclareLet",t[t.StoreLet=42]="StoreLet",t[t.I18nStart=43]="I18nStart",t[t.I18n=44]="I18n",t[t.I18nEnd=45]="I18nEnd",t[t.I18nExpression=46]="I18nExpression",t[t.I18nApply=47]="I18nApply",t[t.IcuStart=48]="IcuStart",t[t.IcuEnd=49]="IcuEnd",t[t.IcuPlaceholder=50]="IcuPlaceholder",t[t.I18nContext=51]="I18nContext",t[t.I18nAttributes=52]="I18nAttributes",t[t.SourceLocation=53]="SourceLocation",t[t.Animation=54]="Animation",t[t.AnimationString=55]="AnimationString",t[t.AnimationBinding=56]="AnimationBinding",t[t.AnimationListener=57]="AnimationListener",t[t.Control=58]="Control",t[t.ControlCreate=59]="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.SafeNavigationMigration=17]="SafeNavigationMigration",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 Gt;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(Gt||(Gt={}));var Qe;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(Qe||(Qe={}));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 mi;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(mi||(mi={}));var ws;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(ws||(ws={}));var pe;(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"})(pe||(pe={}));var Fe;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(Fe||(Fe={}));var le;(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"})(le||(le={}));var gr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(gr||(gr={}));var Tt;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(Tt||(Tt={}));var fe=class fe{constructor(){l(this,"debugListId",fe.nextListId++);l(this,"head",{kind:f.ListEnd,next:null,prev:null,debugListId:this.debugListId});l(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 a=n[0],c=o;s!==null&&(s.next=a,a.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")}};l(fe,"nextListId",0);var T=fe;function Wt(t){return x({kind:f.Statement,statement:t},j)}function fr(t,e,n,r){return x({kind:f.Variable,xref:t,variable:e,initializer:n,flags:r},j)}var j={debugListId:null,prev:null,next:null},Om=Symbol("ConsumesSlot"),Dp=Symbol("DependsOnSlotContext"),As=Symbol("ConsumesVars"),oa=Symbol("UsesVarOffset"),an={[Om]:!0,numSlotsUsed:1},Ft={[Dp]:!0},$t={[As]:!0};function xi(t){return t[Om]===!0}function Fo(t){return t[Dp]===!0}function xc(t){return t[As]===!0}function Sf(t){return t[oa]===!0}function lT(t,e,n){return x(x(x({kind:f.InterpolateText,target:t,interpolation:e,sourceSpan:n},Ft),$t),j)}var De=class{constructor(e,n,r){l(this,"strings");l(this,"expressions");l(this,"i18nPlaceholders");if(this.strings=e,this.expressions=n,this.i18nPlaceholders=r,r.length!==0&&r.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${r.length}`)}};function Ts(t,e,n,r,s,i,o,a,c,u,h){return x({kind:f.Binding,bindingKind:e,target:t,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:a,templateKind:c,i18nContext:null,i18nMessage:u,sourceSpan:h},j)}function cT(t,e,n,r,s,i,o,a,c,u){return x(x(x({kind:f.Property,target:t,name:e,expression:n,bindingKind:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:a,i18nMessage:c,sourceSpan:u},Ft),$t),j)}function uT(t,e,n,r,s,i,o,a,c){return x(x(x({kind:f.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:a,sourceSpan:c},Ft),$t),j)}function pT(t,e,n,r,s){return x(x(x({kind:f.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s},Ft),$t),j)}function hT(t,e,n,r){return x(x(x({kind:f.ClassProp,target:t,name:e,expression:n,sourceSpan:r},Ft),$t),j)}function fT(t,e,n){return x(x(x({kind:f.StyleMap,target:t,expression:e,sourceSpan:n},Ft),$t),j)}function dT(t,e,n){return x(x(x({kind:f.ClassMap,target:t,expression:e,sourceSpan:n},Ft),$t),j)}function Ef(t,e,n,r,s,i,o,a,c,u){return x(x(x({kind:f.Attribute,target:t,namespace:e,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:a,i18nContext:null,i18nMessage:c,sourceSpan:u},Ft),$t),j)}function mT(t,e){return x({kind:f.Advance,delta:t,sourceSpan:e},j)}function Fm(t,e,n,r){return x(x(x({kind:f.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null},j),Ft),$t)}function gT(t,e,n,r){return x(x({kind:f.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r},j),Ft)}function wf(t,e,n,r,s,i,o){return x({kind:f.AnimationBinding,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i,animationBindingKind:o},j)}function yT(t,e,n,r){return x(x(x({kind:f.DeferWhen,target:t,expr:e,modifier:n,sourceSpan:r},j),Ft),$t)}function $m(t,e,n,r,s,i,o,a,c,u,h){return x(x(x({kind:f.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:a,usage:c,name:u,sourceSpan:h},j),$t),Ft)}function vT(t,e,n){return x({kind:f.I18nApply,owner:t,handle:e,sourceSpan:n},j)}function ST(t,e,n,r){return x(x(x({kind:f.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r},Ft),$t),j)}function ET(t,e){return x(x({kind:f.Control,sourceSpan:e,target:t},Ft),j)}function Ln(t){return t instanceof ue}var ue=class extends oe{constructor(e=null){super(null,e)}},Ye=class t extends ue{constructor(n){super();l(this,"name");l(this,"kind",F.LexicalRead);this.name=n}visitExpression(n,r){}isEquivalent(n){return this.name===n.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},el=class t extends ue{constructor(n,r,s){super();l(this,"target");l(this,"targetSlot");l(this,"offset");l(this,"kind",F.Reference);this.target=n,this.targetSlot=r,this.offset=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot,this.offset)}},$d,Bd,Ud,$o=class t extends(Ud=ue,Bd=As,$d=Dp,Ud){constructor(n,r,s){super();l(this,"target");l(this,"value");l(this,"sourceSpan");l(this,"kind",F.StoreLet);l(this,Bd,!0);l(this,$d,!0);this.target=n,this.value=r,this.sourceSpan=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target&&n.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(n,r){this.value=P(this.value,n,r)}clone(){return new t(this.target,this.value,this.sourceSpan)}},Bo=class t extends ue{constructor(n,r){super();l(this,"target");l(this,"targetSlot");l(this,"kind",F.ContextLetReference);this.target=n,this.targetSlot=r}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot)}},Fr=class t extends ue{constructor(n){super();l(this,"view");l(this,"kind",F.Context);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},Nu=class t extends ue{constructor(n){super();l(this,"view");l(this,"kind",F.TrackContext);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},tl=class t extends ue{constructor(){super(...arguments);l(this,"kind",F.NextContext);l(this,"steps",1)}visitExpression(){}isEquivalent(n){return n instanceof t&&n.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let n=new t;return n.steps=this.steps,n}},Iu=class t extends ue{constructor(){super();l(this,"kind",F.GetCurrentView)}visitExpression(){}isEquivalent(n){return n instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},Uo=class t extends ue{constructor(n){super();l(this,"view");l(this,"kind",F.RestoreView);this.view=n}visitExpression(n,r){typeof this.view!="number"&&this.view.visitExpression(n,r)}isEquivalent(n){return!(n instanceof t)||typeof n.view!=typeof this.view?!1:typeof this.view=="number"?this.view===n.view:this.view.isEquivalent(n.view)}isConstant(){return!1}transformInternalExpressions(n,r){typeof this.view!="number"&&(this.view=P(this.view,n,r))}clone(){return new t(this.view instanceof oe?this.view.clone():this.view)}},nl=class t extends ue{constructor(n){super();l(this,"expr");l(this,"kind",F.ResetView);this.expr=n}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r)}clone(){return new t(this.expr.clone())}},rl=class t extends ue{constructor(n,r){super();l(this,"target");l(this,"value");l(this,"kind",F.TwoWayBindingSet);this.target=n,this.value=r}visitExpression(n,r){this.target.visitExpression(n,r),this.value.visitExpression(n,r)}isEquivalent(n){return this.target.isEquivalent(n.target)&&this.value.isEquivalent(n.value)}isConstant(){return!1}transformInternalExpressions(n,r){this.target=P(this.target,n,r),this.value=P(this.value,n,r)}clone(){return new t(this.target,this.value)}},Hn=class t extends ue{constructor(n){super();l(this,"xref");l(this,"kind",F.ReadVariable);l(this,"name",null);this.xref=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let n=new t(this.xref);return n.name=this.name,n}},Vd,Gd,Hd,xs=class t extends(Hd=ue,Gd=As,Vd=oa,Hd){constructor(n,r){super();l(this,"kind",F.PureFunctionExpr);l(this,Gd,!0);l(this,Vd,!0);l(this,"varOffset",null);l(this,"body");l(this,"args");l(this,"fn",null);this.body=n,this.args=r}visitExpression(n,r){var s;(s=this.body)==null||s.visitExpression(n,r);for(let i of this.args)i.visitExpression(n,r)}isEquivalent(n){return!(n instanceof t)||n.args.length!==this.args.length?!1:n.body!==null&&this.body!==null&&n.body.isEquivalent(this.body)&&n.args.every((r,s)=>r.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(n,r){this.body!==null?this.body=P(this.body,n,r|K.InChildOperation):this.fn!==null&&(this.fn=P(this.fn,n,r));for(let s=0;s<this.args.length;s++)this.args[s]=P(this.args[s],n,r)}clone(){var r,s,i,o;let n=new t((s=(r=this.body)==null?void 0:r.clone())!=null?s:null,this.args.map(a=>a.clone()));return n.fn=(o=(i=this.fn)==null?void 0:i.clone())!=null?o:null,n.varOffset=this.varOffset,n}},$r=class t extends ue{constructor(n){super();l(this,"index");l(this,"kind",F.PureFunctionParameterExpr);this.index=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},qd,Wd,jd,Cs=class t extends(jd=ue,Wd=As,qd=oa,jd){constructor(n,r,s,i){super();l(this,"target");l(this,"targetSlot");l(this,"name");l(this,"args");l(this,"kind",F.PipeBinding);l(this,Wd,!0);l(this,qd,!0);l(this,"varOffset",null);this.target=n,this.targetSlot=r,this.name=s,this.args=i}visitExpression(n,r){for(let s of this.args)s.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){for(let s=0;s<this.args.length;s++)this.args[s]=P(this.args[s],n,r)}clone(){let n=new t(this.target,this.targetSlot,this.name,this.args.map(r=>r.clone()));return n.varOffset=this.varOffset,n}},zd,Kd,Xd,Vo=class t extends(Xd=ue,Kd=As,zd=oa,Xd){constructor(n,r,s,i,o){super();l(this,"target");l(this,"targetSlot");l(this,"name");l(this,"args");l(this,"numArgs");l(this,"kind",F.PipeBindingVariadic);l(this,Kd,!0);l(this,zd,!0);l(this,"varOffset",null);this.target=n,this.targetSlot=r,this.name=s,this.args=i,this.numArgs=o}visitExpression(n,r){this.args.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.args=P(this.args,n,r)}clone(){let n=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return n.varOffset=this.varOffset,n}},os=class t extends ue{constructor(n,r){super();l(this,"receiver");l(this,"name");l(this,"kind",F.SafePropertyRead);this.receiver=n,this.name=r}get index(){return this.name}visitExpression(n,r){this.receiver.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=P(this.receiver,n,r)}clone(){return new t(this.receiver.clone(),this.name)}},as=class t extends ue{constructor(n,r,s){super(s);l(this,"receiver");l(this,"index");l(this,"kind",F.SafeKeyedRead);this.receiver=n,this.index=r}visitExpression(n,r){this.receiver.visitExpression(n,r),this.index.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=P(this.receiver,n,r),this.index=P(this.index,n,r)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},Go=class t extends ue{constructor(n){super();l(this,"expr");l(this,"kind",F.SafeNavigationMigration);this.expr=n}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}isConstant(){return this.expr.isConstant()}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r|K.InSafeNavigationMigration)}clone(){return new t(this.expr.clone())}},gi=class t extends ue{constructor(n,r){super();l(this,"guard");l(this,"expr");l(this,"kind",F.SafeTernaryExpr);this.guard=n,this.expr=r}visitExpression(n,r){this.guard.visitExpression(n,r),this.expr.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.guard=P(this.guard,n,r),this.expr=P(this.expr,n,r)}clone(){return new t(this.guard.clone(),this.expr.clone())}},Ho=class t extends ue{constructor(){super(...arguments);l(this,"kind",F.EmptyExpr)}visitExpression(n,r){}isEquivalent(n){return n instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},Mn=class t extends ue{constructor(n,r){super();l(this,"expr");l(this,"xref");l(this,"kind",F.AssignTemporaryExpr);l(this,"name",null);this.expr=n,this.xref=r}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r)}clone(){let n=new t(this.expr.clone(),this.xref);return n.name=this.name,n}},Br=class t extends ue{constructor(n){super();l(this,"xref");l(this,"kind",F.ReadTemporaryExpr);l(this,"name",null);this.xref=n}visitExpression(n,r){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(n,r){}clone(){let n=new t(this.xref);return n.name=this.name,n}},sl=class t extends ue{constructor(n){super();l(this,"slot");l(this,"kind",F.SlotLiteralExpr);this.slot=n}visitExpression(n,r){}isEquivalent(n){return n instanceof t&&n.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},il=class t extends ue{constructor(n,r,s,i=null){super();l(this,"expr");l(this,"target");l(this,"targetSlot");l(this,"alias");l(this,"kind",F.ConditionalCase);this.expr=n,this.target=r,this.targetSlot=s,this.alias=i}visitExpression(n,r){this.expr!==null&&this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&n.expr===this.expr}isConstant(){return!0}clone(){return new t(this.expr,this.target,this.targetSlot)}transformInternalExpressions(n,r){this.expr!==null&&(this.expr=P(this.expr,n,r))}},qo=class t extends ue{constructor(n){super();l(this,"expr");l(this,"kind",F.ConstCollected);this.expr=n}transformInternalExpressions(n,r){this.expr=n(this.expr,r)}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t?this.expr.isEquivalent(n.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr)}},Yd,Qd,Jd,Au=class t extends(Jd=ue,Qd=As,Yd=oa,Jd){constructor(n,r){super();l(this,"parameters");l(this,"body");l(this,"kind",F.ArrowFunction);l(this,Qd,!0);l(this,Yd,!0);l(this,"contextName",qt);l(this,"currentViewName","view");l(this,"varOffset",null);l(this,"ops");this.parameters=n,this.body=r,this.ops=new T,this.ops.push([Wt(new ke(r,r.sourceSpan))])}visitExpression(n,r){for(let s of this.ops)$e(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)xe(s,n,r|(K.InChildOperation|K.InArrowFunctionOperation))}clone(){let n=new t(this.parameters,this.body);return n.varOffset=this.varOffset,n.ops=this.ops,n}};function $e(t,e){xe(t,(n,r)=>(e(n,r),n),K.None)}var K;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation",t[t.InArrowFunctionOperation=2]="InArrowFunctionOperation",t[t.InSafeNavigationMigration=4]="InSafeNavigationMigration"})(K||(K={}));function Cc(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n)}function xe(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 De?Cc(t.expression,e,n):t.expression=P(t.expression,e,n);break;case f.Property:case f.DomProperty:case f.Attribute:t.expression instanceof De?Cc(t.expression,e,n):t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case f.TwoWayProperty:t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case f.I18nExpression:t.expression=P(t.expression,e,n);break;case f.InterpolateText:Cc(t.interpolation,e,n);break;case f.Statement:ol(t.statement,e,n);break;case f.Variable:t.initializer=P(t.initializer,e,n);break;case f.Conditional:for(let r of t.conditions)r.expr!==null&&(r.expr=P(r.expr,e,n));t.processed!==null&&(t.processed=P(t.processed,e,n)),t.contextValue!==null&&(t.contextValue=P(t.contextValue,e,n));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:for(let r of t.handlerOps)xe(r,e,n|K.InChildOperation);break;case f.ExtractedAttribute:t.expression=t.expression&&P(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&P(t.trustedValueFn,e,n);break;case f.RepeaterCreate:if(t.trackByOps===null)t.track=P(t.track,e,n);else for(let r of t.trackByOps)xe(r,e,n|K.InChildOperation);t.trackByFn!==null&&(t.trackByFn=P(t.trackByFn,e,n));break;case f.Repeater:t.collection=P(t.collection,e,n);break;case f.Defer:t.loadingConfig!==null&&(t.loadingConfig=P(t.loadingConfig,e,n)),t.placeholderConfig!==null&&(t.placeholderConfig=P(t.placeholderConfig,e,n)),t.resolverFn!==null&&(t.resolverFn=P(t.resolverFn,e,n));break;case f.I18nMessage:for(let[r,s]of t.params)t.params.set(r,P(s,e,n));for(let[r,s]of t.postprocessingParams)t.postprocessingParams.set(r,P(s,e,n));break;case f.DeferWhen:t.expr=P(t.expr,e,n);break;case f.StoreLet:t.value=P(t.value,e,n);break;case f.Advance:case f.Container:case f.ContainerEnd:case f.ContainerStart:case f.DeferOn:case f.DisableBindings:case f.Element:case f.ElementEnd:case f.ElementStart:case f.EnableBindings:case f.I18n:case f.I18nApply:case f.I18nContext:case f.I18nEnd:case f.I18nStart:case f.IcuEnd:case f.IcuStart:case f.Namespace:case f.Pipe:case f.Projection:case f.ProjectionDef:case f.EnableIncrementalHydrationRuntime: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 P(t,e,n){if(t instanceof ue)t.transformInternalExpressions(e,n);else if(t instanceof se)t.lhs=P(t.lhs,e,n),t.rhs=P(t.rhs,e,n);else if(t instanceof qn)t.expr=P(t.expr,e,n);else if(t instanceof st)t.receiver=P(t.receiver,e,n);else if(t instanceof rn)t.receiver=P(t.receiver,e,n),t.index=P(t.index,e,n);else if(t instanceof Ae){t.fn=P(t.fn,e,n);for(let r=0;r<t.args.length;r++)t.args[r]=P(t.args[r],e,n)}else if(t instanceof Mt)for(let r=0;r<t.entries.length;r++)t.entries[r]=P(t.entries[r],e,n);else if(t instanceof sn)for(let r of t.entries)r instanceof yn?r.expression=P(r.expression,e,n):r.value=P(r.value,e,n);else if(t instanceof mn)t.condition=P(t.condition,e,n),t.trueCase=P(t.trueCase,e,n),t.falseCase!==null&&(t.falseCase=P(t.falseCase,e,n));else if(t instanceof xr)t.expr=P(t.expr,e,n);else if(t instanceof oo)t.expr=P(t.expr,e,n);else if(t instanceof lo)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(t instanceof ei)t.condition=P(t.condition,e,n);else if(t instanceof Qs)t.tag=P(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>P(r,e,n));else if(t instanceof gn)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)ol(t.body[r],e,n|K.InChildOperation);else t.body=P(t.body,e,n|K.InChildOperation);else if(!(t instanceof W)){if(t instanceof Zs)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(t instanceof nn)t.expr=P(t.expr,e,n);else if(t instanceof Nr)t.expression=P(t.expression,e,n);else if(!(t instanceof tn||t instanceof Ze||t instanceof _e||t instanceof ps))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function ol(t,e,n){if(t instanceof et)t.expr=P(t.expr,e,n);else if(t instanceof ke)t.value=P(t.value,e,n);else if(t instanceof Xe)t.value!==void 0&&(t.value=P(t.value,e,n));else if(t instanceof ho){t.condition=P(t.condition,e,n);for(let r of t.trueCase)ol(r,e,n);for(let r of t.falseCase)ol(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function Bm(t){return t instanceof _e&&typeof t.value=="string"}var it=class{constructor(){l(this,"slot",null)}},wT=new Set([f.Element,f.ElementStart,f.Container,f.ContainerStart,f.Template,f.RepeaterCreate,f.ConditionalCreate,f.ConditionalBranchCreate]);function Ur(t){return wT.has(t.kind)}function TT(t,e,n,r,s,i){return x(x({kind:f.ElementStart,xref:e,tag:t,handle:new it,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i},an),j)}function Um(t,e,n,r,s,i,o,a){return x(x({kind:f.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new it,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},an),j)}function Vm(t,e,n,r,s,i,o,a){return x(x({kind:f.ConditionalCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new it,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},an),j)}function Gm(t,e,n,r,s,i,o,a){return x(x({kind:f.ConditionalBranchCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new it,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},an),j)}function xT(t,e,n,r,s,i,o,a,c,u){return he(x(x(x({kind:f.RepeaterCreate,attributes:null,xref:t,handle:new it,emptyView:e,track:r,trackByFn:null,trackByOps:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Fe.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:s,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:c,wholeSourceSpan:u},an),j),$t),{numSlotsUsed:e===null?2:3})}function CT(t,e){return x({kind:f.ElementEnd,xref:t,sourceSpan:e},j)}function NT(t){return x({kind:f.DisableBindings,xref:t},j)}function IT(t){return x({kind:f.EnableBindings,xref:t},j)}function Hm(t,e,n,r){return x(x({kind:f.Text,xref:t,handle:new it,initialValue:e,icuPlaceholder:n,sourceSpan:r},an),j)}function AT(t,e,n,r,s,i){return x({kind:f.AnimationString,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},j)}function DT(t,e,n,r,s,i){let o=new T;return o.push(r),x({kind:f.Animation,name:t,target:e,animationKind:n,handlerOps:o,handlerFnName:null,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},j)}function bp(t,e,n,r,s,i,o,a,c){let u=new T;return u.push(s),x({kind:f.Listener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:i!==null,legacyAnimationPhase:i,eventTarget:o,sourceSpan:c},j)}function qm(t,e,n,r,s,i,o,a,c){let u=new T;return u.push(s),x({kind:f.AnimationListener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,animationKind:i,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,eventTarget:o,sourceSpan:c},j)}function Wm(t,e,n,r,s,i){let o=new T;return o.push(s),x({kind:f.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i},j)}function bT(t,e,n){return x(x({kind:f.Pipe,xref:t,handle:e,name:n},j),an)}function kT(t){return x({kind:f.Namespace,active:t},j)}function _T(t){return x({kind:f.ProjectionDef,def:t},j)}function RT(t){return x({kind:f.EnableIncrementalHydrationRuntime,sourceSpan:t},j)}function PT(t,e,n,r,s){return he(x(x({kind:f.Projection,xref:t,handle:new it,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s},j),an),{numSlotsUsed:r===null?1:2})}function Zt(t,e,n,r,s,i,o,a){return x({kind:f.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null},j)}function LT(t,e,n,r,s,i){return he(x(x({kind:f.Defer,xref:t,handle:new it,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),an),{numSlotsUsed:2})}function cr(t,e,n,r){return x({kind:f.DeferOn,defer:t,trigger:e,modifier:n,sourceSpan:r},j)}function MT(t,e,n){return x(x({kind:f.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new it},an),j)}function OT(t,e,n,r,s,i,o,a){return x({kind:f.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[]},j)}function Pl(t,e,n,r){return x(x({kind:f.I18nStart,xref:t,handle:new it,root:n!=null?n:t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r},j),an)}function Ll(t,e){return x({kind:f.I18nEnd,xref:t,sourceSpan:e},j)}function FT(t,e,n,r){return x({kind:f.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r},j)}function $T(t){return x({kind:f.IcuEnd,xref:t},j)}function BT(t,e,n){return x({kind:f.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[]},j)}function Nc(t,e,n,r,s){if(n===null&&t!==gr.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:r,sourceSpan:s,params:new Map,postprocessingParams:new Map},j)}function jm(t,e,n){return x(x({kind:f.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null},j),an)}function UT(t,e){return x({kind:f.SourceLocation,templatePath:t,locations:e},j)}function VT(t){return x({kind:f.ControlCreate,sourceSpan:t},j)}function GT(t,e,n,r,s,i){return x(x({kind:f.DomProperty,name:t,expression:e,bindingKind:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i},$t),j)}var zm="CTX_REF_MARKER",b;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(b||(b={}));var vt;(function(t){t[t.Full=0]="Full",t[t.DomOnly=1]="DomOnly"})(vt||(vt={}));var al=class{constructor(e,n,r,s){l(this,"componentName");l(this,"pool");l(this,"mode");l(this,"legacyOptionalChaining");l(this,"kind",b.Both);l(this,"nextXrefId",0);this.componentName=e,this.pool=n,this.mode=r,this.legacyOptionalChaining=s}allocateXrefId(){return this.nextXrefId++}},Wo=class extends al{constructor(n,r,s,i,o,a,c,u,h,d){super(n,r,s,d);l(this,"relativeContextFilePath");l(this,"i18nUseExternalIds");l(this,"deferMeta");l(this,"allDeferrableDepsFn");l(this,"relativeTemplatePath");l(this,"enableDebugLocations");l(this,"kind",b.Tmpl);l(this,"fnSuffix","Template");l(this,"root");l(this,"views",new Map);l(this,"contentSelectors",null);l(this,"consts",[]);l(this,"constsInitializers",[]);this.relativeContextFilePath=i,this.i18nUseExternalIds=o,this.deferMeta=a,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 r=new en(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}},ll=class{constructor(e){l(this,"xref");l(this,"create",new T);l(this,"update",new T);l(this,"functions",new Set);l(this,"fnName",null);l(this,"vars",null);this.xref=e}*ops(){for(let e of this.functions)for(let n of e.ops)yield n;for(let e of this.create)if(yield e,e.kind===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 ll{constructor(n,r,s){super(r);l(this,"job");l(this,"parent");l(this,"contextVariables",new Map);l(this,"aliases",new Set);l(this,"decls",null);this.job=n,this.parent=s}},cl=class extends al{constructor(n,r,s,i){super(n,r,s,i);l(this,"kind",b.Host);l(this,"fnSuffix","HostBindings");l(this,"root");this.root=new Du(this)}get units(){return[this.root]}},Du=class extends ll{constructor(n){super(0);l(this,"job");l(this,"attributes",null);this.job=n}};function HT(t){for(let e of t.units)for(let n of e.ops())xe(n,qT,K.None)}function qT(t){if(t instanceof Ae&&t.fn instanceof Ye&&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 WT(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&&jT(e,r)&&T.insertAfter(vT(r.i18nOwner,r.handle,null),r)}function jT(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 zT(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,T.insertBefore(o,n);r.length=0,s=null}if(xi(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===f.I18nExpression&&n.usage===ws.I18nText&&n.i18nOwner===s.blockXref){let a=n;n=n.next,T.remove(a),r.push(a);continue}let o=!1;if(Fo(n)&&n.target!==i.xref?o=!0:(n.kind===f.Statement||n.kind===f.Variable)&&$e(n,a=>{!o&&Fo(a)&&a.target!==i.xref&&(o=!0)}),o)break;n=n.next}}}}function KT(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(UT(t.relativeTemplatePath,n))}}function Km(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 XT(t){for(let e of t.units){let n=Km(e);for(let r of e.ops())switch(r.kind){case f.Attribute:YT(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,T.insertBefore(Zt(r.target,s,null,r.name,null,null,null,r.securityContext),Os(n,r.target))}break;case f.TwoWayProperty:T.insertBefore(Zt(r.target,M.TwoWayProperty,null,r.name,null,null,null,r.securityContext),Os(n,r.target));break;case f.StyleProp:case f.ClassProp:r.expression instanceof Ho&&T.insertBefore(Zt(r.target,M.Property,null,r.name,null,null,null,re.STYLE),Os(n,r.target));break;case f.Listener:if(!r.isLegacyAnimationListener){let s=Zt(r.target,M.Property,null,r.name,null,null,null,re.NONE);if(t.kind===b.Host)break;T.insertBefore(s,Os(n,r.target))}break;case f.TwoWayListener:if(t.kind!==b.Host){let s=Zt(r.target,M.Property,null,r.name,null,null,null,re.NONE);T.insertBefore(s,Os(n,r.target))}break}}}function Os(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 YT(t,e,n){if(!(e.expression instanceof De)&&e.isTextAttribute){let r=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===b.Host)t.create.push(r);else{let s=Os(n,e.target);T.insertBefore(r,s)}T.remove(e)}}var Tf="aria-";function Xm(t){return t.startsWith(Tf)&&t.length>Tf.length}function QT(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 JT(t){let e=new Map;for(let n of t.units)for(let r of n.create)Ur(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"){T.remove(r);let s=QT(e,r.target);s.nonBindable=!0}else if(r.name.startsWith("animate."))T.replace(r,wf(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,0));else{let[s,i]=ft(r.name);T.replace(r,Ef(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case M.Animation:T.replace(r,wf(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===vt.DomOnly&&Xm(r.name)?T.replace(r,Ef(r.target,null,r.name,r.expression,r.securityContext,!1,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan)):t.kind===b.Host?T.replace(r,GT(r.name,r.expression,r.bindingKind,r.i18nContext,r.securityContext,r.sourceSpan)):T.replace(r,cT(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 oe))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);T.replace(r,uT(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 xf=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]]),ZT=256;function ex(t){for(let e of t.units)Cf(e.create),Cf(e.update)}function Cf(t){let e=null;for(let n of t){if(n.kind!==f.Statement||!(n.statement instanceof et)){e=null;continue}if(!(n.statement.expr instanceof Ae)||!(n.statement.expr.fn instanceof Ze)){e=null;continue}let r=n.statement.expr.fn.value;if(!xf.has(r)){e=null;continue}if(e!==null&&xf.get(e.instruction)===r&&e.length<ZT){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++,T.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function tx(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 De&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function nx(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(a=>a.expr===null);if(s>=0){let a=n.conditions.splice(s,1)[0].targetSlot;r=new sl(a)}else r=S(-1);let i=n.test==null?null:new Mn(n.test,t.allocateXrefId()),o=null;for(let a=n.conditions.length-1;a>=0;a--){let c=n.conditions[a];if(c.expr!==null){if(i!==null){let u=a===0?i:new Br(i.xref);c.expr=new se(w.Identical,u,c.expr)}else c.alias!==null&&(o!=null||(o=t.allocateXrefId()),c.expr=new Mn(c.expr,o),n.contextValue=new Br(o));r=new mn(c.expr,new sl(c.targetSlot),r)}}n.processed=r,n.conditions=[]}}var rx=new Map([["&&",w.And],[">",w.Bigger],[">=",w.BiggerEquals],["|",w.BitwiseOr],["&",w.BitwiseAnd],["/",w.Divide],["=",w.Assign],["==",w.Equals],["===",w.Identical],["<",w.Lower],["<=",w.LowerEquals],["-",w.Minus],["%",w.Modulo],["**",w.Exponentiation],["*",w.Multiply],["!=",w.NotEquals],["!==",w.NotIdentical],["??",w.NullishCoalesce],["||",w.Or],["+",w.Plus],["in",w.In],["instanceof",w.InstanceOf],["+=",w.AdditionAssignment],["-=",w.SubtractionAssignment],["*=",w.MultiplicationAssignment],["/=",w.DivisionAssignment],["%=",w.RemainderAssignment],["**=",w.ExponentiationAssignment],["&&=",w.AndAssignment],["||=",w.OrAssignment],["??=",w.NullishCoalesceAssignment]]);function Ym(t){var n;let e=new Map([["svg",Fe.SVG],["math",Fe.Math]]);return t===null?Fe.HTML:(n=e.get(t))!=null?n:Fe.HTML}function sx(t){let e=new Map([["svg",Fe.SVG],["math",Fe.Math]]);for(let[n,r]of e.entries())if(r===t)return n;return null}function ix(t,e){return e===Fe.HTML?t:`:${sx(e)}:${t}`}function yi(t){return Array.isArray(t)?ce(t.map(yi)):S(t)}function ox(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 bu;e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),T.remove(r)}if(t instanceof Wo)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=ku(s);i.entries.length>0&&(r.attributes=t.pool.getConstLiteral(i,!0))}}else Ur(r)&&(r.attributes=Nf(t,e,r.xref),r.kind===f.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=Nf(t,e,r.emptyView)));else if(t instanceof cl)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=ku(r);s.entries.length>0&&(t.root.attributes=s)}}function Nf(t,e,n){let r=e.get(n);if(r!==void 0){let s=ku(r);if(s.entries.length>0)return t.addConst(s)}return null}var ks=Object.freeze([]),bu=class{constructor(){l(this,"known",new Map);l(this,"byKind",new Map);l(this,"propertyBindings",null);l(this,"projectAs",null)}get attributes(){var e;return(e=this.byKind.get(M.Attribute))!=null?e:ks}get classes(){var e;return(e=this.byKind.get(M.ClassName))!=null?e:ks}get styles(){var e;return(e=this.byKind.get(M.StyleProperty))!=null?e:ks}get bindings(){var e;return(e=this.propertyBindings)!=null?e:ks}get template(){var e;return(e=this.byKind.get(M.Template))!=null?e:ks}get i18n(){var e;return(e=this.byKind.get(M.I18n))!=null?e:ks}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 a=this.arrayFor(e);if(a.push(...ax(s,n)),e===M.Attribute||e===M.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");i!==null&&Bm(r)?a.push(am(i,new Zs([new ao(r.value)],[]),void 0,r.sourceSpan)):a.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 ax(t,e){let n=S(e);return t?[S(0),S(t),n]:[n]}function ku({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let a=[...t];if(s!==null){let c=yp(s)[0];a.push(S(5),yi(c))}return n.length>0&&a.push(S(1),...n),i.length>0&&a.push(S(2),...i),e.length>0&&a.push(S(3),...e),o.length>0&&a.push(S(4),...o),r.length>0&&a.push(S(6),...r),ce(a)}var lx=new Map([["formField",new Set([f.Property])],["formControl",new Set([f.Property])],["formControlName",new Set([f.Property,f.Attribute])],["ngModel",new Set([f.Attribute,f.Property,f.TwoWayProperty])]]);function cx(t){for(let e of t.units)ux(e)}function ux(t){for(let e of t.update){if(e.kind!==f.Property&&e.kind!==f.TwoWayProperty&&e.kind!==f.Attribute)continue;let n=lx.get(e.name);n!==void 0&&n.has(e.kind)&&dx(t,e)}}var px=new Set([f.Container,f.ContainerStart,f.ContainerEnd,f.Element,f.ElementStart,f.ElementEnd,f.Template]);function hx(t){return px.has(t.kind)}function fx(t,e){let n=null;for(let r of t.create)!hx(r)||r.xref!==e||(n=r);return n}function dx(t,e){let n=fx(t,e.target);if(n===null)return;let r=VT(e.sourceSpan);T.insertAfter(r,n),T.insertAfter(ET(e.target,e.sourceSpan),e)}function mx(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 gx(t){let e=new Map;for(let n of t.units)for(let r of n.create)Ur(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=yx(r);t.kind===b.Host?n.create.push(s):T.insertAfter(s,mx(e,r.target)),T.remove(r)}}function yx(t){if(t.animationBindingKind===0)return AT(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan);{let e=t.expression;return DT(t.name,t.target,t.name==="animate.enter"?"enter":"leave",[Wt(new ke(e,e.sourceSpan))],t.securityContext,t.sourceSpan)}}function vx(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 De))continue;let s=e.get(r.target);if(s===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(s.target!==r.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;o<r.expression.expressions.length;o++){let a=r.expression.expressions[o];if(r.expression.i18nPlaceholders.length!==r.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${r.expression.i18nPlaceholders.length} placeholders and ${r.expression.expressions.length} expressions`);i.push($m(r.i18nContext,s.target,s.xref,s.handle,a,null,r.expression.i18nPlaceholders[o],mi.Creation,ws.I18nAttribute,r.name,r.sourceSpan))}T.replaceWithMany(r,i);break}}}function Sx(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=Nc(gr.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=Nc(gr.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=Nc(gr.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=gr.Icu;break}}function Ex(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")&&T.remove(r),s.add(r.name),e.set(r.target,s)}}function wx(t){for(let e of t.units)for(let n of e.create)n.kind===f.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new qo(yi([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new qo(yi([n.loadingMinimumTime,n.loadingAfterTime]))))}function Tx(t){for(let e of t.units)for(let n of e.create)if(n.kind===f.Defer&&n.flags!==null&&(n.flags&1)!==0){T.insertBefore(RT(n.sourceSpan),n);break}}function xx(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new Cx;for(let o of s.create)if(!(!Ur(o)||o.localRefs===null)){if(!Array.isArray(o.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(let a of o.localRefs)a.target===""&&i.targets.set(a.name,{xref:o.xref,slot:o.handle})}return e.set(s.xref,i),i}function r(s,i,o){switch(i.trigger.kind){case le.Idle:case le.Never:case le.Immediate:case le.Timer:return;case le.Hover:case le.Interaction:case le.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)&&(Ur(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 a=o!==null?t.views.get(o):s,c=o!==null?-1:0;for(;a!==null;){let u=n(a);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=a.xref,i.trigger.targetSlotViewSteps=c,i.trigger.targetSlot=d;return}a=a.parent!==null?t.views.get(a.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 a=i.get(o.defer);r(s,o,o.modifier==="hydrate"?a.mainView:a.placeholderView);break}}}var Cx=class{constructor(){l(this,"targets",new Map)}},Nx=new Map([[f.ElementEnd,[f.ElementStart,f.Element]],[f.ContainerEnd,[f.ContainerStart,f.Container]],[f.I18nEnd,[f.I18nStart,f.I18n]]]),Ix=new Set([f.Pipe]);function Ax(t){for(let e of t.units)for(let n of e.create){let r=Nx.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&Ix.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,T.remove(n))}}function Dx(t){for(let e of t.units)for(let n of e.ops())xe(n,(r,s)=>Lx(r,{job:t},s),K.None),xe(n,Mx,K.None)}function kt(t){return t instanceof qn?kt(t.expr):t instanceof se?kt(t.lhs)||kt(t.rhs):t instanceof mn?t.falseCase&&kt(t.falseCase)?!0:kt(t.condition)||kt(t.trueCase):t instanceof ei?kt(t.condition):t instanceof Mn?kt(t.expr):t instanceof st?kt(t.receiver):t instanceof rn?kt(t.receiver)||kt(t.index):t instanceof nn||t instanceof Go?kt(t.expr):t instanceof Ae||t instanceof Mt||t instanceof sn||t instanceof Cs}function bx(t){let e=new Set;return P(t,n=>(n instanceof Mn&&e.add(n.xref),n),K.None),e}function kx(t,e,n){return P(t,r=>{if(r instanceof Mn&&e.has(r.xref)){let s=new Br(r.xref);return new Mn(s,s.xref)}return r},K.None),t}function _s(t,e,n){let r;if(kt(t)){let s=n.job.allocateXrefId();r=[new Mn(t,s),new Br(s)]}else r=[t,t.clone()],kx(r[1],bx(r[0]));return new gi(r[0],e(r[1]))}function _x(t){return t instanceof os||t instanceof as||t instanceof Ae&&t.isOptional}function Rx(t){return t instanceof st||t instanceof rn||t instanceof Ae&&!t.isOptional}function Qm(t){return _x(t)||Rx(t)}function Px(t){if(Qm(t)&&t.receiver instanceof gi){let e=t.receiver;for(;e.expr instanceof gi;)e=e.expr;return e}return null}function Lx(t,e,n){if(t instanceof Go)return t.expr;if(!(e.job.legacyOptionalChaining||(n&K.InSafeNavigationMigration)!==0))return t instanceof os?new st(t.receiver,t.name,null,t.sourceSpan,[],!0):t instanceof as?new rn(t.receiver,t.index,null,t.sourceSpan,[],!0):t;if(!Qm(t))return t;let s=Px(t);if(s){if(t instanceof Ae&&!t.isOptional)return s.expr=s.expr.callFn(t.args),t.receiver;if(t instanceof st)return s.expr=s.expr.prop(t.name),t.receiver;if(t instanceof rn)return s.expr=s.expr.key(t.index),t.receiver;if(t instanceof Ae&&t.isOptional)return s.expr=_s(s.expr,i=>i.callFn(t.args),e),t.receiver;if(t instanceof os)return s.expr=_s(s.expr,i=>i.prop(t.name),e),t.receiver;if(t instanceof as)return s.expr=_s(s.expr,i=>i.key(t.index),e),t.receiver}else{if(t instanceof Ae&&t.isOptional)return _s(t.receiver,i=>i.callFn(t.args),e);if(t instanceof os)return _s(t.receiver,i=>i.prop(t.name),e);if(t instanceof as)return _s(t.receiver,i=>i.key(t.index),e)}return t}function Mx(t){return t instanceof gi?new nn(new mn(new se(w.Equals,t.guard,hs),hs,t.expr)):t}var If="\uFFFD",Ox="#",Fx="*",$x="/",Bx=":",Ux="[",Vx="]",Gx="|";function Hx(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 a=qx(t,o);i.create.push(a),e.set(o.xref,a),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,T.remove(o);let a=r.get(o.context);if(a.contextKind!==gr.Icu)continue;let c=n.get(a.i18nBlock);if(c.context===a.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(a.xref);d.messagePlaceholder=o.messagePlaceholder,h.subMessages.push(d.xref);break;case f.IcuEnd:s=null,T.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(Wx(o))),T.remove(o);break}}function qx(t,e,n){let r=Af(e.params),s=Af(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return OT(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,null,r,s,i)}function Wx(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(Vs);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function Af(t){let e=new Map;for(let[n,r]of t){let s=jx(r);s!==null&&e.set(n,S(s))}return e}function jx(t){if(t.length===0)return null;let e=t.map(n=>Vs(n));return e.length===1?e[0]:`${Ux}${e.join(Gx)}${Vx}`}function Vs(t){if(t.flags&pe.ElementTag&&t.flags&pe.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=Vs(he(x({},t),{value:t.value.element,flags:t.flags&~pe.TemplateTag})),i=Vs(he(x({},t),{value:t.value.template,flags:t.flags&~pe.ElementTag}));return t.flags&pe.OpenTag&&t.flags&pe.CloseTag?`${i}${s}${i}`:t.flags&pe.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&pe.OpenTag&&t.flags&pe.CloseTag)return`${Vs(he(x({},t),{flags:t.flags&~pe.CloseTag}))}${Vs(he(x({},t),{flags:t.flags&~pe.OpenTag}))}`;if(t.flags===pe.None)return`${t.value}`;let e="",n="";t.flags&pe.ElementTag?e=Ox:t.flags&pe.TemplateTag&&(e=Fx),e!==""&&(n=t.flags&pe.CloseTag?$x:"");let r=t.subTemplateIndex===null?"":`${Bx}${t.subTemplateIndex}`;return`${If}${n}${e}${t.value}${r}${If}`}function zx(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(xi(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(Fo(s)?i=s:$e(s,a=>{i===null&&Fo(a)&&(i=a)}),i===null)continue;if(!n.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let o=n.get(i.target);if(r!==o){let a=o-r;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");T.insertBefore(mT(a,i.sourceSpan),s),r=o}}}}function Kx(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&&Df(e,n);for(let n of e.update)Df(e,n)}}function Df(t,e){xe(e,(n,r)=>{if(!(n instanceof gn)||r&K.InChildOperation)return n;if(Array.isArray(n.body))throw new Error("AssertionError: unexpected multi-line arrow function");let s=new Au(n.params,n.body);return t.functions.add(s),s},K.None)}function Xx(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.StoreLet)continue;let r={kind:Qe.Identifier,name:null,identifier:n.declaredName,local:!0};T.replace(n,fr(t.allocateXrefId(),r,new $o(n.target,n.value,n.sourceSpan),Gt.None))}}function Yx(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:yp(o));s=t.pool.getConstLiteral(yi(i),!0)}t.contentSelectors=t.pool.getConstLiteral(yi(n),!0),t.root.create.prepend([_T(s)])}}function Qx(t){ji(t.root,null)}function ji(t,e){let n=bf(t,e);for(let r of t.create)switch(r.kind){case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:ji(t.job.views.get(r.xref),n);break;case f.Projection:r.fallbackView!==null&&ji(t.job.views.get(r.fallbackView),n);break;case f.RepeaterCreate:ji(t.job.views.get(r.xref),n),r.emptyView&&ji(t.job.views.get(r.emptyView),n),r.trackByOps!==null&&r.trackByOps.prepend(zi(t,n,!1));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:r.handlerOps.prepend(zi(t,n,!0));break}t.update.prepend(zi(t,n,!1));for(let r of t.functions)r.ops.prepend(zi(t,bf(t,e),!0))}function bf(t,e){let n={view:t.xref,viewContextVariable:{kind:Qe.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:Qe.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:Qe.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:Qe.Identifier,name:null,identifier:r.declaredName,local:!1}});break}return n}function zi(t,e,n){let r=[];e.view!==t.xref&&r.push(fr(t.job.allocateXrefId(),e.viewContextVariable,new tl,Gt.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let a=new Fr(e.view),c=o===zm?a:new st(a,o);r.push(fr(t.job.allocateXrefId(),e.contextVariables.get(i),c,Gt.None))}for(let i of s.aliases)r.push(fr(t.job.allocateXrefId(),i,i.expression.clone(),Gt.AlwaysInline));for(let i of e.references)r.push(fr(t.job.allocateXrefId(),i.variable,new el(i.targetId,i.targetSlot,i.offset),Gt.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(fr(t.job.allocateXrefId(),i.variable,new Bo(i.targetId,i.targetSlot),Gt.None));return e.parent!==null&&r.push(...zi(t,e.parent,!1)),r}function Jx(t){for(let e of t.units)for(let n of e.ops())xe(n,r=>r instanceof qo?S(t.addConst(r.expr)):r,K.None)}var kf="style.",_f="class.",Zx="style!",Rf="class!",Pf="!important";function eC(t){for(let e of t.root.update)if(e.kind===f.Binding&&e.bindingKind===M.Property)if(e.name.endsWith(Pf)&&(e.name=e.name.substring(0,e.name.length-Pf.length)),e.name.startsWith(kf)){e.bindingKind=M.StyleProperty,e.name=e.name.substring(kf.length),tC(e.name)||(e.name=nC(e.name));let{property:n,suffix:r}=Ic(e.name);e.name=n,e.unit=r}else e.name.startsWith(Zx)?(e.bindingKind=M.StyleProperty,e.name="style"):e.name.startsWith(_f)?(e.bindingKind=M.ClassName,e.name=Ic(e.name.substring(_f.length)).property):e.name.startsWith(Rf)&&(e.bindingKind=M.ClassName,e.name=Ic(e.name.substring(Rf.length)).property)}function tC(t){return t.startsWith("--")}function nC(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 _u(t,e=!1){return Ct(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}var Ru=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`{${sa(e,!1)}}`}},rC=new Ru;function Jm(t){return t.visit(rC)}var Yn=class{constructor(e,n){l(this,"sourceSpan");l(this,"i18n");this.sourceSpan=e,this.i18n=n}},Ns=class extends Yn{constructor(n,r,s,i){super(r,i);l(this,"value");l(this,"tokens");this.value=n,this.tokens=s}visit(n,r){return n.visitText(this,r)}},ls=class extends Yn{constructor(n,r,s,i,o,a){super(i,a);l(this,"switchValue");l(this,"type");l(this,"cases");l(this,"switchValueSourceSpan");this.switchValue=n,this.type=r,this.cases=s,this.switchValueSourceSpan=o}visit(n,r){return n.visitExpansion(this,r)}},ul=class{constructor(e,n,r,s,i){l(this,"value");l(this,"expression");l(this,"sourceSpan");l(this,"valueSourceSpan");l(this,"expSourceSpan");this.value=e,this.expression=n,this.sourceSpan=r,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,n){return e.visitExpansionCase(this,n)}},Pu=class extends Yn{constructor(n,r,s,i,o,a,c){super(s,c);l(this,"name");l(this,"value");l(this,"keySpan");l(this,"valueSpan");l(this,"valueTokens");this.name=n,this.value=r,this.keySpan=i,this.valueSpan=o,this.valueTokens=a}visit(n,r){return n.visitAttribute(this,r)}},Xt=class extends Yn{constructor(n,r,s,i,o,a,c,u=null,h,d){super(a,d);l(this,"name");l(this,"attrs");l(this,"directives");l(this,"children");l(this,"isSelfClosing");l(this,"startSourceSpan");l(this,"endSourceSpan");l(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)}},jo=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Qt=class extends Yn{constructor(n,r,s,i,o,a,c=null,u){super(i,u);l(this,"name");l(this,"parameters");l(this,"children");l(this,"nameSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=n,this.parameters=r,this.children=s,this.nameSpan=o,this.startSourceSpan=a,this.endSourceSpan=c}visit(n,r){return n.visitBlock(this,r)}},yt=class extends Yn{constructor(n,r,s,i,o,a,c,u,h,d=null,p){super(u,p);l(this,"componentName");l(this,"tagName");l(this,"fullName");l(this,"attrs");l(this,"directives");l(this,"children");l(this,"isSelfClosing");l(this,"startSourceSpan");l(this,"endSourceSpan");this.componentName=n,this.tagName=r,this.fullName=s,this.attrs=i,this.directives=o,this.children=a,this.isSelfClosing=c,this.startSourceSpan=h,this.endSourceSpan=d}visit(n,r){return n.visitComponent(this,r)}},Lu=class{constructor(e,n,r,s,i=null){l(this,"name");l(this,"attrs");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=e,this.attrs=n,this.sourceSpan=r,this.startSourceSpan=s,this.endSourceSpan=i}visit(e,n){return e.visitDirective(this,n)}},pl=class{constructor(e,n){l(this,"expression");l(this,"sourceSpan");this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},hl=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"nameSpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e,n){return e.visitLetDeclaration(this,n)}};function me(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 zo={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:`
|
|
18
|
-
`,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"},Zm="\uE500";zo.ngsp=Zm;var Mu=class{constructor(e,n,r){l(this,"tokens");l(this,"errors");l(this,"nonNormalizedIcuExpressions");this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function sC(t,e,n,r={}){let s=new Ou(new Mr(t,e),n,r);return s.tokenize(),new Mu(dC(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var iC=/\r\n?/g;function Rs(t){return`Unexpected character "${t===qe?"EOF":String.fromCharCode(t)}"`}function Lf(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function oC(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var fl;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(fl||(fl={}));var aC=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],$i={start:"{{",end:"}}"},Ou=class{constructor(e,n,r){l(this,"_getTagDefinition");l(this,"_cursor");l(this,"_tokenizeIcu");l(this,"_leadingTriviaCodePoints");l(this,"_currentTokenStart",null);l(this,"_currentTokenType",null);l(this,"_expansionCaseStack",[]);l(this,"_openDirectiveCount",0);l(this,"_inInterpolation",!1);l(this,"_preserveLineEndings");l(this,"_i18nNormalizeLineEndingsInICUs");l(this,"_tokenizeBlocks");l(this,"_tokenizeLet");l(this,"_selectorlessEnabled");l(this,"tokens",[]);l(this,"errors",[]);l(this,"nonNormalizedIcuExpressions",[]);var i,o,a;this._getTagDefinition=n,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(c=>c.codePointAt(0)||0);let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new Fu(e,s):new dl(e,s),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=(i=r.tokenizeBlocks)!=null?i:!0,this._tokenizeLet=(o=r.tokenizeLet)!=null?o:!0,this._selectorlessEnabled=(a=r.selectorlessEnabled)!=null?a:!1;try{this._cursor.init()}catch(c){this.handleError(c)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(iC,`
|
|
19
|
-
`)}tokenize(){for(;this._cursor.peek()!==qe;){let e=this._cursor.clone();try{this._attemptCharCode(zs)?this._attemptCharCode(hu)?this._attemptCharCode(An)?this._consumeCdata(e):this._attemptCharCode(Ja)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Vt)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===bs&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(St)?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=>Mo(r)?!e:fC(r)?(e=!0,!1):!0),this._cursor.getChars(n).trim()}_consumeBlockStart(e){this._requireCharCode(bs),this._beginToken(24,e);let n=this._endToken([this._getBlockName()]);if(this._cursor.peek()===Et)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(de),this._attemptCharCode(We))this._attemptCharCodeUntilFn(de);else{n.type=28;return}if(n.parts[0]==="default never"&&this._attemptCharCode(Rt)){this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([]);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(Of);this._cursor.peek()!==We&&this._cursor.peek()!==qe;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==Rt&&this._cursor.peek()!==qe||n!==null;){let s=this._cursor.peek();if(s===is)this._cursor.advance();else if(s===n)n=null;else if(n===null&&Qi(s))n=s;else if(s===Et&&n===null)r++;else if(s===We&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Of)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(29,e),Mo(this._cursor.peek()))this._attemptCharCodeUntilFn(de);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(de),!this._attemptCharCode(Je)){n.type=32;return}this._attemptCharCodeUntilFn(s=>de(s)&&!Yi(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===Rt?(this._beginToken(31),this._cursor.advance(),this._endToken([])):(n.type=32,n.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),n=!1;return this._attemptCharCodeUntilFn(r=>Lr(r)||r===Rl||r===qr||n&&Yt(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==qe;){let n=this._cursor.peek();if(n===Rt)break;Qi(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===is?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(pC(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===St){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 V(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 V(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 V(n,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof Ko&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof V)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return hC(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Rs(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(Rs(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(Rs(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()===bs&&aC.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===bs&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(Tm)){let r=this._attemptCharCode(km)||this._attemptCharCode(yw),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(cC),this._cursor.peek()!=Rt){this._cursor.advance();let o=r?fl.HEX:fl.DEC;throw this._createError(oC(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(Lf(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(uC),this._cursor.peek()!=Rt)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=zo.hasOwnProperty(s)&&zo[s];if(!i)throw this._createError(Lf(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()===Qa?(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(Ja),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(Ut);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(e){let n=this._cursor.clone(),r="";for(;this._cursor.peek()!==Nn&&!lC(this._cursor.peek());)this._cursor.advance();let s;this._cursor.peek()===Nn?(r=this._cursor.getChars(n),this._cursor.advance(),s=this._cursor.clone()):s=n,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(s);return[r,i]}_consumeSingleLineComment(){this._attemptCharCodeUntilFn(e=>Yi(e)||e===qe),this._attemptCharCodeUntilFn(de)}_consumeMultiLineComment(){this._attemptCharCodeUntilFn(e=>{if(e===qe)return!0;if(e===fu){let n=this._cursor.clone();return n.advance(),n.peek()===Vt}return!1}),this._attemptStr("*/")&&this._attemptCharCodeUntilFn(de)}_consumeTagOpen(e){let n,r,s,i;try{if(this._selectorlessEnabled&&Ta(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[s,r,n]=i.parts,r&&(s+=`:${r}`),n&&(s+=`:${n}`),this._attemptCharCodeUntilFn(de);else{if(!Lr(this._cursor.peek()))throw this._createError(Rs(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],n=s=i.parts[1],this._attemptCharCodeUntilFn(de)}for(;;){if(this._attemptStr("//")){this._consumeSingleLineComment();continue}if(this._attemptStr("/*")){this._consumeMultiLineComment();continue}if($f(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===bs){let a=this._cursor.clone(),c=a.clone();c.advance(),Ta(c.peek())&&this._consumeDirective(a,c)}else this._consumeAttribute()}i.type===33?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(a){if(a instanceof V){i?i.type=i.type===33?37:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw a}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(zs)||!this._attemptCharCode(Vt)||(this._attemptCharCodeUntilFn(de),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(de),this._attemptCharCode(Ut))),this._beginToken(e.type===33?36:3),this._requireCharCodeUntilFn(s=>s===Ut,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName(Yr);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(;Ff(this._cursor.peek());)this._cursor.advance();let n=this._cursor.getChars(e),r="",s="";return this._cursor.peek()===Nn&&(this._cursor.advance(),[r,s]=this._consumePrefixAndName(Yr)),[n,r,s]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(de),this._attemptCharCode(Je)&&(this._attemptCharCodeUntilFn(de),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(de)}_consumeAttributeName(){let e=this._cursor.peek();if(e===Lo||e===Po)throw this._createError(Rs(e),this._cursor.getSpan());this._beginToken(14);let n;if(this._openDirectiveCount>0){let s=0;n=i=>{if(this._openDirectiveCount>0){if(i===Et)s++;else if(i===We){if(s===0)return!0;s--}}return Yr(i)}}else if(e===An){let s=0;n=i=>(i===An?s++:i===Bn&&s--,s<=0?Yr(i):Yi(i))}else n=Yr;let r=this._consumePrefixAndName(n);this._endToken(r)}_consumeAttributeValue(){if(this._cursor.peek()===Lo||this._cursor.peek()===Po){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=()=>Yr(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(Vt)?2:1;this._beginToken(e),this._requireCharCode(Ut),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(Vt)?35:34;this._beginToken(e),this._requireCharCode(Ut),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==Ut&&!Ta(r.peek());)r.advance();if(Ta(r.peek())){this._beginToken(36,e);let s=this._consumeComponentName();this._attemptCharCodeUntilFn(de),this._requireCharCode(Ut),this._endToken(s);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(de);let n=this._consumePrefixAndName(Yr);this._attemptCharCodeUntilFn(de),this._requireCharCode(Ut),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Jt),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(ct),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(ct),this._attemptCharCodeUntilFn(de),this._beginToken(7);let r=this._readUntil(ct);this._endToken([r]),this._requireCharCode(ct),this._attemptCharCodeUntilFn(de)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(Jt).trim();this._endToken([e]),this._attemptCharCodeUntilFn(de),this._beginToken(21),this._requireCharCode(Jt),this._endToken([]),this._attemptCharCodeUntilFn(de),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(St),this._endToken([]),this._attemptCharCodeUntilFn(de),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(St),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,r,s){this._beginToken(e);let i=[];for(;!r();){let o=this._cursor.clone();this._attemptStr($i.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,s),this._beginToken(e)):this._cursor.peek()===Qa?(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($i.start);let i=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==qe&&(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($i.end)){s.push(this._getProcessedChars(i,c)),s.push($i.end),this._endToken(s);return}else this._attemptStr("//")&&(a=!0);let u=this._cursor.peek();this._cursor.advance(),u===is?this._cursor.advance():u===o?o=null:!a&&o===null&&Qi(u)&&(o=u)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_consumeDirective(e,n){for(this._requireCharCode(bs),this._cursor.advance();Ff(this._cursor.peek());)this._cursor.advance();this._beginToken(38,e);let r=this._cursor.getChars(n);if(this._endToken([r]),this._attemptCharCodeUntilFn(de),this._cursor.peek()===Et){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(de);!$f(this._cursor.peek())&&this._cursor.peek()!==We;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(de),this._openDirectiveCount--,this._cursor.peek()!==We){if(this._cursor.peek()===Ut||this._cursor.peek()===Vt)return;throw this._createError(Rs(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(de)}}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===qe||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===St&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===St))}_isTagStart(){if(this._cursor.peek()===zs){let e=this._cursor.clone();e.advance();let n=e.peek();if(Ss<=n&&n<=ia||Hr<=n&&n<=Ti||n===Vt||n===hu)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($i.start);return this._cursor=e,!n}};function de(t){return!Mo(t)||t===qe}function Yr(t){return Mo(t)||t===Ut||t===zs||t===Vt||t===Lo||t===Po||t===Je||t===qe}function lC(t){return(t<Ss||ia<t)&&(t<Hr||Ti<t)&&(t<Cp||t>Cm)}function cC(t){return t===Rt||t===qe||!ww(t)}function uC(t){return t===Rt||t===qe||!(Lr(t)||Yt(t))}function pC(t){return t!==St}function hC(t,e){return Mf(t)===Mf(e)}function Mf(t){return t>=Ss&&t<=ia?t-Ss+Hr:t}function fC(t){return Lr(t)||Yt(t)||t===qr}function Of(t){return t!==Rt&&de(t)}function Ta(t){return t===qr||t>=Hr&&t<=Ti}function Ff(t){return Lr(t)||Yt(t)||t===qr}function $f(t){return t===Vt||t===Ut||t===zs||t===qe}function dC(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 dl=class t{constructor(e,n){l(this,"state");l(this,"file");l(this,"input");l(this,"end");if(e instanceof t){this.file=e.file,this.input=e.input,this.end=e.end;let r=e.state;this.state={peek:r.peek,offset:r.offset,line:r.line,column:r.column}}else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new t(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,n){e=e||this;let r=e;if(n)for(;this.diff(e)>0&&n.indexOf(e.peek())!==-1;)r===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),o=r!==e?this.locationFromCursor(r):s;return new G(s,i,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Ko('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===ss?(e.line++,e.column=0):Yi(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?qe:this.charAt(e.offset)}locationFromCursor(e){return new Es(e.file,e.state.offset,e.state.line,e.state.column)}},Fu=class t extends dl{constructor(n,r){var e=(...gF)=>(super(...gF),l(this,"internalState"),this);n instanceof t?(e(n),this.internalState=x({},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()===is)if(this.internalState=x({},this.state),this.advanceState(this.internalState),n()===Nm)this.state.peek=ss;else if(n()===Im)this.state.peek=xp;else if(n()===bm)this.state.peek=Sm;else if(n()===Am)this.state.peek=Tp;else if(n()===Sw)this.state.peek=hw;else if(n()===Np)this.state.peek=Em;else if(n()===Dm)if(this.advanceState(this.internalState),n()===Jt){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;n()!==St;)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()===km){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(df(n())){let r="",s=0,i=this.clone();for(;df(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 Yi(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 Ko("Invalid hexadecimal escape sequence",n);return i}},Ko=class extends Error{constructor(n,r){super(n);l(this,"msg");l(this,"cursor");this.msg=n,this.cursor=r,Object.setPrototypeOf(this,new.target.prototype)}},Le=class t extends V{constructor(n,r,s){super(r,s);l(this,"elementName");this.elementName=n}static create(n,r,s){return new t(n,r,s)}},ml=class{constructor(e,n){l(this,"rootNodes");l(this,"errors");this.rootNodes=e,this.errors=n}},mC=class{constructor(e){l(this,"getTagDefinition");this.getTagDefinition=e}parse(e,n,r){let s=sC(e,n,this.getTagDefinition,r),i=new $u(s.tokens,this.getTagDefinition);return i.build(),new ml(i.rootNodes,[...s.errors,...i.errors])}},$u=class t{constructor(e,n){l(this,"tokens");l(this,"tagDefinitionResolver");l(this,"_index",-1);l(this,"_peek");l(this,"_containerStack",[]);l(this,"rootNodes",[]);l(this,"errors",[]);this.tokens=e,this.tagDefinitionResolver=n,this._advance()}build(){for(;this._peek.type!==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),r=this._advanceIf(11),s=n!=null?n.parts[0].trim():null,i=r==null?e.sourceSpan:new G(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new jo(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 G(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new ls(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 G(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),a=new G(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new ul(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_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(Bf(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(Bf(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]===`
|
|
20
|
-
`){let o=this._getContainer();o!=null&&o.children.length===0&&((i=this._getTagDefinition(o))!=null&&i.ignoreFirstLf)&&(s=s.substring(1),n[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),n.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Uf):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let o=e.sourceSpan;this._addToParent(new Ns(s,new G(r.start,o.end,r.fullStart,r.details),n))}}_closeVoidElement(){var n;let e=this._getContainer();e!==null&&((n=this._getTagDefinition(e))!=null&&n.isVoid)&&this._containerStack.pop()}_consumeElementStartTag(e){var g,v;let n=[],r=[];this._consumeAttributesAndDirectives(n,r);let s=this._getElementFullName(e,this._getClosestElementLikeParent()),i=this._getTagDefinition(s),o=!1;this._peek.type===2?(this._advance(),o=!0,i!=null&&i.canSelfClose||
|
|
21
|
-
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,gC=new RegExp(`[^${tg}]`),yC=new RegExp(`[${tg}]{2,}`,"g");function Gf(t){return t.some(e=>e.name===eg)}function ng(t){return t.replace(new RegExp(Zm,"g")," ")}var gl=class{constructor(e,n,r=!0){l(this,"preserveSignificantWhitespace");l(this,"originalNodeMap");l(this,"requireContext");l(this,"icuExpansionDepth",0);this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=r}visitElement(e,n){var s,i;if(Vf.has(e.name)||Gf(e.attrs)){let o=new Xt(e.name,Tn(this,e.attrs),Tn(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 Xt(e.name,e.attrs,e.directives,Tn(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!==eg?e:null}visitText(e,n){var o;let r=e.value.match(gC),s=n&&(n.prev instanceof ls||n.next instanceof ls);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let a=e.tokens.map(d=>d.type===5?wC(d):d);if(!this.preserveSignificantWhitespace&&a.length>0){let d=a[0];a.splice(0,1,vC(d,n));let p=a[a.length-1];a.splice(a.length-1,1,SC(p,n))}let c=sg(e.value),u=this.preserveSignificantWhitespace?c:EC(c,n),h=new Ns(u,e.sourceSpan,a,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 ls(e.switchValue,e.type,Tn(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 ul(e.value,Tn(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 Qt(e.name,e.parameters,Tn(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&&Vf.has(e.tagName)||Gf(e.attrs)){let o=new yt(e.componentName,e.tagName,e.fullName,Tn(this,e.attrs),Tn(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 yt(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,Tn(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 vC(t,e){return t.type!==5||!!(e!=null&&e.prev)?t:rg(t,r=>r.trimStart())}function SC(t,e){return t.type!==5||!!(e!=null&&e.next)?t:rg(t,r=>r.trimEnd())}function EC(t,e){let n=!(e!=null&&e.prev),r=!(e!=null&&e.next),s=n?t.trimStart():t;return r?s.trimEnd():s}function wC({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[sg(e[0])],sourceSpan:n}}function rg({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function sg(t){return ng(t).replace(yC," ")}function Tn(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 Sr;(function(t){t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(Sr||(Sr={}));var TC=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],Xo=class{tokenize(e){return new Bu(e).scan()}},jt=class{constructor(e,n,r,s,i){l(this,"index");l(this,"end");l(this,"type");l(this,"numValue");l(this,"strValue");this.index=e,this.end=n,this.type=r,this.numValue=s,this.strValue=i}isCharacter(e){return this.type===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===Sr.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===Sr.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}}},Ji=class extends jt{constructor(n,r,s,i){super(n,r,q.String,0,s);l(this,"kind");this.kind=i}};function Bi(t,e,n){return new jt(t,e,q.Character,n,String.fromCharCode(n))}function xC(t,e,n){return new jt(t,e,q.Identifier,0,n)}function CC(t,e,n){return new jt(t,e,q.PrivateIdentifier,0,n)}function NC(t,e,n){return new jt(t,e,q.Keyword,0,n)}function or(t,e,n){return new jt(t,e,q.Operator,0,n)}function IC(t,e,n){return new jt(t,e,q.Number,n,"")}function AC(t,e,n){return new jt(t,e,q.Error,0,n)}function DC(t,e,n){return new jt(t,e,q.RegExpBody,0,n)}function bC(t,e,n){return new jt(t,e,q.RegExpFlags,0,n)}var Ui=new jt(-1,-1,q.Character,0,""),Bu=class{constructor(e){l(this,"input");l(this,"tokens",[]);l(this,"length");l(this,"peek",0);l(this,"index",-1);l(this,"braceStack",[]);this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?qe:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=wm;)if(++s>=n){r=qe;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(Hf(r))return this.scanIdentifier();if(Yt(r))return this.scanNumber(s);let i=s;switch(r){case Qr:return this.advance(),Yt(this.peek)?this.scanNumber(i):this.peek!==Qr?Bi(i,this.index,Qr):(this.advance(),this.peek===Qr?(this.advance(),or(i,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(r)}]`,0));case Et:case We:case An:case Bn:case ct:case Nn:case Rt:return this.scanCharacter(i,r);case Jt:return this.scanOpenBrace(i,r);case St:return this.scanCloseBrace(i,r);case Lo:case Po:return this.scanString();case du:return this.advance(),this.scanTemplateLiteralPart(i);case Tm:return this.scanPrivateIdentifier();case xm:return this.scanComplexOperator(i,"+",Je,"=");case Ja:return this.scanComplexOperator(i,"-",Je,"=");case Vt:return this.isStartOfRegex()?this.scanRegex(s):this.scanComplexOperator(i,"/",Je,"=");case fw:return this.scanComplexOperator(i,"%",Je,"=");case vw:return this.scanOperator(i,"^");case fu:return this.scanStar(i);case hf:return this.scanQuestion(i);case zs:case Ut:return this.scanComplexOperator(i,String.fromCharCode(r),Je,"=");case hu:return this.scanComplexOperator(i,"!",Je,"=",Je,"=");case Je:return this.scanEquals(i);case Qa:return this.scanComplexOperator(i,"&",Qa,"&",Je,"=");case ff:return this.scanComplexOperator(i,"|",ff,"|",Je,"=");case _m:for(;Mo(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),Bi(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(),Bi(e,this.index,n)}scanCloseBrace(e,n){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(Bi(e,this.index,St)),this.scanTemplateLiteralPart(this.index)):Bi(e,this.index,n)}scanComplexOperator(e,n,r,s,i,o){this.advance();let a=n;return this.peek==r&&(this.advance(),a+=s),i!=null&&this.peek==i&&(this.advance(),a+=o),or(e,this.index,a)}scanEquals(e){this.advance();let n="=";if(this.peek===Je)this.advance(),n+="=";else if(this.peek===Ut)return this.advance(),n+=">",or(e,this.index,n);return this.peek===Je&&(this.advance(),n+="="),or(e,this.index,n)}scanIdentifier(){let e=this.index;for(this.advance();qf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return TC.indexOf(n)>-1?NC(e,this.index,n):xC(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!Hf(this.peek))return this.error("Invalid character [#]",-1);for(;qf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return CC(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!Yt(this.peek))if(this.peek===qr){if(!Yt(this.input.charCodeAt(this.index-1))||!Yt(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===Qr)n=!1;else if(kC(this.peek)){if(this.advance(),_C(this.peek)&&this.advance(),!Yt(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?PC(s):parseFloat(s);return IC(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==is){let a=this.scanStringBackslash(r,s);if(typeof a!="string")return a;r=a,s=this.index}else{if(this.peek==qe)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),new Ji(e,this.index,r+o,Sr.Plain)}scanQuestion(e){this.advance();let n="?";return this.peek===hf?(n+="?",this.advance(),this.peek===Je&&(n+="=",this.advance())):this.peek===Qr&&(n+=".",this.advance()),or(e,this.index,n)}scanTemplateLiteralPart(e){let n="",r=this.index;for(;this.peek!==du;)if(this.peek===is){let i=this.scanStringBackslash(n,r);if(typeof i!="string")return i;n=i,r=this.index}else if(this.peek===Rl){let i=this.index;if(this.advance(),this.peek===Jt)return this.braceStack.push("interpolation"),this.tokens.push(new Ji(e,i,n+this.input.substring(r,i),Sr.TemplateLiteralPart)),this.advance(),or(i,this.index,this.input.substring(i,this.index))}else{if(this.peek===qe)return this.error("Unterminated template literal",0);this.advance()}let s=this.input.substring(r,this.index);return this.advance(),new Ji(e,this.index,n+s,Sr.TemplateLiteralEnd)}error(e,n){let r=this.index+n;return AC(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===Dm){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===fu?(n+="*",this.advance(),this.peek===Je&&(n+="=",this.advance())):this.peek===Je&&(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(We)&&!n.isCharacter(Bn)}return e.type===q.Operator||e.isCharacter(Et)||e.isCharacter(An)||e.isCharacter(ct)||e.isCharacter(Nn)}scanRegex(e){this.advance();let n=this.index,r=!1,s=!1;for(;;){let c=this.peek;if(c===qe)return this.error("Unterminated regular expression",0);if(r)r=!1;else if(c===is)r=!0;else if(c===An)s=!0;else if(c===Bn)s=!1;else if(c===Vt&&!s)break;this.advance()}let i=this.input.substring(n,this.index);this.advance();let o=DC(e,this.index,i),a=this.scanRegexFlags(this.index);return a!==null?(this.tokens.push(o),a):o}scanRegexFlags(e){if(!Lr(this.peek))return null;for(;Lr(this.peek);)this.advance();return bC(e,this.index,this.input.substring(e,this.index))}};function Hf(t){return Ss<=t&&t<=ia||Hr<=t&&t<=Ti||t==qr||t==Rl}function qf(t){return Lr(t)||Yt(t)||t==qr||t==Rl}function kC(t){return t==Ew||t==mw}function _C(t){return t==Ja||t==xm}function RC(t){switch(t){case Nm:return ss;case Np:return Em;case Im:return xp;case Am:return Tp;case bm:return Sm;default:return t}}function PC(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Uu=class{constructor(e,n,r){l(this,"strings");l(this,"expressions");l(this,"offsets");this.strings=e,this.expressions=n,this.offsets=r}},Vu=class{constructor(e,n,r){l(this,"templateBindings");l(this,"warnings");l(this,"errors");this.templateBindings=e,this.warnings=n,this.errors=r}};function pr(t){return t.start.toString()||"(unknown)"}var yl=class{constructor(e,n=!1){l(this,"_lexer");l(this,"_supportsDirectPipeReferences");this._lexer=e,this._supportsDirectPipeReferences=n}parseAction(e,n,r){let s=[];this._checkNoInterpolation(s,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i),a=new Zr(e,n,r,o,1,s,0,this._supportsDirectPipeReferences).parseChain();return new Se(a,e,pr(n),r,s)}parseBinding(e,n,r){let s=[],i=this._parseBindingAst(e,n,r,s);return new Se(i,e,pr(n),r,s)}checkSimpleExpression(e){let n=new Gu;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(Hs(`Host binding expression cannot contain ${o.join(" ")}`,e,"",n)),new Se(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 Zr(e,n,r,o,0,s,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n),a=[];return new Zr(n,r,i,o,0,a,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new ht(s,s+e.length)})}parseInterpolation(e,n,r,s){var h;let i=[],{strings:o,expressions:a,offsets:c}=this.splitInterpolation(e,n,i,s);if(a.length===0)return null;let u=[];for(let d=0;d<a.length;++d){let p=(h=s==null?void 0:s[d*2+1])==null?void 0:h.sourceSpan,g=a[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(Hs("Interpolation expression cannot only contain a comment",e,`at column ${a[d].start} in`,n));continue}let D=new Zr(p?g:e,p||n,r,I,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=[],a=new Zr(e,n,r,i,0,o,0,this._supportsDirectPipeReferences).parseChain(),c=["",""];return this.createInterpolationAst(c,[a],e,pr(n),r,o)}createInterpolationAst(e,n,r,s,i,o){let a=new fs(0,r.length),c=new Zn(a,a.toAbsolute(i),e,n);return new Se(c,r,s,i,o)}splitInterpolation(e,n,r,s){var v;let i=[],o=[],a=[],c=s?LC(s):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 k=D+g.length,_=e.substring(I,D);_.trim().length===0&&r.push(Hs("Blank expressions are not allowed in interpolated strings",e,`at column ${u} in`,n)),o.push({text:_,start:E,end:k});let X=((v=c==null?void 0:c.get(E))!=null?v:E)+p.length;a.push(X),u=k,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 Uu(i,o,a)}wrapLiteralPrimitive(e,n,r){let s=new fs(0,e==null?0:e.length);return new Se(new lt(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===Vt&&i==Vt&&n==null)return r;n===s?n=null:n==null&&Qi(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(Hs("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];Qi(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},Gs;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(Gs||(Gs={}));var Wf=new Set(["d","g","i","m","s","u","v","y"]),Zr=class{constructor(e,n,r,s,i,o,a,c){l(this,"input");l(this,"parseSourceSpan");l(this,"absoluteOffset");l(this,"tokens");l(this,"parseFlags");l(this,"errors");l(this,"offset");l(this,"supportsDirectPipeReferences");l(this,"rparensExpected",0);l(this,"rbracketsExpected",0);l(this,"rbracesExpected",0);l(this,"context",Gs.None);l(this,"sourceSpanCache",new Map);l(this,"index",0);this.input=e,this.parseSourceSpan=n,this.absoluteOffset=r,this.tokens=s,this.parseFlags=i,this.errors=o,this.offset=a,this.supportsDirectPipeReferences=c}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:Ui}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 fs(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&&Ie.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Ui?"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(Rt))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Rt););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 nt(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new Dr(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 fs(o,o).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(Nn);)a.push(this.parseExpression());let c;if(this.supportsDirectPipeReferences){let u=s.charCodeAt(0);c=u===qr||u>=Hr&&u<=Ti?qs.ReferencedDirectly:qs.ReferencedByName}else c=qs.ReferencedByName;n=new ii(this.span(e),this.sourceSpan(e,o),n,s,a,c,i)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let r=this.parsePipe(),s;if(this.consumeOptionalCharacter(Nn))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 nt(this.span(e),this.sourceSpan(e))}return new si(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 Ie(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 Ie(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 Ie(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 Ie(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 Ie(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 Ie(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 Ie(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 Ws||n instanceof kn||n instanceof So||n instanceof Eo)&&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 Ie(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(),Ws.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),Ws.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new kn(this.span(e),this.sourceSpan(e),r)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new So(this.span(e),this.sourceSpan(e),n)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new Eo(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Qr))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Et)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(An)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(An))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(Et))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new wo(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(Et)){this.rparensExpected++;let n=this.parsePipe();return this.consumeOptionalCharacter(We)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(We)),this.rparensExpected--,new Co(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isKeywordNull())return this.advance(),new lt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new lt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new lt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new lt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Ar(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(An))return this.parseLiteralArray(e);if(this.next.isCharacter(Jt))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Ht(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new lt(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===Sr.Plain){let n=this.next.toString();return this.advance(),new lt(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new nt(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 nt(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new nt(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(Bn))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(ct));return this.rbracketsExpected--,this.expectCharacter(Bn),new vo(this.span(e),this.sourceSpan(e),n)}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(Jt),!this.consumeOptionalCharacter(St)){this.rbracesExpected++;do{let s=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(s),sourceSpan:this.sourceSpan(s)}),n.push(this.parsePipe());continue}let i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a=this.span(s),c=this.sourceSpan(s),u={kind:"property",key:o,quoted:i,span:a,sourceSpan:c};e.push(u),i?(this.expectCharacter(Nn),n.push(this.parsePipe())):this.consumeOptionalCharacter(Nn)?n.push(this.parsePipe()):(u.isShorthandInitialized=!0,n.push(new ge(a,c,c,new Ht(a,c),o)))}while(this.consumeOptionalCharacter(ct)&&!this.next.isCharacter(St));this.rbracesExpected--,this.expectCharacter(St)}return new ms(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(Gs.Writable,()=>{var c;let a=(c=this.expectIdentifierOrKeyword())!=null?c:"";return a.length===0&&this.error("Expected identifier for property access",e.span.end),a}),o=this.sourceSpan(s);if(r)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new nt(this.span(n),this.sourceSpan(n))):new dt(this.span(n),this.sourceSpan(n),o,e,i);if(this.isAssignmentOperator(this.next)){let a=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new nt(this.span(n),this.sourceSpan(n));let c=new ge(this.span(n),this.sourceSpan(n),o,e,i);this.advance();let u=this.parseConditional();return new Ie(this.span(n),this.sourceSpan(n),a,c,u)}else return new ge(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(We),this.rparensExpected--;let a=this.span(n),c=this.sourceSpan(n);return r?new _n(a,c,e,i,o):new vn(a,c,e,i,o)}parseCallArguments(){if(this.next.isCharacter(We))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(ct));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 Ha(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 ht(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 Vu(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(Gs.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof nt&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Bn),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 jn(this.span(n),this.sourceSpan(n),e,s);this.advance();let a=this.parseConditional();return new Ie(this.span(n),this.sourceSpan(n),i,o,a)}}else return r?new ds(this.span(n),this.sourceSpan(n),e,s):new jn(this.span(n),this.sourceSpan(n),e,s);return new nt(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(Nn);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new ht(e.span.start,s);return n.push(new tu(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===Ui||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new Se(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 ht(e.span.start,this.currentAbsoluteOffset);return new No(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 ht(e,this.currentAbsoluteOffset);return new No(s,n,r)}parseNoInterpolationTaggedTemplateLiteral(e,n){let r=this.parseNoInterpolationTemplateLiteral();return new To(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 xo(r,s,[new qa(r,s,e)],[])}parseTaggedTemplateLiteral(e,n){let r=this.parseTemplateLiteral();return new To(this.span(n),this.sourceSpan(n),e,r)}parseTemplateLiteral(){let e=[],n=[],r=this.inputIndex;for(;this.next!==Ui;){let s=this.next;if(s.isTemplateLiteralPart()||s.isTemplateLiteralEnd()){let i=this.inputIndex;if(this.advance(),e.push(new qa(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 nt?this.error("Template literal interpolation cannot be empty"):n.push(i),this.rbracesExpected--}else this.advance()}return new xo(this.span(r),this.sourceSpan(r),e,n)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new nt(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let n=null;if(this.next.isRegExpFlags()){n=this.next,this.advance();let i=new Set;for(let o=0;o<n.strValue.length;o++){let a=n.strValue[o];Wf.has(a)?i.has(a)?this.error(`Duplicate regular expression flag "${a}"`,n.index+o):i.add(a):this.error(`Unsupported regular expression flag "${a}". The supported flags are: `+Array.from(Wf,c=>`"${c}"`).join(", "),n.index+o)}}let r=e.index,s=n?n.end:e.end;return new Wa(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(Et)?(this.rparensExpected++,this.advance(),n=this.parseArrowFunctionParameters(),this.rparensExpected--):(n=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let r;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."),r=new nt(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(We))for(;this.next!==Ui;)if(this.next.isIdentifier()){let n=this.next;if(this.advance(),e.push(this.getArrowFunctionIdentifierArg(n)),this.consumeOptionalCharacter(We))break;this.expectCharacter(ct)}else{this.error(`Unexpected token ${this.next}`);break}return e}getArrowFunctionIdentifierArg(e){return new eu(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(Et)){let r=e+1;for(r;r<n.length&&!(!n[r].isIdentifier()&&!n[r].isCharacter(ct));r++);return r<n.length-1&&n[r].isCharacter(We)&&n[r+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(Rt)||this.consumeOptionalCharacter(ct)}error(e,n=this.index){this.errors.push(Hs(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(Rt)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(We))&&(this.rbracesExpected<=0||!e.isCharacter(St))&&(this.rbracketsExpected<=0||!e.isCharacter(Bn))&&(!(this.context&Gs.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(Hs(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function Hs(t,e,n,r){n.length>0&&(n=` ${n} `);let s=pr(r),i=`Parser Error: ${t}${n}[${e}] in ${s}`;return new V(r,i)}var Gu=class extends gs{constructor(){super(...arguments);l(this,"errors",[])}visitPipe(){this.errors.push("pipes")}};function LC(t){let e=new Map,n=0,r=0,s=0;for(;s<t.length;){let i=t[s];if(i.type===9){let[o,a]=i.parts;n+=a.length,r+=o.length}else{let o=i.parts.reduce((a,c)=>a+c.length,0);r+=o,n+=o}e.set(r,n),s++}return e}function MC(t){return t.visit(new Hu)}var Hu=class{visitUnary(e,n){return`${e.operator}${e.expr.visit(this,n)}`}visitBinary(e,n){return`${e.left.visit(this,n)} ${e.operation} ${e.right.visit(this,n)}`}visitChain(e,n){return e.expressions.map(r=>r.visit(this,n)).join("; ")}visitConditional(e,n){return`${e.condition.visit(this,n)} ? ${e.trueExp.visit(this,n)} : ${e.falseExp.visit(this,n)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(e,n){return FC(e.strings,e.expressions.map(r=>r.visit(this,n))).join("")}visitKeyedRead(e,n){return`${e.receiver.visit(this,n)}[${e.key.visit(this,n)}]`}visitLiteralArray(e,n){return`[${e.expressions.map(r=>r.visit(this,n)).join(", ")}]`}visitLiteralMap(e,n){return`{${OC(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 Ht||e.receiver instanceof Ar?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 OC(t,e){if(t.length!==e.length)throw new Error("Array lengths must match");return t.map((n,r)=>[n,e[r]])}function FC(t,e){let n=[];for(let r=0;r<Math.max(t.length,e.length);r++)r<t.length&&n.push(t[r]),r<e.length&&n.push(e[r]);return n}var Ml="svg",Ol="math",qu=class{},$C="boolean",BC="number",UC="string",VC="object";function Vi(t){let e=t.toLowerCase(),[n,r]=ft(e,!1);return n===Ml||n===Ol?`:${n}:${r}`:r}var GC=["[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:|"],ig=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"})),HC=Array.from(ig).reduce((t,[e,n])=>(t.set(e,n),t),new Map),zt=class extends qu{constructor(){super();l(this,"_schema",new Map);l(this,"_eventSchema",new Map);GC.forEach(n=>{let r=new Map,s=new Set,[i,o]=n.split("|"),a=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)}a.forEach(d=>{if(d.length>0)switch(d[0]){case"*":s.add(d.substring(1));break;case"!":r.set(d.substring(1),$C);break;case"#":r.set(d.substring(1),BC);break;case"%":r.set(d.substring(1),VC);break;default:r.set(d,UC)}})})}hasProperty(n,r,s){if(s.some(a=>a.name===Hc.name))return!0;let i=Vi(n);if(i.includes("-")){if(cf(i)||ru(i))return!1;if(s.some(a=>a.name===Gc.name))return!0}return(this._schema.get(i)||this._schema.get("unknown")).has(r)}hasElement(n,r){if(r.some(i=>i.name===Hc.name))return!0;let s=Vi(n);return s.includes("-")&&(cf(s)||ru(s)||r.some(i=>i.name===Gc.name))?!0:this._schema.has(s)}securityContext(n,r,s){var c,u;s&&(r=this.getMappedPropName(r));let i=Vi(n);r=r.toLowerCase();let o=oE();return(u=(c=o[i+"|"+r])!=null?c:o["*|"+r])!=null?u:re.NONE}getMappedPropName(n){var r;return(r=ig.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)})=...
|
|
22
|
-
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=Vi(n),s=this._schema.get(r)||this._schema.get("unknown");return Array.from(s.keys()).map(i=>{var o;return(o=HC.get(i))!=null?o:i})}allKnownEventsOfElement(n){var s;let r=Vi(n);return Array.from((s=this._eventSchema.get(r))!=null?s:[])}normalizeAnimationStyleProperty(n){return ME(n)}normalizeAnimationStyleValue(n,r,s){let i="",o=s.toString().trim(),a=null;if(qC(n)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let c=s.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${s}`)}return{error:a,value:o+i}}};function qC(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 ee=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=pn.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:c=!1}={}){l(this,"closedByChildren",{});l(this,"contentType");l(this,"closedByParent",!1);l(this,"implicitNamespacePrefix");l(this,"isVoid");l(this,"ignoreFirstLf");l(this,"canSelfClose");l(this,"preventNamespaceInheritance");e&&e.length>0&&e.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=n||null,this.contentType=r,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=c!=null?c:i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){if(typeof this.contentType=="object"){let n=e===void 0?void 0:this.contentType[e];return n!=null?n:this.contentType.default}return this.contentType}},jf,Ps;function Wu(t){var e,n;return Ps||(jf=new ee({canSelfClose:!0}),Ps=Object.assign(Object.create(null),{base:new ee({isVoid:!0}),meta:new ee({isVoid:!0}),area:new ee({isVoid:!0}),embed:new ee({isVoid:!0}),link:new ee({isVoid:!0}),img:new ee({isVoid:!0}),input:new ee({isVoid:!0}),param:new ee({isVoid:!0}),hr:new ee({isVoid:!0}),br:new ee({isVoid:!0}),source:new ee({isVoid:!0}),track:new ee({isVoid:!0}),wbr:new ee({isVoid:!0}),p:new ee({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ee({closedByChildren:["tbody","tfoot"]}),tbody:new ee({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ee({closedByChildren:["tbody"],closedByParent:!0}),tr:new ee({closedByChildren:["tr"],closedByParent:!0}),td:new ee({closedByChildren:["td","th"],closedByParent:!0}),th:new ee({closedByChildren:["td","th"],closedByParent:!0}),col:new ee({isVoid:!0}),svg:new ee({implicitNamespacePrefix:"svg"}),foreignObject:new ee({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ee({implicitNamespacePrefix:"math"}),li:new ee({closedByChildren:["li"],closedByParent:!0}),dt:new ee({closedByChildren:["dt","dd"]}),dd:new ee({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ee({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ee({closedByChildren:["optgroup"],closedByParent:!0}),option:new ee({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ee({ignoreFirstLf:!0}),listing:new ee({ignoreFirstLf:!0}),style:new ee({contentType:pn.RAW_TEXT}),script:new ee({contentType:pn.RAW_TEXT}),title:new ee({contentType:{default:pn.ESCAPABLE_RAW_TEXT,svg:pn.PARSABLE_DATA}}),textarea:new ee({contentType:pn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new zt().allKnownElementNames().forEach(r=>{!Ps[r]&&su(r)===null&&(Ps[r]=new ee({canSelfClose:!1}))})),(n=(e=Ps[t])!=null?e:Ps[t.toLowerCase()])!=null?n:jf}var zf={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"},ju=class{constructor(){l(this,"_placeHolderNameCounts",{});l(this,"_signatureToName",{})}getStartTagPlaceholderName(e,n,r){let s=this._hashTag(e,n,r);if(this._signatureToName[s])return this._signatureToName[s];let i=e.toUpperCase(),o=zf[i]||`TAG_${i}`,a=this._generateUniqueName(r?o:`START_${o}`);return this._signatureToName[s]=a,a}getCloseTagPlaceholderName(e){let n=this._hashClosingTag(e);if(this._signatureToName[n])return this._signatureToName[n];let r=e.toUpperCase(),s=zf[r]||`TAG_${r}`,i=this._generateUniqueName(`CLOSE_${s}`);return this._signatureToName[n]=i,i}getPlaceholderName(e,n){let r=e.toUpperCase(),s=`PH: ${r}=${n}`;if(this._signatureToName[s])return this._signatureToName[s];let i=this._generateUniqueName(r);return this._signatureToName[s]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,n){let r=this._hashBlock(e,n);if(this._signatureToName[r])return this._signatureToName[r];let s=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[r]=s,s}getCloseBlockPlaceholderName(e){let n=this._hashClosingBlock(e);if(this._signatureToName[n])return this._signatureToName[n];let r=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[n]=r,r}_hashTag(e,n,r){let s=`<${e}`,i=Object.keys(n).sort().map(a=>` ${a}=${n[a]}`).join(""),o=r?"/>":`></${e}>`;return s+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,n){let r=n.length===0?"":` (${n.sort().join("; ")})`;return`@${e}${r} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let r=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=r+1,`${e}_${r}`}},WC=new yl(new Xo);function jC(t,e){let n=new zu(WC,t,e);return(r,s,i,o,a)=>n.toI18nMessage(r,s,i,o,a)}function zC(t,e){return e}var zu=class{constructor(e,n,r){l(this,"_expressionParser");l(this,"_retainEmptyTokens");l(this,"_preserveExpressionWhitespace");this._expressionParser=e,this._retainEmptyTokens=n,this._preserveExpressionWhitespace=r}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof ls,icuDepth:0,placeholderRegistry:new ju,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||zC},a=me(this,e,o);return new wt(a,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){return this._visitElementLike(e,n)}visitComponent(e,n){return this._visitElementLike(e,n)}visitDirective(e,n){throw new Error("Unreachable code")}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new Oi(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 Oi(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 Ya(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(a=>{r[a.value]=new Gn(a.expression.map(c=>c.visit(this,n)),a.expSourceSpan)}),n.icuDepth--,n.isIcu||n.icuDepth>0){let a=n.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return s.expressionPlaceholder=a,n.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},n.visitNodeFn(e,s)}let i=n.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());n.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new fi(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){var c;let r=me(this,e.children,n);if(e.name==="switch")return new Gn(r,e.sourceSpan);let s=e.parameters.map(u=>u.expression),i=n.placeholderRegistry.getStartBlockPlaceholderName(e.name,s),o=n.placeholderRegistry.getCloseBlockPlaceholderName(e.name);n.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},n.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:(c=e.endSourceSpan)!=null?c:e.sourceSpan};let a=new Pr(e.name,s,i,o,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,a)}visitBlockParameter(e,n){throw new Error("Unreachable code")}visitLetDeclaration(e,n){return null}_visitElementLike(e,n){var d;let r=me(this,e.children,n),s={},i=p=>{s[p.name]=p.value},o,a;e instanceof Xt?(o=e.name,a=Wu(e.name).isVoid):(o=e.fullName,a=e.tagName?Wu(e.tagName).isVoid:!1),e.attrs.forEach(i),e.directives.forEach(p=>p.attrs.forEach(i));let c=n.placeholderRegistry.getStartTagPlaceholderName(o,s,a);n.placeholderToContent[c]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let u="";a||(u=n.placeholderRegistry.getCloseTagPlaceholderName(o),n.placeholderToContent[u]={text:`</${o}>`,sourceSpan:(d=e.endSourceSpan)!=null?d:e.sourceSpan});let h=new Rr(o,s,c,u,r,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,h)}_visitTextWithInterpolation(e,n,r,s){let i=[],o=!1;for(let a of e)switch(a.type){case 8:case 17:o=!0;let[c,u,h]=a.parts,d=JC(u)||"INTERPOLATION",p=r.placeholderRegistry.getPlaceholderName(d,u);if(this._preserveExpressionWhitespace)r.placeholderToContent[p]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new Ro(u,p,a.sourceSpan));else{let g=this.normalizeExpression(a);r.placeholderToContent[p]={text:`${c}${g}${h}`,sourceSpan:a.sourceSpan},i.push(new Ro(g,p,a.sourceSpan))}break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let g=i[i.length-1];g instanceof Oi?(g.value+=a.parts[0],g.sourceSpan=new G(g.sourceSpan.start,a.sourceSpan.end,g.sourceSpan.fullStart,g.sourceSpan.details)):i.push(new Oi(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new Oi(a.parts[0],a.sourceSpan));break}return o?(KC(i,s),new Gn(i,n)):i[0]}normalizeExpression(e){let n=e.parts[1],r=this._expressionParser.parseBinding(n,e.sourceSpan,e.sourceSpan.start.offset);return MC(r)}};function KC(t,e){if(e instanceof wt&&(XC(e),e=e.nodes[0]),e instanceof Gn){YC(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function XC(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof Gn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function YC(t,e){if(t.length!==e.length)throw new Error(`
|
|
17
|
+
${n.toSourceMapGenerator(e,h).toJsComment()}`}let c=gf(...o.concat(i));return this.executeFunction(c,a)}executeFunction(e,n){return e(...n)}},vu=class extends gu{constructor(n){super();l(this,"refResolver");l(this,"_evalArgNames",[]);l(this,"_evalArgValues",[]);l(this,"_evalExportedVars",[]);this.refResolver=n}createReturnStmt(n){new _e(new sn(this._evalExportedVars.map(s=>new Cr(s,Z(s),!1)))).visitStatement(this,n)}getArgs(){let n={};for(let r=0;r<this._evalArgNames.length;r++)n[this._evalArgNames[r]]=this._evalArgValues[r];return n}visitExternalExpr(n,r){return this._emitReferenceToExternal(n,this.refResolver.resolveExternalReference(n.value),r),null}visitWrappedNodeExpr(n,r){return this._emitReferenceToExternal(n,n.node,r),null}visitDeclareVarStmt(n,r){return n.hasModifier(Ue.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareVarStmt(n,r)}visitDeclareFunctionStmt(n,r){return n.hasModifier(Ue.Exported)&&this._evalExportedVars.push(n.name),super.visitDeclareFunctionStmt(n,r)}_emitReferenceToExternal(n,r,s){let i=this._evalArgValues.indexOf(r);if(i===-1){i=this._evalArgValues.length,this._evalArgValues.push(r);let o=Nw({reference:r})||"val";this._evalArgNames.push(`jit_${o}_${i}`)}s.print(n,this._evalArgNames[i])}};function Dw(t){return t.isEquivalent(S("use strict").toStmt())}function Su(t){let e=new Xn;t.providers!==null&&e.set("providers",t.providers),t.imports.length>0&&e.set("imports",ce(t.imports));let n=R(m.defineInjector).callFn([e.toLiteralMap()],void 0,!0),r=bw(t);return{expression:n,type:r,statements:[]}}function bw(t){return new ft(R(m.InjectorDeclaration,[new ft(t.type.type)]))}var Eu=class{constructor(e){l(this,"context");this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},di;(function(t){t[t.Inline=0]="Inline",t[t.SideEffect=1]="SideEffect",t[t.Omit=2]="Omit"})(di||(di={}));var kt;(function(t){t[t.Global=0]="Global",t[t.Local=1]="Local",t[t.Isolated=2]="Isolated"})(kt||(kt={}));function Pm(t){let e=[],n=new Xn;if(n.set("type",t.type.value),t.kind===kt.Global&&t.bootstrap.length>0&&n.set("bootstrap",es(t.bootstrap,t.containsForwardDecls)),t.selectorScopeMode===di.Inline)t.declarations.length>0&&n.set("declarations",es(t.declarations,t.containsForwardDecls)),t.imports.length>0&&n.set("imports",es(t.imports,t.containsForwardDecls)),t.exports.length>0&&n.set("exports",es(t.exports,t.containsForwardDecls));else if(t.selectorScopeMode===di.SideEffect){let i=Rw(t);i!==null&&e.push(i)}t.schemas!==null&&t.schemas.length>0&&n.set("schemas",ce(t.schemas.map(i=>i.value))),t.id!==null&&(n.set("id",t.id),e.push(R(m.registerNgModuleType).callFn([t.type.value,t.id]).toStmt()));let r=R(m.defineNgModule).callFn([n.toLiteralMap()],void 0,!0),s=kw(t);return{expression:r,type:s,statements:e}}function _w(t){let e=new Xn;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)),R(m.defineNgModule).callFn([e.toLiteralMap()])}function kw(t){if(t.kind===kt.Local)return new ft(t.type.value);if(t.kind===kt.Isolated)return new ft(R(m.NgModuleDeclaration,[new ft(t.type.type),Lt,t.importsExpression?Ve(t.importsExpression):Lt,t.exportsExpression?Ve(t.exportsExpression):Lt]));let{type:e,declarations:n,exports:r,imports:s,includeImportTypes:i,publicDeclarationTypes:o}=t;return new ft(R(m.NgModuleDeclaration,[new ft(e.type),o===null?Ec(n):Pw(o),i?Ec(s):Lt,Ec(r)]))}function Rw(t){let e=new Xn;if(t.kind===kt.Global?t.declarations.length>0&&e.set("declarations",es(t.declarations,t.containsForwardDecls)):t.kind===kt.Local&&t.declarationsExpression&&e.set("declarations",t.declarationsExpression),t.kind===kt.Global?t.imports.length>0&&e.set("imports",es(t.imports,t.containsForwardDecls)):t.kind===kt.Local&&t.importsExpression&&e.set("imports",t.importsExpression),t.kind===kt.Global?t.exports.length>0&&e.set("exports",es(t.exports,t.containsForwardDecls)):t.kind===kt.Local&&t.exportsExpression&&e.set("exports",t.exportsExpression),t.kind===kt.Local&&t.bootstrapExpression&&e.set("bootstrap",t.bootstrapExpression),Object.keys(e.values).length===0)return null;let n=new Ae(R(m.setNgModuleScope),[t.type.value,e.toLiteralMap()]),r=XE(n),s=new hn([],[r.toStmt()]);return new Ae(s,[]).toStmt()}function Ec(t){let e=t.map(n=>Ei(n.type));return t.length>0?Ve(ce(e)):Lt}function Pw(t){let e=t.map(n=>Ei(n));return t.length>0?Ve(ce(e)):Lt}function wu(t){var s;let e=[];e.push({key:"name",value:S((s=t.pipeName)!=null?s:t.name),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:S(t.pure),quoted:!1}),t.isStandalone===!1&&e.push({key:"standalone",value:S(!1),quoted:!1});let n=R(m.definePipe).callFn([Nt(e)],void 0,!0),r=Lw(t);return{expression:n,type:r,statements:[]}}function Lw(t){return new ft(R(m.PipeDeclaration,[bl(t.type.type,t.typeArgumentCount),new ft(new ke(t.pipeName)),new ft(new ke(t.isStandalone))]))}var Or;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(Or||(Or={}));var Mw=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"]),Ow=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Tu=class{constructor(){l(this,"_animationDeclarationKeyframesRe",/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g);l(this,"_safeSelector");l(this,"_shouldScopeIndicator")}shimCssText(e,n,r=""){let s=[];e=e.replace(Xw,a=>{var c;if(a.match(Yw))s.push(a);else{let u=a.match(Kw);s.push((c=u==null?void 0:u.join(""))!=null?c:"")}return Dp});let i=this._scopeCssText(e,n,r),o=0;return i.replace(Qw,()=>s[o++])}_scopeKeyframesRelatedCss(e,n){let r=new Set,s=Ea(e,i=>this._scopeLocalKeyframeDeclarations(i,n,r));return Ea(s,i=>this._scopeAnimationRule(i,n,r))}_scopeLocalKeyframeDeclarations(e,n,r){return he(x({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(s,i,o,a,c)=>(r.add(vf(a,o)),`${i}${o}${n}_${a}${o}${c}`))})}_scopeAnimationKeyframe(e,n,r){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(s,i,o,a,c)=>(a=`${r.has(vf(a,o))?n+"_":""}${a}`,`${i}${o}${a}${o}${c}`))}_scopeAnimationRule(e,n,r){let s=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*)([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(c,u,h="",d,p)=>d?`${u}${this._scopeAnimationKeyframe(`${h}${d}${h}`,n,r)}`:Mw.has(p)?c:`${u}${this._scopeAnimationKeyframe(p,n,r)}`));return s=s.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(c=>this._scopeAnimationKeyframe(c,n,r)).join(",")}`),he(x({},e),{content:s})}_scopeCssText(e,n,r){return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),n&&(e=this._scopeKeyframesRelatedCss(e,n),e=this._scopeSelectors(e,n,r)),e.trim()}_convertColonHost(e){return e.replace(Vw,(n,r,s)=>{if(r){let i=[...this._splitOnTopLevelCommas(r,!0)];if(i.length>1)return":host("+r+")"+s;let o=i[0].trim();if(o)return ur+o.replace(Za,"")+s}return ur+s})}*_splitOnTopLevelCommas(e,n){let r=e.length,s=0,i=0;for(let o=0;o<r;o++){let a=e.charCodeAt(o);if(a===wt)s++;else if(a===We){if(s--,s<0&&n){yield e.slice(i,o);return}}else a===pt&&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(Hw,(n,r)=>{let s=[[]],i=n.indexOf(Ms);for(;i!==-1;){let o=n.substring(i+Ms.length);if(!o||o[0]!=="("){n=o,i=n.indexOf(Ms);continue}let a=[],c=0;for(let h of this._splitOnTopLevelCommas(o.substring(1),!0)){c=c+h.length+1;let d=h.trim();d&&a.push(d)}let u=s.length;lT(s,a.length);for(let h=0;h<a.length;h++)for(let d=0;d<u;d++)s[d+h*u].push(a[h]);n=o.substring(c+1),i=n.indexOf(Ms)}return s.map(o=>aT(o,n,r)).join(", ")})}_scopeSelectors(e,n,r){return Ea(e,s=>{let i=s.selector,o=s.content;return s.selector[0]!=="@"?i=this._scopeSelector({selector:i,scopeSelector:n,hostSelector:r,isParentSelector:!0}):Ow.some(a=>s.selector.startsWith(a))?o=this._scopeSelectors(s.content,n,r):(s.selector.startsWith("@font-face")||s.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(s.content)),new Mo(i,o)})}_stripScopingSelectors(e){return Ea(e,n=>{let r=n.selector.replace(yf," ").replace(wc," ");return new Mo(r,n.content)})}_scopeSelector({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s=!1}){let i=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return e.split(i).map(o=>o.split(yf)).map(o=>{let[a,...c]=o;return[(h=>this._selectorNeedsScoping(h,n)?this._applySelectorScope({selector:h,scopeSelector:n,hostSelector:r,isParentSelector:s}):h)(a),...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+")"+Ww,"m")}_applySimpleSelectorScope(e,n,r){if(Us.lastIndex=0,Us.test(e)){let s=`[${r}]`,i=e;for(;i.match(wc);)i=i.replace(wc,(o,a)=>a.replace(/([^:\)]*)(:*)(.*)/,(c,u,h,d)=>u+s+h+d));return i.replace(Us,s)}return n+" "+e}_applySelectorScope({selector:e,scopeSelector:n,hostSelector:r,isParentSelector:s}){var E;let i=/\[is=([^\]]*)\]/g;n=n.replace(i,(I,...D)=>D[0]);let o=`[${n}]`,a=I=>{let D=I.trim();if(!D)return I;if(I.includes(ur)){if(D=this._applySimpleSelectorScope(I,n,r),!I.match(qw)){let[_,k,H,X]=D.match(/([^:]*)(:*)([\s\S]*)/);D=k+o+H+X}}else{let _=I.replace(Us,"");if(_.length>0){let k=_.match(/([^:]*)(:*)([\s\S]*)/);k&&(D=k[1]+o+k[2]+k[3])}}return D},c=I=>{let D="",_=[],k;for(;(k=Fi.exec(I))!==null;){let H=1,X=Fi.lastIndex;for(;X<I.length;){let ie=I[X];if(X++,ie==="("){H++;continue}if(ie===")"){if(H--,H===0)break;continue}}_.push(`${k[0]}${I.slice(Fi.lastIndex,X)}`),Fi.lastIndex=X}return _.join("")===I?D=_.map(H=>{var we;let[X]=(we=H.match(Fi))!=null?we:[],ie=H.slice(X==null?void 0:X.length,-1);ie.includes(ur)&&(this._shouldScopeIndicator=!0);let Re=this._scopeSelector({selector:ie,scopeSelector:n,hostSelector:r});return`${X}${Re})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||I.includes(ur),D=this._shouldScopeIndicator?a(I):I),D};s&&(this._safeSelector=new xu(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 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 _=c(D);u+=`${_} ${I} `,h=p.lastIndex}let v=e.substring(h);return u+=c(v),this._safeSelector.restore(u)}_insertPolyfillHostInCssText(e){return e.replace(zw,Ms).replace(jw,Za)}},xu=class{constructor(e){l(this,"placeholders",[]);l(this,"index",0);l(this,"_content");e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(n,r)=>{let s=`__esc-ph-${this.index}__`;return this.placeholders.push(r),this.index++,s}),this._content=e.replace(Uw,(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})}},Fw="(:(where|is)\\()?",Fi=/:(where|is)\(/gi,Za="-shadowcsshost",Ms="-shadowcsscontext",Cu="[^)(]*",$w=String.raw`(?:\(${Cu}\)|${Cu})+?`,Bw=String.raw`(?:\(${$w}\)|${Cu})+?`,Ap=String.raw`(?:\((${Bw})\))`,Uw=new RegExp(String.raw`(:nth-[-\w]+)`+Ap,"g"),Vw=new RegExp(Za+Ap+"?([^,{]*)","gim"),Gw=Ms+Ap+"([^{]*)",Hw=new RegExp(`${Fw}(${Gw})`,"gim"),ur=Za+"-no-combinator",qw=new RegExp(`${ur}(?![^(]*\\))`,"g"),wc=/-shadowcsshost-no-combinator([^\s,]*)/,yf=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Ww="([>\\s~+[.,{:][\\s\\S]*)?$",Us=/-shadowcsshost/gim,jw=/:host(?!\-context)/gim,zw=/:host-context(?=\(\s*[^)\s])/gim,Kw=/\r?\n/g,Xw=/\/\*[\s\S]*?\*\//g,Yw=/\/\*\s*#\s*source(Mapping)?URL=/g,Dp="%COMMENT%",Qw=new RegExp(Dp,"g"),Tc="%BLOCK%",Jw=new RegExp(`(\\s*(?:${Dp}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),Zw=new Map([["{","}"]]),Lm="%COMMA_IN_PLACEHOLDER%",Mm="%SEMI_IN_PLACEHOLDER%",Om="%COLON_IN_PLACEHOLDER%",eT=new RegExp(Lm,"g"),tT=new RegExp(Mm,"g"),nT=new RegExp(Om,"g"),Mo=class{constructor(e,n){l(this,"selector");l(this,"content");this.selector=e,this.content=n}};function Ea(t,e){let n=iT(t),r=rT(n,Zw,Tc),s=0,i=r.escapedString.replace(Jw,(...o)=>{let a=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 Mo(a,c));return`${o[1]}${d.selector}${o[3]}${h}${d.content}${u}`});return oT(i)}var Nu=class{constructor(e,n){l(this,"escapedString");l(this,"blocks");this.escapedString=e,this.blocks=n}};function rT(t,e,n){let r=[],s=[],i=0,o=0,a=-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(a,h)),r.push(n),o=h,a=-1,c=u=void 0)):d===c?i++:i===0&&e.has(d)&&(c=d,u=e.get(d),i=1,a=h+1,r.push(t.substring(o,a)))}return a!==-1?(s.push(t.substring(a)),r.push(n)):r.push(t.substring(o)),new Nu(r.join(""),s)}var sT={";":Mm,",":Lm,":":Om};function iT(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=sT[s];i&&(e=`${e.substr(0,r)}${i}${e.substr(r+1)}`,r+=i.length-1)}else(s==="'"||s==='"')&&(n=s)}return e}function oT(t){let e=t.replace(eT,",");return e=e.replace(tT,";"),e=e.replace(nT,":"),e}function vf(t,e){return e?t.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):t}function aT(t,e,n=""){let r=ur;Us.lastIndex=0;let s=Us.test(e);if(t.length===0)return r+e;let i=[t.pop()||""];for(;t.length>0;){let o=i.length,a=t.pop();for(let c=0;c<o;c++){let u=i[c];i[o*2+c]=u+" "+a,i[o+c]=a+" "+u,i[c]=a+u}}return i.map(o=>s?`${n}${o}${e}`:`${n}${o}${r}${e}, ${n}${o} ${r}${e}`).join(",")}function lT(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.EnableIncrementalHydrationRuntime=35]="EnableIncrementalHydrationRuntime",t[t.Projection=36]="Projection",t[t.RepeaterCreate=37]="RepeaterCreate",t[t.Repeater=38]="Repeater",t[t.TwoWayProperty=39]="TwoWayProperty",t[t.TwoWayListener=40]="TwoWayListener",t[t.DeclareLet=41]="DeclareLet",t[t.StoreLet=42]="StoreLet",t[t.I18nStart=43]="I18nStart",t[t.I18n=44]="I18n",t[t.I18nEnd=45]="I18nEnd",t[t.I18nExpression=46]="I18nExpression",t[t.I18nApply=47]="I18nApply",t[t.IcuStart=48]="IcuStart",t[t.IcuEnd=49]="IcuEnd",t[t.IcuPlaceholder=50]="IcuPlaceholder",t[t.I18nContext=51]="I18nContext",t[t.I18nAttributes=52]="I18nAttributes",t[t.SourceLocation=53]="SourceLocation",t[t.Animation=54]="Animation",t[t.AnimationString=55]="AnimationString",t[t.AnimationBinding=56]="AnimationBinding",t[t.AnimationListener=57]="AnimationListener",t[t.Control=58]="Control",t[t.ControlCreate=59]="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.SafeNavigationMigration=17]="SafeNavigationMigration",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 Gt;(function(t){t[t.None=0]="None",t[t.AlwaysInline=1]="AlwaysInline"})(Gt||(Gt={}));var Qe;(function(t){t[t.Context=0]="Context",t[t.Identifier=1]="Identifier",t[t.SavedView=2]="SavedView",t[t.Alias=3]="Alias"})(Qe||(Qe={}));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 mi;(function(t){t[t.Creation=0]="Creation",t[t.Postproccessing=1]="Postproccessing"})(mi||(mi={}));var ws;(function(t){t[t.I18nText=0]="I18nText",t[t.I18nAttribute=1]="I18nAttribute"})(ws||(ws={}));var pe;(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"})(pe||(pe={}));var Fe;(function(t){t[t.HTML=0]="HTML",t[t.SVG=1]="SVG",t[t.Math=2]="Math"})(Fe||(Fe={}));var le;(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"})(le||(le={}));var gr;(function(t){t[t.RootI18n=0]="RootI18n",t[t.Icu=1]="Icu",t[t.Attr=2]="Attr"})(gr||(gr={}));var xt;(function(t){t[t.NgTemplate=0]="NgTemplate",t[t.Structural=1]="Structural",t[t.Block=2]="Block"})(xt||(xt={}));var fe=class fe{constructor(){l(this,"debugListId",fe.nextListId++);l(this,"head",{kind:f.ListEnd,next:null,prev:null,debugListId:this.debugListId});l(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 a=n[0],c=o;s!==null&&(s.next=a,a.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")}};l(fe,"nextListId",0);var T=fe;function Wt(t){return x({kind:f.Statement,statement:t},j)}function fr(t,e,n,r){return x({kind:f.Variable,xref:t,variable:e,initializer:n,flags:r},j)}var j={debugListId:null,prev:null,next:null},Fm=Symbol("ConsumesSlot"),bp=Symbol("DependsOnSlotContext"),As=Symbol("ConsumesVars"),ia=Symbol("UsesVarOffset"),an={[Fm]:!0,numSlotsUsed:1},Ft={[bp]:!0},$t={[As]:!0};function xi(t){return t[Fm]===!0}function Oo(t){return t[bp]===!0}function xc(t){return t[As]===!0}function Sf(t){return t[ia]===!0}function cT(t,e,n){return x(x(x({kind:f.InterpolateText,target:t,interpolation:e,sourceSpan:n},Ft),$t),j)}var De=class{constructor(e,n,r){l(this,"strings");l(this,"expressions");l(this,"i18nPlaceholders");if(this.strings=e,this.expressions=n,this.i18nPlaceholders=r,r.length!==0&&r.length!==n.length)throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${r.length}`)}};function Ts(t,e,n,r,s,i,o,a,c,u,h){return x({kind:f.Binding,bindingKind:e,target:t,name:n,expression:r,unit:s,securityContext:i,isTextAttribute:o,isStructuralTemplateAttribute:a,templateKind:c,i18nContext:null,i18nMessage:u,sourceSpan:h},j)}function uT(t,e,n,r,s,i,o,a,c,u){return x(x(x({kind:f.Property,target:t,name:e,expression:n,bindingKind:r,securityContext:s,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:o,i18nContext:a,i18nMessage:c,sourceSpan:u},Ft),$t),j)}function pT(t,e,n,r,s,i,o,a,c){return x(x(x({kind:f.TwoWayProperty,target:t,name:e,expression:n,securityContext:r,sanitizer:null,isStructuralTemplateAttribute:s,templateKind:i,i18nContext:o,i18nMessage:a,sourceSpan:c},Ft),$t),j)}function hT(t,e,n,r,s){return x(x(x({kind:f.StyleProp,target:t,name:e,expression:n,unit:r,sourceSpan:s},Ft),$t),j)}function fT(t,e,n,r){return x(x(x({kind:f.ClassProp,target:t,name:e,expression:n,sourceSpan:r},Ft),$t),j)}function dT(t,e,n){return x(x(x({kind:f.StyleMap,target:t,expression:e,sourceSpan:n},Ft),$t),j)}function mT(t,e,n){return x(x(x({kind:f.ClassMap,target:t,expression:e,sourceSpan:n},Ft),$t),j)}function Ef(t,e,n,r,s,i,o,a,c,u){return x(x(x({kind:f.Attribute,target:t,namespace:e,name:n,expression:r,securityContext:s,sanitizer:null,isTextAttribute:i,isStructuralTemplateAttribute:o,templateKind:a,i18nContext:null,i18nMessage:c,sourceSpan:u},Ft),$t),j)}function gT(t,e){return x({kind:f.Advance,delta:t,sourceSpan:e},j)}function $m(t,e,n,r){return x(x(x({kind:f.Conditional,target:t,test:e,conditions:n,processed:null,sourceSpan:r,contextValue:null},j),Ft),$t)}function yT(t,e,n,r){return x(x({kind:f.Repeater,target:t,targetSlot:e,collection:n,sourceSpan:r},j),Ft)}function wf(t,e,n,r,s,i,o){return x({kind:f.AnimationBinding,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i,animationBindingKind:o},j)}function vT(t,e,n,r){return x(x(x({kind:f.DeferWhen,target:t,expr:e,modifier:n,sourceSpan:r},j),Ft),$t)}function Bm(t,e,n,r,s,i,o,a,c,u,h){return x(x(x({kind:f.I18nExpression,context:t,target:e,i18nOwner:n,handle:r,expression:s,icuPlaceholder:i,i18nPlaceholder:o,resolutionTime:a,usage:c,name:u,sourceSpan:h},j),$t),Ft)}function ST(t,e,n){return x({kind:f.I18nApply,owner:t,handle:e,sourceSpan:n},j)}function ET(t,e,n,r){return x(x(x({kind:f.StoreLet,target:t,declaredName:e,value:n,sourceSpan:r},Ft),$t),j)}function wT(t,e){return x(x({kind:f.Control,sourceSpan:e,target:t},Ft),j)}function Ln(t){return t instanceof ue}var ue=class extends oe{constructor(e=null){super(null,e)}},Ye=class t extends ue{constructor(n){super();l(this,"name");l(this,"kind",F.LexicalRead);this.name=n}visitExpression(n,r){}isEquivalent(n){return this.name===n.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.name)}},el=class t extends ue{constructor(n,r,s){super();l(this,"target");l(this,"targetSlot");l(this,"offset");l(this,"kind",F.Reference);this.target=n,this.targetSlot=r,this.offset=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot,this.offset)}},$d,Bd,Ud,Fo=class t extends(Ud=ue,Bd=As,$d=bp,Ud){constructor(n,r,s){super();l(this,"target");l(this,"value");l(this,"sourceSpan");l(this,"kind",F.StoreLet);l(this,Bd,!0);l(this,$d,!0);this.target=n,this.value=r,this.sourceSpan=s}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target&&n.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(n,r){this.value=P(this.value,n,r)}clone(){return new t(this.target,this.value,this.sourceSpan)}},$o=class t extends ue{constructor(n,r){super();l(this,"target");l(this,"targetSlot");l(this,"kind",F.ContextLetReference);this.target=n,this.targetSlot=r}visitExpression(){}isEquivalent(n){return n instanceof t&&n.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.target,this.targetSlot)}},Fr=class t extends ue{constructor(n){super();l(this,"view");l(this,"kind",F.Context);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},Iu=class t extends ue{constructor(n){super();l(this,"view");l(this,"kind",F.TrackContext);this.view=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t(this.view)}},tl=class t extends ue{constructor(){super(...arguments);l(this,"kind",F.NextContext);l(this,"steps",1)}visitExpression(){}isEquivalent(n){return n instanceof t&&n.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let n=new t;return n.steps=this.steps,n}},Au=class t extends ue{constructor(){super();l(this,"kind",F.GetCurrentView)}visitExpression(){}isEquivalent(n){return n instanceof t}isConstant(){return!1}transformInternalExpressions(){}clone(){return new t}},Bo=class t extends ue{constructor(n){super();l(this,"view");l(this,"kind",F.RestoreView);this.view=n}visitExpression(n,r){typeof this.view!="number"&&this.view.visitExpression(n,r)}isEquivalent(n){return!(n instanceof t)||typeof n.view!=typeof this.view?!1:typeof this.view=="number"?this.view===n.view:this.view.isEquivalent(n.view)}isConstant(){return!1}transformInternalExpressions(n,r){typeof this.view!="number"&&(this.view=P(this.view,n,r))}clone(){return new t(this.view instanceof oe?this.view.clone():this.view)}},nl=class t extends ue{constructor(n){super();l(this,"expr");l(this,"kind",F.ResetView);this.expr=n}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}isConstant(){return!1}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r)}clone(){return new t(this.expr.clone())}},rl=class t extends ue{constructor(n,r){super();l(this,"target");l(this,"value");l(this,"kind",F.TwoWayBindingSet);this.target=n,this.value=r}visitExpression(n,r){this.target.visitExpression(n,r),this.value.visitExpression(n,r)}isEquivalent(n){return this.target.isEquivalent(n.target)&&this.value.isEquivalent(n.value)}isConstant(){return!1}transformInternalExpressions(n,r){this.target=P(this.target,n,r),this.value=P(this.value,n,r)}clone(){return new t(this.target,this.value)}},Hn=class t extends ue{constructor(n){super();l(this,"xref");l(this,"kind",F.ReadVariable);l(this,"name",null);this.xref=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let n=new t(this.xref);return n.name=this.name,n}},Vd,Gd,Hd,xs=class t extends(Hd=ue,Gd=As,Vd=ia,Hd){constructor(n,r){super();l(this,"kind",F.PureFunctionExpr);l(this,Gd,!0);l(this,Vd,!0);l(this,"varOffset",null);l(this,"body");l(this,"args");l(this,"fn",null);this.body=n,this.args=r}visitExpression(n,r){var s;(s=this.body)==null||s.visitExpression(n,r);for(let i of this.args)i.visitExpression(n,r)}isEquivalent(n){return!(n instanceof t)||n.args.length!==this.args.length?!1:n.body!==null&&this.body!==null&&n.body.isEquivalent(this.body)&&n.args.every((r,s)=>r.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(n,r){this.body!==null?this.body=P(this.body,n,r|K.InChildOperation):this.fn!==null&&(this.fn=P(this.fn,n,r));for(let s=0;s<this.args.length;s++)this.args[s]=P(this.args[s],n,r)}clone(){var r,s,i,o;let n=new t((s=(r=this.body)==null?void 0:r.clone())!=null?s:null,this.args.map(a=>a.clone()));return n.fn=(o=(i=this.fn)==null?void 0:i.clone())!=null?o:null,n.varOffset=this.varOffset,n}},$r=class t extends ue{constructor(n){super();l(this,"index");l(this,"kind",F.PureFunctionParameterExpr);this.index=n}visitExpression(){}isEquivalent(n){return n instanceof t&&n.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new t(this.index)}},qd,Wd,jd,Cs=class t extends(jd=ue,Wd=As,qd=ia,jd){constructor(n,r,s,i){super();l(this,"target");l(this,"targetSlot");l(this,"name");l(this,"args");l(this,"kind",F.PipeBinding);l(this,Wd,!0);l(this,qd,!0);l(this,"varOffset",null);this.target=n,this.targetSlot=r,this.name=s,this.args=i}visitExpression(n,r){for(let s of this.args)s.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){for(let s=0;s<this.args.length;s++)this.args[s]=P(this.args[s],n,r)}clone(){let n=new t(this.target,this.targetSlot,this.name,this.args.map(r=>r.clone()));return n.varOffset=this.varOffset,n}},zd,Kd,Xd,Uo=class t extends(Xd=ue,Kd=As,zd=ia,Xd){constructor(n,r,s,i,o){super();l(this,"target");l(this,"targetSlot");l(this,"name");l(this,"args");l(this,"numArgs");l(this,"kind",F.PipeBindingVariadic);l(this,Kd,!0);l(this,zd,!0);l(this,"varOffset",null);this.target=n,this.targetSlot=r,this.name=s,this.args=i,this.numArgs=o}visitExpression(n,r){this.args.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.args=P(this.args,n,r)}clone(){let n=new t(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return n.varOffset=this.varOffset,n}},os=class t extends ue{constructor(n,r){super();l(this,"receiver");l(this,"name");l(this,"kind",F.SafePropertyRead);this.receiver=n,this.name=r}get index(){return this.name}visitExpression(n,r){this.receiver.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=P(this.receiver,n,r)}clone(){return new t(this.receiver.clone(),this.name)}},as=class t extends ue{constructor(n,r,s){super(s);l(this,"receiver");l(this,"index");l(this,"kind",F.SafeKeyedRead);this.receiver=n,this.index=r}visitExpression(n,r){this.receiver.visitExpression(n,r),this.index.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.receiver=P(this.receiver,n,r),this.index=P(this.index,n,r)}clone(){return new t(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},Vo=class t extends ue{constructor(n){super();l(this,"expr");l(this,"kind",F.SafeNavigationMigration);this.expr=n}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&this.expr.isEquivalent(n.expr)}isConstant(){return this.expr.isConstant()}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r|K.InSafeNavigationMigration)}clone(){return new t(this.expr.clone())}},gi=class t extends ue{constructor(n,r){super();l(this,"guard");l(this,"expr");l(this,"kind",F.SafeTernaryExpr);this.guard=n,this.expr=r}visitExpression(n,r){this.guard.visitExpression(n,r),this.expr.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.guard=P(this.guard,n,r),this.expr=P(this.expr,n,r)}clone(){return new t(this.guard.clone(),this.expr.clone())}},Go=class t extends ue{constructor(){super(...arguments);l(this,"kind",F.EmptyExpr)}visitExpression(n,r){}isEquivalent(n){return n instanceof t}isConstant(){return!0}clone(){return new t}transformInternalExpressions(){}},Mn=class t extends ue{constructor(n,r){super();l(this,"expr");l(this,"xref");l(this,"kind",F.AssignTemporaryExpr);l(this,"name",null);this.expr=n,this.xref=r}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(n,r){this.expr=P(this.expr,n,r)}clone(){let n=new t(this.expr.clone(),this.xref);return n.name=this.name,n}},Br=class t extends ue{constructor(n){super();l(this,"xref");l(this,"kind",F.ReadTemporaryExpr);l(this,"name",null);this.xref=n}visitExpression(n,r){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(n,r){}clone(){let n=new t(this.xref);return n.name=this.name,n}},sl=class t extends ue{constructor(n){super();l(this,"slot");l(this,"kind",F.SlotLiteralExpr);this.slot=n}visitExpression(n,r){}isEquivalent(n){return n instanceof t&&n.slot===this.slot}isConstant(){return!0}clone(){return new t(this.slot)}transformInternalExpressions(){}},il=class t extends ue{constructor(n,r,s,i=null){super();l(this,"expr");l(this,"target");l(this,"targetSlot");l(this,"alias");l(this,"kind",F.ConditionalCase);this.expr=n,this.target=r,this.targetSlot=s,this.alias=i}visitExpression(n,r){this.expr!==null&&this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t&&n.expr===this.expr}isConstant(){return!0}clone(){return new t(this.expr,this.target,this.targetSlot)}transformInternalExpressions(n,r){this.expr!==null&&(this.expr=P(this.expr,n,r))}},Ho=class t extends ue{constructor(n){super();l(this,"expr");l(this,"kind",F.ConstCollected);this.expr=n}transformInternalExpressions(n,r){this.expr=n(this.expr,r)}visitExpression(n,r){this.expr.visitExpression(n,r)}isEquivalent(n){return n instanceof t?this.expr.isEquivalent(n.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr)}},Yd,Qd,Jd,Du=class t extends(Jd=ue,Qd=As,Yd=ia,Jd){constructor(n,r){super();l(this,"parameters");l(this,"body");l(this,"kind",F.ArrowFunction);l(this,Qd,!0);l(this,Yd,!0);l(this,"contextName",qt);l(this,"currentViewName","view");l(this,"varOffset",null);l(this,"ops");this.parameters=n,this.body=r,this.ops=new T,this.ops.push([Wt(new _e(r,r.sourceSpan))])}visitExpression(n,r){for(let s of this.ops)$e(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)xe(s,n,r|(K.InChildOperation|K.InArrowFunctionOperation))}clone(){let n=new t(this.parameters,this.body);return n.varOffset=this.varOffset,n.ops=this.ops,n}};function $e(t,e){xe(t,(n,r)=>(e(n,r),n),K.None)}var K;(function(t){t[t.None=0]="None",t[t.InChildOperation=1]="InChildOperation",t[t.InArrowFunctionOperation=2]="InArrowFunctionOperation",t[t.InSafeNavigationMigration=4]="InSafeNavigationMigration"})(K||(K={}));function Cc(t,e,n){for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n)}function xe(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 De?Cc(t.expression,e,n):t.expression=P(t.expression,e,n);break;case f.Property:case f.DomProperty:case f.Attribute:t.expression instanceof De?Cc(t.expression,e,n):t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case f.TwoWayProperty:t.expression=P(t.expression,e,n),t.sanitizer=t.sanitizer&&P(t.sanitizer,e,n);break;case f.I18nExpression:t.expression=P(t.expression,e,n);break;case f.InterpolateText:Cc(t.interpolation,e,n);break;case f.Statement:ol(t.statement,e,n);break;case f.Variable:t.initializer=P(t.initializer,e,n);break;case f.Conditional:for(let r of t.conditions)r.expr!==null&&(r.expr=P(r.expr,e,n));t.processed!==null&&(t.processed=P(t.processed,e,n)),t.contextValue!==null&&(t.contextValue=P(t.contextValue,e,n));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:for(let r of t.handlerOps)xe(r,e,n|K.InChildOperation);break;case f.ExtractedAttribute:t.expression=t.expression&&P(t.expression,e,n),t.trustedValueFn=t.trustedValueFn&&P(t.trustedValueFn,e,n);break;case f.RepeaterCreate:if(t.trackByOps===null)t.track=P(t.track,e,n);else for(let r of t.trackByOps)xe(r,e,n|K.InChildOperation);t.trackByFn!==null&&(t.trackByFn=P(t.trackByFn,e,n));break;case f.Repeater:t.collection=P(t.collection,e,n);break;case f.Defer:t.loadingConfig!==null&&(t.loadingConfig=P(t.loadingConfig,e,n)),t.placeholderConfig!==null&&(t.placeholderConfig=P(t.placeholderConfig,e,n)),t.resolverFn!==null&&(t.resolverFn=P(t.resolverFn,e,n));break;case f.I18nMessage:for(let[r,s]of t.params)t.params.set(r,P(s,e,n));for(let[r,s]of t.postprocessingParams)t.postprocessingParams.set(r,P(s,e,n));break;case f.DeferWhen:t.expr=P(t.expr,e,n);break;case f.StoreLet:t.value=P(t.value,e,n);break;case f.Advance:case f.Container:case f.ContainerEnd:case f.ContainerStart:case f.DeferOn:case f.DisableBindings:case f.Element:case f.ElementEnd:case f.ElementStart:case f.EnableBindings:case f.I18n:case f.I18nApply:case f.I18nContext:case f.I18nEnd:case f.I18nStart:case f.IcuEnd:case f.IcuStart:case f.Namespace:case f.Pipe:case f.Projection:case f.ProjectionDef:case f.EnableIncrementalHydrationRuntime: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 P(t,e,n){if(t instanceof ue)t.transformInternalExpressions(e,n);else if(t instanceof se)t.lhs=P(t.lhs,e,n),t.rhs=P(t.rhs,e,n);else if(t instanceof qn)t.expr=P(t.expr,e,n);else if(t instanceof ot)t.receiver=P(t.receiver,e,n);else if(t instanceof rn)t.receiver=P(t.receiver,e,n),t.index=P(t.index,e,n);else if(t instanceof Ae){t.fn=P(t.fn,e,n);for(let r=0;r<t.args.length;r++)t.args[r]=P(t.args[r],e,n)}else if(t instanceof Mt)for(let r=0;r<t.entries.length;r++)t.entries[r]=P(t.entries[r],e,n);else if(t instanceof sn)for(let r of t.entries)r instanceof yn?r.expression=P(r.expression,e,n):r.value=P(r.value,e,n);else if(t instanceof mn)t.condition=P(t.condition,e,n),t.trueCase=P(t.trueCase,e,n),t.falseCase!==null&&(t.falseCase=P(t.falseCase,e,n));else if(t instanceof xr)t.expr=P(t.expr,e,n);else if(t instanceof io)t.expr=P(t.expr,e,n);else if(t instanceof ao)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(t instanceof ei)t.condition=P(t.condition,e,n);else if(t instanceof Qs)t.tag=P(t.tag,e,n),t.template.expressions=t.template.expressions.map(r=>P(r,e,n));else if(t instanceof gn)if(Array.isArray(t.body))for(let r=0;r<t.body.length;r++)ol(t.body[r],e,n|K.InChildOperation);else t.body=P(t.body,e,n|K.InChildOperation);else if(!(t instanceof W)){if(t instanceof Zs)for(let r=0;r<t.expressions.length;r++)t.expressions[r]=P(t.expressions[r],e,n);else if(t instanceof nn)t.expr=P(t.expr,e,n);else if(t instanceof Nr)t.expression=P(t.expression,e,n);else if(!(t instanceof tn||t instanceof et||t instanceof ke||t instanceof ps))throw new Error(`Unhandled expression kind: ${t.constructor.name}`)}return e(t,n)}function ol(t,e,n){if(t instanceof tt)t.expr=P(t.expr,e,n);else if(t instanceof _e)t.value=P(t.value,e,n);else if(t instanceof Xe)t.value!==void 0&&(t.value=P(t.value,e,n));else if(t instanceof po){t.condition=P(t.condition,e,n);for(let r of t.trueCase)ol(r,e,n);for(let r of t.falseCase)ol(r,e,n)}else throw new Error(`Unhandled statement kind: ${t.constructor.name}`)}function Um(t){return t instanceof ke&&typeof t.value=="string"}var at=class{constructor(){l(this,"slot",null)}},TT=new Set([f.Element,f.ElementStart,f.Container,f.ContainerStart,f.Template,f.RepeaterCreate,f.ConditionalCreate,f.ConditionalBranchCreate]);function Ur(t){return TT.has(t.kind)}function xT(t,e,n,r,s,i){return x(x({kind:f.ElementStart,xref:e,tag:t,handle:new at,attributes:null,localRefs:[],nonBindable:!1,namespace:n,i18nPlaceholder:r,startSourceSpan:s,wholeSourceSpan:i},an),j)}function Vm(t,e,n,r,s,i,o,a){return x(x({kind:f.Template,xref:t,templateKind:e,attributes:null,tag:n,handle:new at,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},an),j)}function Gm(t,e,n,r,s,i,o,a){return x(x({kind:f.ConditionalCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new at,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},an),j)}function Hm(t,e,n,r,s,i,o,a){return x(x({kind:f.ConditionalBranchCreate,xref:t,templateKind:e,attributes:null,tag:n,handle:new at,functionNameSuffix:r,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:s,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},an),j)}function CT(t,e,n,r,s,i,o,a,c,u){return he(x(x(x({kind:f.RepeaterCreate,attributes:null,xref:t,handle:new at,emptyView:e,track:r,trackByFn:null,trackByOps:null,tag:n,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Fe.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:s,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:c,wholeSourceSpan:u},an),j),$t),{numSlotsUsed:e===null?2:3})}function NT(t,e){return x({kind:f.ElementEnd,xref:t,sourceSpan:e},j)}function IT(t){return x({kind:f.DisableBindings,xref:t},j)}function AT(t){return x({kind:f.EnableBindings,xref:t},j)}function qm(t,e,n,r){return x(x({kind:f.Text,xref:t,handle:new at,initialValue:e,icuPlaceholder:n,sourceSpan:r},an),j)}function DT(t,e,n,r,s,i){return x({kind:f.AnimationString,name:t,target:e,animationKind:n,expression:r,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},j)}function bT(t,e,n,r,s,i){let o=new T;return o.push(r),x({kind:f.Animation,name:t,target:e,animationKind:n,handlerOps:o,handlerFnName:null,i18nMessage:null,securityContext:s,sanitizer:null,sourceSpan:i},j)}function _p(t,e,n,r,s,i,o,a,c){let u=new T;return u.push(s),x({kind:f.Listener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,isLegacyAnimationListener:i!==null,legacyAnimationPhase:i,eventTarget:o,sourceSpan:c},j)}function Wm(t,e,n,r,s,i,o,a,c){let u=new T;return u.push(s),x({kind:f.AnimationListener,target:t,targetSlot:e,tag:r,hostListener:a,name:n,animationKind:i,handlerOps:u,handlerFnName:null,consumesDollarEvent:!1,eventTarget:o,sourceSpan:c},j)}function jm(t,e,n,r,s,i){let o=new T;return o.push(s),x({kind:f.TwoWayListener,target:t,targetSlot:e,tag:r,name:n,handlerOps:o,handlerFnName:null,sourceSpan:i},j)}function _T(t,e,n){return x(x({kind:f.Pipe,xref:t,handle:e,name:n},j),an)}function kT(t){return x({kind:f.Namespace,active:t},j)}function RT(t){return x({kind:f.ProjectionDef,def:t},j)}function PT(t){return x({kind:f.EnableIncrementalHydrationRuntime,sourceSpan:t},j)}function LT(t,e,n,r,s){return he(x(x({kind:f.Projection,xref:t,handle:new at,selector:e,i18nPlaceholder:n,fallbackView:r,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:s},j),an),{numSlotsUsed:r===null?1:2})}function Zt(t,e,n,r,s,i,o,a){return x({kind:f.ExtractedAttribute,target:t,bindingKind:e,namespace:n,name:r,expression:s,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null},j)}function MT(t,e,n,r,s,i){return he(x(x({kind:f.Defer,xref:t,handle:new at,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),an),{numSlotsUsed:2})}function cr(t,e,n,r){return x({kind:f.DeferOn,defer:t,trigger:e,modifier:n,sourceSpan:r},j)}function OT(t,e,n){return x(x({kind:f.DeclareLet,xref:t,declaredName:e,sourceSpan:n,handle:new at},an),j)}function FT(t,e,n,r,s,i,o,a){return x({kind:f.I18nMessage,xref:t,i18nContext:e,i18nBlock:n,message:r,messagePlaceholder:s,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[]},j)}function Pl(t,e,n,r){return x(x({kind:f.I18nStart,xref:t,handle:new at,root:n!=null?n:t,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:r},j),an)}function Ll(t,e){return x({kind:f.I18nEnd,xref:t,sourceSpan:e},j)}function $T(t,e,n,r){return x({kind:f.IcuStart,xref:t,message:e,messagePlaceholder:n,context:null,sourceSpan:r},j)}function BT(t){return x({kind:f.IcuEnd,xref:t},j)}function UT(t,e,n){return x({kind:f.IcuPlaceholder,xref:t,name:e,strings:n,expressionPlaceholders:[]},j)}function Nc(t,e,n,r,s){if(n===null&&t!==gr.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:r,sourceSpan:s,params:new Map,postprocessingParams:new Map},j)}function zm(t,e,n){return x(x({kind:f.I18nAttributes,xref:t,handle:e,target:n,i18nAttributesConfig:null},j),an)}function VT(t,e){return x({kind:f.SourceLocation,templatePath:t,locations:e},j)}function GT(t){return x({kind:f.ControlCreate,sourceSpan:t},j)}function HT(t,e,n,r,s,i){return x(x({kind:f.DomProperty,name:t,expression:e,bindingKind:n,i18nContext:r,securityContext:s,sanitizer:null,sourceSpan:i},$t),j)}var Km="CTX_REF_MARKER",b;(function(t){t[t.Tmpl=0]="Tmpl",t[t.Host=1]="Host",t[t.Both=2]="Both"})(b||(b={}));var St;(function(t){t[t.Full=0]="Full",t[t.DomOnly=1]="DomOnly"})(St||(St={}));var al=class{constructor(e,n,r,s){l(this,"componentName");l(this,"pool");l(this,"mode");l(this,"legacyOptionalChaining");l(this,"kind",b.Both);l(this,"nextXrefId",0);this.componentName=e,this.pool=n,this.mode=r,this.legacyOptionalChaining=s}allocateXrefId(){return this.nextXrefId++}},qo=class extends al{constructor(n,r,s,i,o,a,c,u,h,d){super(n,r,s,d);l(this,"relativeContextFilePath");l(this,"i18nUseExternalIds");l(this,"deferMeta");l(this,"allDeferrableDepsFn");l(this,"relativeTemplatePath");l(this,"enableDebugLocations");l(this,"kind",b.Tmpl);l(this,"fnSuffix","Template");l(this,"root");l(this,"views",new Map);l(this,"contentSelectors",null);l(this,"consts",[]);l(this,"constsInitializers",[]);this.relativeContextFilePath=i,this.i18nUseExternalIds=o,this.deferMeta=a,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 r=new en(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}},ll=class{constructor(e){l(this,"xref");l(this,"create",new T);l(this,"update",new T);l(this,"functions",new Set);l(this,"fnName",null);l(this,"vars",null);this.xref=e}*ops(){for(let e of this.functions)for(let n of e.ops)yield n;for(let e of this.create)if(yield e,e.kind===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 ll{constructor(n,r,s){super(r);l(this,"job");l(this,"parent");l(this,"contextVariables",new Map);l(this,"aliases",new Set);l(this,"decls",null);this.job=n,this.parent=s}},cl=class extends al{constructor(n,r,s,i){super(n,r,s,i);l(this,"kind",b.Host);l(this,"fnSuffix","HostBindings");l(this,"root");this.root=new bu(this)}get units(){return[this.root]}},bu=class extends ll{constructor(n){super(0);l(this,"job");l(this,"attributes",null);this.job=n}};function qT(t){for(let e of t.units)for(let n of e.ops())xe(n,WT,K.None)}function WT(t){if(t instanceof Ae&&t.fn instanceof Ye&&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 jT(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&&zT(e,r)&&T.insertAfter(ST(r.i18nOwner,r.handle,null),r)}function zT(t,e){var s;if(((s=e.next)==null?void 0:s.kind)!==f.I18nExpression)return!0;let n=t.get(e.context),r=t.get(e.next.context);if(n===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the I18nExpressionOp's context");if(r===void 0)throw new Error("AssertionError: expected an I18nContextOp to exist for the next I18nExpressionOp's context");return n.i18nBlock!==null?n.i18nBlock!==r.i18nBlock:e.i18nOwner!==e.next.i18nOwner}function KT(t){for(let e of t.units){let n=e.update.head,r=[],s=null;for(let i of e.create){if(i.kind===f.I18nStart)s={blockXref:i.xref,lastSlotConsumer:i.xref};else if(i.kind===f.I18nEnd){for(let o of r)o.target=s.lastSlotConsumer,T.insertBefore(o,n);r.length=0,s=null}if(xi(i))for(s!==null&&(s.lastSlotConsumer=i.xref);n.next!==null;){if(s!==null&&n.kind===f.I18nExpression&&n.usage===ws.I18nText&&n.i18nOwner===s.blockXref){let a=n;n=n.next,T.remove(a),r.push(a);continue}let o=!1;if(Oo(n)&&n.target!==i.xref?o=!0:(n.kind===f.Statement||n.kind===f.Variable)&&$e(n,a=>{!o&&Oo(a)&&a.target!==i.xref&&(o=!0)}),o)break;n=n.next}}}}function XT(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(VT(t.relativeTemplatePath,n))}}function Xm(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 YT(t){for(let e of t.units){let n=Xm(e);for(let r of e.ops())switch(r.kind){case f.Attribute:QT(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,T.insertBefore(Zt(r.target,s,null,r.name,null,null,null,r.securityContext),Os(n,r.target))}break;case f.TwoWayProperty:T.insertBefore(Zt(r.target,M.TwoWayProperty,null,r.name,null,null,null,r.securityContext),Os(n,r.target));break;case f.StyleProp:case f.ClassProp:r.expression instanceof Go&&T.insertBefore(Zt(r.target,M.Property,null,r.name,null,null,null,re.STYLE),Os(n,r.target));break;case f.Listener:if(!r.isLegacyAnimationListener){let s=Zt(r.target,M.Property,null,r.name,null,null,null,re.NONE);if(t.kind===b.Host)break;T.insertBefore(s,Os(n,r.target))}break;case f.TwoWayListener:if(t.kind!==b.Host){let s=Zt(r.target,M.Property,null,r.name,null,null,null,re.NONE);T.insertBefore(s,Os(n,r.target))}break}}}function Os(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 QT(t,e,n){if(!(e.expression instanceof De)&&e.isTextAttribute){let r=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===b.Host)t.create.push(r);else{let s=Os(n,e.target);T.insertBefore(r,s)}T.remove(e)}}var Tf="aria-";function Ym(t){return t.startsWith(Tf)&&t.length>Tf.length}function JT(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 ZT(t){let e=new Map;for(let n of t.units)for(let r of n.create)Ur(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"){T.remove(r);let s=JT(e,r.target);s.nonBindable=!0}else if(r.name.startsWith("animate."))T.replace(r,wf(r.name,r.target,r.name==="animate.enter"?"enter":"leave",r.expression,r.securityContext,r.sourceSpan,0));else{let[s,i]=it(r.name);T.replace(r,Ef(r.target,s,i,r.expression,r.securityContext,r.isTextAttribute,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan))}break;case M.Animation:T.replace(r,wf(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===St.DomOnly&&Ym(r.name)?T.replace(r,Ef(r.target,null,r.name,r.expression,r.securityContext,!1,r.isStructuralTemplateAttribute,r.templateKind,r.i18nMessage,r.sourceSpan)):t.kind===b.Host?T.replace(r,HT(r.name,r.expression,r.bindingKind,r.i18nContext,r.securityContext,r.sourceSpan)):T.replace(r,uT(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 oe))throw new Error(`Expected value of two-way property binding "${r.name}" to be an expression`);T.replace(r,pT(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 xf=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]]),ex=256;function tx(t){for(let e of t.units)Cf(e.create),Cf(e.update)}function Cf(t){let e=null;for(let n of t){if(n.kind!==f.Statement||!(n.statement instanceof tt)){e=null;continue}if(!(n.statement.expr instanceof Ae)||!(n.statement.expr.fn instanceof et)){e=null;continue}let r=n.statement.expr.fn.value;if(!xf.has(r)){e=null;continue}if(e!==null&&xf.get(e.instruction)===r&&e.length<ex){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++,T.remove(n)}else e={op:n,instruction:r,expression:n.statement.expr,length:1}}}function nx(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 De&&n.expression.strings.length===2&&n.expression.strings.every(s=>s==="")&&(n.expression=n.expression.expressions[0])}function rx(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(a=>a.expr===null);if(s>=0){let a=n.conditions.splice(s,1)[0].targetSlot;r=new sl(a)}else r=S(-1);let i=n.test==null?null:new Mn(n.test,t.allocateXrefId()),o=null;for(let a=n.conditions.length-1;a>=0;a--){let c=n.conditions[a];if(c.expr!==null){if(i!==null){let u=a===0?i:new Br(i.xref);c.expr=new se(w.Identical,u,c.expr)}else c.alias!==null&&(o!=null||(o=t.allocateXrefId()),c.expr=new Mn(c.expr,o),n.contextValue=new Br(o));r=new mn(c.expr,new sl(c.targetSlot),r)}}n.processed=r,n.conditions=[]}}var sx=new Map([["&&",w.And],[">",w.Bigger],[">=",w.BiggerEquals],["|",w.BitwiseOr],["&",w.BitwiseAnd],["/",w.Divide],["=",w.Assign],["==",w.Equals],["===",w.Identical],["<",w.Lower],["<=",w.LowerEquals],["-",w.Minus],["%",w.Modulo],["**",w.Exponentiation],["*",w.Multiply],["!=",w.NotEquals],["!==",w.NotIdentical],["??",w.NullishCoalesce],["||",w.Or],["+",w.Plus],["in",w.In],["instanceof",w.InstanceOf],["+=",w.AdditionAssignment],["-=",w.SubtractionAssignment],["*=",w.MultiplicationAssignment],["/=",w.DivisionAssignment],["%=",w.RemainderAssignment],["**=",w.ExponentiationAssignment],["&&=",w.AndAssignment],["||=",w.OrAssignment],["??=",w.NullishCoalesceAssignment]]);function Qm(t){var n;let e=new Map([["svg",Fe.SVG],["math",Fe.Math]]);return t===null?Fe.HTML:(n=e.get(t))!=null?n:Fe.HTML}function ix(t){let e=new Map([["svg",Fe.SVG],["math",Fe.Math]]);for(let[n,r]of e.entries())if(r===t)return n;return null}function ox(t,e){return e===Fe.HTML?t:`:${ix(e)}:${t}`}function yi(t){return Array.isArray(t)?ce(t.map(yi)):S(t)}function ax(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 _u;e.set(r.target,s),s.add(r.bindingKind,r.name,r.expression,r.namespace,r.trustedValueFn),T.remove(r)}if(t instanceof qo)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=ku(s);i.entries.length>0&&(r.attributes=t.pool.getConstLiteral(i,!0))}}else Ur(r)&&(r.attributes=Nf(t,e,r.xref),r.kind===f.RepeaterCreate&&r.emptyView!==null&&(r.emptyAttributes=Nf(t,e,r.emptyView)));else if(t instanceof cl)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=ku(r);s.entries.length>0&&(t.root.attributes=s)}}function Nf(t,e,n){let r=e.get(n);if(r!==void 0){let s=ku(r);if(s.entries.length>0)return t.addConst(s)}return null}var _s=Object.freeze([]),_u=class{constructor(){l(this,"known",new Map);l(this,"byKind",new Map);l(this,"propertyBindings",null);l(this,"projectAs",null)}get attributes(){var e;return(e=this.byKind.get(M.Attribute))!=null?e:_s}get classes(){var e;return(e=this.byKind.get(M.ClassName))!=null?e:_s}get styles(){var e;return(e=this.byKind.get(M.StyleProperty))!=null?e:_s}get bindings(){var e;return(e=this.propertyBindings)!=null?e:_s}get template(){var e;return(e=this.byKind.get(M.Template))!=null?e:_s}get i18n(){var e;return(e=this.byKind.get(M.I18n))!=null?e:_s}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 ke)||r.value==null||typeof((c=r.value)==null?void 0:c.toString())!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=r.value.toString()}let a=this.arrayFor(e);if(a.push(...lx(s,n)),e===M.Attribute||e===M.StyleProperty){if(r===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");i!==null&&Um(r)?a.push(lm(i,new Zs([new oo(r.value)],[]),void 0,r.sourceSpan)):a.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 lx(t,e){let n=S(e);return t?[S(0),S(t),n]:[n]}function ku({attributes:t,bindings:e,classes:n,i18n:r,projectAs:s,styles:i,template:o}){let a=[...t];if(s!==null){let c=vp(s)[0];a.push(S(5),yi(c))}return n.length>0&&a.push(S(1),...n),i.length>0&&a.push(S(2),...i),e.length>0&&a.push(S(3),...e),o.length>0&&a.push(S(4),...o),r.length>0&&a.push(S(6),...r),ce(a)}var cx=new Map([["formField",new Set([f.Property])],["formControl",new Set([f.Property])],["formControlName",new Set([f.Property,f.Attribute])],["ngModel",new Set([f.Attribute,f.Property,f.TwoWayProperty])]]);function ux(t){for(let e of t.units)px(e)}function px(t){for(let e of t.update){if(e.kind!==f.Property&&e.kind!==f.TwoWayProperty&&e.kind!==f.Attribute)continue;let n=cx.get(e.name);n!==void 0&&n.has(e.kind)&&mx(t,e)}}var hx=new Set([f.Container,f.ContainerStart,f.ContainerEnd,f.Element,f.ElementStart,f.ElementEnd,f.Template]);function fx(t){return hx.has(t.kind)}function dx(t,e){let n=null;for(let r of t.create)!fx(r)||r.xref!==e||(n=r);return n}function mx(t,e){let n=dx(t,e.target);if(n===null)return;let r=GT(e.sourceSpan);T.insertAfter(r,n),T.insertAfter(wT(e.target,e.sourceSpan),e)}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 yx(t){let e=new Map;for(let n of t.units)for(let r of n.create)Ur(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=vx(r);t.kind===b.Host?n.create.push(s):T.insertAfter(s,gx(e,r.target)),T.remove(r)}}function vx(t){if(t.animationBindingKind===0)return DT(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan);{let e=t.expression;return bT(t.name,t.target,t.name==="animate.enter"?"enter":"leave",[Wt(new _e(e,e.sourceSpan))],t.securityContext,t.sourceSpan)}}function Sx(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 De))continue;let s=e.get(r.target);if(s===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(s.target!==r.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;o<r.expression.expressions.length;o++){let a=r.expression.expressions[o];if(r.expression.i18nPlaceholders.length!==r.expression.expressions.length)throw new Error(`AssertionError: An i18n attribute binding instruction requires the same number of expressions and placeholders, but found ${r.expression.i18nPlaceholders.length} placeholders and ${r.expression.expressions.length} expressions`);i.push(Bm(r.i18nContext,s.target,s.xref,s.handle,a,null,r.expression.i18nPlaceholders[o],mi.Creation,ws.I18nAttribute,r.name,r.sourceSpan))}T.replaceWithMany(r,i);break}}}function Ex(t){let e=new Map;for(let s of t.units)for(let i of s.ops())switch(i.kind){case f.Binding:case f.Property:case f.Attribute:case f.ExtractedAttribute:if(i.i18nMessage===null)continue;if(!e.has(i.i18nMessage)){let o=Nc(gr.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=Nc(gr.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=Nc(gr.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=gr.Icu;break}}function wx(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")&&T.remove(r),s.add(r.name),e.set(r.target,s)}}function Tx(t){for(let e of t.units)for(let n of e.create)n.kind===f.Defer&&(n.placeholderMinimumTime!==null&&(n.placeholderConfig=new Ho(yi([n.placeholderMinimumTime]))),(n.loadingMinimumTime!==null||n.loadingAfterTime!==null)&&(n.loadingConfig=new Ho(yi([n.loadingMinimumTime,n.loadingAfterTime]))))}function xx(t){for(let e of t.units)for(let n of e.create)if(n.kind===f.Defer&&n.flags!==null&&(n.flags&1)!==0){T.insertBefore(PT(n.sourceSpan),n);break}}function Cx(t){let e=new Map;function n(s){if(e.has(s.xref))return e.get(s.xref);let i=new Nx;for(let o of s.create)if(!(!Ur(o)||o.localRefs===null)){if(!Array.isArray(o.localRefs))throw new Error("LocalRefs were already processed, but were needed to resolve defer targets.");for(let a of o.localRefs)a.target===""&&i.targets.set(a.name,{xref:o.xref,slot:o.handle})}return e.set(s.xref,i),i}function r(s,i,o){switch(i.trigger.kind){case le.Idle:case le.Never:case le.Immediate:case le.Timer:return;case le.Hover:case le.Interaction:case le.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)&&(Ur(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 a=o!==null?t.views.get(o):s,c=o!==null?-1:0;for(;a!==null;){let u=n(a);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=a.xref,i.trigger.targetSlotViewSteps=c,i.trigger.targetSlot=d;return}a=a.parent!==null?t.views.get(a.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 a=i.get(o.defer);r(s,o,o.modifier==="hydrate"?a.mainView:a.placeholderView);break}}}var Nx=class{constructor(){l(this,"targets",new Map)}},Ix=new Map([[f.ElementEnd,[f.ElementStart,f.Element]],[f.ContainerEnd,[f.ContainerStart,f.Container]],[f.I18nEnd,[f.I18nStart,f.I18n]]]),Ax=new Set([f.Pipe]);function Dx(t){for(let e of t.units)for(let n of e.create){let r=Ix.get(n.kind);if(r===void 0)continue;let[s,i]=r,o=n.prev;for(;o!==null&&Ax.has(o.kind);)o=o.prev;o!==null&&o.kind===s&&(o.kind=i,T.remove(n))}}function bx(t){for(let e of t.units)for(let n of e.ops())xe(n,(r,s)=>Mx(r,{job:t},s),K.None),xe(n,Ox,K.None)}function _t(t){return t instanceof qn?_t(t.expr):t instanceof se?_t(t.lhs)||_t(t.rhs):t instanceof mn?t.falseCase&&_t(t.falseCase)?!0:_t(t.condition)||_t(t.trueCase):t instanceof ei?_t(t.condition):t instanceof Mn?_t(t.expr):t instanceof ot?_t(t.receiver):t instanceof rn?_t(t.receiver)||_t(t.index):t instanceof nn||t instanceof Vo?_t(t.expr):t instanceof Ae||t instanceof Mt||t instanceof sn||t instanceof Cs}function _x(t){let e=new Set;return P(t,n=>(n instanceof Mn&&e.add(n.xref),n),K.None),e}function kx(t,e,n){return P(t,r=>{if(r instanceof Mn&&e.has(r.xref)){let s=new Br(r.xref);return new Mn(s,s.xref)}return r},K.None),t}function ks(t,e,n){let r;if(_t(t)){let s=n.job.allocateXrefId();r=[new Mn(t,s),new Br(s)]}else r=[t,t.clone()],kx(r[1],_x(r[0]));return new gi(r[0],e(r[1]))}function Rx(t){return t instanceof os||t instanceof as||t instanceof Ae&&t.isOptional}function Px(t){return t instanceof ot||t instanceof rn||t instanceof Ae&&!t.isOptional}function Jm(t){return Rx(t)||Px(t)}function Lx(t){if(Jm(t)&&t.receiver instanceof gi){let e=t.receiver;for(;e.expr instanceof gi;)e=e.expr;return e}return null}function Mx(t,e,n){if(t instanceof Vo)return t.expr;if(!(e.job.legacyOptionalChaining||(n&K.InSafeNavigationMigration)!==0))return t instanceof os?new ot(t.receiver,t.name,null,t.sourceSpan,[],!0):t instanceof as?new rn(t.receiver,t.index,null,t.sourceSpan,[],!0):t;if(!Jm(t))return t;let s=Lx(t);if(s){if(t instanceof Ae&&!t.isOptional)return s.expr=s.expr.callFn(t.args),t.receiver;if(t instanceof ot)return s.expr=s.expr.prop(t.name),t.receiver;if(t instanceof rn)return s.expr=s.expr.key(t.index),t.receiver;if(t instanceof Ae&&t.isOptional)return s.expr=ks(s.expr,i=>i.callFn(t.args),e),t.receiver;if(t instanceof os)return s.expr=ks(s.expr,i=>i.prop(t.name),e),t.receiver;if(t instanceof as)return s.expr=ks(s.expr,i=>i.key(t.index),e),t.receiver}else{if(t instanceof Ae&&t.isOptional)return ks(t.receiver,i=>i.callFn(t.args),e);if(t instanceof os)return ks(t.receiver,i=>i.prop(t.name),e);if(t instanceof as)return ks(t.receiver,i=>i.key(t.index),e)}return t}function Ox(t){return t instanceof gi?new nn(new mn(new se(w.Equals,t.guard,hs),hs,t.expr)):t}var If="\uFFFD",Fx="#",$x="*",Bx="/",Ux=":",Vx="[",Gx="]",Hx="|";function qx(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 a=Wx(t,o);i.create.push(a),e.set(o.xref,a),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,T.remove(o);let a=r.get(o.context);if(a.contextKind!==gr.Icu)continue;let c=n.get(a.i18nBlock);if(c.context===a.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(a.xref);d.messagePlaceholder=o.messagePlaceholder,h.subMessages.push(d.xref);break;case f.IcuEnd:s=null,T.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(jx(o))),T.remove(o);break}}function Wx(t,e,n){let r=Af(e.params),s=Af(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return FT(t.allocateXrefId(),e.xref,e.i18nBlock,e.message,null,r,s,i)}function jx(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(Vs);return t.strings.flatMap((n,r)=>[n,e[r]||""]).join("")}function Af(t){let e=new Map;for(let[n,r]of t){let s=zx(r);s!==null&&e.set(n,S(s))}return e}function zx(t){if(t.length===0)return null;let e=t.map(n=>Vs(n));return e.length===1?e[0]:`${Vx}${e.join(Hx)}${Gx}`}function Vs(t){if(t.flags&pe.ElementTag&&t.flags&pe.TemplateTag){if(typeof t.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let s=Vs(he(x({},t),{value:t.value.element,flags:t.flags&~pe.TemplateTag})),i=Vs(he(x({},t),{value:t.value.template,flags:t.flags&~pe.ElementTag}));return t.flags&pe.OpenTag&&t.flags&pe.CloseTag?`${i}${s}${i}`:t.flags&pe.CloseTag?`${s}${i}`:`${i}${s}`}if(t.flags&pe.OpenTag&&t.flags&pe.CloseTag)return`${Vs(he(x({},t),{flags:t.flags&~pe.CloseTag}))}${Vs(he(x({},t),{flags:t.flags&~pe.OpenTag}))}`;if(t.flags===pe.None)return`${t.value}`;let e="",n="";t.flags&pe.ElementTag?e=Fx:t.flags&pe.TemplateTag&&(e=$x),e!==""&&(n=t.flags&pe.CloseTag?Bx:"");let r=t.subTemplateIndex===null?"":`${Ux}${t.subTemplateIndex}`;return`${If}${n}${e}${t.value}${r}${If}`}function Kx(t){for(let e of t.units){let n=new Map;for(let s of e.create){if(xi(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(Oo(s)?i=s:$e(s,a=>{i===null&&Oo(a)&&(i=a)}),i===null)continue;if(!n.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let o=n.get(i.target);if(r!==o){let a=o-r;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");T.insertBefore(gT(a,i.sourceSpan),s),r=o}}}}function Xx(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&&Df(e,n);for(let n of e.update)Df(e,n)}}function Df(t,e){xe(e,(n,r)=>{if(!(n instanceof gn)||r&K.InChildOperation)return n;if(Array.isArray(n.body))throw new Error("AssertionError: unexpected multi-line arrow function");let s=new Du(n.params,n.body);return t.functions.add(s),s},K.None)}function Yx(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.StoreLet)continue;let r={kind:Qe.Identifier,name:null,identifier:n.declaredName,local:!0};T.replace(n,fr(t.allocateXrefId(),r,new Fo(n.target,n.value,n.sourceSpan),Gt.None))}}function Qx(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:vp(o));s=t.pool.getConstLiteral(yi(i),!0)}t.contentSelectors=t.pool.getConstLiteral(yi(n),!0),t.root.create.prepend([RT(s)])}}function Jx(t){Wi(t.root,null)}function Wi(t,e){let n=bf(t,e);for(let r of t.create)switch(r.kind){case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:Wi(t.job.views.get(r.xref),n);break;case f.Projection:r.fallbackView!==null&&Wi(t.job.views.get(r.fallbackView),n);break;case f.RepeaterCreate:Wi(t.job.views.get(r.xref),n),r.emptyView&&Wi(t.job.views.get(r.emptyView),n),r.trackByOps!==null&&r.trackByOps.prepend(ji(t,n,!1));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:r.handlerOps.prepend(ji(t,n,!0));break}t.update.prepend(ji(t,n,!1));for(let r of t.functions)r.ops.prepend(ji(t,bf(t,e),!0))}function bf(t,e){let n={view:t.xref,viewContextVariable:{kind:Qe.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:Qe.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:Qe.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:Qe.Identifier,name:null,identifier:r.declaredName,local:!1}});break}return n}function ji(t,e,n){let r=[];e.view!==t.xref&&r.push(fr(t.job.allocateXrefId(),e.viewContextVariable,new tl,Gt.None));let s=t.job.views.get(e.view);for(let[i,o]of s.contextVariables){let a=new Fr(e.view),c=o===Km?a:new ot(a,o);r.push(fr(t.job.allocateXrefId(),e.contextVariables.get(i),c,Gt.None))}for(let i of s.aliases)r.push(fr(t.job.allocateXrefId(),i,i.expression.clone(),Gt.AlwaysInline));for(let i of e.references)r.push(fr(t.job.allocateXrefId(),i.variable,new el(i.targetId,i.targetSlot,i.offset),Gt.None));if(e.view!==t.xref||n)for(let i of e.letDeclarations)r.push(fr(t.job.allocateXrefId(),i.variable,new $o(i.targetId,i.targetSlot),Gt.None));return e.parent!==null&&r.push(...ji(t,e.parent,!1)),r}function Zx(t){for(let e of t.units)for(let n of e.ops())xe(n,r=>r instanceof Ho?S(t.addConst(r.expr)):r,K.None)}var _f="style.",kf="class.",eC="style!",Rf="class!",Pf="!important";function tC(t){for(let e of t.root.update)if(e.kind===f.Binding&&e.bindingKind===M.Property)if(e.name.endsWith(Pf)&&(e.name=e.name.substring(0,e.name.length-Pf.length)),e.name.startsWith(_f)){e.bindingKind=M.StyleProperty,e.name=e.name.substring(_f.length),nC(e.name)||(e.name=rC(e.name));let{property:n,suffix:r}=Ic(e.name);e.name=n,e.unit=r}else e.name.startsWith(eC)?(e.bindingKind=M.StyleProperty,e.name="style"):e.name.startsWith(kf)?(e.bindingKind=M.ClassName,e.name=Ic(e.name.substring(kf.length)).property):e.name.startsWith(Rf)&&(e.bindingKind=M.ClassName,e.name=Ic(e.name.substring(Rf.length)).property)}function nC(t){return t.startsWith("--")}function rC(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 Ru(t,e=!1){return Nt(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`{${ra(e,!1)}}`}},sC=new Pu;function Zm(t){return t.visit(sC)}var Yn=class{constructor(e,n){l(this,"sourceSpan");l(this,"i18n");this.sourceSpan=e,this.i18n=n}},Ns=class extends Yn{constructor(n,r,s,i){super(r,i);l(this,"value");l(this,"tokens");this.value=n,this.tokens=s}visit(n,r){return n.visitText(this,r)}},ls=class extends Yn{constructor(n,r,s,i,o,a){super(i,a);l(this,"switchValue");l(this,"type");l(this,"cases");l(this,"switchValueSourceSpan");this.switchValue=n,this.type=r,this.cases=s,this.switchValueSourceSpan=o}visit(n,r){return n.visitExpansion(this,r)}},ul=class{constructor(e,n,r,s,i){l(this,"value");l(this,"expression");l(this,"sourceSpan");l(this,"valueSourceSpan");l(this,"expSourceSpan");this.value=e,this.expression=n,this.sourceSpan=r,this.valueSourceSpan=s,this.expSourceSpan=i}visit(e,n){return e.visitExpansionCase(this,n)}},Lu=class extends Yn{constructor(n,r,s,i,o,a,c){super(s,c);l(this,"name");l(this,"value");l(this,"keySpan");l(this,"valueSpan");l(this,"valueTokens");this.name=n,this.value=r,this.keySpan=i,this.valueSpan=o,this.valueTokens=a}visit(n,r){return n.visitAttribute(this,r)}},Xt=class extends Yn{constructor(n,r,s,i,o,a,c,u=null,h,d){super(a,d);l(this,"name");l(this,"attrs");l(this,"directives");l(this,"children");l(this,"isSelfClosing");l(this,"startSourceSpan");l(this,"endSourceSpan");l(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)}},Wo=class{constructor(e,n){l(this,"value");l(this,"sourceSpan");this.value=e,this.sourceSpan=n}visit(e,n){return e.visitComment(this,n)}},Qt=class extends Yn{constructor(n,r,s,i,o,a,c=null,u){super(i,u);l(this,"name");l(this,"parameters");l(this,"children");l(this,"nameSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=n,this.parameters=r,this.children=s,this.nameSpan=o,this.startSourceSpan=a,this.endSourceSpan=c}visit(n,r){return n.visitBlock(this,r)}},vt=class extends Yn{constructor(n,r,s,i,o,a,c,u,h,d=null,p){super(u,p);l(this,"componentName");l(this,"tagName");l(this,"fullName");l(this,"attrs");l(this,"directives");l(this,"children");l(this,"isSelfClosing");l(this,"startSourceSpan");l(this,"endSourceSpan");this.componentName=n,this.tagName=r,this.fullName=s,this.attrs=i,this.directives=o,this.children=a,this.isSelfClosing=c,this.startSourceSpan=h,this.endSourceSpan=d}visit(n,r){return n.visitComponent(this,r)}},Mu=class{constructor(e,n,r,s,i=null){l(this,"name");l(this,"attrs");l(this,"sourceSpan");l(this,"startSourceSpan");l(this,"endSourceSpan");this.name=e,this.attrs=n,this.sourceSpan=r,this.startSourceSpan=s,this.endSourceSpan=i}visit(e,n){return e.visitDirective(this,n)}},pl=class{constructor(e,n){l(this,"expression");l(this,"sourceSpan");this.expression=e,this.sourceSpan=n}visit(e,n){return e.visitBlockParameter(this,n)}},hl=class{constructor(e,n,r,s,i){l(this,"name");l(this,"value");l(this,"sourceSpan");l(this,"nameSpan");l(this,"valueSpan");this.name=e,this.value=n,this.sourceSpan=r,this.nameSpan=s,this.valueSpan=i}visit(e,n){return e.visitLetDeclaration(this,n)}};function me(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 jo={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:`
|
|
18
|
+
`,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"},eg="\uE500";jo.ngsp=eg;var Ou=class{constructor(e,n,r){l(this,"tokens");l(this,"errors");l(this,"nonNormalizedIcuExpressions");this.tokens=e,this.errors=n,this.nonNormalizedIcuExpressions=r}};function iC(t,e,n,r={}){let s=new Fu(new Mr(t,e),n,r);return s.tokenize(),new Ou(mC(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}var oC=/\r\n?/g;function Rs(t){return`Unexpected character "${t===qe?"EOF":String.fromCharCode(t)}"`}function Lf(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function aC(t,e){return`Unable to parse entity "${e}" - ${t} character reference entities must end with ";"`}var fl;(function(t){t.HEX="hexadecimal",t.DEC="decimal"})(fl||(fl={}));var lC=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],$i={start:"{{",end:"}}"},Fu=class{constructor(e,n,r){l(this,"_getTagDefinition");l(this,"_cursor");l(this,"_tokenizeIcu");l(this,"_leadingTriviaCodePoints");l(this,"_currentTokenStart",null);l(this,"_currentTokenType",null);l(this,"_expansionCaseStack",[]);l(this,"_openDirectiveCount",0);l(this,"_inInterpolation",!1);l(this,"_preserveLineEndings");l(this,"_i18nNormalizeLineEndingsInICUs");l(this,"_tokenizeBlocks");l(this,"_tokenizeLet");l(this,"_selectorlessEnabled");l(this,"tokens",[]);l(this,"errors",[]);l(this,"nonNormalizedIcuExpressions",[]);var i,o,a;this._getTagDefinition=n,this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(c=>c.codePointAt(0)||0);let s=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new $u(e,s):new dl(e,s),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=(i=r.tokenizeBlocks)!=null?i:!0,this._tokenizeLet=(o=r.tokenizeLet)!=null?o:!0,this._selectorlessEnabled=(a=r.selectorlessEnabled)!=null?a:!1;try{this._cursor.init()}catch(c){this.handleError(c)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(oC,`
|
|
19
|
+
`)}tokenize(){for(;this._cursor.peek()!==qe;){let e=this._cursor.clone();try{this._attemptCharCode(zs)?this._attemptCharCode(fu)?this._attemptCharCode(An)?this._consumeCdata(e):this._attemptCharCode(Ja)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Vt)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===bs&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(Et)?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=>Lo(r)?!e:dC(r)?(e=!0,!1):!0),this._cursor.getChars(n).trim()}_consumeBlockStart(e){this._requireCharCode(bs),this._beginToken(24,e);let n=this._endToken([this._getBlockName()]);if(this._cursor.peek()===wt)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(de),this._attemptCharCode(We))this._attemptCharCodeUntilFn(de);else{n.type=28;return}if(n.parts[0]==="default never"&&this._attemptCharCode(Rt)){this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([]);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(Of);this._cursor.peek()!==We&&this._cursor.peek()!==qe;){this._beginToken(27);let e=this._cursor.clone(),n=null,r=0;for(;this._cursor.peek()!==Rt&&this._cursor.peek()!==qe||n!==null;){let s=this._cursor.peek();if(s===is)this._cursor.advance();else if(s===n)n=null;else if(n===null&&Yi(s))n=s;else if(s===wt&&n===null)r++;else if(s===We&&n===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Of)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(29,e),Lo(this._cursor.peek()))this._attemptCharCodeUntilFn(de);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=32;return}let n=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(de),!this._attemptCharCode(Ze)){n.type=32;return}this._attemptCharCodeUntilFn(s=>de(s)&&!Xi(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===Rt?(this._beginToken(31),this._cursor.advance(),this._endToken([])):(n.type=32,n.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),n=!1;return this._attemptCharCodeUntilFn(r=>Lr(r)||r===Rl||r===qr||n&&Yt(r)?(n=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==qe;){let n=this._cursor.peek();if(n===Rt)break;Yi(n)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===is?(this._cursor.advance(),!1):r===n)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(hC(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Et){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 V(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 V(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 V(n,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof zo&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof V)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return fC(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let n=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Rs(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(Rs(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(Rs(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()===bs&&lC.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===bs&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(9);let n=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(xm)){let r=this._attemptCharCode(km)||this._attemptCharCode(vw),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(uC),this._cursor.peek()!=Rt){this._cursor.advance();let o=r?fl.HEX:fl.DEC;throw this._createError(aC(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(Lf(this._cursor.getChars(n)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(pC),this._cursor.peek()!=Rt)this._beginToken(e,n),this._cursor=r,this._endToken(["&"]);else{let s=this._cursor.getChars(r);this._cursor.advance();let i=jo.hasOwnProperty(s)&&jo[s];if(!i)throw this._createError(Lf(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()===Qa?(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(Ja),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(Ut);let r=this._cursor.getChars(n);this._cursor.advance(),this._endToken([r])}_consumePrefixAndName(e){let n=this._cursor.clone(),r="";for(;this._cursor.peek()!==Nn&&!cC(this._cursor.peek());)this._cursor.advance();let s;this._cursor.peek()===Nn?(r=this._cursor.getChars(n),this._cursor.advance(),s=this._cursor.clone()):s=n,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(s);return[r,i]}_consumeSingleLineComment(){this._attemptCharCodeUntilFn(e=>Xi(e)||e===qe),this._attemptCharCodeUntilFn(de)}_consumeMultiLineComment(){this._attemptCharCodeUntilFn(e=>{if(e===qe)return!0;if(e===du){let n=this._cursor.clone();return n.advance(),n.peek()===Vt}return!1}),this._attemptStr("*/")&&this._attemptCharCodeUntilFn(de)}_consumeTagOpen(e){let n,r,s,i;try{if(this._selectorlessEnabled&&wa(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[s,r,n]=i.parts,r&&(s+=`:${r}`),n&&(s+=`:${n}`),this._attemptCharCodeUntilFn(de);else{if(!Lr(this._cursor.peek()))throw this._createError(Rs(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],n=s=i.parts[1],this._attemptCharCodeUntilFn(de)}for(;;){if(this._attemptStr("//")){this._consumeSingleLineComment();continue}if(this._attemptStr("/*")){this._consumeMultiLineComment();continue}if($f(this._cursor.peek()))break;if(this._selectorlessEnabled&&this._cursor.peek()===bs){let a=this._cursor.clone(),c=a.clone();c.advance(),wa(c.peek())&&this._consumeDirective(a,c)}else this._consumeAttribute()}i.type===33?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(a){if(a instanceof V){i?i.type=i.type===33?37:4:(this._beginToken(5,e),this._endToken(["<"]));return}throw a}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(zs)||!this._attemptCharCode(Vt)||(this._attemptCharCodeUntilFn(de),!this._attemptStrCaseInsensitive(n))?!1:(this._attemptCharCodeUntilFn(de),this._attemptCharCode(Ut))),this._beginToken(e.type===33?36:3),this._requireCharCodeUntilFn(s=>s===Ut,3),this._cursor.advance(),this._endToken(e.parts)}_consumeTagOpenStart(e){this._beginToken(0,e);let n=this._consumePrefixAndName(Yr);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(;Ff(this._cursor.peek());)this._cursor.advance();let n=this._cursor.getChars(e),r="",s="";return this._cursor.peek()===Nn&&(this._cursor.advance(),[r,s]=this._consumePrefixAndName(Yr)),[n,r,s]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(de),this._attemptCharCode(Ze)&&(this._attemptCharCodeUntilFn(de),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(de)}_consumeAttributeName(){let e=this._cursor.peek();if(e===Po||e===Ro)throw this._createError(Rs(e),this._cursor.getSpan());this._beginToken(14);let n;if(this._openDirectiveCount>0){let s=0;n=i=>{if(this._openDirectiveCount>0){if(i===wt)s++;else if(i===We){if(s===0)return!0;s--}}return Yr(i)}}else if(e===An){let s=0;n=i=>(i===An?s++:i===Bn&&s--,s<=0?Yr(i):Xi(i))}else n=Yr;let r=this._consumePrefixAndName(n);this._endToken(r)}_consumeAttributeValue(){if(this._cursor.peek()===Po||this._cursor.peek()===Ro){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=()=>Yr(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(Vt)?2:1;this._beginToken(e),this._requireCharCode(Ut),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(Vt)?35:34;this._beginToken(e),this._requireCharCode(Ut),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let r=e.clone();for(;r.peek()!==Ut&&!wa(r.peek());)r.advance();if(wa(r.peek())){this._beginToken(36,e);let s=this._consumeComponentName();this._attemptCharCodeUntilFn(de),this._requireCharCode(Ut),this._endToken(s);return}}this._beginToken(3,e),this._attemptCharCodeUntilFn(de);let n=this._consumePrefixAndName(Yr);this._attemptCharCodeUntilFn(de),this._requireCharCode(Ut),this._endToken(n)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(Jt),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(pt),n=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([n]);else{let s=this._endToken([e]);n!==e&&this.nonNormalizedIcuExpressions.push(s)}this._requireCharCode(pt),this._attemptCharCodeUntilFn(de),this._beginToken(7);let r=this._readUntil(pt);this._endToken([r]),this._requireCharCode(pt),this._attemptCharCodeUntilFn(de)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(Jt).trim();this._endToken([e]),this._attemptCharCodeUntilFn(de),this._beginToken(21),this._requireCharCode(Jt),this._endToken([]),this._attemptCharCodeUntilFn(de),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(Et),this._endToken([]),this._attemptCharCodeUntilFn(de),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(Et),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,n,r,s){this._beginToken(e);let i=[];for(;!r();){let o=this._cursor.clone();this._attemptStr($i.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(n,o,s),this._beginToken(e)):this._cursor.peek()===Qa?(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($i.start);let i=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==qe&&(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($i.end)){s.push(this._getProcessedChars(i,c)),s.push($i.end),this._endToken(s);return}else this._attemptStr("//")&&(a=!0);let u=this._cursor.peek();this._cursor.advance(),u===is?this._cursor.advance():u===o?o=null:!a&&o===null&&Yi(u)&&(o=u)}s.push(this._getProcessedChars(i,this._cursor)),this._endToken(s)}_consumeDirective(e,n){for(this._requireCharCode(bs),this._cursor.advance();Ff(this._cursor.peek());)this._cursor.advance();this._beginToken(38,e);let r=this._cursor.getChars(n);if(this._endToken([r]),this._attemptCharCodeUntilFn(de),this._cursor.peek()===wt){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(de);!$f(this._cursor.peek())&&this._cursor.peek()!==We;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(de),this._openDirectiveCount--,this._cursor.peek()!==We){if(this._cursor.peek()===Ut||this._cursor.peek()===Vt)return;throw this._createError(Rs(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(de)}}_getProcessedChars(e,n){return this._processCarriageReturns(n.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===qe||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Et&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===Et))}_isTagStart(){if(this._cursor.peek()===zs){let e=this._cursor.clone();e.advance();let n=e.peek();if(Ss<=n&&n<=sa||Hr<=n&&n<=Ti||n===Vt||n===fu)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($i.start);return this._cursor=e,!n}};function de(t){return!Lo(t)||t===qe}function Yr(t){return Lo(t)||t===Ut||t===zs||t===Vt||t===Po||t===Ro||t===Ze||t===qe}function cC(t){return(t<Ss||sa<t)&&(t<Hr||Ti<t)&&(t<Np||t>Nm)}function uC(t){return t===Rt||t===qe||!Tw(t)}function pC(t){return t===Rt||t===qe||!(Lr(t)||Yt(t))}function hC(t){return t!==Et}function fC(t,e){return Mf(t)===Mf(e)}function Mf(t){return t>=Ss&&t<=sa?t-Ss+Hr:t}function dC(t){return Lr(t)||Yt(t)||t===qr}function Of(t){return t!==Rt&&de(t)}function wa(t){return t===qr||t>=Hr&&t<=Ti}function Ff(t){return Lr(t)||Yt(t)||t===qr}function $f(t){return t===Vt||t===Ut||t===zs||t===qe}function mC(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 dl=class t{constructor(e,n){l(this,"state");l(this,"file");l(this,"input");l(this,"end");if(e instanceof t){this.file=e.file,this.input=e.input,this.end=e.end;let r=e.state;this.state={peek:r.peek,offset:r.offset,line:r.line,column:r.column}}else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new t(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,n){e=e||this;let r=e;if(n)for(;this.diff(e)>0&&n.indexOf(e.peek())!==-1;)r===e&&(e=e.clone()),e.advance();let s=this.locationFromCursor(e),i=this.locationFromCursor(this),o=r!==e?this.locationFromCursor(r):s;return new G(s,i,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new zo('Unexpected character "EOF"',this);let n=this.charAt(e.offset);n===ss?(e.line++,e.column=0):Xi(n)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?qe:this.charAt(e.offset)}locationFromCursor(e){return new Es(e.file,e.state.offset,e.state.line,e.state.column)}},$u=class t extends dl{constructor(n,r){var e=(...EF)=>(super(...EF),l(this,"internalState"),this);n instanceof t?(e(n),this.internalState=x({},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()===is)if(this.internalState=x({},this.state),this.advanceState(this.internalState),n()===Im)this.state.peek=ss;else if(n()===Am)this.state.peek=Cp;else if(n()===_m)this.state.peek=Em;else if(n()===Dm)this.state.peek=xp;else if(n()===Ew)this.state.peek=fw;else if(n()===Ip)this.state.peek=wm;else if(n()===bm)if(this.advanceState(this.internalState),n()===Jt){this.advanceState(this.internalState);let r=this.clone(),s=0;for(;n()!==Et;)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()===km){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(df(n())){let r="",s=0,i=this.clone();for(;df(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 Xi(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 zo("Invalid hexadecimal escape sequence",n);return i}},zo=class extends Error{constructor(n,r){super(n);l(this,"msg");l(this,"cursor");this.msg=n,this.cursor=r,Object.setPrototypeOf(this,new.target.prototype)}},Le=class t extends V{constructor(n,r,s){super(r,s);l(this,"elementName");this.elementName=n}static create(n,r,s){return new t(n,r,s)}},ml=class{constructor(e,n){l(this,"rootNodes");l(this,"errors");this.rootNodes=e,this.errors=n}},gC=class{constructor(e){l(this,"getTagDefinition");this.getTagDefinition=e}parse(e,n,r){let s=iC(e,n,this.getTagDefinition,r),i=new Bu(s.tokens,this.getTagDefinition);return i.build(),new ml(i.rootNodes,[...s.errors,...i.errors])}},Bu=class t{constructor(e,n){l(this,"tokens");l(this,"tagDefinitionResolver");l(this,"_index",-1);l(this,"_peek");l(this,"_containerStack",[]);l(this,"rootNodes",[]);l(this,"errors",[]);this.tokens=e,this.tagDefinitionResolver=n,this._advance()}build(){for(;this._peek.type!==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),r=this._advanceIf(11),s=n!=null?n.parts[0].trim():null,i=r==null?e.sourceSpan:new G(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Wo(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 G(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new ls(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 G(e.sourceSpan.start,s.sourceSpan.end,e.sourceSpan.fullStart),a=new G(n.sourceSpan.start,s.sourceSpan.end,n.sourceSpan.fullStart);return new ul(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_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(Bf(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(Bf(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]===`
|
|
20
|
+
`){let o=this._getContainer();o!=null&&o.children.length===0&&((i=this._getTagDefinition(o))!=null&&i.ignoreFirstLf)&&(s=s.substring(1),n[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),n.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Uf):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let o=e.sourceSpan;this._addToParent(new Ns(s,new G(r.start,o.end,r.fullStart,r.details),n))}}_closeVoidElement(){var n;let e=this._getContainer();e!==null&&((n=this._getTagDefinition(e))!=null&&n.isVoid)&&this._containerStack.pop()}_consumeElementStartTag(e){var g,v;let n=[],r=[];this._consumeAttributesAndDirectives(n,r);let s=this._getElementFullName(e,this._getClosestElementLikeParent()),i=this._getTagDefinition(s),o=!1;this._peek.type===2?(this._advance(),o=!0,i!=null&&i.canSelfClose||iu(s)!==null||i!=null&&i.isVoid||this.errors.push(Le.create(s,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))):this._peek.type===1&&(this._advance(),o=!1);let a=this._peek.sourceSpan.fullStart,c=new G(e.sourceSpan.start,a,e.sourceSpan.fullStart),u=new G(e.sourceSpan.start,a,e.sourceSpan.fullStart),h=new Xt(s,n,r,[],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(s,Xt,c):e.type===4&&(this._popContainer(s,Xt,null),this.errors.push(Le.create(s,c,`Opening tag "${s}" not terminated.`)))}_consumeComponentStartTag(e){var E;let n=e.parts[0],r=[],s=[];this._consumeAttributesAndDirectives(r,s);let i=this._getClosestElementLikeParent(),o=this._getComponentTagName(e,i),a=this._getComponentFullName(e,i),c=this._peek.type===35;this._advance();let u=this._peek.sourceSpan.fullStart,h=new G(e.sourceSpan.start,u,e.sourceSpan.fullStart),d=new G(e.sourceSpan.start,u,e.sourceSpan.fullStart),p=new vt(n,o,a,r,s,[],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(a,vt,h):e.type===37&&(this._popContainer(a,vt,null),this.errors.push(Le.create(a,h,`Opening tag "${a}" 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,vt,e.sourceSpan)){let r=this._containerStack[this._containerStack.length-1],s;r instanceof vt&&r.componentName===e.parts[0]?s=`, did you mean "${r.fullName}"?`:s=". It may happen when the tag has already been closed by another tag.";let i=`Unexpected closing tag "${n}"${s}`;this.errors.push(Le.create(n,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e=="string"?this.tagDefinitionResolver(e):e instanceof Xt?this.tagDefinitionResolver(e.name):e instanceof vt&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,n){n&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var r;let n=this._getElementFullName(e,this._getClosestElementLikeParent());if((r=this._getTagDefinition(n))!=null&&r.isVoid)this.errors.push(Le.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,Xt,e.sourceSpan)){let s=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Le.create(n,e.sourceSpan,s))}}_popContainer(e,n,r){var i;let s=!1;for(let o=this._containerStack.length-1;o>=0;o--){let a=this._containerStack[o];if(((a instanceof vt?a.fullName:a.name)===e||e===null)&&a instanceof n)return a.endSourceSpan=r,a.sourceSpan.end=r!==null?r.end:a.sourceSpan.end,this._containerStack.splice(o,this._containerStack.length-o),!s;(a instanceof Qt||!((i=this._getTagDefinition(a))!=null&&i.closedByParent))&&(s=!0)}return!1}_consumeAttr(e){let n=La(e.parts[0],e.parts[1]),r=e.sourceSpan.end;this._peek.type===15&&this._advance();let s="",i=[],o,a;if(this._peek.type===16)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let h=this._advance();i.push(h),h.type===17?s+=h.parts.join("").replace(/&([^;]+);/g,Uf):h.type===9?s+=h.parts[0]:s+=h.parts.join(""),a=r=h.sourceSpan.end}this._peek.type===15&&(r=this._advance().sourceSpan.end);let u=o&&a&&new G(o.start,a,o.fullStart);return new Lu(n,s,new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),e.sourceSpan,u,i.length>0?i:void 0,void 0)}_consumeDirective(e){let n=[],r=e.sourceSpan.end,s=null;if(this._advance(),this._peek.type===39){for(r=this._peek.sourceSpan.end,this._advance();this._peek.type===14;)n.push(this._consumeAttr(this._advance()));this._peek.type===40?(s=this._peek.sourceSpan,this._advance()):this.errors.push(Le.create(null,e.sourceSpan,"Unterminated directive definition"))}let i=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new G(i.start,s===null?e.sourceSpan.end:s.end,i.fullStart);return new Mu(e.parts[0],n,o,i,s)}_consumeBlockOpen(e){let n=[];for(;this._peek.type===27;){let a=this._advance();n.push(new pl(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let r=this._peek.sourceSpan.fullStart,s=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Qt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){let n=this._containerStack.length,r=this._containerStack[n-1];if(!this._popContainer(null,Qt,e.sourceSpan)){if(this._containerStack.length<n){let s=r instanceof vt?r.fullName:r.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 <${s}> 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 a=this._advance();n.push(new pl(a.parts[0],a.sourceSpan))}let r=this._peek.sourceSpan.fullStart,s=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),i=new G(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Qt(e.parts[0],n,[],s,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Qt,null),this.errors.push(Le.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let n=e.parts[0],r,s;if(this._peek.type!==30){this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${n}". Declaration must have a value.`));return}else r=this._advance();if(this._peek.type!==31){this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${n}". Declaration must be terminated with a semicolon.`));return}else s=this._advance();let i=s.sourceSpan.end,o=new G(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(n),c=e.sourceSpan.start.moveBy(a),u=new G(c,e.sourceSpan.end),h=new hl(n,r.parts[0],o,u,r.sourceSpan);this._addToParent(h)}_consumeIncompleteLet(e){var s;let n=(s=e.parts[0])!=null?s:"",r=n?` "${n}"`:"";if(n.length>0){let i=e.sourceSpan.toString().lastIndexOf(n),o=e.sourceSpan.start.moveBy(i),a=new G(o,e.sourceSpan.end),c=new G(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),u=new hl(n,"",e.sourceSpan,a,c);this._addToParent(u)}this.errors.push(Le.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${r}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let n=this._containerStack[e];if(n instanceof Xt||n instanceof vt)return n}return null}_addToParent(e){let n=this._getContainer();n===null?this.rootNodes.push(e):n.children.push(e)}_getElementFullName(e,n){let r=this._getPrefix(e,n);return La(r,e.parts[1])}_getComponentFullName(e,n){let r=e.parts[0],s=this._getComponentTagName(e,n);return s===null?r:s.startsWith(":")?r+s:`${r}:${s}`}_getComponentTagName(e,n){let r=this._getPrefix(e,n),s=e.parts[2];return!r&&!s?null:!r&&s?s:La(r,s||"ng-component")}_getPrefix(e,n){var i;let r,s;if(e.type===33||e.type===37||e.type===36?(r=e.parts[1],s=e.parts[2]):(r=e.parts[0],s=e.parts[1]),r=r||((i=this._getTagDefinition(s))==null?void 0:i.implicitNamespacePrefix)||"",!r&&n){let o=n instanceof Xt?n.name:n.tagName;if(o!==null){let a=it(o)[1],c=this._getTagDefinition(a);c!==null&&!c.preventNamespaceInheritance&&(r=iu(o))}}return r}};function Bf(t,e){return t.length>0&&t[t.length-1]===e}function Uf(t,e){return jo[e]!==void 0?jo[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 tg="ngPreserveWhitespaces",Vf=new Set(["pre","template","textarea","script","style"]),ng=` \f
|
|
21
|
+
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,yC=new RegExp(`[^${ng}]`),vC=new RegExp(`[${ng}]{2,}`,"g");function Gf(t){return t.some(e=>e.name===tg)}function rg(t){return t.replace(new RegExp(eg,"g")," ")}var gl=class{constructor(e,n,r=!0){l(this,"preserveSignificantWhitespace");l(this,"originalNodeMap");l(this,"requireContext");l(this,"icuExpansionDepth",0);this.preserveSignificantWhitespace=e,this.originalNodeMap=n,this.requireContext=r}visitElement(e,n){var s,i;if(Vf.has(e.name)||Gf(e.attrs)){let o=new Xt(e.name,Tn(this,e.attrs),Tn(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 Xt(e.name,e.attrs,e.directives,Tn(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!==tg?e:null}visitText(e,n){var o;let r=e.value.match(yC),s=n&&(n.prev instanceof ls||n.next instanceof ls);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(r||s){let a=e.tokens.map(d=>d.type===5?TC(d):d);if(!this.preserveSignificantWhitespace&&a.length>0){let d=a[0];a.splice(0,1,SC(d,n));let p=a[a.length-1];a.splice(a.length-1,1,EC(p,n))}let c=ig(e.value),u=this.preserveSignificantWhitespace?c:wC(c,n),h=new Ns(u,e.sourceSpan,a,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 ls(e.switchValue,e.type,Tn(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 ul(e.value,Tn(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 Qt(e.name,e.parameters,Tn(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&&Vf.has(e.tagName)||Gf(e.attrs)){let o=new vt(e.componentName,e.tagName,e.fullName,Tn(this,e.attrs),Tn(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 vt(e.componentName,e.tagName,e.fullName,e.attrs,e.directives,Tn(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 SC(t,e){return t.type!==5||!!(e!=null&&e.prev)?t:sg(t,r=>r.trimStart())}function EC(t,e){return t.type!==5||!!(e!=null&&e.next)?t:sg(t,r=>r.trimEnd())}function wC(t,e){let n=!(e!=null&&e.prev),r=!(e!=null&&e.next),s=n?t.trimStart():t;return r?s.trimEnd():s}function TC({type:t,parts:e,sourceSpan:n}){return{type:t,parts:[ig(e[0])],sourceSpan:n}}function sg({type:t,parts:e,sourceSpan:n},r){return{type:t,parts:[r(e[0])],sourceSpan:n}}function ig(t){return rg(t).replace(vC," ")}function Tn(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 Sr;(function(t){t[t.Plain=0]="Plain",t[t.TemplateLiteralPart=1]="TemplateLiteralPart",t[t.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(Sr||(Sr={}));var xC=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],Ko=class{tokenize(e){return new Uu(e).scan()}},jt=class{constructor(e,n,r,s,i){l(this,"index");l(this,"end");l(this,"type");l(this,"numValue");l(this,"strValue");this.index=e,this.end=n,this.type=r,this.numValue=s,this.strValue=i}isCharacter(e){return this.type===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===Sr.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===Sr.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}}},Qi=class extends jt{constructor(n,r,s,i){super(n,r,q.String,0,s);l(this,"kind");this.kind=i}};function Bi(t,e,n){return new jt(t,e,q.Character,n,String.fromCharCode(n))}function CC(t,e,n){return new jt(t,e,q.Identifier,0,n)}function NC(t,e,n){return new jt(t,e,q.PrivateIdentifier,0,n)}function IC(t,e,n){return new jt(t,e,q.Keyword,0,n)}function or(t,e,n){return new jt(t,e,q.Operator,0,n)}function AC(t,e,n){return new jt(t,e,q.Number,n,"")}function DC(t,e,n){return new jt(t,e,q.Error,0,n)}function bC(t,e,n){return new jt(t,e,q.RegExpBody,0,n)}function _C(t,e,n){return new jt(t,e,q.RegExpFlags,0,n)}var Ui=new jt(-1,-1,q.Character,0,""),Uu=class{constructor(e){l(this,"input");l(this,"tokens",[]);l(this,"length");l(this,"peek",0);l(this,"index",-1);l(this,"braceStack",[]);this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?qe:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,r=this.peek,s=this.index;for(;r<=Tm;)if(++s>=n){r=qe;break}else r=e.charCodeAt(s);if(this.peek=r,this.index=s,s>=n)return null;if(Hf(r))return this.scanIdentifier();if(Yt(r))return this.scanNumber(s);let i=s;switch(r){case Qr:return this.advance(),Yt(this.peek)?this.scanNumber(i):this.peek!==Qr?Bi(i,this.index,Qr):(this.advance(),this.peek===Qr?(this.advance(),or(i,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(r)}]`,0));case wt:case We:case An:case Bn:case pt:case Nn:case Rt:return this.scanCharacter(i,r);case Jt:return this.scanOpenBrace(i,r);case Et:return this.scanCloseBrace(i,r);case Po:case Ro:return this.scanString();case mu:return this.advance(),this.scanTemplateLiteralPart(i);case xm:return this.scanPrivateIdentifier();case Cm:return this.scanComplexOperator(i,"+",Ze,"=");case Ja:return this.scanComplexOperator(i,"-",Ze,"=");case Vt:return this.isStartOfRegex()?this.scanRegex(s):this.scanComplexOperator(i,"/",Ze,"=");case dw:return this.scanComplexOperator(i,"%",Ze,"=");case Sw:return this.scanOperator(i,"^");case du:return this.scanStar(i);case hf:return this.scanQuestion(i);case zs:case Ut:return this.scanComplexOperator(i,String.fromCharCode(r),Ze,"=");case fu:return this.scanComplexOperator(i,"!",Ze,"=",Ze,"=");case Ze:return this.scanEquals(i);case Qa:return this.scanComplexOperator(i,"&",Qa,"&",Ze,"=");case ff:return this.scanComplexOperator(i,"|",ff,"|",Ze,"=");case Rm:for(;Lo(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(r)}]`,0)}scanCharacter(e,n){return this.advance(),Bi(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(),Bi(e,this.index,n)}scanCloseBrace(e,n){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(Bi(e,this.index,Et)),this.scanTemplateLiteralPart(this.index)):Bi(e,this.index,n)}scanComplexOperator(e,n,r,s,i,o){this.advance();let a=n;return this.peek==r&&(this.advance(),a+=s),i!=null&&this.peek==i&&(this.advance(),a+=o),or(e,this.index,a)}scanEquals(e){this.advance();let n="=";if(this.peek===Ze)this.advance(),n+="=";else if(this.peek===Ut)return this.advance(),n+=">",or(e,this.index,n);return this.peek===Ze&&(this.advance(),n+="="),or(e,this.index,n)}scanIdentifier(){let e=this.index;for(this.advance();qf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return xC.indexOf(n)>-1?IC(e,this.index,n):CC(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!Hf(this.peek))return this.error("Invalid character [#]",-1);for(;qf(this.peek);)this.advance();let n=this.input.substring(e,this.index);return NC(e,this.index,n)}scanNumber(e){let n=this.index===e,r=!1;for(this.advance();;){if(!Yt(this.peek))if(this.peek===qr){if(!Yt(this.input.charCodeAt(this.index-1))||!Yt(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);r=!0}else if(this.peek===Qr)n=!1;else if(kC(this.peek)){if(this.advance(),RC(this.peek)&&this.advance(),!Yt(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?LC(s):parseFloat(s);return AC(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==is){let a=this.scanStringBackslash(r,s);if(typeof a!="string")return a;r=a,s=this.index}else{if(this.peek==qe)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(s,this.index);return this.advance(),new Qi(e,this.index,r+o,Sr.Plain)}scanQuestion(e){this.advance();let n="?";return this.peek===hf?(n+="?",this.advance(),this.peek===Ze&&(n+="=",this.advance())):this.peek===Qr&&(n+=".",this.advance()),or(e,this.index,n)}scanTemplateLiteralPart(e){let n="",r=this.index;for(;this.peek!==mu;)if(this.peek===is){let i=this.scanStringBackslash(n,r);if(typeof i!="string")return i;n=i,r=this.index}else if(this.peek===Rl){let i=this.index;if(this.advance(),this.peek===Jt)return this.braceStack.push("interpolation"),this.tokens.push(new Qi(e,i,n+this.input.substring(r,i),Sr.TemplateLiteralPart)),this.advance(),or(i,this.index,this.input.substring(i,this.index))}else{if(this.peek===qe)return this.error("Unterminated template literal",0);this.advance()}let s=this.input.substring(r,this.index);return this.advance(),new Qi(e,this.index,n+s,Sr.TemplateLiteralEnd)}error(e,n){let r=this.index+n;return DC(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===bm){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=PC(this.peek),this.advance();return e+=String.fromCharCode(r),e}scanStar(e){this.advance();let n="*";return this.peek===du?(n+="*",this.advance(),this.peek===Ze&&(n+="=",this.advance())):this.peek===Ze&&(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(We)&&!n.isCharacter(Bn)}return e.type===q.Operator||e.isCharacter(wt)||e.isCharacter(An)||e.isCharacter(pt)||e.isCharacter(Nn)}scanRegex(e){this.advance();let n=this.index,r=!1,s=!1;for(;;){let c=this.peek;if(c===qe)return this.error("Unterminated regular expression",0);if(r)r=!1;else if(c===is)r=!0;else if(c===An)s=!0;else if(c===Bn)s=!1;else if(c===Vt&&!s)break;this.advance()}let i=this.input.substring(n,this.index);this.advance();let o=bC(e,this.index,i),a=this.scanRegexFlags(this.index);return a!==null?(this.tokens.push(o),a):o}scanRegexFlags(e){if(!Lr(this.peek))return null;for(;Lr(this.peek);)this.advance();return _C(e,this.index,this.input.substring(e,this.index))}};function Hf(t){return Ss<=t&&t<=sa||Hr<=t&&t<=Ti||t==qr||t==Rl}function qf(t){return Lr(t)||Yt(t)||t==qr||t==Rl}function kC(t){return t==ww||t==gw}function RC(t){return t==Ja||t==Cm}function PC(t){switch(t){case Im:return ss;case Ip:return wm;case Am:return Cp;case Dm:return xp;case _m:return Em;default:return t}}function LC(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Vu=class{constructor(e,n,r){l(this,"strings");l(this,"expressions");l(this,"offsets");this.strings=e,this.expressions=n,this.offsets=r}},Gu=class{constructor(e,n,r){l(this,"templateBindings");l(this,"warnings");l(this,"errors");this.templateBindings=e,this.warnings=n,this.errors=r}};function pr(t){return t.start.toString()||"(unknown)"}var yl=class{constructor(e,n=!1){l(this,"_lexer");l(this,"_supportsDirectPipeReferences");this._lexer=e,this._supportsDirectPipeReferences=n}parseAction(e,n,r){let s=[];this._checkNoInterpolation(s,e,n);let{stripped:i}=this._stripComments(e),o=this._lexer.tokenize(i),a=new Zr(e,n,r,o,1,s,0,this._supportsDirectPipeReferences).parseChain();return new Se(a,e,pr(n),r,s)}parseBinding(e,n,r){let s=[],i=this._parseBindingAst(e,n,r,s);return new Se(i,e,pr(n),r,s)}checkSimpleExpression(e){let n=new Hu;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(Hs(`Host binding expression cannot contain ${o.join(" ")}`,e,"",n)),new Se(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 Zr(e,n,r,o,0,s,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(e,n,r,s,i){let o=this._lexer.tokenize(n),a=[];return new Zr(n,r,i,o,0,a,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:e,span:new dt(s,s+e.length)})}parseInterpolation(e,n,r,s){var h;let i=[],{strings:o,expressions:a,offsets:c}=this.splitInterpolation(e,n,i,s);if(a.length===0)return null;let u=[];for(let d=0;d<a.length;++d){let p=(h=s==null?void 0:s[d*2+1])==null?void 0:h.sourceSpan,g=a[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(Hs("Interpolation expression cannot only contain a comment",e,`at column ${a[d].start} in`,n));continue}let D=new Zr(p?g:e,p||n,r,I,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=[],a=new Zr(e,n,r,i,0,o,0,this._supportsDirectPipeReferences).parseChain(),c=["",""];return this.createInterpolationAst(c,[a],e,pr(n),r,o)}createInterpolationAst(e,n,r,s,i,o){let a=new fs(0,r.length),c=new Zn(a,a.toAbsolute(i),e,n);return new Se(c,r,s,i,o)}splitInterpolation(e,n,r,s){var v;let i=[],o=[],a=[],c=s?MC(s):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 _=D+g.length,k=e.substring(I,D);k.trim().length===0&&r.push(Hs("Blank expressions are not allowed in interpolated strings",e,`at column ${u} in`,n)),o.push({text:k,start:E,end:_});let X=((v=c==null?void 0:c.get(E))!=null?v:E)+p.length;a.push(X),u=_,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 Vu(i,o,a)}wrapLiteralPrimitive(e,n,r){let s=new fs(0,e==null?0:e.length);return new Se(new ut(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===Vt&&i==Vt&&n==null)return r;n===s?n=null:n==null&&Yi(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(Hs("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];Yi(e.charCodeAt(i))&&(r===null||r===o)&&s%2===0?r=r===null?o:null:r===null&&(yield i),s=o==="\\"?s+1:0}}},Gs;(function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"})(Gs||(Gs={}));var Wf=new Set(["d","g","i","m","s","u","v","y"]),Zr=class{constructor(e,n,r,s,i,o,a,c){l(this,"input");l(this,"parseSourceSpan");l(this,"absoluteOffset");l(this,"tokens");l(this,"parseFlags");l(this,"errors");l(this,"offset");l(this,"supportsDirectPipeReferences");l(this,"rparensExpected",0);l(this,"rbracketsExpected",0);l(this,"rbracesExpected",0);l(this,"context",Gs.None);l(this,"sourceSpanCache",new Map);l(this,"index",0);this.input=e,this.parseSourceSpan=n,this.absoluteOffset=r,this.tokens=s,this.parseFlags=i,this.errors=o,this.offset=a,this.supportsDirectPipeReferences=c}peek(e){let n=this.index+e;return n<this.tokens.length?this.tokens[n]:Ui}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 fs(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&&Ie.isAssignmentOperation(e.strValue)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===Ui?"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(Rt))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(Rt););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 rt(this.span(r,s),this.sourceSpan(r,s))}return e.length==1?e[0]:new Dr(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 fs(o,o).toAbsolute(this.absoluteOffset));let a=[];for(;this.consumeOptionalCharacter(Nn);)a.push(this.parseExpression());let c;if(this.supportsDirectPipeReferences){let u=s.charCodeAt(0);c=u===qr||u>=Hr&&u<=Ti?qs.ReferencedDirectly:qs.ReferencedByName}else c=qs.ReferencedByName;n=new ii(this.span(e),this.sourceSpan(e,o),n,s,a,c,i)}while(this.consumeOptionalOperator("|"))}return n}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,n=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let r=this.parsePipe(),s;if(this.consumeOptionalCharacter(Nn))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 rt(this.span(e),this.sourceSpan(e))}return new si(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 Ie(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 Ie(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 Ie(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 Ie(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 Ie(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 Ie(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 Ie(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 Ws||n instanceof _n||n instanceof vo||n instanceof So)&&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 Ie(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(),Ws.createPlus(this.span(e),this.sourceSpan(e),r);case"-":return this.advance(),r=this.parsePrefix(),Ws.createMinus(this.span(e),this.sourceSpan(e),r);case"!":return this.advance(),r=this.parsePrefix(),new _n(this.span(e),this.sourceSpan(e),r)}}else if(this.next.isKeywordTypeof()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new vo(this.span(e),this.sourceSpan(e),n)}else if(this.next.isKeywordVoid()){let e=this.inputIndex;this.advance();let n=this.parsePrefix();return new So(this.span(e),this.sourceSpan(e),n)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,n=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(Qr))n=this.parseAccessMember(n,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(wt)?n=this.parseCall(n,e,!0):n=this.consumeOptionalCharacter(An)?this.parseKeyedReadOrWrite(n,e,!0):this.parseAccessMember(n,e,!0);else if(this.consumeOptionalCharacter(An))n=this.parseKeyedReadOrWrite(n,e,!1);else if(this.consumeOptionalCharacter(wt))n=this.parseCall(n,e,!1);else if(this.consumeOptionalOperator("!"))n=new Eo(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(wt)){this.rparensExpected++;let n=this.parsePipe();return this.consumeOptionalCharacter(We)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(We)),this.rparensExpected--,new xo(this.span(e),this.sourceSpan(e),n)}else{if(this.next.isKeywordNull())return this.advance(),new ut(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new ut(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new ut(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new ut(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Ar(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(An))return this.parseLiteralArray(e);if(this.next.isCharacter(Jt))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Ht(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let n=this.next.toNumber();return this.advance(),new ut(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===Sr.Plain){let n=this.next.toString();return this.advance(),new ut(this.span(e),this.sourceSpan(e),n)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new rt(this.span(e),this.sourceSpan(e))):this.next.isRegExpBody()?this.parseRegularExpressionLiteral():this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new rt(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new rt(this.span(e),this.sourceSpan(e)))}}}parseLiteralArray(e){this.rbracketsExpected++;let n=[];do if(this.next.isOperator("..."))n.push(this.parseSpreadElement());else if(!this.next.isCharacter(Bn))n.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(pt));return this.rbracketsExpected--,this.expectCharacter(Bn),new yo(this.span(e),this.sourceSpan(e),n)}parseLiteralMap(){let e=[],n=[],r=this.inputIndex;if(this.expectCharacter(Jt),!this.consumeOptionalCharacter(Et)){this.rbracesExpected++;do{let s=this.inputIndex;if(this.next.isOperator("...")){this.advance(),e.push({kind:"spread",span:this.span(s),sourceSpan:this.sourceSpan(s)}),n.push(this.parsePipe());continue}let i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a=this.span(s),c=this.sourceSpan(s),u={kind:"property",key:o,quoted:i,span:a,sourceSpan:c};e.push(u),i?(this.expectCharacter(Nn),n.push(this.parsePipe())):this.consumeOptionalCharacter(Nn)?n.push(this.parsePipe()):(u.isShorthandInitialized=!0,n.push(new ge(a,c,c,new Ht(a,c),o)))}while(this.consumeOptionalCharacter(pt)&&!this.next.isCharacter(Et));this.rbracesExpected--,this.expectCharacter(Et)}return new ms(this.span(r),this.sourceSpan(r),e,n)}parseAccessMember(e,n,r){let s=this.inputIndex,i=this.withContext(Gs.Writable,()=>{var c;let a=(c=this.expectIdentifierOrKeyword())!=null?c:"";return a.length===0&&this.error("Expected identifier for property access",e.span.end),a}),o=this.sourceSpan(s);if(r)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new rt(this.span(n),this.sourceSpan(n))):new mt(this.span(n),this.sourceSpan(n),o,e,i);if(this.isAssignmentOperator(this.next)){let a=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new rt(this.span(n),this.sourceSpan(n));let c=new ge(this.span(n),this.sourceSpan(n),o,e,i);this.advance();let u=this.parseConditional();return new Ie(this.span(n),this.sourceSpan(n),a,c,u)}else return new ge(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(We),this.rparensExpected--;let a=this.span(n),c=this.sourceSpan(n);return r?new kn(a,c,e,i,o):new vn(a,c,e,i,o)}parseCallArguments(){if(this.next.isCharacter(We))return[];let e=[];do e.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(pt));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 Ha(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 dt(r,r+e.length)}}parseTemplateBindings(e){let n=[];for(n.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let r=this.parseLetBinding();if(r)n.push(r);else{let s=this.expectTemplateBindingKey(),i=this.parseAsBinding(s);i?n.push(i):(s.source=e.source+s.source.charAt(0).toUpperCase()+s.source.substring(1),n.push(...this.parseDirectiveKeywordBindings(s)))}this.consumeStatementTerminator()}return new Gu(n,[],this.errors)}parseKeyedReadOrWrite(e,n,r){return this.withContext(Gs.Writable,()=>{this.rbracketsExpected++;let s=this.parsePipe();if(s instanceof rt&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Bn),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 jn(this.span(n),this.sourceSpan(n),e,s);this.advance();let a=this.parseConditional();return new Ie(this.span(n),this.sourceSpan(n),i,o,a)}}else return r?new ds(this.span(n),this.sourceSpan(n),e,s):new jn(this.span(n),this.sourceSpan(n),e,s);return new rt(this.span(n),this.sourceSpan(n))})}parseDirectiveKeywordBindings(e){let n=[];this.consumeOptionalCharacter(Nn);let r=this.getDirectiveBoundTarget(),s=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),s=this.currentAbsoluteOffset);let o=new dt(e.span.start,s);return n.push(new nu(o,e,r)),i&&n.push(i),n}getDirectiveBoundTarget(){if(this.next===Ui||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:n,end:r}=e.span,s=this.input.substring(n,r);return new Se(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 dt(e.span.start,this.currentAbsoluteOffset);return new Co(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 dt(e,this.currentAbsoluteOffset);return new Co(s,n,r)}parseNoInterpolationTaggedTemplateLiteral(e,n){let r=this.parseNoInterpolationTemplateLiteral();return new wo(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 To(r,s,[new qa(r,s,e)],[])}parseTaggedTemplateLiteral(e,n){let r=this.parseTemplateLiteral();return new wo(this.span(n),this.sourceSpan(n),e,r)}parseTemplateLiteral(){let e=[],n=[],r=this.inputIndex;for(;this.next!==Ui;){let s=this.next;if(s.isTemplateLiteralPart()||s.isTemplateLiteralEnd()){let i=this.inputIndex;if(this.advance(),e.push(new qa(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 rt?this.error("Template literal interpolation cannot be empty"):n.push(i),this.rbracesExpected--}else this.advance()}return new To(this.span(r),this.sourceSpan(r),e,n)}parseRegularExpressionLiteral(){let e=this.next;if(this.advance(),!e.isRegExpBody())return new rt(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let n=null;if(this.next.isRegExpFlags()){n=this.next,this.advance();let i=new Set;for(let o=0;o<n.strValue.length;o++){let a=n.strValue[o];Wf.has(a)?i.has(a)?this.error(`Duplicate regular expression flag "${a}"`,n.index+o):i.add(a):this.error(`Unsupported regular expression flag "${a}". The supported flags are: `+Array.from(Wf,c=>`"${c}"`).join(", "),n.index+o)}}let r=e.index,s=n?n.end:e.end;return new Wa(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(wt)?(this.rparensExpected++,this.advance(),n=this.parseArrowFunctionParameters(),this.rparensExpected--):(n=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let r;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."),r=new rt(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(We))for(;this.next!==Ui;)if(this.next.isIdentifier()){let n=this.next;if(this.advance(),e.push(this.getArrowFunctionIdentifierArg(n)),this.consumeOptionalCharacter(We))break;this.expectCharacter(pt)}else{this.error(`Unexpected token ${this.next}`);break}return e}getArrowFunctionIdentifierArg(e){return new tu(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(wt)){let r=e+1;for(r;r<n.length&&!(!n[r].isIdentifier()&&!n[r].isCharacter(pt));r++);return r<n.length-1&&n[r].isCharacter(We)&&n[r+1].isOperator("=>")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(Rt)||this.consumeOptionalCharacter(pt)}error(e,n=this.index){this.errors.push(Hs(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(Rt)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(We))&&(this.rbracesExpected<=0||!e.isCharacter(Et))&&(this.rbracketsExpected<=0||!e.isCharacter(Bn))&&(!(this.context&Gs.Writable)||!this.isAssignmentOperator(e));)this.next.isError()&&this.errors.push(Hs(this.next.toString(),this.input,this.getErrorLocationText(this.next.index),this.parseSourceSpan)),this.advance(),e=this.next}};function Hs(t,e,n,r){n.length>0&&(n=` ${n} `);let s=pr(r),i=`Parser Error: ${t}${n}[${e}] in ${s}`;return new V(r,i)}var Hu=class extends gs{constructor(){super(...arguments);l(this,"errors",[])}visitPipe(){this.errors.push("pipes")}};function MC(t){let e=new Map,n=0,r=0,s=0;for(;s<t.length;){let i=t[s];if(i.type===9){let[o,a]=i.parts;n+=a.length,r+=o.length}else{let o=i.parts.reduce((a,c)=>a+c.length,0);r+=o,n+=o}e.set(r,n),s++}return e}function OC(t){return t.visit(new qu)}var qu=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 $C(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`{${FC(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 Ht||e.receiver instanceof Ar?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 FC(t,e){if(t.length!==e.length)throw new Error("Array lengths must match");return t.map((n,r)=>[n,e[r]])}function $C(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 Ml="svg",Ol="math",Wu=class{},BC="boolean",UC="number",VC="string",GC="object";function Ta(t){let e=t.toLowerCase(),[n,r]=it(e,!1);return n===Ml||n===Ol?`:${n}:${r}`:r}var HC=["[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:|"],og=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"})),qC=Array.from(og).reduce((t,[e,n])=>(t.set(e,n),t),new Map),zt=class extends Wu{constructor(){super();l(this,"_schema",new Map);l(this,"_eventSchema",new Map);HC.forEach(n=>{let r=new Map,s=new Set,[i,o]=n.split("|"),a=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)}a.forEach(d=>{if(d.length>0)switch(d[0]){case"*":s.add(d.substring(1));break;case"!":r.set(d.substring(1),BC);break;case"#":r.set(d.substring(1),UC);break;case"%":r.set(d.substring(1),GC);break;default:r.set(d,VC)}})})}hasProperty(n,r,s){if(s.some(a=>a.name===qc.name))return!0;let i=Ta(n);if(i.includes("-")){if(cf(i)||su(i))return!1;if(s.some(a=>a.name===Hc.name))return!0}return(this._schema.get(i)||this._schema.get("unknown")).has(r)}hasElement(n,r){if(r.some(i=>i.name===qc.name))return!0;let s=Ta(n);return s.includes("-")&&(cf(s)||su(s)||r.some(i=>i.name===Hc.name))?!0:this._schema.has(s)}securityContext(n,r,s){s&&(r=this.getMappedPropName(r));let[i,o]=it(n,!1);return aE(o,r,i)}getMappedPropName(n){var r;return(r=og.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)})=...
|
|
22
|
+
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=Ta(n),s=this._schema.get(r)||this._schema.get("unknown");return Array.from(s.keys()).map(i=>{var o;return(o=qC.get(i))!=null?o:i})}allKnownEventsOfElement(n){var s;let r=Ta(n);return Array.from((s=this._eventSchema.get(r))!=null?s:[])}normalizeAnimationStyleProperty(n){return OE(n)}normalizeAnimationStyleValue(n,r,s){let i="",o=s.toString().trim(),a=null;if(WC(n)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let c=s.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&c[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${s}`)}return{error:a,value:o+i}}};function WC(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 ee=class{constructor({closedByChildren:e,implicitNamespacePrefix:n,contentType:r=pn.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:c=!1}={}){l(this,"closedByChildren",{});l(this,"contentType");l(this,"closedByParent",!1);l(this,"implicitNamespacePrefix");l(this,"isVoid");l(this,"ignoreFirstLf");l(this,"canSelfClose");l(this,"preventNamespaceInheritance");e&&e.length>0&&e.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=n||null,this.contentType=r,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=c!=null?c:i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){if(typeof this.contentType=="object"){let n=e===void 0?void 0:this.contentType[e];return n!=null?n:this.contentType.default}return this.contentType}},jf,Ps;function ju(t){var e,n;return Ps||(jf=new ee({canSelfClose:!0}),Ps=Object.assign(Object.create(null),{base:new ee({isVoid:!0}),meta:new ee({isVoid:!0}),area:new ee({isVoid:!0}),embed:new ee({isVoid:!0}),link:new ee({isVoid:!0}),img:new ee({isVoid:!0}),input:new ee({isVoid:!0}),param:new ee({isVoid:!0}),hr:new ee({isVoid:!0}),br:new ee({isVoid:!0}),source:new ee({isVoid:!0}),track:new ee({isVoid:!0}),wbr:new ee({isVoid:!0}),p:new ee({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ee({closedByChildren:["tbody","tfoot"]}),tbody:new ee({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ee({closedByChildren:["tbody"],closedByParent:!0}),tr:new ee({closedByChildren:["tr"],closedByParent:!0}),td:new ee({closedByChildren:["td","th"],closedByParent:!0}),th:new ee({closedByChildren:["td","th"],closedByParent:!0}),col:new ee({isVoid:!0}),svg:new ee({implicitNamespacePrefix:"svg"}),foreignObject:new ee({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ee({implicitNamespacePrefix:"math"}),li:new ee({closedByChildren:["li"],closedByParent:!0}),dt:new ee({closedByChildren:["dt","dd"]}),dd:new ee({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ee({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ee({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ee({closedByChildren:["optgroup"],closedByParent:!0}),option:new ee({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ee({ignoreFirstLf:!0}),listing:new ee({ignoreFirstLf:!0}),style:new ee({contentType:pn.RAW_TEXT}),script:new ee({contentType:pn.RAW_TEXT}),title:new ee({contentType:{default:pn.ESCAPABLE_RAW_TEXT,svg:pn.PARSABLE_DATA}}),textarea:new ee({contentType:pn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new zt().allKnownElementNames().forEach(r=>{!Ps[r]&&iu(r)===null&&(Ps[r]=new ee({canSelfClose:!1}))})),(n=(e=Ps[t])!=null?e:Ps[t.toLowerCase()])!=null?n:jf}var zf={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"},zu=class{constructor(){l(this,"_placeHolderNameCounts",{});l(this,"_signatureToName",{})}getStartTagPlaceholderName(e,n,r){let s=this._hashTag(e,n,r);if(this._signatureToName[s])return this._signatureToName[s];let i=e.toUpperCase(),o=zf[i]||`TAG_${i}`,a=this._generateUniqueName(r?o:`START_${o}`);return this._signatureToName[s]=a,a}getCloseTagPlaceholderName(e){let n=this._hashClosingTag(e);if(this._signatureToName[n])return this._signatureToName[n];let r=e.toUpperCase(),s=zf[r]||`TAG_${r}`,i=this._generateUniqueName(`CLOSE_${s}`);return this._signatureToName[n]=i,i}getPlaceholderName(e,n){let r=e.toUpperCase(),s=`PH: ${r}=${n}`;if(this._signatureToName[s])return this._signatureToName[s];let i=this._generateUniqueName(r);return this._signatureToName[s]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,n){let r=this._hashBlock(e,n);if(this._signatureToName[r])return this._signatureToName[r];let s=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[r]=s,s}getCloseBlockPlaceholderName(e){let n=this._hashClosingBlock(e);if(this._signatureToName[n])return this._signatureToName[n];let r=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[n]=r,r}_hashTag(e,n,r){let s=`<${e}`,i=Object.keys(n).sort().map(a=>` ${a}=${n[a]}`).join(""),o=r?"/>":`></${e}>`;return s+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,n){let r=n.length===0?"":` (${n.sort().join("; ")})`;return`@${e}${r} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let r=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=r+1,`${e}_${r}`}},jC=new yl(new Ko);function zC(t,e){let n=new Ku(jC,t,e);return(r,s,i,o,a)=>n.toI18nMessage(r,s,i,o,a)}function KC(t,e){return e}var Ku=class{constructor(e,n,r){l(this,"_expressionParser");l(this,"_retainEmptyTokens");l(this,"_preserveExpressionWhitespace");this._expressionParser=e,this._retainEmptyTokens=n,this._preserveExpressionWhitespace=r}toI18nMessage(e,n="",r="",s="",i){let o={isIcu:e.length==1&&e[0]instanceof ls,icuDepth:0,placeholderRegistry:new zu,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||KC},a=me(this,e,o);return new Tt(a,o.placeholderToContent,o.placeholderToMessage,n,r,s)}visitElement(e,n){return this._visitElementLike(e,n)}visitComponent(e,n){return this._visitElementLike(e,n)}visitDirective(e,n){throw new Error("Unreachable code")}visitAttribute(e,n){let r=e.valueTokens===void 0||e.valueTokens.length===1?new Oi(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 Oi(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 Ya(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(a=>{r[a.value]=new Gn(a.expression.map(c=>c.visit(this,n)),a.expSourceSpan)}),n.icuDepth--,n.isIcu||n.icuDepth>0){let a=n.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return s.expressionPlaceholder=a,n.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},n.visitNodeFn(e,s)}let i=n.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());n.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new fi(s,i,e.sourceSpan);return n.visitNodeFn(e,o)}visitExpansionCase(e,n){throw new Error("Unreachable code")}visitBlock(e,n){var c;let r=me(this,e.children,n);if(e.name==="switch")return new Gn(r,e.sourceSpan);let s=e.parameters.map(u=>u.expression),i=n.placeholderRegistry.getStartBlockPlaceholderName(e.name,s),o=n.placeholderRegistry.getCloseBlockPlaceholderName(e.name);n.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},n.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:(c=e.endSourceSpan)!=null?c:e.sourceSpan};let a=new Pr(e.name,s,i,o,r,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,a)}visitBlockParameter(e,n){throw new Error("Unreachable code")}visitLetDeclaration(e,n){return null}_visitElementLike(e,n){var d;let r=me(this,e.children,n),s={},i=p=>{s[p.name]=p.value},o,a;e instanceof Xt?(o=e.name,a=ju(e.name).isVoid):(o=e.fullName,a=e.tagName?ju(e.tagName).isVoid:!1),e.attrs.forEach(i),e.directives.forEach(p=>p.attrs.forEach(i));let c=n.placeholderRegistry.getStartTagPlaceholderName(o,s,a);n.placeholderToContent[c]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let u="";a||(u=n.placeholderRegistry.getCloseTagPlaceholderName(o),n.placeholderToContent[u]={text:`</${o}>`,sourceSpan:(d=e.endSourceSpan)!=null?d:e.sourceSpan});let h=new Rr(o,s,c,u,r,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return n.visitNodeFn(e,h)}_visitTextWithInterpolation(e,n,r,s){let i=[],o=!1;for(let a of e)switch(a.type){case 8:case 17:o=!0;let[c,u,h]=a.parts,d=ZC(u)||"INTERPOLATION",p=r.placeholderRegistry.getPlaceholderName(d,u);if(this._preserveExpressionWhitespace)r.placeholderToContent[p]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new ko(u,p,a.sourceSpan));else{let g=this.normalizeExpression(a);r.placeholderToContent[p]={text:`${c}${g}${h}`,sourceSpan:a.sourceSpan},i.push(new ko(g,p,a.sourceSpan))}break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let g=i[i.length-1];g instanceof Oi?(g.value+=a.parts[0],g.sourceSpan=new G(g.sourceSpan.start,a.sourceSpan.end,g.sourceSpan.fullStart,g.sourceSpan.details)):i.push(new Oi(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new Oi(a.parts[0],a.sourceSpan));break}return o?(XC(i,s),new Gn(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 XC(t,e){if(e instanceof Tt&&(YC(e),e=e.nodes[0]),e instanceof Gn){QC(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}function YC(t){let e=t.nodes;if(e.length!==1||!(e[0]instanceof Gn))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}function QC(t,e){if(t.length!==e.length)throw new Error(`
|
|
23
23
|
The number of i18n message children changed between first and second pass.
|
|
24
24
|
|
|
25
25
|
First pass (${t.length} tokens):
|
|
@@ -29,21 +29,21 @@ ${t.map(n=>`"${n.sourceSpan.toString()}"`).join(`
|
|
|
29
29
|
Second pass (${e.length} tokens):
|
|
30
30
|
${e.map(n=>`"${n.sourceSpan.toString()}"`).join(`
|
|
31
31
|
`)}
|
|
32
|
-
`.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 QC=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function JC(t){return t.split(QC)[2]}var Kf=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function Xf(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Kf.has(t+"|"+e)||Kf.has("*|"+e)}var ZC=t=>(e,n)=>{var s;let r=(s=t.get(e))!=null?s:e;return r instanceof Yn&&(n instanceof fi&&r.i18n instanceof wt&&(n.previousMessage=r.i18n),r.i18n=n),n},vl=class{constructor(e=!1,n=!1,r=!0,s=!r){l(this,"keepI18nAttrs");l(this,"enableI18nLegacyMessageIdFormat");l(this,"preserveSignificantWhitespace");l(this,"retainEmptyTokens");l(this,"hasI18nMeta",!1);l(this,"_errors",[]);this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=n,this.preserveSignificantWhitespace=r,this.retainEmptyTokens=s}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),c=jC(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 ml(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 fi){let i=s.name;r=this._generateI18nMessage([e],s);let o=gm(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 me(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(cw(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===dm){let o=e.i18n||i.value,a=new Map,c=this.preserveSignificantWhitespace?e.children:Tn(new gl(!1,a),e.children);n=this._generateI18nMessage(c,o,ZC(a)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(cu)){let o=i.name.slice(cu.length),a;e instanceof yt?a=e.tagName===null?!1:Xf(e.tagName,o):a=Xf(e.name,o),a?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)}me(this,e.children,n)}_parseMetadata(e){return typeof e=="string"?nN(e):e instanceof wt?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof wt&&n.id||pE(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[uE(e),Zd(e)];else if(typeof n!="string"){let r=n instanceof wt?n:n instanceof fi?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new V(e.sourceSpan,n))}},eN="|",tN="@@";function nN(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(tN),i=t.indexOf(eN),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 rN(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}),im(e)}function sN(t,e,n,r){let s=oN(e),i=[S(s)];Object.keys(r).length&&(i.push(_u(Sp(r,!0),!0)),i.push(_u({original_code:Ct(Object.keys(r).map(c=>({key:sa(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 Xe(n.name,Z("goog").prop("getMsg").callFn(i,null,void 0,[go()]),dn,Ue.Final);o.addLeadingComment(rN(e));let a=new et(t.set(n));return[o,a]}var Ku=class{formatPh(e){return`{$${sa(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return Jm(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)}},iN=new Ku;function oN(t){return t.nodes.map(e=>e.visit(iN,null)).join("")}function aN(t,e,n){let{messageParts:r,placeHolders:s}=lN(e),i=cN(e),o=s.map(u=>n[u.text]),a=lm(e,r,s,o,i),c=t.set(a);return[new et(c,null,[go()])]}var Xu=class{constructor(e,n){l(this,"placeholderToMessage");l(this,"pieces");this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof yr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new G(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new yr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new yr(Jm(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 ns(sa(e,!1),n,r)}};function lN(t){let e=[],n=new Xu(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),uN(e)}function cN(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new G(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function uN(t){let e=[],n=[];t[0]instanceof ns&&e.push(Ac(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof yr?e.push(s):(n.push(s),t[r-1]instanceof ns&&e.push(Ac(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof ns&&e.push(Ac(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function Ac(t){return new yr("",new G(t,t))}var Yf="ngI18nClosureMode",pN="i18n_",hN="I18N_EXP_",Qf="\uFFFD",fN="MSG_";function Jf(t){return`${fN}${t}`.toUpperCase()}function dN(t){return new Xe(t.name,void 0,dn,void 0,t.sourceSpan)}function mN(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===ws.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,a=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}=og(t,e,i,d);if(d.i18nBlock!==null){let v=t.addConst(p,g);a.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()}}T.remove(d)}for(let h of t.units)for(let d of h.create)if(Ur(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(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 Mt(E))}for(let h of t.units)for(let d of h.create)if(d.kind===f.I18nStart){let p=a.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 og(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}=og(t,e,n,d);s.push(...g);let v=(u=i.get(d.messagePlaceholder))!=null?u:[];v.push(p),i.set(d.messagePlaceholder,v)}gN(r,i),r.params=new Map([...r.params.entries()].sort());let o=Z(t.pool.uniqueName(pN),Ke),a=SN(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=Sp(h,!1),p=[];r.postprocessingParams.size>0&&p.push(_u(d,!0)),c=g=>R(m.i18nPostprocess).callFn([g,...p])}return s.push(...yN(r.message,o,a,r.params,c)),{mainVar:o,statements:s}}function gN(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,S(`${Qf}${hN}${n}${Qf}`)),t.postprocessingParams.set(n,ce(r)))}function yN(t,e,n,r,s){let i=Object.fromEntries(r),o=[dN(e),na(vN(),sN(e,t,n,i),aN(e,t,Sp(i,!1)))];return s&&o.push(new et(e.set(s(e)))),o}function vN(){return Ei(Z(Yf)).notIdentical(S("undefined",Dl)).and(Z(Yf))}function SN(t,e,n,r){let s,i=n;if(r){let o=Jf("EXTERNAL_"),a=t.uniqueName(i);s=`${o}${Jr(e)}$$${a}`}else{let o=Jf(i);s=t.uniqueName(o)}return Z(s)}function EN(t){var e,n,r;for(let s of t.units){let i=null,o=null,a=new Map,c=new Map,u=new Map;for(let 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(a.set(h.xref,i),c.set(h.xref,o),h.icuPlaceholder!==null){let d=BT(t.allocateXrefId(),h.icuPlaceholder,[h.initialValue]);T.replace(h,d),u.set(h.xref,d)}else T.remove(h);break}for(let h of s.update)switch(h.kind){case f.InterpolateText:if(!a.has(h.target))continue;let d=a.get(h.target),p=c.get(h.target),g=u.get(h.target),v=p?p.context:d.context,E=p?mi.Postproccessing:mi.Creation,I=[];for(let D=0;D<h.interpolation.expressions.length;D++){let k=h.interpolation.expressions[D];I.push($m(v,d.xref,d.xref,d.handle,k,(e=g==null?void 0:g.xref)!=null?e:null,(n=h.interpolation.i18nPlaceholders[D])!=null?n:null,E,ws.I18nText,"",(r=k.sourceSpan)!=null?r:h.sourceSpan))}T.replaceWithMany(h,I),g!==void 0&&(g.strings=h.interpolation.strings);break}}}function wN(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=TN(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function TN(t){let e=[];for(let n of t)e.push(S(n.name),S(n.target));return ce(e)}function xN(t){for(let e of t.units){let n=Fe.HTML;for(let r of e.create)r.kind===f.ElementStart&&r.namespace!==n&&(T.insertBefore(kT(r.namespace),r),n=r.namespace)}}function CN(t){let e=[],n=0,r=0,s=0,i=0,o=0,a=null;for(;n<t.length;)switch(t.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:s===0?s=39:s===39&&t.charCodeAt(n-1)!==92&&(s=0);break;case 34:s===0?s=34:s===34&&t.charCodeAt(n-1)!==92&&(s=0);break;case 58:!a&&r===0&&s===0&&(a=ag(t.substring(o,n-1).trim()),i=n);break;case 59:if(a&&i>0&&r===0&&s===0){let u=t.substring(i,n-1).trim();e.push(a,u),o=n,i=0,a=null}break}if(a&&i){let c=t.slice(i).trim();e.push(a,c)}return e}function ag(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function NN(t){let e=new Map;for(let n of t.units)for(let r of n.create)Ur(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&&Bm(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===Tt.Structural)continue;if(r.name==="style"){let i=CN(r.expression.value);for(let o=0;o<i.length-1;o+=2)T.insertBefore(Zt(r.target,M.StyleProperty,null,i[o],S(i[o+1]),null,null,re.STYLE),r);T.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)T.insertBefore(Zt(r.target,M.ClassName,null,o,null,null,null,re.NONE),r);T.remove(r)}}}function IN(t){Ki(t.root,t.componentName,{index:0})}function Ki(t,e,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Jr(`${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=Jr(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=Jr(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=Jr(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=Jr(`${t.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case f.Variable:r.set(s.xref,AN(s.variable,n));break;case f.RepeaterCreate:if(!(t instanceof en))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);Ki(u,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,n)}Ki(t.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,n);break;case f.Projection:if(!(t instanceof en))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);Ki(u,`${e}_ProjectionFallback_${s.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 a=t.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;Ki(a,`${e}${c}_${s.handle.slot}`,n);break;case f.StyleProp:s.name=Zf(DN(s.name));break;case f.ClassProp:s.name=Zf(s.name);break}for(let s of t.ops())$e(s,i=>{if(!(!(i instanceof Hn)||i.name!==null)){if(!r.has(i.xref))throw new Error(`Variable ${i.xref} not yet named`);i.name=r.get(i.xref)}})}function AN(t,e){if(t.name===null)switch(t.kind){case Qe.Context:t.name=`ctx_r${e.index++}`;break;case Qe.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 DN(t){return t.startsWith("--")?t:ag(t)}function Zf(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function bN(t){for(let e of t.units){for(let n of e.functions)Dc(n.ops);for(let n of e.create)(n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener)&&Dc(n.handlerOps);Dc(e.update)}}function Dc(t){for(let e of t){if(e.kind!==f.Statement||!(e.statement instanceof et)||!(e.statement.expr instanceof tl))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==f.ListEnd&&r;s=s.next)$e(s,(i,o)=>{if(!Ln(i))return i;if(r&&!(o&K.InChildOperation))switch(i.kind){case F.NextContext:i.steps+=n,T.remove(e),r=!1;break;case F.GetCurrentView:case F.Reference:case F.ContextLetReference:r=!1;break}})}}var kN="ng-container";function _N(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===f.ElementStart&&r.tag===kN&&(r.kind=f.ContainerStart,n.add(r.xref)),r.kind===f.ElementEnd&&n.has(r.xref)&&(r.kind=f.ContainerEnd)}}function RN(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 PN(t){let e=new Map;for(let n of t.units)for(let r of n.create)Ur(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&&T.insertAfter(NT(r.xref),r),(r.kind===f.ElementEnd||r.kind===f.ContainerEnd)&&RN(e,r.xref).nonBindable&&T.insertBefore(IT(r.xref),r)}function In(t){return e=>e.kind===t}function Zi(t,e){return n=>n.kind===t&&e===n.expression instanceof De}function LN(t){return t.kind===f.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===f.TwoWayListener||t.kind===f.Animation||t.kind===f.AnimationListener}function MN(t){return(t.kind===f.Property||t.kind===f.TwoWayProperty)&&!(t.expression instanceof De)}var ON=[{test:t=>t.kind===f.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:LN}],FN=[{test:In(f.StyleMap),transform:Sl},{test:In(f.ClassMap),transform:Sl},{test:In(f.StyleProp)},{test:In(f.ClassProp)},{test:Zi(f.Attribute,!0)},{test:Zi(f.Property,!0)},{test:MN},{test:Zi(f.Attribute,!1)},{test:In(f.Control)}],$N=[{test:Zi(f.DomProperty,!0)},{test:Zi(f.DomProperty,!1)},{test:In(f.Attribute)},{test:In(f.StyleMap),transform:Sl},{test:In(f.ClassMap),transform:Sl},{test:In(f.StyleProp)},{test:In(f.ClassProp)}],ed=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 BN(t){for(let e of t.units){td(e.create,ON);let n=e.job.kind===b.Host?$N:FN;td(e.update,n)}}function td(t,e){let n=[],r=null;for(let s of t){let i=Fo(s)?s.target:null;(!ed.has(s.kind)||i!==r&&r!==null&&i!==null)&&(T.insertBefore(nd(n,e),s),n=[],r=null),ed.has(s.kind)&&(n.push(s),T.remove(s),r=i!=null?i:r)}t.push(nd(n,e))}function nd(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 Sl(t){return t.slice(t.length-1)}function UN(t){for(let e of t.units){let n=Km(e);for(let r of e.ops())if(r.kind===f.Binding){let s=GN(n,r.target);VN(r.name)&&s.kind===f.Projection&&T.remove(r)}}}function VN(t){return t.toLowerCase()==="select"}function GN(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function HN(t){for(let e of t.units)qN(e)}function qN(t){for(let e of t.update)$e(e,(n,r)=>{if(!Ln(n)||n.kind!==F.PipeBinding)return;if(r&K.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");WN(t,e.target,n)})}function WN(t,e,n){for(let r=t.create.head.next;r.kind!==f.ListEnd;r=r.next){if(!xi(r)||r.xref!==e)continue;for(;r.next.kind===f.Pipe;)r=r.next;let s=bT(n.target,n.targetSlot,n.name);T.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function jN(t){for(let e of t.units)for(let n of e.update)xe(n,r=>!(r instanceof Cs)||r.args.length<=4?r:new Vo(r.target,r.targetSlot,r.name,ce(r.args),r.args.length),K.None)}function zN(t){lg(t.root,0)}function lg(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=xa(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case f.RepeaterCreate:let s=t.job.views.get(r.xref);e=xa(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=xa(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break;case f.Projection:r.fallbackView!==null&&(e=xa(t.job.views.get(r.fallbackView),n,r.fallbackViewI18nPlaceholder,e));break}return e}function xa(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++,KN(t,e)}return lg(t,r)}function KN(t,e){var n;if(((n=t.create.head.next)==null?void 0:n.kind)!==f.I18nStart){let r=t.job.allocateXrefId();T.insertAfter(Pl(r,e.message,e.root,null),t.create.head),T.insertBefore(Ll(r,null),t.create.tail)}}function XN(t){for(let e of t.units)for(let n of e.ops())$e(n,r=>{if(!(r instanceof xs)||r.body===null)return;let s=new Yu(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var Yu=class extends fo{constructor(n){super();l(this,"numArgs");this.numArgs=n}keyOf(n){return n instanceof $r?`param(${n.index})`:super.keyOf(n)}toSharedConstantDeclaration(n,r){let s=[];for(let o=0;o<this.numArgs;o++)s.push(new Be("a"+o,Ke));let i=P(r,o=>o instanceof $r?Z("a"+o.index):o,K.None);return new Xe(n,new gn(s,i),void 0,Ue.Final)}};function YN(t){for(let e of t.units)for(let n of e.update)xe(n,(r,s)=>s&K.InChildOperation?r:r instanceof Mt?QN(r):r instanceof sn?JN(r):r,K.None)}function QN(t){let e=[],n=[];for(let r of t.entries){if(r instanceof Nr){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new Nr(new $r(s)))}continue}if(r.isConstant())e.push(r);else{let s=n.length;n.push(r),e.push(new $r(s))}}return new xs(ce(e),n)}function JN(t){let e=[],n=[];for(let r of t.entries){if(r instanceof yn){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new yn(new $r(s)))}continue}if(r.value.isConstant())e.push(r);else{let s=n.length;n.push(r.value),e.push(new Cr(r.key,new $r(s),r.quoted))}}return new xs(new sn(e),n)}function ZN(t){for(let e of t.units)for(let n of e.ops())xe(n,r=>r instanceof ps&&(r.flags===null||!r.flags.includes("g"))?t.pool.getSharedConstant(new Qu,r):r,K.None)}var Qu=class extends fo{toSharedConstantDeclaration(e,n){return new Xe(e,n,void 0,Ue.Final)}};function eI(t,e,n,r,s){return Wr(m.element,t,e,n,r,s)}function tI(t,e,n,r,s){return Wr(m.elementStart,t,e,n,r,s)}function Wr(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 cg(t,e,n,r,s,i,o,a,c){let u=[S(e),n,S(r),S(s),S(i),S(o)];for(a!==null&&(u.push(S(a)),u.push(R(m.templateRefExtractor)));u[u.length-1].isEquivalent(hs);)u.pop();return z(t,u,c)}function kp(t,e,n,r,s){let i=[S(e)];return n instanceof De?i.push(Ci(n,s)):i.push(n),r!==null&&i.push(r),z(t,i,s)}function nI(t){return z(m.elementEnd,[],t)}function rI(t,e,n,r){return Wr(m.elementContainerStart,t,null,e,n,r)}function sI(t,e,n,r){return Wr(m.elementContainer,t,null,e,n,r)}function iI(){return z(m.elementContainerEnd,[],null)}function oI(t,e,n,r,s,i,o,a){return cg(m.templateCreate,t,e,n,r,s,i,o,a)}function aI(){return z(m.disableBindings,[],null)}function lI(){return z(m.enableBindings,[],null)}function cI(t,e,n,r,s){let i=[S(t),e];return n!==null&&i.push(R(n)),z(r?m.syntheticHostListener:m.listener,i,s)}function rd(t,e){return R(m.twoWayBindingSet).callFn([t,e])}function uI(t,e,n){return z(m.twoWayListener,[S(t),e],n)}function pI(t,e){return z(m.pipe,[S(t),S(e)],null)}function hI(){return z(m.namespaceHTML,[],null)}function fI(){return z(m.namespaceSVG,[],null)}function dI(){return z(m.namespaceMathML,[],null)}function mI(t,e){return z(m.advance,t>1?[S(t)]:[],e)}function gI(t){return R(m.reference).callFn([S(t)])}function yI(t){return R(m.nextContext).callFn(t===1?[]:[S(t)])}function vI(){return R(m.getCurrentView).callFn([])}function SI(t){return R(m.restoreView).callFn([t])}function EI(t){return R(m.resetView).callFn([t])}function wI(t,e,n){let r=[S(t,null)];return e!==""&&r.push(S(e)),z(m.text,r,n)}function TI(t,e,n,r,s,i,o,a,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),a!=null?a:S(null),c?R(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)}function xI(t){return z(m.enableIncrementalHydrationRuntime,[],t)}var CI=new Map([[le.Idle,{none:m.deferOnIdle,prefetch:m.deferPrefetchOnIdle,hydrate:m.deferHydrateOnIdle}],[le.Immediate,{none:m.deferOnImmediate,prefetch:m.deferPrefetchOnImmediate,hydrate:m.deferHydrateOnImmediate}],[le.Timer,{none:m.deferOnTimer,prefetch:m.deferPrefetchOnTimer,hydrate:m.deferHydrateOnTimer}],[le.Hover,{none:m.deferOnHover,prefetch:m.deferPrefetchOnHover,hydrate:m.deferHydrateOnHover}],[le.Interaction,{none:m.deferOnInteraction,prefetch:m.deferPrefetchOnInteraction,hydrate:m.deferHydrateOnInteraction}],[le.Viewport,{none:m.deferOnViewport,prefetch:m.deferPrefetchOnViewport,hydrate:m.deferHydrateOnViewport}],[le.Never,{none:m.deferHydrateNever,prefetch:m.deferHydrateNever,hydrate:m.deferHydrateNever}]]);function NI(t,e,n,r){var i;let s=(i=CI.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 II(t){return z(m.projectionDef,t?[t]:[],null)}function AI(t,e,n,r,s,i,o){let a=[S(t)];return(e!==0||n!==null||r!==null)&&(a.push(S(e)),n!==null&&a.push(n),r!==null&&(n===null&&a.push(S(null)),a.push(Z(r),S(s),S(i)))),z(m.projection,a,o)}function DI(t,e,n,r){let s=[S(t),S(e)];return n!==null&&s.push(S(n)),z(m.i18nStart,s,r)}function bI(t,e,n,r,s,i,o,a){let c=[S(t),e,S(n),S(r),S(s),S(i)];for(o!==null&&(c.push(S(o)),c.push(R(m.templateRefExtractor)));c[c.length-1].isEquivalent(hs);)c.pop();return z(m.conditionalCreate,c,a)}function kI(t,e,n,r,s,i,o,a){let c=[S(t),e,S(n),S(r),S(s),S(i)];for(o!==null&&(c.push(S(o)),c.push(R(m.templateRefExtractor)));c[c.length-1].isEquivalent(hs);)c.pop();return z(m.conditionalBranchCreate,c,a)}function _I(t,e,n,r,s,i,o,a,c,u,h,d,p,g){let v=[S(t),Z(e),S(n),S(r),S(s),S(i),o];return(a||c!==null)&&(v.push(S(a)),c!==null&&(v.push(Z(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 RI(t,e){return z(m.repeater,[t],e)}function PI(t,e,n){return t==="prefetch"?z(m.deferPrefetchWhen,[e],n):t==="hydrate"?z(m.deferHydrateWhen,[e],n):z(m.deferWhen,[e],n)}function LI(t,e){return z(m.declareLet,[S(t)],e)}function MI(t,e){return R(m.storeLet).callFn([t],e)}function OI(t){return R(m.readContextLet).callFn([S(t)])}function FI(t,e,n,r){let s=[S(t),S(e)];return n&&s.push(S(n)),z(m.i18n,s,r)}function $I(t){return z(m.i18nEnd,[],t)}function BI(t,e){let n=[S(t),S(e)];return z(m.i18nAttributes,n,null)}function UI(t,e,n){return kp(m.ariaProperty,t,e,null,n)}function VI(t,e,n,r){return kp(m.property,t,e,n,r)}function GI(t){return z(m.control,[],t)}function HI(t){return z(m.controlCreate,[],t)}function qI(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(n),z(m.twoWayProperty,s,r)}function WI(t,e,n,r,s){let i=[S(t)];return e instanceof De?i.push(Ci(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 jI(t,e,n,r){let s=[S(t)];return e instanceof De?s.push(Ci(e,r)):s.push(e),n!==null&&s.push(S(n)),z(m.styleProp,s,r)}function zI(t,e,n){return z(m.classProp,[S(t),e],n)}function KI(t,e){let n=t instanceof De?Ci(t,e):t;return z(m.styleMap,[n],e)}function XI(t,e){let n=t instanceof De?Ci(t,e):t;return z(m.classMap,[n],e)}function YI(t,e,n,r,s){return Wr(m.domElement,t,e,n,r,s)}function QI(t,e,n,r,s){return Wr(m.domElementStart,t,e,n,r,s)}function JI(t){return z(m.domElementEnd,[],t)}function ZI(t,e,n,r){return Wr(m.domElementContainerStart,t,null,e,n,r)}function eA(t,e,n,r){return Wr(m.domElementContainer,t,null,e,n,r)}function tA(){return z(m.domElementContainerEnd,[],null)}function nA(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(R(n)),z(m.domListener,s,r)}function rA(t,e,n,r,s,i,o,a){return cg(m.domTemplate,t,e,n,r,s,i,o,a)}var sd=[m.pipeBind1,m.pipeBind2,m.pipeBind3,m.pipeBind4];function sA(t,e,n){if(n.length<1||n.length>sd.length)throw new Error("pipeBind() argument count out of bounds");let r=sd[n.length-1];return R(r).callFn([S(t),S(e),...n])}function iA(t,e,n){return R(m.pipeBindV).callFn([S(t),S(e),n])}function oA(t,e,n){let r=ug(t,e);return wA(vA,[],r,n)}function aA(t,e){return z(m.i18nExp,[t],e)}function lA(t,e){return z(m.i18nApply,[S(t)],e)}function cA(t,e,n,r){return kp(m.domProperty,t,e,n,r)}function uA(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 pA(t,e,n,r){let i=[e instanceof De?Ci(e,r):e];n!==null&&i.push(n);let o=t==="enter"?m.animationEnter:m.animationLeave;return z(o,i,r)}function hA(t,e,n,r){let s=[e],i=t==="enter"?m.animationEnterListener:m.animationLeaveListener;return z(i,s,r)}function fA(t,e,n){return z(m.syntheticHostProperty,[S(t),e],n)}function dA(t,e,n){return _p(EA,[S(t),e],n,null)}function mA(t,e){return z(m.attachSourceLocations,[S(t),e],null)}function gA(t,e,n){return R(m.arrowFunction).callFn([S(t),e,n])}function ug(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 Ci(t,e){let n=ug(t.strings,t.expressions);return _p(SA,[],n,e)}function z(t,e,n){let r=R(t).callFn(e,n);return Wt(new et(r,n))}function yA(t,e,n){let r=[t];return e!==null&&r.push(e),z(m.conditional,r,n)}var vA={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}},SA={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}},EA={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 _p(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 R(t.constant[s]).callFn([...e,...n],r);if(t.variable!==null)return R(t.variable).callFn([...e,ce(n)],r);throw new Error("AssertionError: unable to call variadic function")}function wA(t,e,n,r){return Wt(_p(t,e,n,r).toStmt())}var TA=new Map([["window",m.resolveWindow],["document",m.resolveDocument],["body",m.resolveBody]]),xA=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function CA(t){for(let e of t.units)NA(e,e.create),Fl(e,e.update)}function NA(t,e){var n,r,s,i,o,a,c,u,h,d;for(let p of e)switch(xe(p,g=>pg(t,g),K.None),p.kind){case f.Text:T.replace(p,wI(p.handle.slot,p.initialValue,p.sourceSpan));break;case f.ElementStart:T.replace(p,t.job.mode===vt.DomOnly?QI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan):tI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.Element:T.replace(p,t.job.mode===vt.DomOnly?YI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan):eI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan));break;case f.ElementEnd:T.replace(p,t.job.mode===vt.DomOnly?JI(p.sourceSpan):nI(p.sourceSpan));break;case f.ContainerStart:T.replace(p,t.job.mode===vt.DomOnly?ZI(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan):rI(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan));break;case f.Container:T.replace(p,t.job.mode===vt.DomOnly?eA(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan):sI(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan));break;case f.ContainerEnd:T.replace(p,t.job.mode===vt.DomOnly?tA():iI());break;case f.I18nStart:T.replace(p,DI(p.handle.slot,p.messageIndex,p.subTemplateIndex,p.sourceSpan));break;case f.I18nEnd:T.replace(p,$I(p.sourceSpan));break;case f.I18n:T.replace(p,FI(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");T.replace(p,BI(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);T.replace(p,p.templateKind===Tt.Block||t.job.mode===vt.DomOnly?rA(p.handle.slot,Z(g.fnName),g.decls,g.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan):oI(p.handle.slot,Z(g.fnName),g.decls,g.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.DisableBindings:T.replace(p,aI());break;case f.EnableBindings:T.replace(p,lI());break;case f.Pipe:T.replace(p,pI(p.handle.slot,p.name));break;case f.DeclareLet:T.replace(p,LI(p.handle.slot,p.sourceSpan));break;case f.AnimationString:T.replace(p,pA(p.animationKind,p.expression,p.sanitizer,p.sourceSpan));break;case f.Animation:let v=Ca(t,p.handlerFnName,p.handlerOps,!1);T.replace(p,uA(p.animationKind,v,p.sanitizer,p.sourceSpan));break;case f.AnimationListener:let E=Ca(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent);T.replace(p,hA(p.animationKind,E,null,p.sourceSpan));break;case f.Listener:let I=Ca(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent),D=p.eventTarget?TA.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.`);T.replace(p,t.job.mode===vt.DomOnly&&!p.hostListener&&!p.isLegacyAnimationListener?nA(p.name,I,D,p.sourceSpan):cI(p.name,I,D,p.hostListener&&p.isLegacyAnimationListener,p.sourceSpan));break;case f.TwoWayListener:T.replace(p,uI(p.name,Ca(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}`);T.replace(p,Wt(new Xe(p.variable.name,p.initializer,Ke,Ue.Final)));break;case f.Namespace:switch(p.active){case Fe.HTML:T.replace(p,hI());break;case Fe.SVG:T.replace(p,fI());break;case Fe.Math:T.replace(p,dI());break}break;case f.Defer:let k=!!p.loadingMinimumTime||!!p.loadingAfterTime||!!p.placeholderMinimumTime;T.replace(p,TI(p.handle.slot,p.mainSlot.slot,p.resolverFn,(r=(n=p.loadingSlot)==null?void 0:n.slot)!=null?r:null,(i=(s=p.placeholderSlot)==null?void 0:s.slot)!=null?i:null,(a=(o=p.errorSlot)==null?void 0:o.slot)!=null?a:null,p.loadingConfig,p.placeholderConfig,k,p.sourceSpan,p.flags));break;case f.DeferOn:let _=[];switch(p.trigger.kind){case le.Never:case le.Immediate:break;case le.Idle:p.trigger.timeout!=null&&(_=[S(p.trigger.timeout)]);break;case le.Timer:_=[S(p.trigger.delay)];break;case le.Viewport:p.modifier==="hydrate"?_=p.trigger.options?[p.trigger.options]:[]:(_=[S((u=(c=p.trigger.targetSlot)==null?void 0:c.slot)!=null?u:null)],p.trigger.targetSlotViewSteps!==0?_.push(S(p.trigger.targetSlotViewSteps)):p.trigger.options&&_.push(S(null)),p.trigger.options&&_.push(p.trigger.options));break;case le.Interaction:case le.Hover:p.modifier==="hydrate"?_=[]:(_=[S((d=(h=p.trigger.targetSlot)==null?void 0:h.slot)!=null?d:null)],p.trigger.targetSlotViewSteps!==0&&_.push(S(p.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${p.trigger.kind}`)}T.replace(p,NI(p.trigger.kind,_,p.modifier,p.sourceSpan));break;case f.ProjectionDef:T.replace(p,II(p.def));break;case f.EnableIncrementalHydrationRuntime:T.replace(p,xI(p.sourceSpan));break;case f.Projection:if(p.handle.slot===null)throw new Error("No slot was assigned for project instruction");let H=null,X=null,ie=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");H=Pe.fnName,X=Pe.decls,ie=Pe.vars}T.replace(p,AI(p.handle.slot,p.projectionSlotIndex,p.attributes,H,X,ie,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 Re=t.job.views.get(p.xref);T.replace(p,bI(p.handle.slot,Z(Re.fnName),Re.decls,Re.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 we=t.job.views.get(p.xref);T.replace(p,kI(p.handle.slot,Z(we.fnName),we.decls,we.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 bt=t.job.views.get(p.xref);if(bt.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let Xr=null,rr=null,sr=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");Xr=Pe.fnName,rr=Pe.decls,sr=Pe.vars}T.replace(p,_I(p.handle.slot,bt.fnName,p.decls,p.vars,p.tag,p.attributes,DA(t,p),p.usesComponentInstance,Xr,rr,sr,p.emptyTag,p.emptyAttributes,p.wholeSourceSpan));break;case f.SourceLocation:let ga=ce(p.locations.map(({targetSlot:Pe,offset:ya,line:Pi,column:KS})=>{if(Pe.slot===null)throw new Error("No slot was assigned for source location");return ce([S(Pe.slot),S(ya),S(Pi),S(KS)])}));T.replace(p,mA(p.templatePath,ga));break;case f.ControlCreate:T.replace(p,HI(p.sourceSpan));break;case f.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${f[p.kind]}`)}}function Fl(t,e){for(let n of e)switch(xe(n,r=>pg(t,r),K.None),n.kind){case f.Advance:T.replace(n,mI(n.delta,n.sourceSpan));break;case f.Property:T.replace(n,t.job.mode===vt.DomOnly&&n.bindingKind!==M.LegacyAnimation&&n.bindingKind!==M.Animation?id(n):IA(n));break;case f.Control:T.replace(n,AA(n));break;case f.TwoWayProperty:T.replace(n,qI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.StyleProp:T.replace(n,jI(n.name,n.expression,n.unit,n.sourceSpan));break;case f.ClassProp:T.replace(n,zI(n.name,n.expression,n.sourceSpan));break;case f.StyleMap:T.replace(n,KI(n.expression,n.sourceSpan));break;case f.ClassMap:T.replace(n,XI(n.expression,n.sourceSpan));break;case f.I18nExpression:T.replace(n,aA(n.expression,n.sourceSpan));break;case f.I18nApply:T.replace(n,lA(n.handle.slot,n.sourceSpan));break;case f.InterpolateText:T.replace(n,oA(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case f.Attribute:T.replace(n,WI(n.name,n.expression,n.sanitizer,n.namespace,n.sourceSpan));break;case f.DomProperty:if(n.expression instanceof De)throw new Error("not yet handled");n.bindingKind===M.LegacyAnimation||n.bindingKind===M.Animation?T.replace(n,fA(n.name,n.expression,n.sourceSpan)):T.replace(n,id(n));break;case f.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);T.replace(n,Wt(new Xe(n.variable.name,n.initializer,Ke,Ue.Final)));break;case f.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");T.replace(n,yA(n.processed,n.contextValue,n.sourceSpan));break;case f.Repeater:T.replace(n,RI(n.collection,n.sourceSpan));break;case f.DeferWhen:T.replace(n,PI(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 id(t){var e;return cA((e=xA.get(t.name))!=null?e:t.name,t.expression,t.sanitizer,t.sourceSpan)}function IA(t){return Xm(t.name)?UI(t.name,t.expression,t.sourceSpan):VI(t.name,t.expression,t.sanitizer,t.sourceSpan)}function AA(t){return GI(t.sourceSpan)}function pg(t,e){if(!Ln(e))return e;switch(e.kind){case F.NextContext:return yI(e.steps);case F.Reference:return gI(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 SI(e.view);case F.ResetView:return EI(e.expr);case F.GetCurrentView:return vI();case F.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return Z(e.name);case F.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return Z(e.name);case F.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return Z(e.name).set(e.expr);case F.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return dA(e.varOffset,e.fn,e.args);case F.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case F.PipeBinding:return sA(e.targetSlot.slot,e.varOffset,e.args);case F.PipeBindingVariadic:return iA(e.targetSlot.slot,e.varOffset,e.args);case F.SlotLiteralExpr:return S(e.slot.slot);case F.ContextLetReference:return OI(e.targetSlot.slot);case F.StoreLet:return MI(e.value,e.sourceSpan);case F.TrackContext:return Z("this");case F.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return gA(e.varOffset,t.job.pool.getSharedFunctionReference(bA(t,e),"arrowFn"),Z(qt));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${F[e.kind]}`)}}function Ca(t,e,n,r){Fl(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 Be("$event",Ke)),Wn(i,s,void 0,void 0,e)}function DA(t,e){if(e.trackByFn!==null)return e.trackByFn;let n=[new Be("$index",Tr),new Be("$item",Ke)],r;if(e.trackByOps===null)r=e.usesComponentInstance?Wn(n,[new ke(e.track)]):Nt(n,e.track);else{Fl(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 ke)?Wn(n,s):Nt(n,s[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(r,"_forTrack"),e.trackByFn}function bA(t,e){Fl(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 ke?n[0].value:n;return Nt([new Be(e.contextName,Ke),new Be(e.currentViewName,Ke)],Nt(e.parameters,r))}function kA(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 Ho&&T.remove(n);break}}function _A(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.I18nContext:T.remove(n);break;case f.I18nStart:n.context=null;break}}function RA(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.Variable||n.variable.kind!==Qe.Identifier||!(n.initializer instanceof $o))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==f.ListEnd;)xe(s,i=>i instanceof Ye&&i.name===r?S(void 0):i,K.None),s=s.prev}}function PA(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;T.remove(r)}}}function LA(t){for(let e of t.units){for(let n of e.functions)eo(e,n.ops);eo(e,e.create),eo(e,e.update)}}function eo(t,e){let n=new Map;n.set(t.xref,Z(qt));for(let r of e)switch(r.kind){case f.Variable:r.variable.kind===Qe.Context&&n.set(r.variable.view,new Hn(r.xref));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:eo(t,r.handlerOps);break;case f.RepeaterCreate:r.trackByOps!==null&&eo(t,r.trackByOps);break}t===t.job.root&&n.set(t.xref,Z(qt));for(let r of e)xe(r,s=>{if(s instanceof Fr){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},K.None)}function MA(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 OA(t){for(let e of t.units)od(e.create),od(e.update)}function od(t){for(let e of t)(e.kind===f.Listener||e.kind===f.TwoWayListener||e.kind===f.AnimationListener)&&xe(e,n=>n instanceof Ye&&n.name==="$event"?((e.kind===f.Listener||e.kind===f.AnimationListener)&&(e.consumesDollarEvent=!0),new tn(n.name)):n,K.InChildOperation)}function FA(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}xn(t,t.root,e,n)}function xn(t,e,n,r,s){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case f.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:n.get(a.context)};break;case f.I18nEnd:i=null;break;case f.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ad(a,i.i18nContext,i.i18nBlock,s),s&&a.i18nPlaceholder.closeName&&o.set(a.xref,s),s=void 0}break;case f.ElementEnd:let c=r.get(a.xref);if(c&&c.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");ld(c,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case f.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ad(a,i.i18nContext,i.i18nBlock,s),ld(a,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.fallbackView!==null){let p=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)xn(t,p,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Na(t,p,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),xn(t,p,n,r),Ia(t,p,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break;case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:let u=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)xn(t,u,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===Tt.Structural?xn(t,u,n,r,a):(Na(t,u,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),xn(t,u,n,r),Ia(t,u,a.handle.slot,a.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=a.handle.slot+1,d=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)xn(t,d,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Na(t,d,h,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),xn(t,d,n,r),Ia(t,d,h,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.emptyView!==null){let p=a.handle.slot+2,g=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)xn(t,g,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Na(t,g,p,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),xn(t,g,n,r),Ia(t,g,p,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function ad(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=pe.ElementTag|pe.OpenTag,a=t.handle.slot;r!==void 0&&(o|=pe.TemplateTag,a={element:a,template:r.handle.slot}),i||(o|=pe.CloseTag),vi(e.params,s,a,n.subTemplateIndex,o)}function ld(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=pe.ElementTag|pe.CloseTag,o=t.handle.slot;r!==void 0&&(i|=pe.TemplateTag,o={element:o,template:r.handle.slot}),vi(e.params,s,o,n.subTemplateIndex,i)}}function Na(t,e,n,r,s,i,o){let{startName:a,closeName:c}=r,u=pe.TemplateTag|pe.OpenTag;c||(u|=pe.CloseTag),o!==void 0&&vi(s.params,a,o.handle.slot,i.subTemplateIndex,u),vi(s.params,a,n,hg(t,i,e),u)}function Ia(t,e,n,r,s,i,o){let{closeName:a}=r,c=pe.TemplateTag|pe.CloseTag;a&&(vi(s.params,a,n,hg(t,i,e),c),o!==void 0&&vi(s.params,a,o.handle.slot,i.subTemplateIndex,c))}function hg(t,e,n){for(let r of n.create)if(r.kind===f.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function vi(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 $A(t){var o;let e=new Map,n=new Map,r=new Map;for(let a of t.units)for(let c of a.create)switch(c.kind){case 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=a=>a.usage===ws.I18nText?a.i18nOwner:a.context;for(let a of t.units)for(let c of a.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:pe.ExpressionIndex};BA(c,d,n,r),s.set(i(c),u+1)}}function BA(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===mi.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 UA(t){var n,r;let e=new Map;for(let s of t.units)for(let i of s.ops())if(i.kind===f.ElementStart||i.kind===f.Template){let o=(n=i.tag)!=null?n:"";switch(i.namespace){case Fe.SVG:o=`:${Ml}:${o}`;break;case Fe.Math:o=`:${Ol}:${o}`;break}e.set(i.xref,o)}for(let s of t.units)for(let i of s.create)if(i.kind===f.ExtractedAttribute&&i.i18nContext!==null&&i.expression!==null){let o=(r=e.get(i.target))!=null?r:"",a=i.expression;switch(i.securityContext){case re.HTML:a=R(m.sanitizeHtml).callFn([a]);break;case re.STYLE:a=R(m.sanitizeStyle).callFn([a]);break;case re.SCRIPT:a=R(m.sanitizeScript).callFn([a]);break;case re.URL:a=R(m.sanitizeUrl).callFn([a]);break;case re.RESOURCE_URL:a=R(m.sanitizeResourceUrl).callFn([a]);break;case re.ATTRIBUTE_NO_BINDING:a=R(m.validateAttribute).callFn([a,S(o),S(i.name)]);break}i.expression=a}}function VA(t){for(let e of t.units){for(let n of e.functions)to(e,n.ops,null);to(e,e.create,null),to(e,e.update,null)}}function to(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 Qe.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 Qe.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Qe.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:to(t,i.handlerOps,n);break;case f.RepeaterCreate:i.trackByOps!==null&&to(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||xe(i,o=>{if(o instanceof Ye)return s.has(o.name)?new Hn(s.get(o.name)):r.has(o.name)?new Hn(r.get(o.name)):new st(new Fr(t.job.root.xref),o.name);if(o instanceof Uo&&typeof o.view=="number"){if(n===null||n.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${t.xref}`);return o.view=new Hn(n.variable),o}else return o},K.None);for(let i of e)$e(i,o=>{if(o instanceof Ye)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var GA=new Map([[re.HTML,m.sanitizeHtml],[re.RESOURCE_URL,m.sanitizeResourceUrl],[re.SCRIPT,m.sanitizeScript],[re.STYLE,m.sanitizeStyle],[re.URL,m.sanitizeUrl],[re.ATTRIBUTE_NO_BINDING,m.validateAttribute]]),HA=new Map([[re.HTML,m.trustConstantHtml],[re.RESOURCE_URL,m.trustConstantResourceUrl]]);function qA(t){var e,n;for(let r of t.units){if(t.kind!==b.Host){for(let s of r.create)if(s.kind===f.ExtractedAttribute){let i=(e=HA.get(cd(s.securityContext)))!=null?e:null;s.trustedValueFn=i!==null?R(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(re.URL)&&s.securityContext.includes(re.RESOURCE_URL)?i=m.sanitizeUrlOrResourceUrl:i=(n=GA.get(cd(s.securityContext)))!=null?n:null,s.sanitizer=i!==null?R(i):null;break}}}function cd(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||re.NONE}return t}function WA(t){for(let e of t.units)for(let n of e.ops())xe(n,r=>jA(r),K.None)}function jA(t){if(t instanceof Ae&&t.fn instanceof Ye&&t.fn.name==="$safeNavigationMigration"){if(t.args.length!==1)throw new Error("The $safeNavigationMigration builtin function expects exactly one argument.");return new Go(t.args[0])}return t}function zA(t){for(let e of t.units){for(let n of e.functions)ud(t,e,n.ops)&&pd(e,n.ops,Z(n.currentViewName));e.create.prepend([fr(e.job.allocateXrefId(),{kind:Qe.SavedView,name:null,view:e.xref},new Iu,Gt.None)]);for(let n of e.create)(n.kind===f.Listener||n.kind===f.TwoWayListener||n.kind===f.Animation||n.kind===f.AnimationListener)&&ud(t,e,n.handlerOps)&&pd(e,n.handlerOps,e.xref)}}function ud(t,e,n){let r=e!==t.root;if(!r)for(let s of n)$e(s,i=>{(i instanceof el||i instanceof Bo)&&(r=!0)});return r}function pd(t,e,n){e.prepend([fr(t.job.allocateXrefId(),{kind:Qe.Context,name:null,view:t.xref},new Uo(n),Gt.None)]);for(let r of e)r.kind===f.Statement&&r.statement instanceof ke&&(r.statement.value=new nl(r.statement.value))}function KA(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)xi(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 XA(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),$e(s,i=>{i instanceof Bo&&e.add(i.target)});for(let r of t.units)for(let s of r.update)xe(s,i=>i instanceof $o&&!e.has(i.target)?(YA(i)||T.remove(n.get(i.target)),i.value):i,K.None)}function YA(t){let e=!1;return P(t,n=>((n instanceof Cs||n instanceof Vo)&&(e=!0),n),K.None),e}function QA(t){let e=new Set;for(let n of t.units)for(let r of n.ops())$e(r,s=>{if(s instanceof se)switch(s.operator){case w.Exponentiation:JA(s,e);break;case w.NullishCoalesce:ZA(s,e);break;case w.And:case w.Or:eD(s,e)}});for(let n of t.units)for(let r of n.ops())xe(r,s=>s instanceof nn?e.has(s)?s:s.expr:s,K.None)}function JA(t,e){t.lhs instanceof nn&&t.lhs.expr instanceof qn&&e.add(t.lhs)}function ZA(t,e){t.lhs instanceof nn&&(hd(t.lhs.expr)||t.lhs.expr instanceof mn)&&e.add(t.lhs),t.rhs instanceof nn&&(hd(t.rhs.expr)||t.rhs.expr instanceof mn)&&e.add(t.rhs)}function eD(t,e){t.lhs instanceof nn&&t.lhs.expr instanceof se&&t.lhs.expr.operator===w.NullishCoalesce&&e.add(t.lhs)}function hd(t){return t instanceof se&&(t.operator===w.And||t.operator===w.Or)}function tD(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 De)throw new Error("Unexpected interpolation in ClassName binding");T.replace(n,hT(n.target,n.name,n.expression,n.sourceSpan));break;case M.StyleProperty:T.replace(n,pT(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case M.Property:case M.Template:n.name==="style"?T.replace(n,fT(n.target,n.expression,n.sourceSpan)):n.name==="class"&&T.replace(n,dT(n.target,n.expression,n.sourceSpan));break}}function nD(t){for(let e of t.units){e.create.prepend(no(e.create)),e.update.prepend(no(e.update));for(let n of e.functions)n.ops.prepend(no(n.ops))}}function no(t){let e=0,n=[];for(let r of t){let s=new Map;$e(r,(u,h)=>{h&K.InChildOperation||u instanceof Br&&s.set(u.xref,u)});let i=0,o=new Set,a=new Set,c=new Map;$e(r,(u,h)=>{h&K.InChildOperation||(u instanceof Mn?(o.has(u.xref)||(o.add(u.xref),c.set(u.xref,`tmp_${e}_${i++}`)),fd(c,u)):u instanceof Br&&(s.get(u.xref)===u&&(a.add(u.xref),i--),fd(c,u)))}),n.push(...Array.from(new Set(c.values())).map(u=>Wt(new Xe(u)))),e++,r.kind===f.Listener||r.kind===f.Animation||r.kind===f.AnimationListener||r.kind===f.TwoWayListener?r.handlerOps.prepend(no(r.handlerOps)):r.kind===f.RepeaterCreate&&r.trackByOps!==null&&r.trackByOps.prepend(no(r.trackByOps))}return n}function fd(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 rD(t){for(let e of t.units)for(let n of e.create)if(n.kind===f.RepeaterCreate)if(n.track instanceof tn&&n.track.name==="$index")n.trackByFn=R(m.repeaterTrackByIndex);else if(n.track instanceof tn&&n.track.name==="$item")n.trackByFn=R(m.repeaterTrackByIdentity);else if(sD(t.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=R(m.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=P(n.track,s=>{if(s instanceof Cs||s instanceof Vo)throw new Error("Illegal State: Pipes are not allowed in this context");return s instanceof Fr?(n.usesComponentInstance=!0,new Nu(s.view)):s},K.None);let r=new T;r.push(Wt(new ke(n.track,n.track.sourceSpan,[go()]))),n.trackByOps=r}}function sD(t,e){if(!(e instanceof Ae)||e.args.length===0||e.args.length>2||!(e.receiver instanceof st&&e.receiver.receiver instanceof Fr)||e.receiver.receiver.view!==t)return!1;let[n,r]=e.args;return!(n instanceof tn)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof tn)||r.name!=="$item")}function iD(t){for(let e of t.units)for(let n of e.create)n.kind===f.RepeaterCreate&&(n.track=P(n.track,r=>{if(r instanceof Ye){if(n.varNames.$index.has(r.name))return Z("$index");if(r.name===n.varNames.$implicit)return Z("$item")}return r},K.None))}function oD(t){for(let e of t.units)for(let n of e.create)n.kind===f.TwoWayListener&&xe(n,r=>{if(!(r instanceof rl))return r;let{target:s,value:i}=r;if(s instanceof st||s instanceof rn)return rd(s,i).or(s.set(i));if(s instanceof Hn)return rd(s,i);throw new Error("Unsupported expression in two-way action binding.")},K.InChildOperation)}function aD(t){for(let e of t.units){let n=0;for(let i of e.ops())xc(i)&&(n+=lD(i));let r=i=>{Ln(i)&&(i instanceof xs||(Sf(i)&&(i.varOffset=n),xc(i)&&(n+=dd(i))))},s=i=>{!Ln(i)||!(i instanceof xs)||(Sf(i)&&(i.varOffset=n),xc(i)&&(n+=dd(i)))};for(let i of e.create)$e(i,r);for(let i of e.update)$e(i,r);for(let i of e.create)$e(i,s);for(let i of e.update)$e(i,s);e.vars=n}if(t instanceof Wo)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 lD(t){let e;switch(t.kind){case f.Attribute:return e=1,t.expression instanceof De&&!cD(t.expression)&&(e+=t.expression.expressions.length),e;case f.Property:case f.DomProperty:return e=1,t.expression instanceof De&&(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 De&&(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 dd(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 cD(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function uD(t){for(let e of t.units){for(let n of e.functions)Gi(n.ops);Gi(e.create),Gi(e.update);for(let n of e.create)n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener?Gi(n.handlerOps):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Gi(n.trackByOps);for(let n of e.functions)Hi(n.ops,null),md(n.ops);for(let n of e.create)n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener?(Hi(n.handlerOps,Aa),md(n.handlerOps)):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Hi(n.trackByOps,Aa);Hi(e.create,Aa),Hi(e.update,Aa)}}var je;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(je||(je={}));function Aa(t){return!(t&K.InArrowFunctionOperation)}function Gi(t){let e=new Map;for(let n of t)n.kind===f.Variable&&n.flags&Gt.AlwaysInline&&($e(n,r=>{if(Ln(r)&&Rp(r)!==je.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),xe(n,r=>r instanceof Hn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,K.None);for(let n of e.values())T.remove(n)}function Hi(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,pD(u,e)),hD(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&je.ViewContextWrite||h.fences&je.SideEffectful){let d=Wt(u.initializer.toStmt());i.set(d,h),T.replace(u,d)}else fD(u,r),T.remove(u);i.delete(u),n.delete(u.xref),r.delete(u.xref);continue}h.fences&je.ViewContextRead&&(o=!0)}let a=[];for(let[u,h]of r){let p=!!(n.get(u).flags&Gt.AlwaysInline);h!==1||p||s.has(u)||a.push(u)}let c;for(;c=a.pop();){let u=n.get(c),h=i.get(u);if(!!(u.flags&Gt.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(!mD(u,p))break;if(dD(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),T.remove(u)}break}if(!fg(g.fences,h.fences))break}}}function Rp(t){switch(t.kind){case F.NextContext:return je.ViewContextRead|je.ViewContextWrite;case F.RestoreView:return je.ViewContextRead|je.ViewContextWrite|je.SideEffectful;case F.StoreLet:return je.SideEffectful;case F.Reference:case F.ContextLetReference:return je.ViewContextRead;default:return je.None}}function pD(t,e){let n=je.None,r=new Set;return $e(t,(s,i)=>{!Ln(s)||e!==null&&!e(i)||(s.kind===F.ReadVariable?r.add(s.xref):n|=Rp(s))}),{fences:n,variablesUsed:r}}function hD(t,e,n,r){$e(t,(s,i)=>{if(!Ln(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&K.InChildOperation&&n.add(s.xref))})}function fD(t,e){$e(t,n=>{if(!Ln(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 fg(t,e){if(t&je.ViewContextWrite){if(e&je.ViewContextRead)return!1}else if(t&je.ViewContextRead&&e&je.ViewContextWrite)return!1;return!0}function dD(t,e,n,r){let s=!1,i=!0;return xe(n,(o,a)=>{if(!Ln(o)||s||!i)return o;if(a&K.InChildOperation&&r&je.ViewContextRead)return o;switch(o.kind){case F.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let c=Rp(o);i=i&&fg(c,r);break}return o},K.None),s}function mD(t,e){switch(t.variable.kind){case Qe.Identifier:return t.initializer instanceof tn&&t.initializer.name===qt;case Qe.Context:return e.kind===f.Variable;default:return!0}}function md(t){let e=t.head.next,n=t.tail.prev;e!==null&&n!==null&&e.next===n&&e.kind===f.Statement&&e.statement instanceof et&&e.statement.expr instanceof Uo&&n.kind===f.Statement&&n.statement instanceof ke&&n.statement.value instanceof nl&&(T.remove(e),n.statement.value=n.statement.value.expr)}function gD(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(),T.insertBefore(Pl(r,s.message,void 0,null),s));break;case f.IcuEnd:r!==null&&(T.insertAfter(Ll(r,null),s),r=null);break}}}var yD=[{kind:b.Tmpl,fn:UN},{kind:b.Both,fn:ZN},{kind:b.Host,fn:eC},{kind:b.Tmpl,fn:xN},{kind:b.Tmpl,fn:zN},{kind:b.Tmpl,fn:gD},{kind:b.Both,fn:Ex},{kind:b.Both,fn:tD},{kind:b.Both,fn:JT},{kind:b.Tmpl,fn:cx},{kind:b.Both,fn:gx},{kind:b.Both,fn:XT},{kind:b.Tmpl,fn:Sx},{kind:b.Both,fn:NN},{kind:b.Tmpl,fn:kA},{kind:b.Both,fn:tx},{kind:b.Both,fn:BN},{kind:b.Tmpl,fn:nx},{kind:b.Tmpl,fn:HN},{kind:b.Tmpl,fn:wx},{kind:b.Tmpl,fn:Tx},{kind:b.Tmpl,fn:jN},{kind:b.Both,fn:Kx},{kind:b.Both,fn:YN},{kind:b.Tmpl,fn:Yx},{kind:b.Tmpl,fn:Xx},{kind:b.Tmpl,fn:Qx},{kind:b.Tmpl,fn:zA},{kind:b.Both,fn:HT},{kind:b.Both,fn:WA},{kind:b.Both,fn:OA},{kind:b.Tmpl,fn:iD},{kind:b.Tmpl,fn:RA},{kind:b.Both,fn:VA},{kind:b.Tmpl,fn:xx},{kind:b.Tmpl,fn:oD},{kind:b.Tmpl,fn:rD},{kind:b.Both,fn:LA},{kind:b.Both,fn:qA},{kind:b.Tmpl,fn:wN},{kind:b.Both,fn:Dx},{kind:b.Both,fn:QA},{kind:b.Both,fn:nD},{kind:b.Both,fn:uD},{kind:b.Both,fn:XA},{kind:b.Tmpl,fn:EN},{kind:b.Tmpl,fn:vx},{kind:b.Tmpl,fn:PA},{kind:b.Tmpl,fn:zT},{kind:b.Tmpl,fn:WT},{kind:b.Tmpl,fn:KA},{kind:b.Tmpl,fn:FA},{kind:b.Tmpl,fn:$A},{kind:b.Tmpl,fn:Hx},{kind:b.Tmpl,fn:mN},{kind:b.Tmpl,fn:UA},{kind:b.Tmpl,fn:Jx},{kind:b.Both,fn:ox},{kind:b.Tmpl,fn:_A},{kind:b.Both,fn:aD},{kind:b.Tmpl,fn:zx},{kind:b.Both,fn:IN},{kind:b.Tmpl,fn:MA},{kind:b.Tmpl,fn:bN},{kind:b.Tmpl,fn:_N},{kind:b.Tmpl,fn:Ax},{kind:b.Tmpl,fn:KT},{kind:b.Tmpl,fn:PN},{kind:b.Both,fn:XN},{kind:b.Both,fn:CA},{kind:b.Both,fn:ex}];function dg(t,e){for(let n of yD)(n.kind===e||n.kind===b.Both)&&n.fn(t)}function vD(t,e){let n=gg(t.root);return mg(t.root,e),n}function mg(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;mg(n,e);let r=gg(n);e.statements.push(r.toDeclStmt(r.name))}}function gg(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=El(1,e),s=El(2,n);return Wn([new Be(wi,Tr),new Be(qt,Ke)],[...r,...s],void 0,void 0,t.fnName)}function El(t,e){return e.length===0?[]:[na(new se(w.BitwiseAnd,Z(wi),S(t)),e)]}function SD(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=El(1,e),s=El(2,n);return Wn([new Be(wi,Tr),new Be(qt,Ke)],[...r,...s],void 0,void 0,t.root.fnName)}var cs=new zt,us="ng-template",ED="animate.";function Ma(t){return t instanceof wt}function wD(t){return Ma(t)&&t.nodes.length===1&&t.nodes[0]instanceof Ya}function TD(t,e,n,r,s,i,o,a,c,u,h){let d=new Wo(t,n,r,s,i,o,a,c,u,h);return Qn(d.root,e),d}function xD(t,e,n){var s,i,o;let r=new cl(t.componentName,n,vt.DomOnly,t.legacyOptionalChaining);for(let a of(s=t.properties)!=null?s:[]){let c=M.Property;a.name.startsWith("attr.")&&(a.name=a.name.substring(5),c=M.Attribute),a.isLegacyAnimation&&(c=M.LegacyAnimation),a.isAnimation&&(c=M.Animation);let u=e.calcPossibleSecurityContexts(t.componentSelector,a.name,c===M.Attribute).filter(h=>h!==re.NONE);CD(r,a,c,u)}for(let[a,c]of(i=Object.entries(t.attributes))!=null?i:[]){let u=e.calcPossibleSecurityContexts(t.componentSelector,a,!0).filter(h=>h!==re.NONE);ND(r,a,c,u)}for(let a of(o=t.events)!=null?o:[])ID(r,a);return r}function CD(t,e,n,r){let s,i=e.expression.ast;i instanceof Zn?s=new De(i.strings,i.expressions.map(o=>Q(o,t,e.sourceSpan)),[]):s=Q(i,t,e.sourceSpan),t.root.update.push(Ts(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function ND(t,e,n,r){let s=Ts(t.root.xref,M.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function ID(t,e){let n;if(e.type===ze.Animation)n=qm(t.root.xref,new it,e.name,null,Yo(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[r,s]=e.type!==ze.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];n=bp(t.root.xref,new it,e.name,null,Yo(t.root,e.handler,e.handlerSpan),r,s,!0,e.sourceSpan)}t.root.create.push(n)}function Qn(t,e){for(let n of e)if(n instanceof It)AD(t,n);else if(n instanceof Te)DD(t,n);else if(n instanceof hi)bD(t,n);else if(n instanceof ts)yg(t,n,null);else if(n instanceof ai)vg(t,n,null);else if(n instanceof pi)kD(t,n);else if(n instanceof ui)_D(t,n);else if(n instanceof Kn)RD(t,n);else if(n instanceof fm)LD(t,n);else if(n instanceof kr)MD(t,n);else if(n instanceof er)FD(t,n);else if(!(n instanceof vr))throw new Error(`Unsupported template node: ${n.constructor.name}`)}function AD(t,e){var c,u;if(e.i18n!==void 0&&!(e.i18n instanceof wt||e.i18n instanceof Rr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=ft(e.name),i=TT(s,n,Ym(r),e.i18n instanceof Rr?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),BD(t,i,e),wg(i,e);let o=null;e.i18n instanceof wt&&(o=t.job.allocateXrefId(),t.create.push(Pl(o,e.i18n,void 0,e.startSourceSpan))),Qn(t,e.children);let a=CT(n,(c=e.endSourceSpan)!=null?c:e.startSourceSpan);t.create.push(a),o!==null&&T.insertBefore(Ll(o,(u=e.endSourceSpan)!=null?u:e.startSourceSpan),a)}function DD(t,e){var h;if(e.i18n!==void 0&&!(e.i18n instanceof wt||e.i18n instanceof Rr))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]=ft(e.tagName));let i=e.i18n instanceof Rr?e.i18n:void 0,o=Ym(s),a=r===null?"":ix(r,o),c=$D(e)?Tt.NgTemplate:Tt.Structural,u=Um(n.xref,c,r,a,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(u),UD(t,u,e,c),wg(u,e),Qn(n,e.children);for(let{name:d,value:p}of e.variables)n.contextVariables.set(d,p!==""?p:"$implicit");if(c===Tt.NgTemplate&&e.i18n instanceof wt){let d=t.job.allocateXrefId();T.insertAfter(Pl(d,e.i18n,void 0,e.startSourceSpan),n.create.head),T.insertBefore(Ll(d,(h=e.endSourceSpan)!=null?h:e.startSourceSpan),n.create.tail)}}function bD(t,e){var i;if(e.i18n!==void 0&&!(e.i18n instanceof Rr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(o=>!(o instanceof _l)&&(!(o instanceof ts)||o.value.trim().length>0))&&(n=t.job.allocateView(t.xref),Qn(n,e.children));let r=t.job.allocateXrefId(),s=PT(r,e.selector,e.i18n,(i=n==null?void 0:n.xref)!=null?i:null,e.sourceSpan);for(let o of e.attributes){let a=cs.securityContext(e.name,o.name,!0);t.update.push(Ts(s.xref,M.Attribute,o.name,S(o.value),null,a,!0,!1,null,Vn(o.i18n),o.sourceSpan))}t.create.push(s)}function yg(t,e,n){t.create.push(Hm(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function vg(t,e,n){var o;let r=e.value;if(r instanceof Se&&(r=r.ast),!(r instanceof Zn))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Gn))throw Error(`Unhandled i18n metadata type for text interpolation: ${(o=e.i18n)==null?void 0:o.constructor.name}`);let s=e.i18n instanceof Gn?e.i18n.children.filter(a=>a instanceof Ro).map(a=>a.name):[];if(s.length>0&&s.length!==r.expressions.length)throw Error(`Unexpected number of i18n placeholders (${r.expressions.length}) for BoundText with ${r.expressions.length} expressions`);let i=t.job.allocateXrefId();t.create.push(Hm(i,"",n,e.sourceSpan)),t.update.push(lT(i,new De(r.strings,r.expressions.map(a=>Q(a,t.job,null)),s),e.sourceSpan))}function kD(t,e){var s;let n=null,r=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],a=t.job.allocateView(t.xref),c=wl(t,a.xref,o);o.expressionAlias!==null&&a.contextVariables.set(o.expressionAlias.name,zm);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof Pr))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?Vm:Gm)(a.xref,Tt.Block,c,"Conditional",Fe.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(d),n===null&&(n=a.xref);let p=o.expression?Q(o.expression,t.job,null):null,g=new il(p,d.xref,d.handle,o.expressionAlias);r.push(g),Qn(a,o.children)}t.update.push(Fm(n,null,r,e.sourceSpan))}function _D(t,e){var s;if(e.groups.length===0)return;let n=null,r=[];for(let i=0;i<e.groups.length;i++){let o=e.groups[i],a=t.job.allocateView(t.xref),c=wl(t,a.xref,o),u;if(o.i18n!==void 0){if(!(o.i18n instanceof Pr))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?Vm:Gm)(a.xref,Tt.Block,c,"Case",Fe.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(d),n===null&&(n=a.xref);for(let p of o.cases){let g=p.expression?Q(p.expression,t.job,e.startSourceSpan):null,v=new il(g,d.xref,d.handle);r.push(v)}Qn(a,o.children)}t.update.push(Fm(n,Q(e.expression,t.job,null),r,e.sourceSpan))}function Da(t,e,n,r,s){if(n!==void 0&&!(n instanceof Pr))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=t.job.allocateView(t.xref);Qn(i,r);let o=Um(i.xref,Tt.Block,null,`Defer${e}`,Fe.HTML,n,s,s);return t.create.push(o),o}function RD(t,e){var p,g,v,E,I,D,k,_,H,X,ie,Re,we,bt,Xr,rr,sr,ga,Pe,ya;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=Da(t,"",e.i18n,e.children,e.sourceSpan),s=Da(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=Da(t,"Placeholder",(I=e.placeholder)==null?void 0:I.i18n,(D=e.placeholder)==null?void 0:D.children,(k=e.placeholder)==null?void 0:k.sourceSpan),o=Da(t,"Error",(_=e.error)==null?void 0:_.i18n,(H=e.error)==null?void 0:H.children,(X=e.error)==null?void 0:X.sourceSpan),a=t.job.allocateXrefId(),c=LT(a,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);c.placeholderView=(ie=i==null?void 0:i.xref)!=null?ie:null,c.placeholderSlot=(Re=i==null?void 0:i.handle)!=null?Re:null,c.loadingSlot=(we=s==null?void 0:s.handle)!=null?we:null,c.errorSlot=(bt=o==null?void 0:o.handle)!=null?bt:null,c.placeholderMinimumTime=(rr=(Xr=e.placeholder)==null?void 0:Xr.minimumTime)!=null?rr:null,c.loadingMinimumTime=(ga=(sr=e.loading)==null?void 0:sr.minimumTime)!=null?ga:null,c.loadingAfterTime=(ya=(Pe=e.loading)==null?void 0:Pe.afterTime)!=null?ya:null,c.flags=PD(e),t.create.push(c);let u=[],h=[];bc("hydrate",e.hydrateTriggers,u,h,t,a),bc("none",e.triggers,u,h,t,a),bc("prefetch",e.prefetchTriggers,u,h,t,a),u.some(Pi=>Pi.modifier==="none")||h.some(Pi=>Pi.modifier==="none")||u.push(cr(a,{kind:le.Idle,timeout:null},"none",null)),t.create.push(u),t.update.push(h)}function PD(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function bc(t,e,n,r,s,i){var o;if(e.idle!==void 0){let a=cr(i,{kind:le.Idle,timeout:(o=e.idle.timeout)!=null?o:null},t,e.idle.sourceSpan);n.push(a)}if(e.immediate!==void 0){let a=cr(i,{kind:le.Immediate},t,e.immediate.sourceSpan);n.push(a)}if(e.timer!==void 0){let a=cr(i,{kind:le.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);n.push(a)}if(e.hover!==void 0){let a=cr(i,{kind:le.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);n.push(a)}if(e.interaction!==void 0){let a=cr(i,{kind:le.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);n.push(a)}if(e.viewport!==void 0){let a=cr(i,{kind:le.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?Q(e.viewport.options,s.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);n.push(a)}if(e.never!==void 0){let a=cr(i,{kind:le.Never},t,e.never.sourceSpan);n.push(a)}if(e.when!==void 0){if(e.when.value instanceof Zn)throw new Error("Unexpected interpolation in defer block when trigger");let a=yT(i,Q(e.when.value,s.job,e.when.sourceSpan),t,e.when.sourceSpan);r.push(a)}}function LD(t,e){var n;if(e.i18n instanceof wt&&wD(e.i18n)){let r=t.job.allocateXrefId();t.create.push(FT(r,e.i18n,gm(e.i18n).name,null));for(let[s,i]of Object.entries(x(x({},e.vars),e.placeholders)))i instanceof ai?vg(t,i,s):yg(t,i,s);t.create.push($T(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${(n=e.i18n)==null?void 0:n.constructor.name}`)}function MD(t,e){var I,D,k;let n=t.job.allocateView(t.xref),r=`\u0275$index_${n.xref}`,s=`\u0275$count_${n.xref}`,i=new Set;n.contextVariables.set(e.item.name,e.item.value);for(let _ of e.contextVariables)_.value==="$index"&&i.add(_.name),_.name==="$index"?n.contextVariables.set("$index",_.value).set(r,_.value):_.name==="$count"?n.contextVariables.set("$count",_.value).set(s,_.value):n.aliases.add({kind:Qe.Alias,name:null,identifier:_.name,expression:OD(_,r,s)});let o;e.trackBy===null?o=Z("$index"):o=Q(e.trackBy,t.job,He(e.trackBy.span,e.sourceSpan)),Qn(n,e.children);let a=null,c=null;e.empty!==null&&(a=t.job.allocateView(t.xref),Qn(a,e.empty.children),c=wl(t,a.xref,e.empty));let u={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Pr))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(((I=e.empty)==null?void 0:I.i18n)!==void 0&&!(e.empty.i18n instanceof Pr))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let h=e.i18n,d=(D=e.empty)==null?void 0:D.i18n,p=wl(t,n.xref,e),g=xT(n.xref,(k=a==null?void 0:a.xref)!=null?k:null,p,o,u,c,h,d,e.startSourceSpan,e.sourceSpan);t.create.push(g);let v=Q(e.expression,t.job,He(e.expression.span,e.sourceSpan)),E=gT(g.xref,g.handle,v,e.sourceSpan);t.update.push(E)}function OD(t,e,n){switch(t.value){case"$index":return new Ye(e);case"$count":return new Ye(n);case"$first":return new Ye(e).identical(S(0));case"$last":return new Ye(e).identical(new Ye(n).minus(S(1)));case"$even":return new Ye(e).modulo(S(2)).identical(S(0));case"$odd":return new Ye(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(MT(n,e.name,e.sourceSpan)),t.update.push(ST(n,e.name,Q(e.value,t.job,e.valueSpan),e.sourceSpan))}function Q(t,e,n){if(t instanceof Se)return Q(t.ast,e,n);if(t instanceof ge)return t.receiver instanceof Ht?new Ye(t.name):new st(Q(t.receiver,e,n),t.name,null,He(t.span,n));if(t instanceof vn){if(t.receiver instanceof Ht)throw new Error("Unexpected ImplicitReceiver");return new Ae(Q(t.receiver,e,n),t.args.map(r=>Q(r,e,n)),void 0,He(t.span,n))}else{if(t instanceof lt)return S(t.value,void 0,He(t.span,n));if(t instanceof Ws)switch(t.operator){case"+":return new qn(bn.Plus,Q(t.expr,e,n),void 0,He(t.span,n));case"-":return new qn(bn.Minus,Q(t.expr,e,n),void 0,He(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Ie){let r=rx.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new se(r,Q(t.left,e,n),Q(t.right,e,n),void 0,He(t.span,n))}else{if(t instanceof Ar)return new Fr(e.root.xref);if(t instanceof jn)return new rn(Q(t.receiver,e,n),Q(t.key,e,n),void 0,He(t.span,n));if(t instanceof Dr)throw new Error("AssertionError: Chain in unknown context");if(t instanceof ms){let r=t.keys.map((s,i)=>{let o=Q(t.values[i],e,n);return s.kind==="spread"?new yn(o):new Cr(s.key,o,s.quoted)});return new sn(r,void 0,He(t.span,n))}else{if(t instanceof vo)return new Mt(t.expressions.map(r=>Q(r,e,n)));if(t instanceof si)return new mn(Q(t.condition,e,n),Q(t.trueExp,e,n),Q(t.falseExp,e,n),void 0,He(t.span,n));if(t instanceof wo)return Q(t.expression,e,n);if(t instanceof ii)return new Cs(e.allocateXrefId(),new it,t.name,[Q(t.exp,e,n),...t.args.map(r=>Q(r,e,n))]);if(t instanceof ds)return new as(Q(t.receiver,e,n),Q(t.key,e,n),He(t.span,n));if(t instanceof dt)return new os(Q(t.receiver,e,n),t.name);if(t instanceof _n)return new Ae(Q(t.receiver,e,n),t.args.map(r=>Q(r,e,n)),null,He(t.span,n),!1,[],!0);if(t instanceof nt)return new Ho(He(t.span,n));if(t instanceof kn)return om(Q(t.expression,e,n),He(t.span,n));if(t instanceof So)return Ei(Q(t.expression,e,n));if(t instanceof Eo)return new oo(Q(t.expression,e,n),void 0,He(t.span,n));if(t instanceof xo)return gd(t,e,n);if(t instanceof To)return new Qs(Q(t.tag,e,n),gd(t.template,e,n),void 0,He(t.span,n));if(t instanceof Co)return new nn(Q(t.expression,e,n),void 0,He(t.span,n));if(t instanceof Wa)return new ps(t.body,t.flags,n);if(t instanceof Ha)return new Nr(Q(t.expression,e,n));if(t instanceof oi)return GD(Nt(t.parameters.map(r=>new Be(r.name,Ke)),Q(t.body,e,n)));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n==null?void 0:n.start.file.url}"`)}}}}function gd(t,e,n){return new Zs(t.elements.map(r=>new ao(r.text,He(r.span,n))),t.expressions.map(r=>Q(r,e,n)),He(t.span,n))}function Ju(t,e,n,r){var i,o;let s;return e instanceof Zn?s=new De(e.strings,e.expressions.map(a=>Q(a,t,null)),Object.keys((o=(i=Vn(n))==null?void 0:i.placeholders)!=null?o:{})):e instanceof ae?s=Q(e,t,null):s=S(e),s}var Sg=new Map([[J.Property,M.Property],[J.TwoWay,M.TwoWayProperty],[J.Attribute,M.Attribute],[J.Class,M.ClassName],[J.Style,M.StyleProperty],[J.LegacyAnimation,M.LegacyAnimation],[J.Animation,M.Animation]]);function $D(t){var e;return ft((e=t.tagName)!=null?e:"")[1]===us}function Vn(t){if(t==null)return null;if(!(t instanceof wt))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function BD(t,e,n){var i;let r=new Array,s=new Set;for(let o of n.attributes){let[a,c]=ft(n.name),u=a;if(!a)switch(e.namespace){case Fe.SVG:u=Ml;break;case Fe.Math:u=Ol;break}let h=cs.securityContext(u?`:${u}:${c}`:c,o.name,!0);r.push(Ts(e.xref,M.Attribute,o.name,Ju(t.job,o.value,o.i18n),null,h,!0,!1,null,Vn(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(Ts(e.xref,Sg.get(o.type),o.name,Ju(t.job,Qo(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,(i=Vn(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===ze.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===ze.TwoWay?t.create.push(Wm(e.xref,e.handle,o.name,e.tag,Eg(t,o.handler,o.handlerSpan),o.sourceSpan)):o.type===ze.Animation?t.create.push(qm(e.xref,e.handle,o.name,e.tag,Yo(t,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.target,!1,o.sourceSpan)):t.create.push(bp(e.xref,e.handle,o.name,e.tag,Yo(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(jm(t.job.allocateXrefId(),new it,e.xref))}function UD(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof on){let o=cs.securityContext(us,i.name,!0);s.push(ba(t,e.xref,J.Attribute,i.name,i.value,null,o,!0,r,Vn(i.i18n),i.sourceSpan))}else s.push(ba(t,e.xref,i.type,i.name,Qo(i.value),i.unit,i.securityContext,!0,r,Vn(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=cs.securityContext(us,i.name,!0);s.push(ba(t,e.xref,J.Attribute,i.name,i.value,null,o,!1,r,Vn(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(ba(t,e.xref,i.type,i.name,Qo(i.value),i.unit,i.securityContext,!1,r,Vn(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===ze.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===Tt.NgTemplate&&(i.type===ze.TwoWay?t.create.push(Wm(e.xref,e.handle,i.name,e.tag,Eg(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(bp(e.xref,e.handle,i.name,e.tag,Yo(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===Tt.Structural&&i.type!==ze.LegacyAnimation){let o=cs.securityContext(us,i.name,!1);t.create.push(Zt(e.xref,M.Property,null,i.name,null,null,null,o))}}s.some(i=>i==null?void 0:i.i18nMessage)!==null&&t.create.push(jm(t.job.allocateXrefId(),new it,e.xref))}function ba(t,e,n,r,s,i,o,a,c,u,h){let d=typeof s=="string";if(c===Tt.Structural){if(!a)switch(n){case J.Property:case J.Class:case J.Style:return Zt(e,M.Property,null,r,null,null,u,o);case J.TwoWay:return Zt(e,M.TwoWayProperty,null,r,null,null,u,o)}if(!d&&(n===J.Attribute||n===J.LegacyAnimation||n===J.Animation))return null}let p=Sg.get(n);return c===Tt.NgTemplate&&(n===J.Class||n===J.Style||n===J.Attribute&&!d)&&(p=M.Property),Ts(e,p,r,Ju(t.job,s,u),i,o,d,a,c,u,h)}function Yo(t,e,n){e=Qo(e);let r=new Array,s=e instanceof Dr?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(a=>Q(a,t.job,n)),o=i.pop();return r.push(...i.map(a=>Wt(new et(a,a.sourceSpan)))),r.push(Wt(new ke(o,o.sourceSpan))),r}function Eg(t,e,n){e=Qo(e);let r=new Array;if(e instanceof Dr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=Q(e,t.job,n),i=new Ye("$event"),o=new rl(s,i);return r.push(Wt(new et(o))),r.push(Wt(new ke(i))),r}function Qo(t){return t instanceof Se?t.ast:t}function wg(t,e){VD(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function VD(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 G(n,r,s)}function wl(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof _l||s instanceof er)){if(r!==null)return null;if(s instanceof It||s instanceof Te&&s.tagName!==null)r=s;else return null}if(r!==null){for(let i of r.attributes)if(!i.name.startsWith(ED)){let o=cs.securityContext(us,i.name,!0);t.update.push(Ts(e,M.Attribute,i.name,S(i.value),null,o,!0,!1,null,Vn(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==J.LegacyAnimation&&i.type!==J.Animation&&i.type!==J.Attribute){let o=cs.securityContext(us,i.name,!0);t.create.push(Zt(e,M.Property,null,i.name,null,null,null,o))}let s=r instanceof It?r.name:r.tagName;return s===us?null:s}return null}function GD(t){let e=new Set(t.params.map(n=>n.name));return P(t,n=>{if(n instanceof gn)for(let r of n.params)e.add(r.name);else if(n instanceof Ye&&e.has(n.name))return Z(n.name);return n},K.None)}var HD=!1;function qD(){return HD}function Tl(t,e){return na(Z(wi).bitwiseAnd(S(t),null),e)}function WD(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function jD(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(ce(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return R(m.resolveForwardRef).callFn([t.predicate.expression])}}function Tg(t,e,n){let r=[];return n!==void 0&&r.push(...n),t.isSignal&&r.push(new st(Z(qt),t.propertyName)),r.push(jD(t,e),S(WD(t))),t.read&&r.push(t.read),r}var Pp=Symbol("queryAdvancePlaceholder");function xg(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(R(m.queryAdvance).callFn(n===1?[]:[S(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===Pp?n++:(r(),e.unshift(i))}return r(),e}function zD(t,e,n){let r=[],s=[],i=ym(u=>s.push(u),Ep),o=null,a=null;t.forEach(u=>{let h=Tg(u,e);if(u.isSignal?(o!=null||(o=R(m.viewQuerySignal)),o=o.callFn(h)):(a!=null||(a=R(m.viewQuery)),a=a.callFn(h)),u.isSignal){s.push(Pp);return}let d=i(),p=R(m.loadQuery).callFn([]),g=R(m.queryRefresh).callFn([d.set(p)]),v=Z(qt).prop(u.propertyName).set(u.first?d.prop("first"):d);s.push(g.and(v).toStmt())}),o!==null&&r.push(new et(o)),a!==null&&r.push(new et(a));let c=n?`${n}_Query`:null;return Wn([new Be(wi,Tr),new Be(qt,Ke)],[Tl(1,r),Tl(2,xg(s))],dn,null,c)}function KD(t,e,n){let r=[],s=[],i=ym(u=>s.push(u),Ep),o=null,a=null;for(let u of t){let h=Tg(u,e,[Z("dirIndex")]);if(u.isSignal?(o!=null||(o=R(m.contentQuerySignal)),o=o.callFn(h)):(a!=null||(a=R(m.contentQuery)),a=a.callFn(h)),u.isSignal){s.push(Pp);continue}let d=i(),p=R(m.loadQuery).callFn([]),g=R(m.queryRefresh).callFn([d.set(p)]),v=Z(qt).prop(u.propertyName).set(u.first?d.prop("first"):d);s.push(g.and(v).toStmt())}o!==null&&r.push(new et(o)),a!==null&&r.push(new et(a));let c=n?`${n}_ContentQueries`:null;return Wn([new Be(wi,Tr),new Be(qt,Ke),new Be("dirIndex",Tr)],[Tl(1,r),Tl(2,xg(s))],dn,null,c)}var xl=class extends mC{constructor(){super(Wu)}parse(e,n,r){return super.parse(e,n,r)}},ka=".",XD="attr",kc="animate",YD="class",QD="style",JD="*",_c="animate-",Zu=class{constructor(e,n,r){l(this,"_exprParser");l(this,"_schemaRegistry");l(this,"errors");this._exprParser=e,this._schemaRegistry=n,this.errors=r}createBoundHostProperties(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parsePropertyBinding(s,i,!0,!1,n,n.start.offset,void 0,[],r,n):this._reportError(`Value of the host property binding "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}createDirectiveHostEventAsts(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parseEvent(s,i,!1,n,n,[],r,n):this._reportError(`Value of the host listener "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}parseInterpolation(e,n,r){let s=n.fullStart.offset;try{let i=this._exprParser.parseInterpolation(e,n,s,r);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}parseInterpolationExpression(e,n){let r=n.start.offset;try{let s=this._exprParser.parseInterpolationExpression(e,n,r);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInlineTemplateBinding(e,n,r,s,i,o,a,c){let u=r.start.offset+JD.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 No){let E=d.value?d.value.source:"$implicit",I=d.value?ar(r,d.value.span):void 0;a.push(new nu(g,E,p,v,I))}else if(d.value){let E=c?p:r,I=ar(r,d.value.ast.sourceSpan);this._parsePropertyAst(g,d.value,!1,E,v,I,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(a=>this.errors.push(a)),o.warnings.forEach(a=>{this._reportError(a,r,Un.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,a,c){Rc(e)?(e=e.substring(1),c!==void 0&&(c=ar(c,new ht(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,Un.ERROR),this._parseLegacyAnimation(e,n,r,s,c,i,o,a)):a.push(new $s(e,this._exprParser.wrapLiteralPrimitive(n,"",s),un.LITERAL_ATTR,r,c,i))}parsePropertyBinding(e,n,r,s,i,o,a,c,u,h){e.length===0&&this._reportError("Property name is missing in binding",i);let d=!1;e.startsWith(_c)?(d=!0,e=e.substring(_c.length),h!==void 0&&(h=ar(h,new ht(h.start.offset+_c.length,h.end.offset)))):Rc(e)&&(d=!0,e=e.substring(1),h!==void 0&&(h=ar(h,new ht(h.start.offset+1,h.end.offset)))),d?this._parseLegacyAnimation(e,n,i,o,h,a,c,u):e.startsWith(`${kc}${ka}`)?this._parseAnimation(e,this.parseBinding(n,r,a||i,o),i,h,a,c,u):this._parsePropertyAst(e,this.parseBinding(n,r,a||i,o),s,i,h,a,c,u)}parsePropertyInterpolation(e,n,r,s,i,o,a,c){let u=this.parseInterpolation(n,s||r,c);return u?(this._parsePropertyAst(e,u,!1,r,a,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,a,c){a.push([e,n.source]),c.push(new $s(e,n,r?un.TWO_WAY:un.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,a){o.push([e,n.source]),a.push(new $s(e,n,un.ANIMATION,r,s,i))}_parseLegacyAnimation(e,n,r,s,i,o,a,c){e.length===0&&this._reportError("Animation trigger is missing",r);let u=this.parseBinding(n||"undefined",!1,o||r,s);a.push([e,u.source]),c.push(new $s(e,u,un.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 za(n.name,J.LegacyAnimation,re.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,a=null,c=n.name.split(ka),u;if(c.length>1)if(c[0]==XD){a=c.slice(1).join(ka),r||this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),u=Pc(this._schemaRegistry,e,a,!0);let h=a.indexOf(":");if(h>-1){let d=a.substring(0,h),p=a.substring(h+1);a=La(d,p)}o=J.Attribute}else c[0]==YD?(a=c[1],o=J.Class,u=[re.NONE]):c[0]==QD?(i=c.length>2?c[2]:null,a=c[1],o=J.Style,u=[re.STYLE]):c[0]==kc&&(a=n.name,o=J.Animation,u=[re.NONE]);if(a===null){let h=this._schemaRegistry.getMappedPropName(n.name);a=s?h:n.name,u=Pc(this._schemaRegistry,e,h,!1),o=n.type===un.TWO_WAY?J.TwoWay:J.Property,r||this._validatePropertyOrAttributeName(h,n.sourceSpan,!1)}return new za(a,o,u[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,a,c){e.length===0&&this._reportError("Event name is missing in binding",s),Rc(e)?(e=e.slice(1),c!==void 0&&(c=ar(c,new ht(c.start.offset+1,c.end.offset))),this._parseLegacyAnimationEvent(e,n,s,i,a,c)):this._parseRegularEvent(e,n,r,s,i,o,a,c)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return Pc(this._schemaRegistry,e,s,r)}parseEventListenerName(e){let[n,r]=OE(e,[null,e]);return{eventName:r,target:n}}parseLegacyAnimationEventName(e){let n=FE(e,[e,null]);return{eventName:n[0],phase:n[1]===null?null:n[1].toLowerCase()}}_parseLegacyAnimationEvent(e,n,r,s,i,o){let{eventName:a,phase:c}=this.parseLegacyAnimationEventName(e),u=this._parseAction(n,s);i.push(new ja(a,c,ze.LegacyAnimation,u,r,s,o)),a.length===0&&this._reportError("Animation event name is missing in binding",r),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${a}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,a,c){let{eventName:u,target: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=ze.Regular;r&&(v=ze.TwoWay),e.startsWith(`${kc}${ka}`)&&(v=ze.Animation),a.push(new ja(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 nt?(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=Un.ERROR){this.errors.push(new V(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,Un.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Se?this._isAllowedAssignmentEvent(e.ast):e instanceof wo?this._isAllowedAssignmentEvent(e.expression):e instanceof vn&&e.args.length===1&&e.receiver instanceof ge&&e.receiver.name==="$any"&&e.receiver.receiver instanceof Ht?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof ge||e instanceof jn)&&!ep(e)}};function ep(t){return t instanceof dt||t instanceof ds?!0:t instanceof Co?ep(t.expression):t instanceof ge||t instanceof jn||t instanceof vn?ep(t.receiver):!1}function Rc(t){return t[0]=="@"}function Pc(t,e,n,r){let s,[i,o]=e?ft(e,!1):[null,e],a=u=>{let[h,d]=ft(u,!1),p=h!=null?h:i,g=p?`:${p}:${d}`:d;return t.securityContext(g,n,r)},c=t.allKnownElementNames();return o===null?s=c.map(a):(s=[],Er.parse(o).forEach(u=>{let h=u.element?[u.element]:c;if(u.element&&!t.hasElement(u.element,[])){let g=`:${Ml}:${u.element}`,v=`:${Ol}:${u.element}`;t.hasElement(g,[])?h=[g]:t.hasElement(v,[])&&(h=[v])}let d=new Set(u.notSelectors.filter(g=>g.isElementSelector()).map(g=>{var v;return(v=g.element)==null?void 0:v.toLowerCase()})),p=h.filter(g=>{let v=g.toLowerCase();return!d.has(v)&&!d.has(ft(v)[1])});s.push(...p.map(a))})),s.length===0?[re.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 G(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function ZD(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(eb);return e===null||e[1]=="package"||e[1]=="asset"}var eb=/^([^:/?#]+):/,tb="select",nb="link",rb="rel",sb="href",ib="stylesheet",ob="style",ab=new Set([":svg:script","script"]),lb="ngNonBindable",cb="ngProjectAs";function Cg(t){let e=null,n=null,r=null,s=!1,i="";for(let c of t.attrs){let u=c.name.toLowerCase();u==tb?e=c.value:u==sb?n=c.value:u==rb?r=c.value:c.name==lb?s=!0:c.name==cb&&c.value.length>0&&(i=c.value)}e||(e="*");let o=t.name.toLowerCase(),a=Pt.OTHER;return ru(o)?a=Pt.NG_CONTENT:ob===o?a=Pt.STYLE:ab.has(o)?a=Pt.SCRIPT:o==nb&&r==ib&&(a=Pt.STYLESHEET),new tp(a,e,n,s,i)}var Pt;(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"})(Pt||(Pt={}));var tp=class{constructor(e,n,r,s,i){l(this,"type");l(this,"selectAttr");l(this,"hrefAttr");l(this,"nonBindable");l(this,"projectAs");this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}},ub=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,pb=/^track\s+([\S\s]*)/,hb=/^(as\s+)(.*)/,$l=/^else[^\S\r\n]+if/,fb=/^let\s+([\S\s]*)/,db=/^[$A-Z_][0-9A-Z_$]*$/i,yd=/(\s*)(\S+)(\s*)/,ro=new Set(["$index","$first","$last","$even","$odd","$count"]);function vd(t){return t==="empty"}function Sd(t){return t==="else"||$l.test(t)}function mb(t,e,n,r){let s=wb(e),i=[],o=Ed(t,s,r);o!==null&&i.push(new rs(o.expression,me(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if($l.test(d.name)){let p=Ed(d,s,r);if(p!==null){let g=me(n,d.children,d.children);i.push(new rs(p.expression,g,p.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let p=me(n,d.children,d.children);i.push(new rs(null,p,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let a=i.length>0?i[0].startSourceSpan:t.startSourceSpan,c=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,u=t.sourceSpan,h=i[i.length-1];return h!==void 0&&(u=new G(a.start,h.sourceSpan.end)),{node:new pi(i,u,t.startSourceSpan,c,t.nameSpan),errors:s}}function gb(t,e,n,r){var c,u;let s=[],i=vb(t,s,r),o=null,a=null;for(let h of e)h.name==="empty"?a!==null?s.push(new V(h.sourceSpan,"@for loop can only have one @empty block")):h.parameters.length>0?s.push(new V(h.sourceSpan,"@empty block cannot have parameters")):a=new ko(me(n,h.children,h.children),h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n):s.push(new V(h.sourceSpan,`Unrecognized @for loop block "${h.name}"`));if(i!==null){let h=(c=a==null?void 0:a.endSourceSpan)!=null?c:t.endSourceSpan,d=new G(t.sourceSpan.start,(u=h==null?void 0:h.end)!=null?u:t.sourceSpan.end),p,g;i.trackBy===null?(p=g=null,s.push(new V(t.startSourceSpan,'@for loop must have a "track" expression'))):(p=i.trackBy.expression,g=i.trackBy.keywordSpan,Sb(i.trackBy.expression,i.trackBy.keywordSpan,s)),o=new kr(i.itemName,i.expression,p,g,i.context,me(n,t.children,t.children),a,d,t.sourceSpan,t.startSourceSpan,h,t.nameSpan,t.i18n)}return{node:o,errors:s}}function yb(t,e,n){let r=Tb(t),s=t.parameters.length>0?Ks(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],a=[],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 Xa(d.name,d.sourceSpan,d.nameSpan));continue}u!==null&&r.push(new V(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=Ks(d.parameters[0],n);else if(d.name==="default never"){d.parameters.length>0&&(g=Ks(d.parameters[0],n)),(d.children.length>0||d.endSourceSpan!==null&&d.endSourceSpan.start.offset!==d.endSourceSpan.end.offset)&&r.push(new V(d.sourceSpan,'@default block with "never" parameter cannot have a body')),a.length>0&&r.push(new V(d.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),u=new au(g,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);continue}let v=new ou(g,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);if(a.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 G(c.start,d.sourceSpan.end),D=new G(c.start,d.startSourceSpan.end),c=null);let k=new bo(a,me(e,d.children,d.children),I,D,d.endSourceSpan,d.nameSpan,d.i18n);i.push(k),a=[]}return{node:new ui(s,i,o,u,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function vb(t,e,n){var d;if(t.parameters.length===0)return e.push(new V(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=(d=xb(r,e))==null?void 0:d.match(ub);if(!i||i[2].trim().length===0)return e.push(new V(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=i;ro.has(o)&&e.push(new V(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(ro).join(", ")}.`));let c=r.expression.split(" ")[0],u=new G(r.sourceSpan.start,r.sourceSpan.start.moveBy(c.length)),h={itemName:new En(o,"$implicit",u,u),trackBy:null,expression:Ks(r,n,a),context:Array.from(ro,p=>{let g=new G(t.startSourceSpan.end,t.startSourceSpan.end);return new En(p,p,g,g)})};for(let p of s){let g=p.expression.match(fb);if(g!==null){let E=new G(p.sourceSpan.start.moveBy(g[0].length-g[1].length),p.sourceSpan.end);Eb(p.sourceSpan,g[1],E,o,h.context,e);continue}let v=p.expression.match(pb);if(v!==null){if(h.trackBy!==null)e.push(new V(p.sourceSpan,'@for loop can only have one "track" expression'));else{let E=Ks(p,n,v[1]);E.ast instanceof nt&&e.push(new V(t.startSourceSpan,'@for loop must have a "track" expression'));let I=new G(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));h.trackBy={expression:E,keywordSpan:I}}continue}e.push(new V(p.sourceSpan,`Unrecognized @for loop parameter "${p.expression}"`))}return h}function Sb(t,e,n){let r=new np;t.ast.visit(r),r.hasPipe&&n.push(new V(e,"Cannot use pipes in track expressions"))}function Eb(t,e,n,r,s,i){var c,u,h;let o=e.split(","),a=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 V(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!ro.has(v))i.push(new V(t,`Unknown "let" parameter variable "${v}". The allowed variables are: ${Array.from(ro).join(", ")}`));else if(g===r)i.push(new V(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(E=>E.name===g))i.push(new V(t,`Duplicate "let" parameter variable "${v}"`));else{let[,E,I]=(c=p[0].match(yd))!=null?c:[],D=E!==void 0&&p.length===2?new G(a.moveBy(E.length),a.moveBy(E.length+I.length)):n,k;if(p.length===2){let[,H,X]=(u=p[1].match(yd))!=null?u:[];k=H!==void 0?new G(a.moveBy(p[0].length+1+H.length),a.moveBy(p[0].length+1+H.length+X.length)):void 0}let _=new G(D.start,(h=k==null?void 0:k.end)!=null?h:D.end);s.push(new En(g,v,_,D,k))}a=a.moveBy(d.length+1)}}function wb(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new V(s.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new V(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new V(s.startSourceSpan,"@else block cannot have parameters")),n=!0):$l.test(s.name)||e.push(new V(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function Tb(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new V(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof jo||r instanceof Ns&&r.value.trim().length===0)){if(!(r instanceof Qt)||r.name!=="case"&&r.name!=="default"&&r.name!=="default never"){e.push(new V(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default never"?(n&&e.push(new V(r.startSourceSpan,"@switch block can only have one @default block")),n=!0):r.name==="default"?(n?e.push(new V(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new V(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new V(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function Ks(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 Ed(t,e,n){if(t.parameters.length===0)return e.push(new V(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=Ks(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],a=o.expression.match(hb);if(a===null)e.push(new V(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&!$l.test(t.name))e.push(new V(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(s!==null)e.push(new V(o.sourceSpan,'Conditional can only have one "as" expression'));else{let c=a[2].trim();if(db.test(c)){let u=o.sourceSpan.start.moveBy(a[1].length),h=new G(u,u.moveBy(c.length));s=new En(c,c,h,h)}else e.push(new V(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:r,expressionAlias:s}}function xb(t,e){let n=t.expression,r=/^\s$/,s=0,i=0,o=n.length-1;for(let a=0;a<n.length;a++){let c=n[a];if(c==="(")i=a+1,s++;else{if(r.test(c))continue;break}}if(s===0)return n;for(let a=n.length-1;a>-1;a--){let c=n[a];if(c===")"){if(o=a,s--,s===0)break}else{if(r.test(c))continue;break}}return s!==0?(e.push(new V(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var np=class extends gs{constructor(){super(...arguments);l(this,"hasPipe",!1)}visitPipe(){this.hasPipe=!0}},Cb=/^\d+\.?\d*(ms|s)?$/,Nb=/^\s$/,wd=new Map([[Jt,St],[An,Bn],[Et,We]]),rt;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(rt||(rt={}));function Ib({expression:t,sourceSpan:e},n,r){let s=t.indexOf("never"),i=new G(e.start.moveBy(s),e.start.moveBy(s+5)),o=Lp(t,e),a=Mp(t,e);s===-1?r.push(new V(e,'Could not find "never" keyword in expression')):Op("never",n,r,new iu(i,e,o,null,a))}function Lc({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new G(e.start.moveBy(i),e.start.moveBy(i+4)),a=Lp(t,e),c=Mp(t,e);if(i===-1)s.push(new V(e,'Could not find "when" keyword in expression'));else{let u=Jo(t,i+1),h=n.parseBinding(t.slice(u),!1,e,e.start.offset+u);Op("when",r,s,new Ka(h,e,a,o,c))}}function Mc({expression:t,sourceSpan:e},n,r,s,i){let o=t.indexOf("on"),a=new G(e.start.moveBy(o),e.start.moveBy(o+2)),c=Lp(t,e),u=Mp(t,e);if(o===-1)s.push(new V(e,'Could not find "on" keyword in expression'));else{let h=Jo(t,o+1),d=t.startsWith("hydrate");new rp(t,n,h,e,r,s,d?Lb:Pb,d,c,a,u).parse()}}function Lp(t,e){return t.startsWith("prefetch")?new G(e.start,e.start.moveBy(8)):null}function Mp(t,e){return t.startsWith("hydrate")?new G(e.start,e.start.moveBy(7)):null}var rp=class{constructor(e,n,r,s,i,o,a,c,u,h,d){l(this,"expression");l(this,"bindingParser");l(this,"start");l(this,"span");l(this,"triggers");l(this,"errors");l(this,"validator");l(this,"isHydrationTrigger");l(this,"prefetchSpan");l(this,"onSourceSpan");l(this,"hydrateSpan");l(this,"index",0);l(this,"tokens");this.expression=e,this.bindingParser=n,this.start=r,this.span=s,this.triggers=i,this.errors=o,this.validator=a,this.isHydrationTrigger=c,this.prefetchSpan=u,this.onSourceSpan=h,this.hydrateSpan=d,this.tokens=new Xo().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(ct))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(Et)){this.advance();let n=this.errors.length,r=this.consumeParameters();if(this.errors.length!==n)break;this.consumeTrigger(e,r),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,n){let r=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),s=new G(r,r.moveBy(e.strValue.length)),i=r.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,c=o?this.prefetchSpan:null,u=o?this.hydrateSpan:null,h=new G(o?this.span.start:r,i);try{switch(e.toString()){case rt.IDLE:this.trackTrigger("idle",Ab(n,s,h,c,a,u));break;case rt.TIMER:this.trackTrigger("timer",Db(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case rt.INTERACTION:this.trackTrigger("interaction",_b(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case rt.IMMEDIATE:this.trackTrigger("immediate",bb(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case rt.HOVER:this.trackTrigger("hover",kb(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case rt.VIEWPORT:this.trackTrigger("viewport",Rb(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(Et))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r=[];for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(We)&&n.length===0){r.length&&e.push({expression:this.tokenRangeText(r),start:r[0].index});break}if(s.type===q.Character&&wd.has(s.numValue)&&n.push(wd.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(ct)&&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(We)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(ct)&&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){Op(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 V(new G(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function Op(t,e,n,r){e[t]?n.push(new V(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function Ab(t,e,n,r,s,i){if(t.length>1)throw new Error(`"${rt.IDLE}" trigger can only have zero or one parameters`);let o=null;if(t[0]&&(o=Zo(t[0].expression),o===null))throw new Error(`Could not parse time value of trigger "${rt.IDLE}"`);return new li(e,n,r,s,i,o)}function Db(t,e,n,r,s,i){if(t.length!==1)throw new Error(`"${rt.TIMER}" trigger must have exactly one parameter`);let o=Zo(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${rt.TIMER}"`);return new zn(o,e,n,r,s,i)}function bb(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${rt.IMMEDIATE}" trigger cannot have parameters`);return new ci(e,n,r,s,i)}function kb(t,e,n,r,s,i,o){var a,c;return o(rt.HOVER,t),new ys((c=(a=t[0])==null?void 0:a.expression)!=null?c:null,e,n,r,s,i)}function _b(t,e,n,r,s,i,o){var a,c;return o(rt.INTERACTION,t),new vs((c=(a=t[0])==null?void 0:a.expression)!=null?c:null,e,n,r,s,i)}function Rb(t,e,n,r,s,i,o,a,c,u){u(rt.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 ms){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 ge)||!(v.receiver instanceof Ht))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');h=v.name,d=new ms(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=sp.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 br(h,d,s,i,o,a,c)}function Pb(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function Lb(t,e){if(t===rt.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 Jo(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 Zo(t){let e=t.match(Cb);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var sp=class t extends gs{constructor(){super(...arguments);l(this,"dynamicNode",null)}static findDynamicNode(n){let r=new t;return r.visit(n),r.dynamicNode}visit(n){!(n instanceof Se)&&!(n instanceof lt)&&!(n instanceof vo)&&!(n instanceof ms)?this.dynamicNode=n:super.visit(n)}},Mb=/^prefetch\s+when\s/,Ob=/^prefetch\s+on\s/,Fb=/^hydrate\s+when\s/,$b=/^hydrate\s+on\s/,Bb=/^hydrate\s+never(\s*)$/,Ng=/^minimum\s/,Ub=/^after\s/,Vb=/^when\s/,Gb=/^on\s/;function ip(t){return t==="placeholder"||t==="loading"||t==="error"}function Hb(t,e,n,r){let s=[],{placeholder:i,loading:o,error:a}=qb(e,s,n),{triggers:c,prefetchTriggers:u,hydrateTriggers:h}=Kb(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 G(t.sourceSpan.start,p);return{node:new Kn(me(n,t.children,t.children),c,u,h,i,o,a,t.nameSpan,g,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:s}}function qb(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!ip(o.name)){e.push(new V(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new V(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=Wb(o,n);break;case"loading":s!==null?e.push(new V(o.startSourceSpan,"@defer block can only have one @loading block")):s=jb(o,n);break;case"error":i!==null?e.push(new V(o.startSourceSpan,"@defer block can only have one @error block")):i=zb(o,n);break}}catch(a){e.push(new V(o.startSourceSpan,a.message))}return{placeholder:r,loading:s,error:i}}function Wb(t,e){let n=null;for(let r of t.parameters)if(Ng.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=Zo(r.expression.slice(Jo(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 Io(me(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function jb(t,e){let n=null,r=null;for(let s of t.parameters)if(Ub.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=Zo(s.expression.slice(Jo(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(Ng.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=Zo(s.expression.slice(Jo(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 Ao(me(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function zb(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Do(me(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Kb(t,e,n,r){let s={},i={},o={};for(let a of t.parameters)Vb.test(a.expression)?Lc(a,e,s,n):Gb.test(a.expression)?Mc(a,e,s,n):Mb.test(a.expression)?Lc(a,e,i,n):Ob.test(a.expression)?Mc(a,e,i,n):Fb.test(a.expression)?Lc(a,e,o,n):$b.test(a.expression)?Mc(a,e,o,n):Bb.test(a.expression)?Ib(a,o,n):n.push(new V(a.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&n.push(new V(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:s,prefetchTriggers:i,hydrateTriggers:o}}var Xb=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Td=1,xd=2,Cd=3,Nd=4,Id=5,Yb=6,qi=7,lr={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Oc="*",Qb=new Set(["link","style","script","ng-template","ng-container","ng-content"]),Jb=new Set(["ngProjectAs","ngNonBindable"]);function Zb(t,e,n){let r=new op(e,n),s=me(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 op=class{constructor(e,n){l(this,"bindingParser");l(this,"options");l(this,"errors",[]);l(this,"styles",[]);l(this,"styleUrls",[]);l(this,"ngContentSelectors",[]);l(this,"commentNodes",[]);l(this,"inI18nBlock",!1);l(this,"processedNodes",new Set);this.bindingParser=e,this.options=n}visitElement(e){let n=Ma(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=Cg(e);if(r.type===Pt.SCRIPT)return null;if(r.type===Pt.STYLE){let D=ek(e);return D!==null&&this.styles.push(D),null}else if(r.type===Pt.STYLESHEET&&ZD(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=sw(e.name),{attributes:i,boundEvents:o,references:a,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=me(Ad,e.children).flat(1/0):E=me(this,e.children,e.children);let I;if(r.type===Pt.NG_CONTENT){let D=r.selectAttr,k=e.attrs.map(_=>this.visitAttribute(_));I=new hi(D,k,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);I=new Te(e.name,i,D.bound,o,v,[],E,a,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 k of D.bound)k.type===J.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",k.sourceSpan);I=new It(e.name,i,D.bound,o,v,E,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return h&&(I=this.wrapInTemplate(I,p,u,g,s,n)),n&&(this.inI18nBlock=!1),I}visitAttribute(e){return new on(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(!Ma(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(lw)){let a=i.trim(),c=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[a]=new ai(c,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new fm(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new _l(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 nt&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new er(e.name,r,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let n=Ma(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&&Qb.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:r,boundEvents:s,references:i,templateVariables:o,elementHasInlineTemplate:a,parsedProperties:c,templateParsedProperties:u,i18nAttrsMeta:h}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(i);let d=this.extractDirectives(e),p;e.attrs.find(E=>E.name==="ngNonBindable")?p=me(Ad,e.children).flat(1/0):p=me(this,e.children,e.children);let g=this.categorizePropertyAttributes(e.tagName,c,h),v=new vr(e.componentName,e.tagName,e.fullName,r,g.bound,s,d,p,i,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(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=Hb(e,this.findConnectedBlocks(r,n,ip),this,this.bindingParser);break;case"switch":s=yb(e,this,this.bindingParser);break;case"for":s=gb(e,this.findConnectedBlocks(r,n,vd),this,this.bindingParser);break;case"if":s=mb(e,this.findConnectedBlocks(r,n,Sd),this,this.bindingParser);break;default:let i;ip(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):vd(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Sd(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 Xa(e.name,e.sourceSpan,e.nameSpan),errors:[new V(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 jo)){if(o instanceof Ns&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof Qt)||!r(o.name))break;s.push(o),this.processedNodes.add(o)}}return s}categorizePropertyAttributes(e,n,r){let s=[],i=[];return n.forEach(o=>{let a=r[o.name];if(o.isLiteral)i.push(new on(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let c=o.name.toLowerCase().startsWith("attr.on"),u=this.bindingParser.createBoundElementProperty(e,o,!c,!1);s.push(Sn.fromBoundElementProperty(u,a))}}),{bound:s,literal:i}}prepareAttributes(e,n){let r=[],s=[],i=[],o=[],a=[],c={},u=[],h=[],d=!1;for(let p of e){let g=!1,v=!1;if(p.i18n&&(c[p.name]=p.i18n),p.name.startsWith(Oc)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",p.sourceSpan),v=!0,d=!0;let E=p.value,I=p.name.substring(Oc.length),D=[],k=p.valueSpan?p.valueSpan.fullStart.offset:p.sourceSpan.fullStart.offset+p.name.length;this.bindingParser.parseInlineTemplateBinding(I,E,p.sourceSpan,k,[],u,D,!0),h.push(...D.map(_=>new En(_.name,_.value,_.sourceSpan,_.keySpan,_.valueSpan)))}else g=this.parseAttribute(n,p,[],r,s,i,o);!g&&!v&&a.push(this.visitAttribute(p))}return{attributes:a,boundEvents:s,references:o,variables:i,templateVariables:h,elementHasInlineTemplate:d,parsedProperties:r,templateParsedProperties:u,i18nAttrsMeta:c}}parseAttribute(e,n,r,s,i,o,a){var D;let c=n.name,u=n.value,h=n.sourceSpan,d=n.valueSpan?n.valueSpan.fullStart.offset:h.fullStart.offset;function p(k,_,H){let X=k.start.moveBy(_.length),ie=X.moveBy(H.length);return new G(X,ie,X,H)}let g=c.match(Xb);if(g){if(g[Td]!=null){let k=g[qi],_=p(h,g[Td],k);this.bindingParser.parsePropertyBinding(k,u,!1,!1,h,d,n.valueSpan,r,s,_)}else if(g[xd])if(e){let k=g[qi],_=p(h,g[xd],k);this.parseVariable(k,u,h,_,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',h);else if(g[Cd]){let k=g[qi],_=p(h,g[Cd],k);this.parseReference(k,u,h,_,n.valueSpan,a)}else if(g[Nd]){let k=[],_=g[qi],H=p(h,g[Nd],_);this.bindingParser.parseEvent(_,u,!1,h,n.valueSpan||h,r,k,H),Fc(k,i)}else if(g[Id]){let k=g[qi],_=p(h,g[Id],k);this.bindingParser.parsePropertyBinding(k,u,!1,!0,h,d,n.valueSpan,r,s,_),this.parseAssignmentEvent(k,u,h,n.valueSpan,r,i,_,d)}else if(g[Yb]){let k=p(h,"",c);this.bindingParser.parseLiteralAttr(c,u,h,d,n.valueSpan,r,s,k)}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 k=c.substring(v.start.length,c.length-v.end.length),_=p(h,v.start,k);if(v.start===lr.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(k,u,!1,!0,h,d,n.valueSpan,r,s,_),this.parseAssignmentEvent(k,u,h,n.valueSpan,r,i,_,d);else if(v.start===lr.PROPERTY.start)this.bindingParser.parsePropertyBinding(k,u,!1,!1,h,d,n.valueSpan,r,s,_);else{let H=[];this.bindingParser.parseEvent(k,u,!1,h,n.valueSpan||h,r,H,_),Fc(H,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 yt?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(Oc)?(o=!0,this.reportError(`Shorthand template syntax "${g.name}" is not supported inside a directive context`,g.sourceSpan)):Jb.has(g.name)&&(o=!0,this.reportError(`Attribute "${g.name}" is not supported in a directive context`,g.sourceSpan));if(!o&&s.has(i.name)&&(o=!0,this.reportError(`Cannot apply directive "${i.name}" multiple times on the same element`,i.sourceSpan)),o)continue;let{attributes:a,parsedProperties:c,boundEvents:u,references: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!==J.Property&&g.type!==J.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",g.sourceSpan));o||(s.add(i.name),r.push(new ra(i.name,a,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!==J.Animation)}wrapInTemplate(e,n,r,s,i,o){let a=this.categorizePropertyAttributes("ng-template",n,s),c=[];a.literal.forEach(p=>c.push(p)),a.bound.forEach(p=>c.push(p));let u={attributes:[],inputs:[],outputs:[]};(e instanceof It||e instanceof vr)&&(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 vr?d=e.tagName:e instanceof Te?d=null:d=e.name,new Te(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=ng(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new ai(o,n,s):new ts(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 En(e,n,r,s,i))}parseReference(e,n,r,s,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',r):e.length===0?this.reportError("Reference does not have a name",r):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,r),o.push(new _r(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,a,c){let u=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,u,a),Fc(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=Un.ERROR){this.errors.push(new V(n,e,r))}},ap=class{visitElement(e){let n=Cg(e);if(n.type===Pt.SCRIPT||n.type===Pt.STYLE||n.type===Pt.STYLESHEET)return null;let r=me(this,e.children,null);return new It(e.name,me(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new on(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new ts(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new ts(e.startSourceSpan.toString(),e.startSourceSpan),...me(this,e.children)];return e.endSourceSpan!==null&&r.push(new ts(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new ts(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,n){let r=me(this,e.children,null);return new It(e.fullName,me(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,n){return null}},Ad=new ap;function Fc(t,e){e.push(...t.map(n=>Rn.fromParsedEvent(n)))}function ek(t){return t.children.length!==1||!(t.children[0]instanceof Ns)?null:t.children[0].value}var tk=[" ",`
|
|
33
|
-
`,"\r"," "];function
|
|
34
|
-
If '${r}' is a directive input, make sure the directive is imported by the current module.`),e.errors.push(new V(n,c))}}}function hk(t,e,n){let r=new wu;return t.map(s=>r.shimCssText(s,e,n))}function Mg(t){var e;return(e=t.hostDirectives)!=null&&e.length?Ve(ce(t.hostDirectives.map(n=>Ct([{key:"directive",value:Ei(n.directive.type),quoted:!1},{key:"inputs",value:lp(n.inputs||{}),quoted:!1},{key:"outputs",value:lp(n.outputs||{}),quoted:!1}])))):Lt}function fk(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=Dd(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=Dd(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(Ct(s))}r.isForwardReference&&(n=!0)}return n?new hn([],[new ke(ce(e))]):ce(e)}function Dd(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(S(n),S(t[n]));return e.length>0?ce(e):null}var Vr=class extends gs{visit(e){e instanceof Se?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 Ka?this.visit(e.value):e instanceof br&&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)}},Dn;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Dn||(Dn={}));var Jn=class t{constructor(e){l(this,"forwardMap");l(this,"reverseMap");this.forwardMap=e,this.reverseMap=dk(e)}static empty(){return new t(new Map)}static fromMappedObject(e){let n=new Map;for(let r of Object.keys(e)){let s=e[r],i;typeof s=="string"?i={classPropertyName:r,bindingPropertyName:s,isSignal:!1}:i=s,n.set(r,i)}return new t(n)}static merge(e,n){let r=new Map(e.forwardMap.entries());for(let[s,i]of n.forwardMap)r.set(s,i);return new t(r)}get classPropertyNames(){return Array.from(this.forwardMap.keys())}get propertyNames(){return Array.from(this.reverseMap.keys())}hasBindingPropertyName(e){return this.reverseMap.has(e)}getByBindingPropertyName(e){return this.reverseMap.has(e)?this.reverseMap.get(e):null}getByClassPropertyName(e){return this.forwardMap.has(e)?this.forwardMap.get(e):null}toDirectMappedObject(){let e={};for(let[n,r]of this.forwardMap)e[n]=r.bindingPropertyName;return e}toJointMappedObject(e){let n={};for(let[r,s]of this.forwardMap)n[r]=e(s);return n}*[Symbol.iterator](){for(let e of this.forwardMap.values())yield e}};function dk(t){let e=new Map;for(let[n,r]of t)e.has(r.bindingPropertyName)||e.set(r.bindingPropertyName,[]),e.get(r.bindingPropertyName).push(r);return e}var ea=class{constructor(e){l(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,a=new Map,c=new Map,u=new Map,h=new Map,d=new Set,p=new Set,g=[],v=new Map;if(e.template){let E=bd.apply(e.template);mk(E,a),up.apply(e.template,this.directiveMatcher,n,r,s,i,o,v),Cl.applyWithScope(e.template,E,c,u,h,d,p,g)}return e.host&&(n.set(e.host.node,e.host.directives),Cl.applyWithScope(e.host.node,bd.apply(e.host.node),c,u,h,d,p,g)),new pp(e,n,r,s,i,o,c,u,h,a,d,p,g,v)}},bd=class Oa{constructor(e,n){l(this,"parentScope");l(this,"rootNode");l(this,"namedEntities",new Map);l(this,"elementLikeInScope",new Set);l(this,"childScopes",new Map);l(this,"isDeferred");this.parentScope=e,this.rootNode=n,this.isDeferred=e!==null&&e.isDeferred?!0:n instanceof Kn}static newRootScope(){return new Oa(null,null)}static apply(e){let n=Oa.newRootScope();return n.ingest(e),n}ingest(e){e instanceof Te?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof rs?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof kr?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof bo||e instanceof ko||e instanceof Kn||e instanceof Do||e instanceof Io||e instanceof Ao||e instanceof hi?e.children.forEach(n=>n.visit(this)):e instanceof _o||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 Oa(this,e);n.ingest(e),this.childScopes.set(e,n)}},up=class t{constructor(e,n,r,s,i,o,a){l(this,"directiveMatcher");l(this,"directives");l(this,"eagerDirectives");l(this,"missingDirectives");l(this,"bindings");l(this,"references");l(this,"conflictingHostDirectiveBindings");l(this,"isInDeferBlock",!1);this.directiveMatcher=e,this.directives=n,this.eagerDirectives=r,this.missingDirectives=s,this.bindings=i,this.references=o,this.conflictingHostDirectiveBindings=a}static apply(e,n,r,s,i,o,a,c){new t(n,r,s,i,o,a,c).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 Ys){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 Ys){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 Xs){let n=[],r=uw(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){if(n.length>0){let r=this.dedupeAndMergeDirectives(e,n);this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r)}}dedupeAndMergeDirectives(e,n){if(n.length===0||n.every(o=>o.matchSource===Dn.Selector))return n;let r=new Set,s=new Map,i=new Map;for(let o of n)o.matchSource===Dn.Selector?r.add(o.ref.key):(s.has(o.ref.key)||s.set(o.ref.key,[]),s.get(o.ref.key).push(o));for(let[o,a]of s.entries()){if(r.has(o))continue;if(a.length===1){i.set(o,a[0]);continue}let c={},u={};for(let h of a)this.mergeMapping(e,h,"input",c,h.inputs),this.mergeMapping(e,h,"output",u,h.outputs);i.set(o,he(x({},a[0]),{inputs:Jn.fromMappedObject(c),outputs:Jn.fromMappedObject(u)}))}return n.reduce((o,a)=>(a.matchSource===Dn.Selector?o.push(a):i.has(a.ref.key)&&(o.push(i.get(a.ref.key)),i.delete(a.ref.key)),o),[])}mergeMapping(e,n,r,s,i){for(let o of i){let a=s[o.classPropertyName];if(!a){s[o.classPropertyName]=o;continue}if(a.bindingPropertyName===o.bindingPropertyName&&a.classPropertyName===o.classPropertyName&&a.isSignal===o.isSignal)continue;this.conflictingHostDirectiveBindings.has(e)||this.conflictingHostDirectiveBindings.set(e,[]);let c=this.conflictingHostDirectiveBindings.get(e),u=c.find(h=>h.directive.ref.key===n.ref.key&&h.kind===r&&h.classPropertyName===o.classPropertyName);u||(u={directive:n,kind:r,classPropertyName:a.classPropertyName,conflictingAliases:new Set([a.bindingPropertyName])},c.push(u)),u.conflictingAliases.add(o.bindingPropertyName)}}trackSelectorlessMatchesAndDirectives(e,n){if(n.length===0)return;this.trackMatchedDirectives(e,n);let r=(s,i,o)=>{s[o].hasBindingPropertyName(i.name)&&this.bindings.set(i,s)};for(let s of n)e.inputs.forEach(i=>r(s,i,"inputs")),e.attributes.forEach(i=>r(s,i,"inputs")),e.outputs.forEach(i=>r(s,i,"outputs"));e.references.forEach(s=>this.references.set(s,{directive:n[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,n){this.trackMatchedDirectives(e,n),e.references.forEach(s=>{let i=null;if(s.value.trim()==="")i=n.find(o=>o.isComponent)||null;else if(i=n.find(o=>o.exportAs!==null&&o.exportAs.some(a=>a===s.value))||null,i===null)return;i!==null?this.references.set(s,{directive:i,node:e}):this.references.set(s,e)});let r=(s,i)=>{let o=n.find(c=>c[i].hasBindingPropertyName(s.name)),a=o!==void 0?o:e;this.bindings.set(s,a)};e.inputs.forEach(s=>r(s,"inputs")),e.attributes.forEach(s=>r(s,"inputs")),e instanceof Te&&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){}},Cl=class t extends Vr{constructor(n,r,s,i,o,a,c,u,h){super();l(this,"bindings");l(this,"symbols");l(this,"usedPipes");l(this,"eagerPipes");l(this,"deferBlocks");l(this,"nestingLevel");l(this,"scope");l(this,"rootNode");l(this,"level");l(this,"visitNode",n=>n.visit(this));this.bindings=n,this.symbols=r,this.usedPipes=s,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=a,this.scope=c,this.rootNode=u,this.level=h}static applyWithScope(n,r,s,i,o,a,c,u){let h=n instanceof Te?n:null;new t(s,i,a,c,u,o,r,h,0).ingest(n)}ingest(n){var r;if(n instanceof Te)n.variables.forEach(this.visitNode),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof rs)n.expressionAlias!==null&&this.visitNode(n.expressionAlias),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof kr)this.visitNode(n.item),n.contextVariables.forEach(s=>this.visitNode(s)),(r=n.trackBy)==null||r.visit(this),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Kn){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 bo||n instanceof ko||n instanceof Do||n instanceof Io||n instanceof Ao||n instanceof hi?(n.children.forEach(s=>s.visit(this)),this.nestingLevel.set(n,this.level)):n instanceof _o?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){var r;(r=n.expression)==null||r.visit(this)}visitForLoopBlock(n){var r;n.expression.visit(this),this.ingestScopedNode(n),(r=n.empty)==null||r.visit(this)}visitForLoopBlockEmpty(n){this.ingestScopedNode(n)}visitIfBlockBranch(n){var r;(r=n.expression)==null||r.visit(this),this.ingestScopedNode(n)}visitContent(n){this.ingestScopedNode(n)}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 Ht))return;let s=this.scope.lookup(r);s!==null&&this.bindings.set(n,s)}},pp=class{constructor(e,n,r,s,i,o,a,c,u,h,d,p,g,v){l(this,"target");l(this,"directives");l(this,"eagerDirectives");l(this,"missingDirectives");l(this,"bindings");l(this,"references");l(this,"exprTargets");l(this,"symbols");l(this,"nestingLevel");l(this,"scopedNodeEntities");l(this,"usedPipes");l(this,"eagerPipes");l(this,"conflictingHostDirectiveBindings");l(this,"deferredBlocks");l(this,"deferredScopes");this.target=e,this.directives=n,this.eagerDirectives=r,this.missingDirectives=s,this.bindings=i,this.references=o,this.exprTargets=a,this.symbols=c,this.nestingLevel=u,this.scopedNodeEntities=h,this.usedPipes=d,this.eagerPipes=p,this.conflictingHostDirectiveBindings=v,this.deferredBlocks=g.map(E=>E[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 vs)&&!(n instanceof br)&&!(n instanceof ys))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 _l)){if(i!==null)return null;o instanceof It&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof _r&&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 _r?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)}getConflictingHostDirectiveBindings(e){return this.conflictingHostDirectiveBindings.get(e)||null}findEntityInScope(e,n){let r=this.getEntitiesInScope(e);for(let s of r)if(s.name===n)return s;return null}referenceTargetToElement(e){return e instanceof It?e:e instanceof Te||e.node instanceof vr||e.node instanceof ra||e.node instanceof _o?null:this.referenceTargetToElement(e.node)}};function mk(t,e){let n=new Map;function r(i){if(n.has(i.rootNode))return n.get(i.rootNode);let o=i.namedEntities,a;return i.parentScope!==null?a=new Map([...r(i.parentScope),...o]):a=new Map(o),n.set(i.rootNode,a),a}let s=[t];for(;s.length>0;){let i=s.pop();for(let o of i.childScopes.values())s.push(o);r(i)}for(let[i,o]of n)e.set(i,new Set(o.values()))}var hp=class{};function fp(t,e){let n=new Xn;return n.set("token",t.type.value),n.set("factory",t.factory===void 0?pu(t.type.value,t.type.value,e):Nt([],t.factory.callFn([]))),t.autoProvided===!1&&n.set("autoProvided",S(!1)),{expression:R(m.defineService).callFn([n.toLiteralMap()],void 0,!0),type:vm(t.type.type,t.typeArgumentCount),statements:[]}}var dp=class{constructor(e=new gu){l(this,"jitEvaluator");l(this,"FactoryTarget",ut);l(this,"ResourceLoader",hp);l(this,"elementSchemaRegistry",new zt);this.jitEvaluator=e}compilePipe(e,n,r){let s={name:r.name,type:Me(r.type),typeArgumentCount:0,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=Eu(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=Rk(r),i=Eu(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){var o;let{expression:s,statements:i}=uu({name:r.name,type:Me(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:Ld(r.providedIn),useClass:Ls(r,"useClass"),useFactory:_a(r,"useFactory"),useValue:Ls(r,"useValue"),useExisting:Ls(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(Bg)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){var o;let{expression:s,statements:i}=uu({name:r.type.name,type:Me(r.type),typeArgumentCount:0,providedIn:Ld(r.providedIn),useClass:Ls(r,"useClass"),useFactory:_a(r,"useFactory"),useValue:Ls(r,"useValue"),useExisting:Ls(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(Md)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={type:Me(r.type),providers:r.providers&&r.providers.length>0?new W(r.providers):null,imports:r.imports.map(o=>new W(o))},i=vu(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=Pk(r),i=vu(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:_t.Global,type:Me(r.type),bootstrap:r.bootstrap.map(Me),declarations:r.declarations.map(Me),publicDeclarationTypes:null,imports:r.imports.map(Me),includeImportTypes:!0,exports:r.exports.map(Me),selectorScopeMode:di.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(Me):null,id:r.id?new W(r.id):null},i=Rm(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=bw(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=Rd(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=Fg(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileService(e,n,r){let{expression:s,statements:i}=fp({type:Me(r.type),typeArgumentCount:r.typeArgumentCount,autoProvided:r.autoProvided,factory:r.factory?_a(r,"factory"):void 0},!0);return this.jitExpression(s,e,n,i)}compileServiceDeclaration(e,n,r){let{expression:s,statements:i}=fp({type:Me(r.type),typeArgumentCount:0,autoProvided:r.autoProvided,factory:r.factory?_a(r,"factory"):void 0},!0);return this.jitExpression(s,e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new ni,i=Si(),o=kg(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){var c;let{template:s,defer:i}=$g(r.template,r.name,n,r.preserveWhitespaces,void 0),o=he(x(x({},r),Rd(r)),{selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(Sk),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}),a=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=vk(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new ni,i=Si(),o=_g(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=hr({name:r.name,type:Me(r.type),typeArgumentCount:r.typeArgumentCount,deps:Tk(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:Me(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(Md):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return Tw(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new Xe("$def",e,void 0,Ue.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new Su(n),!0).$def}};function kd(t){return he(x({},t),{isSignal:t.isSignal,predicate:Og(t.predicate),read:t.read?new W(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function _d(t){var e,n,r,s;return{propertyName:t.propertyName,first:(e=t.first)!=null?e:!1,predicate:Og(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 Og(t){return Array.isArray(t)?t:Is(new W(t),1)}function Rd(t){var a;let e=_k(t.inputs||[]),n=Bc(t.outputs||[]),r=t.propMetadata,s={},i={};for(let c in r)r.hasOwnProperty(c)&&r[c].forEach(u=>{Ak(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}:Dk(u)&&(i[c]=u.alias||c)});let o=(a=t.hostDirectives)!=null&&a.length?t.hostDirectives.map(c=>typeof c=="function"?{directive:Me(c),inputs:null,outputs:null,isForwardReference:!1}:{directive:Me(c.directive),isForwardReference:!1,inputs:c.inputs?Bc(c.inputs):null,outputs:c.outputs?Bc(c.outputs):null}):null;return he(x({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Me(t.type),deps:null,host:x({},Ck(t.propMetadata,t.typeSourceSpan,t.host)),inputs:x(x({},e),s),outputs:x(x({},n),i),queries:t.queries.map(kd),providers:t.providers!=null?new W(t.providers):null,viewQueries:t.viewQueries.map(kd),hostDirectives:o})}function Fg(t,e){var r,s,i,o,a,c,u,h,d,p,g,v;let n=(r=t.hostDirectives)!=null&&r.length?t.hostDirectives.map(E=>({directive:Me(E.directive),isForwardReference:!1,inputs:E.inputs?Pd(E.inputs):null,outputs:E.outputs?Pd(E.outputs):null})):null;return{name:t.type.name,type:Me(t.type),typeSourceSpan:e,selector:(s=t.selector)!=null?s:null,inputs:t.inputs?bk(t.inputs):{},outputs:(i=t.outputs)!=null?i:{},host:gk(t.host),queries:((o=t.queries)!=null?o:[]).map(_d),viewQueries:((a=t.viewQueries)!=null?a:[]).map(_d),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:pm(t.version),isSignal:(g=t.isSignal)!=null?g:!1,hostDirectives:n,legacyOptionalChaining:(v=t.legacyOptionalChaining)!=null?v:wp}}function gk(t={}){var e,n,r;return{attributes:yk((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 Pd(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function yk(t){let e={};for(let n of Object.keys(t))e[n]=new W(t[n]);return e}function vk(t,e,n){var a,c,u,h,d;let{template:r,defer:s}=$g(t.template,t.type.name,n,(a=t.preserveWhitespaces)!=null?a:!1,t.deferBlockDependencies),i=[];if(t.dependencies)for(let p of t.dependencies)switch(p.kind){case"directive":case"component":i.push($c(p));break;case"pipe":i.push(wk(p));break}else(t.components||t.directives||t.pipes)&&(t.components&&i.push(...t.components.map(p=>$c(p,!0))),t.directives&&i.push(...t.directives.map(p=>$c(p))),t.pipes&&i.push(...Ek(t.pipes)));let o=i.some(({kind:p})=>p===Or.Directive||p===Or.NgModule);return he(x({},Fg(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:Fa.OnPush,encapsulation:(h=t.encapsulation)!=null?h:Cn.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o,legacyOptionalChaining:(d=t.legacyOptionalChaining)!=null?d:wp})}function Sk(t){return he(x({},t),{type:new W(t.type)})}function $c(t,e=null){var n,r,s;return{kind:Or.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 Ek(t){return t?Object.keys(t).map(e=>({kind:Or.Pipe,name:e,type:new W(t[e])})):[]}function wk(t){return{kind:Or.Pipe,name:t.name,type:new W(t.type)}}function $g(t,e,n,r,s){let i=Ig(t,n,{preserveWhitespaces:r});if(i.errors!==null){let c=i.errors.map(u=>u.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${c}`)}let a=new ea(null).bind({template:i.nodes});return{template:i,defer:xk(a,s)}}function Ls(t,e){if(t.hasOwnProperty(e))return Is(new W(t[e]),0)}function _a(t,e){if(t.hasOwnProperty(e))return new W(t[e])}function Ld(t){let e=typeof t=="function"?new W(t):new _e(t!=null?t:null);return Is(e,0)}function Tk(t){return t==null?null:t.map(Bg)}function Bg(t){let e=t.attribute!=null,n=t.token===null?null:new W(t.token),r=e?new W(t.attribute):n;return Ug(r,e,t.host,t.optional,t.self,t.skipSelf)}function Md(t){var r,s,i,o,a;let e=(r=t.attribute)!=null?r:!1,n=t.token===null?null:new W(t.token);return Ug(n,e,(s=t.host)!=null?s:!1,(i=t.optional)!=null?i:!1,(o=t.self)!=null?o:!1,(a=t.skipSelf)!=null?a:!1)}function Ug(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 xk(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 Ck(t,e,n){let r=Pg(n||{});for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{Nk(o)?r.properties[o.hostPropertyName||i]=hm("this",i):Ik(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});let s=Lg(r,e);if(s.length)throw new Error(s.map(i=>i.msg).join(`
|
|
35
|
-
`));return r}function Nk(t){return t.ngMetadataName==="HostBinding"}function Ik(t){return t.ngMetadataName==="HostListener"}function Ak(t){return t.ngMetadataName==="Input"}function Dk(t){return t.ngMetadataName==="Output"}function bk(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=kk(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 kk(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 _k(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=Vg(n);e[s]={bindingPropertyName:r,classPropertyName:s,required:!1,isSignal:!1,transformFunction:null}}else e[n.name]={bindingPropertyName:n.alias||n.name,classPropertyName:n.name,required:n.required||!1,isSignal:!1,transformFunction:n.transform!=null?new W(n.transform):null};return e},{})}function Bc(t){return t.reduce((e,n)=>{let[r,s]=Vg(n);return e[s]=r,e},{})}function Vg(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n!=null?n:e,e]}function Rk(t){var e,n;return{name:t.type.name,type:Me(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:(e=t.pure)!=null?e:!0,isStandalone:(n=t.isStandalone)!=null?n:pm(t.version)}}function Pk(t){return{name:t.type.name,type:Me(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 Lk(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new dp}var Od;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Od||(Od={}));var mp=class{constructor(){l(this,"closedByParent",!1);l(this,"implicitNamespacePrefix",null);l(this,"isVoid",!1);l(this,"ignoreFirstLf",!1);l(this,"canSelfClose",!0);l(this,"preventNamespaceInheritance",!1)}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return pn.PARSABLE_DATA}},pF=new mp;var Ni=new mo("22.0.0");var Nl;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Nl||(Nl={}));var ta;(function(t){t.DIRECTIVE="DIR",t.HOST_DIRECTIVE="HOSTDIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(ta||(ta={}));var gp;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning"})(gp||(gp={}));var Il;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(Il||(Il={}));var so=class so{static veWillInferAnyFor(e){let n=so.SINGLETON;return e instanceof vn?e.visit(n):e.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(n=>n.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,n){return!1}};l(so,"SINGLETON",new so);var Fd=so;var Mk=["errors","dirty","disabled","disabledReasons","hidden","invalid","name","pending","readonly","touched","max","maxLength","min","minLength","pattern","required"],hF=new Set([...Mk,"value","checked"]);var fF=new zt;var dF=new zt;Lk(Xi);var vF=(0,Hg.createRequire)(O);var SF=new Map([[bn.Minus,"-"],[bn.Plus,"+"]]),EF=new Map([[w.And,"&&"],[w.Bigger,">"],[w.BiggerEquals,">="],[w.BitwiseAnd,"&"],[w.BitwiseOr,"|"],[w.Divide,"/"],[w.Equals,"=="],[w.Identical,"==="],[w.Lower,"<"],[w.LowerEquals,"<="],[w.Minus,"-"],[w.Modulo,"%"],[w.Multiply,"*"],[w.NotEquals,"!="],[w.NotIdentical,"!=="],[w.Or,"||"],[w.Plus,"+"],[w.NullishCoalesce,"??"],[w.Exponentiation,"**"],[w.In,"in"],[w.InstanceOf,"instanceof"],[w.Assign,"="],[w.AdditionAssignment,"+="],[w.SubtractionAssignment,"-="],[w.MultiplicationAssignment,"*="],[w.DivisionAssignment,"/="],[w.RemainderAssignment,"%="],[w.ExponentiationAssignment,"**="],[w.AndAssignment,"&&="],[w.OrAssignment,"||="],[w.NullishCoalesceAssignment,"??="]]);C();var qg=require("module");var Fk=N(require("typescript"),1),$k=N(require("typescript"),1);var CF=(0,qg.createRequire)(O),Wg=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 Ok=new Wg;function jg(t){Ok=t}var Ii=N(require("typescript"),1);var Hk=N(require("typescript"),1);var qk=N(require("typescript"),1),Kp=N(require("typescript"),1),la=N(require("typescript"),1),U=N(require("typescript"),1),Ne=N(require("typescript"),1),Ul=N(require("typescript"),1);var Vl=N(require("typescript"),1),a_=N(require("typescript"),1),l_=N(require("typescript"),1),c_=N(require("typescript"),1),u_=N(require("typescript"),1);var p_=N(require("typescript"),1),h_=N(require("typescript"),1);var Ce=N(require("typescript"),1),Up=N(require("typescript"),1),nr=N(require("typescript"),1),ly=N(require("typescript"),1),tr=N(require("typescript"),1),v_=N(require("typescript"),1);var S_=N(require("typescript"),1),E_=N(require("typescript"),1),w_=N(require("typescript"),1);var T_=N(require("typescript"),1);var x_=N(require("typescript"),1),C_=N(require("typescript"),1);var N_=N(require("typescript"),1);var I_=N(require("typescript"),1),A_=N(require("typescript"),1),D_=N(require("typescript"),1);var b_=N(require("typescript"),1),k_=N(require("typescript"),1);var PF=(0,sy.createRequire)(O),L;(function(t){t[t.DECORATOR_ARG_NOT_LITERAL=1001]="DECORATOR_ARG_NOT_LITERAL",t[t.DECORATOR_ARITY_WRONG=1002]="DECORATOR_ARITY_WRONG",t[t.DECORATOR_NOT_CALLED=1003]="DECORATOR_NOT_CALLED",t[t.DECORATOR_UNEXPECTED=1005]="DECORATOR_UNEXPECTED",t[t.DECORATOR_COLLISION=1006]="DECORATOR_COLLISION",t[t.VALUE_HAS_WRONG_TYPE=1010]="VALUE_HAS_WRONG_TYPE",t[t.VALUE_NOT_LITERAL=1011]="VALUE_NOT_LITERAL",t[t.DUPLICATE_DECORATED_PROPERTIES=1012]="DUPLICATE_DECORATED_PROPERTIES",t[t.INITIALIZER_API_WITH_DISALLOWED_DECORATOR=1050]="INITIALIZER_API_WITH_DISALLOWED_DECORATOR",t[t.INITIALIZER_API_DECORATOR_METADATA_COLLISION=1051]="INITIALIZER_API_DECORATOR_METADATA_COLLISION",t[t.INITIALIZER_API_NO_REQUIRED_FUNCTION=1052]="INITIALIZER_API_NO_REQUIRED_FUNCTION",t[t.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY=1053]="INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY",t[t.DUPLICATE_BINDING_NAME=1054]="DUPLICATE_BINDING_NAME",t[t.INCORRECTLY_DECLARED_ON_STATIC_MEMBER=1100]="INCORRECTLY_DECLARED_ON_STATIC_MEMBER",t[t.COMPONENT_MISSING_TEMPLATE=2001]="COMPONENT_MISSING_TEMPLATE",t[t.PIPE_MISSING_NAME=2002]="PIPE_MISSING_NAME",t[t.PARAM_MISSING_TOKEN=2003]="PARAM_MISSING_TOKEN",t[t.DIRECTIVE_MISSING_SELECTOR=2004]="DIRECTIVE_MISSING_SELECTOR",t[t.UNDECORATED_PROVIDER=2005]="UNDECORATED_PROVIDER",t[t.DIRECTIVE_INHERITS_UNDECORATED_CTOR=2006]="DIRECTIVE_INHERITS_UNDECORATED_CTOR",t[t.UNDECORATED_CLASS_USING_ANGULAR_FEATURES=2007]="UNDECORATED_CLASS_USING_ANGULAR_FEATURES",t[t.COMPONENT_RESOURCE_NOT_FOUND=2008]="COMPONENT_RESOURCE_NOT_FOUND",t[t.COMPONENT_INVALID_SHADOW_DOM_SELECTOR=2009]="COMPONENT_INVALID_SHADOW_DOM_SELECTOR",t[t.COMPONENT_NOT_STANDALONE=2010]="COMPONENT_NOT_STANDALONE",t[t.COMPONENT_IMPORT_NOT_STANDALONE=2011]="COMPONENT_IMPORT_NOT_STANDALONE",t[t.COMPONENT_UNKNOWN_IMPORT=2012]="COMPONENT_UNKNOWN_IMPORT",t[t.HOST_DIRECTIVE_INVALID=2013]="HOST_DIRECTIVE_INVALID",t[t.HOST_DIRECTIVE_NOT_STANDALONE=2014]="HOST_DIRECTIVE_NOT_STANDALONE",t[t.HOST_DIRECTIVE_COMPONENT=2015]="HOST_DIRECTIVE_COMPONENT",t[t.INJECTABLE_INHERITS_INVALID_CONSTRUCTOR=2016]="INJECTABLE_INHERITS_INVALID_CONSTRUCTOR",t[t.HOST_DIRECTIVE_UNDEFINED_BINDING=2017]="HOST_DIRECTIVE_UNDEFINED_BINDING",t[t.HOST_DIRECTIVE_CONFLICTING_ALIAS=2018]="HOST_DIRECTIVE_CONFLICTING_ALIAS",t[t.HOST_DIRECTIVE_MISSING_REQUIRED_BINDING=2019]="HOST_DIRECTIVE_MISSING_REQUIRED_BINDING",t[t.CONFLICTING_INPUT_TRANSFORM=2020]="CONFLICTING_INPUT_TRANSFORM",t[t.COMPONENT_INVALID_STYLE_URLS=2021]="COMPONENT_INVALID_STYLE_URLS",t[t.COMPONENT_UNKNOWN_DEFERRED_IMPORT=2022]="COMPONENT_UNKNOWN_DEFERRED_IMPORT",t[t.NON_STANDALONE_NOT_ALLOWED=2023]="NON_STANDALONE_NOT_ALLOWED",t[t.MISSING_NAMED_TEMPLATE_DEPENDENCY=2024]="MISSING_NAMED_TEMPLATE_DEPENDENCY",t[t.INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE=2025]="INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE",t[t.UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD=2026]="UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD",t[t.COMPONENT_ANIMATIONS_CONFLICT=2027]="COMPONENT_ANIMATIONS_CONFLICT",t[t.SERVICE_CONSTRUCTOR_DI=2028]="SERVICE_CONSTRUCTOR_DI",t[t.SYMBOL_NOT_EXPORTED=3001]="SYMBOL_NOT_EXPORTED",t[t.IMPORT_CYCLE_DETECTED=3003]="IMPORT_CYCLE_DETECTED",t[t.IMPORT_GENERATION_FAILURE=3004]="IMPORT_GENERATION_FAILURE",t[t.CONFIG_FLAT_MODULE_NO_INDEX=4001]="CONFIG_FLAT_MODULE_NO_INDEX",t[t.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK=4002]="CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK",t[t.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES=4003]="CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL=4004]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK=4005]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK",t[t.CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED=4006]="CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED",t[t.HOST_BINDING_PARSE_ERROR=5001]="HOST_BINDING_PARSE_ERROR",t[t.TEMPLATE_PARSE_ERROR=5002]="TEMPLATE_PARSE_ERROR",t[t.NGMODULE_INVALID_DECLARATION=6001]="NGMODULE_INVALID_DECLARATION",t[t.NGMODULE_INVALID_IMPORT=6002]="NGMODULE_INVALID_IMPORT",t[t.NGMODULE_INVALID_EXPORT=6003]="NGMODULE_INVALID_EXPORT",t[t.NGMODULE_INVALID_REEXPORT=6004]="NGMODULE_INVALID_REEXPORT",t[t.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC=6005]="NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC",t[t.NGMODULE_REEXPORT_NAME_COLLISION=6006]="NGMODULE_REEXPORT_NAME_COLLISION",t[t.NGMODULE_DECLARATION_NOT_UNIQUE=6007]="NGMODULE_DECLARATION_NOT_UNIQUE",t[t.NGMODULE_DECLARATION_IS_STANDALONE=6008]="NGMODULE_DECLARATION_IS_STANDALONE",t[t.NGMODULE_BOOTSTRAP_IS_STANDALONE=6009]="NGMODULE_BOOTSTRAP_IS_STANDALONE",t[t.WARN_NGMODULE_ID_UNNECESSARY=6100]="WARN_NGMODULE_ID_UNNECESSARY",t[t.SCHEMA_INVALID_ELEMENT=8001]="SCHEMA_INVALID_ELEMENT",t[t.SCHEMA_INVALID_ATTRIBUTE=8002]="SCHEMA_INVALID_ATTRIBUTE",t[t.MISSING_REFERENCE_TARGET=8003]="MISSING_REFERENCE_TARGET",t[t.MISSING_PIPE=8004]="MISSING_PIPE",t[t.WRITE_TO_READ_ONLY_VARIABLE=8005]="WRITE_TO_READ_ONLY_VARIABLE",t[t.DUPLICATE_VARIABLE_DECLARATION=8006]="DUPLICATE_VARIABLE_DECLARATION",t[t.SPLIT_TWO_WAY_BINDING=8007]="SPLIT_TWO_WAY_BINDING",t[t.MISSING_REQUIRED_INPUTS=8008]="MISSING_REQUIRED_INPUTS",t[t.ILLEGAL_FOR_LOOP_TRACK_ACCESS=8009]="ILLEGAL_FOR_LOOP_TRACK_ACCESS",t[t.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT=8010]="INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT",t[t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION=8011]="CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION",t[t.DEFERRED_PIPE_USED_EAGERLY=8012]="DEFERRED_PIPE_USED_EAGERLY",t[t.DEFERRED_DIRECTIVE_USED_EAGERLY=8013]="DEFERRED_DIRECTIVE_USED_EAGERLY",t[t.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY=8014]="DEFERRED_DEPENDENCY_IMPORTED_EAGERLY",t[t.ILLEGAL_LET_WRITE=8015]="ILLEGAL_LET_WRITE",t[t.LET_USED_BEFORE_DEFINITION=8016]="LET_USED_BEFORE_DEFINITION",t[t.CONFLICTING_LET_DECLARATION=8017]="CONFLICTING_LET_DECLARATION",t[t.UNCLAIMED_DIRECTIVE_BINDING=8018]="UNCLAIMED_DIRECTIVE_BINDING",t[t.DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER=8019]="DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER",t[t.DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER=8020]="DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER",t[t.DEFER_TRIGGER_MISCONFIGURATION=8021]="DEFER_TRIGGER_MISCONFIGURATION",t[t.FORM_FIELD_UNSUPPORTED_BINDING=8022]="FORM_FIELD_UNSUPPORTED_BINDING",t[t.MULTIPLE_MATCHING_COMPONENTS=8023]="MULTIPLE_MATCHING_COMPONENTS",t[t.CONFLICTING_HOST_DIRECTIVE_BINDING=-8024]="CONFLICTING_HOST_DIRECTIVE_BINDING",t[t.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"})(L||(L={}));function Wl(t){return parseInt("-99"+t)}var On=class extends Error{constructor(e,n,r,s){super(`FatalDiagnosticError: Code: ${e}, Message: ${Ii.default.flattenDiagnosticMessageText(r,`
|
|
36
|
-
`)}`);l(this,"code");l(this,"node");l(this,"diagnosticMessage");l(this,"relatedInformation");l(this,"_isFatalDiagnosticError",!0);this.code=e,this.node=n,this.diagnosticMessage=r,this.relatedInformation=s,Object.setPrototypeOf(this,new.target.prototype)}toDiagnostic(){return jp(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function jp(t,e,n,r,s=Ii.default.DiagnosticCategory.Error){return e=Ii.default.getOriginalNode(e),{category:s,code:Wl(t),file:Ii.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:r}}function zp(t,e){return{category:Ii.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var Vk=new Set([L.DECORATOR_ARG_NOT_LITERAL,L.IMPORT_CYCLE_DETECTED,L.PARAM_MISSING_TOKEN,L.SCHEMA_INVALID_ELEMENT,L.SCHEMA_INVALID_ATTRIBUTE,L.MISSING_REFERENCE_TARGET,L.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,L.WARN_NGMODULE_ID_UNNECESSARY]),iy=(()=>{let t=Ni.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="22.0.0"?"next":`v${Ni.major}`}.angular.dev`})(),Gk=`${iy}/errors`,Ge;(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"})(Ge||(Ge={}));var $p;(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"})($p||($p={}));var Bp;(function(t){t[t.Success=0]="Success",t[t.Failed=1]="Failed"})(Bp||(Bp={}));function Wk(t){return la.default.isIdentifier(t)||la.default.isPropertyAccessExpression(t)&&la.default.isIdentifier(t.expression)&&la.default.isIdentifier(t.name)}var jr;(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"})(jr||(jr={}));var ve;(function(t){t[t.PublicWritable=0]="PublicWritable",t[t.PublicReadonly=1]="PublicReadonly",t[t.Protected=2]="Protected",t[t.Private=3]="Private",t[t.EcmaScriptPrivate=4]="EcmaScriptPrivate"})(ve||(ve={}));var oy={};function jl(t){return Kp.default.isClassDeclaration(t)&&jk(t.name)}function jk(t){return t!==void 0&&Kp.default.isIdentifier(t)}function Xp(t){switch(t){case ve.EcmaScriptPrivate:return"ES private";case ve.Private:return"private";case ve.Protected:return"protected";case ve.PublicReadonly:return"public readonly";case ve.PublicWritable:default:return"public"}}function zk(t,e,n){var c,u;if(t===null)return Qk();if(!Ne.default.isTypeReferenceNode(t))return aa(t);let r=Jk(t,e);if(r===null)return Xk(t);let{local:s,decl:i}=r;if(i.valueDeclaration===void 0||i.flags&Ne.default.SymbolFlags.ConstEnum){let h=null;if(i.declarations!==void 0&&i.declarations.length>0&&(h=i.declarations[0]),!n||h&&[Ne.default.SyntaxKind.TypeParameter,Ne.default.SyntaxKind.TypeAliasDeclaration,Ne.default.SyntaxKind.InterfaceDeclaration].includes(h.kind))return Kk(t,h)}let o=s.declarations&&s.declarations[0];if(o!==void 0){if(Ne.default.isImportClause(o)&&o.name!==void 0)return o.phaseModifier===Ne.default.SyntaxKind.TypeKeyword?Bl(t,o):Ne.default.isImportDeclaration(o.parent)?{kind:0,expression:o.name,defaultImportStatement:o.parent}:aa(t);if(Ne.default.isImportSpecifier(o)){if(o.isTypeOnly)return Bl(t,o);if(o.parent.parent.phaseModifier===Ne.default.SyntaxKind.TypeKeyword)return Bl(t,o.parent.parent);let h=(o.propertyName||o.name).text,[d,...p]=r.symbolNames,g=o.parent.parent.parent;if(!Ne.default.isImportDeclaration(g))return aa(t);let v=zg(g);return{kind:1,valueDeclaration:(c=i.valueDeclaration)!=null?c:null,moduleName:v,importedName:h,nestedPath:p}}else if(Ne.default.isNamespaceImport(o)){if(o.parent.phaseModifier===Ne.default.SyntaxKind.TypeKeyword)return Bl(t,o.parent);if(r.symbolNames.length===1)return Yk(t,o.parent);let[h,d,...p]=r.symbolNames,g=o.parent.parent;if(!Ne.default.isImportDeclaration(g))return aa(t);let v=zg(g);return{kind:1,valueDeclaration:(u=i.valueDeclaration)!=null?u:null,moduleName:v,importedName:d,nestedPath:p}}}let a=ay(t);return a!==null?{kind:0,expression:a,defaultImportStatement:null}:aa(t)}function aa(t){return{kind:2,reason:{kind:5,typeNode:t}}}function Kk(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function Bl(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function Xk(t){return{kind:2,reason:{kind:3,typeNode:t}}}function Yk(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function Qk(){return{kind:2,reason:{kind:0}}}function ay(t){return Ne.default.isTypeReferenceNode(t)?Yp(t.typeName):null}function Jk(t,e){let n=t.typeName,r=e.getSymbolAtLocation(n);if(r===void 0)return null;let s=r,i=n,o=[];for(;Ne.default.isQualifiedName(i);)o.unshift(i.right.text),i=i.left;if(o.unshift(i.text),i!==n){let c=e.getSymbolAtLocation(i);c!==void 0&&(s=c)}let a=r;return r.flags&Ne.default.SymbolFlags.Alias&&(a=e.getAliasedSymbol(r)),{local:s,decl:a,symbolNames:o}}function Yp(t){if(Ne.default.isQualifiedName(t)){let e=Yp(t.left);return e!==null?Ne.default.factory.createPropertyAccessExpression(e,t.right):null}else if(Ne.default.isIdentifier(t)){let e=Ne.default.setOriginalNode(Ne.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function zg(t){if(!Ne.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}var Qp=class{constructor(t,e=!1,n=!1){l(this,"checker");l(this,"isLocalCompilation");l(this,"skipPrivateValueDeclarationTypes");this.checker=t,this.isLocalCompilation=e,this.skipPrivateValueDeclarationTypes=n}getDecoratorsOfDeclaration(t){let e=U.default.canHaveDecorators(t)?U.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 Kg(t).members.map(n=>{let r=Jp(n);return r===null?null:he(x({},r),{decorators:this.getDecoratorsOfDeclaration(n)})}).filter(n=>n!==null)}getConstructorParameters(t){let e=Kg(t),n=e.getSourceFile().isDeclarationFile,r=e.members.find(s=>U.default.isConstructorDeclaration(s)&&(n||s.body!==void 0));return r===void 0?null:r.parameters.map(s=>{let i=Xg(s.name),o=this.getDecoratorsOfDeclaration(s),a=s.type||null,c=a;if(c&&U.default.isUnionTypeNode(c)){let h=c.types.filter(d=>!(U.default.isLiteralTypeNode(d)&&d.literal.kind===U.default.SyntaxKind.NullKeyword));h.length===1&&(c=h[0])}let u=zk(c,this.checker,this.isLocalCompilation);return{name:i,nameNode:s.name,typeValueReference:u,typeNode:a,decorators:o}})}getImportOfIdentifier(t){let e=this.getDirectImportOfIdentifier(t);return e!==null?e:U.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,n_(t.parent)):U.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,r_(t.parent)):null}getExportsOfModule(t){if(!U.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 jl(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(U.default.isClassDeclaration(t)||U.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(r=>r.token===U.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(!U.default.isFunctionDeclaration(t)&&!U.default.isMethodDeclaration(t)&&!U.default.isFunctionExpression(t)&&!U.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=U.default.isBlock(t.body)?Array.from(t.body.statements):[U.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),r=this.checker.getSignaturesOfType(n,U.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=Xg(s.name),o=s.initializer||null;return{name:i,node:s,initializer:o,type:s.type||null}})}}getGenericArityOfClass(t){return U.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;U.default.isVariableDeclaration(t)&&U.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=U.default.canHaveModifiers(e)?U.default.getModifiers(e):void 0;return n!==void 0&&n.some(s=>s.kind===U.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!U.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=s_(n);return r===null||!U.default.isStringLiteral(r.moduleSpecifier)?null:{from:r.moduleSpecifier.text,name:i_(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=U.default.isNamespaceImport(r)?r:null;if(!s)return null;let i=s.parent.parent;return!U.default.isImportDeclaration(i)||!U.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&&U.default.isShorthandPropertyAssignment(n)){let s=this.checker.getShorthandAssignmentValueSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}else if(n!==void 0&&U.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&U.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0&&(!this.skipPrivateValueDeclarationTypes||!t_(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(U.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!Wk(e))return null;let r=U.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&U.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()?oy:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function Zk(t){let e=U.default.getModifiers(t),n=!1,r=!1,s=ve.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case U.default.SyntaxKind.StaticKeyword:n=!0;break;case U.default.SyntaxKind.PrivateKeyword:s=ve.Private;break;case U.default.SyntaxKind.ProtectedKeyword:s=ve.Protected;break;case U.default.SyntaxKind.ReadonlyKeyword:r=!0;break}return r&&s===ve.PublicWritable&&(s=ve.PublicReadonly),t.name!==void 0&&U.default.isPrivateIdentifier(t.name)&&(s=ve.EcmaScriptPrivate),{accessLevel:s,isStatic:n}}function Jp(t){let e=null,n=null,r=null,s=null;if(U.default.isPropertyDeclaration(t))e=jr.Property,n=t.initializer||null;else if(U.default.isGetAccessorDeclaration(t))e=jr.Getter;else if(U.default.isSetAccessorDeclaration(t))e=jr.Setter;else if(U.default.isMethodDeclaration(t))e=jr.Method;else if(U.default.isConstructorDeclaration(t))e=jr.Constructor;else return null;if(U.default.isConstructorDeclaration(t))r="constructor";else if(U.default.isIdentifier(t.name))r=t.name.text,s=t.name;else if(U.default.isStringLiteral(t.name))r=t.name.text,s=t.name;else if(U.default.isPrivateIdentifier(t.name))r=t.name.text,s=t.name;else return null;let{accessLevel:i,isStatic:o}=Zk(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:r,nameNode:s,value:n,isStatic:o}}function zl(t){let e=new Map;return t.properties.forEach(n=>{if(U.default.isPropertyAssignment(n)){let r=e_(n.name);if(r===null)return;e.set(r,n.initializer)}else if(U.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function Kg(t){if(!U.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${U.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function Xg(t){return U.default.isIdentifier(t)?t.text:null}function e_(t){return U.default.isIdentifier(t)||U.default.isStringLiteral(t)||U.default.isNumericLiteral(t)?t.text:null}function t_(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 n_(t){for(;U.default.isQualifiedName(t.left);)t=t.left;return U.default.isIdentifier(t.left)?t.left:null}function r_(t){for(;U.default.isPropertyAccessExpression(t.expression);)t=t.expression;return U.default.isIdentifier(t.expression)?t.expression:null}function s_(t){let e=t.parent;for(;e&&!U.default.isSourceFile(e);){if(U.default.isImportDeclaration(e))return e;e=e.parent}return null}function i_(t,e){return U.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var Fp=Symbol("LocalExportedDeclarations"),Zp=class{constructor(){l(this,"fileToNamedImports",new WeakMap);l(this,"fileToNamespaceImports",new WeakMap)}isPotentialReferenceToNamedImport(t,e,n){let r=t.getSourceFile();this.scanImports(r);let i=this.fileToNamedImports.get(r).get(n),o=i==null?void 0:i.get(e);return o!==void 0&&o.has(t.text)}isPotentialReferenceToNamespaceImport(t,e){var s,i;let n=t.getSourceFile();return this.scanImports(n),(i=(s=this.fileToNamespaceImports.get(n).get(e))==null?void 0:s.has(t.text))!=null?i:!1}hasNamedImport(t,e,n){this.scanImports(t);let s=this.fileToNamedImports.get(t).get(n);return s!==void 0&&s.has(e)}hasNamespaceImport(t,e){return this.scanImports(t),this.fileToNamespaceImports.get(t).has(e)}scanImports(t){var r,s;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let e=new Map,n=new Map;this.fileToNamedImports.set(t,e),this.fileToNamespaceImports.set(t,n);for(let i of t.statements){if(!Ul.default.isImportDeclaration(i)||!Ul.default.isStringLiteralLike(i.moduleSpecifier)||((r=i.importClause)==null?void 0:r.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(Ul.default.isNamespaceImport(i.importClause.namedBindings))n.has(o)||n.set(o,new Set),n.get(o).add(i.importClause.namedBindings.name.text);else for(let a of i.importClause.namedBindings.elements){let c=a.name.text,u=a.propertyName===void 0?c:a.propertyName.text;e.has(o)||e.set(o,new Map);let h=e.get(o);h.has(u)||h.set(u,new Set),(s=h.get(u))==null||s.add(c)}}}};var Yg=Symbol("patchedReferencedAliases");function eh(t){o_(t)||Qg();let e=t.getEmitResolver();if(e===void 0)return null;let n=e[Yg];if(n!==void 0)return n;let r=e.isReferencedAliasDeclaration;r===void 0&&Qg();let s=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return th(i)&&s.has(i)?!0:r.call(e,i,...o)},e[Yg]=s}function th(t){return Vl.default.isImportSpecifier(t)||Vl.default.isNamespaceImport(t)||Vl.default.isImportClause(t)}function o_(t){return t.getEmitResolver!==void 0}function Qg(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
|
|
32
|
+
`.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 JC=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function ZC(t){return t.split(JC)[2]}var Kf=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function Xf(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Kf.has(t+"|"+e)||Kf.has("*|"+e)}var eN=t=>(e,n)=>{var s;let r=(s=t.get(e))!=null?s:e;return r instanceof Yn&&(n instanceof fi&&r.i18n instanceof Tt&&(n.previousMessage=r.i18n),r.i18n=n),n},vl=class{constructor(e=!1,n=!1,r=!0,s=!r){l(this,"keepI18nAttrs");l(this,"enableI18nLegacyMessageIdFormat");l(this,"preserveSignificantWhitespace");l(this,"retainEmptyTokens");l(this,"hasI18nMeta",!1);l(this,"_errors",[]);this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=n,this.preserveSignificantWhitespace=r,this.retainEmptyTokens=s}_generateI18nMessage(e,n="",r){let{meaning:s,description:i,customId:o}=this._parseMetadata(n),c=zC(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 ml(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 fi){let i=s.name;r=this._generateI18nMessage([e],s);let o=ym(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 me(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(uw(e)){this.hasI18nMeta=!0;let r=[],s={};for(let i of e.attrs)if(i.name===mm){let o=e.i18n||i.value,a=new Map,c=this.preserveSignificantWhitespace?e.children:Tn(new gl(!1,a),e.children);n=this._generateI18nMessage(c,o,eN(a)),n.nodes.length===0&&(n=void 0),e.i18n=n}else if(i.name.startsWith(uu)){let o=i.name.slice(uu.length),a;e instanceof vt?a=e.tagName===null?!1:Xf(e.tagName,o):a=Xf(e.name,o),a||o.toLowerCase().startsWith("on")?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)}me(this,e.children,n)}_parseMetadata(e){return typeof e=="string"?rN(e):e instanceof Tt?e:{}}_setMessageId(e,n){e.id||(e.id=n instanceof Tt&&n.id||hE(e))}_setLegacyIds(e,n){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[pE(e),em(e)];else if(typeof n!="string"){let r=n instanceof Tt?n:n instanceof fi?n.previousMessage:void 0;e.legacyIds=r?r.legacyIds:[]}}_reportError(e,n){this._errors.push(new V(e.sourceSpan,n))}},tN="|",nN="@@";function rN(t=""){let e,n,r;if(t=t.trim(),t){let s=t.indexOf(nN),i=t.indexOf(tN),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 sN(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}),om(e)}function iN(t,e,n,r){let s=aN(e),i=[S(s)];Object.keys(r).length&&(i.push(Ru(Ep(r,!0),!0)),i.push(Ru({original_code:Nt(Object.keys(r).map(c=>({key:ra(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 Xe(n.name,Z("goog").prop("getMsg").callFn(i,null,void 0,[mo()]),dn,Ue.Final);o.addLeadingComment(sN(e));let a=new tt(t.set(n));return[o,a]}var Xu=class{formatPh(e){return`{$${ra(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(n=>n.visit(this)).join("")}visitIcu(e){return Zm(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)}},oN=new Xu;function aN(t){return t.nodes.map(e=>e.visit(oN,null)).join("")}function lN(t,e,n){let{messageParts:r,placeHolders:s}=cN(e),i=uN(e),o=s.map(u=>n[u.text]),a=cm(e,r,s,o,i),c=t.set(a);return[new tt(c,null,[mo()])]}var Yu=class{constructor(e,n){l(this,"placeholderToMessage");l(this,"pieces");this.placeholderToMessage=e,this.pieces=n}visitText(e){if(this.pieces[this.pieces.length-1]instanceof yr)this.pieces[this.pieces.length-1].text+=e.value;else{let n=new G(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new yr(e.value,n))}}visitContainer(e){e.children.forEach(n=>n.visit(this))}visitIcu(e){this.pieces.push(new yr(Zm(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 ns(ra(e,!1),n,r)}};function cN(t){let e=[],n=new Yu(t.placeholderToMessage,e);return t.nodes.forEach(r=>r.visit(n)),pN(e)}function uN(t){let e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new G(e.sourceSpan.fullStart,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function pN(t){let e=[],n=[];t[0]instanceof ns&&e.push(Ac(t[0].sourceSpan.start));for(let r=0;r<t.length;r++){let s=t[r];s instanceof yr?e.push(s):(n.push(s),t[r-1]instanceof ns&&e.push(Ac(t[r-1].sourceSpan.end)))}return t[t.length-1]instanceof ns&&e.push(Ac(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:n}}function Ac(t){return new yr("",new G(t,t))}var Yf="ngI18nClosureMode",hN="i18n_",fN="I18N_EXP_",Qf="\uFFFD",dN="MSG_";function Jf(t){return`${dN}${t}`.toUpperCase()}function mN(t){return new Xe(t.name,void 0,dn,void 0,t.sourceSpan)}function gN(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===ws.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,a=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}=ag(t,e,i,d);if(d.i18nBlock!==null){let v=t.addConst(p,g);a.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()}}T.remove(d)}for(let h of t.units)for(let d of h.create)if(Ur(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(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 Mt(E))}for(let h of t.units)for(let d of h.create)if(d.kind===f.I18nStart){let p=a.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 ag(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}=ag(t,e,n,d);s.push(...g);let v=(u=i.get(d.messagePlaceholder))!=null?u:[];v.push(p),i.set(d.messagePlaceholder,v)}yN(r,i),r.params=new Map([...r.params.entries()].sort());let o=Z(t.pool.uniqueName(hN),Ke),a=EN(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=Ep(h,!1),p=[];r.postprocessingParams.size>0&&p.push(Ru(d,!0)),c=g=>R(m.i18nPostprocess).callFn([g,...p])}return s.push(...vN(r.message,o,a,r.params,c)),{mainVar:o,statements:s}}function yN(t,e){for(let[n,r]of e)r.length===1?t.params.set(n,r[0]):(t.params.set(n,S(`${Qf}${fN}${n}${Qf}`)),t.postprocessingParams.set(n,ce(r)))}function vN(t,e,n,r,s){let i=Object.fromEntries(r),o=[mN(e),ta(SN(),iN(e,t,n,i),lN(e,t,Ep(i,!1)))];return s&&o.push(new tt(e.set(s(e)))),o}function SN(){return Ei(Z(Yf)).notIdentical(S("undefined",Dl)).and(Z(Yf))}function EN(t,e,n,r){let s,i=n;if(r){let o=Jf("EXTERNAL_"),a=t.uniqueName(i);s=`${o}${Jr(e)}$$${a}`}else{let o=Jf(i);s=t.uniqueName(o)}return Z(s)}function wN(t){var e,n,r;for(let s of t.units){let i=null,o=null,a=new Map,c=new Map,u=new Map;for(let 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(a.set(h.xref,i),c.set(h.xref,o),h.icuPlaceholder!==null){let d=UT(t.allocateXrefId(),h.icuPlaceholder,[h.initialValue]);T.replace(h,d),u.set(h.xref,d)}else T.remove(h);break}for(let h of s.update)switch(h.kind){case f.InterpolateText:if(!a.has(h.target))continue;let d=a.get(h.target),p=c.get(h.target),g=u.get(h.target),v=p?p.context:d.context,E=p?mi.Postproccessing:mi.Creation,I=[];for(let D=0;D<h.interpolation.expressions.length;D++){let _=h.interpolation.expressions[D];I.push(Bm(v,d.xref,d.xref,d.handle,_,(e=g==null?void 0:g.xref)!=null?e:null,(n=h.interpolation.i18nPlaceholders[D])!=null?n:null,E,ws.I18nText,"",(r=_.sourceSpan)!=null?r:h.sourceSpan))}T.replaceWithMany(h,I),g!==void 0&&(g.strings=h.interpolation.strings);break}}}function TN(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=xN(n.localRefs);n.localRefs=t.addConst(r)}else n.localRefs=null;break}}function xN(t){let e=[];for(let n of t)e.push(S(n.name),S(n.target));return ce(e)}function CN(t){for(let e of t.units){let n=Fe.HTML;for(let r of e.create)r.kind===f.ElementStart&&r.namespace!==n&&(T.insertBefore(kT(r.namespace),r),n=r.namespace)}}function NN(t){let e=[],n=0,r=0,s=0,i=0,o=0,a=null;for(;n<t.length;)switch(t.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:s===0?s=39:s===39&&t.charCodeAt(n-1)!==92&&(s=0);break;case 34:s===0?s=34:s===34&&t.charCodeAt(n-1)!==92&&(s=0);break;case 58:!a&&r===0&&s===0&&(a=lg(t.substring(o,n-1).trim()),i=n);break;case 59:if(a&&i>0&&r===0&&s===0){let u=t.substring(i,n-1).trim();e.push(a,u),o=n,i=0,a=null}break}if(a&&i){let c=t.slice(i).trim();e.push(a,c)}return e}function lg(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function IN(t){let e=new Map;for(let n of t.units)for(let r of n.create)Ur(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&&Um(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===xt.Structural)continue;if(r.name==="style"){let i=NN(r.expression.value);for(let o=0;o<i.length-1;o+=2)T.insertBefore(Zt(r.target,M.StyleProperty,null,i[o],S(i[o+1]),null,null,re.STYLE),r);T.remove(r)}else if(r.name==="class"){let i=r.expression.value.trim().split(/\s+/g);for(let o of i)T.insertBefore(Zt(r.target,M.ClassName,null,o,null,null,null,re.NONE),r);T.remove(r)}}}function AN(t){zi(t.root,t.componentName,{index:0})}function zi(t,e,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Jr(`${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=Jr(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=Jr(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=Jr(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=Jr(`${t.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case f.Variable:r.set(s.xref,DN(s.variable,n));break;case f.RepeaterCreate:if(!(t instanceof en))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);zi(u,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,n)}zi(t.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,n);break;case f.Projection:if(!(t instanceof en))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);zi(u,`${e}_ProjectionFallback_${s.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 a=t.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;zi(a,`${e}${c}_${s.handle.slot}`,n);break;case f.StyleProp:s.name=Zf(bN(s.name));break;case f.ClassProp:s.name=Zf(s.name);break}for(let s of t.ops())$e(s,i=>{if(!(!(i instanceof Hn)||i.name!==null)){if(!r.has(i.xref))throw new Error(`Variable ${i.xref} not yet named`);i.name=r.get(i.xref)}})}function DN(t,e){if(t.name===null)switch(t.kind){case Qe.Context:t.name=`ctx_r${e.index++}`;break;case Qe.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 bN(t){return t.startsWith("--")?t:lg(t)}function Zf(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function _N(t){for(let e of t.units){for(let n of e.functions)Dc(n.ops);for(let n of e.create)(n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener)&&Dc(n.handlerOps);Dc(e.update)}}function Dc(t){for(let e of t){if(e.kind!==f.Statement||!(e.statement instanceof tt)||!(e.statement.expr instanceof tl))continue;let n=e.statement.expr.steps,r=!0;for(let s=e.next;s.kind!==f.ListEnd&&r;s=s.next)$e(s,(i,o)=>{if(!Ln(i))return i;if(r&&!(o&K.InChildOperation))switch(i.kind){case F.NextContext:i.steps+=n,T.remove(e),r=!1;break;case F.GetCurrentView:case F.Reference:case F.ContextLetReference:r=!1;break}})}}var kN="ng-container";function RN(t){for(let e of t.units){let n=new Set;for(let r of e.create)r.kind===f.ElementStart&&r.tag===kN&&(r.kind=f.ContainerStart,n.add(r.xref)),r.kind===f.ElementEnd&&n.has(r.xref)&&(r.kind=f.ContainerEnd)}}function PN(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 LN(t){let e=new Map;for(let n of t.units)for(let r of n.create)Ur(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&&T.insertAfter(IT(r.xref),r),(r.kind===f.ElementEnd||r.kind===f.ContainerEnd)&&PN(e,r.xref).nonBindable&&T.insertBefore(AT(r.xref),r)}function In(t){return e=>e.kind===t}function Ji(t,e){return n=>n.kind===t&&e===n.expression instanceof De}function MN(t){return t.kind===f.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===f.TwoWayListener||t.kind===f.Animation||t.kind===f.AnimationListener}function ON(t){return(t.kind===f.Property||t.kind===f.TwoWayProperty)&&!(t.expression instanceof De)}var FN=[{test:t=>t.kind===f.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:MN}],$N=[{test:In(f.StyleMap),transform:Sl},{test:In(f.ClassMap),transform:Sl},{test:In(f.StyleProp)},{test:In(f.ClassProp)},{test:Ji(f.Attribute,!0)},{test:Ji(f.Property,!0)},{test:ON},{test:Ji(f.Attribute,!1)},{test:In(f.Control)}],BN=[{test:Ji(f.DomProperty,!0)},{test:Ji(f.DomProperty,!1)},{test:In(f.Attribute)},{test:In(f.StyleMap),transform:Sl},{test:In(f.ClassMap),transform:Sl},{test:In(f.StyleProp)},{test:In(f.ClassProp)}],ed=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 UN(t){for(let e of t.units){td(e.create,FN);let n=e.job.kind===b.Host?BN:$N;td(e.update,n)}}function td(t,e){let n=[],r=null;for(let s of t){let i=Oo(s)?s.target:null;(!ed.has(s.kind)||i!==r&&r!==null&&i!==null)&&(T.insertBefore(nd(n,e),s),n=[],r=null),ed.has(s.kind)&&(n.push(s),T.remove(s),r=i!=null?i:r)}t.push(nd(n,e))}function nd(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 Sl(t){return t.slice(t.length-1)}function VN(t){for(let e of t.units){let n=Xm(e);for(let r of e.ops())if(r.kind===f.Binding){let s=HN(n,r.target);GN(r.name)&&s.kind===f.Projection&&T.remove(r)}}}function GN(t){return t.toLowerCase()==="select"}function HN(t,e){let n=t.get(e);if(n===void 0)throw new Error("All attributes should have an slottable target.");return n}function qN(t){for(let e of t.units)WN(e)}function WN(t){for(let e of t.update)$e(e,(n,r)=>{if(!Ln(n)||n.kind!==F.PipeBinding)return;if(r&K.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");jN(t,e.target,n)})}function jN(t,e,n){for(let r=t.create.head.next;r.kind!==f.ListEnd;r=r.next){if(!xi(r)||r.xref!==e)continue;for(;r.next.kind===f.Pipe;)r=r.next;let s=_T(n.target,n.targetSlot,n.name);T.insertBefore(s,r.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${n.name}`)}function zN(t){for(let e of t.units)for(let n of e.update)xe(n,r=>!(r instanceof Cs)||r.args.length<=4?r:new Uo(r.target,r.targetSlot,r.name,ce(r.args),r.args.length),K.None)}function KN(t){cg(t.root,0)}function cg(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=xa(t.job.views.get(r.xref),n,r.i18nPlaceholder,e);break;case f.RepeaterCreate:let s=t.job.views.get(r.xref);e=xa(s,n,r.i18nPlaceholder,e),r.emptyView!==null&&(e=xa(t.job.views.get(r.emptyView),n,r.emptyI18nPlaceholder,e));break;case f.Projection:r.fallbackView!==null&&(e=xa(t.job.views.get(r.fallbackView),n,r.fallbackViewI18nPlaceholder,e));break}return e}function xa(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++,XN(t,e)}return cg(t,r)}function XN(t,e){var n;if(((n=t.create.head.next)==null?void 0:n.kind)!==f.I18nStart){let r=t.job.allocateXrefId();T.insertAfter(Pl(r,e.message,e.root,null),t.create.head),T.insertBefore(Ll(r,null),t.create.tail)}}function YN(t){for(let e of t.units)for(let n of e.ops())$e(n,r=>{if(!(r instanceof xs)||r.body===null)return;let s=new Qu(r.args.length);r.fn=t.pool.getSharedConstant(s,r.body),r.body=null})}var Qu=class extends ho{constructor(n){super();l(this,"numArgs");this.numArgs=n}keyOf(n){return n instanceof $r?`param(${n.index})`:super.keyOf(n)}toSharedConstantDeclaration(n,r){let s=[];for(let o=0;o<this.numArgs;o++)s.push(new Be("a"+o,Ke));let i=P(r,o=>o instanceof $r?Z("a"+o.index):o,K.None);return new Xe(n,new gn(s,i),void 0,Ue.Final)}};function QN(t){for(let e of t.units)for(let n of e.update)xe(n,(r,s)=>s&K.InChildOperation?r:r instanceof Mt?JN(r):r instanceof sn?ZN(r):r,K.None)}function JN(t){let e=[],n=[];for(let r of t.entries){if(r instanceof Nr){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new Nr(new $r(s)))}continue}if(r.isConstant())e.push(r);else{let s=n.length;n.push(r),e.push(new $r(s))}}return new xs(ce(e),n)}function ZN(t){let e=[],n=[];for(let r of t.entries){if(r instanceof yn){if(r.expression.isConstant())e.push(r);else{let s=n.length;n.push(r.expression),e.push(new yn(new $r(s)))}continue}if(r.value.isConstant())e.push(r);else{let s=n.length;n.push(r.value),e.push(new Cr(r.key,new $r(s),r.quoted))}}return new xs(new sn(e),n)}var eI=new Set(["d","i","m","s","u","v"]);function tI(t){for(let e of t.units)for(let n of e.ops())xe(n,r=>r instanceof ps&&nI(r)?t.pool.getSharedConstant(new Ju,r):r,K.None)}function nI(t){if(!t.flags)return!0;for(let e=0;e<t.flags.length;e++)if(!eI.has(t.flags[e]))return!1;return!0}var Ju=class extends ho{toSharedConstantDeclaration(e,n){return new Xe(e,n,void 0,Ue.Final)}};function rI(t,e,n,r,s){return Wr(m.element,t,e,n,r,s)}function sI(t,e,n,r,s){return Wr(m.elementStart,t,e,n,r,s)}function Wr(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 ug(t,e,n,r,s,i,o,a,c){let u=[S(e),n,S(r),S(s),S(i),S(o)];for(a!==null&&(u.push(S(a)),u.push(R(m.templateRefExtractor)));u[u.length-1].isEquivalent(hs);)u.pop();return z(t,u,c)}function kp(t,e,n,r,s){let i=[S(e)];return n instanceof De?i.push(Ci(n,s)):i.push(n),r!==null&&i.push(r),z(t,i,s)}function iI(t){return z(m.elementEnd,[],t)}function oI(t,e,n,r){return Wr(m.elementContainerStart,t,null,e,n,r)}function aI(t,e,n,r){return Wr(m.elementContainer,t,null,e,n,r)}function lI(){return z(m.elementContainerEnd,[],null)}function cI(t,e,n,r,s,i,o,a){return ug(m.templateCreate,t,e,n,r,s,i,o,a)}function uI(){return z(m.disableBindings,[],null)}function pI(){return z(m.enableBindings,[],null)}function hI(t,e,n,r,s){let i=[S(t),e];return n!==null&&i.push(R(n)),z(r?m.syntheticHostListener:m.listener,i,s)}function rd(t,e){return R(m.twoWayBindingSet).callFn([t,e])}function fI(t,e,n){return z(m.twoWayListener,[S(t),e],n)}function dI(t,e){return z(m.pipe,[S(t),S(e)],null)}function mI(){return z(m.namespaceHTML,[],null)}function gI(){return z(m.namespaceSVG,[],null)}function yI(){return z(m.namespaceMathML,[],null)}function vI(t,e){return z(m.advance,t>1?[S(t)]:[],e)}function SI(t){return R(m.reference).callFn([S(t)])}function EI(t){return R(m.nextContext).callFn(t===1?[]:[S(t)])}function wI(){return R(m.getCurrentView).callFn([])}function TI(t){return R(m.restoreView).callFn([t])}function xI(t){return R(m.resetView).callFn([t])}function CI(t,e,n){let r=[S(t,null)];return e!==""&&r.push(S(e)),z(m.text,r,n)}function NI(t,e,n,r,s,i,o,a,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),a!=null?a:S(null),c?R(m.deferEnableTimerScheduling):S(null),S(h)],p;for(;(p=d[d.length-1])!==null&&p instanceof ke&&p.value===null;)d.pop();return z(m.defer,d,u)}function II(t){return z(m.enableIncrementalHydrationRuntime,[],t)}var AI=new Map([[le.Idle,{none:m.deferOnIdle,prefetch:m.deferPrefetchOnIdle,hydrate:m.deferHydrateOnIdle}],[le.Immediate,{none:m.deferOnImmediate,prefetch:m.deferPrefetchOnImmediate,hydrate:m.deferHydrateOnImmediate}],[le.Timer,{none:m.deferOnTimer,prefetch:m.deferPrefetchOnTimer,hydrate:m.deferHydrateOnTimer}],[le.Hover,{none:m.deferOnHover,prefetch:m.deferPrefetchOnHover,hydrate:m.deferHydrateOnHover}],[le.Interaction,{none:m.deferOnInteraction,prefetch:m.deferPrefetchOnInteraction,hydrate:m.deferHydrateOnInteraction}],[le.Viewport,{none:m.deferOnViewport,prefetch:m.deferPrefetchOnViewport,hydrate:m.deferHydrateOnViewport}],[le.Never,{none:m.deferHydrateNever,prefetch:m.deferHydrateNever,hydrate:m.deferHydrateNever}]]);function DI(t,e,n,r){var i;let s=(i=AI.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 bI(t){return z(m.projectionDef,t?[t]:[],null)}function _I(t,e,n,r,s,i,o){let a=[S(t)];return(e!==0||n!==null||r!==null)&&(a.push(S(e)),n!==null&&a.push(n),r!==null&&(n===null&&a.push(S(null)),a.push(Z(r),S(s),S(i)))),z(m.projection,a,o)}function kI(t,e,n,r){let s=[S(t),S(e)];return n!==null&&s.push(S(n)),z(m.i18nStart,s,r)}function RI(t,e,n,r,s,i,o,a){let c=[S(t),e,S(n),S(r),S(s),S(i)];for(o!==null&&(c.push(S(o)),c.push(R(m.templateRefExtractor)));c[c.length-1].isEquivalent(hs);)c.pop();return z(m.conditionalCreate,c,a)}function PI(t,e,n,r,s,i,o,a){let c=[S(t),e,S(n),S(r),S(s),S(i)];for(o!==null&&(c.push(S(o)),c.push(R(m.templateRefExtractor)));c[c.length-1].isEquivalent(hs);)c.pop();return z(m.conditionalBranchCreate,c,a)}function LI(t,e,n,r,s,i,o,a,c,u,h,d,p,g){let v=[S(t),Z(e),S(n),S(r),S(s),S(i),o];return(a||c!==null)&&(v.push(S(a)),c!==null&&(v.push(Z(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 MI(t,e){return z(m.repeater,[t],e)}function OI(t,e,n){return t==="prefetch"?z(m.deferPrefetchWhen,[e],n):t==="hydrate"?z(m.deferHydrateWhen,[e],n):z(m.deferWhen,[e],n)}function FI(t,e){return z(m.declareLet,[S(t)],e)}function $I(t,e){return R(m.storeLet).callFn([t],e)}function BI(t){return R(m.readContextLet).callFn([S(t)])}function UI(t,e,n,r){let s=[S(t),S(e)];return n&&s.push(S(n)),z(m.i18n,s,r)}function VI(t){return z(m.i18nEnd,[],t)}function GI(t,e){let n=[S(t),S(e)];return z(m.i18nAttributes,n,null)}function HI(t,e,n){return kp(m.ariaProperty,t,e,null,n)}function qI(t,e,n,r){return kp(m.property,t,e,n,r)}function WI(t){return z(m.control,[],t)}function jI(t){return z(m.controlCreate,[],t)}function zI(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(n),z(m.twoWayProperty,s,r)}function KI(t,e,n,r,s){let i=[S(t)];return e instanceof De?i.push(Ci(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 XI(t,e,n,r){let s=[S(t)];return e instanceof De?s.push(Ci(e,r)):s.push(e),n!==null&&s.push(S(n)),z(m.styleProp,s,r)}function YI(t,e,n){return z(m.classProp,[S(t),e],n)}function QI(t,e){let n=t instanceof De?Ci(t,e):t;return z(m.styleMap,[n],e)}function JI(t,e){let n=t instanceof De?Ci(t,e):t;return z(m.classMap,[n],e)}function ZI(t,e,n,r,s){return Wr(m.domElement,t,e,n,r,s)}function eA(t,e,n,r,s){return Wr(m.domElementStart,t,e,n,r,s)}function tA(t){return z(m.domElementEnd,[],t)}function nA(t,e,n,r){return Wr(m.domElementContainerStart,t,null,e,n,r)}function rA(t,e,n,r){return Wr(m.domElementContainer,t,null,e,n,r)}function sA(){return z(m.domElementContainerEnd,[],null)}function iA(t,e,n,r){let s=[S(t),e];return n!==null&&s.push(R(n)),z(m.domListener,s,r)}function oA(t,e,n,r,s,i,o,a){return ug(m.domTemplate,t,e,n,r,s,i,o,a)}var sd=[m.pipeBind1,m.pipeBind2,m.pipeBind3,m.pipeBind4];function aA(t,e,n){if(n.length<1||n.length>sd.length)throw new Error("pipeBind() argument count out of bounds");let r=sd[n.length-1];return R(r).callFn([S(t),S(e),...n])}function lA(t,e,n){return R(m.pipeBindV).callFn([S(t),S(e),n])}function cA(t,e,n){let r=pg(t,e);return CA(wA,[],r,n)}function uA(t,e){return z(m.i18nExp,[t],e)}function pA(t,e){return z(m.i18nApply,[S(t)],e)}function hA(t,e,n,r){return kp(m.domProperty,t,e,n,r)}function fA(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 dA(t,e,n,r){let i=[e instanceof De?Ci(e,r):e];n!==null&&i.push(n);let o=t==="enter"?m.animationEnter:m.animationLeave;return z(o,i,r)}function mA(t,e,n,r){let s=[e],i=t==="enter"?m.animationEnterListener:m.animationLeaveListener;return z(i,s,r)}function gA(t,e,n){return z(m.syntheticHostProperty,[S(t),e],n)}function yA(t,e,n){return Rp(xA,[S(t),e],n,null)}function vA(t,e){return z(m.attachSourceLocations,[S(t),e],null)}function SA(t,e,n){return R(m.arrowFunction).callFn([S(t),e,n])}function pg(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 Ci(t,e){let n=pg(t.strings,t.expressions);return Rp(TA,[],n,e)}function z(t,e,n){let r=R(t).callFn(e,n);return Wt(new tt(r,n))}function EA(t,e,n){let r=[t];return e!==null&&r.push(e),z(m.conditional,r,n)}var wA={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}},TA={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}},xA={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 Rp(t,e,n,r){let s=t.mapping(n.length),i=n.at(-1);if(n.length>1&&i instanceof ke&&i.value===""&&n.pop(),s<t.constant.length)return R(t.constant[s]).callFn([...e,...n],r);if(t.variable!==null)return R(t.variable).callFn([...e,ce(n)],r);throw new Error("AssertionError: unable to call variadic function")}function CA(t,e,n,r){return Wt(Rp(t,e,n,r).toStmt())}var NA=new Map([["window",m.resolveWindow],["document",m.resolveDocument],["body",m.resolveBody]]),IA=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function AA(t){for(let e of t.units)DA(e,e.create),Fl(e,e.update)}function DA(t,e){var n,r,s,i,o,a,c,u,h,d;for(let p of e)switch(xe(p,g=>hg(t,g),K.None),p.kind){case f.Text:T.replace(p,CI(p.handle.slot,p.initialValue,p.sourceSpan));break;case f.ElementStart:T.replace(p,t.job.mode===St.DomOnly?eA(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan):sI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.Element:T.replace(p,t.job.mode===St.DomOnly?ZI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan):rI(p.handle.slot,p.tag,p.attributes,p.localRefs,p.wholeSourceSpan));break;case f.ElementEnd:T.replace(p,t.job.mode===St.DomOnly?tA(p.sourceSpan):iI(p.sourceSpan));break;case f.ContainerStart:T.replace(p,t.job.mode===St.DomOnly?nA(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan):oI(p.handle.slot,p.attributes,p.localRefs,p.startSourceSpan));break;case f.Container:T.replace(p,t.job.mode===St.DomOnly?rA(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan):aI(p.handle.slot,p.attributes,p.localRefs,p.wholeSourceSpan));break;case f.ContainerEnd:T.replace(p,t.job.mode===St.DomOnly?sA():lI());break;case f.I18nStart:T.replace(p,kI(p.handle.slot,p.messageIndex,p.subTemplateIndex,p.sourceSpan));break;case f.I18nEnd:T.replace(p,VI(p.sourceSpan));break;case f.I18n:T.replace(p,UI(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");T.replace(p,GI(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);T.replace(p,p.templateKind===xt.Block||t.job.mode===St.DomOnly?oA(p.handle.slot,Z(g.fnName),g.decls,g.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan):cI(p.handle.slot,Z(g.fnName),g.decls,g.vars,p.tag,p.attributes,p.localRefs,p.startSourceSpan));break;case f.DisableBindings:T.replace(p,uI());break;case f.EnableBindings:T.replace(p,pI());break;case f.Pipe:T.replace(p,dI(p.handle.slot,p.name));break;case f.DeclareLet:T.replace(p,FI(p.handle.slot,p.sourceSpan));break;case f.AnimationString:T.replace(p,dA(p.animationKind,p.expression,p.sanitizer,p.sourceSpan));break;case f.Animation:let v=Ca(t,p.handlerFnName,p.handlerOps,!1);T.replace(p,fA(p.animationKind,v,p.sanitizer,p.sourceSpan));break;case f.AnimationListener:let E=Ca(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent);T.replace(p,mA(p.animationKind,E,null,p.sourceSpan));break;case f.Listener:let I=Ca(t,p.handlerFnName,p.handlerOps,p.consumesDollarEvent),D=p.eventTarget?NA.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.`);T.replace(p,t.job.mode===St.DomOnly&&!p.hostListener&&!p.isLegacyAnimationListener?iA(p.name,I,D,p.sourceSpan):hI(p.name,I,D,p.hostListener&&p.isLegacyAnimationListener,p.sourceSpan));break;case f.TwoWayListener:T.replace(p,fI(p.name,Ca(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}`);T.replace(p,Wt(new Xe(p.variable.name,p.initializer,Ke,Ue.Final)));break;case f.Namespace:switch(p.active){case Fe.HTML:T.replace(p,mI());break;case Fe.SVG:T.replace(p,gI());break;case Fe.Math:T.replace(p,yI());break}break;case f.Defer:let _=!!p.loadingMinimumTime||!!p.loadingAfterTime||!!p.placeholderMinimumTime;T.replace(p,NI(p.handle.slot,p.mainSlot.slot,p.resolverFn,(r=(n=p.loadingSlot)==null?void 0:n.slot)!=null?r:null,(i=(s=p.placeholderSlot)==null?void 0:s.slot)!=null?i:null,(a=(o=p.errorSlot)==null?void 0:o.slot)!=null?a:null,p.loadingConfig,p.placeholderConfig,_,p.sourceSpan,p.flags));break;case f.DeferOn:let k=[];switch(p.trigger.kind){case le.Never:case le.Immediate:break;case le.Idle:p.trigger.timeout!=null&&(k=[S(p.trigger.timeout)]);break;case le.Timer:k=[S(p.trigger.delay)];break;case le.Viewport:p.modifier==="hydrate"?k=p.trigger.options?[p.trigger.options]:[]:(k=[S((u=(c=p.trigger.targetSlot)==null?void 0:c.slot)!=null?u:null)],p.trigger.targetSlotViewSteps!==0?k.push(S(p.trigger.targetSlotViewSteps)):p.trigger.options&&k.push(S(null)),p.trigger.options&&k.push(p.trigger.options));break;case le.Interaction:case le.Hover:p.modifier==="hydrate"?k=[]:(k=[S((d=(h=p.trigger.targetSlot)==null?void 0:h.slot)!=null?d:null)],p.trigger.targetSlotViewSteps!==0&&k.push(S(p.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${p.trigger.kind}`)}T.replace(p,DI(p.trigger.kind,k,p.modifier,p.sourceSpan));break;case f.ProjectionDef:T.replace(p,bI(p.def));break;case f.EnableIncrementalHydrationRuntime:T.replace(p,II(p.sourceSpan));break;case f.Projection:if(p.handle.slot===null)throw new Error("No slot was assigned for project instruction");let H=null,X=null,ie=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");H=Pe.fnName,X=Pe.decls,ie=Pe.vars}T.replace(p,_I(p.handle.slot,p.projectionSlotIndex,p.attributes,H,X,ie,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 Re=t.job.views.get(p.xref);T.replace(p,RI(p.handle.slot,Z(Re.fnName),Re.decls,Re.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 we=t.job.views.get(p.xref);T.replace(p,PI(p.handle.slot,Z(we.fnName),we.decls,we.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 bt=t.job.views.get(p.xref);if(bt.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let Xr=null,rr=null,sr=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");Xr=Pe.fnName,rr=Pe.decls,sr=Pe.vars}T.replace(p,LI(p.handle.slot,bt.fnName,p.decls,p.vars,p.tag,p.attributes,kA(t,p),p.usesComponentInstance,Xr,rr,sr,p.emptyTag,p.emptyAttributes,p.wholeSourceSpan));break;case f.SourceLocation:let ma=ce(p.locations.map(({targetSlot:Pe,offset:ga,line:Pi,column:XS})=>{if(Pe.slot===null)throw new Error("No slot was assigned for source location");return ce([S(Pe.slot),S(ga),S(Pi),S(XS)])}));T.replace(p,vA(p.templatePath,ma));break;case f.ControlCreate:T.replace(p,jI(p.sourceSpan));break;case f.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${f[p.kind]}`)}}function Fl(t,e){for(let n of e)switch(xe(n,r=>hg(t,r),K.None),n.kind){case f.Advance:T.replace(n,vI(n.delta,n.sourceSpan));break;case f.Property:T.replace(n,t.job.mode===St.DomOnly&&n.bindingKind!==M.LegacyAnimation&&n.bindingKind!==M.Animation?id(n):bA(n));break;case f.Control:T.replace(n,_A(n));break;case f.TwoWayProperty:T.replace(n,zI(n.name,n.expression,n.sanitizer,n.sourceSpan));break;case f.StyleProp:T.replace(n,XI(n.name,n.expression,n.unit,n.sourceSpan));break;case f.ClassProp:T.replace(n,YI(n.name,n.expression,n.sourceSpan));break;case f.StyleMap:T.replace(n,QI(n.expression,n.sourceSpan));break;case f.ClassMap:T.replace(n,JI(n.expression,n.sourceSpan));break;case f.I18nExpression:T.replace(n,uA(n.expression,n.sourceSpan));break;case f.I18nApply:T.replace(n,pA(n.handle.slot,n.sourceSpan));break;case f.InterpolateText:T.replace(n,cA(n.interpolation.strings,n.interpolation.expressions,n.sourceSpan));break;case f.Attribute:T.replace(n,KI(n.name,n.expression,n.sanitizer,n.namespace,n.sourceSpan));break;case f.DomProperty:if(n.expression instanceof De)throw new Error("not yet handled");n.bindingKind===M.LegacyAnimation||n.bindingKind===M.Animation?T.replace(n,gA(n.name,n.expression,n.sourceSpan)):T.replace(n,id(n));break;case f.Variable:if(n.variable.name===null)throw new Error(`AssertionError: unnamed variable ${n.xref}`);T.replace(n,Wt(new Xe(n.variable.name,n.initializer,Ke,Ue.Final)));break;case f.Conditional:if(n.processed===null)throw new Error("Conditional test was not set.");T.replace(n,EA(n.processed,n.contextValue,n.sourceSpan));break;case f.Repeater:T.replace(n,MI(n.collection,n.sourceSpan));break;case f.DeferWhen:T.replace(n,OI(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 id(t){var e;return hA((e=IA.get(t.name))!=null?e:t.name,t.expression,t.sanitizer,t.sourceSpan)}function bA(t){return Ym(t.name)?HI(t.name,t.expression,t.sourceSpan):qI(t.name,t.expression,t.sanitizer,t.sourceSpan)}function _A(t){return WI(t.sourceSpan)}function hg(t,e){if(!Ln(e))return e;switch(e.kind){case F.NextContext:return EI(e.steps);case F.Reference:return SI(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 TI(e.view);case F.ResetView:return xI(e.expr);case F.GetCurrentView:return wI();case F.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return Z(e.name);case F.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return Z(e.name);case F.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return Z(e.name).set(e.expr);case F.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return yA(e.varOffset,e.fn,e.args);case F.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case F.PipeBinding:return aA(e.targetSlot.slot,e.varOffset,e.args);case F.PipeBindingVariadic:return lA(e.targetSlot.slot,e.varOffset,e.args);case F.SlotLiteralExpr:return S(e.slot.slot);case F.ContextLetReference:return BI(e.targetSlot.slot);case F.StoreLet:return $I(e.value,e.sourceSpan);case F.TrackContext:return Z("this");case F.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return SA(e.varOffset,t.job.pool.getSharedFunctionReference(RA(t,e),"arrowFn"),Z(qt));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${F[e.kind]}`)}}function Ca(t,e,n,r){Fl(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 Be("$event",Ke)),Wn(i,s,void 0,void 0,e)}function kA(t,e){if(e.trackByFn!==null)return e.trackByFn;let n=[new Be("$index",Tr),new Be("$item",Ke)],r;if(e.trackByOps===null)r=e.usesComponentInstance?Wn(n,[new _e(e.track)]):It(n,e.track);else{Fl(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 _e)?Wn(n,s):It(n,s[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(r,"_forTrack"),e.trackByFn}function RA(t,e){Fl(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 _e?n[0].value:n;return It([new Be(e.contextName,Ke),new Be(e.currentViewName,Ke)],It(e.parameters,r))}function PA(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 Go&&T.remove(n);break}}function LA(t){for(let e of t.units)for(let n of e.create)switch(n.kind){case f.I18nContext:T.remove(n);break;case f.I18nStart:n.context=null;break}}function MA(t){for(let e of t.units)for(let n of e.update){if(n.kind!==f.Variable||n.variable.kind!==Qe.Identifier||!(n.initializer instanceof Fo))continue;let r=n.variable.identifier,s=n;for(;s&&s.kind!==f.ListEnd;)xe(s,i=>i instanceof Ye&&i.name===r?S(void 0):i,K.None),s=s.prev}}function OA(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;T.remove(r)}}}function FA(t){for(let e of t.units){for(let n of e.functions)Zi(e,n.ops);Zi(e,e.create),Zi(e,e.update)}}function Zi(t,e){let n=new Map;n.set(t.xref,Z(qt));for(let r of e)switch(r.kind){case f.Variable:r.variable.kind===Qe.Context&&n.set(r.variable.view,new Hn(r.xref));break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:Zi(t,r.handlerOps);break;case f.RepeaterCreate:r.trackByOps!==null&&Zi(t,r.trackByOps);break}t===t.job.root&&n.set(t.xref,Z(qt));for(let r of e)xe(r,s=>{if(s instanceof Fr){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},K.None)}function $A(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 BA(t){for(let e of t.units)od(e.create),od(e.update)}function od(t){for(let e of t)(e.kind===f.Listener||e.kind===f.TwoWayListener||e.kind===f.AnimationListener)&&xe(e,n=>n instanceof Ye&&n.name==="$event"?((e.kind===f.Listener||e.kind===f.AnimationListener)&&(e.consumesDollarEvent=!0),new tn(n.name)):n,K.InChildOperation)}function UA(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}xn(t,t.root,e,n)}function xn(t,e,n,r,s){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case f.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:n.get(a.context)};break;case f.I18nEnd:i=null;break;case f.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ad(a,i.i18nContext,i.i18nBlock,s),s&&a.i18nPlaceholder.closeName&&o.set(a.xref,s),s=void 0}break;case f.ElementEnd:let c=r.get(a.xref);if(c&&c.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");ld(c,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case f.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");ad(a,i.i18nContext,i.i18nBlock,s),ld(a,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.fallbackView!==null){let p=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)xn(t,p,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Na(t,p,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),xn(t,p,n,r),Ia(t,p,a.handle.slot,a.fallbackViewI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break;case f.ConditionalCreate:case f.ConditionalBranchCreate:case f.Template:let u=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)xn(t,u,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===xt.Structural?xn(t,u,n,r,a):(Na(t,u,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),xn(t,u,n,r),Ia(t,u,a.handle.slot,a.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=a.handle.slot+1,d=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)xn(t,d,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Na(t,d,h,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),xn(t,d,n,r),Ia(t,d,h,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}if(a.emptyView!==null){let p=a.handle.slot+2,g=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)xn(t,g,n,r);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Na(t,g,p,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),xn(t,g,n,r),Ia(t,g,p,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,s),s=void 0}}break}}function ad(t,e,n,r){let{startName:s,closeName:i}=t.i18nPlaceholder,o=pe.ElementTag|pe.OpenTag,a=t.handle.slot;r!==void 0&&(o|=pe.TemplateTag,a={element:a,template:r.handle.slot}),i||(o|=pe.CloseTag),vi(e.params,s,a,n.subTemplateIndex,o)}function ld(t,e,n,r){let{closeName:s}=t.i18nPlaceholder;if(s){let i=pe.ElementTag|pe.CloseTag,o=t.handle.slot;r!==void 0&&(i|=pe.TemplateTag,o={element:o,template:r.handle.slot}),vi(e.params,s,o,n.subTemplateIndex,i)}}function Na(t,e,n,r,s,i,o){let{startName:a,closeName:c}=r,u=pe.TemplateTag|pe.OpenTag;c||(u|=pe.CloseTag),o!==void 0&&vi(s.params,a,o.handle.slot,i.subTemplateIndex,u),vi(s.params,a,n,fg(t,i,e),u)}function Ia(t,e,n,r,s,i,o){let{closeName:a}=r,c=pe.TemplateTag|pe.CloseTag;a&&(vi(s.params,a,n,fg(t,i,e),c),o!==void 0&&vi(s.params,a,o.handle.slot,i.subTemplateIndex,c))}function fg(t,e,n){for(let r of n.create)if(r.kind===f.I18nStart)return r.subTemplateIndex;return e.subTemplateIndex}function vi(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 VA(t){var o;let e=new Map,n=new Map,r=new Map;for(let a of t.units)for(let c of a.create)switch(c.kind){case 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=a=>a.usage===ws.I18nText?a.i18nOwner:a.context;for(let a of t.units)for(let c of a.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:pe.ExpressionIndex};GA(c,d,n,r),s.set(i(c),u+1)}}function GA(t,e,n,r){if(t.i18nPlaceholder!==null){let s=n.get(t.context),i=t.resolutionTime===mi.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 HA(t){var n,r;let e=new Map;for(let s of t.units)for(let i of s.ops())if(i.kind===f.ElementStart||i.kind===f.Template){let o=(n=i.tag)!=null?n:"";switch(i.namespace){case Fe.SVG:o=`:${Ml}:${o}`;break;case Fe.Math:o=`:${Ol}:${o}`;break}e.set(i.xref,o)}for(let s of t.units)for(let i of s.create)if(i.kind===f.ExtractedAttribute&&i.i18nContext!==null&&i.expression!==null){let o=(r=e.get(i.target))!=null?r:"",a=i.expression;switch(i.securityContext){case re.HTML:a=R(m.sanitizeHtml).callFn([a]);break;case re.STYLE:a=R(m.sanitizeStyle).callFn([a]);break;case re.SCRIPT:a=R(m.sanitizeScript).callFn([a]);break;case re.URL:a=R(m.sanitizeUrl).callFn([a]);break;case re.RESOURCE_URL:a=R(m.sanitizeResourceUrl).callFn([a]);break;case re.ATTRIBUTE_NO_BINDING:a=R(m.validateAttribute).callFn([a,S(o),S(i.name)]);break}i.expression=a}}function qA(t){for(let e of t.units){for(let n of e.functions)eo(e,n.ops,null);eo(e,e.create,null),eo(e,e.update,null)}}function eo(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 Qe.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 Qe.Alias:if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref);break;case Qe.SavedView:n={view:i.variable.view,variable:i.xref};break}break;case f.Animation:case f.AnimationListener:case f.Listener:case f.TwoWayListener:eo(t,i.handlerOps,n);break;case f.RepeaterCreate:i.trackByOps!==null&&eo(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||xe(i,o=>{if(o instanceof Ye)return s.has(o.name)?new Hn(s.get(o.name)):r.has(o.name)?new Hn(r.get(o.name)):new ot(new Fr(t.job.root.xref),o.name);if(o instanceof Bo&&typeof o.view=="number"){if(n===null||n.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${t.xref}`);return o.view=new Hn(n.variable),o}else return o},K.None);for(let i of e)$e(i,o=>{if(o instanceof Ye)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var WA=new Map([[re.HTML,m.sanitizeHtml],[re.RESOURCE_URL,m.sanitizeResourceUrl],[re.SCRIPT,m.sanitizeScript],[re.STYLE,m.sanitizeStyle],[re.URL,m.sanitizeUrl],[re.ATTRIBUTE_NO_BINDING,m.validateAttribute]]),jA=new Map([[re.HTML,m.trustConstantHtml],[re.RESOURCE_URL,m.trustConstantResourceUrl]]);function zA(t){var e,n;for(let r of t.units){if(t.kind!==b.Host){for(let s of r.create)if(s.kind===f.ExtractedAttribute){let i=(e=jA.get(cd(s.securityContext)))!=null?e:null;s.trustedValueFn=i!==null?R(i):null}}for(let s of r.update)switch(s.kind){case f.Property:case f.Attribute:case f.DomProperty:case f.TwoWayProperty:let i=null;Array.isArray(s.securityContext)&&s.securityContext.length===2&&s.securityContext.includes(re.URL)&&s.securityContext.includes(re.RESOURCE_URL)?i=m.sanitizeUrlOrResourceUrl:i=(n=WA.get(cd(s.securityContext)))!=null?n:null,s.sanitizer=i!==null?R(i):null;break}}}function cd(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||re.NONE}return t}function KA(t){for(let e of t.units)for(let n of e.ops())xe(n,r=>XA(r),K.None)}function XA(t){if(t instanceof Ae&&t.fn instanceof Ye&&t.fn.name==="$safeNavigationMigration"){if(t.args.length!==1)throw new Error("The $safeNavigationMigration builtin function expects exactly one argument.");return new Vo(t.args[0])}return t}function YA(t){for(let e of t.units){for(let n of e.functions)ud(t,e,n.ops)&&pd(e,n.ops,Z(n.currentViewName));e.create.prepend([fr(e.job.allocateXrefId(),{kind:Qe.SavedView,name:null,view:e.xref},new Au,Gt.None)]);for(let n of e.create)(n.kind===f.Listener||n.kind===f.TwoWayListener||n.kind===f.Animation||n.kind===f.AnimationListener)&&ud(t,e,n.handlerOps)&&pd(e,n.handlerOps,e.xref)}}function ud(t,e,n){let r=e!==t.root;if(!r)for(let s of n)$e(s,i=>{(i instanceof el||i instanceof $o)&&(r=!0)});return r}function pd(t,e,n){e.prepend([fr(t.job.allocateXrefId(),{kind:Qe.Context,name:null,view:t.xref},new Bo(n),Gt.None)]);for(let r of e)r.kind===f.Statement&&r.statement instanceof _e&&(r.statement.value=new nl(r.statement.value))}function QA(t){let e=new Map;for(let n of t.units){let r=0;for(let s of n.create)xi(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 JA(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),$e(s,i=>{i instanceof $o&&e.add(i.target)});for(let r of t.units)for(let s of r.update)xe(s,i=>i instanceof Fo&&!e.has(i.target)?(ZA(i)||T.remove(n.get(i.target)),i.value):i,K.None)}function ZA(t){let e=!1;return P(t,n=>((n instanceof Cs||n instanceof Uo)&&(e=!0),n),K.None),e}function eD(t){let e=new Set;for(let n of t.units)for(let r of n.ops())$e(r,s=>{if(s instanceof se)switch(s.operator){case w.Exponentiation:tD(s,e);break;case w.NullishCoalesce:nD(s,e);break;case w.And:case w.Or:rD(s,e)}});for(let n of t.units)for(let r of n.ops())xe(r,s=>s instanceof nn?e.has(s)?s:s.expr:s,K.None)}function tD(t,e){t.lhs instanceof nn&&t.lhs.expr instanceof qn&&e.add(t.lhs)}function nD(t,e){t.lhs instanceof nn&&(hd(t.lhs.expr)||t.lhs.expr instanceof mn)&&e.add(t.lhs),t.rhs instanceof nn&&(hd(t.rhs.expr)||t.rhs.expr instanceof mn)&&e.add(t.rhs)}function rD(t,e){t.lhs instanceof nn&&t.lhs.expr instanceof se&&t.lhs.expr.operator===w.NullishCoalesce&&e.add(t.lhs)}function hd(t){return t instanceof se&&(t.operator===w.And||t.operator===w.Or)}function sD(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 De)throw new Error("Unexpected interpolation in ClassName binding");T.replace(n,fT(n.target,n.name,n.expression,n.sourceSpan));break;case M.StyleProperty:T.replace(n,hT(n.target,n.name,n.expression,n.unit,n.sourceSpan));break;case M.Property:case M.Template:n.name==="style"?T.replace(n,dT(n.target,n.expression,n.sourceSpan)):n.name==="class"&&T.replace(n,mT(n.target,n.expression,n.sourceSpan));break}}function iD(t){for(let e of t.units){e.create.prepend(to(e.create)),e.update.prepend(to(e.update));for(let n of e.functions)n.ops.prepend(to(n.ops))}}function to(t){let e=0,n=[];for(let r of t){let s=new Map;$e(r,(u,h)=>{h&K.InChildOperation||u instanceof Br&&s.set(u.xref,u)});let i=0,o=new Set,a=new Set,c=new Map;$e(r,(u,h)=>{h&K.InChildOperation||(u instanceof Mn?(o.has(u.xref)||(o.add(u.xref),c.set(u.xref,`tmp_${e}_${i++}`)),fd(c,u)):u instanceof Br&&(s.get(u.xref)===u&&(a.add(u.xref),i--),fd(c,u)))}),n.push(...Array.from(new Set(c.values())).map(u=>Wt(new Xe(u)))),e++,r.kind===f.Listener||r.kind===f.Animation||r.kind===f.AnimationListener||r.kind===f.TwoWayListener?r.handlerOps.prepend(to(r.handlerOps)):r.kind===f.RepeaterCreate&&r.trackByOps!==null&&r.trackByOps.prepend(to(r.trackByOps))}return n}function fd(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 oD(t){for(let e of t.units)for(let n of e.create)if(n.kind===f.RepeaterCreate)if(n.track instanceof tn&&n.track.name==="$index")n.trackByFn=R(m.repeaterTrackByIndex);else if(n.track instanceof tn&&n.track.name==="$item")n.trackByFn=R(m.repeaterTrackByIdentity);else if(aD(t.root.xref,n.track))n.usesComponentInstance=!0,n.track.receiver.receiver.view===e.xref?n.trackByFn=n.track.receiver:(n.trackByFn=R(m.componentInstance).callFn([]).prop(n.track.receiver.name),n.track=n.trackByFn);else{n.track=P(n.track,s=>{if(s instanceof Cs||s instanceof Uo)throw new Error("Illegal State: Pipes are not allowed in this context");return s instanceof Fr?(n.usesComponentInstance=!0,new Iu(s.view)):s},K.None);let r=new T;r.push(Wt(new _e(n.track,n.track.sourceSpan,[mo()]))),n.trackByOps=r}}function aD(t,e){if(!(e instanceof Ae)||e.args.length===0||e.args.length>2||!(e.receiver instanceof ot&&e.receiver.receiver instanceof Fr)||e.receiver.receiver.view!==t)return!1;let[n,r]=e.args;return!(n instanceof tn)||n.name!=="$index"?!1:e.args.length===1?!0:!(!(r instanceof tn)||r.name!=="$item")}function lD(t){for(let e of t.units)for(let n of e.create)n.kind===f.RepeaterCreate&&(n.track=P(n.track,r=>{if(r instanceof Ye){if(n.varNames.$index.has(r.name))return Z("$index");if(r.name===n.varNames.$implicit)return Z("$item")}return r},K.None))}function cD(t){for(let e of t.units)for(let n of e.create)n.kind===f.TwoWayListener&&xe(n,r=>{if(!(r instanceof rl))return r;let{target:s,value:i}=r;if(s instanceof ot||s instanceof rn)return rd(s,i).or(s.set(i));if(s instanceof Hn)return rd(s,i);throw new Error("Unsupported expression in two-way action binding.")},K.InChildOperation)}function uD(t){for(let e of t.units){let n=0;for(let i of e.ops())xc(i)&&(n+=pD(i));let r=i=>{Ln(i)&&(i instanceof xs||(Sf(i)&&(i.varOffset=n),xc(i)&&(n+=dd(i))))},s=i=>{!Ln(i)||!(i instanceof xs)||(Sf(i)&&(i.varOffset=n),xc(i)&&(n+=dd(i)))};for(let i of e.create)$e(i,r);for(let i of e.update)$e(i,r);for(let i of e.create)$e(i,s);for(let i of e.update)$e(i,s);e.vars=n}if(t instanceof qo)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 pD(t){let e;switch(t.kind){case f.Attribute:return e=1,t.expression instanceof De&&!hD(t.expression)&&(e+=t.expression.expressions.length),e;case f.Property:case f.DomProperty:return e=1,t.expression instanceof De&&(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 De&&(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 dd(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 hD(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function fD(t){for(let e of t.units){for(let n of e.functions)Vi(n.ops);Vi(e.create),Vi(e.update);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):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Vi(n.trackByOps);for(let n of e.functions)Gi(n.ops,null),md(n.ops);for(let n of e.create)n.kind===f.Listener||n.kind===f.Animation||n.kind===f.AnimationListener||n.kind===f.TwoWayListener?(Gi(n.handlerOps,Aa),md(n.handlerOps)):n.kind===f.RepeaterCreate&&n.trackByOps!==null&&Gi(n.trackByOps,Aa);Gi(e.create,Aa),Gi(e.update,Aa)}}var je;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(je||(je={}));function Aa(t){return!(t&K.InArrowFunctionOperation)}function Vi(t){let e=new Map;for(let n of t)n.kind===f.Variable&&n.flags&Gt.AlwaysInline&&($e(n,r=>{if(Ln(r)&&Pp(r)!==je.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(n.xref,n)),xe(n,r=>r instanceof Hn&&e.has(r.xref)?e.get(r.xref).initializer.clone():r,K.None);for(let n of e.values())T.remove(n)}function Gi(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,dD(u,e)),mD(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&je.ViewContextWrite||h.fences&je.SideEffectful){let d=Wt(u.initializer.toStmt());i.set(d,h),T.replace(u,d)}else gD(u,r),T.remove(u);i.delete(u),n.delete(u.xref),r.delete(u.xref);continue}h.fences&je.ViewContextRead&&(o=!0)}let a=[];for(let[u,h]of r){let p=!!(n.get(u).flags&Gt.AlwaysInline);h!==1||p||s.has(u)||a.push(u)}let c;for(;c=a.pop();){let u=n.get(c),h=i.get(u);if(!!(u.flags&Gt.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(!vD(u,p))break;if(yD(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),T.remove(u)}break}if(!dg(g.fences,h.fences))break}}}function Pp(t){switch(t.kind){case F.NextContext:return je.ViewContextRead|je.ViewContextWrite;case F.RestoreView:return je.ViewContextRead|je.ViewContextWrite|je.SideEffectful;case F.StoreLet:return je.SideEffectful;case F.Reference:case F.ContextLetReference:return je.ViewContextRead;default:return je.None}}function dD(t,e){let n=je.None,r=new Set;return $e(t,(s,i)=>{!Ln(s)||e!==null&&!e(i)||(s.kind===F.ReadVariable?r.add(s.xref):n|=Pp(s))}),{fences:n,variablesUsed:r}}function mD(t,e,n,r){$e(t,(s,i)=>{if(!Ln(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&K.InChildOperation&&n.add(s.xref))})}function gD(t,e){$e(t,n=>{if(!Ln(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 dg(t,e){if(t&je.ViewContextWrite){if(e&je.ViewContextRead)return!1}else if(t&je.ViewContextRead&&e&je.ViewContextWrite)return!1;return!0}function yD(t,e,n,r){let s=!1,i=!0;return xe(n,(o,a)=>{if(!Ln(o)||s||!i)return o;if(a&K.InChildOperation&&r&je.ViewContextRead)return o;switch(o.kind){case F.ReadVariable:if(o.xref===t)return s=!0,e;break;default:let c=Pp(o);i=i&&dg(c,r);break}return o},K.None),s}function vD(t,e){switch(t.variable.kind){case Qe.Identifier:return t.initializer instanceof tn&&t.initializer.name===qt;case Qe.Context:return e.kind===f.Variable;default:return!0}}function md(t){let e=t.head.next,n=t.tail.prev;e!==null&&n!==null&&e.next===n&&e.kind===f.Statement&&e.statement instanceof tt&&e.statement.expr instanceof Bo&&n.kind===f.Statement&&n.statement instanceof _e&&n.statement.value instanceof nl&&(T.remove(e),n.statement.value=n.statement.value.expr)}function SD(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(),T.insertBefore(Pl(r,s.message,void 0,null),s));break;case f.IcuEnd:r!==null&&(T.insertAfter(Ll(r,null),s),r=null);break}}}var ED=[{kind:b.Tmpl,fn:VN},{kind:b.Both,fn:tI},{kind:b.Host,fn:tC},{kind:b.Tmpl,fn:CN},{kind:b.Tmpl,fn:KN},{kind:b.Tmpl,fn:SD},{kind:b.Both,fn:wx},{kind:b.Both,fn:sD},{kind:b.Both,fn:ZT},{kind:b.Tmpl,fn:ux},{kind:b.Both,fn:yx},{kind:b.Both,fn:YT},{kind:b.Tmpl,fn:Ex},{kind:b.Both,fn:IN},{kind:b.Tmpl,fn:PA},{kind:b.Both,fn:nx},{kind:b.Both,fn:UN},{kind:b.Tmpl,fn:rx},{kind:b.Tmpl,fn:qN},{kind:b.Tmpl,fn:Tx},{kind:b.Tmpl,fn:xx},{kind:b.Tmpl,fn:zN},{kind:b.Both,fn:Xx},{kind:b.Both,fn:QN},{kind:b.Tmpl,fn:Qx},{kind:b.Tmpl,fn:Yx},{kind:b.Tmpl,fn:Jx},{kind:b.Tmpl,fn:YA},{kind:b.Both,fn:qT},{kind:b.Both,fn:KA},{kind:b.Both,fn:BA},{kind:b.Tmpl,fn:lD},{kind:b.Tmpl,fn:MA},{kind:b.Both,fn:qA},{kind:b.Tmpl,fn:Cx},{kind:b.Tmpl,fn:cD},{kind:b.Tmpl,fn:oD},{kind:b.Both,fn:FA},{kind:b.Both,fn:zA},{kind:b.Tmpl,fn:TN},{kind:b.Both,fn:bx},{kind:b.Both,fn:eD},{kind:b.Both,fn:iD},{kind:b.Both,fn:fD},{kind:b.Both,fn:JA},{kind:b.Tmpl,fn:wN},{kind:b.Tmpl,fn:Sx},{kind:b.Tmpl,fn:OA},{kind:b.Tmpl,fn:KT},{kind:b.Tmpl,fn:jT},{kind:b.Tmpl,fn:QA},{kind:b.Tmpl,fn:UA},{kind:b.Tmpl,fn:VA},{kind:b.Tmpl,fn:qx},{kind:b.Tmpl,fn:gN},{kind:b.Tmpl,fn:HA},{kind:b.Tmpl,fn:Zx},{kind:b.Both,fn:ax},{kind:b.Tmpl,fn:LA},{kind:b.Both,fn:uD},{kind:b.Tmpl,fn:Kx},{kind:b.Both,fn:AN},{kind:b.Tmpl,fn:$A},{kind:b.Tmpl,fn:_N},{kind:b.Tmpl,fn:RN},{kind:b.Tmpl,fn:Dx},{kind:b.Tmpl,fn:XT},{kind:b.Tmpl,fn:LN},{kind:b.Both,fn:YN},{kind:b.Both,fn:AA},{kind:b.Both,fn:tx}];function mg(t,e){for(let n of ED)(n.kind===e||n.kind===b.Both)&&n.fn(t)}function wD(t,e){let n=yg(t.root);return gg(t.root,e),n}function gg(t,e){for(let n of t.job.units){if(n.parent!==t.xref)continue;gg(n,e);let r=yg(n);e.statements.push(r.toDeclStmt(r.name))}}function yg(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=El(1,e),s=El(2,n);return Wn([new Be(wi,Tr),new Be(qt,Ke)],[...r,...s],void 0,void 0,t.fnName)}function El(t,e){return e.length===0?[]:[ta(new se(w.BitwiseAnd,Z(wi),S(t)),e)]}function TD(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=El(1,e),s=El(2,n);return Wn([new Be(wi,Tr),new Be(qt,Ke)],[...r,...s],void 0,void 0,t.root.fnName)}var cs=new zt,us="ng-template",xD="animate.";function Ma(t){return t instanceof Tt}function CD(t){return Ma(t)&&t.nodes.length===1&&t.nodes[0]instanceof Ya}function ND(t,e,n,r,s,i,o,a,c,u,h){let d=new qo(t,n,r,s,i,o,a,c,u,h);return Qn(d.root,e),d}function ID(t,e,n){var s,i,o;let r=new cl(t.componentName,n,St.DomOnly,t.legacyOptionalChaining);for(let a of(s=t.properties)!=null?s:[]){let c=M.Property;a.name.startsWith("attr.")&&(a.name=a.name.substring(5),c=M.Attribute),a.isLegacyAnimation&&(c=M.LegacyAnimation),a.isAnimation&&(c=M.Animation);let u=e.calcPossibleSecurityContexts(t.componentSelector,a.name,c===M.Attribute).filter(h=>h!==re.NONE);AD(r,a,c,u)}for(let[a,c]of(i=Object.entries(t.attributes))!=null?i:[]){let u=e.calcPossibleSecurityContexts(t.componentSelector,a,!0).filter(h=>h!==re.NONE);DD(r,a,c,u)}for(let a of(o=t.events)!=null?o:[])bD(r,a);return r}function AD(t,e,n,r){let s,i=e.expression.ast;i instanceof Zn?s=new De(i.strings,i.expressions.map(o=>Q(o,t,e.sourceSpan)),[]):s=Q(i,t,e.sourceSpan),t.root.update.push(Ts(t.root.xref,n,e.name,s,null,r,!1,!1,null,null,e.sourceSpan))}function DD(t,e,n,r){let s=Ts(t.root.xref,M.Attribute,e,n,null,r,!0,!1,null,null,n.sourceSpan);t.root.update.push(s)}function bD(t,e){let n;if(e.type===ze.Animation)n=Wm(t.root.xref,new at,e.name,null,Xo(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[r,s]=e.type!==ze.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];n=_p(t.root.xref,new at,e.name,null,Xo(t.root,e.handler,e.handlerSpan),r,s,!0,e.sourceSpan)}t.root.create.push(n)}function Qn(t,e){for(let n of e)if(n instanceof At)_D(t,n);else if(n instanceof Te)kD(t,n);else if(n instanceof hi)RD(t,n);else if(n instanceof ts)vg(t,n,null);else if(n instanceof ai)Sg(t,n,null);else if(n instanceof pi)PD(t,n);else if(n instanceof ui)LD(t,n);else if(n instanceof Kn)MD(t,n);else if(n instanceof dm)FD(t,n);else if(n instanceof _r)$D(t,n);else if(n instanceof er)UD(t,n);else if(!(n instanceof vr))throw new Error(`Unsupported template node: ${n.constructor.name}`)}function _D(t,e){var c,u;if(e.i18n!==void 0&&!(e.i18n instanceof Tt||e.i18n instanceof Rr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=t.job.allocateXrefId(),[r,s]=it(e.name),i=xT(s,n,Qm(r),e.i18n instanceof Rr?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(i),GD(t,i,e),Tg(i,e);let o=null;e.i18n instanceof Tt&&(o=t.job.allocateXrefId(),t.create.push(Pl(o,e.i18n,void 0,e.startSourceSpan))),Qn(t,e.children);let a=NT(n,(c=e.endSourceSpan)!=null?c:e.startSourceSpan);t.create.push(a),o!==null&&T.insertBefore(Ll(o,(u=e.endSourceSpan)!=null?u:e.startSourceSpan),a)}function kD(t,e){var h;if(e.i18n!==void 0&&!(e.i18n instanceof Tt||e.i18n instanceof Rr))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]=it(e.tagName));let i=e.i18n instanceof Rr?e.i18n:void 0,o=Qm(s),a=r===null?"":ox(r,o),c=VD(e)?xt.NgTemplate:xt.Structural,u=Vm(n.xref,c,r,a,o,i,e.startSourceSpan,e.sourceSpan);t.create.push(u),HD(t,u,e,c),Tg(u,e),Qn(n,e.children);for(let{name:d,value:p}of e.variables)n.contextVariables.set(d,p!==""?p:"$implicit");if(c===xt.NgTemplate&&e.i18n instanceof Tt){let d=t.job.allocateXrefId();T.insertAfter(Pl(d,e.i18n,void 0,e.startSourceSpan),n.create.head),T.insertBefore(Ll(d,(h=e.endSourceSpan)!=null?h:e.startSourceSpan),n.create.tail)}}function RD(t,e){var i;if(e.i18n!==void 0&&!(e.i18n instanceof Rr))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let n=null;e.children.some(o=>!(o instanceof kl)&&(!(o instanceof ts)||o.value.trim().length>0))&&(n=t.job.allocateView(t.xref),Qn(n,e.children));let r=t.job.allocateXrefId(),s=LT(r,e.selector,e.i18n,(i=n==null?void 0:n.xref)!=null?i:null,e.sourceSpan);for(let o of e.attributes){let a=cs.securityContext(e.name,o.name,!0);t.update.push(Ts(s.xref,M.Attribute,o.name,S(o.value),null,a,!0,!1,null,Vn(o.i18n),o.sourceSpan))}t.create.push(s)}function vg(t,e,n){t.create.push(qm(t.job.allocateXrefId(),e.value,n,e.sourceSpan))}function Sg(t,e,n){var o;let r=e.value;if(r instanceof Se&&(r=r.ast),!(r instanceof Zn))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${r.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Gn))throw Error(`Unhandled i18n metadata type for text interpolation: ${(o=e.i18n)==null?void 0:o.constructor.name}`);let s=e.i18n instanceof Gn?e.i18n.children.filter(a=>a instanceof ko).map(a=>a.name):[];if(s.length>0&&s.length!==r.expressions.length)throw Error(`Unexpected number of i18n placeholders (${r.expressions.length}) for BoundText with ${r.expressions.length} expressions`);let i=t.job.allocateXrefId();t.create.push(qm(i,"",n,e.sourceSpan)),t.update.push(cT(i,new De(r.strings,r.expressions.map(a=>Q(a,t.job,null)),s),e.sourceSpan))}function PD(t,e){var s;let n=null,r=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],a=t.job.allocateView(t.xref),c=wl(t,a.xref,o);o.expressionAlias!==null&&a.contextVariables.set(o.expressionAlias.name,Km);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof Pr))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?Gm:Hm)(a.xref,xt.Block,c,"Conditional",Fe.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(d),n===null&&(n=a.xref);let p=o.expression?Q(o.expression,t.job,null):null,g=new il(p,d.xref,d.handle,o.expressionAlias);r.push(g),Qn(a,o.children)}t.update.push($m(n,null,r,e.sourceSpan))}function LD(t,e){var s;if(e.groups.length===0)return;let n=null,r=[];for(let i=0;i<e.groups.length;i++){let o=e.groups[i],a=t.job.allocateView(t.xref),c=wl(t,a.xref,o),u;if(o.i18n!==void 0){if(!(o.i18n instanceof Pr))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?Gm:Hm)(a.xref,xt.Block,c,"Case",Fe.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(d),n===null&&(n=a.xref);for(let p of o.cases){let g=p.expression?Q(p.expression,t.job,e.startSourceSpan):null,v=new il(g,d.xref,d.handle);r.push(v)}Qn(a,o.children)}t.update.push($m(n,Q(e.expression,t.job,null),r,e.sourceSpan))}function Da(t,e,n,r,s){if(n!==void 0&&!(n instanceof Pr))throw Error("Unhandled i18n metadata type for defer block");if(r===void 0)return null;let i=t.job.allocateView(t.xref);Qn(i,r);let o=Vm(i.xref,xt.Block,null,`Defer${e}`,Fe.HTML,n,s,s);return t.create.push(o),o}function MD(t,e){var p,g,v,E,I,D,_,k,H,X,ie,Re,we,bt,Xr,rr,sr,ma,Pe,ga;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=Da(t,"",e.i18n,e.children,e.sourceSpan),s=Da(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=Da(t,"Placeholder",(I=e.placeholder)==null?void 0:I.i18n,(D=e.placeholder)==null?void 0:D.children,(_=e.placeholder)==null?void 0:_.sourceSpan),o=Da(t,"Error",(k=e.error)==null?void 0:k.i18n,(H=e.error)==null?void 0:H.children,(X=e.error)==null?void 0:X.sourceSpan),a=t.job.allocateXrefId(),c=MT(a,r.xref,r.handle,n,t.job.allDeferrableDepsFn,e.sourceSpan);c.placeholderView=(ie=i==null?void 0:i.xref)!=null?ie:null,c.placeholderSlot=(Re=i==null?void 0:i.handle)!=null?Re:null,c.loadingSlot=(we=s==null?void 0:s.handle)!=null?we:null,c.errorSlot=(bt=o==null?void 0:o.handle)!=null?bt:null,c.placeholderMinimumTime=(rr=(Xr=e.placeholder)==null?void 0:Xr.minimumTime)!=null?rr:null,c.loadingMinimumTime=(ma=(sr=e.loading)==null?void 0:sr.minimumTime)!=null?ma:null,c.loadingAfterTime=(ga=(Pe=e.loading)==null?void 0:Pe.afterTime)!=null?ga:null,c.flags=OD(e),t.create.push(c);let u=[],h=[];bc("hydrate",e.hydrateTriggers,u,h,t,a),bc("none",e.triggers,u,h,t,a),bc("prefetch",e.prefetchTriggers,u,h,t,a),u.some(Pi=>Pi.modifier==="none")||h.some(Pi=>Pi.modifier==="none")||u.push(cr(a,{kind:le.Idle,timeout:null},"none",null)),t.create.push(u),t.update.push(h)}function OD(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function bc(t,e,n,r,s,i){var o;if(e.idle!==void 0){let a=cr(i,{kind:le.Idle,timeout:(o=e.idle.timeout)!=null?o:null},t,e.idle.sourceSpan);n.push(a)}if(e.immediate!==void 0){let a=cr(i,{kind:le.Immediate},t,e.immediate.sourceSpan);n.push(a)}if(e.timer!==void 0){let a=cr(i,{kind:le.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);n.push(a)}if(e.hover!==void 0){let a=cr(i,{kind:le.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);n.push(a)}if(e.interaction!==void 0){let a=cr(i,{kind:le.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);n.push(a)}if(e.viewport!==void 0){let a=cr(i,{kind:le.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?Q(e.viewport.options,s.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);n.push(a)}if(e.never!==void 0){let a=cr(i,{kind:le.Never},t,e.never.sourceSpan);n.push(a)}if(e.when!==void 0){if(e.when.value instanceof Zn)throw new Error("Unexpected interpolation in defer block when trigger");let a=vT(i,Q(e.when.value,s.job,e.when.sourceSpan),t,e.when.sourceSpan);r.push(a)}}function FD(t,e){var n;if(e.i18n instanceof Tt&&CD(e.i18n)){let r=t.job.allocateXrefId();t.create.push($T(r,e.i18n,ym(e.i18n).name,null));for(let[s,i]of Object.entries(x(x({},e.vars),e.placeholders)))i instanceof ai?Sg(t,i,s):vg(t,i,s);t.create.push(BT(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${(n=e.i18n)==null?void 0:n.constructor.name}`)}function $D(t,e){var I,D,_;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 k of e.contextVariables)k.value==="$index"&&i.add(k.name),k.name==="$index"?n.contextVariables.set("$index",k.value).set(r,k.value):k.name==="$count"?n.contextVariables.set("$count",k.value).set(s,k.value):n.aliases.add({kind:Qe.Alias,name:null,identifier:k.name,expression:BD(k,r,s)});let o;e.trackBy===null?o=Z("$index"):o=Q(e.trackBy,t.job,He(e.trackBy.span,e.sourceSpan)),Qn(n,e.children);let a=null,c=null;e.empty!==null&&(a=t.job.allocateView(t.xref),Qn(a,e.empty.children),c=wl(t,a.xref,e.empty));let u={$index:i,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Pr))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(((I=e.empty)==null?void 0:I.i18n)!==void 0&&!(e.empty.i18n instanceof Pr))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let h=e.i18n,d=(D=e.empty)==null?void 0:D.i18n,p=wl(t,n.xref,e),g=CT(n.xref,(_=a==null?void 0:a.xref)!=null?_:null,p,o,u,c,h,d,e.startSourceSpan,e.sourceSpan);t.create.push(g);let v=Q(e.expression,t.job,He(e.expression.span,e.sourceSpan)),E=yT(g.xref,g.handle,v,e.sourceSpan);t.update.push(E)}function BD(t,e,n){switch(t.value){case"$index":return new Ye(e);case"$count":return new Ye(n);case"$first":return new Ye(e).identical(S(0));case"$last":return new Ye(e).identical(new Ye(n).minus(S(1)));case"$even":return new Ye(e).modulo(S(2)).identical(S(0));case"$odd":return new Ye(e).modulo(S(2)).notIdentical(S(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function UD(t,e){let n=t.job.allocateXrefId();t.create.push(OT(n,e.name,e.sourceSpan)),t.update.push(ET(n,e.name,Q(e.value,t.job,e.valueSpan),e.sourceSpan))}function Q(t,e,n){if(t instanceof Se)return Q(t.ast,e,n);if(t instanceof ge)return t.receiver instanceof Ht?new Ye(t.name):new ot(Q(t.receiver,e,n),t.name,null,He(t.span,n));if(t instanceof vn){if(t.receiver instanceof Ht)throw new Error("Unexpected ImplicitReceiver");return new Ae(Q(t.receiver,e,n),t.args.map(r=>Q(r,e,n)),void 0,He(t.span,n))}else{if(t instanceof ut)return S(t.value,void 0,He(t.span,n));if(t instanceof Ws)switch(t.operator){case"+":return new qn(bn.Plus,Q(t.expr,e,n),void 0,He(t.span,n));case"-":return new qn(bn.Minus,Q(t.expr,e,n),void 0,He(t.span,n));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Ie){let r=sx.get(t.operation);if(r===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new se(r,Q(t.left,e,n),Q(t.right,e,n),void 0,He(t.span,n))}else{if(t instanceof Ar)return new Fr(e.root.xref);if(t instanceof jn)return new rn(Q(t.receiver,e,n),Q(t.key,e,n),void 0,He(t.span,n));if(t instanceof Dr)throw new Error("AssertionError: Chain in unknown context");if(t instanceof ms){let r=t.keys.map((s,i)=>{let o=Q(t.values[i],e,n);return s.kind==="spread"?new yn(o):new Cr(s.key,o,s.quoted)});return new sn(r,void 0,He(t.span,n))}else{if(t instanceof yo)return new Mt(t.expressions.map(r=>Q(r,e,n)));if(t instanceof si)return new mn(Q(t.condition,e,n),Q(t.trueExp,e,n),Q(t.falseExp,e,n),void 0,He(t.span,n));if(t instanceof Eo)return Q(t.expression,e,n);if(t instanceof ii)return new Cs(e.allocateXrefId(),new at,t.name,[Q(t.exp,e,n),...t.args.map(r=>Q(r,e,n))]);if(t instanceof ds)return new as(Q(t.receiver,e,n),Q(t.key,e,n),He(t.span,n));if(t instanceof mt)return new os(Q(t.receiver,e,n),t.name);if(t instanceof kn)return new Ae(Q(t.receiver,e,n),t.args.map(r=>Q(r,e,n)),null,He(t.span,n),!1,[],!0);if(t instanceof rt)return new Go(He(t.span,n));if(t instanceof _n)return am(Q(t.expression,e,n),He(t.span,n));if(t instanceof vo)return Ei(Q(t.expression,e,n));if(t instanceof So)return new io(Q(t.expression,e,n),void 0,He(t.span,n));if(t instanceof To)return gd(t,e,n);if(t instanceof wo)return new Qs(Q(t.tag,e,n),gd(t.template,e,n),void 0,He(t.span,n));if(t instanceof xo)return new nn(Q(t.expression,e,n),void 0,He(t.span,n));if(t instanceof Wa)return new ps(t.body,t.flags,n);if(t instanceof Ha)return new Nr(Q(t.expression,e,n));if(t instanceof oi)return WD(It(t.parameters.map(r=>new Be(r.name,Ke)),Q(t.body,e,n)));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${n==null?void 0:n.start.file.url}"`)}}}}function gd(t,e,n){return new Zs(t.elements.map(r=>new oo(r.text,He(r.span,n))),t.expressions.map(r=>Q(r,e,n)),He(t.span,n))}function Zu(t,e,n,r){var i,o;let s;return e instanceof Zn?s=new De(e.strings,e.expressions.map(a=>Q(a,t,null)),Object.keys((o=(i=Vn(n))==null?void 0:i.placeholders)!=null?o:{})):e instanceof ae?s=Q(e,t,null):s=S(e),s}var Eg=new Map([[J.Property,M.Property],[J.TwoWay,M.TwoWayProperty],[J.Attribute,M.Attribute],[J.Class,M.ClassName],[J.Style,M.StyleProperty],[J.LegacyAnimation,M.LegacyAnimation],[J.Animation,M.Animation]]);function VD(t){var e;return it((e=t.tagName)!=null?e:"")[1]===us}function Vn(t){if(t==null)return null;if(!(t instanceof Tt))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function GD(t,e,n){var i;let r=new Array,s=new Set;for(let o of n.attributes){let[a,c]=it(n.name),u=a;if(!a)switch(e.namespace){case Fe.SVG:u=Ml;break;case Fe.Math:u=Ol;break}let h=cs.securityContext(u?`:${u}:${c}`:c,o.name,!0);r.push(Ts(e.xref,M.Attribute,o.name,Zu(t.job,o.value,o.i18n),null,h,!0,!1,null,Vn(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(Ts(e.xref,Eg.get(o.type),o.name,Zu(t.job,Yo(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,(i=Vn(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===ze.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===ze.TwoWay?t.create.push(jm(e.xref,e.handle,o.name,e.tag,wg(t,o.handler,o.handlerSpan),o.sourceSpan)):o.type===ze.Animation?t.create.push(Wm(e.xref,e.handle,o.name,e.tag,Xo(t,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.target,!1,o.sourceSpan)):t.create.push(_p(e.xref,e.handle,o.name,e.tag,Xo(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(zm(t.job.allocateXrefId(),new at,e.xref))}function HD(t,e,n,r){let s=new Array;for(let i of n.templateAttrs)if(i instanceof on){let o=cs.securityContext(us,i.name,!0);s.push(ba(t,e.xref,J.Attribute,i.name,i.value,null,o,!0,r,Vn(i.i18n),i.sourceSpan))}else s.push(ba(t,e.xref,i.type,i.name,Yo(i.value),i.unit,i.securityContext,!0,r,Vn(i.i18n),i.sourceSpan));for(let i of n.attributes){let o=cs.securityContext(us,i.name,!0);s.push(ba(t,e.xref,J.Attribute,i.name,i.value,null,o,!1,r,Vn(i.i18n),i.sourceSpan))}for(let i of n.inputs)s.push(ba(t,e.xref,i.type,i.name,Yo(i.value),i.unit,i.securityContext,!1,r,Vn(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===ze.LegacyAnimation&&i.phase===null)throw Error("Animation listener should have a phase");if(r===xt.NgTemplate&&(i.type===ze.TwoWay?t.create.push(jm(e.xref,e.handle,i.name,e.tag,wg(t,i.handler,i.handlerSpan),i.sourceSpan)):t.create.push(_p(e.xref,e.handle,i.name,e.tag,Xo(t,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),r===xt.Structural&&i.type!==ze.LegacyAnimation){let o=cs.securityContext(us,i.name,!1);t.create.push(Zt(e.xref,M.Property,null,i.name,null,null,null,o))}}s.some(i=>i==null?void 0:i.i18nMessage)!==null&&t.create.push(zm(t.job.allocateXrefId(),new at,e.xref))}function ba(t,e,n,r,s,i,o,a,c,u,h){let d=typeof s=="string";if(c===xt.Structural){if(!a)switch(n){case J.Property:case J.Class:case J.Style:return Zt(e,M.Property,null,r,null,null,u,o);case J.TwoWay:return Zt(e,M.TwoWayProperty,null,r,null,null,u,o)}if(!d&&(n===J.Attribute||n===J.LegacyAnimation||n===J.Animation))return null}let p=Eg.get(n);return c===xt.NgTemplate&&(n===J.Class||n===J.Style||n===J.Attribute&&!d)&&(p=M.Property),Ts(e,p,r,Zu(t.job,s,u),i,o,d,a,c,u,h)}function Xo(t,e,n){e=Yo(e);let r=new Array,s=e instanceof Dr?e.expressions:[e];if(s.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=s.map(a=>Q(a,t.job,n)),o=i.pop();return r.push(...i.map(a=>Wt(new tt(a,a.sourceSpan)))),r.push(Wt(new _e(o,o.sourceSpan))),r}function wg(t,e,n){e=Yo(e);let r=new Array;if(e instanceof Dr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let s=Q(e,t.job,n),i=new Ye("$event"),o=new rl(s,i);return r.push(Wt(new tt(o))),r.push(Wt(new _e(i))),r}function Yo(t){return t instanceof Se?t.ast:t}function Tg(t,e){qD(t.localRefs);for(let{name:n,value:r}of e.references)t.localRefs.push({name:n,target:r})}function qD(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 G(n,r,s)}function wl(t,e,n){let r=null;for(let s of n.children)if(!(s instanceof kl||s instanceof er)){if(r!==null)return null;if(s instanceof At||s instanceof Te&&s.tagName!==null)r=s;else return null}if(r!==null){for(let i of r.attributes)if(!i.name.startsWith(xD)){let o=cs.securityContext(us,i.name,!0);t.update.push(Ts(e,M.Attribute,i.name,S(i.value),null,o,!0,!1,null,Vn(i.i18n),i.sourceSpan))}for(let i of r.inputs)if(i.type!==J.LegacyAnimation&&i.type!==J.Animation&&i.type!==J.Attribute){let o=cs.securityContext(us,i.name,!0);t.create.push(Zt(e,M.Property,null,i.name,null,null,null,o))}let s=r instanceof At?r.name:r.tagName;return s===us?null:s}return null}function WD(t){let e=new Set(t.params.map(n=>n.name));return P(t,n=>{if(n instanceof gn)for(let r of n.params)e.add(r.name);else if(n instanceof Ye&&e.has(n.name))return Z(n.name);return n},K.None)}var jD=!1;function zD(){return jD}function Tl(t,e){return ta(Z(wi).bitwiseAnd(S(t),null),e)}function KD(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(ce(n),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return R(m.resolveForwardRef).callFn([t.predicate.expression])}}function xg(t,e,n){let r=[];return n!==void 0&&r.push(...n),t.isSignal&&r.push(new ot(Z(qt),t.propertyName)),r.push(XD(t,e),S(KD(t))),t.read&&r.push(t.read),r}var Lp=Symbol("queryAdvancePlaceholder");function Cg(t){let e=[],n=0,r=()=>{n>0&&(e.unshift(R(m.queryAdvance).callFn(n===1?[]:[S(n)]).toStmt()),n=0)};for(let s=t.length-1;s>=0;s--){let i=t[s];i===Lp?n++:(r(),e.unshift(i))}return r(),e}function YD(t,e,n){let r=[],s=[],i=vm(u=>s.push(u),wp),o=null,a=null;t.forEach(u=>{let h=xg(u,e);if(u.isSignal?(o!=null||(o=R(m.viewQuerySignal)),o=o.callFn(h)):(a!=null||(a=R(m.viewQuery)),a=a.callFn(h)),u.isSignal){s.push(Lp);return}let d=i(),p=R(m.loadQuery).callFn([]),g=R(m.queryRefresh).callFn([d.set(p)]),v=Z(qt).prop(u.propertyName).set(u.first?d.prop("first"):d);s.push(g.and(v).toStmt())}),o!==null&&r.push(new tt(o)),a!==null&&r.push(new tt(a));let c=n?`${n}_Query`:null;return Wn([new Be(wi,Tr),new Be(qt,Ke)],[Tl(1,r),Tl(2,Cg(s))],dn,null,c)}function QD(t,e,n){let r=[],s=[],i=vm(u=>s.push(u),wp),o=null,a=null;for(let u of t){let h=xg(u,e,[Z("dirIndex")]);if(u.isSignal?(o!=null||(o=R(m.contentQuerySignal)),o=o.callFn(h)):(a!=null||(a=R(m.contentQuery)),a=a.callFn(h)),u.isSignal){s.push(Lp);continue}let d=i(),p=R(m.loadQuery).callFn([]),g=R(m.queryRefresh).callFn([d.set(p)]),v=Z(qt).prop(u.propertyName).set(u.first?d.prop("first"):d);s.push(g.and(v).toStmt())}o!==null&&r.push(new tt(o)),a!==null&&r.push(new tt(a));let c=n?`${n}_ContentQueries`:null;return Wn([new Be(wi,Tr),new Be(qt,Ke),new Be("dirIndex",Tr)],[Tl(1,r),Tl(2,Cg(s))],dn,null,c)}var xl=class extends gC{constructor(){super(ju)}parse(e,n,r){return super.parse(e,n,r)}},_a=".",JD="attr",_c="animate",ZD="class",eb="style",tb="*",kc="animate-",ep=class{constructor(e,n,r){l(this,"_exprParser");l(this,"_schemaRegistry");l(this,"errors");this._exprParser=e,this._schemaRegistry=n,this.errors=r}createBoundHostProperties(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parsePropertyBinding(s,i,!0,!1,n,n.start.offset,void 0,[],r,n):this._reportError(`Value of the host property binding "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}createDirectiveHostEventAsts(e,n){let r=[];for(let s of Object.keys(e)){let i=e[s];typeof i=="string"?this.parseEvent(s,i,!1,n,n,[],r,n):this._reportError(`Value of the host listener "${s}" needs to be a string representing an expression but got "${i}" (${typeof i})`,n)}return r}parseInterpolation(e,n,r){let s=n.fullStart.offset;try{let i=this._exprParser.parseInterpolation(e,n,s,r);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,s)}}parseInterpolationExpression(e,n){let r=n.start.offset;try{let s=this._exprParser.parseInterpolationExpression(e,n,r);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}}parseInlineTemplateBinding(e,n,r,s,i,o,a,c){let u=r.start.offset+tb.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 Co){let E=d.value?d.value.source:"$implicit",I=d.value?ar(r,d.value.span):void 0;a.push(new ru(g,E,p,v,I))}else if(d.value){let E=c?p:r,I=ar(r,d.value.ast.sourceSpan);this._parsePropertyAst(g,d.value,!1,E,v,I,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(a=>this.errors.push(a)),o.warnings.forEach(a=>{this._reportError(a,r,Un.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,r),[]}}parseLiteralAttr(e,n,r,s,i,o,a,c){Rc(e)?(e=e.substring(1),c!==void 0&&(c=ar(c,new dt(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,Un.ERROR),this._parseLegacyAnimation(e,n,r,s,c,i,o,a)):a.push(new $s(e,this._exprParser.wrapLiteralPrimitive(n,"",s),un.LITERAL_ATTR,r,c,i))}parsePropertyBinding(e,n,r,s,i,o,a,c,u,h){e.length===0&&this._reportError("Property name is missing in binding",i);let d=!1;e.startsWith(kc)?(d=!0,e=e.substring(kc.length),h!==void 0&&(h=ar(h,new dt(h.start.offset+kc.length,h.end.offset)))):Rc(e)&&(d=!0,e=e.substring(1),h!==void 0&&(h=ar(h,new dt(h.start.offset+1,h.end.offset)))),d?this._parseLegacyAnimation(e,n,i,o,h,a,c,u):e.startsWith(`${_c}${_a}`)?this._parseAnimation(e,this.parseBinding(n,r,a||i,o),i,h,a,c,u):this._parsePropertyAst(e,this.parseBinding(n,r,a||i,o),s,i,h,a,c,u)}parsePropertyInterpolation(e,n,r,s,i,o,a,c){let u=this.parseInterpolation(n,s||r,c);return u?(this._parsePropertyAst(e,u,!1,r,a,s,i,o),!0):!1}_parsePropertyAst(e,n,r,s,i,o,a,c){a.push([e,n.source]),c.push(new $s(e,n,r?un.TWO_WAY:un.DEFAULT,s,i,o))}_parseAnimation(e,n,r,s,i,o,a){o.push([e,n.source]),a.push(new $s(e,n,un.ANIMATION,r,s,i))}_parseLegacyAnimation(e,n,r,s,i,o,a,c){e.length===0&&this._reportError("Animation trigger is missing",r);let u=this.parseBinding(n||"undefined",!1,o||r,s);a.push([e,u.source]),c.push(new $s(e,u,un.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 za(n.name,J.LegacyAnimation,re.NONE,n.expression,null,n.sourceSpan,n.keySpan,n.valueSpan);let i=null,o,a=null,c=n.name.split(_a),u;if(c.length>1)if(c[0]==JD){a=c.slice(1).join(_a),r||this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),u=Pc(this._schemaRegistry,e,a,!0);let h=a.indexOf(":");if(h>-1){let d=a.substring(0,h),p=a.substring(h+1);a=La(d,p)}o=J.Attribute}else c[0]==ZD?(a=c[1],o=J.Class,u=[re.NONE]):c[0]==eb?(i=c.length>2?c[2]:null,a=c[1],o=J.Style,u=[re.STYLE]):c[0]==_c&&(a=n.name,o=J.Animation,u=[re.NONE]);if(a===null){let h=this._schemaRegistry.getMappedPropName(n.name);a=s?h:n.name,u=Pc(this._schemaRegistry,e,h,!1),o=n.type===un.TWO_WAY?J.TwoWay:J.Property,r||this._validatePropertyOrAttributeName(h,n.sourceSpan,!1)}return new za(a,o,u[0],n.expression,i,n.sourceSpan,n.keySpan,n.valueSpan)}parseEvent(e,n,r,s,i,o,a,c){e.length===0&&this._reportError("Event name is missing in binding",s),Rc(e)?(e=e.slice(1),c!==void 0&&(c=ar(c,new dt(c.start.offset+1,c.end.offset))),this._parseLegacyAnimationEvent(e,n,s,i,a,c)):this._parseRegularEvent(e,n,r,s,i,o,a,c)}calcPossibleSecurityContexts(e,n,r){let s=this._schemaRegistry.getMappedPropName(n);return Pc(this._schemaRegistry,e,s,r)}parseEventListenerName(e){let[n,r]=FE(e,[null,e]);return{eventName:r,target:n}}parseLegacyAnimationEventName(e){let n=$E(e,[e,null]);return{eventName:n[0],phase:n[1]===null?null:n[1].toLowerCase()}}_parseLegacyAnimationEvent(e,n,r,s,i,o){let{eventName:a,phase:c}=this.parseLegacyAnimationEventName(e),u=this._parseAction(n,s);i.push(new ja(a,c,ze.LegacyAnimation,u,r,s,o)),a.length===0&&this._reportError("Animation event name is missing in binding",r),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${a}" is not supported (use start or done)`,r):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,r)}_parseRegularEvent(e,n,r,s,i,o,a,c){let{eventName:u,target: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=ze.Regular;r&&(v=ze.TwoWay),e.startsWith(`${_c}${_a}`)&&(v=ze.Animation),a.push(new ja(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 rt?(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=Un.ERROR){this.errors.push(new V(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,Un.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Se?this._isAllowedAssignmentEvent(e.ast):e instanceof Eo?this._isAllowedAssignmentEvent(e.expression):e instanceof vn&&e.args.length===1&&e.receiver instanceof ge&&e.receiver.name==="$any"&&e.receiver.receiver instanceof Ht?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof ge||e instanceof jn)&&!tp(e)}};function tp(t){return t instanceof mt||t instanceof ds?!0:t instanceof xo?tp(t.expression):t instanceof ge||t instanceof jn||t instanceof vn?tp(t.receiver):!1}function Rc(t){return t[0]=="@"}function Pc(t,e,n,r){let s,[i,o]=e?it(e,!1):[null,e],a=u=>{let[h,d]=it(u,!1),p=h!=null?h:i,g=p?`:${p}:${d}`:d;return t.securityContext(g,n,r)},c=t.allKnownElementNames();return o===null?s=c.map(a):(s=[],Er.parse(o).forEach(u=>{let h=u.element?[u.element]:c;if(u.element&&!t.hasElement(u.element,[])){let g=`:${Ml}:${u.element}`,v=`:${Ol}:${u.element}`;t.hasElement(g,[])?h=[g]:t.hasElement(v,[])&&(h=[v])}let d=new Set(u.notSelectors.filter(g=>g.isElementSelector()).map(g=>{var v;return(v=g.element)==null?void 0:v.toLowerCase()})),p=h.filter(g=>{let v=g.toLowerCase();return!d.has(v)&&!d.has(it(v)[1])});s.push(...p.map(a))})),s.length===0?[re.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 G(t.start.moveBy(n),t.end.moveBy(r),t.fullStart.moveBy(n),t.details)}function nb(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(rb);return e===null||e[1]=="package"||e[1]=="asset"}var rb=/^([^:/?#]+):/,sb="select",ib="link",ob="rel",ab="href",lb="stylesheet",cb="style",ub=new Set([":svg:script","script"]),pb="ngNonBindable",hb="ngProjectAs";function Ng(t){let e=null,n=null,r=null,s=!1,i="";for(let c of t.attrs){let u=c.name.toLowerCase();u==sb?e=c.value:u==ab?n=c.value:u==ob?r=c.value:c.name==pb?s=!0:c.name==hb&&c.value.length>0&&(i=c.value)}e||(e="*");let o=t.name.toLowerCase(),a=Pt.OTHER;return su(o)?a=Pt.NG_CONTENT:cb===o?a=Pt.STYLE:ub.has(o)?a=Pt.SCRIPT:o==ib&&r==lb&&(a=Pt.STYLESHEET),new np(a,e,n,s,i)}var Pt;(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"})(Pt||(Pt={}));var np=class{constructor(e,n,r,s,i){l(this,"type");l(this,"selectAttr");l(this,"hrefAttr");l(this,"nonBindable");l(this,"projectAs");this.type=e,this.selectAttr=n,this.hrefAttr=r,this.nonBindable=s,this.projectAs=i}},fb=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,db=/^track\s+([\S\s]*)/,mb=/^(as\s+)(.*)/,$l=/^else[^\S\r\n]+if/,gb=/^let\s+([\S\s]*)/,yb=/^[$A-Z_][0-9A-Z_$]*$/i,yd=/(\s*)(\S+)(\s*)/,no=new Set(["$index","$first","$last","$even","$odd","$count"]);function vd(t){return t==="empty"}function Sd(t){return t==="else"||$l.test(t)}function vb(t,e,n,r){let s=Cb(e),i=[],o=Ed(t,s,r);o!==null&&i.push(new rs(o.expression,me(n,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if($l.test(d.name)){let p=Ed(d,s,r);if(p!==null){let g=me(n,d.children,d.children);i.push(new rs(p.expression,g,p.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let p=me(n,d.children,d.children);i.push(new rs(null,p,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let a=i.length>0?i[0].startSourceSpan:t.startSourceSpan,c=i.length>0?i[i.length-1].endSourceSpan:t.endSourceSpan,u=t.sourceSpan,h=i[i.length-1];return h!==void 0&&(u=new G(a.start,h.sourceSpan.end)),{node:new pi(i,u,t.startSourceSpan,c,t.nameSpan),errors:s}}function Sb(t,e,n,r){var c,u;let s=[],i=wb(t,s,r),o=null,a=null;for(let h of e)h.name==="empty"?a!==null?s.push(new V(h.sourceSpan,"@for loop can only have one @empty block")):h.parameters.length>0?s.push(new V(h.sourceSpan,"@empty block cannot have parameters")):a=new bo(me(n,h.children,h.children),h.sourceSpan,h.startSourceSpan,h.endSourceSpan,h.nameSpan,h.i18n):s.push(new V(h.sourceSpan,`Unrecognized @for loop block "${h.name}"`));if(i!==null){let h=(c=a==null?void 0:a.endSourceSpan)!=null?c:t.endSourceSpan,d=new G(t.sourceSpan.start,(u=h==null?void 0:h.end)!=null?u:t.sourceSpan.end),p,g;i.trackBy===null?(p=g=null,s.push(new V(t.startSourceSpan,'@for loop must have a "track" expression'))):(p=i.trackBy.expression,g=i.trackBy.keywordSpan,Tb(i.trackBy.expression,i.trackBy.keywordSpan,s)),o=new _r(i.itemName,i.expression,p,g,i.context,me(n,t.children,t.children),a,d,t.sourceSpan,t.startSourceSpan,h,t.nameSpan,t.i18n)}return{node:o,errors:s}}function Eb(t,e,n){let r=Nb(t),s=t.parameters.length>0?Ks(t.parameters[0],n):n.parseBinding("",!1,t.sourceSpan,0),i=[],o=[],a=[],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 Xa(d.name,d.sourceSpan,d.nameSpan));continue}u!==null&&r.push(new V(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=Ks(d.parameters[0],n);else if(d.name==="default never"){d.parameters.length>0&&(g=Ks(d.parameters[0],n)),(d.children.length>0||d.endSourceSpan!==null&&d.endSourceSpan.start.offset!==d.endSourceSpan.end.offset)&&r.push(new V(d.sourceSpan,'@default block with "never" parameter cannot have a body')),a.length>0&&r.push(new V(d.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),u=new lu(g,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);continue}let v=new au(g,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);if(a.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 G(c.start,d.sourceSpan.end),D=new G(c.start,d.startSourceSpan.end),c=null);let _=new Do(a,me(e,d.children,d.children),I,D,d.endSourceSpan,d.nameSpan,d.i18n);i.push(_),a=[]}return{node:new ui(s,i,o,u,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:r}}function wb(t,e,n){var d;if(t.parameters.length===0)return e.push(new V(t.startSourceSpan,"@for loop does not have an expression")),null;let[r,...s]=t.parameters,i=(d=Ib(r,e))==null?void 0:d.match(fb);if(!i||i[2].trim().length===0)return e.push(new V(r.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=i;no.has(o)&&e.push(new V(r.sourceSpan,`@for loop item name cannot be one of ${Array.from(no).join(", ")}.`));let c=r.expression.split(" ")[0],u=new G(r.sourceSpan.start,r.sourceSpan.start.moveBy(c.length)),h={itemName:new En(o,"$implicit",u,u),trackBy:null,expression:Ks(r,n,a),context:Array.from(no,p=>{let g=new G(t.startSourceSpan.end,t.startSourceSpan.end);return new En(p,p,g,g)})};for(let p of s){let g=p.expression.match(gb);if(g!==null){let E=new G(p.sourceSpan.start.moveBy(g[0].length-g[1].length),p.sourceSpan.end);xb(p.sourceSpan,g[1],E,o,h.context,e);continue}let v=p.expression.match(db);if(v!==null){if(h.trackBy!==null)e.push(new V(p.sourceSpan,'@for loop can only have one "track" expression'));else{let E=Ks(p,n,v[1]);E.ast instanceof rt&&e.push(new V(t.startSourceSpan,'@for loop must have a "track" expression'));let I=new G(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));h.trackBy={expression:E,keywordSpan:I}}continue}e.push(new V(p.sourceSpan,`Unrecognized @for loop parameter "${p.expression}"`))}return h}function Tb(t,e,n){let r=new rp;t.ast.visit(r),r.hasPipe&&n.push(new V(e,"Cannot use pipes in track expressions"))}function xb(t,e,n,r,s,i){var c,u,h;let o=e.split(","),a=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 V(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!no.has(v))i.push(new V(t,`Unknown "let" parameter variable "${v}". The allowed variables are: ${Array.from(no).join(", ")}`));else if(g===r)i.push(new V(t,`Invalid @for loop "let" parameter. Variable cannot be called "${r}"`));else if(s.some(E=>E.name===g))i.push(new V(t,`Duplicate "let" parameter variable "${v}"`));else{let[,E,I]=(c=p[0].match(yd))!=null?c:[],D=E!==void 0&&p.length===2?new G(a.moveBy(E.length),a.moveBy(E.length+I.length)):n,_;if(p.length===2){let[,H,X]=(u=p[1].match(yd))!=null?u:[];_=H!==void 0?new G(a.moveBy(p[0].length+1+H.length),a.moveBy(p[0].length+1+H.length+X.length)):void 0}let k=new G(D.start,(h=_==null?void 0:_.end)!=null?h:D.end);s.push(new En(g,v,k,D,_))}a=a.moveBy(d.length+1)}}function Cb(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let s=t[r];s.name==="else"?(n?e.push(new V(s.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&r<t.length-1?e.push(new V(s.startSourceSpan,"@else block must be last inside the conditional")):s.parameters.length>0&&e.push(new V(s.startSourceSpan,"@else block cannot have parameters")),n=!0):$l.test(s.name)||e.push(new V(s.startSourceSpan,`Unrecognized conditional block @${s.name}`))}return e}function Nb(t){let e=[],n=!1;if(t.parameters.length!==1)return e.push(new V(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let r of t.children)if(!(r instanceof Wo||r instanceof Ns&&r.value.trim().length===0)){if(!(r instanceof Qt)||r.name!=="case"&&r.name!=="default"&&r.name!=="default never"){e.push(new V(r.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}r.name==="default never"?(n&&e.push(new V(r.startSourceSpan,"@switch block can only have one @default block")),n=!0):r.name==="default"?(n?e.push(new V(r.startSourceSpan,"@switch block can only have one @default block")):r.parameters.length>0&&e.push(new V(r.startSourceSpan,"@default block cannot have parameters")),n=!0):r.name==="case"&&r.parameters.length!==1&&e.push(new V(r.startSourceSpan,"@case block must have exactly one parameter"))}return e}function Ks(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 Ed(t,e,n){if(t.parameters.length===0)return e.push(new V(t.startSourceSpan,"Conditional block does not have an expression")),null;let r=Ks(t.parameters[0],n),s=null;for(let i=1;i<t.parameters.length;i++){let o=t.parameters[i],a=o.expression.match(mb);if(a===null)e.push(new V(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&!$l.test(t.name))e.push(new V(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(s!==null)e.push(new V(o.sourceSpan,'Conditional can only have one "as" expression'));else{let c=a[2].trim();if(yb.test(c)){let u=o.sourceSpan.start.moveBy(a[1].length),h=new G(u,u.moveBy(c.length));s=new En(c,c,h,h)}else e.push(new V(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:r,expressionAlias:s}}function Ib(t,e){let n=t.expression,r=/^\s$/,s=0,i=0,o=n.length-1;for(let a=0;a<n.length;a++){let c=n[a];if(c==="(")i=a+1,s++;else{if(r.test(c))continue;break}}if(s===0)return n;for(let a=n.length-1;a>-1;a--){let c=n[a];if(c===")"){if(o=a,s--,s===0)break}else{if(r.test(c))continue;break}}return s!==0?(e.push(new V(t.sourceSpan,"Unclosed parentheses in expression")),null):n.slice(i,o)}var rp=class extends gs{constructor(){super(...arguments);l(this,"hasPipe",!1)}visitPipe(){this.hasPipe=!0}},Ab=/^\d+\.?\d*(ms|s)?$/,Db=/^\s$/,wd=new Map([[Jt,Et],[An,Bn],[wt,We]]),st;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(st||(st={}));function bb({expression:t,sourceSpan:e},n,r){let s=t.indexOf("never"),i=new G(e.start.moveBy(s),e.start.moveBy(s+5)),o=Mp(t,e),a=Op(t,e);s===-1?r.push(new V(e,'Could not find "never" keyword in expression')):Fp("never",n,r,new ou(i,e,o,null,a))}function Lc({expression:t,sourceSpan:e},n,r,s){let i=t.indexOf("when"),o=new G(e.start.moveBy(i),e.start.moveBy(i+4)),a=Mp(t,e),c=Op(t,e);if(i===-1)s.push(new V(e,'Could not find "when" keyword in expression'));else{let u=Qo(t,i+1),h=n.parseBinding(t.slice(u),!1,e,e.start.offset+u);Fp("when",r,s,new Ka(h,e,a,o,c))}}function Mc({expression:t,sourceSpan:e},n,r,s,i){let o=t.indexOf("on"),a=new G(e.start.moveBy(o),e.start.moveBy(o+2)),c=Mp(t,e),u=Op(t,e);if(o===-1)s.push(new V(e,'Could not find "on" keyword in expression'));else{let h=Qo(t,o+1),d=t.startsWith("hydrate");new sp(t,n,h,e,r,s,d?Fb:Ob,d,c,a,u).parse()}}function Mp(t,e){return t.startsWith("prefetch")?new G(e.start,e.start.moveBy(8)):null}function Op(t,e){return t.startsWith("hydrate")?new G(e.start,e.start.moveBy(7)):null}var sp=class{constructor(e,n,r,s,i,o,a,c,u,h,d){l(this,"expression");l(this,"bindingParser");l(this,"start");l(this,"span");l(this,"triggers");l(this,"errors");l(this,"validator");l(this,"isHydrationTrigger");l(this,"prefetchSpan");l(this,"onSourceSpan");l(this,"hydrateSpan");l(this,"index",0);l(this,"tokens");this.expression=e,this.bindingParser=n,this.start=r,this.span=s,this.triggers=i,this.errors=o,this.validator=a,this.isHydrationTrigger=c,this.prefetchSpan=u,this.onSourceSpan=h,this.hydrateSpan=d,this.tokens=new Ko().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(pt))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(wt)){this.advance();let n=this.errors.length,r=this.consumeParameters();if(this.errors.length!==n)break;this.consumeTrigger(e,r),this.advance()}else this.index<this.tokens.length-1&&this.unexpectedToken(this.tokens[this.index+1]);this.advance()}}advance(){this.index++}isFollowedByOrLast(e){return this.index===this.tokens.length-1?!0:this.tokens[this.index+1].isCharacter(e)}token(){return this.tokens[Math.min(this.index,this.tokens.length-1)]}consumeTrigger(e,n){let r=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),s=new G(r,r.moveBy(e.strValue.length)),i=r.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,c=o?this.prefetchSpan:null,u=o?this.hydrateSpan:null,h=new G(o?this.span.start:r,i);try{switch(e.toString()){case st.IDLE:this.trackTrigger("idle",_b(n,s,h,c,a,u));break;case st.TIMER:this.trackTrigger("timer",kb(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case st.INTERACTION:this.trackTrigger("interaction",Lb(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case st.IMMEDIATE:this.trackTrigger("immediate",Rb(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case st.HOVER:this.trackTrigger("hover",Pb(n,s,h,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case st.VIEWPORT:this.trackTrigger("viewport",Mb(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(wt))return this.unexpectedToken(this.token()),e;this.advance();let n=[],r=[];for(;this.index<this.tokens.length;){let s=this.token();if(s.isCharacter(We)&&n.length===0){r.length&&e.push({expression:this.tokenRangeText(r),start:r[0].index});break}if(s.type===q.Character&&wd.has(s.numValue)&&n.push(wd.get(s.numValue)),n.length>0&&s.isCharacter(n[n.length-1])&&n.pop(),n.length===0&&s.isCharacter(pt)&&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(We)||n.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(pt)&&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){Fp(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 V(new G(r,s),n))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function Fp(t,e,n,r){e[t]?n.push(new V(r.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=r}function _b(t,e,n,r,s,i){if(t.length>1)throw new Error(`"${st.IDLE}" trigger can only have zero or one parameters`);let o=null;if(t[0]&&(o=Jo(t[0].expression),o===null))throw new Error(`Could not parse time value of trigger "${st.IDLE}"`);return new li(e,n,r,s,i,o)}function kb(t,e,n,r,s,i){if(t.length!==1)throw new Error(`"${st.TIMER}" trigger must have exactly one parameter`);let o=Jo(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${st.TIMER}"`);return new zn(o,e,n,r,s,i)}function Rb(t,e,n,r,s,i){if(t.length>0)throw new Error(`"${st.IMMEDIATE}" trigger cannot have parameters`);return new ci(e,n,r,s,i)}function Pb(t,e,n,r,s,i,o){var a,c;return o(st.HOVER,t),new ys((c=(a=t[0])==null?void 0:a.expression)!=null?c:null,e,n,r,s,i)}function Lb(t,e,n,r,s,i,o){var a,c;return o(st.INTERACTION,t),new vs((c=(a=t[0])==null?void 0:a.expression)!=null?c:null,e,n,r,s,i)}function Mb(t,e,n,r,s,i,o,a,c,u){u(st.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 ms){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 ge)||!(v.receiver instanceof Ht))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');h=v.name,d=new ms(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=ip.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 br(h,d,s,i,o,a,c)}function Ob(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function Fb(t,e){if(t===st.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 Qo(t,e=0){let n=!1;for(let r=e;r<t.length;r++)if(Db.test(t[r]))n=!0;else if(n)return r;return-1}function Jo(t){let e=t.match(Ab);if(!e)return null;let[n,r]=e;return parseFloat(n)*(r==="s"?1e3:1)}var ip=class t extends gs{constructor(){super(...arguments);l(this,"dynamicNode",null)}static findDynamicNode(n){let r=new t;return r.visit(n),r.dynamicNode}visit(n){!(n instanceof Se)&&!(n instanceof ut)&&!(n instanceof yo)&&!(n instanceof ms)?this.dynamicNode=n:super.visit(n)}},$b=/^prefetch\s+when\s/,Bb=/^prefetch\s+on\s/,Ub=/^hydrate\s+when\s/,Vb=/^hydrate\s+on\s/,Gb=/^hydrate\s+never(\s*)$/,Ig=/^minimum\s/,Hb=/^after\s/,qb=/^when\s/,Wb=/^on\s/;function op(t){return t==="placeholder"||t==="loading"||t==="error"}function jb(t,e,n,r){let s=[],{placeholder:i,loading:o,error:a}=zb(e,s,n),{triggers:c,prefetchTriggers:u,hydrateTriggers:h}=Qb(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 G(t.sourceSpan.start,p);return{node:new Kn(me(n,t.children,t.children),c,u,h,i,o,a,t.nameSpan,g,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:s}}function zb(t,e,n){let r=null,s=null,i=null;for(let o of t)try{if(!op(o.name)){e.push(new V(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":r!==null?e.push(new V(o.startSourceSpan,"@defer block can only have one @placeholder block")):r=Kb(o,n);break;case"loading":s!==null?e.push(new V(o.startSourceSpan,"@defer block can only have one @loading block")):s=Xb(o,n);break;case"error":i!==null?e.push(new V(o.startSourceSpan,"@defer block can only have one @error block")):i=Yb(o,n);break}}catch(a){e.push(new V(o.startSourceSpan,a.message))}return{placeholder:r,loading:s,error:i}}function Kb(t,e){let n=null;for(let r of t.parameters)if(Ig.test(r.expression)){if(n!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let s=Jo(r.expression.slice(Qo(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 No(me(e,t.children,t.children),n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Xb(t,e){let n=null,r=null;for(let s of t.parameters)if(Hb.test(s.expression)){if(n!=null)throw new Error('@loading block can only have one "after" parameter');let i=Jo(s.expression.slice(Qo(s.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');n=i}else if(Ig.test(s.expression)){if(r!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=Jo(s.expression.slice(Qo(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 Io(me(e,t.children,t.children),n,r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Yb(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new Ao(me(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Qb(t,e,n,r){let s={},i={},o={};for(let a of t.parameters)qb.test(a.expression)?Lc(a,e,s,n):Wb.test(a.expression)?Mc(a,e,s,n):$b.test(a.expression)?Lc(a,e,i,n):Bb.test(a.expression)?Mc(a,e,i,n):Ub.test(a.expression)?Lc(a,e,o,n):Vb.test(a.expression)?Mc(a,e,o,n):Gb.test(a.expression)?bb(a,o,n):n.push(new V(a.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&n.push(new V(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:s,prefetchTriggers:i,hydrateTriggers:o}}var Jb=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Td=1,xd=2,Cd=3,Nd=4,Id=5,Zb=6,Hi=7,lr={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Oc="*",e_=new Set(["link","style","script","ng-template","ng-container","ng-content"]),t_=new Set(["ngProjectAs","ngNonBindable"]);function n_(t,e,n){let r=new ap(e,n),s=me(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 ap=class{constructor(e,n){l(this,"bindingParser");l(this,"options");l(this,"errors",[]);l(this,"styles",[]);l(this,"styleUrls",[]);l(this,"ngContentSelectors",[]);l(this,"commentNodes",[]);l(this,"inI18nBlock",!1);l(this,"processedNodes",new Set);this.bindingParser=e,this.options=n}visitElement(e){let n=Ma(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=Ng(e);if(r.type===Pt.SCRIPT)return null;if(r.type===Pt.STYLE){let D=r_(e);return D!==null&&this.styles.push(D),null}else if(r.type===Pt.STYLESHEET&&nb(r.hrefAttr))return this.styleUrls.push(r.hrefAttr),null;let s=iw(e.name),{attributes:i,boundEvents:o,references:a,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=me(Ad,e.children).flat(1/0):E=me(this,e.children,e.children);let I;if(r.type===Pt.NG_CONTENT){let D=r.selectAttr,_=e.attrs.map(k=>this.visitAttribute(k));I=new hi(D,_,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);I=new Te(e.name,i,D.bound,o,v,[],E,a,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 _ of D.bound)_.type===J.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",_.sourceSpan);I=new At(e.name,i,D.bound,o,v,E,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return h&&(I=this.wrapInTemplate(I,p,u,g,s,n)),n&&(this.inI18nBlock=!1),I}visitAttribute(e){return new on(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(!Ma(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(cw)){let a=i.trim(),c=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);r[a]=new ai(c,o.sourceSpan)}else s[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new dm(r,s,e.sourceSpan,n)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new kl(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 rt&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new er(e.name,r,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let n=Ma(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&&e_.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:r,boundEvents:s,references:i,templateVariables:o,elementHasInlineTemplate:a,parsedProperties:c,templateParsedProperties:u,i18nAttrsMeta:h}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(i);let d=this.extractDirectives(e),p;e.attrs.find(E=>E.name==="ngNonBindable")?p=me(Ad,e.children).flat(1/0):p=me(this,e.children,e.children);let g=this.categorizePropertyAttributes(e.tagName,c,h),v=new vr(e.componentName,e.tagName,e.fullName,r,g.bound,s,d,p,i,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(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=jb(e,this.findConnectedBlocks(r,n,op),this,this.bindingParser);break;case"switch":s=Eb(e,this,this.bindingParser);break;case"for":s=Sb(e,this.findConnectedBlocks(r,n,vd),this,this.bindingParser);break;case"if":s=vb(e,this.findConnectedBlocks(r,n,Sd),this,this.bindingParser);break;default:let i;op(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):vd(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Sd(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 Xa(e.name,e.sourceSpan,e.nameSpan),errors:[new V(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 Wo)){if(o instanceof Ns&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof Qt)||!r(o.name))break;s.push(o),this.processedNodes.add(o)}}return s}categorizePropertyAttributes(e,n,r){let s=[],i=[];return n.forEach(o=>{let a=r[o.name];if(o.isLiteral)i.push(new on(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let c=o.name.toLowerCase().startsWith("attr.on"),u=this.bindingParser.createBoundElementProperty(e,o,!c,!1);s.push(Sn.fromBoundElementProperty(u,a))}}),{bound:s,literal:i}}prepareAttributes(e,n){let r=[],s=[],i=[],o=[],a=[],c={},u=[],h=[],d=!1;for(let p of e){let g=!1,v=!1;if(p.i18n&&(c[p.name]=p.i18n),p.name.startsWith(Oc)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",p.sourceSpan),v=!0,d=!0;let E=p.value,I=p.name.substring(Oc.length),D=[],_=p.valueSpan?p.valueSpan.fullStart.offset:p.sourceSpan.fullStart.offset+p.name.length;this.bindingParser.parseInlineTemplateBinding(I,E,p.sourceSpan,_,[],u,D,!0),h.push(...D.map(k=>new En(k.name,k.value,k.sourceSpan,k.keySpan,k.valueSpan)))}else g=this.parseAttribute(n,p,[],r,s,i,o);!g&&!v&&a.push(this.visitAttribute(p))}return{attributes:a,boundEvents:s,references:o,variables:i,templateVariables:h,elementHasInlineTemplate:d,parsedProperties:r,templateParsedProperties:u,i18nAttrsMeta:c}}parseAttribute(e,n,r,s,i,o,a){var D;let c=n.name,u=n.value,h=n.sourceSpan,d=n.valueSpan?n.valueSpan.fullStart.offset:h.fullStart.offset;function p(_,k,H){let X=_.start.moveBy(k.length),ie=X.moveBy(H.length);return new G(X,ie,X,H)}let g=c.match(Jb);if(g){if(g[Td]!=null){let _=g[Hi],k=p(h,g[Td],_);this.bindingParser.parsePropertyBinding(_,u,!1,!1,h,d,n.valueSpan,r,s,k)}else if(g[xd])if(e){let _=g[Hi],k=p(h,g[xd],_);this.parseVariable(_,u,h,k,n.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',h);else if(g[Cd]){let _=g[Hi],k=p(h,g[Cd],_);this.parseReference(_,u,h,k,n.valueSpan,a)}else if(g[Nd]){let _=[],k=g[Hi],H=p(h,g[Nd],k);this.bindingParser.parseEvent(k,u,!1,h,n.valueSpan||h,r,_,H),Fc(_,i)}else if(g[Id]){let _=g[Hi],k=p(h,g[Id],_);this.bindingParser.parsePropertyBinding(_,u,!1,!0,h,d,n.valueSpan,r,s,k),this.parseAssignmentEvent(_,u,h,n.valueSpan,r,i,k,d)}else if(g[Zb]){let _=p(h,"",c);this.bindingParser.parseLiteralAttr(c,u,h,d,n.valueSpan,r,s,_)}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 _=c.substring(v.start.length,c.length-v.end.length),k=p(h,v.start,_);if(v.start===lr.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,u,!1,!0,h,d,n.valueSpan,r,s,k),this.parseAssignmentEvent(_,u,h,n.valueSpan,r,i,k,d);else if(v.start===lr.PROPERTY.start)this.bindingParser.parsePropertyBinding(_,u,!1,!1,h,d,n.valueSpan,r,s,k);else{let H=[];this.bindingParser.parseEvent(_,u,!1,h,n.valueSpan||h,r,H,k),Fc(H,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 vt?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(Oc)?(o=!0,this.reportError(`Shorthand template syntax "${g.name}" is not supported inside a directive context`,g.sourceSpan)):t_.has(g.name)&&(o=!0,this.reportError(`Attribute "${g.name}" is not supported in a directive context`,g.sourceSpan));if(!o&&s.has(i.name)&&(o=!0,this.reportError(`Cannot apply directive "${i.name}" multiple times on the same element`,i.sourceSpan)),o)continue;let{attributes:a,parsedProperties:c,boundEvents:u,references: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!==J.Property&&g.type!==J.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",g.sourceSpan));o||(s.add(i.name),r.push(new na(i.name,a,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!==J.Animation)}wrapInTemplate(e,n,r,s,i,o){let a=this.categorizePropertyAttributes("ng-template",n,s),c=[];a.literal.forEach(p=>c.push(p)),a.bound.forEach(p=>c.push(p));let u={attributes:[],inputs:[],outputs:[]};(e instanceof At||e instanceof vr)&&(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 vr?d=e.tagName:e instanceof Te?d=null:d=e.name,new Te(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=rg(e),o=this.bindingParser.parseInterpolation(i,n,r);return o?new ai(o,n,s):new ts(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 En(e,n,r,s,i))}parseReference(e,n,r,s,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',r):e.length===0?this.reportError("Reference does not have a name",r):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,r),o.push(new kr(e,n,r,s,i))}parseAssignmentEvent(e,n,r,s,i,o,a,c){let u=[];this.bindingParser.parseEvent(`${e}Change`,n,!0,r,s||r,i,u,a),Fc(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=Un.ERROR){this.errors.push(new V(n,e,r))}},lp=class{visitElement(e){let n=Ng(e);if(n.type===Pt.SCRIPT||n.type===Pt.STYLE||n.type===Pt.STYLESHEET)return null;let r=me(this,e.children,null);return new At(e.name,me(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new on(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new ts(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,n){let r=[new ts(e.startSourceSpan.toString(),e.startSourceSpan),...me(this,e.children)];return e.endSourceSpan!==null&&r.push(new ts(e.endSourceSpan.toString(),e.endSourceSpan)),r}visitBlockParameter(e,n){return null}visitLetDeclaration(e,n){return new ts(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,n){let r=me(this,e.children,null);return new At(e.fullName,me(this,e.attrs),[],[],[],r,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,n){return null}},Ad=new lp;function Fc(t,e){e.push(...t.map(n=>Rn.fromParsedEvent(n)))}function r_(t){return t.children.length!==1||!(t.children[0]instanceof Ns)?null:t.children[0].value}var s_=[" ",`
|
|
33
|
+
`,"\r"," "];function Ag(t,e,n={}){var H,X,ie,Re;let{preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:s}=n,i=(H=n.enableSelectorless)!=null?H:!1,o=Si(i),c=new xl().parse(t,e,he(x({leadingTriviaChars:s_},n),{tokenizeExpansionForms:!0,tokenizeBlocks:(X=n.enableBlockSyntax)!=null?X:!0,tokenizeLet:(ie=n.enableLetSyntax)!=null?ie:!0,selectorlessEnabled:i}));if(!n.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let we={preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(we.commentNodes=[]),we}let u=c.rootNodes,h=!((Re=n.preserveSignificantWhitespace)==null||Re),d=new vl(!r,s,n.preserveSignificantWhitespace,h),p=d.visitAllWithErrors(u);if(!n.alwaysAttemptHtmlToR3AstConversion&&p.errors&&p.errors.length>0){let we={preserveWhitespaces:r,errors:p.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return n.collectCommentNodes&&(we.commentNodes=[]),we}u=p.rootNodes,r||(u=me(new gl(!0,void 0,!1),u),d.hasI18nMeta&&(u=me(new vl(!1,void 0,!0,h),u)));let{nodes:g,errors:v,styleUrls:E,styles:I,ngContentSelectors:D,commentNodes:_}=n_(u,o,{collectCommentNodes:!!n.collectCommentNodes});v.push(...c.errors,...p.errors);let k={preserveWhitespaces:r,errors:v.length>0?v:null,nodes:g,styleUrls:E,styles:I,ngContentSelectors:D};return n.collectCommentNodes&&(k.commentNodes=_),k}var i_=new zt;function Si(t=!1){return new ep(new yl(new Ko,t),i_,[])}var Dg="%COMP%",o_=`_nghost-${Dg}`,a_=`_ngcontent-${Dg}`;function bg(t,e,n){let r=new Xn,s=vp(t.selector);return r.set("type",t.type.value),s.length>0&&r.set("selectors",Bs(s)),t.queries.length>0&&r.set("contentQueries",QD(t.queries,e,t.name)),t.viewQueries.length&&r.set("viewQuery",YD(t.viewQueries,e,t.name)),r.set("hostBindings",f_(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,r,t.legacyOptionalChaining)),r.set("inputs",uf(t.inputs,!0)),r.set("outputs",uf(t.outputs)),t.exportAs!==null&&r.set("exportAs",ce(t.exportAs.map(i=>S(i)))),t.isStandalone===!1&&r.set("standalone",S(!1)),t.isSignal&&r.set("signals",S(!0)),r}function _g(t,e){var i,o;let n=[],r=e.providers,s=e.viewProviders;if(r||s){let a=[r||new Mt([])];s&&a.push(s),n.push(R(m.ProvidersFeature).callFn(a))}if((i=e.hostDirectives)!=null&&i.length&&n.push(R(m.HostDirectivesFeature).callFn([g_(e.hostDirectives)])),e.usesInheritance&&n.push(R(m.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(R(m.NgOnChangesFeature)),e.controlCreate!==null&&n.push(R(m.ControlFeature).callFn([S(e.controlCreate.passThroughInput)])),"externalStyles"in e&&((o=e.externalStyles)!=null&&o.length)){let a=e.externalStyles.map(c=>S(c));n.push(R(m.ExternalStylesFeature).callFn([ce(a)]))}n.length&&t.set("features",ce(n))}function kg(t,e,n){let r=bg(t,e,n);_g(r,t);let s=R(m.defineDirective).callFn([r.toLiteralMap()],void 0,!0),i=h_(t);return{expression:s,type:i,statements:[]}}function Rg(t,e,n){var p;let r=bg(t,e,n);_g(r,t);let s=t.name,i=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let g=`${s}_DeferFn`;e.statements.push(new Xe(g,t.defer.dependenciesFn,void 0,Ue.Final)),i=Z(g)}let o=t.isStandalone&&!t.hasDirectiveDependencies?St.DomOnly:St.Full,a=ND(t.name,t.template.nodes,e,o,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,i,t.relativeTemplatePath,zD(),t.legacyOptionalChaining);mg(a,b.Tmpl);let c=wD(a,e);if(a.contentSelectors!==null&&r.set("ngContentSelectors",a.contentSelectors),r.set("decls",S(a.root.decls)),r.set("vars",S(a.root.vars)),a.consts.length>0&&(a.constsInitializers.length>0?r.set("consts",It([],[...a.constsInitializers,new _e(ce(a.consts))])):r.set("consts",ce(a.consts))),r.set("template",c),t.declarationListEmitMode!==3&&t.declarations.length>0)r.set("dependencies",c_(ce(t.declarations.map(g=>g.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let g=[t.type.value];t.rawImports&&g.push(t.rawImports),r.set("dependencies",R(m.getComponentDepsFactory).callFn(g))}t.encapsulation===null&&(t.encapsulation=Cn.Emulated);let u=!!((p=t.externalStyles)!=null&&p.length);if(t.styles&&t.styles.length){let v=(t.encapsulation==Cn.Emulated?m_(t.styles,a_,o_):t.styles).reduce((E,I)=>(I.trim().length>0&&E.push(e.getConstLiteral(S(I))),E),[]);v.length>0&&(u=!0,r.set("styles",ce(v)))}!u&&t.encapsulation===Cn.Emulated&&(t.encapsulation=Cn.None),t.encapsulation!==Cn.Emulated&&r.set("encapsulation",S(t.encapsulation)),t.animations!==null&&r.set("data",Nt([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==Fa.OnPush?r.set("changeDetection",S(t.changeDetection)):typeof t.changeDetection=="object"&&r.set("changeDetection",t.changeDetection));let h=R(m.defineComponent).callFn([r.toLiteralMap()],void 0,!0),d=l_(t);return{expression:h,type:d,statements:[]}}function l_(t){let e=Pg(t);return e.push(up(t.template.ngContentSelectors)),e.push(Ve(S(t.isStandalone))),e.push(Og(t)),t.isSignal&&e.push(Ve(S(t.isSignal))),Ve(R(m.ComponentDeclaration,e))}function c_(t,e){switch(e){case 0:return t;case 1:return It([],t);case 2:let n=t.prop("map").callFn([R(m.resolveForwardRef)]);return It([],n);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function u_(t){return Ve(S(t))}function cp(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 Nt(e)}function up(t){return t.length>0?Ve(ce(t.map(e=>S(e)))):Lt}function Pg(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[bl(t.type.type,t.typeArgumentCount),e!==null?u_(e):Lt,t.exportAs!==null?up(t.exportAs):Lt,Ve(p_(t)),Ve(cp(t.outputs)),up(t.queries.map(n=>n.propertyName))]}function p_(t){return Nt(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:Nt(r),quoted:!0}}))}function h_(t){let e=Pg(t);return e.push(Lt),e.push(Ve(S(t.isStandalone))),e.push(Og(t)),t.isSignal&&e.push(Ve(S(t.isSignal))),Ve(R(m.DirectiveDeclaration,e))}function f_(t,e,n,r,s,i,o,a){let c=n.createBoundHostProperties(t.properties,e),u=n.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=S(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=S(t.specialAttributes.classAttr));let h=ID({componentName:i,componentSelector:s,properties:c,events:u,attributes:t.attributes,legacyOptionalChaining:a},n,r);mg(h,b.Host),o.set("hostAttrs",h.root.attributes);let d=h.root.vars;return d!==null&&d>0&&o.set("hostVars",S(d)),TD(h)}function Lg(t){let e={},n={},r={},s={};for(let i of Object.keys(t)){let o=t[i];if(i.startsWith("(")&&i.endsWith(")")){if(typeof o!="string")throw new Error("Event binding must be string");n[i.slice(1,-1)]=o}else if(i.startsWith("[")&&i.endsWith("]")){if(typeof o!="string")throw new Error("Property binding must be string");r[i.slice(1,-1)]=o}else switch(i){case"class":if(typeof o!="string")throw new Error("Class binding must be string");s.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");s.styleAttr=o;break;default:typeof o=="string"?e[i]=S(o):e[i]=o}}return{attributes:e,listeners:n,properties:r,specialAttributes:s}}function Mg(t,e){let n=Si();return n.createDirectiveHostEventAsts(t.listeners,e),n.createBoundHostProperties(t.properties,e),d_(t,n,e),n.errors}function d_(t,e,n){for(let r in t.properties){let s=r.startsWith("attr."),i=s?r.slice(5):r;if(i.toLowerCase().startsWith("on")){let o=s?"attribute":"property",a=`(${i.slice(2)})=...`,c=`Binding to event ${o} '${i}' is disallowed for security reasons, please use ${a}`;s||(c+=`
|
|
34
|
+
If '${r}' is a directive input, make sure the directive is imported by the current module.`),e.errors.push(new V(n,c))}}}function m_(t,e,n){let r=new Tu;return t.map(s=>r.shimCssText(s,e,n))}function Og(t){var e;return(e=t.hostDirectives)!=null&&e.length?Ve(ce(t.hostDirectives.map(n=>Nt([{key:"directive",value:Ei(n.directive.type),quoted:!1},{key:"inputs",value:cp(n.inputs||{}),quoted:!1},{key:"outputs",value:cp(n.outputs||{}),quoted:!1}])))):Lt}function g_(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=Dd(r.inputs);i&&s.push({key:"inputs",value:i,quoted:!1})}if(r.outputs){let i=Dd(r.outputs);i&&s.push({key:"outputs",value:i,quoted:!1})}e.push(Nt(s))}r.isForwardReference&&(n=!0)}return n?new hn([],[new _e(ce(e))]):ce(e)}function Dd(t){let e=[];for(let n in t)t.hasOwnProperty(n)&&e.push(S(n),S(t[n]));return e.length>0?ce(e):null}var Vr=class extends gs{visit(e){e instanceof Se?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 Ka?this.visit(e.value):e instanceof br&&e.options!==null&&this.visit(e.options)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){var n;this.visit(e.expression),this.visitAllTemplateNodes(e.groups),(n=e.exhaustiveCheck)==null||n.visit(this)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){var n;e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),(n=e.empty)==null||n.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){var n;e.expression&&this.visit(e.expression),(n=e.expressionAlias)==null||n.visit(this),this.visitAllTemplateNodes(e.children)}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)}},Dn;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Dn||(Dn={}));var Jn=class t{constructor(e){l(this,"forwardMap");l(this,"reverseMap");this.forwardMap=e,this.reverseMap=y_(e)}static empty(){return new t(new Map)}static fromMappedObject(e){let n=new Map;for(let r of Object.keys(e)){let s=e[r],i;typeof s=="string"?i={classPropertyName:r,bindingPropertyName:s,isSignal:!1}:i=s,n.set(r,i)}return new t(n)}static merge(e,n){let r=new Map(e.forwardMap.entries());for(let[s,i]of n.forwardMap)r.set(s,i);return new t(r)}get classPropertyNames(){return Array.from(this.forwardMap.keys())}get propertyNames(){return Array.from(this.reverseMap.keys())}hasBindingPropertyName(e){return this.reverseMap.has(e)}getByBindingPropertyName(e){return this.reverseMap.has(e)?this.reverseMap.get(e):null}getByClassPropertyName(e){return this.forwardMap.has(e)?this.forwardMap.get(e):null}toDirectMappedObject(){let e={};for(let[n,r]of this.forwardMap)e[n]=r.bindingPropertyName;return e}toJointMappedObject(e){let n={};for(let[r,s]of this.forwardMap)n[r]=e(s);return n}*[Symbol.iterator](){for(let e of this.forwardMap.values())yield e}};function y_(t){let e=new Map;for(let[n,r]of t)e.has(r.bindingPropertyName)||e.set(r.bindingPropertyName,[]),e.get(r.bindingPropertyName).push(r);return e}var Zo=class{constructor(e){l(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,a=new Map,c=new Map,u=new Map,h=new Map,d=new Set,p=new Set,g=[],v=new Map;if(e.template){let E=bd.apply(e.template);v_(E,a),pp.apply(e.template,this.directiveMatcher,n,r,s,i,o,v),Cl.applyWithScope(e.template,E,c,u,h,d,p,g)}return e.host&&(n.set(e.host.node,e.host.directives),Cl.applyWithScope(e.host.node,bd.apply(e.host.node),c,u,h,d,p,g)),new hp(e,n,r,s,i,o,c,u,h,a,d,p,g,v)}},bd=class Oa{constructor(e,n){l(this,"parentScope");l(this,"rootNode");l(this,"namedEntities",new Map);l(this,"elementLikeInScope",new Set);l(this,"childScopes",new Map);l(this,"isDeferred");this.parentScope=e,this.rootNode=n,this.isDeferred=e!==null&&e.isDeferred?!0:n instanceof Kn}static newRootScope(){return new Oa(null,null)}static apply(e){let n=Oa.newRootScope();return n.ingest(e),n}ingest(e){e instanceof Te?(e.variables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof rs?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(n=>n.visit(this))):e instanceof _r?(this.visitVariable(e.item),e.contextVariables.forEach(n=>this.visitVariable(n)),e.children.forEach(n=>n.visit(this))):e instanceof Do||e instanceof bo||e instanceof Kn||e instanceof Ao||e instanceof No||e instanceof Io||e instanceof hi?e.children.forEach(n=>n.visit(this)):e instanceof _o||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 Oa(this,e);n.ingest(e),this.childScopes.set(e,n)}},pp=class t{constructor(e,n,r,s,i,o,a){l(this,"directiveMatcher");l(this,"directives");l(this,"eagerDirectives");l(this,"missingDirectives");l(this,"bindings");l(this,"references");l(this,"conflictingHostDirectiveBindings");l(this,"isInDeferBlock",!1);this.directiveMatcher=e,this.directives=n,this.eagerDirectives=r,this.missingDirectives=s,this.bindings=i,this.references=o,this.conflictingHostDirectiveBindings=a}static apply(e,n,r,s,i,o,a,c){new t(n,r,s,i,o,a,c).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 Ys){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 Ys){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 Xs){let n=[],r=pw(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){if(n.length>0){let r=this.dedupeAndMergeDirectives(e,n);this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r)}}dedupeAndMergeDirectives(e,n){if(n.length===0||n.every(o=>o.matchSource===Dn.Selector))return n;let r=new Set,s=new Map,i=new Map;for(let o of n)o.matchSource===Dn.Selector?r.add(o.ref.key):(s.has(o.ref.key)||s.set(o.ref.key,[]),s.get(o.ref.key).push(o));for(let[o,a]of s.entries()){if(r.has(o))continue;if(a.length===1){i.set(o,a[0]);continue}let c={},u={};for(let h of a)this.mergeMapping(e,h,"input",c,h.inputs),this.mergeMapping(e,h,"output",u,h.outputs);i.set(o,he(x({},a[0]),{inputs:Jn.fromMappedObject(c),outputs:Jn.fromMappedObject(u)}))}return n.reduce((o,a)=>(a.matchSource===Dn.Selector?o.push(a):i.has(a.ref.key)&&(o.push(i.get(a.ref.key)),i.delete(a.ref.key)),o),[])}mergeMapping(e,n,r,s,i){for(let o of i){let a=s[o.classPropertyName];if(!a){s[o.classPropertyName]=o;continue}if(a.bindingPropertyName===o.bindingPropertyName&&a.classPropertyName===o.classPropertyName&&a.isSignal===o.isSignal)continue;this.conflictingHostDirectiveBindings.has(e)||this.conflictingHostDirectiveBindings.set(e,[]);let c=this.conflictingHostDirectiveBindings.get(e),u=c.find(h=>h.directive.ref.key===n.ref.key&&h.kind===r&&h.classPropertyName===o.classPropertyName);u||(u={directive:n,kind:r,classPropertyName:a.classPropertyName,conflictingAliases:new Set([a.bindingPropertyName])},c.push(u)),u.conflictingAliases.add(o.bindingPropertyName)}}trackSelectorlessMatchesAndDirectives(e,n){if(n.length===0)return;this.trackMatchedDirectives(e,n);let r=(s,i,o)=>{s[o].hasBindingPropertyName(i.name)&&this.bindings.set(i,s)};for(let s of n)e.inputs.forEach(i=>r(s,i,"inputs")),e.attributes.forEach(i=>r(s,i,"inputs")),e.outputs.forEach(i=>r(s,i,"outputs"));e.references.forEach(s=>this.references.set(s,{directive:n[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,n){this.trackMatchedDirectives(e,n),e.references.forEach(s=>{let i=null;if(s.value.trim()==="")i=n.find(o=>o.isComponent)||null;else if(i=n.find(o=>o.exportAs!==null&&o.exportAs.some(a=>a===s.value))||null,i===null)return;i!==null?this.references.set(s,{directive:i,node:e}):this.references.set(s,e)});let r=(s,i)=>{let o=n.find(c=>c[i].hasBindingPropertyName(s.name)),a=o!==void 0?o:e;this.bindings.set(s,a)};e.inputs.forEach(s=>r(s,"inputs")),e.attributes.forEach(s=>r(s,"inputs")),e instanceof Te&&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){}},Cl=class t extends Vr{constructor(n,r,s,i,o,a,c,u,h){super();l(this,"bindings");l(this,"symbols");l(this,"usedPipes");l(this,"eagerPipes");l(this,"deferBlocks");l(this,"nestingLevel");l(this,"scope");l(this,"rootNode");l(this,"level");l(this,"visitNode",n=>n.visit(this));this.bindings=n,this.symbols=r,this.usedPipes=s,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=a,this.scope=c,this.rootNode=u,this.level=h}static applyWithScope(n,r,s,i,o,a,c,u){let h=n instanceof Te?n:null;new t(s,i,a,c,u,o,r,h,0).ingest(n)}ingest(n){var r;if(n instanceof Te)n.variables.forEach(this.visitNode),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof rs)n.expressionAlias!==null&&this.visitNode(n.expressionAlias),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof _r)this.visitNode(n.item),n.contextVariables.forEach(s=>this.visitNode(s)),(r=n.trackBy)==null||r.visit(this),n.children.forEach(this.visitNode),this.nestingLevel.set(n,this.level);else if(n instanceof Kn){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 Do||n instanceof bo||n instanceof Ao||n instanceof No||n instanceof Io||n instanceof hi?(n.children.forEach(s=>s.visit(this)),this.nestingLevel.set(n,this.level)):n instanceof _o?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){var r;(r=n.expression)==null||r.visit(this)}visitForLoopBlock(n){var r;n.expression.visit(this),this.ingestScopedNode(n),(r=n.empty)==null||r.visit(this)}visitForLoopBlockEmpty(n){this.ingestScopedNode(n)}visitIfBlockBranch(n){var r;(r=n.expression)==null||r.visit(this),this.ingestScopedNode(n)}visitContent(n){this.ingestScopedNode(n)}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 Ht))return;let s=this.scope.lookup(r);s!==null&&this.bindings.set(n,s)}},hp=class{constructor(e,n,r,s,i,o,a,c,u,h,d,p,g,v){l(this,"target");l(this,"directives");l(this,"eagerDirectives");l(this,"missingDirectives");l(this,"bindings");l(this,"references");l(this,"exprTargets");l(this,"symbols");l(this,"nestingLevel");l(this,"scopedNodeEntities");l(this,"usedPipes");l(this,"eagerPipes");l(this,"conflictingHostDirectiveBindings");l(this,"deferredBlocks");l(this,"deferredScopes");this.target=e,this.directives=n,this.eagerDirectives=r,this.missingDirectives=s,this.bindings=i,this.references=o,this.exprTargets=a,this.symbols=c,this.nestingLevel=u,this.scopedNodeEntities=h,this.usedPipes=d,this.eagerPipes=p,this.conflictingHostDirectiveBindings=v,this.deferredBlocks=g.map(E=>E[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 vs)&&!(n instanceof br)&&!(n instanceof ys))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 kl)){if(i!==null)return null;o instanceof At&&(i=o)}}return i}let s=this.findEntityInScope(e,r);if(s instanceof kr&&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 kr?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)}getConflictingHostDirectiveBindings(e){return this.conflictingHostDirectiveBindings.get(e)||null}findEntityInScope(e,n){let r=this.getEntitiesInScope(e);for(let s of r)if(s.name===n)return s;return null}referenceTargetToElement(e){return e instanceof At?e:e instanceof Te||e.node instanceof vr||e.node instanceof na||e.node instanceof _o?null:this.referenceTargetToElement(e.node)}};function v_(t,e){let n=new Map;function r(i){if(n.has(i.rootNode))return n.get(i.rootNode);let o=i.namedEntities,a;return i.parentScope!==null?a=new Map([...r(i.parentScope),...o]):a=new Map(o),n.set(i.rootNode,a),a}let s=[t];for(;s.length>0;){let i=s.pop();for(let o of i.childScopes.values())s.push(o);r(i)}for(let[i,o]of n)e.set(i,new Set(o.values()))}var fp=class{};function dp(t,e){let n=new Xn;return n.set("token",t.type.value),n.set("factory",t.factory===void 0?hu(t.type.value,t.type.value,e):It([],t.factory.callFn([]))),t.autoProvided===!1&&n.set("autoProvided",S(!1)),{expression:R(m.defineService).callFn([n.toLiteralMap()],void 0,!0),type:Sm(t.type.type,t.typeArgumentCount),statements:[]}}var mp=class{constructor(e=new yu){l(this,"jitEvaluator");l(this,"FactoryTarget",ht);l(this,"ResourceLoader",fp);l(this,"elementSchemaRegistry",new zt);this.jitEvaluator=e}compilePipe(e,n,r){let s={name:r.name,type:Me(r.type),typeArgumentCount:0,pipeName:r.pipeName,pure:r.pure,isStandalone:r.isStandalone},i=wu(s);return this.jitExpression(i.expression,e,n,[])}compilePipeDeclaration(e,n,r){let s=M_(r),i=wu(s);return this.jitExpression(i.expression,e,n,[])}compileInjectable(e,n,r){var o;let{expression:s,statements:i}=pu({name:r.name,type:Me(r.type),typeArgumentCount:r.typeArgumentCount,providedIn:Ld(r.providedIn),useClass:Ls(r,"useClass"),useFactory:ka(r,"useFactory"),useValue:Ls(r,"useValue"),useExisting:Ls(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(Ug)},!0);return this.jitExpression(s,e,n,i)}compileInjectableDeclaration(e,n,r){var o;let{expression:s,statements:i}=pu({name:r.type.name,type:Me(r.type),typeArgumentCount:0,providedIn:Ld(r.providedIn),useClass:Ls(r,"useClass"),useFactory:ka(r,"useFactory"),useValue:Ls(r,"useValue"),useExisting:Ls(r,"useExisting"),deps:(o=r.deps)==null?void 0:o.map(Md)},!0);return this.jitExpression(s,e,n,i)}compileInjector(e,n,r){let s={type:Me(r.type),providers:r.providers&&r.providers.length>0?new W(r.providers):null,imports:r.imports.map(o=>new W(o))},i=Su(s);return this.jitExpression(i.expression,e,n,[])}compileInjectorDeclaration(e,n,r){let s=O_(r),i=Su(s);return this.jitExpression(i.expression,e,n,[])}compileNgModule(e,n,r){let s={kind:kt.Global,type:Me(r.type),bootstrap:r.bootstrap.map(Me),declarations:r.declarations.map(Me),publicDeclarationTypes:null,imports:r.imports.map(Me),includeImportTypes:!0,exports:r.exports.map(Me),selectorScopeMode:di.Inline,containsForwardDecls:!1,schemas:r.schemas?r.schemas.map(Me):null,id:r.id?new W(r.id):null},i=Pm(s);return this.jitExpression(i.expression,e,n,[])}compileNgModuleDeclaration(e,n,r){let s=_w(r);return this.jitExpression(s,e,n,[])}compileDirective(e,n,r){let s=Rd(r);return this.compileDirectiveFromMeta(e,n,s)}compileDirectiveDeclaration(e,n,r){let s=this.createParseSourceSpan("Directive",r.type.name,n),i=$g(r,s);return this.compileDirectiveFromMeta(e,n,i)}compileService(e,n,r){let{expression:s,statements:i}=dp({type:Me(r.type),typeArgumentCount:r.typeArgumentCount,autoProvided:r.autoProvided,factory:r.factory?ka(r,"factory"):void 0},!0);return this.jitExpression(s,e,n,i)}compileServiceDeclaration(e,n,r){let{expression:s,statements:i}=dp({type:Me(r.type),typeArgumentCount:0,autoProvided:r.autoProvided,factory:r.factory?ka(r,"factory"):void 0},!0);return this.jitExpression(s,e,n,i)}compileDirectiveFromMeta(e,n,r){let s=new ni,i=Si(),o=kg(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileComponent(e,n,r){var c;let{template:s,defer:i}=Bg(r.template,r.name,n,r.preserveWhitespaces,void 0),o=he(x(x({},r),Rd(r)),{selector:r.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:r.declarations.map(T_),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}),a=`ng:///${r.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,n,r){let s=this.createParseSourceSpan("Component",r.type.name,n),i=w_(r,s,n);return this.compileComponentFromMeta(e,n,i)}compileComponentFromMeta(e,n,r){let s=new ni,i=Si(),o=Rg(r,s,i);return this.jitExpression(o.expression,e,n,s.statements)}compileFactory(e,n,r){let s=hr({name:r.name,type:Me(r.type),typeArgumentCount:r.typeArgumentCount,deps:N_(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:Me(r.type),typeArgumentCount:0,deps:Array.isArray(r.deps)?r.deps.map(Md):r.deps,target:r.target});return this.jitExpression(s.expression,e,n,s.statements)}createParseSourceSpan(e,n,r){return xw(e,n,r)}jitExpression(e,n,r,s){let i=[...s,new Xe("$def",e,void 0,Ue.Exported)];return this.jitEvaluator.evaluateStatements(r,i,new Eu(n),!0).$def}};function _d(t){return he(x({},t),{isSignal:t.isSignal,predicate:Fg(t.predicate),read:t.read?new W(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function kd(t){var e,n,r,s;return{propertyName:t.propertyName,first:(e=t.first)!=null?e:!1,predicate:Fg(t.predicate),descendants:(n=t.descendants)!=null?n:!1,read:t.read?new W(t.read):null,static:(r=t.static)!=null?r:!1,emitDistinctChangesOnly:(s=t.emitDistinctChangesOnly)!=null?s:!0,isSignal:!!t.isSignal}}function Fg(t){return Array.isArray(t)?t:Is(new W(t),1)}function Rd(t){var a;let e=L_(t.inputs||[]),n=Bc(t.outputs||[]),r=t.propMetadata,s={},i={};for(let c in r)r.hasOwnProperty(c)&&r[c].forEach(u=>{__(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}:k_(u)&&(i[c]=u.alias||c)});let o=(a=t.hostDirectives)!=null&&a.length?t.hostDirectives.map(c=>typeof c=="function"?{directive:Me(c),inputs:null,outputs:null,isForwardReference:!1}:{directive:Me(c.directive),isForwardReference:!1,inputs:c.inputs?Bc(c.inputs):null,outputs:c.outputs?Bc(c.outputs):null}):null;return he(x({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Me(t.type),deps:null,host:x({},A_(t.propMetadata,t.typeSourceSpan,t.host)),inputs:x(x({},e),s),outputs:x(x({},n),i),queries:t.queries.map(_d),providers:t.providers!=null?new W(t.providers):null,viewQueries:t.viewQueries.map(_d),hostDirectives:o})}function $g(t,e){var r,s,i,o,a,c,u,h,d,p,g,v;let n=(r=t.hostDirectives)!=null&&r.length?t.hostDirectives.map(E=>({directive:Me(E.directive),isForwardReference:!1,inputs:E.inputs?Pd(E.inputs):null,outputs:E.outputs?Pd(E.outputs):null})):null;return{name:t.type.name,type:Me(t.type),typeSourceSpan:e,selector:(s=t.selector)!=null?s:null,inputs:t.inputs?R_(t.inputs):{},outputs:(i=t.outputs)!=null?i:{},host:S_(t.host),queries:((o=t.queries)!=null?o:[]).map(kd),viewQueries:((a=t.viewQueries)!=null?a:[]).map(kd),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:hm(t.version),isSignal:(g=t.isSignal)!=null?g:!1,hostDirectives:n,legacyOptionalChaining:(v=t.legacyOptionalChaining)!=null?v:Tp}}function S_(t={}){var e,n,r;return{attributes:E_((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 Pd(t){let e=null;for(let n=1;n<t.length;n+=2)e=e||{},e[t[n-1]]=t[n];return e}function E_(t){let e={};for(let n of Object.keys(t))e[n]=new W(t[n]);return e}function w_(t,e,n){var a,c,u,h,d;let{template:r,defer:s}=Bg(t.template,t.type.name,n,(a=t.preserveWhitespaces)!=null?a:!1,t.deferBlockDependencies),i=[];if(t.dependencies)for(let p of t.dependencies)switch(p.kind){case"directive":case"component":i.push($c(p));break;case"pipe":i.push(C_(p));break}else(t.components||t.directives||t.pipes)&&(t.components&&i.push(...t.components.map(p=>$c(p,!0))),t.directives&&i.push(...t.directives.map(p=>$c(p))),t.pipes&&i.push(...x_(t.pipes)));let o=i.some(({kind:p})=>p===Or.Directive||p===Or.NgModule);return he(x({},$g(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:Fa.OnPush,encapsulation:(h=t.encapsulation)!=null?h:Cn.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o,legacyOptionalChaining:(d=t.legacyOptionalChaining)!=null?d:Tp})}function T_(t){return he(x({},t),{type:new W(t.type)})}function $c(t,e=null){var n,r,s;return{kind:Or.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 x_(t){return t?Object.keys(t).map(e=>({kind:Or.Pipe,name:e,type:new W(t[e])})):[]}function C_(t){return{kind:Or.Pipe,name:t.name,type:new W(t.type)}}function Bg(t,e,n,r,s){let i=Ag(t,n,{preserveWhitespaces:r});if(i.errors!==null){let c=i.errors.map(u=>u.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${c}`)}let a=new Zo(null).bind({template:i.nodes});return{template:i,defer:I_(a,s)}}function Ls(t,e){if(t.hasOwnProperty(e))return Is(new W(t[e]),0)}function ka(t,e){if(t.hasOwnProperty(e))return new W(t[e])}function Ld(t){let e=typeof t=="function"?new W(t):new ke(t!=null?t:null);return Is(e,0)}function N_(t){return t==null?null:t.map(Ug)}function Ug(t){let e=t.attribute!=null,n=t.token===null?null:new W(t.token),r=e?new W(t.attribute):n;return Vg(r,e,t.host,t.optional,t.self,t.skipSelf)}function Md(t){var r,s,i,o,a;let e=(r=t.attribute)!=null?r:!1,n=t.token===null?null:new W(t.token);return Vg(n,e,(s=t.host)!=null?s:!1,(i=t.optional)!=null?i:!1,(o=t.self)!=null?o:!1,(a=t.skipSelf)!=null?a:!1)}function Vg(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 I_(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 A_(t,e,n){let r=Lg(n||{});for(let i in t)t.hasOwnProperty(i)&&t[i].forEach(o=>{D_(o)?r.properties[o.hostPropertyName||i]=fm("this",i):b_(o)&&(r.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});let s=Mg(r,e);if(s.length)throw new Error(s.map(i=>i.msg).join(`
|
|
35
|
+
`));return r}function D_(t){return t.ngMetadataName==="HostBinding"}function b_(t){return t.ngMetadataName==="HostListener"}function __(t){return t.ngMetadataName==="Input"}function k_(t){return t.ngMetadataName==="Output"}function R_(t){return Object.keys(t).reduce((e,n)=>{let r=t[n];return typeof r=="string"||Array.isArray(r)?e[n]=P_(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 P_(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 L_(t){return t.reduce((e,n)=>{if(typeof n=="string"){let[r,s]=Gg(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 Bc(t){return t.reduce((e,n)=>{let[r,s]=Gg(n);return e[s]=r,e},{})}function Gg(t){let[e,n]=t.split(":",2).map(r=>r.trim());return[n!=null?n:e,e]}function M_(t){var e,n;return{name:t.type.name,type:Me(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:(e=t.pure)!=null?e:!0,isStandalone:(n=t.isStandalone)!=null?n:hm(t.version)}}function O_(t){return{name:t.type.name,type:Me(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 F_(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new mp}var Od;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Od||(Od={}));var gp=class{constructor(){l(this,"closedByParent",!1);l(this,"implicitNamespacePrefix",null);l(this,"isVoid",!1);l(this,"ignoreFirstLf",!1);l(this,"canSelfClose",!0);l(this,"preventNamespaceInheritance",!1)}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return pn.PARSABLE_DATA}},mF=new gp;var Ni=new fo("22.0.1");var Nl;(function(t){t.DIAGNOSTIC="D",t.EXPRESSION_TYPE_IDENTIFIER="T"})(Nl||(Nl={}));var ea;(function(t){t.DIRECTIVE="DIR",t.HOST_DIRECTIVE="HOSTDIR",t.COMPONENT_COMPLETION="COMPCOMP",t.EVENT_PARAMETER="EP",t.VARIABLE_AS_EXPRESSION="VAE"})(ea||(ea={}));var yp;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning"})(yp||(yp={}));var Il;(function(t){t[t.UseEmitter=0]="UseEmitter",t[t.CopyClassNodes=1]="CopyClassNodes",t[t.FallbackToAny=2]="FallbackToAny"})(Il||(Il={}));var ro=class ro{static veWillInferAnyFor(e){let n=ro.SINGLETON;return e instanceof vn?e.visit(n):e.receiver.visit(n)}visitUnary(e){return e.expr.visit(this)}visitBinary(e){return e.left.visit(this)||e.right.visit(this)}visitChain(){return!1}visitConditional(e){return e.condition.visit(this)||e.trueExp.visit(this)||e.falseExp.visit(this)}visitCall(){return!0}visitSafeCall(){return!1}visitImplicitReceiver(){return!1}visitThisReceiver(){return!1}visitInterpolation(e){return e.expressions.some(n=>n.visit(this))}visitKeyedRead(){return!1}visitLiteralArray(){return!0}visitLiteralMap(){return!0}visitLiteralPrimitive(){return!1}visitPipe(){return!0}visitPrefixNot(e){return e.expression.visit(this)}visitTypeofExpression(e){return e.expression.visit(this)}visitVoidExpression(e){return e.expression.visit(this)}visitNonNullAssert(e){return e.expression.visit(this)}visitPropertyRead(){return!1}visitSafePropertyRead(){return!1}visitSafeKeyedRead(){return!1}visitTemplateLiteral(){return!1}visitTemplateLiteralElement(){return!1}visitTaggedTemplateLiteral(){return!1}visitParenthesizedExpression(e){return e.expression.visit(this)}visitRegularExpressionLiteral(){return!1}visitSpreadElement(e){return e.expression.visit(this)}visitArrowFunction(e,n){return!1}};l(ro,"SINGLETON",new ro);var Fd=ro;var $_=["errors","dirty","disabled","disabledReasons","hidden","invalid","name","pending","readonly","touched","max","maxLength","min","minLength","pattern","required"],gF=new Set([...$_,"value","checked"]);var yF=new zt;var vF=new zt;F_(Ki);var TF=(0,qg.createRequire)(O);var xF=new Map([[bn.Minus,"-"],[bn.Plus,"+"]]),CF=new Map([[w.And,"&&"],[w.Bigger,">"],[w.BiggerEquals,">="],[w.BitwiseAnd,"&"],[w.BitwiseOr,"|"],[w.Divide,"/"],[w.Equals,"=="],[w.Identical,"==="],[w.Lower,"<"],[w.LowerEquals,"<="],[w.Minus,"-"],[w.Modulo,"%"],[w.Multiply,"*"],[w.NotEquals,"!="],[w.NotIdentical,"!=="],[w.Or,"||"],[w.Plus,"+"],[w.NullishCoalesce,"??"],[w.Exponentiation,"**"],[w.In,"in"],[w.InstanceOf,"instanceof"],[w.Assign,"="],[w.AdditionAssignment,"+="],[w.SubtractionAssignment,"-="],[w.MultiplicationAssignment,"*="],[w.DivisionAssignment,"/="],[w.RemainderAssignment,"%="],[w.ExponentiationAssignment,"**="],[w.AndAssignment,"&&="],[w.OrAssignment,"||="],[w.NullishCoalesceAssignment,"??="]]);C();var Wg=require("module");var U_=N(require("typescript"),1),V_=N(require("typescript"),1);var DF=(0,Wg.createRequire)(O),jg=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 B_=new jg;function zg(t){B_=t}var Ii=N(require("typescript"),1);var j_=N(require("typescript"),1);var z_=N(require("typescript"),1),Xp=N(require("typescript"),1),aa=N(require("typescript"),1),U=N(require("typescript"),1),Ne=N(require("typescript"),1),Ul=N(require("typescript"),1);var Vl=N(require("typescript"),1),uk=N(require("typescript"),1),pk=N(require("typescript"),1),hk=N(require("typescript"),1),fk=N(require("typescript"),1);var dk=N(require("typescript"),1),mk=N(require("typescript"),1);var Ce=N(require("typescript"),1),Vp=N(require("typescript"),1),nr=N(require("typescript"),1),cy=N(require("typescript"),1),tr=N(require("typescript"),1),wk=N(require("typescript"),1);var Tk=N(require("typescript"),1),xk=N(require("typescript"),1),Ck=N(require("typescript"),1);var Nk=N(require("typescript"),1);var Ik=N(require("typescript"),1),Ak=N(require("typescript"),1);var Dk=N(require("typescript"),1);var bk=N(require("typescript"),1),_k=N(require("typescript"),1),kk=N(require("typescript"),1);var Rk=N(require("typescript"),1),Pk=N(require("typescript"),1);var FF=(0,iy.createRequire)(O),L;(function(t){t[t.DECORATOR_ARG_NOT_LITERAL=1001]="DECORATOR_ARG_NOT_LITERAL",t[t.DECORATOR_ARITY_WRONG=1002]="DECORATOR_ARITY_WRONG",t[t.DECORATOR_NOT_CALLED=1003]="DECORATOR_NOT_CALLED",t[t.DECORATOR_UNEXPECTED=1005]="DECORATOR_UNEXPECTED",t[t.DECORATOR_COLLISION=1006]="DECORATOR_COLLISION",t[t.VALUE_HAS_WRONG_TYPE=1010]="VALUE_HAS_WRONG_TYPE",t[t.VALUE_NOT_LITERAL=1011]="VALUE_NOT_LITERAL",t[t.DUPLICATE_DECORATED_PROPERTIES=1012]="DUPLICATE_DECORATED_PROPERTIES",t[t.INITIALIZER_API_WITH_DISALLOWED_DECORATOR=1050]="INITIALIZER_API_WITH_DISALLOWED_DECORATOR",t[t.INITIALIZER_API_DECORATOR_METADATA_COLLISION=1051]="INITIALIZER_API_DECORATOR_METADATA_COLLISION",t[t.INITIALIZER_API_NO_REQUIRED_FUNCTION=1052]="INITIALIZER_API_NO_REQUIRED_FUNCTION",t[t.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY=1053]="INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY",t[t.DUPLICATE_BINDING_NAME=1054]="DUPLICATE_BINDING_NAME",t[t.INCORRECTLY_DECLARED_ON_STATIC_MEMBER=1100]="INCORRECTLY_DECLARED_ON_STATIC_MEMBER",t[t.COMPONENT_MISSING_TEMPLATE=2001]="COMPONENT_MISSING_TEMPLATE",t[t.PIPE_MISSING_NAME=2002]="PIPE_MISSING_NAME",t[t.PARAM_MISSING_TOKEN=2003]="PARAM_MISSING_TOKEN",t[t.DIRECTIVE_MISSING_SELECTOR=2004]="DIRECTIVE_MISSING_SELECTOR",t[t.UNDECORATED_PROVIDER=2005]="UNDECORATED_PROVIDER",t[t.DIRECTIVE_INHERITS_UNDECORATED_CTOR=2006]="DIRECTIVE_INHERITS_UNDECORATED_CTOR",t[t.UNDECORATED_CLASS_USING_ANGULAR_FEATURES=2007]="UNDECORATED_CLASS_USING_ANGULAR_FEATURES",t[t.COMPONENT_RESOURCE_NOT_FOUND=2008]="COMPONENT_RESOURCE_NOT_FOUND",t[t.COMPONENT_INVALID_SHADOW_DOM_SELECTOR=2009]="COMPONENT_INVALID_SHADOW_DOM_SELECTOR",t[t.COMPONENT_NOT_STANDALONE=2010]="COMPONENT_NOT_STANDALONE",t[t.COMPONENT_IMPORT_NOT_STANDALONE=2011]="COMPONENT_IMPORT_NOT_STANDALONE",t[t.COMPONENT_UNKNOWN_IMPORT=2012]="COMPONENT_UNKNOWN_IMPORT",t[t.HOST_DIRECTIVE_INVALID=2013]="HOST_DIRECTIVE_INVALID",t[t.HOST_DIRECTIVE_NOT_STANDALONE=2014]="HOST_DIRECTIVE_NOT_STANDALONE",t[t.HOST_DIRECTIVE_COMPONENT=2015]="HOST_DIRECTIVE_COMPONENT",t[t.INJECTABLE_INHERITS_INVALID_CONSTRUCTOR=2016]="INJECTABLE_INHERITS_INVALID_CONSTRUCTOR",t[t.HOST_DIRECTIVE_UNDEFINED_BINDING=2017]="HOST_DIRECTIVE_UNDEFINED_BINDING",t[t.HOST_DIRECTIVE_CONFLICTING_ALIAS=2018]="HOST_DIRECTIVE_CONFLICTING_ALIAS",t[t.HOST_DIRECTIVE_MISSING_REQUIRED_BINDING=2019]="HOST_DIRECTIVE_MISSING_REQUIRED_BINDING",t[t.CONFLICTING_INPUT_TRANSFORM=2020]="CONFLICTING_INPUT_TRANSFORM",t[t.COMPONENT_INVALID_STYLE_URLS=2021]="COMPONENT_INVALID_STYLE_URLS",t[t.COMPONENT_UNKNOWN_DEFERRED_IMPORT=2022]="COMPONENT_UNKNOWN_DEFERRED_IMPORT",t[t.NON_STANDALONE_NOT_ALLOWED=2023]="NON_STANDALONE_NOT_ALLOWED",t[t.MISSING_NAMED_TEMPLATE_DEPENDENCY=2024]="MISSING_NAMED_TEMPLATE_DEPENDENCY",t[t.INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE=2025]="INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE",t[t.UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD=2026]="UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD",t[t.COMPONENT_ANIMATIONS_CONFLICT=2027]="COMPONENT_ANIMATIONS_CONFLICT",t[t.SERVICE_CONSTRUCTOR_DI=2028]="SERVICE_CONSTRUCTOR_DI",t[t.SYMBOL_NOT_EXPORTED=3001]="SYMBOL_NOT_EXPORTED",t[t.IMPORT_CYCLE_DETECTED=3003]="IMPORT_CYCLE_DETECTED",t[t.IMPORT_GENERATION_FAILURE=3004]="IMPORT_GENERATION_FAILURE",t[t.CONFIG_FLAT_MODULE_NO_INDEX=4001]="CONFIG_FLAT_MODULE_NO_INDEX",t[t.CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK=4002]="CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK",t[t.CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES=4003]="CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL=4004]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL",t[t.CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK=4005]="CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK",t[t.CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED=4006]="CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED",t[t.HOST_BINDING_PARSE_ERROR=5001]="HOST_BINDING_PARSE_ERROR",t[t.TEMPLATE_PARSE_ERROR=5002]="TEMPLATE_PARSE_ERROR",t[t.NGMODULE_INVALID_DECLARATION=6001]="NGMODULE_INVALID_DECLARATION",t[t.NGMODULE_INVALID_IMPORT=6002]="NGMODULE_INVALID_IMPORT",t[t.NGMODULE_INVALID_EXPORT=6003]="NGMODULE_INVALID_EXPORT",t[t.NGMODULE_INVALID_REEXPORT=6004]="NGMODULE_INVALID_REEXPORT",t[t.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC=6005]="NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC",t[t.NGMODULE_REEXPORT_NAME_COLLISION=6006]="NGMODULE_REEXPORT_NAME_COLLISION",t[t.NGMODULE_DECLARATION_NOT_UNIQUE=6007]="NGMODULE_DECLARATION_NOT_UNIQUE",t[t.NGMODULE_DECLARATION_IS_STANDALONE=6008]="NGMODULE_DECLARATION_IS_STANDALONE",t[t.NGMODULE_BOOTSTRAP_IS_STANDALONE=6009]="NGMODULE_BOOTSTRAP_IS_STANDALONE",t[t.WARN_NGMODULE_ID_UNNECESSARY=6100]="WARN_NGMODULE_ID_UNNECESSARY",t[t.SCHEMA_INVALID_ELEMENT=8001]="SCHEMA_INVALID_ELEMENT",t[t.SCHEMA_INVALID_ATTRIBUTE=8002]="SCHEMA_INVALID_ATTRIBUTE",t[t.MISSING_REFERENCE_TARGET=8003]="MISSING_REFERENCE_TARGET",t[t.MISSING_PIPE=8004]="MISSING_PIPE",t[t.WRITE_TO_READ_ONLY_VARIABLE=8005]="WRITE_TO_READ_ONLY_VARIABLE",t[t.DUPLICATE_VARIABLE_DECLARATION=8006]="DUPLICATE_VARIABLE_DECLARATION",t[t.SPLIT_TWO_WAY_BINDING=8007]="SPLIT_TWO_WAY_BINDING",t[t.MISSING_REQUIRED_INPUTS=8008]="MISSING_REQUIRED_INPUTS",t[t.ILLEGAL_FOR_LOOP_TRACK_ACCESS=8009]="ILLEGAL_FOR_LOOP_TRACK_ACCESS",t[t.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT=8010]="INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT",t[t.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION=8011]="CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION",t[t.DEFERRED_PIPE_USED_EAGERLY=8012]="DEFERRED_PIPE_USED_EAGERLY",t[t.DEFERRED_DIRECTIVE_USED_EAGERLY=8013]="DEFERRED_DIRECTIVE_USED_EAGERLY",t[t.DEFERRED_DEPENDENCY_IMPORTED_EAGERLY=8014]="DEFERRED_DEPENDENCY_IMPORTED_EAGERLY",t[t.ILLEGAL_LET_WRITE=8015]="ILLEGAL_LET_WRITE",t[t.LET_USED_BEFORE_DEFINITION=8016]="LET_USED_BEFORE_DEFINITION",t[t.CONFLICTING_LET_DECLARATION=8017]="CONFLICTING_LET_DECLARATION",t[t.UNCLAIMED_DIRECTIVE_BINDING=8018]="UNCLAIMED_DIRECTIVE_BINDING",t[t.DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER=8019]="DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER",t[t.DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER=8020]="DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER",t[t.DEFER_TRIGGER_MISCONFIGURATION=8021]="DEFER_TRIGGER_MISCONFIGURATION",t[t.FORM_FIELD_UNSUPPORTED_BINDING=8022]="FORM_FIELD_UNSUPPORTED_BINDING",t[t.MULTIPLE_MATCHING_COMPONENTS=8023]="MULTIPLE_MATCHING_COMPONENTS",t[t.CONFLICTING_HOST_DIRECTIVE_BINDING=-8024]="CONFLICTING_HOST_DIRECTIVE_BINDING",t[t.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"})(L||(L={}));function Wl(t){return parseInt("-99"+t)}var On=class extends Error{constructor(e,n,r,s){super(`FatalDiagnosticError: Code: ${e}, Message: ${Ii.default.flattenDiagnosticMessageText(r,`
|
|
36
|
+
`)}`);l(this,"code");l(this,"node");l(this,"diagnosticMessage");l(this,"relatedInformation");l(this,"_isFatalDiagnosticError",!0);this.code=e,this.node=n,this.diagnosticMessage=r,this.relatedInformation=s,Object.setPrototypeOf(this,new.target.prototype)}toDiagnostic(){return zp(this.code,this.node,this.diagnosticMessage,this.relatedInformation)}};function zp(t,e,n,r,s=Ii.default.DiagnosticCategory.Error){return e=Ii.default.getOriginalNode(e),{category:s,code:Wl(t),file:Ii.default.getOriginalNode(e).getSourceFile(),start:e.getStart(void 0,!1),length:e.getWidth(),messageText:n,relatedInformation:r}}function Kp(t,e){return{category:Ii.default.DiagnosticCategory.Message,code:0,messageText:t,next:e}}var q_=new Set([L.DECORATOR_ARG_NOT_LITERAL,L.IMPORT_CYCLE_DETECTED,L.PARAM_MISSING_TOKEN,L.SCHEMA_INVALID_ELEMENT,L.SCHEMA_INVALID_ATTRIBUTE,L.MISSING_REFERENCE_TARGET,L.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,L.WARN_NGMODULE_ID_UNNECESSARY]),oy=(()=>{let t=Ni.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="22.0.1"?"next":`v${Ni.major}`}.angular.dev`})(),W_=`${oy}/errors`,Ge;(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"})(Ge||(Ge={}));var Bp;(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"})(Bp||(Bp={}));var Up;(function(t){t[t.Success=0]="Success",t[t.Failed=1]="Failed"})(Up||(Up={}));function K_(t){return aa.default.isIdentifier(t)||aa.default.isPropertyAccessExpression(t)&&aa.default.isIdentifier(t.expression)&&aa.default.isIdentifier(t.name)}var jr;(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"})(jr||(jr={}));var ve;(function(t){t[t.PublicWritable=0]="PublicWritable",t[t.PublicReadonly=1]="PublicReadonly",t[t.Protected=2]="Protected",t[t.Private=3]="Private",t[t.EcmaScriptPrivate=4]="EcmaScriptPrivate"})(ve||(ve={}));var ay={};function jl(t){return Xp.default.isClassDeclaration(t)&&X_(t.name)}function X_(t){return t!==void 0&&Xp.default.isIdentifier(t)}function Yp(t){switch(t){case ve.EcmaScriptPrivate:return"ES private";case ve.Private:return"private";case ve.Protected:return"protected";case ve.PublicReadonly:return"public readonly";case ve.PublicWritable:default:return"public"}}function Y_(t,e,n){var c,u;if(t===null)return ek();if(!Ne.default.isTypeReferenceNode(t))return oa(t);let r=tk(t,e);if(r===null)return J_(t);let{local:s,decl:i}=r;if(i.valueDeclaration===void 0||i.flags&Ne.default.SymbolFlags.ConstEnum){let h=null;if(i.declarations!==void 0&&i.declarations.length>0&&(h=i.declarations[0]),!n||h&&[Ne.default.SyntaxKind.TypeParameter,Ne.default.SyntaxKind.TypeAliasDeclaration,Ne.default.SyntaxKind.InterfaceDeclaration].includes(h.kind))return Q_(t,h)}let o=s.declarations&&s.declarations[0];if(o!==void 0){if(Ne.default.isImportClause(o)&&o.name!==void 0)return o.phaseModifier===Ne.default.SyntaxKind.TypeKeyword?Bl(t,o):Ne.default.isImportDeclaration(o.parent)?{kind:0,expression:o.name,defaultImportStatement:o.parent}:oa(t);if(Ne.default.isImportSpecifier(o)){if(o.isTypeOnly)return Bl(t,o);if(o.parent.parent.phaseModifier===Ne.default.SyntaxKind.TypeKeyword)return Bl(t,o.parent.parent);let h=(o.propertyName||o.name).text,[d,...p]=r.symbolNames,g=o.parent.parent.parent;if(!Ne.default.isImportDeclaration(g))return oa(t);let v=Kg(g);return{kind:1,valueDeclaration:(c=i.valueDeclaration)!=null?c:null,moduleName:v,importedName:h,nestedPath:p}}else if(Ne.default.isNamespaceImport(o)){if(o.parent.phaseModifier===Ne.default.SyntaxKind.TypeKeyword)return Bl(t,o.parent);if(r.symbolNames.length===1)return Z_(t,o.parent);let[h,d,...p]=r.symbolNames,g=o.parent.parent;if(!Ne.default.isImportDeclaration(g))return oa(t);let v=Kg(g);return{kind:1,valueDeclaration:(u=i.valueDeclaration)!=null?u:null,moduleName:v,importedName:d,nestedPath:p}}}let a=ly(t);return a!==null?{kind:0,expression:a,defaultImportStatement:null}:oa(t)}function oa(t){return{kind:2,reason:{kind:5,typeNode:t}}}function Q_(t,e){return{kind:2,reason:{kind:1,typeNode:t,decl:e}}}function Bl(t,e){return{kind:2,reason:{kind:2,typeNode:t,node:e}}}function J_(t){return{kind:2,reason:{kind:3,typeNode:t}}}function Z_(t,e){return{kind:2,reason:{kind:4,typeNode:t,importClause:e}}}function ek(){return{kind:2,reason:{kind:0}}}function ly(t){return Ne.default.isTypeReferenceNode(t)?Qp(t.typeName):null}function tk(t,e){let n=t.typeName,r=e.getSymbolAtLocation(n);if(r===void 0)return null;let s=r,i=n,o=[];for(;Ne.default.isQualifiedName(i);)o.unshift(i.right.text),i=i.left;if(o.unshift(i.text),i!==n){let c=e.getSymbolAtLocation(i);c!==void 0&&(s=c)}let a=r;return r.flags&Ne.default.SymbolFlags.Alias&&(a=e.getAliasedSymbol(r)),{local:s,decl:a,symbolNames:o}}function Qp(t){if(Ne.default.isQualifiedName(t)){let e=Qp(t.left);return e!==null?Ne.default.factory.createPropertyAccessExpression(e,t.right):null}else if(Ne.default.isIdentifier(t)){let e=Ne.default.setOriginalNode(Ne.default.factory.createIdentifier(t.text),t);return e.parent=t.parent,e}else return null}function Kg(t){if(!Ne.default.isStringLiteral(t.moduleSpecifier))throw new Error("not a module specifier");return t.moduleSpecifier.text}var Jp=class{constructor(t,e=!1,n=!1){l(this,"checker");l(this,"isLocalCompilation");l(this,"skipPrivateValueDeclarationTypes");this.checker=t,this.isLocalCompilation=e,this.skipPrivateValueDeclarationTypes=n}getDecoratorsOfDeclaration(t){let e=U.default.canHaveDecorators(t)?U.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 Xg(t).members.map(n=>{let r=Zp(n);return r===null?null:he(x({},r),{decorators:this.getDecoratorsOfDeclaration(n)})}).filter(n=>n!==null)}getConstructorParameters(t){let e=Xg(t),n=e.getSourceFile().isDeclarationFile,r=e.members.find(s=>U.default.isConstructorDeclaration(s)&&(n||s.body!==void 0));return r===void 0?null:r.parameters.map(s=>{let i=Yg(s.name),o=this.getDecoratorsOfDeclaration(s),a=s.type||null,c=a;if(c&&U.default.isUnionTypeNode(c)){let h=c.types.filter(d=>!(U.default.isLiteralTypeNode(d)&&d.literal.kind===U.default.SyntaxKind.NullKeyword));h.length===1&&(c=h[0])}let u=Y_(c,this.checker,this.isLocalCompilation);return{name:i,nameNode:s.name,typeValueReference:u,typeNode:a,decorators:o}})}getImportOfIdentifier(t){let e=this.getDirectImportOfIdentifier(t);return e!==null?e:U.default.isQualifiedName(t.parent)&&t.parent.right===t?this.getImportOfNamespacedIdentifier(t,ik(t.parent)):U.default.isPropertyAccessExpression(t.parent)&&t.parent.name===t?this.getImportOfNamespacedIdentifier(t,ok(t.parent)):null}getExportsOfModule(t){if(!U.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 jl(t)}hasBaseClass(t){return this.getBaseClassExpression(t)!==null}getBaseClassExpression(t){if(!(U.default.isClassDeclaration(t)||U.default.isClassExpression(t))||t.heritageClauses===void 0)return null;let e=t.heritageClauses.find(r=>r.token===U.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(!U.default.isFunctionDeclaration(t)&&!U.default.isMethodDeclaration(t)&&!U.default.isFunctionExpression(t)&&!U.default.isArrowFunction(t))return null;let e=null;t.body!==void 0&&(e=U.default.isBlock(t.body)?Array.from(t.body.statements):[U.default.factory.createReturnStatement(t.body)]);let n=this.checker.getTypeAtLocation(t),r=this.checker.getSignaturesOfType(n,U.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=Yg(s.name),o=s.initializer||null;return{name:i,node:s,initializer:o,type:s.type||null}})}}getGenericArityOfClass(t){return U.default.isClassDeclaration(t)?t.typeParameters!==void 0?t.typeParameters.length:0:null}getVariableValue(t){return t.initializer||null}isStaticallyExported(t){let e=t;U.default.isVariableDeclaration(t)&&U.default.isVariableDeclarationList(t.parent)&&(e=t.parent.parent);let n=U.default.canHaveModifiers(e)?U.default.getModifiers(e):void 0;return n!==void 0&&n.some(s=>s.kind===U.default.SyntaxKind.ExportKeyword)?!0:e.parent===void 0||!U.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=ak(n);return r===null||!U.default.isStringLiteral(r.moduleSpecifier)?null:{from:r.moduleSpecifier.text,name:lk(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=U.default.isNamespaceImport(r)?r:null;if(!s)return null;let i=s.parent.parent;return!U.default.isImportDeclaration(i)||!U.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&&U.default.isShorthandPropertyAssignment(n)){let s=this.checker.getShorthandAssignmentValueSymbol(n);return s===void 0?null:this.getDeclarationOfSymbol(s,e)}else if(n!==void 0&&U.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&U.default.SymbolFlags.Alias;)t=this.checker.getAliasedSymbol(t);return t.valueDeclaration!==void 0&&(!this.skipPrivateValueDeclarationTypes||!sk(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(U.default.isCallExpression(e)&&(n=Array.from(e.arguments),e=e.expression),!K_(e))return null;let r=U.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[$p]!==void 0)return e[$p];let n=new Set;e[$p]=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&U.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()?ay:n!==null&&n.from!==null&&!n.from.startsWith(".")?n.from:null}};function nk(t){let e=U.default.getModifiers(t),n=!1,r=!1,s=ve.PublicWritable;if(e!==void 0)for(let i of e)switch(i.kind){case U.default.SyntaxKind.StaticKeyword:n=!0;break;case U.default.SyntaxKind.PrivateKeyword:s=ve.Private;break;case U.default.SyntaxKind.ProtectedKeyword:s=ve.Protected;break;case U.default.SyntaxKind.ReadonlyKeyword:r=!0;break}return r&&s===ve.PublicWritable&&(s=ve.PublicReadonly),t.name!==void 0&&U.default.isPrivateIdentifier(t.name)&&(s=ve.EcmaScriptPrivate),{accessLevel:s,isStatic:n}}function Zp(t){let e=null,n=null,r=null,s=null;if(U.default.isPropertyDeclaration(t))e=jr.Property,n=t.initializer||null;else if(U.default.isGetAccessorDeclaration(t))e=jr.Getter;else if(U.default.isSetAccessorDeclaration(t))e=jr.Setter;else if(U.default.isMethodDeclaration(t))e=jr.Method;else if(U.default.isConstructorDeclaration(t))e=jr.Constructor;else return null;if(U.default.isConstructorDeclaration(t))r="constructor";else if(U.default.isIdentifier(t.name))r=t.name.text,s=t.name;else if(U.default.isStringLiteral(t.name))r=t.name.text,s=t.name;else if(U.default.isPrivateIdentifier(t.name))r=t.name.text,s=t.name;else return null;let{accessLevel:i,isStatic:o}=nk(t);return{node:t,implementation:t,kind:e,type:t.type||null,accessLevel:i,name:r,nameNode:s,value:n,isStatic:o}}function zl(t){let e=new Map;return t.properties.forEach(n=>{if(U.default.isPropertyAssignment(n)){let r=rk(n.name);if(r===null)return;e.set(r,n.initializer)}else if(U.default.isShorthandPropertyAssignment(n))e.set(n.name.text,n.name);else return}),e}function Xg(t){if(!U.default.isClassDeclaration(t))throw new Error(`Reflecting on a ${U.default.SyntaxKind[t.kind]} instead of a ClassDeclaration.`);return t}function Yg(t){return U.default.isIdentifier(t)?t.text:null}function rk(t){return U.default.isIdentifier(t)||U.default.isStringLiteral(t)||U.default.isNumericLiteral(t)?t.text:null}function sk(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 ik(t){for(;U.default.isQualifiedName(t.left);)t=t.left;return U.default.isIdentifier(t.left)?t.left:null}function ok(t){for(;U.default.isPropertyAccessExpression(t.expression);)t=t.expression;return U.default.isIdentifier(t.expression)?t.expression:null}function ak(t){let e=t.parent;for(;e&&!U.default.isSourceFile(e);){if(U.default.isImportDeclaration(e))return e;e=e.parent}return null}function lk(t,e){return U.default.isImportSpecifier(t)?(t.propertyName!==void 0?t.propertyName:t.name).text:e.text}var $p=Symbol("LocalExportedDeclarations"),eh=class{constructor(){l(this,"fileToNamedImports",new WeakMap);l(this,"fileToNamespaceImports",new WeakMap)}isPotentialReferenceToNamedImport(t,e,n){let r=t.getSourceFile();this.scanImports(r);let i=this.fileToNamedImports.get(r).get(n),o=i==null?void 0:i.get(e);return o!==void 0&&o.has(t.text)}isPotentialReferenceToNamespaceImport(t,e){var s,i;let n=t.getSourceFile();return this.scanImports(n),(i=(s=this.fileToNamespaceImports.get(n).get(e))==null?void 0:s.has(t.text))!=null?i:!1}hasNamedImport(t,e,n){this.scanImports(t);let s=this.fileToNamedImports.get(t).get(n);return s!==void 0&&s.has(e)}hasNamespaceImport(t,e){return this.scanImports(t),this.fileToNamespaceImports.get(t).has(e)}scanImports(t){var r,s;if(this.fileToNamedImports.has(t)&&this.fileToNamespaceImports.has(t))return;let e=new Map,n=new Map;this.fileToNamedImports.set(t,e),this.fileToNamespaceImports.set(t,n);for(let i of t.statements){if(!Ul.default.isImportDeclaration(i)||!Ul.default.isStringLiteralLike(i.moduleSpecifier)||((r=i.importClause)==null?void 0:r.namedBindings)===void 0)continue;let o=i.moduleSpecifier.text;if(Ul.default.isNamespaceImport(i.importClause.namedBindings))n.has(o)||n.set(o,new Set),n.get(o).add(i.importClause.namedBindings.name.text);else for(let a of i.importClause.namedBindings.elements){let c=a.name.text,u=a.propertyName===void 0?c:a.propertyName.text;e.has(o)||e.set(o,new Map);let h=e.get(o);h.has(u)||h.set(u,new Set),(s=h.get(u))==null||s.add(c)}}}};var Qg=Symbol("patchedReferencedAliases");function th(t){ck(t)||Jg();let e=t.getEmitResolver();if(e===void 0)return null;let n=e[Qg];if(n!==void 0)return n;let r=e.isReferencedAliasDeclaration;r===void 0&&Jg();let s=new Set;return e.isReferencedAliasDeclaration=function(i,...o){return nh(i)&&s.has(i)?!0:r.call(e,i,...o)},e[Qg]=s}function nh(t){return Vl.default.isImportSpecifier(t)||Vl.default.isNamespaceImport(t)||Vl.default.isImportClause(t)}function ck(t){return t.getEmitResolver!==void 0}function Jg(){throw Error(`Angular compiler is incompatible with this version of the TypeScript compiler.
|
|
37
37
|
|
|
38
38
|
If you recently updated TypeScript and this issue surfaces now, consider downgrading.
|
|
39
39
|
|
|
40
|
-
Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}var ca;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(ca||(ca={}));function f_(){let t=new Set,e=(r,s)=>t.has(`${r.fileName}@@${s}`),n=(r,s)=>t.add(`${r.fileName}@@${s}`);return(r,s)=>{let i=r;if(i.identifiers===void 0)throw new Error("Source file unexpectedly lacks map of parsed `identifiers`.");let o=u=>!i.identifiers.has(u)&&!e(i,u);if(o(s))return n(i,s),null;let a=null,c=1;do a=`${s}_${c++}`;while(!o(a));return n(i,a),Up.default.factory.createUniqueName(a,Up.default.GeneratedIdentifierFlags.Optimistic)}}function d_(t,e){return n=>{let{affectedFiles:r,newImports:s,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:a}=t.finalize();if(o.size>0){let u=eh(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(!nr.default.isImportDeclaration(u))return u;if(a.has(u))return;if(u.importClause===void 0||!nr.default.isImportClause(u.importClause))return u;let h=u.importClause;if(h.namedBindings===void 0||!nr.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 nr.default.setOriginalNode(p,{importClause:d,kind:p.kind}),p};return u=>{var g,v;if(!r.has(u.fileName))return u;u=nr.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)m_(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 m_(t){return nr.default.isImportDeclaration(t)||nr.default.isImportEqualsDeclaration(t)||nr.default.isNamespaceImport(t)}function g_(t,e){let n=cy(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,ly.default.factory.createIdentifier(e.exportSymbolName)]}function Jg(t,e,n){e.directReuseCache.set(cy(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function cy(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function y_(t,e,n){let r=null;for(let a=e.statements.length-1;a>=0;a--){let c=e.statements[a];if(!(!tr.default.isImportDeclaration(c)||!tr.default.isStringLiteral(c.moduleSpecifier)||!c.importClause||c.importClause.phaseModifier===tr.default.SyntaxKind.TypeKeyword||c.moduleSpecifier.text!==n.exportModuleSpecifier)&&c.importClause.namedBindings){let h=c.importClause.namedBindings;if(tr.default.isNamespaceImport(h))return t.reusedAliasDeclarations.add(h),n.exportSymbolName===null?h.name:[h.name,tr.default.factory.createIdentifier(n.exportSymbolName)];if(tr.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=tr.default.factory.createIdentifier(n.exportSymbolName),o=n.unsafeAliasOverride?tr.default.factory.createIdentifier(n.unsafeAliasOverride):t.generateUniqueIdentifier(e,n.exportSymbolName);return s.push({propertyName:i,fileUniqueAlias:o}),o!=null?o:i}var nh=class{constructor(t={}){l(this,"newImports",new Map);l(this,"removedImports",new Map);l(this,"nextUniqueIndex",0);l(this,"config");l(this,"reuseSourceFileImportsTracker");l(this,"reuseGeneratedImportsTracker",{directReuseCache:new Map,namespaceImportReuseCache:new Map});var e,n,r,s,i,o;this.config={shouldUseSingleQuotes:(e=t.shouldUseSingleQuotes)!=null?e:(()=>!1),rewriter:(n=t.rewriter)!=null?n:null,disableOriginalSourceFileReuse:(r=t.disableOriginalSourceFileReuse)!=null?r:!1,forceGenerateNamespacesForNewImports:(s=t.forceGenerateNamespacesForNewImports)!=null?s:!1,namespaceImportPrefix:(i=t.namespaceImportPrefix)!=null?i:"i",generateUniqueIdentifier:(o=t.generateUniqueIdentifier)!=null?o:f_()},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=g_(this.reuseGeneratedImportsTracker,t);if(e!==null)return Zg(!!t.asTypeReference,e);let n=this._generateNewImport(t);return Jg(t,this.reuseGeneratedImportsTracker,n),Zg(!!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=y_(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=Ce.default.factory.createNamespaceImport((h=this.config.generateUniqueIdentifier(e,d))!=null?h:Ce.default.factory.createIdentifier(d));return i.set(t.exportModuleSpecifier,p),Jg(he(x({},t),{exportSymbolName:null}),this.reuseGeneratedImportsTracker,p.name),t.exportSymbolName!==null?[p.name,Ce.default.factory.createIdentifier(t.exportSymbolName)]:p.name}s.has(t.exportModuleSpecifier)||s.set(t.exportModuleSpecifier,[]);let o=Ce.default.factory.createIdentifier(t.exportSymbolName),a=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(e,t.exportSymbolName),c,u;return t.unsafeAliasOverride?(c=!0,u=Ce.default.factory.createIdentifier(t.unsafeAliasOverride)):a!==null?(c=!0,u=a):(c=!1,u=o),s.get(t.exportModuleSpecifier).push(Ce.default.factory.createImportSpecifier(!1,c?o:void 0,u)),u}finalize(){let t=new Set,e=new Map,n=new Map,r=new Set,s=new Map,i=(o,a)=>{t.add(o),n.has(o)?n.get(o).push(a):n.set(o,[a])};return this.reuseSourceFileImportsTracker.updatedImports.forEach((o,a)=>{let c=a.getSourceFile(),u=a.importClause.namedBindings,h=a.moduleSpecifier.text,d=u.elements.concat(o.map(({propertyName:p,fileUniqueAlias:g})=>Ce.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(a):e.set(u,Ce.default.factory.updateNamedImports(u,d))}),this.removedImports.forEach((o,a)=>{var u;if(o.size===0)return;let c=s.get(a);c||(c=a.statements.filter(Ce.default.isImportDeclaration),s.set(a,c));for(let h of c){if(!((u=h.importClause)!=null&&u.namedBindings)||!Ce.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(a,p,v));g.length===0?(t.add(a.fileName),r.add(h)):g.length!==d.elements.length&&(t.add(a.fileName),e.set(d,Ce.default.factory.updateNamedImports(d,g)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:a,sideEffectImports:c},u)=>{let h=this.config.shouldUseSingleQuotes(u),d=u.fileName;c.forEach(p=>{i(d,Ce.default.factory.createImportDeclaration(void 0,void 0,Ce.default.factory.createStringLiteral(p)))}),a.forEach((p,g)=>{let v=Ce.default.factory.createImportDeclaration(void 0,Ce.default.factory.createImportClause(void 0,void 0,p),Ce.default.factory.createStringLiteral(g,h));Ce.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=Ce.default.factory.createImportDeclaration(void 0,Ce.default.factory.createImportClause(void 0,void 0,Ce.default.factory.createNamedImports(v)),Ce.default.factory.createStringLiteral(g,h));i(d,E)}})}),{affectedFiles:t,newImports:n,updatedImports:e,reusedOriginalAliasDeclarations:this.reuseSourceFileImportsTracker.reusedAliasDeclarations,deletedImports:r}}toTsTransform(t){return d_(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 Zg(t,e){return t?Array.isArray(e)?Ce.default.factory.createQualifiedName(e[0],e[1]):e:Array.isArray(e)?Ce.default.factory.createPropertyAccessExpression(e[0],e[1]):e}var ey;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(ey||(ey={}));var HF=`${Nl.DIAGNOSTIC}:ignore`;var Ai;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(Ai||(Ai={}));var Gl;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(Gl||(Gl={}));var Hl;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(Hl||(Hl={}));var ql;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(ql||(ql={}));var tt;(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"})(tt||(tt={}));var WF=new zt;var YF=[m.InputSignalBrandWriteType],Vp;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(Vp||(Vp={}));var A=N(require("typescript"),1);var Fn=N(require("typescript"),1),J_=N(require("typescript"),1),Z_=N(require("typescript"),1);var e0=N(require("typescript"),1);var t0=N(require("typescript"),1),n0=N(require("typescript"),1),r0=N(require("typescript"),1);var s0=N(require("typescript"),1);var i0=N(require("typescript"),1),o0=N(require("typescript"),1);var a0=N(require("typescript"),1);var l0=N(require("typescript"),1);var Kt=N(require("typescript"),1),oh=N(require("typescript"),1);var wn=N(require("typescript"),1),E0=N(require("typescript"),1),w0=N(require("typescript"),1);var T0=N(require("typescript"),1);var x0=N(require("typescript"),1),C0=N(require("typescript"),1);var N0=N(require("typescript"),1);var I0=N(require("typescript"),1),A0=N(require("typescript"),1);var D0=N(require("typescript"),1);var b0=N(require("typescript"),1),k0=N(require("typescript"),1);var ne=N(require("typescript"),1),_0=N(require("typescript"),1);var R0=N(require("typescript"),1);var P0=N(require("typescript"),1);var L0=N(require("typescript"),1);C();var uy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",__=new Uint8Array(64),R_=new Uint8Array(128);for(let t=0;t<uy.length;t++){let e=uy.charCodeAt(t);__[t]=e,R_[e]=t}var i1=1024*16;var O0=N(require("typescript"),1);var F0=N(require("typescript"),1);var $0=N(require("typescript"),1),B0=N(require("typescript"),1);var U0=N(require("typescript"),1);var V0=N(require("typescript"),1);var G0=N(require("typescript"),1);var H0=N(require("typescript"),1),zr=N(require("typescript"),1),Yl=N(require("typescript"),1),Ay=N(require("typescript"),1);var c2=(0,gy.createRequire)(O);function rh(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var yy="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function vy(t,e){let n=[],r=t.expression;switch(r.kind){case A.default.SyntaxKind.Identifier:n.push(A.default.factory.createPropertyAssignment("type",r));break;case A.default.SyntaxKind.CallExpression:let s=r;if(n.push(A.default.factory.createPropertyAssignment("type",s.expression)),s.arguments.length){let i=[];for(let a of s.arguments)i.push(a);let o=A.default.factory.createArrayLiteralExpression(A.default.factory.createNodeArray(i,!0));n.push(A.default.factory.createPropertyAssignment("args",o))}break;default:e.push({file:t.getSourceFile(),start:t.getStart(),length:t.getEnd()-t.getStart(),messageText:`${A.default.SyntaxKind[t.kind]} not implemented in gathering decorator metadata.`,category:A.default.DiagnosticCategory.Error,code:0});break}return A.default.factory.createObjectLiteralExpression(n)}function W_(t,e,n,r){let s=[];for(let a of n){if(!a.type&&a.decorators.length===0){s.push(A.default.factory.createNull());continue}let c=a.type?Sy(e,a.type):void 0,u=[A.default.factory.createPropertyAssignment("type",c||A.default.factory.createIdentifier("undefined"))],h=[];for(let d of a.decorators)h.push(vy(d,t));h.length&&u.push(A.default.factory.createPropertyAssignment("decorators",A.default.factory.createArrayLiteralExpression(h))),s.push(A.default.factory.createObjectLiteralExpression(u))}let i=A.default.factory.createArrowFunction(void 0,void 0,[],void 0,A.default.factory.createToken(A.default.SyntaxKind.EqualsGreaterThanToken),A.default.factory.createArrayLiteralExpression(s,!0)),o=A.default.factory.createPropertyDeclaration([A.default.factory.createToken(A.default.SyntaxKind.StaticKeyword)],"ctorParameters",void 0,void 0,i);return r&&A.default.setSyntheticLeadingComments(o,[{kind:A.default.SyntaxKind.MultiLineCommentTrivia,text:["*"," * @type {function(): !Array<(null|{"," * type: ?,",` * decorators: (undefined|${yy}),`," * })>}"," * @nocollapse"," "].join(`
|
|
41
|
-
`),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function Sy(t,e){let n=e.kind;switch(A.default.isLiteralTypeNode(e)&&(n=e.literal.kind),n){case A.default.SyntaxKind.FunctionType:case A.default.SyntaxKind.ConstructorType:return A.default.factory.createIdentifier("Function");case A.default.SyntaxKind.ArrayType:case A.default.SyntaxKind.TupleType:return A.default.factory.createIdentifier("Array");case A.default.SyntaxKind.TypePredicate:case A.default.SyntaxKind.TrueKeyword:case A.default.SyntaxKind.FalseKeyword:case A.default.SyntaxKind.BooleanKeyword:return A.default.factory.createIdentifier("Boolean");case A.default.SyntaxKind.StringLiteral:case A.default.SyntaxKind.StringKeyword:return A.default.factory.createIdentifier("String");case A.default.SyntaxKind.ObjectKeyword:return A.default.factory.createIdentifier("Object");case A.default.SyntaxKind.NumberKeyword:case A.default.SyntaxKind.NumericLiteral:return A.default.factory.createIdentifier("Number");case A.default.SyntaxKind.TypeReference:return t(e.typeName);case A.default.SyntaxKind.UnionType:let s=e.types.filter(i=>!(A.default.isLiteralTypeNode(i)&&i.literal.kind===A.default.SyntaxKind.NullKeyword));return s.length===1?Sy(t,s[0]):void 0;default:return}}function j_(t,e){return e.flags&A.default.SymbolFlags.Alias&&(e=t.getAliasedSymbol(e)),(e.flags&A.default.SymbolFlags.Value&A.default.SymbolFlags.ConstEnumExcludes)!==0}function Ey(t,e,n,r,s,i){function o(c,u){s&&A.default.setSyntheticLeadingComments(c,[{kind:A.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${u}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function a(c,u){let h=[];for(let[g,v]of u.entries())h.push(A.default.factory.createPropertyAssignment(g,A.default.factory.createArrayLiteralExpression(v.map(E=>vy(E,c)))));let d=A.default.factory.createObjectLiteralExpression(h,!0),p=A.default.factory.createPropertyDeclaration([A.default.factory.createToken(A.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,d);return o(p,`!Object<string, ${yy}>`),p}return c=>{let u=eh(c);function h(E){let I=t.getSymbolAtLocation(E);if(!I||!j_(t,I)||!I.declarations||I.declarations.length===0)return;if(A.default.isQualifiedName(E)){let k=h(E.left);return k===void 0?void 0:A.default.factory.createPropertyAccessExpression(k,E.right)}let D=I.declarations[0];return th(D)&&(u==null||u.add(D),D.name!==void 0)?A.default.setOriginalNode(A.default.factory.createIdentifier(D.name.text),D.name):A.default.setOriginalNode(A.default.factory.createIdentifier(E.text),E)}function d(E){E=A.default.visitEachChild(E,v,c);let I=[],D=[],k=e.getDecoratorsOfDeclaration(E)||[];for(let X of k){let ie=X.node;if(!rh(X,r)){I.push(ie);continue}D.push(ie)}if(!D.length)return[void 0,E,[]];if(!E.name||!A.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:A.default.DiagnosticCategory.Error,code:0}),[void 0,E,[]];let _=A.default.canHaveModifiers(E)?A.default.getModifiers(E):void 0,H;return(I.length||_!=null&&_.length)&&(H=A.default.setTextRange(A.default.factory.createNodeArray([...I,..._||[]]),E.modifiers)),[E.name.text,z_(E,H),D]}function p(E){E=A.default.visitEachChild(E,v,c);let I=[],D=E.parameters,k=[];for(let H of D){let X=[],ie={decorators:[],type:null},Re=e.getDecoratorsOfDeclaration(H)||[];for(let rr of Re){let sr=rr.node;if(!rh(rr,r)){X.push(sr);continue}ie.decorators.push(sr)}H.type&&(ie.type=H.type),k.push(ie);let we,bt=A.default.getModifiers(H);(X.length||bt!=null&&bt.length)&&(we=[...X,...bt||[]]);let Xr=A.default.factory.updateParameterDeclaration(H,we,H.dotDotDotToken,H.name,H.questionToken,H.type,H.initializer);I.push(Xr)}return[A.default.factory.updateConstructorDeclaration(E,A.default.getModifiers(E),I,E.body),k]}function g(E){let I=[],D=new Map,k=null;for(let ie of E.members){switch(ie.kind){case A.default.SyntaxKind.PropertyDeclaration:case A.default.SyntaxKind.GetAccessor:case A.default.SyntaxKind.SetAccessor:case A.default.SyntaxKind.MethodDeclaration:{let[Re,we,bt]=d(ie);I.push(we),Re&&D.set(Re,bt);continue}case A.default.SyntaxKind.Constructor:{if(!ie.body)break;let[we,bt]=p(ie);k=bt,I.push(we);continue}default:break}I.push(A.default.visitEachChild(ie,v,c))}let H=(e.getDecoratorsOfDeclaration(E)||[]).some(ie=>rh(ie,r));k&&(H||k.some(ie=>!!ie.decorators.length))&&I.push(W_(n,h,k,s)),D.size&&I.push(a(n,D));let X=A.default.setTextRange(A.default.factory.createNodeArray(I,E.members.hasTrailingComma),E.members);return A.default.factory.updateClassDeclaration(E,E.modifiers,E.name,E.typeParameters,E.heritageClauses,X)}function v(E){return A.default.isClassDeclaration(E)&&(i===void 0||i(E))?g(E):A.default.visitEachChild(E,v,c)}return E=>A.default.visitEachChild(E,v,c)}}function z_(t,e){let n;if(A.default.isMethodDeclaration(t))n=A.default.factory.createMethodDeclaration(e,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);else if(A.default.isPropertyDeclaration(t))n=A.default.factory.createPropertyDeclaration(e,t.name,t.questionToken,t.type,t.initializer);else if(A.default.isGetAccessor(t))n=A.default.factory.createGetAccessorDeclaration(e,t.name,t.parameters,t.type,t.body);else if(A.default.isSetAccessor(t))n=A.default.factory.createSetAccessorDeclaration(e,t.name,t.parameters,t.body);else throw new Error(`Unsupported decorated member with kind ${A.default.SyntaxKind[t.kind]}`);return A.default.setOriginalNode(n,t)}var K_="@angular/core";function wy(t){return t.import!==null&&t.import.from===K_}function ua(t,e,n){return n?t.name===e:wy(t)?t.import.name===e:!1}function Ty(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||wy(r)})}function xy(t){for(;Fn.default.isAsExpression(t)||Fn.default.isParenthesizedExpression(t);)t=t.expression;return t}function X_(t){if(t=xy(t),!Fn.default.isArrowFunction(t)&&!Fn.default.isFunctionExpression(t))return null;let e=t.body;if(Fn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Fn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function Y_(t,e){if(t=xy(t),!Fn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Fn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Fn.default.isIdentifier(n))return null;let r=X_(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 sh;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(sh||(sh={}));var ih;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(ih||(ih={}));var Di;(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"})(Di||(Di={}));var Kl;(function(t){t[t.InputDtsFile=0]="InputDtsFile",t[t.InputTsFile=1]="InputTsFile",t[t.AnalyzeComponent=2]="AnalyzeComponent",t[t.AnalyzeDirective=3]="AnalyzeDirective",t[t.AnalyzeInjectable=4]="AnalyzeInjectable",t[t.AnalyzeNgModule=5]="AnalyzeNgModule",t[t.AnalyzePipe=6]="AnalyzePipe",t[t.AnalyzeService=7]="AnalyzeService",t[t.TraitAnalyze=8]="TraitAnalyze",t[t.TraitReuseAnalysis=9]="TraitReuseAnalysis",t[t.SourceFilePhysicalChange=10]="SourceFilePhysicalChange",t[t.SourceFileLogicalChange=11]="SourceFileLogicalChange",t[t.SourceFileReuseAnalysis=12]="SourceFileReuseAnalysis",t[t.GenerateTcb=13]="GenerateTcb",t[t.SkipGenerateTcbNoInline=14]="SkipGenerateTcbNoInline",t[t.ReuseTypeCheckFile=15]="ReuseTypeCheckFile",t[t.UpdateTypeCheckProgram=16]="UpdateTypeCheckProgram",t[t.EmitSkipSourceFile=17]="EmitSkipSourceFile",t[t.EmitSourceFile=18]="EmitSourceFile",t[t.LAST=19]="LAST"})(Kl||(Kl={}));var Xl;(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"})(Xl||(Xl={}));var Q_=class{eventCount(){}memory(){}phase(){return Di.Unaccounted}inPhase(t,e){return e()}reset(){}},f2=new Q_;var py;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(py||(py={}));function Zl({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new On(L.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,zp(`Cannot use "${t.functionName}" on a class member that is declared as ${Xp(n.accessLevel)}.`,[zp("Update the class field to be either: "+t.allowedAccessLevels.map(r=>Xp(r)).join(", "))]))}function bi(t,e,n,r){if(Kt.default.isAsExpression(e)||Kt.default.isParenthesizedExpression(e))return bi(t,e.expression,n,r);if(!Kt.default.isCallExpression(e))return null;let s=c0(e,t,r)||u0(e,t,r)||p0(e,t,r);if(s===null)return null;let{api:i,apiReference:o,isRequired:a}=s,c=n.getImportOfIdentifier(o);return c===null||i.functionName!==c.name||i.owningModule!==c.from?null:{api:i,call:e,isRequired:a}}function c0(t,e,n){let r=t.expression;if(!Kt.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 u0(t,e,n){let r=t.expression;if(!Kt.default.isPropertyAccessExpression(r)||!Kt.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 p0(t,e,n){let r=t.expression;if(!Kt.default.isPropertyAccessExpression(r))return null;let s=null,i,o=!1;if(Kt.default.isIdentifier(r.expression)&&Kt.default.isIdentifier(r.name)){let a=r.expression;s=r.name,i=e.find(c=>r.name.text===c.functionName&&n.isPotentialReferenceToNamespaceImport(a,c.owningModule))}else if(Kt.default.isPropertyAccessExpression(r.expression)&&Kt.default.isIdentifier(r.expression.expression)&&Kt.default.isIdentifier(r.expression.name)&&r.name.text==="required"){let a=r.expression.name.text,c=r.expression.expression;s=r.expression.name,i=e.find(u=>u.functionName===a&&n.isPotentialReferenceToNamespaceImport(c,u.owningModule)),o=!0}return i===void 0||s===null?null:{api:i,apiReference:s,isRequired:o}}function ch(t){if(!oh.default.isObjectLiteralExpression(t))throw new On(L.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=zl(t),n;if(e.has("alias")){let r=e.get("alias");if(!oh.default.isStringLiteralLike(r))throw new On(L.VALUE_HAS_WRONG_TYPE,r,"Alias needs to be a string that is statically analyzable.");n=r.text}return{alias:n}}var ec={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected]};function h0(t,e,n){var a;if(t.value===null)return null;let r=bi([ec],t.value,e,n);if(r===null)return null;Zl(r,t);let s=r.isRequired?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?ch(s):null,o=t.name;return{isSignal:!0,classPropertyName:o,bindingPropertyName:(a=i==null?void 0:i.alias)!=null?a:o,required:r.isRequired,transform:null}}var tc={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected]};function f0(t,e,n){var c;if(t.value===null)return null;let r=bi([tc],t.value,e,n);if(r===null)return null;Zl(r,t);let s=r.isRequired?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?ch(s):null,o=t.name,a=(c=i==null?void 0:i.alias)!=null?c:o;return{call:r.call,input:{isSignal:!0,transform:null,classPropertyName:o,bindingPropertyName:a,required:r.isRequired},output:{isSignal:!1,classPropertyName:o,bindingPropertyName:a+"Change"}}}var hy=[ve.PublicWritable,ve.PublicReadonly,ve.Protected],uh=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:hy},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:hy}];function d0(t,e,n){var a;if(t.value===null)return null;let r=bi(uh,t.value,e,n);if(r===null)return null;if(r.isRequired)throw new On(L.INITIALIZER_API_NO_REQUIRED_FUNCTION,r.call,'Output does not support ".required()".');Zl(r,t);let s=r.api.functionName==="output"?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?ch(s):null,o=t.name;return{call:r.call,metadata:{isSignal:!1,classPropertyName:o,bindingPropertyName:(a=i==null?void 0:i.alias)!=null?a:o}}}var m0=["viewChild","viewChildren","contentChild","contentChildren"],nc=m0.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected,ve.Private]})),g0=t=>t!=="contentChildren";function y0(t,e,n){if(t.value===null)return null;let r=bi(nc,t.value,e,n);if(r===null)return null;Zl(r,t);let{functionName:s}=r.api,i=s==="viewChild"||s==="contentChild",o=r.call.arguments[0];if(o===void 0)throw new On(L.VALUE_HAS_WRONG_TYPE,r.call,"No locator specified.");let a=r.call.arguments[1];if(a!==void 0&&!wn.default.isObjectLiteralExpression(a))throw new On(L.VALUE_HAS_WRONG_TYPE,a,"Argument needs to be an object literal.");let c=a&&zl(a),u=c!=null&&c.has("read")?Cy(c.get("read")):null,h=c!=null&&c.has("descendants")?S0(c.get("descendants")):g0(s);return{name:s,call:r.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:v0(o,e),first:i,read:u,descendants:h}}}function v0(t,e){let n=Y_(t,e);return n!==null&&(t=n),wn.default.isStringLiteralLike(t)?[t.text]:Is(new Gr.WrappedNodeExpr(t),n!==null?2:0)}function Cy(t){if(wn.default.isExpressionWithTypeArguments(t)||wn.default.isParenthesizedExpression(t)||wn.default.isAsExpression(t))return Cy(t.expression);if(wn.default.isPropertyAccessExpression(t)&&wn.default.isIdentifier(t.expression)||wn.default.isIdentifier(t))return new Gr.WrappedNodeExpr(t);throw new On(L.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function S0(t){if(t.kind===wn.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===wn.default.SyntaxKind.FalseKeyword)return!1;throw new On(L.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var Ny=["ViewChild","ViewChildren","ContentChild","ContentChildren"],N2=new Set(Ny);var ah;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error",t[t.CopySourceToTcb=2]="CopySourceToTcb"})(ah||(ah={}));var fy;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(fy||(fy={}));var lh;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone",t[t.Selectorless=2]="Selectorless"})(lh||(lh={}));var M2=class extends Gr.RecursiveAstVisitor{constructor(){super(...arguments);l(this,"allReads",new Set);l(this,"namespaceReads",new Set);l(this,"addAllTopLevelIdentifiers",e=>{ne.default.isIdentifier(e)&&this.isTopLevelIdentifierReference(e)?this.allReads.add(e):ne.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(ne.default.isParenthesizedExpression(r)&&r.expression===n)for(;r&&ne.default.isParenthesizedExpression(r);)n=r,r=r.parent;return ne.default.isSourceFile(r)?!0:ne.default.isCallExpression(r)?r.expression===n||r.arguments.includes(n):ne.default.isExpressionStatement(r)||ne.default.isPropertyAccessExpression(r)||ne.default.isComputedPropertyName(r)||ne.default.isTemplateSpan(r)||ne.default.isSpreadAssignment(r)||ne.default.isSpreadElement(r)||ne.default.isAwaitExpression(r)||ne.default.isNonNullExpression(r)||ne.default.isIfStatement(r)||ne.default.isDoStatement(r)||ne.default.isWhileStatement(r)||ne.default.isSwitchStatement(r)||ne.default.isCaseClause(r)||ne.default.isThrowStatement(r)||ne.default.isNewExpression(r)||ne.default.isExpressionWithTypeArguments(r)?r.expression===n:ne.default.isArrayLiteralExpression(r)?r.elements.includes(n):ne.default.isPropertyAssignment(r)||ne.default.isParameter(r)||ne.default.isBindingElement(r)||ne.default.isPropertyDeclaration(r)||ne.default.isEnumMember(r)?r.initializer===n:ne.default.isVariableDeclaration(r)?r.name===n||r.initializer===n:ne.default.isClassDeclaration(r)||ne.default.isFunctionDeclaration(r)||ne.default.isShorthandPropertyAssignment(r)?r.name===n:ne.default.isElementAccessExpression(r)?r.expression===n||r.argumentExpression===n:ne.default.isBinaryExpression(r)?r.left===n||r.right===n:ne.default.isForInStatement(r)||ne.default.isForOfStatement(r)?r.expression===n||r.initializer===n:ne.default.isForStatement(r)?r.condition===n||r.initializer===n||r.incrementor===n:ne.default.isArrowFunction(r)?r.body===n:ne.default.isImportSpecifier(r)||ne.default.isExportSpecifier(r)?(r.propertyName||r.name)===n:ne.default.isConditionalExpression(r)?r.condition===n||r.whenFalse===n||r.whenTrue===n:!1}isTypeScriptNode(e){return!!e&&typeof e.kind=="number"}};function M0(){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 V2=M0();var j2=new zt;function rc(t,e,n,r,s){let i=Yl.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:r}),Yl.default.setOriginalNode(t.createIdentifier(s),i))}function Iy(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(Yl.default.SyntaxKind.AnyKeyword))}var q0=(t,e,n,r,s,i,o,a)=>{var d,p;if((d=n.getDecoratorsOfDeclaration(t.node))!=null&&d.some(g=>ua(g,"Input",a)))return t.node;let c=h0(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(rc(r,i,o,e,"Input"),void 0,[Iy(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)},W0=(t,e,n,r,s,i,o,a)=>{var p,g;if((p=n.getDecoratorsOfDeclaration(t.node))!=null&&p.some(v=>ua(v,"Input",a)||ua(v,"Output",a)))return t.node;let c=f0(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=dy("Input",r.createAsExpression(u,r.createKeywordTypeNode(Ay.default.SyntaxKind.AnyKeyword)),o,r,e,i),d=dy("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 dy(t,e,n,r,s,i){let o=rc(r,i,n,s,t);return r.createDecorator(r.createCallExpression(o,void 0,[e]))}var j0=(t,e,n,r,s,i,o,a)=>{var h,d;if((h=n.getDecoratorsOfDeclaration(t.node))!=null&&h.some(p=>ua(p,"Output",a)))return t.node;let c=d0(t,n,s);if(c===null)return t.node;let u=r.createDecorator(r.createCallExpression(rc(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)},z0={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},K0=(t,e,n,r,s,i,o,a)=>{var g;let c=n.getDecoratorsOfDeclaration(t.node),u=c&&Ty(c,Ny,a);if(u!==null&&u.length>0)return t.node;let h=y0(t,n,s);if(h===null)return t.node;let d=h.call.arguments,p=r.createDecorator(r.createCallExpression(rc(r,i,o,e,z0[h.name]),void 0,[h.call.arguments[0],Iy(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)},X0=["Directive","Component"],Y0=[q0,j0,K0,W0];function Dy(t,e,n,r){return s=>i=>{let o=new nh;return i=zr.default.visitNode(i,Q0(s,t,o,e,n,r),zr.default.isSourceFile),o.transformTsFile(s,i)}}function Q0(t,e,n,r,s,i){let o=a=>{var c;if(zr.default.isClassDeclaration(a)&&a.name!==void 0){let u=zr.default.getOriginalNode(a,zr.default.isClassDeclaration),h=(c=e.getDecoratorsOfDeclaration(u))==null?void 0:c.find(d=>X0.some(p=>ua(d,p,s)));if(h!==void 0&&(i===void 0||i(a))){let d=!1,p=u.getSourceFile(),g=a.members.map(v=>{if(!zr.default.isPropertyDeclaration(v))return v;let E=Jp(v);if(E===null)return v;for(let I of Y0){let D=I(he(x({},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(a,a.modifiers,a.name,a.typeParameters,a.heritageClauses,g)}}return zr.default.visitEachChild(a,o,t)};return o}function sc(t,e=!1,n){let r=t.getTypeChecker(),s=new Qp(r),i=new Zp,o=Ey(r,s,[],e,!1,n),a=Dy(s,i,e,n);return c=>u=>(u=a(c)(u),u=o(c)(u),u)}var cM=N(require("typescript"),1),uM=N(require("typescript"),1),pM=N(require("typescript"),1),hM=N(require("typescript"),1),fM=N(require("typescript"),1),dM=N(require("typescript"),1),mM=N(require("typescript"),1),gM=N(require("typescript"),1),yM=N(require("typescript"),1),vM=N(require("typescript"),1),SM=N(require("typescript"),1),EM=N(require("typescript"),1),wM=N(require("typescript"),1),TM=N(require("typescript"),1);var xM=N(require("typescript"),1),CM=N(require("typescript"),1),NM=N(require("typescript"),1),IM=N(require("typescript"),1);var AM=N(require("typescript"),1);var Fh=N(require("typescript"),1);var $h=N(require("typescript"),1);var Bh=N(require("typescript"),1);var EO=N(require("typescript"),1);var TO=N(require("typescript"),1),xO=N(require("typescript"),1),CO=N(require("typescript"),1),NO=N(require("typescript"),1);var IO=N(require("typescript"),1),AO=N(SS(),1),DO=N(require("typescript"),1);var jU=(0,PS.createRequire)(O),Ph;(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"})(Ph||(Ph={}));var Lh;(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"})(Lh||(Lh={}));var Mh;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(Mh||(Mh={}));var Oh;(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"})(Oh||(Oh={}));var ES;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})(ES||(ES={}));var wS;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(wS||(wS={}));var TS;(function(t){t.Warning="warning",t.Error="error",t.Suppress="suppress"})(TS||(TS={}));var xS;(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"})(xS||(xS={}));var DM=".$ngresource$",ZU=DM+".ts";var bM=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function CS(t,e){let n=null;if("tcbLocation"in t?n=t.tcbLocation:"localVarLocation"in t&&(n=t.localVarLocation),n===null)return!1;let r=e.getTypeOfSymbol({tcbLocation:n});return r?(t.kind===tt.Expression||t.kind===tt.Variable||t.kind===tt.LetDeclaration)&&(r.symbol!==void 0&&NS(r.symbol)||r.aliasSymbol!==void 0&&NS(r.aliasSymbol)):!1}function NS(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let r=n.getSourceFile().fileName;return(Fh.default.isInterfaceDeclaration(n)||Fh.default.isTypeAliasDeclaration(n))&&bM.has(n.name.text)&&(r.includes("@angular/core")||r.includes("angular2/rc/packages/core")||r.includes("bin/packages/core"))})}var mt=class{run(t,e,n){return new kM(t,e,this).getDiagnostics(n)}},kM=class extends Vr{constructor(e,n,r){super();l(this,"ctx");l(this,"component");l(this,"check");l(this,"diagnostics",[]);this.ctx=e,this.component=n,this.check=r}visit(e){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,e)),super.visit(e)}visitTemplate(e){let n=e.tagName==="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}},_M=`https://${Ni.major!=="0"?`v${Ni.major}.`:""}angular.dev/extended-diagnostics`;function be(t,e){let n=`NG${Math.abs(t)}`,r=`${n}${e?": "+e:""}`,i=!r.match(/[.,;!?\n]$/)?".":"";return`${r}${i} Find more at ${_M}/${n}`}var RM=new Set(["set","update","asReadonly"]),PM=new Set(["name","length","prototype"]),LM=class extends mt{constructor(){super(...arguments);l(this,"code",L.INTERPOLATED_SIGNAL_NOT_INVOKED)}visitNode(e,n,r){if(r instanceof Zn)return r.expressions.map(s=>s instanceof kn?s.expression:s).filter(s=>s instanceof ge).flatMap(s=>yc(e,s,n));if(r instanceof It&&r.inputs.length>0){let s=e.templateTypeChecker.getDirectivesOfNode(n,r);return r.inputs.flatMap(i=>_h(e,n,s,i))}else if(r instanceof Te&&r.tagName==="ng-template"){let s=e.templateTypeChecker.getDirectivesOfNode(n,r),i=r.inputs.flatMap(a=>_h(e,n,s,a)),o=r.templateAttrs.flatMap(a=>a instanceof Sn?_h(e,n,s,a):[]);return i.concat(o)}else{if(r instanceof pi)return r.branches.map(s=>s.expression).filter(s=>s instanceof Se).map(s=>{let i=s.ast;return i instanceof kn?i.expression:i}).filter(s=>s instanceof ge).flatMap(s=>yc(e,s,n));if(r instanceof ui&&r.expression instanceof Se){let s=r.expression.ast instanceof kn?r.expression.ast.expression:r.expression.ast;if(s instanceof ge)return yc(e,s,n)}}return[]}};function _h(t,e,n,r){if(n!==null&&n.some(i=>i.inputs.getByBindingPropertyName(r.name)!==null))return[];let s=MM(r);return(r.type===J.Property||r.type===J.Class||r.type===J.Style||r.type===J.Attribute||r.type===J.Animation||r.type===J.LegacyAnimation)&&s?yc(t,s,e):[]}function MM(t){if(t.value instanceof Se){if(t.value.ast instanceof kn&&t.value.ast.expression instanceof ge)return t.value.ast.expression;if(t.value.ast instanceof ge)return t.value.ast}}function OM(t){return PM.has(t)}function FM(t){return RM.has(t)}function yc(t,e,n){let r=t.templateTypeChecker.getSymbolOfNode(e,n);if(r!==null&&r.kind===tt.Expression&&CS(r,t.templateTypeChecker)){let i=t.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation),o=be(L.INTERPOLATED_SIGNAL_NOT_INVOKED,`${e.name} is a function and should be invoked: ${e.name}()}`);return[t.makeTemplateDiagnostic(i.span,o)]}if(!OM(e.name)&&!FM(e.name))return[];if(!(e.receiver instanceof ge))return[];let s=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if(s!==null&&s.kind===tt.Expression&&CS(s,t.templateTypeChecker)){let i=t.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation),o=be(L.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 $M={code:L.INTERPOLATED_SIGNAL_NOT_INVOKED,name:Ge.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new LM},BM=class extends mt{constructor(){super(...arguments);l(this,"code",L.INVALID_BANANA_IN_BOX)}visitNode(e,n,r){if(!(r instanceof Rn))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,be(L.INVALID_BANANA_IN_BOX,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${o}'`))]}},UM={code:L.INVALID_BANANA_IN_BOX,name:Ge.INVALID_BANANA_IN_BOX,create:()=>new BM},IS=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"}]]),VM=class extends mt{constructor(){super(...arguments);l(this,"code",L.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 Te))return[];let s=r.templateAttrs.find(h=>IS.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,a=IS.get(s.name),c=be(L.MISSING_CONTROL_FLOW_DIRECTIVE,`The \`*${s.name}\` directive was used in the template, but neither the \`${a==null?void 0:a.directive}\` directive nor the \`CommonModule\` was imported. Use Angular's built-in control flow ${a==null?void 0:a.builtIn} or make sure that either the \`${a==null?void 0:a.directive}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`);return[e.makeTemplateDiagnostic(o,c)]}},GM={code:L.MISSING_CONTROL_FLOW_DIRECTIVE,name:Ge.MISSING_CONTROL_FLOW_DIRECTIVE,create:t=>new VM},HM=class extends mt{constructor(){super(...arguments);l(this,"code",L.MISSING_NGFOROF_LET)}visitNode(e,n,r){let s=r instanceof Te;if(!(r instanceof Te))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=be(L.MISSING_NGFOROF_LET,"Your ngFor is missing a value. Did you forget to add the `let` keyword?");return[e.makeTemplateDiagnostic(i.sourceSpan,o)]}},qM={code:L.MISSING_NGFOROF_LET,name:Ge.MISSING_NGFOROF_LET,create:()=>new HM},WM=new Set(["ngIf","ngFor","ngForOf","ngForTrackBy","ngSwitchCase","ngSwitchDefault","ngIfThen","ngIfElse"]),jM=class extends mt{constructor(){super(...arguments);l(this,"code",L.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 Te))return[];let s=r.templateAttrs.find(u=>!WM.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 a=s.keySpan||s.sourceSpan,c=be(L.MISSING_STRUCTURAL_DIRECTIVE,`A structural directive \`${s.name}\` was used in the template without a corresponding import in the component. Make sure that the directive is included in the \`@Component.imports\` array of this component.`);return[e.makeTemplateDiagnostic(a,c)]}},zM={code:L.MISSING_STRUCTURAL_DIRECTIVE,name:Ge.MISSING_STRUCTURAL_DIRECTIVE,create:()=>new jM},KM=class extends mt{constructor(){super(...arguments);l(this,"code",L.NULLISH_COALESCING_NOT_NULLABLE)}visitNode(e,n,r){if(!(r instanceof Ie)||r.operation!=="??")return[];let s=e.templateTypeChecker.getSymbolOfNode(r.left,n);if(s===null||s.kind!==tt.Expression)return[];let i=e.templateTypeChecker.getTypeOfSymbol(s);if(!i||i.flags&($h.default.TypeFlags.Any|$h.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==tt.Expression)return[];let a=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);return a===null?[]:[e.makeTemplateDiagnostic(a.span,be(L.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."))]}},XM={code:L.NULLISH_COALESCING_NOT_NULLABLE,name:Ge.NULLISH_COALESCING_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new KM:null},YM=class extends mt{constructor(e){super();l(this,"noUncheckedIndexedAccess");l(this,"code",L.OPTIONAL_CHAIN_NOT_NULLABLE);this.noUncheckedIndexedAccess=e}visitNode(e,n,r){if(!(r instanceof _n)&&!(r instanceof dt)&&!(r instanceof ds))return[];if(r.receiver instanceof jn&&!this.noUncheckedIndexedAccess)return[];let s=e.templateTypeChecker.getSymbolOfNode(r.receiver,n);if(s===null||s.kind!==tt.Expression)return[];let i=e.templateTypeChecker.getTypeOfSymbol(s);if(!i||i.flags&(Bh.default.TypeFlags.Any|Bh.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==tt.Expression)return[];let a=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);if(a===null)return[];let c=r instanceof dt?"the '?.' operator can be replaced with the '.' operator":"the '?.' operator can be safely removed";return[e.makeTemplateDiagnostic(a.span,be(L.OPTIONAL_CHAIN_NOT_NULLABLE,`The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore ${c}`))]}},QM={code:L.OPTIONAL_CHAIN_NOT_NULLABLE,name:Ge.OPTIONAL_CHAIN_NOT_NULLABLE,create:t=>{if(!(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks))return null;let n=!!t.noUncheckedIndexedAccess;return new YM(n)}},AS="ngSkipHydration",JM=class extends mt{constructor(){super(...arguments);l(this,"code",L.SKIP_HYDRATION_NOT_STATIC)}visitNode(e,n,r){if(r instanceof Sn&&r.name===AS){let i=be(L.SKIP_HYDRATION_NOT_STATIC,"ngSkipHydration should not be used as a binding");return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}let s=["true",""];if(r instanceof on&&r.name===AS&&!s.includes(r.value)&&r.value!==void 0){let i=be(L.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[]}},ZM={code:L.SKIP_HYDRATION_NOT_STATIC,name:Ge.SKIP_HYDRATION_NOT_STATIC,create:()=>new JM},DS=["px","%","em"],eO=class extends mt{constructor(){super(...arguments);l(this,"code",L.SUFFIX_NOT_SUPPORTED)}visitNode(e,n,r){return r instanceof Sn?!r.keySpan.toString().startsWith("attr.")||!DS.some(i=>r.name.endsWith(`.${i}`))?[]:[e.makeTemplateDiagnostic(r.keySpan,be(L.SUFFIX_NOT_SUPPORTED,`The ${DS.map(i=>`'.${i}'`).join(", ")} suffixes are only supported on style bindings`))]:[]}},tO={code:L.SUFFIX_NOT_SUPPORTED,name:Ge.SUFFIX_NOT_SUPPORTED,create:()=>new eO},nO=class extends mt{constructor(){super(...arguments);l(this,"code",L.TEXT_ATTRIBUTE_NOT_BINDING)}visitNode(e,n,r){if(!(r instanceof on))return[];let s=r.name;if(!s.startsWith("attr.")&&!s.startsWith("style.")&&!s.startsWith("class."))return[];let i;if(s.startsWith("attr.")){let a=s.replace("attr.","");i="Static attributes should be written without the 'attr.' prefix.",r.value&&(i+=` For example, ${a}="${r.value}".`)}else{let a=`[${s}]`,c=r.value==="true"||r.value==="false"?r.value:`'${r.value}'`;i="Attribute, style, and class bindings should be enclosed with square braces.",r.value&&(i+=` For example, '${a}="${c}"'.`),i=be(L.TEXT_ATTRIBUTE_NOT_BINDING,i)}return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}},rO={code:L.TEXT_ATTRIBUTE_NOT_BINDING,name:Ge.TEXT_ATTRIBUTE_NOT_BINDING,create:()=>new nO},sO=class extends mt{constructor(){super(...arguments);l(this,"code",L.UNINVOKED_FUNCTION_IN_EVENT_BINDING)}visitNode(e,n,r){if(!(r instanceof Rn))return[];if(r.type!==ze.Regular&&r.type!==ze.LegacyAnimation)return[];if(!(r.handler instanceof Se))return[];let s=r.handler.source||"";if(r.handler.ast instanceof Dr)return r.handler.ast.expressions.flatMap(i=>Rh(i,n,r,s,e));if(r.handler.ast instanceof si){let{trueExp:i,falseExp:o}=r.handler.ast;return[i,o].flatMap(a=>Rh(a,n,r,s,e))}return Rh(r.handler.ast,n,r,s,e)}};function Rh(t,e,n,r,s){var o;if(t instanceof vn||t instanceof _n)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 ge)&&!(t instanceof dt))return[];let i=s.templateTypeChecker.getSymbolOfNode(t,e);if(i!==null&&i.kind===tt.Expression){let a=s.templateTypeChecker.getTypeOfSymbol(i);if(a&&((o=a.getCallSignatures())==null?void 0:o.length)>0){let c=iO(t,r),u=be(L.UNINVOKED_FUNCTION_IN_EVENT_BINDING,`Function in event binding should be invoked: ${c}()`);return[s.makeTemplateDiagnostic(n.sourceSpan,u)]}}return[]}function iO(t,e){return e.substring(t.span.start,t.span.end)}var oO={code:L.UNINVOKED_FUNCTION_IN_EVENT_BINDING,name:Ge.UNINVOKED_FUNCTION_IN_EVENT_BINDING,create:()=>new sO},aO=class extends mt{constructor(){super(...arguments);l(this,"code",L.UNPARENTHESIZED_NULLISH_COALESCING)}visitNode(e,n,r){if(r instanceof Ie&&(r.operation==="&&"||r.operation==="||")&&(r.left instanceof Ie&&r.left.operation==="??"||r.right instanceof Ie&&r.right.operation==="??")){let s=e.templateTypeChecker.getSymbolOfNode(r,n);if((s==null?void 0:s.kind)!==tt.Expression)return[];let i=e.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation);return i===null?[]:[e.makeTemplateDiagnostic(i.span,be(L.UNPARENTHESIZED_NULLISH_COALESCING,"Parentheses are required to disambiguate precedence when mixing '??' with '&&' and '||'"))]}return[]}},lO={code:L.UNPARENTHESIZED_NULLISH_COALESCING,name:Ge.UNPARENTHESIZED_NULLISH_COALESCING,create:()=>new aO},cO=class extends mt{constructor(){super(...arguments);l(this,"code",L.UNUSED_LET_DECLARATION);l(this,"analysis",new Map)}run(e,n,r){super.run(e,n,r);let s=[],{allLetDeclarations:i,usedLetDeclarations:o}=this.getAnalysis(n);for(let a of i)o.has(a)||s.push(e.makeTemplateDiagnostic(a.sourceSpan,be(L.UNUSED_LET_DECLARATION,`@let ${a.name} is declared but its value is never read.`)));return this.analysis.clear(),s}visitNode(e,n,r){if(r instanceof er)this.getAnalysis(n).allLetDeclarations.add(r);else if(r instanceof ae){let s=r instanceof Se?r.ast:r,i=e.templateTypeChecker.getExpressionTarget(s,n);i!==null&&i instanceof er&&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)}},uO={code:L.UNUSED_LET_DECLARATION,name:Ge.UNUSED_LET_DECLARATION,create:()=>new cO},pO=class extends mt{constructor(){super(...arguments);l(this,"code",L.UNINVOKED_TRACK_FUNCTION)}visitNode(e,n,r){var i;if(!(r instanceof kr)||!r.trackBy)return[];if(r.trackBy.ast instanceof vn||r.trackBy.ast instanceof _n)return[];if(!(r.trackBy.ast instanceof ge)&&!(r.trackBy.ast instanceof dt))return[];let s=e.templateTypeChecker.getSymbolOfNode(r.trackBy.ast,n);if(s!==null&&s.kind===tt.Expression){let o=e.templateTypeChecker.getTypeOfSymbol(s);if(o&&((i=o.getCallSignatures())==null?void 0:i.length)>0){let a=hO(r.trackBy.ast,r.trackBy.source||""),c=be(L.UNINVOKED_TRACK_FUNCTION,`The track function in the @for block should be invoked: ${a}(/* arguments */)`);return[e.makeTemplateDiagnostic(r.sourceSpan,c)]}}return[]}};function hO(t,e){return e.substring(t.span.start,t.span.end)}var fO={code:L.UNINVOKED_TRACK_FUNCTION,name:Ge.UNINVOKED_TRACK_FUNCTION,create:()=>new pO},dO=class extends mt{constructor(){super(...arguments);l(this,"code",L.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION)}visitNode(e,n,r){return r instanceof Zn?r.expressions.flatMap(s=>mO(s,n,e)):[]}};function mO(t,e,n){var s;if(!(t instanceof ge)&&!(t instanceof dt))return[];let r=n.templateTypeChecker.getSymbolOfNode(t,e);if(r!==null&&r.kind===tt.Expression){let i=n.templateTypeChecker.getTypeOfSymbol(r);if(i&&((s=i.getCallSignatures())==null?void 0:s.length)>0){let o=be(L.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,`Function in text interpolation should be invoked: ${t.name}()`),a=n.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation);return[n.makeTemplateDiagnostic(a.span,o)]}}return[]}var gO={code:L.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,name:Ge.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,create:()=>new dO};function yO(t,e){let n=t===null||t.keys.length===0,r=e===null||e.keys.length===0;if(n&&r)return!0;if(n||r||t.keys.length!==e.keys.length)return!1;let s=new Map;for(let i=0;i<e.keys.length;i++){let o=e.keys[i];if(o.kind!=="property")continue;let a=e.values[i];s.set(o.key,a instanceof lt?a.value:null)}for(let i=0;i<t.keys.length;i++){let o=t.keys[i];if(o.kind!=="property")continue;let a=t.values[i],c=a instanceof lt?a.value:null;if(!s.has(o.key)||s.get(o.key)!==c)return!1}return!0}function bS(t){return t instanceof zn?t.delay:t.timeout}function kS(t){return t instanceof zn?`timer(${t.delay}ms)`:t.timeout===null?"idle":`idle(${t.timeout}ms)`}var vO=class extends mt{constructor(){super(...arguments);l(this,"code",L.DEFER_TRIGGER_MISCONFIGURATION)}visitNode(e,n,r){var h,d,p;if(!(r instanceof Kn))return[];let s=Object.keys(r.triggers),i=Object.keys(r.prefetchTriggers),o=s.map(g=>r.triggers[g]).filter(g=>g!=null),a=i.map(g=>r.prefetchTriggers[g]).filter(g=>g!=null),c=[];if(o.some(g=>g instanceof ci)&&(o.length>1&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,"The 'immediate' trigger makes additional triggers redundant."))),a.length>0&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,"Prefetch triggers have no effect because 'immediate' executes earlier.")))),o.length===0&&a.length>0&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,"Define a main trigger when using 'prefetch' triggers. Without an explicit main trigger, @defer defaults to 'idle' and prefetch may have no effect."))),o.length===1&&a.length>0){let g=o[0];for(let v of a){let E=g instanceof zn&&v instanceof zn,I=g instanceof li&&v instanceof li;if(E||I){let H=bS(g),X=bS(v),ie=H==null&&X==null,Re=H!=null&&X!=null&&X>=H;if(!ie&&!Re)continue;let we=`The Prefetch '${kS(v)}' is not scheduled before the main '${kS(g)}', so it won't run prior to rendering. Lower the prefetch timing or remove it.`;c.push(e.makeTemplateDiagnostic((h=v.sourceSpan)!=null?h:r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,we)));continue}let D=g instanceof ys&&v instanceof ys,k=g instanceof vs&&v instanceof vs,_=g instanceof br&&v instanceof br;if(D||k||_){let H=g.reference===v.reference,X=_?yO(g.options,v.options):!0;if(H&&X){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:r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,Re)))}continue}if(g.constructor===v.constructor&&!(g instanceof zn)){let X=`Prefetch '${g instanceof ci?"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,be(L.DEFER_TRIGGER_MISCONFIGURATION,X)))}}}return c}},SO={code:L.DEFER_TRIGGER_MISCONFIGURATION,name:Ge.DEFER_TRIGGER_MISCONFIGURATION,create:()=>new vO};var wO=[UM,XM,QM,GM,rO,qM,zM,tO,$M,oO,uO,ZM,lO,fO,gO,SO],v8=new Set([Ge.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,Ge.UNUSED_STANDALONE_IMPORTS,...wO.map(t=>t.name)]);var E8=[ec,tc,...uh,...nc];var w8=[ec,tc,...nc];var _S;(function(t){t[t.Fresh=0]="Fresh",t[t.IncrementalTypeScript=1]="IncrementalTypeScript",t[t.IncrementalResource=2]="IncrementalResource"})(_S||(_S={}));var OO=N(require("typescript"),1);var FO=N(require("typescript"),1);var MS=N(require("typescript"),1),$O=N(require("typescript"),1),BO=N(require("typescript"),1);var Y8=(0,LS.createRequire)(O);var Uh;(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"})(Uh||(Uh={}));var rV=MS.default.version;C();var OS=require("module");var aV=(0,OS.createRequire)(O),Vh;(function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(Vh||(Vh={}));var Gh="\x1B[0m",UO="\x1B[31m",VO="\x1B[33m",GO="\x1B[36m",lV=`${GO}Debug:${Gh}`,cV=`${VO}Warning:${Gh}`,uV=`${UO}Error:${Gh}`;C();var GS=require("module");C();var FS=require("module"),Ri=(0,FS.createRequire)(O),$S=(t=>typeof Ri!="undefined"?Ri:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof Ri!="undefined"?Ri:e)[n]}):t)(function(t){if(typeof Ri!="undefined")return Ri.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var gt=N(require("fs"),1),HS=require("module"),Bt=N(require("path"),1),qS=N(require("url"),1);var gV=(0,GS.createRequire)(O),HO=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(Bt.resolve(...t))}dirname(t){return this.normalize(Bt.dirname(t))}join(t,...e){return this.normalize(Bt.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return Bt.isAbsolute(t)}relative(t,e){return this.normalize(Bt.relative(t,e))}basename(t,e){return Bt.basename(t,e)}extname(t){return Bt.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},Hh=typeof __filename!="undefined",WS=Hh?null:O,US,VS,BS=Hh?__filename:(VS=(US=qS.fileURLToPath)==null?void 0:US(WS))!=null?VS:null,qO=class extends HO{constructor(){super(...arguments);l(this,"_caseSensitive")}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=BS!==null?!gt.default.existsSync(this.normalize(WO(BS))):!0),this._caseSensitive}exists(e){return gt.default.existsSync(e)}readFile(e){return gt.default.readFileSync(e,"utf8")}readFileBuffer(e){return gt.default.readFileSync(e)}readdir(e){return gt.default.readdirSync(e)}lstat(e){return gt.default.lstatSync(e)}stat(e){return gt.default.statSync(e)}realpath(e){return this.resolve(gt.default.realpathSync(e))}getDefaultLibLocation(){let e=Hh?$S:(0,HS.createRequire)(WS);return this.resolve(e.resolve("typescript"),"..")}},jS=class extends qO{writeFile(t,e,n=!1){gt.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){gt.default.unlinkSync(t)}symlink(t,e){gt.default.symlinkSync(t,e)}copyFile(t,e){gt.default.copyFileSync(t,e)}moveFile(t,e){gt.default.renameSync(t,e)}ensureDir(t){gt.default.mkdirSync(t,{recursive:!0})}removeDeep(t){gt.default.rmdirSync(t,{recursive:!0})}};function WO(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var JV=(0,zS.createRequire)(O),c3=new mo("22.0.0"),jO={ngDevMode:!1,ngI18nClosureMode:!1},u3=he(x({},jO),{ngJitMode:!1});jg(new jS);0&&(module.exports={angularJitApplicationTransform});
|
|
40
|
+
Please report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.`)}var la;(function(t){t[t.Directive=0]="Directive",t[t.Pipe=1]="Pipe",t[t.NgModule=2]="NgModule"})(la||(la={}));function gk(){let t=new Set,e=(r,s)=>t.has(`${r.fileName}@@${s}`),n=(r,s)=>t.add(`${r.fileName}@@${s}`);return(r,s)=>{let i=r;if(i.identifiers===void 0)throw new Error("Source file unexpectedly lacks map of parsed `identifiers`.");let o=u=>!i.identifiers.has(u)&&!e(i,u);if(o(s))return n(i,s),null;let a=null,c=1;do a=`${s}_${c++}`;while(!o(a));return n(i,a),Vp.default.factory.createUniqueName(a,Vp.default.GeneratedIdentifierFlags.Optimistic)}}function yk(t,e){return n=>{let{affectedFiles:r,newImports:s,updatedImports:i,reusedOriginalAliasDeclarations:o,deletedImports:a}=t.finalize();if(o.size>0){let u=th(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(!nr.default.isImportDeclaration(u))return u;if(a.has(u))return;if(u.importClause===void 0||!nr.default.isImportClause(u.importClause))return u;let h=u.importClause;if(h.namedBindings===void 0||!nr.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 nr.default.setOriginalNode(p,{importClause:d,kind:p.kind}),p};return u=>{var g,v;if(!r.has(u.fileName))return u;u=nr.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)vk(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 vk(t){return nr.default.isImportDeclaration(t)||nr.default.isImportEqualsDeclaration(t)||nr.default.isNamespaceImport(t)}function Sk(t,e){let n=uy(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,cy.default.factory.createIdentifier(e.exportSymbolName)]}function Zg(t,e,n){e.directReuseCache.set(uy(t),n),t.exportSymbolName===null&&!Array.isArray(n)&&e.namespaceImportReuseCache.set(t.exportModuleSpecifier,n)}function uy(t){return`${t.requestedFile.fileName}:${t.exportModuleSpecifier}:${t.exportSymbolName}${t.unsafeAliasOverride?":"+t.unsafeAliasOverride:""}`}function Ek(t,e,n){let r=null;for(let a=e.statements.length-1;a>=0;a--){let c=e.statements[a];if(!(!tr.default.isImportDeclaration(c)||!tr.default.isStringLiteral(c.moduleSpecifier)||!c.importClause||c.importClause.phaseModifier===tr.default.SyntaxKind.TypeKeyword||c.moduleSpecifier.text!==n.exportModuleSpecifier)&&c.importClause.namedBindings){let h=c.importClause.namedBindings;if(tr.default.isNamespaceImport(h))return t.reusedAliasDeclarations.add(h),n.exportSymbolName===null?h.name:[h.name,tr.default.factory.createIdentifier(n.exportSymbolName)];if(tr.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=tr.default.factory.createIdentifier(n.exportSymbolName),o=n.unsafeAliasOverride?tr.default.factory.createIdentifier(n.unsafeAliasOverride):t.generateUniqueIdentifier(e,n.exportSymbolName);return s.push({propertyName:i,fileUniqueAlias:o}),o!=null?o:i}var rh=class{constructor(t={}){l(this,"newImports",new Map);l(this,"removedImports",new Map);l(this,"nextUniqueIndex",0);l(this,"config");l(this,"reuseSourceFileImportsTracker");l(this,"reuseGeneratedImportsTracker",{directReuseCache:new Map,namespaceImportReuseCache:new Map});var e,n,r,s,i,o;this.config={shouldUseSingleQuotes:(e=t.shouldUseSingleQuotes)!=null?e:(()=>!1),rewriter:(n=t.rewriter)!=null?n:null,disableOriginalSourceFileReuse:(r=t.disableOriginalSourceFileReuse)!=null?r:!1,forceGenerateNamespacesForNewImports:(s=t.forceGenerateNamespacesForNewImports)!=null?s:!1,namespaceImportPrefix:(i=t.namespaceImportPrefix)!=null?i:"i",generateUniqueIdentifier:(o=t.generateUniqueIdentifier)!=null?o:gk()},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=Sk(this.reuseGeneratedImportsTracker,t);if(e!==null)return ey(!!t.asTypeReference,e);let n=this._generateNewImport(t);return Zg(t,this.reuseGeneratedImportsTracker,n),ey(!!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=Ek(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=Ce.default.factory.createNamespaceImport((h=this.config.generateUniqueIdentifier(e,d))!=null?h:Ce.default.factory.createIdentifier(d));return i.set(t.exportModuleSpecifier,p),Zg(he(x({},t),{exportSymbolName:null}),this.reuseGeneratedImportsTracker,p.name),t.exportSymbolName!==null?[p.name,Ce.default.factory.createIdentifier(t.exportSymbolName)]:p.name}s.has(t.exportModuleSpecifier)||s.set(t.exportModuleSpecifier,[]);let o=Ce.default.factory.createIdentifier(t.exportSymbolName),a=t.unsafeAliasOverride?null:this.config.generateUniqueIdentifier(e,t.exportSymbolName),c,u;return t.unsafeAliasOverride?(c=!0,u=Ce.default.factory.createIdentifier(t.unsafeAliasOverride)):a!==null?(c=!0,u=a):(c=!1,u=o),s.get(t.exportModuleSpecifier).push(Ce.default.factory.createImportSpecifier(!1,c?o:void 0,u)),u}finalize(){let t=new Set,e=new Map,n=new Map,r=new Set,s=new Map,i=(o,a)=>{t.add(o),n.has(o)?n.get(o).push(a):n.set(o,[a])};return this.reuseSourceFileImportsTracker.updatedImports.forEach((o,a)=>{let c=a.getSourceFile(),u=a.importClause.namedBindings,h=a.moduleSpecifier.text,d=u.elements.concat(o.map(({propertyName:p,fileUniqueAlias:g})=>Ce.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(a):e.set(u,Ce.default.factory.updateNamedImports(u,d))}),this.removedImports.forEach((o,a)=>{var u;if(o.size===0)return;let c=s.get(a);c||(c=a.statements.filter(Ce.default.isImportDeclaration),s.set(a,c));for(let h of c){if(!((u=h.importClause)!=null&&u.namedBindings)||!Ce.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(a,p,v));g.length===0?(t.add(a.fileName),r.add(h)):g.length!==d.elements.length&&(t.add(a.fileName),e.set(d,Ce.default.factory.updateNamedImports(d,g)))}}),this.newImports.forEach(({namedImports:o,namespaceImports:a,sideEffectImports:c},u)=>{let h=this.config.shouldUseSingleQuotes(u),d=u.fileName;c.forEach(p=>{i(d,Ce.default.factory.createImportDeclaration(void 0,void 0,Ce.default.factory.createStringLiteral(p)))}),a.forEach((p,g)=>{let v=Ce.default.factory.createImportDeclaration(void 0,Ce.default.factory.createImportClause(void 0,void 0,p),Ce.default.factory.createStringLiteral(g,h));Ce.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=Ce.default.factory.createImportDeclaration(void 0,Ce.default.factory.createImportClause(void 0,void 0,Ce.default.factory.createNamedImports(v)),Ce.default.factory.createStringLiteral(g,h));i(d,E)}})}),{affectedFiles:t,newImports:n,updatedImports:e,reusedOriginalAliasDeclarations:this.reuseSourceFileImportsTracker.reusedAliasDeclarations,deletedImports:r}}toTsTransform(t){return yk(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 ey(t,e){return t?Array.isArray(e)?Ce.default.factory.createQualifiedName(e[0],e[1]):e:Array.isArray(e)?Ce.default.factory.createPropertyAccessExpression(e[0],e[1]):e}var ty;(function(t){t.CLOSURE="* @pureOrBreakMyCode ",t.TERSER="@__PURE__"})(ty||(ty={}));var zF=`${Nl.DIAGNOSTIC}:ignore`;var Ai;(function(t){t[t.SingleFile=0]="SingleFile",t[t.WholeProgram=1]="WholeProgram"})(Ai||(Ai={}));var Gl;(function(t){t[t.Reference=0]="Reference",t[t.Variable=1]="Variable",t[t.LetDeclaration=2]="LetDeclaration"})(Gl||(Gl={}));var Hl;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone"})(Hl||(Hl={}));var ql;(function(t){t[t.Normal=0]="Normal",t[t.ForceDirect=1]="ForceDirect"})(ql||(ql={}));var nt;(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"})(nt||(nt={}));var XF=new zt;var e1=[m.InputSignalBrandWriteType],Gp;(function(t){t[t.MustInline=0]="MustInline",t[t.ShouldInlineForGenericBounds=1]="ShouldInlineForGenericBounds",t[t.None=2]="None"})(Gp||(Gp={}));var A=N(require("typescript"),1);var Fn=N(require("typescript"),1),t0=N(require("typescript"),1),n0=N(require("typescript"),1);var r0=N(require("typescript"),1);var s0=N(require("typescript"),1),i0=N(require("typescript"),1),o0=N(require("typescript"),1);var a0=N(require("typescript"),1);var l0=N(require("typescript"),1),c0=N(require("typescript"),1);var u0=N(require("typescript"),1);var p0=N(require("typescript"),1);var Kt=N(require("typescript"),1),ah=N(require("typescript"),1);var wn=N(require("typescript"),1),x0=N(require("typescript"),1),C0=N(require("typescript"),1);var N0=N(require("typescript"),1);var I0=N(require("typescript"),1),A0=N(require("typescript"),1);var D0=N(require("typescript"),1);var b0=N(require("typescript"),1),_0=N(require("typescript"),1);var k0=N(require("typescript"),1);var R0=N(require("typescript"),1),P0=N(require("typescript"),1);var ne=N(require("typescript"),1),L0=N(require("typescript"),1);var M0=N(require("typescript"),1);var O0=N(require("typescript"),1);var F0=N(require("typescript"),1);C();var py="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lk=new Uint8Array(64),Mk=new Uint8Array(128);for(let t=0;t<py.length;t++){let e=py.charCodeAt(t);Lk[t]=e,Mk[e]=t}var c1=1024*16;var B0=N(require("typescript"),1);var U0=N(require("typescript"),1);var V0=N(require("typescript"),1),G0=N(require("typescript"),1);var H0=N(require("typescript"),1);var q0=N(require("typescript"),1);var W0=N(require("typescript"),1);var j0=N(require("typescript"),1),zr=N(require("typescript"),1),Yl=N(require("typescript"),1),Dy=N(require("typescript"),1);var f2=(0,yy.createRequire)(O);function sh(t,e){return e||t.import!==null&&t.import.from==="@angular/core"}var vy="!Array<{type: !Function, args: (undefined|!Array<?>)}>";function Sy(t,e){let n=[],r=t.expression;switch(r.kind){case A.default.SyntaxKind.Identifier:n.push(A.default.factory.createPropertyAssignment("type",r));break;case A.default.SyntaxKind.CallExpression:let s=r;if(n.push(A.default.factory.createPropertyAssignment("type",s.expression)),s.arguments.length){let i=[];for(let a of s.arguments)i.push(a);let o=A.default.factory.createArrayLiteralExpression(A.default.factory.createNodeArray(i,!0));n.push(A.default.factory.createPropertyAssignment("args",o))}break;default:e.push({file:t.getSourceFile(),start:t.getStart(),length:t.getEnd()-t.getStart(),messageText:`${A.default.SyntaxKind[t.kind]} not implemented in gathering decorator metadata.`,category:A.default.DiagnosticCategory.Error,code:0});break}return A.default.factory.createObjectLiteralExpression(n)}function Kk(t,e,n,r){let s=[];for(let a of n){if(!a.type&&a.decorators.length===0){s.push(A.default.factory.createNull());continue}let c=a.type?Ey(e,a.type):void 0,u=[A.default.factory.createPropertyAssignment("type",c||A.default.factory.createIdentifier("undefined"))],h=[];for(let d of a.decorators)h.push(Sy(d,t));h.length&&u.push(A.default.factory.createPropertyAssignment("decorators",A.default.factory.createArrayLiteralExpression(h))),s.push(A.default.factory.createObjectLiteralExpression(u))}let i=A.default.factory.createArrowFunction(void 0,void 0,[],void 0,A.default.factory.createToken(A.default.SyntaxKind.EqualsGreaterThanToken),A.default.factory.createArrayLiteralExpression(s,!0)),o=A.default.factory.createPropertyDeclaration([A.default.factory.createToken(A.default.SyntaxKind.StaticKeyword)],"ctorParameters",void 0,void 0,i);return r&&A.default.setSyntheticLeadingComments(o,[{kind:A.default.SyntaxKind.MultiLineCommentTrivia,text:["*"," * @type {function(): !Array<(null|{"," * type: ?,",` * decorators: (undefined|${vy}),`," * })>}"," * @nocollapse"," "].join(`
|
|
41
|
+
`),pos:-1,end:-1,hasTrailingNewLine:!0}]),o}function Ey(t,e){let n=e.kind;switch(A.default.isLiteralTypeNode(e)&&(n=e.literal.kind),n){case A.default.SyntaxKind.FunctionType:case A.default.SyntaxKind.ConstructorType:return A.default.factory.createIdentifier("Function");case A.default.SyntaxKind.ArrayType:case A.default.SyntaxKind.TupleType:return A.default.factory.createIdentifier("Array");case A.default.SyntaxKind.TypePredicate:case A.default.SyntaxKind.TrueKeyword:case A.default.SyntaxKind.FalseKeyword:case A.default.SyntaxKind.BooleanKeyword:return A.default.factory.createIdentifier("Boolean");case A.default.SyntaxKind.StringLiteral:case A.default.SyntaxKind.StringKeyword:return A.default.factory.createIdentifier("String");case A.default.SyntaxKind.ObjectKeyword:return A.default.factory.createIdentifier("Object");case A.default.SyntaxKind.NumberKeyword:case A.default.SyntaxKind.NumericLiteral:return A.default.factory.createIdentifier("Number");case A.default.SyntaxKind.TypeReference:return t(e.typeName);case A.default.SyntaxKind.UnionType:let s=e.types.filter(i=>!(A.default.isLiteralTypeNode(i)&&i.literal.kind===A.default.SyntaxKind.NullKeyword));return s.length===1?Ey(t,s[0]):void 0;default:return}}function Xk(t,e){return e.flags&A.default.SymbolFlags.Alias&&(e=t.getAliasedSymbol(e)),(e.flags&A.default.SymbolFlags.Value&A.default.SymbolFlags.ConstEnumExcludes)!==0}function wy(t,e,n,r,s,i){function o(c,u){s&&A.default.setSyntheticLeadingComments(c,[{kind:A.default.SyntaxKind.MultiLineCommentTrivia,text:`* @type {${u}} `,pos:-1,end:-1,hasTrailingNewLine:!0}])}function a(c,u){let h=[];for(let[g,v]of u.entries())h.push(A.default.factory.createPropertyAssignment(g,A.default.factory.createArrayLiteralExpression(v.map(E=>Sy(E,c)))));let d=A.default.factory.createObjectLiteralExpression(h,!0),p=A.default.factory.createPropertyDeclaration([A.default.factory.createToken(A.default.SyntaxKind.StaticKeyword)],"propDecorators",void 0,void 0,d);return o(p,`!Object<string, ${vy}>`),p}return c=>{let u=th(c);function h(E){let I=t.getSymbolAtLocation(E);if(!I||!Xk(t,I)||!I.declarations||I.declarations.length===0)return;if(A.default.isQualifiedName(E)){let _=h(E.left);return _===void 0?void 0:A.default.factory.createPropertyAccessExpression(_,E.right)}let D=I.declarations[0];return nh(D)&&(u==null||u.add(D),D.name!==void 0)?A.default.setOriginalNode(A.default.factory.createIdentifier(D.name.text),D.name):A.default.setOriginalNode(A.default.factory.createIdentifier(E.text),E)}function d(E){E=A.default.visitEachChild(E,v,c);let I=[],D=[],_=e.getDecoratorsOfDeclaration(E)||[];for(let X of _){let ie=X.node;if(!sh(X,r)){I.push(ie);continue}D.push(ie)}if(!D.length)return[void 0,E,[]];if(!E.name||!A.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:A.default.DiagnosticCategory.Error,code:0}),[void 0,E,[]];let k=A.default.canHaveModifiers(E)?A.default.getModifiers(E):void 0,H;return(I.length||k!=null&&k.length)&&(H=A.default.setTextRange(A.default.factory.createNodeArray([...I,...k||[]]),E.modifiers)),[E.name.text,Yk(E,H),D]}function p(E){E=A.default.visitEachChild(E,v,c);let I=[],D=E.parameters,_=[];for(let H of D){let X=[],ie={decorators:[],type:null},Re=e.getDecoratorsOfDeclaration(H)||[];for(let rr of Re){let sr=rr.node;if(!sh(rr,r)){X.push(sr);continue}ie.decorators.push(sr)}H.type&&(ie.type=H.type),_.push(ie);let we,bt=A.default.getModifiers(H);(X.length||bt!=null&&bt.length)&&(we=[...X,...bt||[]]);let Xr=A.default.factory.updateParameterDeclaration(H,we,H.dotDotDotToken,H.name,H.questionToken,H.type,H.initializer);I.push(Xr)}return[A.default.factory.updateConstructorDeclaration(E,A.default.getModifiers(E),I,E.body),_]}function g(E){let I=[],D=new Map,_=null;for(let ie of E.members){switch(ie.kind){case A.default.SyntaxKind.PropertyDeclaration:case A.default.SyntaxKind.GetAccessor:case A.default.SyntaxKind.SetAccessor:case A.default.SyntaxKind.MethodDeclaration:{let[Re,we,bt]=d(ie);I.push(we),Re&&D.set(Re,bt);continue}case A.default.SyntaxKind.Constructor:{if(!ie.body)break;let[we,bt]=p(ie);_=bt,I.push(we);continue}default:break}I.push(A.default.visitEachChild(ie,v,c))}let H=(e.getDecoratorsOfDeclaration(E)||[]).some(ie=>sh(ie,r));_&&(H||_.some(ie=>!!ie.decorators.length))&&I.push(Kk(n,h,_,s)),D.size&&I.push(a(n,D));let X=A.default.setTextRange(A.default.factory.createNodeArray(I,E.members.hasTrailingComma),E.members);return A.default.factory.updateClassDeclaration(E,E.modifiers,E.name,E.typeParameters,E.heritageClauses,X)}function v(E){return A.default.isClassDeclaration(E)&&(i===void 0||i(E))?g(E):A.default.visitEachChild(E,v,c)}return E=>A.default.visitEachChild(E,v,c)}}function Yk(t,e){let n;if(A.default.isMethodDeclaration(t))n=A.default.factory.createMethodDeclaration(e,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);else if(A.default.isPropertyDeclaration(t))n=A.default.factory.createPropertyDeclaration(e,t.name,t.questionToken,t.type,t.initializer);else if(A.default.isGetAccessor(t))n=A.default.factory.createGetAccessorDeclaration(e,t.name,t.parameters,t.type,t.body);else if(A.default.isSetAccessor(t))n=A.default.factory.createSetAccessorDeclaration(e,t.name,t.parameters,t.body);else throw new Error(`Unsupported decorated member with kind ${A.default.SyntaxKind[t.kind]}`);return A.default.setOriginalNode(n,t)}var Qk="@angular/core";function Ty(t){return t.import!==null&&t.import.from===Qk}function ca(t,e,n){return n?t.name===e:Ty(t)?t.import.name===e:!1}function xy(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||Ty(r)})}function Cy(t){for(;Fn.default.isAsExpression(t)||Fn.default.isParenthesizedExpression(t);)t=t.expression;return t}function Jk(t){if(t=Cy(t),!Fn.default.isArrowFunction(t)&&!Fn.default.isFunctionExpression(t))return null;let e=t.body;if(Fn.default.isBlock(e)){if(e.statements.length!==1)return null;let n=e.statements[0];return!Fn.default.isReturnStatement(n)||n.expression===void 0?null:n.expression}else return e}function Zk(t,e){if(t=Cy(t),!Fn.default.isCallExpression(t)||t.arguments.length!==1)return null;let n=Fn.default.isPropertyAccessExpression(t.expression)?t.expression.name:t.expression;if(!Fn.default.isIdentifier(n))return null;let r=Jk(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 ih;(function(t){t[t.FULL=0]="FULL",t[t.PARTIAL=1]="PARTIAL",t[t.LOCAL=2]="LOCAL"})(ih||(ih={}));var oh;(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SHARED=1]="SHARED",t[t.WEAK=2]="WEAK"})(oh||(oh={}));var Di;(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"})(Di||(Di={}));var Kl;(function(t){t[t.InputDtsFile=0]="InputDtsFile",t[t.InputTsFile=1]="InputTsFile",t[t.AnalyzeComponent=2]="AnalyzeComponent",t[t.AnalyzeDirective=3]="AnalyzeDirective",t[t.AnalyzeInjectable=4]="AnalyzeInjectable",t[t.AnalyzeNgModule=5]="AnalyzeNgModule",t[t.AnalyzePipe=6]="AnalyzePipe",t[t.AnalyzeService=7]="AnalyzeService",t[t.TraitAnalyze=8]="TraitAnalyze",t[t.TraitReuseAnalysis=9]="TraitReuseAnalysis",t[t.SourceFilePhysicalChange=10]="SourceFilePhysicalChange",t[t.SourceFileLogicalChange=11]="SourceFileLogicalChange",t[t.SourceFileReuseAnalysis=12]="SourceFileReuseAnalysis",t[t.GenerateTcb=13]="GenerateTcb",t[t.SkipGenerateTcbNoInline=14]="SkipGenerateTcbNoInline",t[t.ReuseTypeCheckFile=15]="ReuseTypeCheckFile",t[t.UpdateTypeCheckProgram=16]="UpdateTypeCheckProgram",t[t.EmitSkipSourceFile=17]="EmitSkipSourceFile",t[t.EmitSourceFile=18]="EmitSourceFile",t[t.LAST=19]="LAST"})(Kl||(Kl={}));var Xl;(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"})(Xl||(Xl={}));var e0=class{eventCount(){}memory(){}phase(){return Di.Unaccounted}inPhase(t,e){return e()}reset(){}},y2=new e0;var hy;(function(t){t[t.Pending=0]="Pending",t[t.Analyzed=1]="Analyzed",t[t.Resolved=2]="Resolved",t[t.Skipped=3]="Skipped"})(hy||(hy={}));function Zl({api:t,call:e},n){if(!t.allowedAccessLevels.includes(n.accessLevel))throw new On(L.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY,e,Kp(`Cannot use "${t.functionName}" on a class member that is declared as ${Yp(n.accessLevel)}.`,[Kp("Update the class field to be either: "+t.allowedAccessLevels.map(r=>Yp(r)).join(", "))]))}function bi(t,e,n,r){if(Kt.default.isAsExpression(e)||Kt.default.isParenthesizedExpression(e))return bi(t,e.expression,n,r);if(!Kt.default.isCallExpression(e))return null;let s=h0(e,t,r)||f0(e,t,r)||d0(e,t,r);if(s===null)return null;let{api:i,apiReference:o,isRequired:a}=s,c=n.getImportOfIdentifier(o);return c===null||i.functionName!==c.name||i.owningModule!==c.from?null:{api:i,call:e,isRequired:a}}function h0(t,e,n){let r=t.expression;if(!Kt.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 f0(t,e,n){let r=t.expression;if(!Kt.default.isPropertyAccessExpression(r)||!Kt.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 d0(t,e,n){let r=t.expression;if(!Kt.default.isPropertyAccessExpression(r))return null;let s=null,i,o=!1;if(Kt.default.isIdentifier(r.expression)&&Kt.default.isIdentifier(r.name)){let a=r.expression;s=r.name,i=e.find(c=>r.name.text===c.functionName&&n.isPotentialReferenceToNamespaceImport(a,c.owningModule))}else if(Kt.default.isPropertyAccessExpression(r.expression)&&Kt.default.isIdentifier(r.expression.expression)&&Kt.default.isIdentifier(r.expression.name)&&r.name.text==="required"){let a=r.expression.name.text,c=r.expression.expression;s=r.expression.name,i=e.find(u=>u.functionName===a&&n.isPotentialReferenceToNamespaceImport(c,u.owningModule)),o=!0}return i===void 0||s===null?null:{api:i,apiReference:s,isRequired:o}}function uh(t){if(!ah.default.isObjectLiteralExpression(t))throw new On(L.VALUE_HAS_WRONG_TYPE,t,"Argument needs to be an object literal that is statically analyzable.");let e=zl(t),n;if(e.has("alias")){let r=e.get("alias");if(!ah.default.isStringLiteralLike(r))throw new On(L.VALUE_HAS_WRONG_TYPE,r,"Alias needs to be a string that is statically analyzable.");n=r.text}return{alias:n}}var ec={functionName:"input",owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected]};function m0(t,e,n){var a;if(t.value===null)return null;let r=bi([ec],t.value,e,n);if(r===null)return null;Zl(r,t);let s=r.isRequired?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?uh(s):null,o=t.name;return{isSignal:!0,classPropertyName:o,bindingPropertyName:(a=i==null?void 0:i.alias)!=null?a:o,required:r.isRequired,transform:null}}var tc={functionName:"model",owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected]};function g0(t,e,n){var c;if(t.value===null)return null;let r=bi([tc],t.value,e,n);if(r===null)return null;Zl(r,t);let s=r.isRequired?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?uh(s):null,o=t.name,a=(c=i==null?void 0:i.alias)!=null?c:o;return{call:r.call,input:{isSignal:!0,transform:null,classPropertyName:o,bindingPropertyName:a,required:r.isRequired},output:{isSignal:!1,classPropertyName:o,bindingPropertyName:a+"Change"}}}var fy=[ve.PublicWritable,ve.PublicReadonly,ve.Protected],ph=[{functionName:"output",owningModule:"@angular/core",allowedAccessLevels:fy},{functionName:"outputFromObservable",owningModule:"@angular/core/rxjs-interop",allowedAccessLevels:fy}];function y0(t,e,n){var a;if(t.value===null)return null;let r=bi(ph,t.value,e,n);if(r===null)return null;if(r.isRequired)throw new On(L.INITIALIZER_API_NO_REQUIRED_FUNCTION,r.call,'Output does not support ".required()".');Zl(r,t);let s=r.api.functionName==="output"?r.call.arguments[0]:r.call.arguments[1],i=s!==void 0?uh(s):null,o=t.name;return{call:r.call,metadata:{isSignal:!1,classPropertyName:o,bindingPropertyName:(a=i==null?void 0:i.alias)!=null?a:o}}}var v0=["viewChild","viewChildren","contentChild","contentChildren"],nc=v0.map(t=>({functionName:t,owningModule:"@angular/core",allowedAccessLevels:[ve.PublicWritable,ve.PublicReadonly,ve.Protected,ve.Private]})),S0=t=>t!=="contentChildren";function E0(t,e,n){if(t.value===null)return null;let r=bi(nc,t.value,e,n);if(r===null)return null;Zl(r,t);let{functionName:s}=r.api,i=s==="viewChild"||s==="contentChild",o=r.call.arguments[0];if(o===void 0)throw new On(L.VALUE_HAS_WRONG_TYPE,r.call,"No locator specified.");let a=r.call.arguments[1];if(a!==void 0&&!wn.default.isObjectLiteralExpression(a))throw new On(L.VALUE_HAS_WRONG_TYPE,a,"Argument needs to be an object literal.");let c=a&&zl(a),u=c!=null&&c.has("read")?Ny(c.get("read")):null,h=c!=null&&c.has("descendants")?T0(c.get("descendants")):S0(s);return{name:s,call:r.call,metadata:{isSignal:!0,propertyName:t.name,static:!1,emitDistinctChangesOnly:!0,predicate:w0(o,e),first:i,read:u,descendants:h}}}function w0(t,e){let n=Zk(t,e);return n!==null&&(t=n),wn.default.isStringLiteralLike(t)?[t.text]:Is(new Gr.WrappedNodeExpr(t),n!==null?2:0)}function Ny(t){if(wn.default.isExpressionWithTypeArguments(t)||wn.default.isParenthesizedExpression(t)||wn.default.isAsExpression(t))return Ny(t.expression);if(wn.default.isPropertyAccessExpression(t)&&wn.default.isIdentifier(t.expression)||wn.default.isIdentifier(t))return new Gr.WrappedNodeExpr(t);throw new On(L.VALUE_NOT_LITERAL,t,'Query "read" option expected a literal class reference.')}function T0(t){if(t.kind===wn.default.SyntaxKind.TrueKeyword)return!0;if(t.kind===wn.default.SyntaxKind.FalseKeyword)return!1;throw new On(L.VALUE_HAS_WRONG_TYPE,t,'Expected "descendants" option to be a boolean literal.')}var Iy=["ViewChild","ViewChildren","ContentChild","ContentChildren"],b2=new Set(Iy);var lh;(function(t){t[t.InlineOps=0]="InlineOps",t[t.Error=1]="Error",t[t.CopySourceToTcb=2]="CopySourceToTcb"})(lh||(lh={}));var dy;(function(t){t[t.Complete=0]="Complete",t[t.Incremental=1]="Incremental"})(dy||(dy={}));var ch;(function(t){t[t.NgModule=0]="NgModule",t[t.Standalone=1]="Standalone",t[t.Selectorless=2]="Selectorless"})(ch||(ch={}));var B2=class extends Gr.RecursiveAstVisitor{constructor(){super(...arguments);l(this,"allReads",new Set);l(this,"namespaceReads",new Set);l(this,"addAllTopLevelIdentifiers",e=>{ne.default.isIdentifier(e)&&this.isTopLevelIdentifierReference(e)?this.allReads.add(e):ne.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(ne.default.isParenthesizedExpression(r)&&r.expression===n)for(;r&&ne.default.isParenthesizedExpression(r);)n=r,r=r.parent;return ne.default.isSourceFile(r)?!0:ne.default.isCallExpression(r)?r.expression===n||r.arguments.includes(n):ne.default.isExpressionStatement(r)||ne.default.isPropertyAccessExpression(r)||ne.default.isComputedPropertyName(r)||ne.default.isTemplateSpan(r)||ne.default.isSpreadAssignment(r)||ne.default.isSpreadElement(r)||ne.default.isAwaitExpression(r)||ne.default.isNonNullExpression(r)||ne.default.isIfStatement(r)||ne.default.isDoStatement(r)||ne.default.isWhileStatement(r)||ne.default.isSwitchStatement(r)||ne.default.isCaseClause(r)||ne.default.isThrowStatement(r)||ne.default.isNewExpression(r)||ne.default.isExpressionWithTypeArguments(r)?r.expression===n:ne.default.isArrayLiteralExpression(r)?r.elements.includes(n):ne.default.isPropertyAssignment(r)||ne.default.isParameter(r)||ne.default.isBindingElement(r)||ne.default.isPropertyDeclaration(r)||ne.default.isEnumMember(r)?r.initializer===n:ne.default.isVariableDeclaration(r)?r.name===n||r.initializer===n:ne.default.isClassDeclaration(r)||ne.default.isFunctionDeclaration(r)||ne.default.isShorthandPropertyAssignment(r)?r.name===n:ne.default.isElementAccessExpression(r)?r.expression===n||r.argumentExpression===n:ne.default.isBinaryExpression(r)?r.left===n||r.right===n:ne.default.isForInStatement(r)||ne.default.isForOfStatement(r)?r.expression===n||r.initializer===n:ne.default.isForStatement(r)?r.condition===n||r.initializer===n||r.incrementor===n:ne.default.isArrowFunction(r)?r.body===n:ne.default.isImportSpecifier(r)||ne.default.isExportSpecifier(r)?(r.propertyName||r.name)===n:ne.default.isConditionalExpression(r)?r.condition===n||r.whenFalse===n||r.whenTrue===n:!1}isTypeScriptNode(e){return!!e&&typeof e.kind=="number"}};function $0(){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 W2=$0();var Y2=new zt;function rc(t,e,n,r,s){let i=Yl.default.isIdentifier(n.identifier)?n.identifier:n.identifier.expression;return t.createPropertyAccessExpression(e.addImport({exportModuleSpecifier:"@angular/core",exportSymbolName:null,requestedFile:r}),Yl.default.setOriginalNode(t.createIdentifier(s),i))}function Ay(t,e){return t.createAsExpression(e,t.createKeywordTypeNode(Yl.default.SyntaxKind.AnyKeyword))}var z0=(t,e,n,r,s,i,o,a)=>{var d,p;if((d=n.getDecoratorsOfDeclaration(t.node))!=null&&d.some(g=>ca(g,"Input",a)))return t.node;let c=m0(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(rc(r,i,o,e,"Input"),void 0,[Ay(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)},K0=(t,e,n,r,s,i,o,a)=>{var p,g;if((p=n.getDecoratorsOfDeclaration(t.node))!=null&&p.some(v=>ca(v,"Input",a)||ca(v,"Output",a)))return t.node;let c=g0(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=my("Input",r.createAsExpression(u,r.createKeywordTypeNode(Dy.default.SyntaxKind.AnyKeyword)),o,r,e,i),d=my("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 my(t,e,n,r,s,i){let o=rc(r,i,n,s,t);return r.createDecorator(r.createCallExpression(o,void 0,[e]))}var X0=(t,e,n,r,s,i,o,a)=>{var h,d;if((h=n.getDecoratorsOfDeclaration(t.node))!=null&&h.some(p=>ca(p,"Output",a)))return t.node;let c=y0(t,n,s);if(c===null)return t.node;let u=r.createDecorator(r.createCallExpression(rc(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)},Y0={viewChild:"ViewChild",viewChildren:"ViewChildren",contentChild:"ContentChild",contentChildren:"ContentChildren"},Q0=(t,e,n,r,s,i,o,a)=>{var g;let c=n.getDecoratorsOfDeclaration(t.node),u=c&&xy(c,Iy,a);if(u!==null&&u.length>0)return t.node;let h=E0(t,n,s);if(h===null)return t.node;let d=h.call.arguments,p=r.createDecorator(r.createCallExpression(rc(r,i,o,e,Y0[h.name]),void 0,[h.call.arguments[0],Ay(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)},J0=["Directive","Component"],Z0=[z0,X0,Q0,K0];function by(t,e,n,r){return s=>i=>{let o=new rh;return i=zr.default.visitNode(i,eR(s,t,o,e,n,r),zr.default.isSourceFile),o.transformTsFile(s,i)}}function eR(t,e,n,r,s,i){let o=a=>{var c;if(zr.default.isClassDeclaration(a)&&a.name!==void 0){let u=zr.default.getOriginalNode(a,zr.default.isClassDeclaration),h=(c=e.getDecoratorsOfDeclaration(u))==null?void 0:c.find(d=>J0.some(p=>ca(d,p,s)));if(h!==void 0&&(i===void 0||i(a))){let d=!1,p=u.getSourceFile(),g=a.members.map(v=>{if(!zr.default.isPropertyDeclaration(v))return v;let E=Zp(v);if(E===null)return v;for(let I of Z0){let D=I(he(x({},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(a,a.modifiers,a.name,a.typeParameters,a.heritageClauses,g)}}return zr.default.visitEachChild(a,o,t)};return o}function sc(t,e=!1,n){let r=t.getTypeChecker(),s=new Jp(r),i=new eh,o=wy(r,s,[],e,!1,n),a=by(s,i,e,n);return c=>u=>(u=a(c)(u),u=o(c)(u),u)}var fM=N(require("typescript"),1),dM=N(require("typescript"),1),mM=N(require("typescript"),1),gM=N(require("typescript"),1),yM=N(require("typescript"),1),vM=N(require("typescript"),1),SM=N(require("typescript"),1),EM=N(require("typescript"),1),wM=N(require("typescript"),1),TM=N(require("typescript"),1),xM=N(require("typescript"),1),CM=N(require("typescript"),1),NM=N(require("typescript"),1),IM=N(require("typescript"),1);var AM=N(require("typescript"),1),DM=N(require("typescript"),1),bM=N(require("typescript"),1),_M=N(require("typescript"),1);var kM=N(require("typescript"),1);var $h=N(require("typescript"),1);var Bh=N(require("typescript"),1);var Uh=N(require("typescript"),1);var CO=N(require("typescript"),1);var IO=N(require("typescript"),1),AO=N(require("typescript"),1),DO=N(require("typescript"),1),bO=N(require("typescript"),1);var _O=N(require("typescript"),1),kO=N(ES(),1),RO=N(require("typescript"),1);var YU=(0,LS.createRequire)(O),Lh;(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"})(Lh||(Lh={}));var Mh;(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"})(Mh||(Mh={}));var Oh;(function(t){t.Class="class",t.Member="member",t.Parameter="parameter"})(Oh||(Oh={}));var Fh;(function(t){t.Abstract="abstract",t.Static="static",t.Readonly="readonly",t.Protected="protected",t.Optional="optional",t.Input="input",t.Output="output",t.Inherited="override"})(Fh||(Fh={}));var wS;(function(t){t[t.Fresh=0]="Fresh",t[t.Delta=1]="Delta",t[t.Analyzed=2]="Analyzed"})(wS||(wS={}));var TS;(function(t){t[t.Analysis=0]="Analysis",t[t.TypeCheckAndEmit=1]="TypeCheckAndEmit"})(TS||(TS={}));var xS;(function(t){t.Warning="warning",t.Error="error",t.Suppress="suppress"})(xS||(xS={}));var CS;(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"})(CS||(CS={}));var RM=".$ngresource$",r8=RM+".ts";var PM=new Set(["WritableSignal","Signal","InputSignal","InputSignalWithTransform","ModelSignal"]);function NS(t,e){let n=null;if("tcbLocation"in t?n=t.tcbLocation:"localVarLocation"in t&&(n=t.localVarLocation),n===null)return!1;let r=e.getTypeOfSymbol({tcbLocation:n});return r?(t.kind===nt.Expression||t.kind===nt.Variable||t.kind===nt.LetDeclaration)&&(r.symbol!==void 0&&IS(r.symbol)||r.aliasSymbol!==void 0&&IS(r.aliasSymbol)):!1}function IS(t){let e=t.getDeclarations();return e!==void 0&&e.some(n=>{let r=n.getSourceFile().fileName;return($h.default.isInterfaceDeclaration(n)||$h.default.isTypeAliasDeclaration(n))&&PM.has(n.name.text)&&(r.includes("@angular/core")||r.includes("angular2/rc/packages/core")||r.includes("bin/packages/core"))})}var gt=class{run(t,e,n){return new LM(t,e,this).getDiagnostics(n)}},LM=class extends Vr{constructor(e,n,r){super();l(this,"ctx");l(this,"component");l(this,"check");l(this,"diagnostics",[]);this.ctx=e,this.component=n,this.check=r}visit(e){this.diagnostics.push(...this.check.visitNode(this.ctx,this.component,e)),super.visit(e)}visitTemplate(e){let n=e.tagName==="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}},MM=`https://${Ni.major!=="0"?`v${Ni.major}.`:""}angular.dev/extended-diagnostics`;function be(t,e){let n=`NG${Math.abs(t)}`,r=`${n}${e?": "+e:""}`,i=!r.match(/[.,;!?\n]$/)?".":"";return`${r}${i} Find more at ${MM}/${n}`}var OM=new Set(["set","update","asReadonly"]),FM=new Set(["name","length","prototype"]),$M=class extends gt{constructor(){super(...arguments);l(this,"code",L.INTERPOLATED_SIGNAL_NOT_INVOKED)}visitNode(e,n,r){if(r instanceof Zn)return r.expressions.map(s=>s instanceof _n?s.expression:s).filter(s=>s instanceof ge).flatMap(s=>yc(e,s,n));if(r instanceof At&&r.inputs.length>0){let s=e.templateTypeChecker.getDirectivesOfNode(n,r);return r.inputs.flatMap(i=>Rh(e,n,s,i))}else if(r instanceof Te&&r.tagName==="ng-template"){let s=e.templateTypeChecker.getDirectivesOfNode(n,r),i=r.inputs.flatMap(a=>Rh(e,n,s,a)),o=r.templateAttrs.flatMap(a=>a instanceof Sn?Rh(e,n,s,a):[]);return i.concat(o)}else{if(r instanceof pi)return r.branches.map(s=>s.expression).filter(s=>s instanceof Se).map(s=>{let i=s.ast;return i instanceof _n?i.expression:i}).filter(s=>s instanceof ge).flatMap(s=>yc(e,s,n));if(r instanceof ui&&r.expression instanceof Se){let s=r.expression.ast instanceof _n?r.expression.ast.expression:r.expression.ast;if(s instanceof ge)return yc(e,s,n)}}return[]}};function Rh(t,e,n,r){if(n!==null&&n.some(i=>i.inputs.getByBindingPropertyName(r.name)!==null))return[];let s=BM(r);return(r.type===J.Property||r.type===J.Class||r.type===J.Style||r.type===J.Attribute||r.type===J.Animation||r.type===J.LegacyAnimation)&&s?yc(t,s,e):[]}function BM(t){if(t.value instanceof Se){if(t.value.ast instanceof _n&&t.value.ast.expression instanceof ge)return t.value.ast.expression;if(t.value.ast instanceof ge)return t.value.ast}}function UM(t){return FM.has(t)}function VM(t){return OM.has(t)}function yc(t,e,n){let r=t.templateTypeChecker.getSymbolOfNode(e,n);if(r!==null&&r.kind===nt.Expression&&NS(r,t.templateTypeChecker)){let i=t.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation),o=be(L.INTERPOLATED_SIGNAL_NOT_INVOKED,`${e.name} is a function and should be invoked: ${e.name}()}`);return[t.makeTemplateDiagnostic(i.span,o)]}if(!UM(e.name)&&!VM(e.name))return[];if(!(e.receiver instanceof ge))return[];let s=t.templateTypeChecker.getSymbolOfNode(e.receiver,n);if(s!==null&&s.kind===nt.Expression&&NS(s,t.templateTypeChecker)){let i=t.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation),o=be(L.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 GM={code:L.INTERPOLATED_SIGNAL_NOT_INVOKED,name:Ge.INTERPOLATED_SIGNAL_NOT_INVOKED,create:()=>new $M},HM=class extends gt{constructor(){super(...arguments);l(this,"code",L.INVALID_BANANA_IN_BOX)}visitNode(e,n,r){if(!(r instanceof Rn))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,be(L.INVALID_BANANA_IN_BOX,`In the two-way binding syntax the parentheses should be inside the brackets, ex. '${o}'`))]}},qM={code:L.INVALID_BANANA_IN_BOX,name:Ge.INVALID_BANANA_IN_BOX,create:()=>new HM},AS=new Map([["ngIf",{directive:"NgIf",builtIn:"@if"}],["ngFor",{directive:"NgFor",builtIn:"@for"}],["ngSwitchCase",{directive:"NgSwitchCase",builtIn:"@switch with @case"}],["ngSwitchDefault",{directive:"NgSwitchDefault",builtIn:"@switch with @default"}]]),WM=class extends gt{constructor(){super(...arguments);l(this,"code",L.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 Te))return[];let s=r.templateAttrs.find(h=>AS.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,a=AS.get(s.name),c=be(L.MISSING_CONTROL_FLOW_DIRECTIVE,`The \`*${s.name}\` directive was used in the template, but neither the \`${a==null?void 0:a.directive}\` directive nor the \`CommonModule\` was imported. Use Angular's built-in control flow ${a==null?void 0:a.builtIn} or make sure that either the \`${a==null?void 0:a.directive}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`);return[e.makeTemplateDiagnostic(o,c)]}},jM={code:L.MISSING_CONTROL_FLOW_DIRECTIVE,name:Ge.MISSING_CONTROL_FLOW_DIRECTIVE,create:t=>new WM},zM=class extends gt{constructor(){super(...arguments);l(this,"code",L.MISSING_NGFOROF_LET)}visitNode(e,n,r){let s=r instanceof Te;if(!(r instanceof Te))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=be(L.MISSING_NGFOROF_LET,"Your ngFor is missing a value. Did you forget to add the `let` keyword?");return[e.makeTemplateDiagnostic(i.sourceSpan,o)]}},KM={code:L.MISSING_NGFOROF_LET,name:Ge.MISSING_NGFOROF_LET,create:()=>new zM},XM=new Set(["ngIf","ngFor","ngForOf","ngForTrackBy","ngSwitchCase","ngSwitchDefault","ngIfThen","ngIfElse"]),YM=class extends gt{constructor(){super(...arguments);l(this,"code",L.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 Te))return[];let s=r.templateAttrs.find(u=>!XM.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 a=s.keySpan||s.sourceSpan,c=be(L.MISSING_STRUCTURAL_DIRECTIVE,`A structural directive \`${s.name}\` was used in the template without a corresponding import in the component. Make sure that the directive is included in the \`@Component.imports\` array of this component.`);return[e.makeTemplateDiagnostic(a,c)]}},QM={code:L.MISSING_STRUCTURAL_DIRECTIVE,name:Ge.MISSING_STRUCTURAL_DIRECTIVE,create:()=>new YM},JM=class extends gt{constructor(){super(...arguments);l(this,"code",L.NULLISH_COALESCING_NOT_NULLABLE)}visitNode(e,n,r){if(!(r instanceof Ie)||r.operation!=="??")return[];let s=e.templateTypeChecker.getSymbolOfNode(r.left,n);if(s===null||s.kind!==nt.Expression)return[];let i=e.templateTypeChecker.getTypeOfSymbol(s);if(!i||i.flags&(Bh.default.TypeFlags.Any|Bh.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==nt.Expression)return[];let a=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);return a===null?[]:[e.makeTemplateDiagnostic(a.span,be(L.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."))]}},ZM={code:L.NULLISH_COALESCING_NOT_NULLABLE,name:Ge.NULLISH_COALESCING_NOT_NULLABLE,create:t=>(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks)?new JM:null},eO=class extends gt{constructor(e){super();l(this,"noUncheckedIndexedAccess");l(this,"code",L.OPTIONAL_CHAIN_NOT_NULLABLE);this.noUncheckedIndexedAccess=e}visitNode(e,n,r){if(!(r instanceof kn)&&!(r instanceof mt)&&!(r instanceof ds))return[];if(r.receiver instanceof jn&&!this.noUncheckedIndexedAccess)return[];let s=e.templateTypeChecker.getSymbolOfNode(r.receiver,n);if(s===null||s.kind!==nt.Expression)return[];let i=e.templateTypeChecker.getTypeOfSymbol(s);if(!i||i.flags&(Uh.default.TypeFlags.Any|Uh.default.TypeFlags.Unknown))return[];if(i.getNonNullableType()!==i)return[];let o=e.templateTypeChecker.getSymbolOfNode(r,n);if(o.kind!==nt.Expression)return[];let a=e.templateTypeChecker.getSourceMappingAtTcbLocation(o.tcbLocation);if(a===null)return[];let c=r instanceof mt?"the '?.' operator can be replaced with the '.' operator":"the '?.' operator can be safely removed";return[e.makeTemplateDiagnostic(a.span,be(L.OPTIONAL_CHAIN_NOT_NULLABLE,`The left side of this optional chain operation does not include 'null' or 'undefined' in its type, therefore ${c}`))]}},tO={code:L.OPTIONAL_CHAIN_NOT_NULLABLE,name:Ge.OPTIONAL_CHAIN_NOT_NULLABLE,create:t=>{if(!(t.strictNullChecks===void 0?!!t.strict:!!t.strictNullChecks))return null;let n=!!t.noUncheckedIndexedAccess;return new eO(n)}},DS="ngSkipHydration",nO=class extends gt{constructor(){super(...arguments);l(this,"code",L.SKIP_HYDRATION_NOT_STATIC)}visitNode(e,n,r){if(r instanceof Sn&&r.name===DS){let i=be(L.SKIP_HYDRATION_NOT_STATIC,"ngSkipHydration should not be used as a binding");return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}let s=["true",""];if(r instanceof on&&r.name===DS&&!s.includes(r.value)&&r.value!==void 0){let i=be(L.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[]}},rO={code:L.SKIP_HYDRATION_NOT_STATIC,name:Ge.SKIP_HYDRATION_NOT_STATIC,create:()=>new nO},bS=["px","%","em"],sO=class extends gt{constructor(){super(...arguments);l(this,"code",L.SUFFIX_NOT_SUPPORTED)}visitNode(e,n,r){return r instanceof Sn?!r.keySpan.toString().startsWith("attr.")||!bS.some(i=>r.name.endsWith(`.${i}`))?[]:[e.makeTemplateDiagnostic(r.keySpan,be(L.SUFFIX_NOT_SUPPORTED,`The ${bS.map(i=>`'.${i}'`).join(", ")} suffixes are only supported on style bindings`))]:[]}},iO={code:L.SUFFIX_NOT_SUPPORTED,name:Ge.SUFFIX_NOT_SUPPORTED,create:()=>new sO},oO=class extends gt{constructor(){super(...arguments);l(this,"code",L.TEXT_ATTRIBUTE_NOT_BINDING)}visitNode(e,n,r){if(!(r instanceof on))return[];let s=r.name;if(!s.startsWith("attr.")&&!s.startsWith("style.")&&!s.startsWith("class."))return[];let i;if(s.startsWith("attr.")){let a=s.replace("attr.","");i="Static attributes should be written without the 'attr.' prefix.",r.value&&(i+=` For example, ${a}="${r.value}".`)}else{let a=`[${s}]`,c=r.value==="true"||r.value==="false"?r.value:`'${r.value}'`;i="Attribute, style, and class bindings should be enclosed with square braces.",r.value&&(i+=` For example, '${a}="${c}"'.`),i=be(L.TEXT_ATTRIBUTE_NOT_BINDING,i)}return[e.makeTemplateDiagnostic(r.sourceSpan,i)]}},aO={code:L.TEXT_ATTRIBUTE_NOT_BINDING,name:Ge.TEXT_ATTRIBUTE_NOT_BINDING,create:()=>new oO},lO=class extends gt{constructor(){super(...arguments);l(this,"code",L.UNINVOKED_FUNCTION_IN_EVENT_BINDING)}visitNode(e,n,r){if(!(r instanceof Rn))return[];if(r.type!==ze.Regular&&r.type!==ze.LegacyAnimation)return[];if(!(r.handler instanceof Se))return[];let s=r.handler.source||"";if(r.handler.ast instanceof Dr)return r.handler.ast.expressions.flatMap(i=>Ph(i,n,r,s,e));if(r.handler.ast instanceof si){let{trueExp:i,falseExp:o}=r.handler.ast;return[i,o].flatMap(a=>Ph(a,n,r,s,e))}return Ph(r.handler.ast,n,r,s,e)}};function Ph(t,e,n,r,s){var o;if(t instanceof vn||t instanceof kn)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 ge)&&!(t instanceof mt))return[];let i=s.templateTypeChecker.getSymbolOfNode(t,e);if(i!==null&&i.kind===nt.Expression){let a=s.templateTypeChecker.getTypeOfSymbol(i);if(a&&((o=a.getCallSignatures())==null?void 0:o.length)>0){let c=cO(t,r),u=be(L.UNINVOKED_FUNCTION_IN_EVENT_BINDING,`Function in event binding should be invoked: ${c}()`);return[s.makeTemplateDiagnostic(n.sourceSpan,u)]}}return[]}function cO(t,e){return e.substring(t.span.start,t.span.end)}var uO={code:L.UNINVOKED_FUNCTION_IN_EVENT_BINDING,name:Ge.UNINVOKED_FUNCTION_IN_EVENT_BINDING,create:()=>new lO},pO=class extends gt{constructor(){super(...arguments);l(this,"code",L.UNPARENTHESIZED_NULLISH_COALESCING)}visitNode(e,n,r){if(r instanceof Ie&&(r.operation==="&&"||r.operation==="||")&&(r.left instanceof Ie&&r.left.operation==="??"||r.right instanceof Ie&&r.right.operation==="??")){let s=e.templateTypeChecker.getSymbolOfNode(r,n);if((s==null?void 0:s.kind)!==nt.Expression)return[];let i=e.templateTypeChecker.getSourceMappingAtTcbLocation(s.tcbLocation);return i===null?[]:[e.makeTemplateDiagnostic(i.span,be(L.UNPARENTHESIZED_NULLISH_COALESCING,"Parentheses are required to disambiguate precedence when mixing '??' with '&&' and '||'"))]}return[]}},hO={code:L.UNPARENTHESIZED_NULLISH_COALESCING,name:Ge.UNPARENTHESIZED_NULLISH_COALESCING,create:()=>new pO},fO=class extends gt{constructor(){super(...arguments);l(this,"code",L.UNUSED_LET_DECLARATION);l(this,"analysis",new Map)}run(e,n,r){super.run(e,n,r);let s=[],{allLetDeclarations:i,usedLetDeclarations:o}=this.getAnalysis(n);for(let a of i)o.has(a)||s.push(e.makeTemplateDiagnostic(a.sourceSpan,be(L.UNUSED_LET_DECLARATION,`@let ${a.name} is declared but its value is never read.`)));return this.analysis.clear(),s}visitNode(e,n,r){if(r instanceof er)this.getAnalysis(n).allLetDeclarations.add(r);else if(r instanceof ae){let s=r instanceof Se?r.ast:r,i=e.templateTypeChecker.getExpressionTarget(s,n);i!==null&&i instanceof er&&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)}},dO={code:L.UNUSED_LET_DECLARATION,name:Ge.UNUSED_LET_DECLARATION,create:()=>new fO},mO=class extends gt{constructor(){super(...arguments);l(this,"code",L.UNINVOKED_TRACK_FUNCTION)}visitNode(e,n,r){var i;if(!(r instanceof _r)||!r.trackBy)return[];if(r.trackBy.ast instanceof vn||r.trackBy.ast instanceof kn)return[];if(!(r.trackBy.ast instanceof ge)&&!(r.trackBy.ast instanceof mt))return[];let s=e.templateTypeChecker.getSymbolOfNode(r.trackBy.ast,n);if(s!==null&&s.kind===nt.Expression){let o=e.templateTypeChecker.getTypeOfSymbol(s);if(o&&((i=o.getCallSignatures())==null?void 0:i.length)>0){let a=gO(r.trackBy.ast,r.trackBy.source||""),c=be(L.UNINVOKED_TRACK_FUNCTION,`The track function in the @for block should be invoked: ${a}(/* arguments */)`);return[e.makeTemplateDiagnostic(r.sourceSpan,c)]}}return[]}};function gO(t,e){return e.substring(t.span.start,t.span.end)}var yO={code:L.UNINVOKED_TRACK_FUNCTION,name:Ge.UNINVOKED_TRACK_FUNCTION,create:()=>new mO},vO=class extends gt{constructor(){super(...arguments);l(this,"code",L.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION)}visitNode(e,n,r){return r instanceof Zn?r.expressions.flatMap(s=>SO(s,n,e)):[]}};function SO(t,e,n){var s;if(!(t instanceof ge)&&!(t instanceof mt))return[];let r=n.templateTypeChecker.getSymbolOfNode(t,e);if(r!==null&&r.kind===nt.Expression){let i=n.templateTypeChecker.getTypeOfSymbol(r);if(i&&((s=i.getCallSignatures())==null?void 0:s.length)>0){let o=be(L.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,`Function in text interpolation should be invoked: ${t.name}()`),a=n.templateTypeChecker.getSourceMappingAtTcbLocation(r.tcbLocation);return[n.makeTemplateDiagnostic(a.span,o)]}}return[]}var EO={code:L.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,name:Ge.UNINVOKED_FUNCTION_IN_TEXT_INTERPOLATION,create:()=>new vO};function wO(t,e){let n=t===null||t.keys.length===0,r=e===null||e.keys.length===0;if(n&&r)return!0;if(n||r||t.keys.length!==e.keys.length)return!1;let s=new Map;for(let i=0;i<e.keys.length;i++){let o=e.keys[i];if(o.kind!=="property")continue;let a=e.values[i];s.set(o.key,a instanceof ut?a.value:null)}for(let i=0;i<t.keys.length;i++){let o=t.keys[i];if(o.kind!=="property")continue;let a=t.values[i],c=a instanceof ut?a.value:null;if(!s.has(o.key)||s.get(o.key)!==c)return!1}return!0}function _S(t){return t instanceof zn?t.delay:t.timeout}function kS(t){return t instanceof zn?`timer(${t.delay}ms)`:t.timeout===null?"idle":`idle(${t.timeout}ms)`}var TO=class extends gt{constructor(){super(...arguments);l(this,"code",L.DEFER_TRIGGER_MISCONFIGURATION)}visitNode(e,n,r){var h,d,p;if(!(r instanceof Kn))return[];let s=Object.keys(r.triggers),i=Object.keys(r.prefetchTriggers),o=s.map(g=>r.triggers[g]).filter(g=>g!=null),a=i.map(g=>r.prefetchTriggers[g]).filter(g=>g!=null),c=[];if(o.some(g=>g instanceof ci)&&(o.length>1&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,"The 'immediate' trigger makes additional triggers redundant."))),a.length>0&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,"Prefetch triggers have no effect because 'immediate' executes earlier.")))),o.length===0&&a.length>0&&c.push(e.makeTemplateDiagnostic(r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,"Define a main trigger when using 'prefetch' triggers. Without an explicit main trigger, @defer defaults to 'idle' and prefetch may have no effect."))),o.length===1&&a.length>0){let g=o[0];for(let v of a){let E=g instanceof zn&&v instanceof zn,I=g instanceof li&&v instanceof li;if(E||I){let H=_S(g),X=_S(v),ie=H==null&&X==null,Re=H!=null&&X!=null&&X>=H;if(!ie&&!Re)continue;let we=`The Prefetch '${kS(v)}' is not scheduled before the main '${kS(g)}', so it won't run prior to rendering. Lower the prefetch timing or remove it.`;c.push(e.makeTemplateDiagnostic((h=v.sourceSpan)!=null?h:r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,we)));continue}let D=g instanceof ys&&v instanceof ys,_=g instanceof vs&&v instanceof vs,k=g instanceof br&&v instanceof br;if(D||_||k){let H=g.reference===v.reference,X=k?wO(g.options,v.options):!0;if(H&&X){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:r.sourceSpan,be(L.DEFER_TRIGGER_MISCONFIGURATION,Re)))}continue}if(g.constructor===v.constructor&&!(g instanceof zn)){let X=`Prefetch '${g instanceof ci?"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,be(L.DEFER_TRIGGER_MISCONFIGURATION,X)))}}}return c}},xO={code:L.DEFER_TRIGGER_MISCONFIGURATION,name:Ge.DEFER_TRIGGER_MISCONFIGURATION,create:()=>new TO};var NO=[qM,ZM,tO,jM,aO,KM,QM,iO,GM,uO,dO,rO,hO,yO,EO,xO],T8=new Set([Ge.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION,Ge.UNUSED_STANDALONE_IMPORTS,...NO.map(t=>t.name)]);var C8=[ec,tc,...ph,...nc];var N8=[ec,tc,...nc];var RS;(function(t){t[t.Fresh=0]="Fresh",t[t.IncrementalTypeScript=1]="IncrementalTypeScript",t[t.IncrementalResource=2]="IncrementalResource"})(RS||(RS={}));var UO=N(require("typescript"),1);var VO=N(require("typescript"),1);var OS=N(require("typescript"),1),GO=N(require("typescript"),1),HO=N(require("typescript"),1);var eV=(0,MS.createRequire)(O);var Vh;(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"})(Vh||(Vh={}));var aV=OS.default.version;C();var FS=require("module");var pV=(0,FS.createRequire)(O),Gh;(function(t){t[t.debug=0]="debug",t[t.info=1]="info",t[t.warn=2]="warn",t[t.error=3]="error"})(Gh||(Gh={}));var Hh="\x1B[0m",qO="\x1B[31m",WO="\x1B[33m",jO="\x1B[36m",hV=`${jO}Debug:${Hh}`,fV=`${WO}Warning:${Hh}`,dV=`${qO}Error:${Hh}`;C();var HS=require("module");C();var $S=require("module"),Ri=(0,$S.createRequire)(O),BS=(t=>typeof Ri!="undefined"?Ri:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof Ri!="undefined"?Ri:e)[n]}):t)(function(t){if(typeof Ri!="undefined")return Ri.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var yt=N(require("fs"),1),qS=require("module"),Bt=N(require("path"),1),WS=N(require("url"),1);var EV=(0,HS.createRequire)(O),zO=class{pwd(){return this.normalize(process.cwd())}chdir(t){process.chdir(t)}resolve(...t){return this.normalize(Bt.resolve(...t))}dirname(t){return this.normalize(Bt.dirname(t))}join(t,...e){return this.normalize(Bt.join(t,...e))}isRoot(t){return this.dirname(t)===this.normalize(t)}isRooted(t){return Bt.isAbsolute(t)}relative(t,e){return this.normalize(Bt.relative(t,e))}basename(t,e){return Bt.basename(t,e)}extname(t){return Bt.extname(t)}normalize(t){return t.replace(/\\/g,"/")}},qh=typeof __filename!="undefined",jS=qh?null:O,VS,GS,US=qh?__filename:(GS=(VS=WS.fileURLToPath)==null?void 0:VS(jS))!=null?GS:null,KO=class extends zO{constructor(){super(...arguments);l(this,"_caseSensitive")}isCaseSensitive(){return this._caseSensitive===void 0&&(this._caseSensitive=US!==null?!yt.default.existsSync(this.normalize(XO(US))):!0),this._caseSensitive}exists(e){return yt.default.existsSync(e)}readFile(e){return yt.default.readFileSync(e,"utf8")}readFileBuffer(e){return yt.default.readFileSync(e)}readdir(e){return yt.default.readdirSync(e)}lstat(e){return yt.default.lstatSync(e)}stat(e){return yt.default.statSync(e)}realpath(e){return this.resolve(yt.default.realpathSync(e))}getDefaultLibLocation(){let e=qh?BS:(0,qS.createRequire)(jS);return this.resolve(e.resolve("typescript"),"..")}},zS=class extends KO{writeFile(t,e,n=!1){yt.default.writeFileSync(t,e,n?{flag:"wx"}:void 0)}removeFile(t){yt.default.unlinkSync(t)}symlink(t,e){yt.default.symlinkSync(t,e)}copyFile(t,e){yt.default.copyFileSync(t,e)}moveFile(t,e){yt.default.renameSync(t,e)}ensureDir(t){yt.default.mkdirSync(t,{recursive:!0})}removeDeep(t){yt.default.rmdirSync(t,{recursive:!0})}};function XO(t){return t.replace(/\w/g,e=>e.toUpperCase()===e?e.toLowerCase():e.toUpperCase())}var n3=(0,KS.createRequire)(O),f3=new fo("22.0.1"),YO={ngDevMode:!1,ngI18nClosureMode:!1},d3=he(x({},YO),{ngJitMode:!1});zg(new zS);0&&(module.exports={angularJitApplicationTransform});
|
|
42
42
|
/*! Bundled license information:
|
|
43
43
|
|
|
44
44
|
@angular/compiler/fesm2022/compiler.mjs:
|
|
45
45
|
(**
|
|
46
|
-
* @license Angular v22.0.
|
|
46
|
+
* @license Angular v22.0.1
|
|
47
47
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
48
48
|
* License: MIT
|
|
49
49
|
*)
|