planx 20.84.0 → 20.84.1
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/agent.main.mjs +1 -1
- package/blob.main.mjs +2 -2
- package/config.main.mjs +2 -2
- package/domain.main.mjs +2 -2
- package/egress.main.mjs +2 -2
- package/explorer.main.mjs +1 -1
- package/filesystem.main.mjs +2 -2
- package/intelligence.main.mjs +1 -1
- package/log.main.mjs +1 -1
- package/nosturn.main.mjs +1 -1
- package/package.json +7 -7
- package/planx-networkd.main.mjs +1 -1
- package/presentation.main.mjs +1 -1
- package/session.main.mjs +1 -1
- package/transport.main.mjs +1 -1
package/config.main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
globalThis.__PLANX_SERVICE_VERSION__="20.84.
|
|
1
|
+
globalThis.__PLANX_SERVICE_VERSION__="20.84.1";
|
|
2
2
|
import { createRequire } from "module";
|
|
3
3
|
import _nodeUrl from "url";
|
|
4
4
|
import _nodePath from "path";
|
|
@@ -263,7 +263,7 @@ ${e.map(r=>`"${r.sourceSpan.toString()}"`).join(`
|
|
|
263
263
|
`.trim());if(t.some((r,n)=>e[n].constructor!==r.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var Cnt=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function Ont(t){return t.split(Cnt)[2]}var jge=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function qge(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),jge.has(t+"|"+e)||jge.has("*|"+e)}var Pnt=t=>(e,r)=>{let n=t.get(e)??e;return n instanceof Rd&&(r instanceof h_&&n.i18n instanceof no&&(r.previousMessage=n.i18n),n.i18n=r),r},e3=class{keepI18nAttrs;enableI18nLegacyMessageIdFormat;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(e=!1,r=!1,n=!0,i=!n){this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=r,this.preserveSignificantWhitespace=n,this.retainEmptyTokens=i}_generateI18nMessage(e,r="",n){let{meaning:i,description:o,customId:s}=this._parseMetadata(r),u=Tnt(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,i,o,s,n);return this._setMessageId(u,r),this._setLegacyIds(u,r),u}visitAllWithErrors(e){let r=e.map(n=>n.visit(this,null));return new ZM(r,this._errors)}visitElement(e){return this._visitElementLike(e),e}visitComponent(e,r){return this._visitElementLike(e),e}visitExpansion(e,r){let n,i=e.i18n;if(this.hasI18nMeta=!0,i instanceof h_){let o=i.name;n=this._generateI18nMessage([e],i);let s=Uye(n);s.name=o,r!==null&&(r.placeholderToMessage[o]=n)}else n=this._generateI18nMessage([e],r||i);return e.i18n=n,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,r){return Ir(this,e.children,r),e}visitBlockParameter(e,r){return e}visitLetDeclaration(e,r){return e}visitDirective(e,r){return e}_visitElementLike(e){let r;if(UJe(e)){this.hasI18nMeta=!0;let n=[],i={};for(let o of e.attrs)if(o.name===qye){let s=e.i18n||o.value,a=new Map,u=this.preserveSignificantWhitespace?e.children:Xc(new XM(!1,a),e.children);r=this._generateI18nMessage(u,s,Pnt(a)),r.nodes.length===0&&(r=void 0),e.i18n=r}else if(o.name.startsWith(SV)){let s=o.name.slice(SV.length),a;e instanceof Ji?a=e.tagName===null?!1:qge(e.tagName,s):a=qge(e.name,s),a||knt(s)?this._reportError(o,`Translating attribute '${s}' is disallowed for security reasons.`):i[s]=o.value}else n.push(o);if(Object.keys(i).length)for(let o of n){let s=i[o.name];s!==void 0&&o.value&&(o.i18n=this._generateI18nMessage([o],o.i18n||s))}this.keepI18nAttrs||(e.attrs=n)}Ir(this,e.children,r)}_parseMetadata(e){return typeof e=="string"?Mnt(e):e instanceof no?e:{}}_setMessageId(e,r){e.id||(e.id=r instanceof no&&r.id||HXe(e))}_setLegacyIds(e,r){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[VXe(e),Dye(e)];else if(typeof r!="string"){let n=r instanceof no?r:r instanceof h_?r.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,r){this._errors.push(new Pe(e.sourceSpan,r))}},Nnt="|",Dnt="@@";function Mnt(t=""){let e,r,n;if(t=t.trim(),t){let i=t.indexOf(Dnt),o=t.indexOf(Nnt),s;[s,e]=i>-1?[t.slice(0,i),t.slice(i+2)]:[t,""],[r,n]=o>-1?[s.slice(0,o),s.slice(o+1)]:["",s]}return{customId:e,meaning:r,description:n}}function Rnt(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}),oJe(e)}function knt(t){let e=t.toLowerCase();return e.length>2&&e!=="only"&&e.startsWith("on")}var Lnt="goog.getMsg";function $nt(t,e,r,n){let i=jnt(e),o=[C(i)];Object.keys(n).length&&(o.push(jV(PH(n,!0),!0)),o.push(jV({original_code:Ys(Object.keys(n).map(u=>({key:Yw(u),quoted:!0,value:e.placeholders[u]?C(e.placeholders[u].sourceSpan.toString()):C(e.placeholderToMessage[u].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let s=new Ln(r.name,pt(Lnt).callFn(o),Ra,Xn.Final);s.addLeadingComment(Rnt(e));let a=new fi(t.set(r));return[s,a]}var rH=class{formatPh(e){return`{$${Yw(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){return S0e(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(r=>r.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,r){return this.formatPh(e.name)}},Fnt=new rH;function jnt(t){return t.nodes.map(e=>e.visit(Fnt,null)).join("")}function qnt(t,e,r){let{messageParts:n,placeHolders:i}=Bnt(e),o=Unt(e),s=i.map(c=>r[c.text]),a=uJe(e,n,i,s,o),u=t.set(a);return[new fi(u)]}var nH=class{placeholderToMessage;pieces;constructor(e,r){this.placeholderToMessage=e,this.pieces=r}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Zg)this.pieces[this.pieces.length-1].text+=e.value;else{let r=new $e(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Zg(e.value,r))}}visitContainer(e){e.children.forEach(r=>r.visit(this))}visitIcu(e){this.pieces.push(new Zg(S0e(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEach(r=>r.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,r,n){return new Xb(Yw(e,!1),r,n)}};function Bnt(t){let e=[],r=new nH(t.placeholderToMessage,e);return t.nodes.forEach(n=>n.visit(r)),Vnt(e)}function Unt(t){let e=t.nodes[0],r=t.nodes[t.nodes.length-1];return new $e(e.sourceSpan.fullStart,r.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function Vnt(t){let e=[],r=[];t[0]instanceof Xb&&e.push(FU(t[0].sourceSpan.start));for(let n=0;n<t.length;n++){let i=t[n];i instanceof Zg?e.push(i):(r.push(i),t[n-1]instanceof Xb&&e.push(FU(t[n-1].sourceSpan.end)))}return t[t.length-1]instanceof Xb&&e.push(FU(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:r}}function FU(t){return new Zg("",new $e(t,t))}var Bge="ngI18nClosureMode",Hnt="i18n_",Gnt="I18N_EXP_",Uge="\uFFFD",Wnt="MSG_";function Vge(t){return`${Wnt}${t}`.toUpperCase()}function Knt(t){return new Ln(t.name,void 0,Ra,void 0,t.sourceSpan)}function znt(t){let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",r=new Map,n=new Map,i=new Map,o=new Map;for(let u of t.units)for(let c of u.ops())if(c.kind===v.ExtractedAttribute&&c.i18nContext!==null){let l=r.get(c.i18nContext)??[];l.push(c),r.set(c.i18nContext,l)}else if(c.kind===v.I18nAttributes)n.set(c.target,c);else if(c.kind===v.I18nExpression&&c.usage===hy.I18nAttribute){let l=i.get(c.target)??[];l.push(c),i.set(c.target,l)}else c.kind===v.I18nMessage&&o.set(c.xref,c);let s=new Map,a=new Map;for(let u of t.units)for(let c of u.create)if(c.kind===v.I18nMessage){if(c.messagePlaceholder===null){let{mainVar:l,statements:d}=P0e(t,e,o,c);if(c.i18nBlock!==null){let f=t.addConst(l,d);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...d),s.set(c.i18nContext,l);let f=r.get(c.i18nContext);if(f!==void 0)for(let p of f)p.expression=l.clone()}}L.remove(c)}for(let u of t.units)for(let c of u.create)if(Hp(c)){let l=n.get(c.xref);if(l===void 0)continue;let d=i.get(c.xref);if(d===void 0)throw new Error("AssertionError: Could not find any i18n expressions associated with an I18nAttributes instruction");let f=new Set;d=d.filter(m=>{let y=f.has(m.name);return f.add(m.name),!y});let p=d.flatMap(m=>{let y=s.get(m.context);if(y===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[C(m.name),y]});l.i18nAttributesConfig=t.addConst(new cl(p))}for(let u of t.units)for(let c of u.create)if(c.kind===v.I18nStart){let l=a.get(c.root);if(l===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");c.messageIndex=l}}function P0e(t,e,r,n){let i=[],o=new Map;for(let c of n.subMessages){let l=r.get(c),{mainVar:d,statements:f}=P0e(t,e,r,l);i.push(...f);let p=o.get(l.messagePlaceholder)??[];p.push(d),o.set(l.messagePlaceholder,p)}Qnt(n,o),n.params=new Map([...n.params.entries()].sort());let s=pt(t.pool.uniqueName(Hnt)),a=Xnt(t.pool,n.message.id,e,t.i18nUseExternalIds),u;if(n.needsPostprocessing||n.postprocessingParams.size>0){let c=Object.fromEntries([...n.postprocessingParams.entries()].sort()),l=PH(c,!1),d=[];n.postprocessingParams.size>0&&d.push(jV(l,!0)),u=f=>me(T.i18nPostprocess).callFn([f,...d])}return i.push(...Ynt(n.message,s,a,n.params,u)),{mainVar:s,statements:i}}function Qnt(t,e){for(let[r,n]of e)n.length===1?t.params.set(r,n[0]):(t.params.set(r,C(`${Uge}${Gnt}${r}${Uge}`)),t.postprocessingParams.set(r,or(n)))}function Ynt(t,e,r,n,i){let o=Object.fromEntries(n),s=[Knt(e),c3(Znt(),$nt(e,t,r,o),qnt(e,t,PH(o,!1)))];return i&&s.push(new fi(e.set(i(e)))),s}function Znt(){return zw(pt(Bge)).notIdentical(C("undefined",xH)).and(pt(Bge))}function Xnt(t,e,r,n){let i,o=r;if(n){let s=Vge("EXTERNAL_"),a=t.uniqueName(o);i=`${s}${Wg(e)}$$${a}`}else{let s=Vge(o);i=t.uniqueName(s)}return pt(i)}function Jnt(t){for(let e of t.units){let r=null,n=null,i=new Map,o=new Map,s=new Map;for(let a of e.create)switch(a.kind){case v.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");r=a;break;case v.I18nEnd:r=null;break;case v.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");n=a;break;case v.IcuEnd:n=null;break;case v.Text:if(r!==null)if(i.set(a.xref,r),o.set(a.xref,n),a.icuPlaceholder!==null){let u=Itt(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);L.replace(a,u),s.set(a.xref,u)}else L.remove(a);break}for(let a of e.update)switch(a.kind){case v.InterpolateText:if(!i.has(a.target))continue;let u=i.get(a.target),c=o.get(a.target),l=s.get(a.target),d=c?c.context:u.context,f=c?m_.Postproccessing:m_.Creation,p=[];for(let m=0;m<a.interpolation.expressions.length;m++){let y=a.interpolation.expressions[m];p.push(u0e(d,u.xref,u.xref,u.handle,y,l?.xref??null,a.interpolation.i18nPlaceholders[m]??null,f,hy.I18nText,"",y.sourceSpan??a.sourceSpan))}L.replaceWithMany(a,p),l!==void 0&&(l.strings=a.interpolation.strings);break}}}function eit(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case v.ElementStart:case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!Array.isArray(r.localRefs))throw new Error("AssertionError: expected localRefs to be an array still");if(r.numSlotsUsed+=r.localRefs.length,r.localRefs.length>0){let n=tit(r.localRefs);r.localRefs=t.addConst(n)}else r.localRefs=null;break}}function tit(t){let e=[];for(let r of t)e.push(C(r.name),C(r.target));return or(e)}function rit(t){for(let e of t.units){let r=pn.HTML;for(let n of e.create)n.kind===v.ElementStart&&n.namespace!==r&&(L.insertBefore(ytt(n.namespace),n),r=n.namespace)}}function nit(t){let e=[],r=0,n=0,i=0,o=0,s=0,a=null;for(;r<t.length;)switch(t.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&t.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&t.charCodeAt(r-1)!==92&&(i=0);break;case 58:!a&&n===0&&i===0&&(a=N0e(t.substring(s,r-1).trim()),o=r);break;case 59:if(a&&o>0&&n===0&&i===0){let c=t.substring(o,r-1).trim();e.push(a,c),s=r,o=0,a=null}break}if(a&&o){let u=t.slice(o).trim();e.push(a,u)}return e}function N0e(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function iit(t){let e=new Map;for(let r of t.units)for(let n of r.create)Hp(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.create)if(n.kind===v.ExtractedAttribute&&n.bindingKind===ve.Attribute&&c0e(n.expression)){let i=e.get(n.target);if(i!==void 0&&(i.kind===v.Template||i.kind===v.ConditionalCreate||i.kind===v.ConditionalBranchCreate)&&i.templateKind===io.Structural)continue;if(n.name==="style"){let o=nit(n.expression.value);for(let s=0;s<o.length-1;s+=2)L.insertBefore(Ks(n.target,ve.StyleProperty,null,o[s],C(o[s+1]),null,null,ft.STYLE),n);L.remove(n)}else if(n.name==="class"){let o=n.expression.value.trim().split(/\s+/g);for(let s of o)L.insertBefore(Ks(n.target,ve.ClassName,null,s,null,null,null,ft.NONE),n);L.remove(n)}}}function oit(t){qT(t.root,t.componentName,{index:0})}function qT(t,e,r){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(Wg(`${e}_${t.job.fnSuffix}`),!1));let n=new Map;for(let i of t.ops())switch(i.kind){case v.Property:case v.DomProperty:i.bindingKind===ve.LegacyAnimation&&(i.name="@"+i.name);break;case v.Animation:if(i.handlerFnName===null){let c=i.name.replace(".","");i.handlerFnName=`${t.fnName}_${c}_cb`,i.handlerFnName=Wg(i.handlerFnName)}break;case v.AnimationListener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o=i.name.replace(".","");i.hostListener?i.handlerFnName=`${e}_${o}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${o}_${i.targetSlot.slot}_listener`,i.handlerFnName=Wg(i.handlerFnName);break;case v.Listener:if(i.handlerFnName!==null)break;if(!i.hostListener&&i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let s="";i.isLegacyAnimationListener&&(i.name=`@${i.name}.${i.legacyAnimationPhase}`,s="animation"),i.hostListener?i.handlerFnName=`${e}_${s}${i.name}_HostBindingHandler`:i.handlerFnName=`${t.fnName}_${i.tag.replace("-","_")}_${s}${i.name}_${i.targetSlot.slot}_listener`,i.handlerFnName=Wg(i.handlerFnName);break;case v.TwoWayListener:if(i.handlerFnName!==null)break;if(i.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");i.handlerFnName=Wg(`${t.fnName}_${i.tag.replace("-","_")}_${i.name}_${i.targetSlot.slot}_listener`);break;case v.Variable:n.set(i.xref,sit(i.variable,r));break;case v.RepeaterCreate:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.emptyView!==null){let c=t.job.views.get(i.emptyView);qT(c,`${e}_${i.functionNameSuffix}Empty_${i.handle.slot+2}`,r)}qT(t.job.views.get(i.xref),`${e}_${i.functionNameSuffix}_${i.handle.slot+1}`,r);break;case v.Projection:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(i.handle.slot===null)throw new Error("Expected slot to be assigned");if(i.fallbackView!==null){let c=t.job.views.get(i.fallbackView);qT(c,`${e}_ProjectionFallback_${i.handle.slot}`,r)}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");let a=t.job.views.get(i.xref);if(i.handle.slot===null)throw new Error("Expected slot to be assigned");let u=i.functionNameSuffix.length===0?"":`_${i.functionNameSuffix}`;qT(a,`${e}${u}_${i.handle.slot}`,r);break;case v.StyleProp:i.name=Hge(ait(i.name));break;case v.ClassProp:i.name=Hge(i.name);break}for(let i of t.ops())hn(i,o=>{if(!(!(o instanceof Nd)||o.name!==null)){if(!n.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=n.get(o.xref)}})}function sit(t,e){if(t.name===null)switch(t.kind){case kn.Context:t.name=`ctx_r${e.index++}`;break;case kn.Identifier:let r=t.identifier===gs?"i":"";t.name=`${t.identifier}_${r}r${++e.index}`;break;default:t.name=`_r${++e.index}`;break}return t.name}function ait(t){return t.startsWith("--")?t:N0e(t)}function Hge(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function uit(t){for(let e of t.units){for(let r of e.functions)jU(r.ops);for(let r of e.create)(r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener)&&jU(r.handlerOps);jU(e.update)}}function jU(t){for(let e of t){if(e.kind!==v.Statement||!(e.statement instanceof fi)||!(e.statement.expr instanceof $M))continue;let r=e.statement.expr.steps,n=!0;for(let i=e.next;i.kind!==v.ListEnd&&n;i=i.next)hn(i,(o,s)=>{if(!pl(o))return o;if(n&&!(s&ot.InChildOperation))switch(o.kind){case we.NextContext:o.steps+=r,L.remove(e),n=!1;break;case we.GetCurrentView:case we.Reference:case we.ContextLetReference:n=!1;break}})}}var cit="ng-container";function lit(t){for(let e of t.units){let r=new Set;for(let n of e.create)n.kind===v.ElementStart&&n.tag===cit&&(n.kind=v.ContainerStart,r.add(n.xref)),n.kind===v.ElementEnd&&r.has(n.xref)&&(n.kind=v.ContainerEnd)}}function dit(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an element-like target.");return r}function fit(t){let e=new Map;for(let r of t.units)for(let n of r.create)Hp(n)&&e.set(n.xref,n);for(let r of t.units)for(let n of r.create)(n.kind===v.ElementStart||n.kind===v.ContainerStart)&&n.nonBindable&&L.insertAfter(ftt(n.xref),n),(n.kind===v.ElementEnd||n.kind===v.ContainerEnd)&&dit(e,n.xref).nonBindable&&L.insertBefore(ptt(n.xref),n)}function rl(t){return e=>e.kind===t}function WT(t,e){return r=>r.kind===t&&e===r.expression instanceof en}function pit(t){return t.kind===v.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===v.TwoWayListener||t.kind===v.Animation||t.kind===v.AnimationListener}function hit(t){return(t.kind===v.Property||t.kind===v.TwoWayProperty)&&!(t.expression instanceof en)}var mit=[{test:t=>t.kind===v.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:pit}],git=[{test:rl(v.StyleMap),transform:t3},{test:rl(v.ClassMap),transform:t3},{test:rl(v.StyleProp)},{test:rl(v.ClassProp)},{test:WT(v.Attribute,!0)},{test:WT(v.Property,!0)},{test:hit},{test:WT(v.Attribute,!1)},{test:rl(v.Control)}],yit=[{test:WT(v.DomProperty,!0)},{test:WT(v.DomProperty,!1)},{test:rl(v.Attribute)},{test:rl(v.StyleMap),transform:t3},{test:rl(v.ClassMap),transform:t3},{test:rl(v.StyleProp)},{test:rl(v.ClassProp)}],Gge=new Set([v.Listener,v.TwoWayListener,v.AnimationListener,v.StyleMap,v.ClassMap,v.StyleProp,v.ClassProp,v.Property,v.TwoWayProperty,v.DomProperty,v.Attribute,v.Animation,v.Control]);function vit(t){for(let e of t.units){Wge(e.create,mit);let r=e.job.kind===ue.Host?yit:git;Wge(e.update,r)}}function Wge(t,e){let r=[],n=null;for(let i of t){let o=Dw(i)?i.target:null;(!Gge.has(i.kind)||o!==n&&n!==null&&o!==null)&&(L.insertBefore(Kge(r,e),i),r=[],n=null),Gge.has(i.kind)&&(r.push(i),L.remove(i),n=o??n)}t.push(Kge(r,e))}function Kge(t,e){let r=Array.from(e,()=>new Array);for(let n of t){let i=e.findIndex(o=>o.test(n));r[i].push(n)}return r.flatMap((n,i)=>{let o=e[i].transform;return o?o(n):n})}function t3(t){return t.slice(t.length-1)}function bit(t){for(let e of t.units){let r=v0e(e);for(let n of e.ops())if(n.kind===v.Binding){let i=Eit(r,n.target);_it(n.name)&&i.kind===v.Projection&&L.remove(n)}}}function _it(t){return t.toLowerCase()==="select"}function Eit(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an slottable target.");return r}function Sit(t){for(let e of t.units)Tit(e)}function Tit(t){for(let e of t.update)hn(e,(r,n)=>{if(!pl(r)||r.kind!==we.PipeBinding)return;if(n&ot.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");wit(t,e.target,r)})}function wit(t,e,r){for(let n=t.create.head.next;n.kind!==v.ListEnd;n=n.next){if(!w_(n)||n.xref!==e)continue;for(;n.next.kind===v.Pipe;)n=n.next;let i=gtt(r.target,r.targetSlot,r.name);L.insertBefore(i,n.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${r.name}`)}function Iit(t){for(let e of t.units)for(let r of e.update)tn(r,n=>!(n instanceof yy)||n.args.length<=4?n:new Lw(n.target,n.targetSlot,n.name,or(n.args),n.args.length),ot.None)}function Ait(t){D0e(t.root,0)}function D0e(t,e){let r=null;for(let n of t.create)switch(n.kind){case v.I18nStart:n.subTemplateIndex=e===0?null:e,r=n;break;case v.I18nEnd:r.subTemplateIndex===null&&(e=0),r=null;break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:e=BD(t.job.views.get(n.xref),r,n.i18nPlaceholder,e);break;case v.RepeaterCreate:let i=t.job.views.get(n.xref);e=BD(i,r,n.i18nPlaceholder,e),n.emptyView!==null&&(e=BD(t.job.views.get(n.emptyView),r,n.emptyI18nPlaceholder,e));break;case v.Projection:n.fallbackView!==null&&(e=BD(t.job.views.get(n.fallbackView),r,n.fallbackViewI18nPlaceholder,e));break}return e}function BD(t,e,r,n){if(r!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");n++,xit(t,e)}return D0e(t,n)}function xit(t,e){if(t.create.head.next?.kind!==v.I18nStart){let r=t.job.allocateXrefId();L.insertAfter(p3(r,e.message,e.root,null),t.create.head),L.insertBefore(h3(r,null),t.create.tail)}}function Cit(t){for(let e of t.units)for(let r of e.ops())hn(r,n=>{if(!(n instanceof gy)||n.body===null)return;let i=new iH(n.args.length);n.fn=t.pool.getSharedConstant(i,n.body),n.body=null})}var iH=class extends rw{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Up?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,r){let n=[];for(let o=0;o<this.numArgs;o++)n.push(new An("a"+o,Oo));let i=pe(r,o=>o instanceof Up?pt("a"+o.index):o,ot.None);return new Ln(e,new _y(n,i),void 0,Xn.Final)}};function Oit(t){for(let e of t.units)for(let r of e.update)tn(r,(n,i)=>i&ot.InChildOperation?n:n instanceof cl?Pit(n):n instanceof $a?Nit(n):n,ot.None)}function Pit(t){let e=[],r=[];for(let n of t.entries){if(n instanceof sy){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new sy(new Up(i)))}continue}if(n.isConstant())e.push(n);else{let i=r.length;r.push(n),e.push(new Up(i))}}return new gy(or(e),r)}function Nit(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Rp){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Rp(new Up(i)))}continue}if(n.value.isConstant())e.push(n);else{let i=r.length;r.push(n.value),e.push(new o_(n.key,new Up(i),n.quoted))}}return new gy(new $a(e),r)}function Dit(t){for(let e of t.units)for(let r of e.ops())tn(r,n=>n instanceof i_&&(n.flags===null||!n.flags.includes("g"))?t.pool.getSharedConstant(new oH,n):n,ot.None)}var oH=class extends rw{toSharedConstantDeclaration(e,r){return new Ln(e,r,void 0,Xn.Final)}};function Mit(t,e,r,n,i){return Kp(T.element,t,e,r,n,i)}function Rit(t,e,r,n,i){return Kp(T.elementStart,t,e,r,n,i)}function Kp(t,e,r,n,i,o){let s=[C(e)];return r!==null&&s.push(C(r)),i!==null?s.push(C(n),C(i)):n!==null&&s.push(C(n)),Ke(t,s,o)}function M0e(t,e,r,n,i,o,s,a,u){let c=[C(e),r,C(n),C(i),C(o),C(s)];for(a!==null&&(c.push(C(a)),c.push(me(T.templateRefExtractor)));c[c.length-1].isEquivalent(s_);)c.pop();return Ke(t,c,u)}function qH(t,e,r,n,i){let o=[C(e)];return r instanceof en?o.push(I_(r,i)):o.push(r),n!==null&&o.push(n),Ke(t,o,i)}function kit(t){return Ke(T.elementEnd,[],t)}function Lit(t,e,r,n){return Kp(T.elementContainerStart,t,null,e,r,n)}function $it(t,e,r,n){return Kp(T.elementContainer,t,null,e,r,n)}function Fit(){return Ke(T.elementContainerEnd,[],null)}function jit(t,e,r,n,i,o,s,a){return M0e(T.templateCreate,t,e,r,n,i,o,s,a)}function qit(){return Ke(T.disableBindings,[],null)}function Bit(){return Ke(T.enableBindings,[],null)}function Uit(t,e,r,n,i){let o=[C(t),e];return r!==null&&o.push(me(r)),Ke(n?T.syntheticHostListener:T.listener,o,i)}function zge(t,e){return me(T.twoWayBindingSet).callFn([t,e])}function Vit(t,e,r){return Ke(T.twoWayListener,[C(t),e],r)}function Hit(t,e){return Ke(T.pipe,[C(t),C(e)],null)}function Git(){return Ke(T.namespaceHTML,[],null)}function Wit(){return Ke(T.namespaceSVG,[],null)}function Kit(){return Ke(T.namespaceMathML,[],null)}function zit(t,e){return Ke(T.advance,t>1?[C(t)]:[],e)}function Qit(t){return me(T.reference).callFn([C(t)])}function Yit(t){return me(T.nextContext).callFn(t===1?[]:[C(t)])}function Zit(){return me(T.getCurrentView).callFn([])}function Xit(t){return me(T.restoreView).callFn([t])}function Jit(t){return me(T.resetView).callFn([t])}function eot(t,e,r){let n=[C(t,null)];return e!==""&&n.push(C(e)),Ke(T.text,n,r)}function tot(t,e,r,n,i,o,s,a,u,c,l){let d=[C(t),C(e),r??C(null),C(n),C(i),C(o),s??C(null),a??C(null),u?me(T.deferEnableTimerScheduling):C(null),C(l)],f;for(;(f=d[d.length-1])!==null&&f instanceof di&&f.value===null;)d.pop();return Ke(T.defer,d,c)}var rot=new Map([[ir.Idle,{none:T.deferOnIdle,prefetch:T.deferPrefetchOnIdle,hydrate:T.deferHydrateOnIdle}],[ir.Immediate,{none:T.deferOnImmediate,prefetch:T.deferPrefetchOnImmediate,hydrate:T.deferHydrateOnImmediate}],[ir.Timer,{none:T.deferOnTimer,prefetch:T.deferPrefetchOnTimer,hydrate:T.deferHydrateOnTimer}],[ir.Hover,{none:T.deferOnHover,prefetch:T.deferPrefetchOnHover,hydrate:T.deferHydrateOnHover}],[ir.Interaction,{none:T.deferOnInteraction,prefetch:T.deferPrefetchOnInteraction,hydrate:T.deferHydrateOnInteraction}],[ir.Viewport,{none:T.deferOnViewport,prefetch:T.deferPrefetchOnViewport,hydrate:T.deferHydrateOnViewport}],[ir.Never,{none:T.deferHydrateNever,prefetch:T.deferHydrateNever,hydrate:T.deferHydrateNever}]]);function not(t,e,r,n){let i=rot.get(t)?.[r];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return Ke(i,e,n)}function iot(t){return Ke(T.projectionDef,t?[t]:[],null)}function oot(t,e,r,n,i,o,s){let a=[C(t)];return(e!==0||r!==null||n!==null)&&(a.push(C(e)),r!==null&&a.push(r),n!==null&&(r===null&&a.push(C(null)),a.push(pt(n),C(i),C(o)))),Ke(T.projection,a,s)}function sot(t,e,r,n){let i=[C(t),C(e)];return r!==null&&i.push(C(r)),Ke(T.i18nStart,i,n)}function aot(t,e,r,n,i,o,s,a){let u=[C(t),e,C(r),C(n),C(i),C(o)];for(s!==null&&(u.push(C(s)),u.push(me(T.templateRefExtractor)));u[u.length-1].isEquivalent(s_);)u.pop();return Ke(T.conditionalCreate,u,a)}function uot(t,e,r,n,i,o,s,a){let u=[C(t),e,C(r),C(n),C(i),C(o)];for(s!==null&&(u.push(C(s)),u.push(me(T.templateRefExtractor)));u[u.length-1].isEquivalent(s_);)u.pop();return Ke(T.conditionalBranchCreate,u,a)}function cot(t,e,r,n,i,o,s,a,u,c,l,d,f,p){let m=[C(t),pt(e),C(r),C(n),C(i),C(o),s];return(a||u!==null)&&(m.push(C(a)),u!==null&&(m.push(pt(u),C(c),C(l)),(d!==null||f!==null)&&m.push(C(d)),f!==null&&m.push(C(f)))),Ke(T.repeaterCreate,m,p)}function lot(t,e){return Ke(T.repeater,[t],e)}function dot(t,e,r){return t==="prefetch"?Ke(T.deferPrefetchWhen,[e],r):t==="hydrate"?Ke(T.deferHydrateWhen,[e],r):Ke(T.deferWhen,[e],r)}function fot(t,e){return Ke(T.declareLet,[C(t)],e)}function pot(t,e){return me(T.storeLet).callFn([t],e)}function hot(t){return me(T.readContextLet).callFn([C(t)])}function mot(t,e,r,n){let i=[C(t),C(e)];return r&&i.push(C(r)),Ke(T.i18n,i,n)}function got(t){return Ke(T.i18nEnd,[],t)}function yot(t,e){let r=[C(t),C(e)];return Ke(T.i18nAttributes,r,null)}function vot(t,e,r){return qH(T.ariaProperty,t,e,null,r)}function bot(t,e,r,n){return qH(T.property,t,e,r,n)}function _ot(t){return Ke(T.control,[],t)}function Eot(t){return Ke(T.controlCreate,[],t)}function Sot(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(r),Ke(T.twoWayProperty,i,n)}function Tot(t,e,r,n,i){let o=[C(t)];return e instanceof en?o.push(I_(e,i)):o.push(e),(r!==null||n!==null)&&o.push(r??C(null)),n!==null&&o.push(C(n)),Ke(T.attribute,o,null)}function wot(t,e,r,n){let i=[C(t)];return e instanceof en?i.push(I_(e,n)):i.push(e),r!==null&&i.push(C(r)),Ke(T.styleProp,i,n)}function Iot(t,e,r){return Ke(T.classProp,[C(t),e],r)}function Aot(t,e){let r=t instanceof en?I_(t,e):t;return Ke(T.styleMap,[r],e)}function xot(t,e){let r=t instanceof en?I_(t,e):t;return Ke(T.classMap,[r],e)}function Cot(t,e,r,n,i){return Kp(T.domElement,t,e,r,n,i)}function Oot(t,e,r,n,i){return Kp(T.domElementStart,t,e,r,n,i)}function Pot(t){return Ke(T.domElementEnd,[],t)}function Not(t,e,r,n){return Kp(T.domElementContainerStart,t,null,e,r,n)}function Dot(t,e,r,n){return Kp(T.domElementContainer,t,null,e,r,n)}function Mot(){return Ke(T.domElementContainerEnd,[],null)}function Rot(t,e,r,n){let i=[C(t),e];return r!==null&&i.push(me(r)),Ke(T.domListener,i,n)}function kot(t,e,r,n,i,o,s,a){return M0e(T.domTemplate,t,e,r,n,i,o,s,a)}var Qge=[T.pipeBind1,T.pipeBind2,T.pipeBind3,T.pipeBind4];function Lot(t,e,r){if(r.length<1||r.length>Qge.length)throw new Error("pipeBind() argument count out of bounds");let n=Qge[r.length-1];return me(n).callFn([C(t),C(e),...r])}function $ot(t,e,r){return me(T.pipeBindV).callFn([C(t),C(e),r])}function Fot(t,e,r){let n=R0e(t,e);return Jot(Yot,[],n,r)}function jot(t,e){return Ke(T.i18nExp,[t],e)}function qot(t,e){return Ke(T.i18nApply,[C(t)],e)}function Bot(t,e,r,n){return qH(T.domProperty,t,e,r,n)}function Uot(t,e,r,n){let i=[e];r!==null&&i.push(r);let o=t==="enter"?T.animationEnter:T.animationLeave;return Ke(o,i,n)}function Vot(t,e,r,n){let o=[e instanceof en?I_(e,n):e];r!==null&&o.push(r);let s=t==="enter"?T.animationEnter:T.animationLeave;return Ke(s,o,n)}function Hot(t,e,r,n){let i=[e],o=t==="enter"?T.animationEnterListener:T.animationLeaveListener;return Ke(o,i,n)}function Got(t,e,r){return Ke(T.syntheticHostProperty,[C(t),e],r)}function Wot(t,e,r){return BH(Xot,[C(t),e],r,null)}function Kot(t,e){return Ke(T.attachSourceLocations,[C(t),e],null)}function zot(t,e,r){return me(T.arrowFunction).callFn([C(t),e,r])}function R0e(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 r=[];if(e.length===1&&t[0]===""&&t[1]==="")r.push(e[0]);else{let n;for(n=0;n<e.length;n++)r.push(C(t[n]),e[n]);r.push(C(t[n]))}return r}function I_(t,e){let r=R0e(t.strings,t.expressions);return BH(Zot,[],r,e)}function Ke(t,e,r){let n=me(t).callFn(e,r);return ys(new fi(n,r))}function Qot(t,e,r){let n=[t];return e!==null&&n.push(e),Ke(T.conditional,n,r)}var Yot={constant:[T.textInterpolate,T.textInterpolate1,T.textInterpolate2,T.textInterpolate3,T.textInterpolate4,T.textInterpolate5,T.textInterpolate6,T.textInterpolate7,T.textInterpolate8],variable:T.textInterpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},Zot={constant:[T.interpolate,T.interpolate1,T.interpolate2,T.interpolate3,T.interpolate4,T.interpolate5,T.interpolate6,T.interpolate7,T.interpolate8],variable:T.interpolateV,mapping:t=>{if(t%2===0)throw new Error("Expected odd number of arguments");return(t-1)/2}},Xot={constant:[T.pureFunction0,T.pureFunction1,T.pureFunction2,T.pureFunction3,T.pureFunction4,T.pureFunction5,T.pureFunction6,T.pureFunction7,T.pureFunction8],variable:T.pureFunctionV,mapping:t=>t};function BH(t,e,r,n){let i=t.mapping(r.length),o=r.at(-1);if(r.length>1&&o instanceof di&&o.value===""&&r.pop(),i<t.constant.length)return me(t.constant[i]).callFn([...e,...r],n);if(t.variable!==null)return me(t.variable).callFn([...e,or(r)],n);throw new Error("AssertionError: unable to call variadic function")}function Jot(t,e,r,n){return ys(BH(t,e,r,n).toStmt())}var est=new Map([["window",T.resolveWindow],["document",T.resolveDocument],["body",T.resolveBody]]),tst=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function rst(t){for(let e of t.units)nst(e,e.create),y3(e,e.update)}function nst(t,e){for(let r of e)switch(tn(r,n=>k0e(t,n),ot.None),r.kind){case v.Text:L.replace(r,eot(r.handle.slot,r.initialValue,r.sourceSpan));break;case v.ElementStart:L.replace(r,t.job.mode===eo.DomOnly?Oot(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan):Rit(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Element:L.replace(r,t.job.mode===eo.DomOnly?Cot(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan):Mit(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ElementEnd:L.replace(r,t.job.mode===eo.DomOnly?Pot(r.sourceSpan):kit(r.sourceSpan));break;case v.ContainerStart:L.replace(r,t.job.mode===eo.DomOnly?Not(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan):Lit(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Container:L.replace(r,t.job.mode===eo.DomOnly?Dot(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan):$it(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ContainerEnd:L.replace(r,t.job.mode===eo.DomOnly?Mot():Fit());break;case v.I18nStart:L.replace(r,sot(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nEnd:L.replace(r,got(r.sourceSpan));break;case v.I18n:L.replace(r,mot(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nAttributes:if(r.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");L.replace(r,yot(r.handle.slot,r.i18nAttributesConfig));break;case v.Template:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let n=t.job.views.get(r.xref);L.replace(r,r.templateKind===io.Block||t.job.mode===eo.DomOnly?kot(r.handle.slot,pt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan):jit(r.handle.slot,pt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.DisableBindings:L.replace(r,qit());break;case v.EnableBindings:L.replace(r,Bit());break;case v.Pipe:L.replace(r,Hit(r.handle.slot,r.name));break;case v.DeclareLet:L.replace(r,fot(r.handle.slot,r.sourceSpan));break;case v.AnimationString:L.replace(r,Vot(r.animationKind,r.expression,r.sanitizer,r.sourceSpan));break;case v.Animation:let i=UD(t,r.handlerFnName,r.handlerOps,!1);L.replace(r,Uot(r.animationKind,i,r.sanitizer,r.sourceSpan));break;case v.AnimationListener:let o=UD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent);L.replace(r,Hot(r.animationKind,o,null,r.sourceSpan));break;case v.Listener:let s=UD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent),a=r.eventTarget?est.get(r.eventTarget):null;if(a===void 0)throw new Error(`Unexpected global target '${r.eventTarget}' defined for '${r.name}' event. Supported list of global targets: window,document,body.`);L.replace(r,t.job.mode===eo.DomOnly&&!r.hostListener&&!r.isLegacyAnimationListener?Rot(r.name,s,a,r.sourceSpan):Uit(r.name,s,a,r.hostListener&&r.isLegacyAnimationListener,r.sourceSpan));break;case v.TwoWayListener:L.replace(r,Vit(r.name,UD(t,r.handlerFnName,r.handlerOps,!0),r.sourceSpan));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);L.replace(r,ys(new Ln(r.variable.name,r.initializer,void 0,Xn.Final)));break;case v.Namespace:switch(r.active){case pn.HTML:L.replace(r,Git());break;case pn.SVG:L.replace(r,Wit());break;case pn.Math:L.replace(r,Kit());break}break;case v.Defer:let u=!!r.loadingMinimumTime||!!r.loadingAfterTime||!!r.placeholderMinimumTime;L.replace(r,tot(r.handle.slot,r.mainSlot.slot,r.resolverFn,r.loadingSlot?.slot??null,r.placeholderSlot?.slot??null,r.errorSlot?.slot??null,r.loadingConfig,r.placeholderConfig,u,r.sourceSpan,r.flags));break;case v.DeferOn:let c=[];switch(r.trigger.kind){case ir.Never:case ir.Idle:case ir.Immediate:break;case ir.Timer:c=[C(r.trigger.delay)];break;case ir.Viewport:r.modifier==="hydrate"?c=r.trigger.options?[r.trigger.options]:[]:(c=[C(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0?c.push(C(r.trigger.targetSlotViewSteps)):r.trigger.options&&c.push(C(null)),r.trigger.options&&c.push(r.trigger.options));break;case ir.Interaction:case ir.Hover:r.modifier==="hydrate"?c=[]:(c=[C(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0&&c.push(C(r.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${r.trigger.kind}`)}L.replace(r,not(r.trigger.kind,c,r.modifier,r.sourceSpan));break;case v.ProjectionDef:L.replace(r,iot(r.def));break;case v.Projection:if(r.handle.slot===null)throw new Error("No slot was assigned for project instruction");let l=null,d=null,f=null;if(r.fallbackView!==null){if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");let x=t.job.views.get(r.fallbackView);if(x===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(x.fnName===null||x.decls===null||x.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");l=x.fnName,d=x.decls,f=x.vars}L.replace(r,oot(r.handle.slot,r.projectionSlotIndex,r.attributes,l,d,f,r.sourceSpan));break;case v.ConditionalCreate:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let p=t.job.views.get(r.xref);L.replace(r,aot(r.handle.slot,pt(p.fnName),p.decls,p.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.ConditionalBranchCreate:if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(r.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let m=t.job.views.get(r.xref);L.replace(r,uot(r.handle.slot,pt(m.fnName),m.decls,m.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.RepeaterCreate:if(r.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(t instanceof zs))throw new Error("AssertionError: must be compiling a component");let y=t.job.views.get(r.xref);if(y.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let g=null,b=null,_=null;if(r.emptyView!==null){let x=t.job.views.get(r.emptyView);if(x===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(x.fnName===null||x.decls===null||x.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");g=x.fnName,b=x.decls,_=x.vars}L.replace(r,cot(r.handle.slot,y.fnName,r.decls,r.vars,r.tag,r.attributes,sst(t,r),r.usesComponentInstance,g,b,_,r.emptyTag,r.emptyAttributes,r.wholeSourceSpan));break;case v.SourceLocation:let S=or(r.locations.map(({targetSlot:x,offset:N,line:z,column:Ee})=>{if(x.slot===null)throw new Error("No slot was assigned for source location");return or([C(x.slot),C(N),C(z),C(Ee)])}));L.replace(r,Kot(r.templatePath,S));break;case v.ControlCreate:L.replace(r,Eot(r.sourceSpan));break;case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${v[r.kind]}`)}}function y3(t,e){for(let r of e)switch(tn(r,n=>k0e(t,n),ot.None),r.kind){case v.Advance:L.replace(r,zit(r.delta,r.sourceSpan));break;case v.Property:L.replace(r,t.job.mode===eo.DomOnly&&r.bindingKind!==ve.LegacyAnimation&&r.bindingKind!==ve.Animation?Yge(r):ist(r));break;case v.Control:L.replace(r,ost(r));break;case v.TwoWayProperty:L.replace(r,Sot(r.name,r.expression,r.sanitizer,r.sourceSpan));break;case v.StyleProp:L.replace(r,wot(r.name,r.expression,r.unit,r.sourceSpan));break;case v.ClassProp:L.replace(r,Iot(r.name,r.expression,r.sourceSpan));break;case v.StyleMap:L.replace(r,Aot(r.expression,r.sourceSpan));break;case v.ClassMap:L.replace(r,xot(r.expression,r.sourceSpan));break;case v.I18nExpression:L.replace(r,jot(r.expression,r.sourceSpan));break;case v.I18nApply:L.replace(r,qot(r.handle.slot,r.sourceSpan));break;case v.InterpolateText:L.replace(r,Fot(r.interpolation.strings,r.interpolation.expressions,r.sourceSpan));break;case v.Attribute:L.replace(r,Tot(r.name,r.expression,r.sanitizer,r.namespace,r.sourceSpan));break;case v.DomProperty:if(r.expression instanceof en)throw new Error("not yet handled");r.bindingKind===ve.LegacyAnimation||r.bindingKind===ve.Animation?L.replace(r,Got(r.name,r.expression,r.sourceSpan)):L.replace(r,Yge(r));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);L.replace(r,ys(new Ln(r.variable.name,r.initializer,void 0,Xn.Final)));break;case v.Conditional:if(r.processed===null)throw new Error("Conditional test was not set.");L.replace(r,Qot(r.processed,r.contextValue,r.sourceSpan));break;case v.Repeater:L.replace(r,lot(r.collection,r.sourceSpan));break;case v.DeferWhen:L.replace(r,dot(r.modifier,r.expr,r.sourceSpan));break;case v.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${r.declaredName}`);case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${v[r.kind]}`)}}function Yge(t){return Bot(tst.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function ist(t){return b0e(t.name)?vot(t.name,t.expression,t.sourceSpan):bot(t.name,t.expression,t.sanitizer,t.sourceSpan)}function ost(t){return _ot(t.sourceSpan)}function k0e(t,e){if(!pl(e))return e;switch(e.kind){case we.NextContext:return Yit(e.steps);case we.Reference:return Qit(e.targetSlot.slot+1+e.offset);case we.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${e.name}`);case we.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case we.RestoreView:if(typeof e.view=="number")throw new Error("AssertionError: unresolved RestoreView");return Xit(e.view);case we.ResetView:return Jit(e.expr);case we.GetCurrentView:return Zit();case we.ReadVariable:if(e.name===null)throw new Error(`Read of unnamed variable ${e.xref}`);return pt(e.name);case we.ReadTemporaryExpr:if(e.name===null)throw new Error(`Read of unnamed temporary ${e.xref}`);return pt(e.name);case we.AssignTemporaryExpr:if(e.name===null)throw new Error(`Assign of unnamed temporary ${e.xref}`);return pt(e.name).set(e.expr);case we.PureFunctionExpr:if(e.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return Wot(e.varOffset,e.fn,e.args);case we.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case we.PipeBinding:return Lot(e.targetSlot.slot,e.varOffset,e.args);case we.PipeBindingVariadic:return $ot(e.targetSlot.slot,e.varOffset,e.args);case we.SlotLiteralExpr:return C(e.slot.slot);case we.ContextLetReference:return hot(e.targetSlot.slot);case we.StoreLet:return pot(e.value,e.sourceSpan);case we.TrackContext:return pt("this");case we.ArrowFunction:if(e.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return zot(e.varOffset,t.job.pool.getSharedFunctionReference(ast(t,e),"arrowFn"),pt(gs));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${we[e.kind]}`)}}function UD(t,e,r,n){y3(t,r);let i=[];for(let s of r){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[s.kind]}`);i.push(s.statement)}let o=[];return n&&o.push(new An("$event",Oo)),kp(o,i,void 0,void 0,e)}function sst(t,e){if(e.trackByFn!==null)return e.trackByFn;let r=[new An("$index",ny),new An("$item",Oo)],n;if(e.trackByOps===null)n=e.usesComponentInstance?kp(r,[new xn(e.track)]):ms(r,e.track);else{y3(t,e.trackByOps);let i=[];for(let o of e.trackByOps){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[o.kind]}`);i.push(o.statement)}n=e.usesComponentInstance||i.length!==1||!(i[0]instanceof xn)?kp(r,i):ms(r,i[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(n,"_forTrack"),e.trackByFn}function ast(t,e){y3(t,e.ops);let r=[];for(let i of e.ops){if(i.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[i.kind]}`);r.push(i.statement)}let n=r.length===1&&r[0]instanceof xn?r[0].value:r;return ms([new An(e.contextName,Oo),new An(e.currentViewName,Oo)],ms(e.parameters,n))}function ust(t){for(let e of t.units)for(let r of e.update)switch(r.kind){case v.Attribute:case v.Binding:case v.ClassProp:case v.ClassMap:case v.Property:case v.StyleProp:case v.StyleMap:r.expression instanceof $w&&L.remove(r);break}}function cst(t){for(let e of t.units)for(let r of e.create)switch(r.kind){case v.I18nContext:L.remove(r);break;case v.I18nStart:r.context=null;break}}function lst(t){for(let e of t.units)for(let r of e.update){if(r.kind!==v.Variable||r.variable.kind!==kn.Identifier||!(r.initializer instanceof Mw))continue;let n=r.variable.identifier,i=r;for(;i&&i.kind!==v.ListEnd;)tn(i,o=>o instanceof Yn&&o.name===n?C(void 0):o,ot.None),i=i.prev}}function dst(t){for(let e of t.units){let r=new Set;for(let n of e.update)n.kind===v.I18nExpression&&r.add(n.i18nOwner);for(let n of e.create)switch(n.kind){case v.I18nAttributes:if(r.has(n.xref))continue;L.remove(n)}}}function fst(t){for(let e of t.units){for(let r of e.functions)KT(e,r.ops);KT(e,e.create),KT(e,e.update)}}function KT(t,e){let r=new Map;r.set(t.xref,pt(gs));for(let n of e)switch(n.kind){case v.Variable:n.variable.kind===kn.Context&&r.set(n.variable.view,new Nd(n.xref));break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:KT(t,n.handlerOps);break;case v.RepeaterCreate:n.trackByOps!==null&&KT(t,n.trackByOps);break}t===t.job.root&&r.set(t.xref,pt(gs));for(let n of e)tn(n,i=>{if(i instanceof Bp){if(!r.has(i.view))throw new Error(`No context found for reference to view ${i.view} from view ${t.xref}`);return r.get(i.view)}else return i},ot.None)}function pst(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.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 n=e.fnName?.replace("_Template","");r.resolverFn=t.pool.getSharedFunctionReference(r.ownResolverFn,`${n}_Defer_${r.handle.slot}_DepsFn`,!1)}}}function hst(t){for(let e of t.units)Zge(e.create),Zge(e.update)}function Zge(t){for(let e of t)(e.kind===v.Listener||e.kind===v.TwoWayListener||e.kind===v.AnimationListener)&&tn(e,r=>r instanceof Yn&&r.name==="$event"?((e.kind===v.Listener||e.kind===v.AnimationListener)&&(e.consumesDollarEvent=!0),new ka(r.name)):r,ot.InChildOperation)}function mst(t){let e=new Map,r=new Map;for(let n of t.units)for(let i of n.create)switch(i.kind){case v.I18nContext:e.set(i.xref,i);break;case v.ElementStart:r.set(i.xref,i);break}Jc(t,t.root,e,r)}function Jc(t,e,r,n,i){let o=null,s=new Map;for(let a of e.create)switch(a.kind){case v.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");o={i18nBlock:a,i18nContext:r.get(a.context)};break;case v.I18nEnd:o=null;break;case v.ElementStart:if(a.i18nPlaceholder!==void 0){if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Xge(a,o.i18nContext,o.i18nBlock,i),i&&a.i18nPlaceholder.closeName&&s.set(a.xref,i),i=void 0}break;case v.ElementEnd:let u=n.get(a.xref);if(u&&u.i18nPlaceholder!==void 0){if(o===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Jge(u,o.i18nContext,o.i18nBlock,s.get(a.xref)),s.delete(a.xref)}break;case v.Projection:if(a.i18nPlaceholder!==void 0){if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Xge(a,o.i18nContext,o.i18nBlock,i),Jge(a,o.i18nContext,o.i18nBlock,i),i=void 0}if(a.fallbackView!==null){let f=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)Jc(t,f,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");VD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,o.i18nContext,o.i18nBlock,i),Jc(t,f,r,n),HD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0}}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:let c=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Jc(t,c,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===io.Structural?Jc(t,c,r,n,a):(VD(t,c,a.handle.slot,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),Jc(t,c,r,n),HD(t,c,a.handle.slot,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0)}break;case v.RepeaterCreate:if(i!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let l=a.handle.slot+1,d=t.views.get(a.xref);if(a.i18nPlaceholder===void 0)Jc(t,d,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");VD(t,d,l,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),Jc(t,d,r,n),HD(t,d,l,a.i18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0}if(a.emptyView!==null){let f=a.handle.slot+2,p=t.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)Jc(t,p,r,n);else{if(o===null)throw Error("i18n tag placeholder should only occur inside an i18n block");VD(t,p,f,a.emptyI18nPlaceholder,o.i18nContext,o.i18nBlock,i),Jc(t,p,r,n),HD(t,p,f,a.emptyI18nPlaceholder,o.i18nContext,o.i18nBlock,i),i=void 0}}break}}function Xge(t,e,r,n){let{startName:i,closeName:o}=t.i18nPlaceholder,s=fr.ElementTag|fr.OpenTag,a=t.handle.slot;n!==void 0&&(s|=fr.TemplateTag,a={element:a,template:n.handle.slot}),o||(s|=fr.CloseTag),E_(e.params,i,a,r.subTemplateIndex,s)}function Jge(t,e,r,n){let{closeName:i}=t.i18nPlaceholder;if(i){let o=fr.ElementTag|fr.CloseTag,s=t.handle.slot;n!==void 0&&(o|=fr.TemplateTag,s={element:s,template:n.handle.slot}),E_(e.params,i,s,r.subTemplateIndex,o)}}function VD(t,e,r,n,i,o,s){let{startName:a,closeName:u}=n,c=fr.TemplateTag|fr.OpenTag;u||(c|=fr.CloseTag),s!==void 0&&E_(i.params,a,s.handle.slot,o.subTemplateIndex,c),E_(i.params,a,r,L0e(t,o,e),c)}function HD(t,e,r,n,i,o,s){let{closeName:a}=n,u=fr.TemplateTag|fr.CloseTag;a&&(E_(i.params,a,r,L0e(t,o,e),u),s!==void 0&&E_(i.params,a,s.handle.slot,o.subTemplateIndex,u))}function L0e(t,e,r){for(let n of r.create)if(n.kind===v.I18nStart)return n.subTemplateIndex;return e.subTemplateIndex}function E_(t,e,r,n,i){let o=t.get(e)??[];o.push({value:r,subTemplateIndex:n,flags:i}),t.set(e,o)}function gst(t){let e=new Map,r=new Map,n=new Map;for(let s of t.units)for(let a of s.create)switch(a.kind){case v.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case v.I18nContext:r.set(a.xref,a);break;case v.IcuPlaceholder:n.set(a.xref,a);break}let i=new Map,o=s=>s.usage===hy.I18nText?s.i18nOwner:s.context;for(let s of t.units)for(let a of s.update)if(a.kind===v.I18nExpression){let u=i.get(o(a))||0,c=e.get(a.i18nOwner)??null,l={value:u,subTemplateIndex:c,flags:fr.ExpressionIndex};yst(a,l,r,n),i.set(o(a),u+1)}}function yst(t,e,r,n){if(t.i18nPlaceholder!==null){let i=r.get(t.context),o=t.resolutionTime===m_.Creation?i.params:i.postprocessingParams,s=o.get(t.i18nPlaceholder)||[];s.push(e),o.set(t.i18nPlaceholder,s)}t.icuPlaceholder!==null&&n.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function vst(t){let e=new Map;for(let r of t.units)for(let n of r.ops())if(n.kind===v.ElementStart||n.kind===v.Template){let i=n.tag??"";switch(n.namespace){case pn.SVG:i=`:${m3}:${i}`;break;case pn.Math:i=`:${g3}:${i}`;break}e.set(n.xref,i)}for(let r of t.units)for(let n of r.create)if(n.kind===v.ExtractedAttribute&&n.i18nContext!==null&&n.expression!==null){let i=e.get(n.target)??"",o=n.expression;switch(n.securityContext){case ft.HTML:o=me(T.sanitizeHtml).callFn([o]);break;case ft.STYLE:o=me(T.sanitizeStyle).callFn([o]);break;case ft.SCRIPT:o=me(T.sanitizeScript).callFn([o]);break;case ft.URL:o=me(T.sanitizeUrl).callFn([o]);break;case ft.RESOURCE_URL:o=me(T.sanitizeResourceUrl).callFn([o]);break;case ft.ATTRIBUTE_NO_BINDING:o=me(T.validateAttribute).callFn([o,C(i),C(n.name)]);break}n.expression=o}}function bst(t){for(let e of t.units){for(let r of e.functions)zT(e,r.ops,null);zT(e,e.create,null),zT(e,e.update,null)}}function zT(t,e,r){let n=new Map,i=new Map;for(let o of e)switch(o.kind){case v.Variable:switch(o.variable.kind){case kn.Identifier:if(o.variable.local){if(i.has(o.variable.identifier))continue;i.set(o.variable.identifier,o.xref)}else if(n.has(o.variable.identifier))continue;n.set(o.variable.identifier,o.xref);break;case kn.Alias:if(n.has(o.variable.identifier))continue;n.set(o.variable.identifier,o.xref);break;case kn.SavedView:r={view:o.variable.view,variable:o.xref};break}break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:zT(t,o.handlerOps,r);break;case v.RepeaterCreate:o.trackByOps!==null&&zT(t,o.trackByOps,r);break}for(let o of e)o.kind===v.Listener||o.kind===v.TwoWayListener||o.kind===v.Animation||o.kind===v.AnimationListener||tn(o,s=>{if(s instanceof Yn)return i.has(s.name)?new Nd(i.get(s.name)):n.has(s.name)?new Nd(n.get(s.name)):new hs(new Bp(t.job.root.xref),s.name);if(s instanceof kw&&typeof s.view=="number"){if(r===null||r.view!==s.view)throw new Error(`AssertionError: no saved view ${s.view} from view ${t.xref}`);return s.view=new Nd(r.variable),s}else return s},ot.None);for(let o of e)hn(o,s=>{if(s instanceof Yn)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${s.name}`)})}var _st=new Map([[ft.HTML,T.sanitizeHtml],[ft.RESOURCE_URL,T.sanitizeResourceUrl],[ft.SCRIPT,T.sanitizeScript],[ft.STYLE,T.sanitizeStyle],[ft.URL,T.sanitizeUrl],[ft.ATTRIBUTE_NO_BINDING,T.validateAttribute]]),Est=new Map([[ft.HTML,T.trustConstantHtml],[ft.RESOURCE_URL,T.trustConstantResourceUrl]]);function Sst(t){for(let e of t.units){if(t.kind!==ue.Host){for(let r of e.create)if(r.kind===v.ExtractedAttribute){let n=Est.get(eye(r.securityContext))??null;r.trustedValueFn=n!==null?me(n):null}}for(let r of e.update)switch(r.kind){case v.Property:case v.Attribute:case v.DomProperty:case v.TwoWayProperty:let n=null;Array.isArray(r.securityContext)&&Tst(r.securityContext)?n=T.sanitizeUrlOrResourceUrl:n=_st.get(eye(r.securityContext))??null,r.sanitizer=n!==null?me(n):null;break}}}function Tst(t){let e=!1,r=!1,n=!1;for(let i of t)switch(i){case ft.URL:e=!0;break;case ft.RESOURCE_URL:r=!0;break;case ft.NONE:n=!0;break;default:return!1}return(e||r)&&n||e&&r}function eye(t){if(!Array.isArray(t))return t;if(t.length<2)return t[0]??ft.NONE;let e=t.filter(r=>r!==ft.NONE);if(e.length>1)throw Error("AssertionError: Ambiguous security context");return e[0]??ft.NONE}function wst(t){for(let e of t.units){for(let r of e.functions)tye(t,e,r.ops)&&rye(e,r.ops,pt(r.currentViewName));e.create.prepend([Pp(e.job.allocateXrefId(),{kind:kn.SavedView,name:null,view:e.xref},new RV,ls.None)]);for(let r of e.create)(r.kind===v.Listener||r.kind===v.TwoWayListener||r.kind===v.Animation||r.kind===v.AnimationListener)&&tye(t,e,r.handlerOps)&&rye(e,r.handlerOps,e.xref)}}function tye(t,e,r){let n=e!==t.root;if(!n)for(let i of r)hn(i,o=>{(o instanceof LM||o instanceof Rw)&&(n=!0)});return n}function rye(t,e,r){e.prepend([Pp(t.job.allocateXrefId(),{kind:kn.Context,name:null,view:t.xref},new kw(r),ls.None)]);for(let n of e)n.kind===v.Statement&&n.statement instanceof xn&&(n.statement.value=new FM(n.statement.value))}function Ist(t){let e=new Map;for(let r of t.units){let n=0;for(let i of r.create)w_(i)&&(i.handle.slot=n,e.set(i.xref,i.handle.slot),n+=i.numSlotsUsed);r.decls=n}for(let r of t.units)for(let n of r.ops())if(n.kind===v.Template||n.kind===v.ConditionalCreate||n.kind===v.ConditionalBranchCreate||n.kind===v.RepeaterCreate){let i=t.views.get(n.xref);n.decls=i.decls}}function Ast(t){let e=new Set,r=new Map;for(let n of t.units)for(let i of n.ops())i.kind===v.DeclareLet&&r.set(i.xref,i),hn(i,o=>{o instanceof Rw&&e.add(o.target)});for(let n of t.units)for(let i of n.update)tn(i,o=>o instanceof Mw&&!e.has(o.target)?(xst(o)||L.remove(r.get(o.target)),o.value):o,ot.None)}function xst(t){let e=!1;return pe(t,r=>((r instanceof yy||r instanceof Lw)&&(e=!0),r),ot.None),e}function Cst(t){let e=new Set;for(let r of t.units)for(let n of r.ops())hn(n,i=>{if(i instanceof wt)switch(i.operator){case V.Exponentiation:Ost(i,e);break;case V.NullishCoalesce:Pst(i,e);break;case V.And:case V.Or:Nst(i,e)}});for(let r of t.units)for(let n of r.ops())tn(n,i=>i instanceof La?e.has(i)?i:i.expr:i,ot.None)}function Ost(t,e){t.lhs instanceof La&&t.lhs.expr instanceof oy&&e.add(t.lhs)}function Pst(t,e){t.lhs instanceof La&&(nye(t.lhs.expr)||t.lhs.expr instanceof ul)&&e.add(t.lhs),t.rhs instanceof La&&(nye(t.rhs.expr)||t.rhs.expr instanceof ul)&&e.add(t.rhs)}function Nst(t,e){t.lhs instanceof La&&t.lhs.expr instanceof wt&&t.lhs.expr.operator===V.NullishCoalesce&&e.add(t.lhs)}function nye(t){return t instanceof wt&&(t.operator===V.And||t.operator===V.Or)}function Dst(t){for(let e of t.units)for(let r of e.update)if(r.kind===v.Binding)switch(r.bindingKind){case ve.ClassName:if(r.expression instanceof en)throw new Error("Unexpected interpolation in ClassName binding");L.replace(r,Jet(r.target,r.name,r.expression,r.sourceSpan));break;case ve.StyleProperty:L.replace(r,Xet(r.target,r.name,r.expression,r.unit,r.sourceSpan));break;case ve.Property:case ve.Template:r.name==="style"?L.replace(r,ett(r.target,r.expression,r.sourceSpan)):r.name==="class"&&L.replace(r,ttt(r.target,r.expression,r.sourceSpan));break}}function Mst(t){for(let e of t.units){e.create.prepend(QT(e.create)),e.update.prepend(QT(e.update));for(let r of e.functions)r.ops.prepend(QT(r.ops))}}function QT(t){let e=0,r=[];for(let n of t){let i=new Map;hn(n,(c,l)=>{l&ot.InChildOperation||c instanceof Vp&&i.set(c.xref,c)});let o=0,s=new Set,a=new Set,u=new Map;hn(n,(c,l)=>{l&ot.InChildOperation||(c instanceof hl?(s.has(c.xref)||(s.add(c.xref),u.set(c.xref,`tmp_${e}_${o++}`)),iye(u,c)):c instanceof Vp&&(i.get(c.xref)===c&&(a.add(c.xref),o--),iye(u,c)))}),r.push(...Array.from(new Set(u.values())).map(c=>ys(new Ln(c)))),e++,n.kind===v.Listener||n.kind===v.Animation||n.kind===v.AnimationListener||n.kind===v.TwoWayListener?n.handlerOps.prepend(QT(n.handlerOps)):n.kind===v.RepeaterCreate&&n.trackByOps!==null&&n.trackByOps.prepend(QT(n.trackByOps))}return r}function iye(t,e){let r=t.get(e.xref);if(r===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=r}function Rst(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.RepeaterCreate)if(r.track instanceof ka&&r.track.name==="$index")r.trackByFn=me(T.repeaterTrackByIndex);else if(r.track instanceof ka&&r.track.name==="$item")r.trackByFn=me(T.repeaterTrackByIdentity);else if(kst(t.root.xref,r.track))r.usesComponentInstance=!0,r.track.receiver.receiver.view===e.xref?r.trackByFn=r.track.receiver:(r.trackByFn=me(T.componentInstance).callFn([]).prop(r.track.receiver.name),r.track=r.trackByFn);else{r.track=pe(r.track,i=>{if(i instanceof yy||i instanceof Lw)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof Bp?(r.usesComponentInstance=!0,new MV(i.view)):i},ot.None);let n=new L;n.push(ys(new xn(r.track,r.track.sourceSpan))),r.trackByOps=n}}function kst(t,e){if(!(e instanceof Po)||e.args.length===0||e.args.length>2||!(e.receiver instanceof hs&&e.receiver.receiver instanceof Bp)||e.receiver.receiver.view!==t)return!1;let[r,n]=e.args;return!(r instanceof ka)||r.name!=="$index"?!1:e.args.length===1?!0:!(!(n instanceof ka)||n.name!=="$item")}function Lst(t){for(let e of t.units)for(let r of e.create)r.kind===v.RepeaterCreate&&(r.track=pe(r.track,n=>{if(n instanceof Yn){if(r.varNames.$index.has(n.name))return pt("$index");if(n.name===r.varNames.$implicit)return pt("$item")}return n},ot.None))}function $st(t){for(let e of t.units)for(let r of e.create)r.kind===v.TwoWayListener&&tn(r,n=>{if(!(n instanceof jM))return n;let{target:i,value:o}=n;if(i instanceof hs||i instanceof Md)return zge(i,o).or(i.set(o));if(i instanceof Nd)return zge(i,o);throw new Error("Unsupported expression in two-way action binding.")},ot.InChildOperation)}function Fst(t){for(let e of t.units){let r=0;for(let o of e.ops())RU(o)&&(r+=jst(o));let n=o=>{pl(o)&&(o instanceof gy||(dge(o)&&(o.varOffset=r),RU(o)&&(r+=oye(o))))},i=o=>{!pl(o)||!(o instanceof gy)||(dge(o)&&(o.varOffset=r),RU(o)&&(r+=oye(o)))};for(let o of e.create)hn(o,n);for(let o of e.update)hn(o,n);for(let o of e.create)hn(o,i);for(let o of e.update)hn(o,i);e.vars=r}if(t instanceof jw)for(let e of t.units)for(let r of e.create){if(r.kind!==v.Template&&r.kind!==v.RepeaterCreate&&r.kind!==v.ConditionalCreate&&r.kind!==v.ConditionalBranchCreate)continue;let n=t.views.get(r.xref);r.vars=n.vars}}function jst(t){let e;switch(t.kind){case v.Attribute:return e=1,t.expression instanceof en&&!qst(t.expression)&&(e+=t.expression.expressions.length),e;case v.Property:case v.DomProperty:return e=1,t.expression instanceof en&&(e+=t.expression.expressions.length),e;case v.Control:return 2;case v.TwoWayProperty:return 1;case v.StyleProp:case v.ClassProp:case v.StyleMap:case v.ClassMap:return e=2,t.expression instanceof en&&(e+=t.expression.expressions.length),e;case v.InterpolateText:return t.interpolation.expressions.length;case v.I18nExpression:case v.Conditional:case v.DeferWhen:case v.StoreLet:return 1;case v.RepeaterCreate:return t.emptyView?1:0;default:throw new Error(`Unhandled op: ${v[t.kind]}`)}}function oye(t){switch(t.kind){case we.PureFunctionExpr:return 1+t.args.length;case we.PipeBinding:return 1+t.args.length;case we.PipeBindingVariadic:return 1+t.numArgs;case we.StoreLet:case we.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function qst(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function Bst(t){for(let e of t.units){for(let r of e.functions)RT(r.ops);RT(e.create),RT(e.update);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?RT(r.handlerOps):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&RT(r.trackByOps);for(let r of e.functions)kT(r.ops,null),sye(r.ops);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?(kT(r.handlerOps,GD),sye(r.handlerOps)):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&kT(r.trackByOps,GD);kT(e.create,GD),kT(e.update,GD)}}var In;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(In||(In={}));function GD(t){return!(t&ot.InArrowFunctionOperation)}function RT(t){let e=new Map;for(let r of t)r.kind===v.Variable&&r.flags&ls.AlwaysInline&&(hn(r,n=>{if(pl(n)&&UH(n)!==In.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(r.xref,r)),tn(r,n=>n instanceof Nd&&e.has(n.xref)?e.get(n.xref).initializer.clone():n,ot.None);for(let r of e.values())L.remove(r)}function kT(t,e){let r=new Map,n=new Map,i=new Set,o=new Map;for(let c of t){if(c.kind===v.Variable){if(r.has(c.xref)||n.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);r.set(c.xref,c),n.set(c.xref,0)}o.set(c,Ust(c,e)),Vst(c,n,i,e)}let s=!1;for(let c of t.reversed()){let l=o.get(c);if(c.kind===v.Variable&&n.get(c.xref)===0){if(s&&l.fences&In.ViewContextWrite||l.fences&In.SideEffectful){let d=ys(c.initializer.toStmt());o.set(d,l),L.replace(c,d)}else Hst(c,n),L.remove(c);o.delete(c),r.delete(c.xref),n.delete(c.xref);continue}l.fences&In.ViewContextRead&&(s=!0)}let a=[];for(let[c,l]of n){let f=!!(r.get(c).flags&ls.AlwaysInline);l!==1||f||i.has(c)||a.push(c)}let u;for(;u=a.pop();){let c=r.get(u),l=o.get(c);if(!!(c.flags&ls.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let f=c.next;f.kind!==v.ListEnd;f=f.next){let p=o.get(f);if(p.variablesUsed.has(u)){if(!Wst(c,f))break;if(Gst(u,c.initializer,f,l.fences)){p.variablesUsed.delete(u);for(let m of l.variablesUsed)p.variablesUsed.add(m);p.fences|=l.fences,r.delete(u),n.delete(u),o.delete(c),L.remove(c)}break}if(!$0e(p.fences,l.fences))break}}}function UH(t){switch(t.kind){case we.NextContext:return In.ViewContextRead|In.ViewContextWrite;case we.RestoreView:return In.ViewContextRead|In.ViewContextWrite|In.SideEffectful;case we.StoreLet:return In.SideEffectful;case we.Reference:case we.ContextLetReference:return In.ViewContextRead;default:return In.None}}function Ust(t,e){let r=In.None,n=new Set;return hn(t,(i,o)=>{!pl(i)||e!==null&&!e(o)||(i.kind===we.ReadVariable?n.add(i.xref):r|=UH(i))}),{fences:r,variablesUsed:n}}function Vst(t,e,r,n){hn(t,(i,o)=>{if(!pl(i)||n!==null&&!n(o)||i.kind!==we.ReadVariable)return;let s=e.get(i.xref);s!==void 0&&(e.set(i.xref,s+1),o&ot.InChildOperation&&r.add(i.xref))})}function Hst(t,e){hn(t,r=>{if(!pl(r)||r.kind!==we.ReadVariable)return;let n=e.get(r.xref);if(n!==void 0){if(n===0)throw new Error(`Inaccurate variable count: ${r.xref} - found another read but count is already 0`);e.set(r.xref,n-1)}})}function $0e(t,e){if(t&In.ViewContextWrite){if(e&In.ViewContextRead)return!1}else if(t&In.ViewContextRead&&e&In.ViewContextWrite)return!1;return!0}function Gst(t,e,r,n){let i=!1,o=!0;return tn(r,(s,a)=>{if(!pl(s)||i||!o)return s;if(a&ot.InChildOperation&&n&In.ViewContextRead)return s;switch(s.kind){case we.ReadVariable:if(s.xref===t)return i=!0,e;break;default:let u=UH(s);o=o&&$0e(u,n);break}return s},ot.None),i}function Wst(t,e){switch(t.variable.kind){case kn.Identifier:return t.initializer instanceof ka&&t.initializer.name===gs;case kn.Context:return e.kind===v.Variable;default:return!0}}function sye(t){let e=t.head.next,r=t.tail.prev;e!==null&&r!==null&&e.next===r&&e.kind===v.Statement&&e.statement instanceof fi&&e.statement.expr instanceof kw&&r.kind===v.Statement&&r.statement instanceof xn&&r.statement.value instanceof FM&&(L.remove(e),r.statement.value=r.statement.value.expr)}function Kst(t){for(let e of t.units){let r=null,n=null;for(let i of e.create)switch(i.kind){case v.I18nStart:r=i;break;case v.I18nEnd:r=null;break;case v.IcuStart:r===null&&(n=t.allocateXrefId(),L.insertBefore(p3(n,i.message,void 0,null),i));break;case v.IcuEnd:n!==null&&(L.insertAfter(h3(n,null),i),n=null);break}}}function zst(t){for(let e of t.units){for(let r of e.create)r.kind!==v.Animation&&r.kind!==v.AnimationListener&&r.kind!==v.Listener&&r.kind!==v.TwoWayListener&&aye(e,r);for(let r of e.update)aye(e,r)}}function aye(t,e){tn(e,(r,n)=>{if(!(r instanceof _y)||n&ot.InChildOperation)return r;if(Array.isArray(r.body))throw new Error("AssertionError: unexpected multi-line arrow function");let i=new kV(r.params,r.body);return t.functions.add(i),i},ot.None)}var Qst=new Set(["formField"]);function Yst(t){for(let e of t.units)Zst(e)}function Zst(t){for(let e of t.update)e.kind===v.Property&&Qst.has(e.name)&&tat(t,e)}var Xst=new Set([v.Container,v.ContainerStart,v.ContainerEnd,v.Element,v.ElementStart,v.ElementEnd,v.Template]);function Jst(t){return Xst.has(t.kind)}function eat(t,e){let r=null;for(let n of t.create)!Jst(n)||n.xref!==e||(r=n);return r}function tat(t,e){let r=eat(t,e.target);if(r===null)throw new Error(`No create instruction found for control target ${e.target}`);let n=xtt(e.sourceSpan);L.insertAfter(n,r),L.insertAfter(att(e.target,e.sourceSpan),e)}var rat=[{kind:ue.Tmpl,fn:bit},{kind:ue.Both,fn:Dit},{kind:ue.Host,fn:Nrt},{kind:ue.Tmpl,fn:rit},{kind:ue.Tmpl,fn:Ait},{kind:ue.Tmpl,fn:Kst},{kind:ue.Both,fn:Jtt},{kind:ue.Both,fn:Dst},{kind:ue.Both,fn:Ftt},{kind:ue.Tmpl,fn:Yst},{kind:ue.Both,fn:Qtt},{kind:ue.Both,fn:ktt},{kind:ue.Tmpl,fn:Xtt},{kind:ue.Both,fn:iit},{kind:ue.Tmpl,fn:ust},{kind:ue.Both,fn:Btt},{kind:ue.Both,fn:vit},{kind:ue.Tmpl,fn:Utt},{kind:ue.Tmpl,fn:Sit},{kind:ue.Tmpl,fn:ert},{kind:ue.Tmpl,fn:Iit},{kind:ue.Both,fn:zst},{kind:ue.Both,fn:Oit},{kind:ue.Tmpl,fn:xrt},{kind:ue.Tmpl,fn:Art},{kind:ue.Tmpl,fn:Crt},{kind:ue.Tmpl,fn:wst},{kind:ue.Both,fn:Ott},{kind:ue.Both,fn:hst},{kind:ue.Tmpl,fn:Lst},{kind:ue.Tmpl,fn:lst},{kind:ue.Both,fn:bst},{kind:ue.Tmpl,fn:trt},{kind:ue.Tmpl,fn:$st},{kind:ue.Tmpl,fn:Rst},{kind:ue.Both,fn:fst},{kind:ue.Both,fn:Sst},{kind:ue.Tmpl,fn:eit},{kind:ue.Both,fn:srt},{kind:ue.Both,fn:Cst},{kind:ue.Both,fn:Mst},{kind:ue.Both,fn:Bst},{kind:ue.Both,fn:Ast},{kind:ue.Tmpl,fn:Jnt},{kind:ue.Tmpl,fn:Ztt},{kind:ue.Tmpl,fn:dst},{kind:ue.Tmpl,fn:Mtt},{kind:ue.Tmpl,fn:Ntt},{kind:ue.Tmpl,fn:Ist},{kind:ue.Tmpl,fn:mst},{kind:ue.Tmpl,fn:gst},{kind:ue.Tmpl,fn:Ert},{kind:ue.Tmpl,fn:znt},{kind:ue.Tmpl,fn:vst},{kind:ue.Tmpl,fn:Ort},{kind:ue.Both,fn:Wtt},{kind:ue.Tmpl,fn:cst},{kind:ue.Both,fn:Fst},{kind:ue.Tmpl,fn:Irt},{kind:ue.Both,fn:oit},{kind:ue.Tmpl,fn:pst},{kind:ue.Tmpl,fn:uit},{kind:ue.Tmpl,fn:lit},{kind:ue.Tmpl,fn:ort},{kind:ue.Tmpl,fn:Rtt},{kind:ue.Tmpl,fn:fit},{kind:ue.Both,fn:Cit},{kind:ue.Both,fn:rst},{kind:ue.Both,fn:qtt}];function F0e(t,e){for(let r of rat)(r.kind===e||r.kind===ue.Both)&&r.fn(t)}function nat(t,e){let r=q0e(t.root);return j0e(t.root,e),r}function j0e(t,e){for(let r of t.job.units){if(r.parent!==t.xref)continue;j0e(r,e);let n=q0e(r);e.statements.push(n.toDeclStmt(n.name))}}function q0e(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let o of t.create){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[o.kind]}`);e.push(o.statement)}let r=[];for(let o of t.update){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[o.kind]}`);r.push(o.statement)}let n=r3(1,e),i=r3(2,r);return kp([new An(S_,ny),new An(gs,Oo)],[...n,...i],void 0,void 0,t.fnName)}function r3(t,e){return e.length===0?[]:[c3(new wt(V.BitwiseAnd,pt(S_),C(t)),e)]}function iat(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let o of t.root.create){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[o.kind]}`);e.push(o.statement)}let r=[];for(let o of t.root.update){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[o.kind]}`);r.push(o.statement)}if(e.length===0&&r.length===0)return null;let n=r3(1,e),i=r3(2,r);return kp([new An(S_,ny),new An(gs,Oo)],[...n,...i],void 0,void 0,t.root.fnName)}var WD=".",oat="attr",qU="animate",sat="class",aat="style",uat="*",BU="animate-",sH=class{_exprParser;_schemaRegistry;errors;constructor(e,r,n){this._exprParser=e,this._schemaRegistry=r,this.errors=n}createBoundHostProperties(e,r){let n=[];for(let i of Object.keys(e)){let o=e[i];typeof o=="string"?this.parsePropertyBinding(i,o,!0,!1,r,r.start.offset,void 0,[],n,r):this._reportError(`Value of the host property binding "${i}" needs to be a string representing an expression but got "${o}" (${typeof o})`,r)}return n}createDirectiveHostEventAsts(e,r){let n=[];for(let i of Object.keys(e)){let o=e[i];typeof o=="string"?this.parseEvent(i,o,!1,r,r,[],n,r):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${o}" (${typeof o})`,r)}return n}parseInterpolation(e,r,n){let i=r.fullStart.offset;try{let o=this._exprParser.parseInterpolation(e,r,i,n);return o&&this.errors.push(...o.errors),o}catch(o){return this._reportError(`${o}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)}}parseInterpolationExpression(e,r){let n=r.start.offset;try{let i=this._exprParser.parseInterpolationExpression(e,r,n);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}parseInlineTemplateBinding(e,r,n,i,o,s,a,u){let c=n.start.offset+uat.length,l=this._parseTemplateBindings(e,r,n,c,i);for(let d of l){let f=wp(n,d.sourceSpan),p=d.key.source,m=wp(n,d.key.span);if(d instanceof gw){let y=d.value?d.value.source:"$implicit",g=d.value?wp(n,d.value.span):void 0;a.push(new lV(p,y,f,m,g))}else if(d.value){let y=u?f:n,g=wp(n,d.value.ast.sourceSpan);this._parsePropertyAst(p,d.value,!1,y,m,g,o,s)}else o.push([p,""]),this.parseLiteralAttr(p,null,m,i,void 0,o,s,m)}}_parseTemplateBindings(e,r,n,i,o){try{let s=this._exprParser.parseTemplateBindings(e,r,n,i,o);return s.errors.forEach(a=>this.errors.push(a)),s.warnings.forEach(a=>{this._reportError(a,n,xd.WARNING)}),s.templateBindings}catch(s){return this._reportError(`${s}`,n),[]}}parseLiteralAttr(e,r,n,i,o,s,a,u){UU(e)?(e=e.substring(1),u!==void 0&&(u=wp(u,new ds(u.start.offset+1,u.end.offset))),r&&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.',n,xd.ERROR),this._parseLegacyAnimation(e,r,n,i,u,o,s,a)):a.push(new Wb(e,this._exprParser.wrapLiteralPrimitive(r,"",i),Da.LITERAL_ATTR,n,u,o))}parsePropertyBinding(e,r,n,i,o,s,a,u,c,l){e.length===0&&this._reportError("Property name is missing in binding",o);let d=!1;e.startsWith(BU)?(d=!0,e=e.substring(BU.length),l!==void 0&&(l=wp(l,new ds(l.start.offset+BU.length,l.end.offset)))):UU(e)&&(d=!0,e=e.substring(1),l!==void 0&&(l=wp(l,new ds(l.start.offset+1,l.end.offset)))),d?this._parseLegacyAnimation(e,r,o,s,l,a,u,c):e.startsWith(`${qU}${WD}`)?this._parseAnimation(e,this.parseBinding(r,n,a||o,s),o,l,a,u,c):this._parsePropertyAst(e,this.parseBinding(r,n,a||o,s),i,o,l,a,u,c)}parsePropertyInterpolation(e,r,n,i,o,s,a,u){let c=this.parseInterpolation(r,i||n,u);return c?(this._parsePropertyAst(e,c,!1,n,a,i,o,s),!0):!1}_parsePropertyAst(e,r,n,i,o,s,a,u){a.push([e,r.source]),u.push(new Wb(e,r,n?Da.TWO_WAY:Da.DEFAULT,i,o,s))}_parseAnimation(e,r,n,i,o,s,a){s.push([e,r.source]),a.push(new Wb(e,r,Da.ANIMATION,n,i,o))}_parseLegacyAnimation(e,r,n,i,o,s,a,u){e.length===0&&this._reportError("Animation trigger is missing",n);let c=this.parseBinding(r||"undefined",!1,s||n,i);a.push([e,c.source]),u.push(new Wb(e,c,Da.LEGACY_ANIMATION,n,o,s))}parseBinding(e,r,n,i){try{let o=r?this._exprParser.parseSimpleBinding(e,n,i):this._exprParser.parseBinding(e,n,i);return o&&this.errors.push(...o.errors),o}catch(o){return this._reportError(`${o}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)}}createBoundElementProperty(e,r,n=!1,i=!0){if(r.isLegacyAnimation)return new TM(r.name,Ct.LegacyAnimation,ft.NONE,r.expression,null,r.sourceSpan,r.keySpan,r.valueSpan);let o=null,s,a=null,u=r.name.split(WD),c;if(u.length>1)if(u[0]==oat){a=u.slice(1).join(WD),n||this._validatePropertyOrAttributeName(a,r.sourceSpan,!0),c=XD(this._schemaRegistry,e,a,!0);let l=a.indexOf(":");if(l>-1){let d=a.substring(0,l),f=a.substring(l+1);a=ZD(d,f)}s=Ct.Attribute}else u[0]==sat?(a=u[1],s=Ct.Class,c=[ft.NONE]):u[0]==aat?(o=u.length>2?u[2]:null,a=u[1],s=Ct.Style,c=[ft.STYLE]):u[0]==qU&&(a=r.name,s=Ct.Animation,c=[ft.NONE]);if(a===null){let l=this._schemaRegistry.getMappedPropName(r.name);a=i?l:r.name,c=XD(this._schemaRegistry,e,l,!1),s=r.type===Da.TWO_WAY?Ct.TwoWay:Ct.Property,n||this._validatePropertyOrAttributeName(l,r.sourceSpan,!1)}return new TM(a,s,c[0],r.expression,o,r.sourceSpan,r.keySpan,r.valueSpan)}parseEvent(e,r,n,i,o,s,a,u){e.length===0&&this._reportError("Event name is missing in binding",i),UU(e)?(e=e.slice(1),u!==void 0&&(u=wp(u,new ds(u.start.offset+1,u.end.offset))),this._parseLegacyAnimationEvent(e,r,i,o,a,u)):this._parseRegularEvent(e,r,n,i,o,s,a,u)}calcPossibleSecurityContexts(e,r,n){let i=this._schemaRegistry.getMappedPropName(r);return XD(this._schemaRegistry,e,i,n)}parseEventListenerName(e){let[r,n]=mJe(e,[null,e]);return{eventName:n,target:r}}parseLegacyAnimationEventName(e){let r=gJe(e,[e,null]);return{eventName:r[0],phase:r[1]===null?null:r[1].toLowerCase()}}_parseLegacyAnimationEvent(e,r,n,i,o,s){let{eventName:a,phase:u}=this.parseLegacyAnimationEventName(e),c=this._parseAction(r,i);o.push(new SM(a,u,Mi.LegacyAnimation,c,n,i,s)),a.length===0&&this._reportError("Animation event name is missing in binding",n),u?u!=="start"&&u!=="done"&&this._reportError(`The provided animation output phase value "${u}" for "@${a}" is not supported (use start or done)`,n):this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(e,r,n,i,o,s,a,u){let{eventName:c,target:l}=this.parseEventListenerName(e),d=this.errors.length,f=this._parseAction(r,o),p=this.errors.length===d;s.push([e,f.source]),n&&p&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",i);let m=Mi.Regular;n&&(m=Mi.TwoWay),e.startsWith(`${qU}${WD}`)&&(m=Mi.Animation),a.push(new SM(c,l,m,f,i,o,u))}_parseAction(e,r){let n=r&&r.start?r.start.offset:0;try{let i=this._exprParser.parseAction(e,r,n);return i&&this.errors.push(...i.errors),!i||i.ast instanceof Pi?(this._reportError("Empty expressions are not allowed",r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)):i}catch(i){return this._reportError(`${i}`,r),this._exprParser.wrapLiteralPrimitive("ERROR",r,n)}}_reportError(e,r,n=xd.ERROR){this.errors.push(new Pe(r,e,n))}_validatePropertyOrAttributeName(e,r,n){let i=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);i.error&&this._reportError(i.msg,r,xd.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof xo?this._isAllowedAssignmentEvent(e.ast):e instanceof fw?this._isAllowedAssignmentEvent(e.expression):e instanceof u_&&e.args.length===1&&e.receiver instanceof nl&&e.receiver.name==="$any"&&e.receiver.receiver instanceof ll?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof nl||e instanceof cy)&&!aH(e)}};function aH(t){return t instanceof sw||t instanceof aw?!0:t instanceof mw?aH(t.expression):t instanceof nl||t instanceof cy||t instanceof u_?aH(t.receiver):!1}function UU(t){return t[0]=="@"}function XD(t,e,r,n){let i,[o,s]=e?li(e,!1):[null,e],a=c=>{let[l,d]=li(c,!1),f=l??o,p=f?`:${f}:${d}`:d;return t.securityContext(p,r,n)},u=t.allKnownElementNames();return s===null?i=u.map(a):(i=[],t_.parse(s).forEach(c=>{let l=c.element?[c.element]:u;if(c.element&&!t.hasElement(c.element,[])){let p=`:${m3}:${c.element}`,m=`:${g3}:${c.element}`;t.hasElement(p,[])?l=[p]:t.hasElement(m,[])&&(l=[m])}let d=new Set(c.notSelectors.filter(p=>p.isElementSelector()).map(p=>p.element?.toLowerCase())),f=l.filter(p=>{let m=p.toLowerCase();return!d.has(m)&&!d.has(li(m)[1])});i.push(...f.map(a))})),i.length===0?[ft.NONE]:Array.from(new Set(i)).sort()}function wp(t,e){let r=e.start-t.start.offset,n=e.end-t.end.offset;return new $e(t.start.moveBy(r),t.end.moveBy(n),t.fullStart.moveBy(r),t.details)}var Dd=new __,ry="ng-template",cat="animate.";function JD(t){return t instanceof no}function lat(t){return JD(t)&&t.nodes.length===1&&t.nodes[0]instanceof PM}function dat(t,e,r,n,i,o,s,a,u,c){let l=new jw(t,r,n,i,o,s,a,u,c);return kd(l.root,e),l}function fat(t,e,r){let n=new GM(t.componentName,r,eo.DomOnly);for(let i of t.properties??[]){let o=ve.Property;i.name.startsWith("attr.")&&(i.name=i.name.substring(5),o=ve.Attribute),i.isLegacyAnimation&&(o=ve.LegacyAnimation),i.isAnimation&&(o=ve.Animation);let s=uye(e,t.componentSelector,i.name,o===ve.Attribute);pat(n,i,o,s)}for(let[i,o]of Object.entries(t.attributes)??[]){let s=uye(e,t.componentSelector,i,!0);hat(n,i,o,s)}for(let i of t.events??[])mat(n,i);return n}function uye(t,e,r,n){let i=t.calcPossibleSecurityContexts(e,r,n),o=XD(Dd,null,Dd.getMappedPropName(r),n),s=o.filter(c=>c!==ft.NONE),a=s.length;return a!==o.length&&a>0||s.some(c=>!i.includes(c))?o:i.filter(c=>c!==ft.NONE)}function pat(t,e,r,n){let i,o=e.expression.ast;o instanceof Qw?i=new en(o.strings,o.expressions.map(s=>it(s,t,e.sourceSpan)),[]):i=it(o,t,e.sourceSpan),t.root.update.push(my(t.root.xref,r,e.name,i,null,n,!1,!1,null,null,e.sourceSpan))}function hat(t,e,r,n){let i=my(t.root.xref,ve.Attribute,e,r,null,n,!0,!1,null,null,r.sourceSpan);t.root.update.push(i)}function mat(t,e){let r;if(e.type===Mi.Animation)r=h0e(t.root.xref,new pi,e.name,null,Hw(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[n,i]=e.type!==Mi.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];r=jH(t.root.xref,new pi,e.name,null,Hw(t.root,e.handler,e.handlerSpan),n,i,!0,e.sourceSpan)}t.root.create.push(r)}function kd(t,e){for(let r of e)if(r instanceof dl)gat(t,r);else if(r instanceof fs)yat(t,r);else if(r instanceof p_)vat(t,r);else if(r instanceof Yg)B0e(t,r,null);else if(r instanceof l_)U0e(t,r,null);else if(r instanceof CM)bat(t,r);else if(r instanceof xM)_at(t,r);else if(r instanceof dy)Eat(t,r);else if(r instanceof jye)Tat(t,r);else if(r instanceof f_)wat(t,r);else if(r instanceof OH)Aat(t,r);else if(!(r instanceof VT))throw new Error(`Unsupported template node: ${r.constructor.name}`)}function gat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof no||e.i18n instanceof $p))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=t.job.allocateXrefId(),[n,i]=li(e.name),o=ctt(i,r,_0e(n),e.i18n instanceof $p?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(o),Cat(t,o,e),G0e(o,e);let s=null;e.i18n instanceof no&&(s=t.job.allocateXrefId(),t.create.push(p3(s,e.i18n,void 0,e.startSourceSpan))),kd(t,e.children);let a=dtt(r,e.endSourceSpan??e.startSourceSpan);t.create.push(a),s!==null&&L.insertBefore(h3(s,e.endSourceSpan??e.startSourceSpan),a)}function yat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof no||e.i18n instanceof $p))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let r=t.job.allocateView(t.xref),n=e.tagName,i="";e.tagName&&([i,n]=li(e.tagName));let o=e.i18n instanceof $p?e.i18n:void 0,s=_0e(i),a=n===null?"":Gtt(n,s),u=xat(e)?io.NgTemplate:io.Structural,c=l0e(r.xref,u,n,a,s,o,e.startSourceSpan,e.sourceSpan);t.create.push(c),Oat(t,c,e,u),G0e(c,e),kd(r,e.children);for(let{name:l,value:d}of e.variables)r.contextVariables.set(l,d!==""?d:"$implicit");if(u===io.NgTemplate&&e.i18n instanceof no){let l=t.job.allocateXrefId();L.insertAfter(p3(l,e.i18n,void 0,e.startSourceSpan),r.create.head),L.insertBefore(h3(l,e.endSourceSpan??e.startSourceSpan),r.create.tail)}}function vat(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof $p))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=null;e.children.some(o=>!(o instanceof d3)&&(!(o instanceof Yg)||o.value.trim().length>0))&&(r=t.job.allocateView(t.xref),kd(r,e.children));let n=t.job.allocateXrefId(),i=btt(n,e.selector,e.i18n,r?.xref??null,e.sourceSpan);for(let o of e.attributes){let s=Dd.securityContext(e.name,o.name,!0);t.update.push(my(i.xref,ve.Attribute,o.name,C(o.value),null,s,!0,!1,null,Od(o.i18n),o.sourceSpan))}t.create.push(i)}function B0e(t,e,r){t.create.push(p0e(t.job.allocateXrefId(),e.value,r,e.sourceSpan))}function U0e(t,e,r){let n=e.value;if(n instanceof xo&&(n=n.ast),!(n instanceof Qw))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${n.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Pd))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let i=e.i18n instanceof Pd?e.i18n.children.filter(s=>s instanceof Iw).map(s=>s.name):[];if(i.length>0&&i.length!==n.expressions.length)throw Error(`Unexpected number of i18n placeholders (${n.expressions.length}) for BoundText with ${n.expressions.length} expressions`);let o=t.job.allocateXrefId();t.create.push(p0e(o,"",r,e.sourceSpan)),t.update.push(Qet(o,new en(n.strings,n.expressions.map(s=>it(s,t.job,null)),i),e.sourceSpan))}function bat(t,e){let r=null,n=[];for(let i=0;i<e.branches.length;i++){let o=e.branches[i],s=t.job.allocateView(t.xref),a=n3(t,s.xref,o);o.expressionAlias!==null&&s.contextVariables.set(o.expressionAlias.name,y0e);let u;if(o.i18n!==void 0){if(!(o.i18n instanceof Fp))throw Error(`Unhandled i18n metadata type for if block: ${o.i18n?.constructor.name}`);u=o.i18n}let l=(i===0?d0e:f0e)(s.xref,io.Block,a,"Conditional",pn.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(l),r===null&&(r=s.xref);let d=o.expression?it(o.expression,t.job,null):null,f=new BM(d,l.xref,l.handle,o.expressionAlias);n.push(f),kd(s,o.children)}t.update.push(a0e(r,null,n,e.sourceSpan))}function _at(t,e){if(e.groups.length===0)return;let r=null,n=[];for(let i=0;i<e.groups.length;i++){let o=e.groups[i],s=t.job.allocateView(t.xref),a=n3(t,s.xref,o),u;if(o.i18n!==void 0){if(!(o.i18n instanceof Fp))throw Error(`Unhandled i18n metadata type for switch block: ${o.i18n?.constructor.name}`);u=o.i18n}let l=(i===0?d0e:f0e)(s.xref,io.Block,a,"Case",pn.HTML,u,o.startSourceSpan,o.sourceSpan);t.create.push(l),r===null&&(r=s.xref);for(let d of o.cases){let f=d.expression?it(d.expression,t.job,e.startSourceSpan):null,p=new BM(f,l.xref,l.handle);n.push(p)}kd(s,o.children)}t.update.push(a0e(r,it(e.expression,t.job,null),n,e.sourceSpan))}function KD(t,e,r,n,i){if(r!==void 0&&!(r instanceof Fp))throw Error("Unhandled i18n metadata type for defer block");if(n===void 0)return null;let o=t.job.allocateView(t.xref);kd(o,n);let s=l0e(o.xref,io.Block,null,`Defer${e}`,pn.HTML,r,i,i);return t.create.push(s),s}function Eat(t,e){let r=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");r=t.job.deferMeta.blocks.get(e)??null}let n=KD(t,"",e.i18n,e.children,e.sourceSpan),i=KD(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),o=KD(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),s=KD(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),u=_tt(a,n.xref,n.handle,r,t.job.allDeferrableDepsFn,e.sourceSpan);u.placeholderView=o?.xref??null,u.placeholderSlot=o?.handle??null,u.loadingSlot=i?.handle??null,u.errorSlot=s?.handle??null,u.placeholderMinimumTime=e.placeholder?.minimumTime??null,u.loadingMinimumTime=e.loading?.minimumTime??null,u.loadingAfterTime=e.loading?.afterTime??null,u.flags=Sat(e),t.create.push(u);let c=[],l=[];VU("hydrate",e.hydrateTriggers,c,l,t,a),VU("none",e.triggers,c,l,t,a),VU("prefetch",e.prefetchTriggers,c,l,t,a),c.some(f=>f.modifier==="none")||l.some(f=>f.modifier==="none")||c.push(Ap(a,{kind:ir.Idle},"none",null)),t.create.push(c),t.update.push(l)}function Sat(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function VU(t,e,r,n,i,o){if(e.idle!==void 0){let s=Ap(o,{kind:ir.Idle},t,e.idle.sourceSpan);r.push(s)}if(e.immediate!==void 0){let s=Ap(o,{kind:ir.Immediate},t,e.immediate.sourceSpan);r.push(s)}if(e.timer!==void 0){let s=Ap(o,{kind:ir.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);r.push(s)}if(e.hover!==void 0){let s=Ap(o,{kind:ir.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);r.push(s)}if(e.interaction!==void 0){let s=Ap(o,{kind:ir.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);r.push(s)}if(e.viewport!==void 0){let s=Ap(o,{kind:ir.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?it(e.viewport.options,i.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);r.push(s)}if(e.never!==void 0){let s=Ap(o,{kind:ir.Never},t,e.never.sourceSpan);r.push(s)}if(e.when!==void 0){if(e.when.value instanceof Qw)throw new Error("Unexpected interpolation in defer block when trigger");let s=itt(o,it(e.when.value,i.job,e.when.sourceSpan),t,e.when.sourceSpan);n.push(s)}}function Tat(t,e){if(e.i18n instanceof no&&lat(e.i18n)){let r=t.job.allocateXrefId();t.create.push(Ttt(r,e.i18n,Uye(e.i18n).name,null));for(let[n,i]of Object.entries({...e.vars,...e.placeholders}))i instanceof l_?U0e(t,i,n):B0e(t,i,n);t.create.push(wtt(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function wat(t,e){let r=t.job.allocateView(t.xref),n=`\u0275$index_${r.xref}`,i=`\u0275$count_${r.xref}`,o=new Set;r.contextVariables.set(e.item.name,e.item.value);for(let b of e.contextVariables)b.value==="$index"&&o.add(b.name),b.name==="$index"?r.contextVariables.set("$index",b.value).set(n,b.value):b.name==="$count"?r.contextVariables.set("$count",b.value).set(i,b.value):r.aliases.add({kind:kn.Alias,name:null,identifier:b.name,expression:Iat(b,n,i)});let s=Mn(e.trackBy.span,e.sourceSpan),a=it(e.trackBy,t.job,s);kd(r,e.children);let u=null,c=null;e.empty!==null&&(u=t.job.allocateView(t.xref),kd(u,e.empty.children),c=n3(t,u.xref,e.empty));let l={$index:o,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Fp))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof Fp))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,f=e.empty?.i18n,p=n3(t,r.xref,e),m=ltt(r.xref,u?.xref??null,p,a,l,c,d,f,e.startSourceSpan,e.sourceSpan);t.create.push(m);let y=it(e.expression,t.job,Mn(e.expression.span,e.sourceSpan)),g=ntt(m.xref,m.handle,y,e.sourceSpan);t.update.push(g)}function Iat(t,e,r){switch(t.value){case"$index":return new Yn(e);case"$count":return new Yn(r);case"$first":return new Yn(e).identical(C(0));case"$last":return new Yn(e).identical(new Yn(r).minus(C(1)));case"$even":return new Yn(e).modulo(C(2)).identical(C(0));case"$odd":return new Yn(e).modulo(C(2)).notIdentical(C(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function Aat(t,e){let r=t.job.allocateXrefId();t.create.push(Ett(r,e.name,e.sourceSpan)),t.update.push(stt(r,e.name,it(e.value,t.job,e.valueSpan),e.sourceSpan))}function it(t,e,r){if(t instanceof xo)return it(t.ast,e,r);if(t instanceof nl)return t.receiver instanceof ll?new Yn(t.name):new hs(it(t.receiver,e,r),t.name,null,Mn(t.span,r));if(t instanceof u_){if(t.receiver instanceof ll)throw new Error("Unexpected ImplicitReceiver");return new Po(it(t.receiver,e,r),t.args.map(n=>it(n,e,r)),void 0,Mn(t.span,r))}else{if(t instanceof Io)return C(t.value,void 0,Mn(t.span,r));if(t instanceof Jb)switch(t.operator){case"+":return new oy(r_.Plus,it(t.expr,e,r),void 0,Mn(t.span,r));case"-":return new oy(r_.Minus,it(t.expr,e,r),void 0,Mn(t.span,r));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Xi){let n=Vtt.get(t.operation);if(n===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new wt(n,it(t.left,e,r),it(t.right,e,r),void 0,Mn(t.span,r))}else{if(t instanceof ow)return new Bp(e.root.xref);if(t instanceof cy)return new Md(it(t.receiver,e,r),it(t.key,e,r),void 0,Mn(t.span,r));if(t instanceof a_)throw new Error("AssertionError: Chain in unknown context");if(t instanceof ly){let n=t.keys.map((i,o)=>{let s=it(t.values[o],e,r);return i.kind==="spread"?new Rp(s):new o_(i.key,s,i.quoted)});return new $a(n,void 0,Mn(t.span,r))}else{if(t instanceof uw)return new cl(t.expressions.map(n=>it(n,e,r)));if(t instanceof mM)return new ul(it(t.condition,e,r),it(t.trueExp,e,r),it(t.falseExp,e,r),void 0,Mn(t.span,r));if(t instanceof fw)return it(t.expression,e,r);if(t instanceof gM)return new yy(e.allocateXrefId(),new pi,t.name,[it(t.exp,e,r),...t.args.map(n=>it(n,e,r))]);if(t instanceof aw)return new y_(it(t.receiver,e,r),it(t.key,e,r),Mn(t.span,r));if(t instanceof sw)return new g_(it(t.receiver,e,r),t.name);if(t instanceof vM)return new vy(it(t.receiver,e,r),t.args.map(n=>it(n,e,r)));if(t instanceof Pi)return new $w(Mn(t.span,r));if(t instanceof cw)return sJe(it(t.expression,e,r),Mn(t.span,r));if(t instanceof lw)return zw(it(t.expression,e,r));if(t instanceof dw)return new aM(it(t.expression,e,r),void 0,Mn(t.span,r));if(t instanceof hw)return cye(t,e,r);if(t instanceof pw)return new ZT(it(t.tag,e,r),cye(t.template,e,r),void 0,Mn(t.span,r));if(t instanceof mw)return new La(it(t.expression,e,r),void 0,Mn(t.span,r));if(t instanceof EM)return new i_(t.body,t.flags,r);if(t instanceof yM)return new sy(it(t.expression,e,r));if(t instanceof _M)return Nat(ms(t.parameters.map(n=>new An(n.name,Oo)),it(t.body,e,r)));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${r?.start.file.url}"`)}}}}function cye(t,e,r){return new JT(t.elements.map(n=>new uM(n.text,Mn(n.span,r))),t.expressions.map(n=>it(n,e,r)),Mn(t.span,r))}function uH(t,e,r,n){let i;return e instanceof Qw?i=new en(e.strings,e.expressions.map(o=>it(o,t,null)),Object.keys(Od(r)?.placeholders??{})):e instanceof pr?i=it(e,t,null):i=C(e),i}var V0e=new Map([[Ct.Property,ve.Property],[Ct.TwoWay,ve.TwoWayProperty],[Ct.Attribute,ve.Attribute],[Ct.Class,ve.ClassName],[Ct.Style,ve.StyleProperty],[Ct.LegacyAnimation,ve.LegacyAnimation],[Ct.Animation,ve.Animation]]);function xat(t){return li(t.tagName??"")[1]===ry}function Od(t){if(t==null)return null;if(!(t instanceof no))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function Cat(t,e,r){let n=new Array,i=new Set;for(let o of r.attributes){let[s,a]=li(r.name),u=s;if(!s)switch(e.namespace){case pn.SVG:u=m3;break;case pn.Math:u=g3;break}let c=Dd.securityContext(u?`:${u}:${a}`:a,o.name,!0);n.push(my(e.xref,ve.Attribute,o.name,uH(t.job,o.value,o.i18n),null,c,!0,!1,null,Od(o.i18n),o.sourceSpan)),o.i18n&&i.add(o.name)}for(let o of r.inputs)i.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.`),n.push(my(e.xref,V0e.get(o.type),o.name,uH(t.job,Gw(o.value),o.i18n),o.unit,o.securityContext,!1,!1,null,Od(o.i18n)??null,o.sourceSpan));t.create.push(n.filter(o=>o?.kind===v.ExtractedAttribute)),t.update.push(n.filter(o=>o?.kind===v.Binding));for(let o of r.outputs){if(o.type===Mi.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");o.type===Mi.TwoWay?t.create.push(m0e(e.xref,e.handle,o.name,e.tag,H0e(t,o.handler,o.handlerSpan),o.sourceSpan)):o.type===Mi.Animation?t.create.push(h0e(e.xref,e.handle,o.name,e.tag,Hw(t,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.target,!1,o.sourceSpan)):t.create.push(jH(e.xref,e.handle,o.name,e.tag,Hw(t,o.handler,o.handlerSpan),o.phase,o.target,!1,o.sourceSpan))}n.some(o=>o?.i18nMessage)!==null&&t.create.push(g0e(t.job.allocateXrefId(),new pi,e.xref))}function Oat(t,e,r,n){let i=new Array;for(let o of r.templateAttrs)if(o instanceof d_){let s=Dd.securityContext(ry,o.name,!0);i.push(zD(t,e.xref,Ct.Attribute,o.name,o.value,null,s,!0,n,Od(o.i18n),o.sourceSpan))}else i.push(zD(t,e.xref,o.type,o.name,Gw(o.value),o.unit,o.securityContext,!0,n,Od(o.i18n),o.sourceSpan));for(let o of r.attributes){let s=Dd.securityContext(ry,o.name,!0);i.push(zD(t,e.xref,Ct.Attribute,o.name,o.value,null,s,!1,n,Od(o.i18n),o.sourceSpan))}for(let o of r.inputs)i.push(zD(t,e.xref,o.type,o.name,Gw(o.value),o.unit,o.securityContext,!1,n,Od(o.i18n),o.sourceSpan));t.create.push(i.filter(o=>o?.kind===v.ExtractedAttribute)),t.update.push(i.filter(o=>o?.kind===v.Binding));for(let o of r.outputs){if(o.type===Mi.LegacyAnimation&&o.phase===null)throw Error("Animation listener should have a phase");if(n===io.NgTemplate&&(o.type===Mi.TwoWay?t.create.push(m0e(e.xref,e.handle,o.name,e.tag,H0e(t,o.handler,o.handlerSpan),o.sourceSpan)):t.create.push(jH(e.xref,e.handle,o.name,e.tag,Hw(t,o.handler,o.handlerSpan),o.phase,o.target,!1,o.sourceSpan))),n===io.Structural&&o.type!==Mi.LegacyAnimation){let s=Dd.securityContext(ry,o.name,!1);t.create.push(Ks(e.xref,ve.Property,null,o.name,null,null,null,s))}}i.some(o=>o?.i18nMessage)!==null&&t.create.push(g0e(t.job.allocateXrefId(),new pi,e.xref))}function zD(t,e,r,n,i,o,s,a,u,c,l){let d=typeof i=="string";if(u===io.Structural){if(!a)switch(r){case Ct.Property:case Ct.Class:case Ct.Style:return Ks(e,ve.Property,null,n,null,null,c,s);case Ct.TwoWay:return Ks(e,ve.TwoWayProperty,null,n,null,null,c,s)}if(!d&&(r===Ct.Attribute||r===Ct.LegacyAnimation||r===Ct.Animation))return null}let f=V0e.get(r);return u===io.NgTemplate&&(r===Ct.Class||r===Ct.Style||r===Ct.Attribute&&!d)&&(f=ve.Property),my(e,f,n,uH(t.job,i,c),o,s,d,a,u,c,l)}function Hw(t,e,r){e=Gw(e);let n=new Array,i=e instanceof a_?e.expressions:[e];if(i.length===0)throw new Error("Expected listener to have non-empty expression list.");let o=i.map(a=>it(a,t.job,r)),s=o.pop();return n.push(...o.map(a=>ys(new fi(a,a.sourceSpan)))),n.push(ys(new xn(s,s.sourceSpan))),n}function H0e(t,e,r){e=Gw(e);let n=new Array;if(e instanceof a_)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let i=it(e,t.job,r),o=new Yn("$event"),s=new jM(i,o);return n.push(ys(new fi(s))),n.push(ys(new xn(o))),n}function Gw(t){return t instanceof xo?t.ast:t}function G0e(t,e){Pat(t.localRefs);for(let{name:r,value:n}of e.references)t.localRefs.push({name:r,target:n})}function Pat(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function Mn(t,e){if(e===null)return null;let r=e.start.moveBy(t.start),n=e.start.moveBy(t.end),i=e.fullStart.moveBy(t.start);return new $e(r,n,i)}function n3(t,e,r){let n=null;for(let i of r.children)if(!(i instanceof d3||i instanceof OH)){if(n!==null)return null;if(i instanceof dl||i instanceof fs&&i.tagName!==null)n=i;else return null}if(n!==null){for(let o of n.attributes)if(!o.name.startsWith(cat)){let s=Dd.securityContext(ry,o.name,!0);t.update.push(my(e,ve.Attribute,o.name,C(o.value),null,s,!0,!1,null,Od(o.i18n),o.sourceSpan))}for(let o of n.inputs)if(o.type!==Ct.LegacyAnimation&&o.type!==Ct.Animation&&o.type!==Ct.Attribute){let s=Dd.securityContext(ry,o.name,!0);t.create.push(Ks(e,ve.Property,null,o.name,null,null,null,s))}let i=n instanceof dl?n.name:n.tagName;return i===ry?null:i}return null}function Nat(t){let e=new Set(t.params.map(r=>r.name));return pe(t,r=>{if(r instanceof _y)for(let n of r.params)e.add(n.name);else if(r instanceof Yn&&e.has(r.name))return pt(r.name);return r},ot.None)}var Dat=!1;function Mat(){return Dat}function i3(t,e){return c3(pt(S_).bitwiseAnd(C(t),null),e)}function Rat(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function kat(t,e){if(Array.isArray(t.predicate)){let r=[];return t.predicate.forEach(n=>{let i=n.split(",").map(o=>C(o.trim()));r.push(...i)}),e.getConstLiteral(or(r),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return me(T.resolveForwardRef).callFn([t.predicate.expression])}}function W0e(t,e,r){let n=[];return r!==void 0&&n.push(...r),t.isSignal&&n.push(new hs(pt(gs),t.propertyName)),n.push(kat(t,e),C(Rat(t))),t.read&&n.push(t.read),n}var VH=Symbol("queryAdvancePlaceholder");function K0e(t){let e=[],r=0,n=()=>{r>0&&(e.unshift(me(T.queryAdvance).callFn(r===1?[]:[C(r)]).toStmt()),r=0)};for(let i=t.length-1;i>=0;i--){let o=t[i];o===VH?r++:(n(),e.unshift(o))}return n(),e}function Lat(t,e,r){let n=[],i=[],o=Vye(c=>i.push(c),NH),s=null,a=null;t.forEach(c=>{let l=W0e(c,e);if(c.isSignal?(s??=me(T.viewQuerySignal),s=s.callFn(l)):(a??=me(T.viewQuery),a=a.callFn(l)),c.isSignal){i.push(VH);return}let d=o(),f=me(T.loadQuery).callFn([]),p=me(T.queryRefresh).callFn([d.set(f)]),m=pt(gs).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}),s!==null&&n.push(new fi(s)),a!==null&&n.push(new fi(a));let u=r?`${r}_Query`:null;return kp([new An(S_,ny),new An(gs,Oo)],[i3(1,n),i3(2,K0e(i))],Ra,null,u)}function $at(t,e,r){let n=[],i=[],o=Vye(c=>i.push(c),NH),s=null,a=null;for(let c of t){let l=W0e(c,e,[pt("dirIndex")]);if(c.isSignal?(s??=me(T.contentQuerySignal),s=s.callFn(l)):(a??=me(T.contentQuery),a=a.callFn(l)),c.isSignal){i.push(VH);continue}let d=o(),f=me(T.loadQuery).callFn([]),p=me(T.queryRefresh).callFn([d.set(f)]),m=pt(gs).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}s!==null&&n.push(new fi(s)),a!==null&&n.push(new fi(a));let u=r?`${r}_ContentQueries`:null;return kp([new An(S_,ny),new An(gs,Oo),new An("dirIndex",ny)],[i3(1,n),i3(2,K0e(i))],Ra,null,u)}var cH=class extends Wrt{constructor(){super(JV)}parse(e,r,n){return super.parse(e,r,n)}};function Fat(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(jat);return e===null||e[1]=="package"||e[1]=="asset"}var jat=/^([^:/?#]+):/,qat="select",Bat="link",Uat="rel",Vat="href",Hat="stylesheet",Gat="style",Wat=new Set([":svg:script","script"]),Kat="ngNonBindable",zat="ngProjectAs";function z0e(t){let e=null,r=null,n=null,i=!1,o="";for(let u of t.attrs){let c=u.name.toLowerCase();c==qat?e=u.value:c==Vat?r=u.value:c==Uat?n=u.value:u.name==Kat?i=!0:u.name==zat&&u.value.length>0&&(o=u.value)}e||="*";let s=t.name.toLowerCase(),a=Co.OTHER;return dV(s)?a=Co.NG_CONTENT:Gat===s?a=Co.STYLE:Wat.has(s)?a=Co.SCRIPT:s==Bat&&n==Hat&&(a=Co.STYLESHEET),new lH(a,e,r,i,o)}var Co;(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"})(Co||(Co={}));var lH=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,r,n,i,o){this.type=e,this.selectAttr=r,this.hrefAttr=n,this.nonBindable=i,this.projectAs=o}},Qat=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,Yat=/^track\s+([\S\s]*)/,Zat=/^(as\s+)(.*)/,v3=/^else[^\S\r\n]+if/,Xat=/^let\s+([\S\s]*)/,Jat=/^[$A-Z_][0-9A-Z_$]*$/i,lye=/(\s*)(\S+)(\s*)/,YT=new Set(["$index","$first","$last","$even","$odd","$count"]);function dye(t){return t==="empty"}function fye(t){return t==="else"||v3.test(t)}function eut(t,e,r,n){let i=sut(e),o=[],s=pye(t,i,n);s!==null&&o.push(new Xg(s.expression,Ir(r,t.children,t.children),s.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(v3.test(d.name)){let f=pye(d,i,n);if(f!==null){let p=Ir(r,d.children,d.children);o.push(new Xg(f.expression,p,f.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let f=Ir(r,d.children,d.children);o.push(new Xg(null,f,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let a=o.length>0?o[0].startSourceSpan:t.startSourceSpan,u=o.length>0?o[o.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,l=o[o.length-1];return l!==void 0&&(c=new $e(a.start,l.sourceSpan.end)),{node:new CM(o,c,t.startSourceSpan,u,t.nameSpan),errors:i}}function tut(t,e,r,n){let i=[],o=nut(t,i,n),s=null,a=null;for(let u of e)u.name==="empty"?a!==null?i.push(new Pe(u.sourceSpan,"@for loop can only have one @empty block")):u.parameters.length>0?i.push(new Pe(u.sourceSpan,"@empty block cannot have parameters")):a=new Sw(Ir(r,u.children,u.children),u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan,u.i18n):i.push(new Pe(u.sourceSpan,`Unrecognized @for loop block "${u.name}"`));if(o!==null)if(o.trackBy===null)i.push(new Pe(t.startSourceSpan,'@for loop must have a "track" expression'));else{let u=a?.endSourceSpan??t.endSourceSpan,c=new $e(t.sourceSpan.start,u?.end??t.sourceSpan.end);iut(o.trackBy.expression,o.trackBy.keywordSpan,i),s=new f_(o.itemName,o.expression,o.trackBy.expression,o.trackBy.keywordSpan,o.context,Ir(r,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,u,t.nameSpan,t.i18n)}return{node:s,errors:i}}function rut(t,e,r){let n=aut(t),i=t.parameters.length>0?Ww(t.parameters[0],r):r.parseBinding("",!1,t.sourceSpan,0),o=[],s=[],a=[],u=null,c=null;for(let d of t.children){if(!(d instanceof Gs))continue;if((d.name!=="case"||d.parameters.length===0)&&d.name!=="default"&&d.name!=="default never"){s.push(new OM(d.name,d.sourceSpan,d.nameSpan));continue}c!==null&&n.push(new Pe(d.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let f=d.name==="case",p=null;if(f)p=Ww(d.parameters[0],r);else if(d.name==="default never"){(d.children.length>0||d.endSourceSpan!==null&&d.endSourceSpan.start.offset!==d.endSourceSpan.end.offset)&&n.push(new Pe(d.sourceSpan,'@default block with "never" parameter cannot have a body')),a.length>0&&n.push(new Pe(d.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),c=new _V(d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);continue}let m=new bV(p,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan);if(a.push(m),d.children.length===0&&d.endSourceSpan!==null&&d.endSourceSpan.start.offset===d.endSourceSpan.end.offset){u===null&&(u=d.sourceSpan);continue}let g=d.sourceSpan,b=d.startSourceSpan;u!==null&&(g=new $e(u.start,d.sourceSpan.end),b=new $e(u.start,d.startSourceSpan.end),u=null);let _=new Ew(a,Ir(e,d.children,d.children),g,b,d.endSourceSpan,d.nameSpan,d.i18n);o.push(_),a=[]}return{node:new xM(i,o,s,c,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:n}}function nut(t,e,r){if(t.parameters.length===0)return e.push(new Pe(t.startSourceSpan,"@for loop does not have an expression")),null;let[n,...i]=t.parameters,o=uut(n,e)?.match(Qat);if(!o||o[2].trim().length===0)return e.push(new Pe(n.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,s,a]=o;YT.has(s)&&e.push(new Pe(n.sourceSpan,`@for loop item name cannot be one of ${Array.from(YT).join(", ")}.`));let u=n.expression.split(" ")[0],c=new $e(n.sourceSpan.start,n.sourceSpan.start.moveBy(u.length)),l={itemName:new Lp(s,"$implicit",c,c),trackBy:null,expression:Ww(n,r,a),context:Array.from(YT,d=>{let f=new $e(t.startSourceSpan.end,t.startSourceSpan.end);return new Lp(d,d,f,f)})};for(let d of i){let f=d.expression.match(Xat);if(f!==null){let m=new $e(d.sourceSpan.start.moveBy(f[0].length-f[1].length),d.sourceSpan.end);out(d.sourceSpan,f[1],m,s,l.context,e);continue}let p=d.expression.match(Yat);if(p!==null){if(l.trackBy!==null)e.push(new Pe(d.sourceSpan,'@for loop can only have one "track" expression'));else{let m=Ww(d,r,p[1]);m.ast instanceof Pi&&e.push(new Pe(t.startSourceSpan,'@for loop must have a "track" expression'));let y=new $e(d.sourceSpan.start,d.sourceSpan.start.moveBy(5));l.trackBy={expression:m,keywordSpan:y}}continue}e.push(new Pe(d.sourceSpan,`Unrecognized @for loop parameter "${d.expression}"`))}return l}function iut(t,e,r){let n=new dH;t.ast.visit(n),n.hasPipe&&r.push(new Pe(e,"Cannot use pipes in track expressions"))}function out(t,e,r,n,i,o){let s=e.split(","),a=r.start;for(let u of s){let c=u.split("="),l=c.length===2?c[0].trim():"",d=c.length===2?c[1].trim():"";if(l.length===0||d.length===0)o.push(new Pe(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!YT.has(d))o.push(new Pe(t,`Unknown "let" parameter variable "${d}". The allowed variables are: ${Array.from(YT).join(", ")}`));else if(l===n)o.push(new Pe(t,`Invalid @for loop "let" parameter. Variable cannot be called "${n}"`));else if(i.some(f=>f.name===l))o.push(new Pe(t,`Duplicate "let" parameter variable "${d}"`));else{let[,f,p]=c[0].match(lye)??[],m=f!==void 0&&c.length===2?new $e(a.moveBy(f.length),a.moveBy(f.length+p.length)):r,y;if(c.length===2){let[,b,_]=c[1].match(lye)??[];y=b!==void 0?new $e(a.moveBy(c[0].length+1+b.length),a.moveBy(c[0].length+1+b.length+_.length)):void 0}let g=new $e(m.start,y?.end??m.end);i.push(new Lp(l,d,g,m,y))}a=a.moveBy(u.length+1)}}function sut(t){let e=[],r=!1;for(let n=0;n<t.length;n++){let i=t[n];i.name==="else"?(r?e.push(new Pe(i.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&n<t.length-1?e.push(new Pe(i.startSourceSpan,"@else block must be last inside the conditional")):i.parameters.length>0&&e.push(new Pe(i.startSourceSpan,"@else block cannot have parameters")),r=!0):v3.test(i.name)||e.push(new Pe(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return e}function aut(t){let e=[],r=!1;if(t.parameters.length!==1)return e.push(new Pe(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let n of t.children)if(!(n instanceof qw||n instanceof by&&n.value.trim().length===0)){if(!(n instanceof Gs)||n.name!=="case"&&n.name!=="default"&&n.name!=="default never"){e.push(new Pe(n.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}n.name==="default never"?(r&&e.push(new Pe(n.startSourceSpan,"@switch block can only have one @default block")),r=!0):n.name==="default"?(r?e.push(new Pe(n.startSourceSpan,"@switch block can only have one @default block")):n.parameters.length>0&&e.push(new Pe(n.startSourceSpan,"@default block cannot have parameters")),r=!0):n.name==="case"&&n.parameters.length!==1&&e.push(new Pe(n.startSourceSpan,"@case block must have exactly one parameter"))}return e}function Ww(t,e,r){let n,i;return typeof r=="string"?(n=Math.max(0,t.expression.lastIndexOf(r)),i=n+r.length):(n=0,i=t.expression.length),e.parseBinding(t.expression.slice(n,i),!1,t.sourceSpan,t.sourceSpan.start.offset+n)}function pye(t,e,r){if(t.parameters.length===0)return e.push(new Pe(t.startSourceSpan,"Conditional block does not have an expression")),null;let n=Ww(t.parameters[0],r),i=null;for(let o=1;o<t.parameters.length;o++){let s=t.parameters[o],a=s.expression.match(Zat);if(a===null)e.push(new Pe(s.sourceSpan,`Unrecognized conditional parameter "${s.expression}"`));else if(t.name!=="if"&&!v3.test(t.name))e.push(new Pe(s.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(i!==null)e.push(new Pe(s.sourceSpan,'Conditional can only have one "as" expression'));else{let u=a[2].trim();if(Jat.test(u)){let c=s.sourceSpan.start.moveBy(a[1].length),l=new $e(c,c.moveBy(u.length));i=new Lp(u,u,l,l)}else e.push(new Pe(s.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:n,expressionAlias:i}}function uut(t,e){let r=t.expression,n=/^\s$/,i=0,o=0,s=r.length-1;for(let a=0;a<r.length;a++){let u=r[a];if(u==="(")o=a+1,i++;else{if(n.test(u))continue;break}}if(i===0)return r;for(let a=r.length-1;a>-1;a--){let u=r[a];if(u===")"){if(s=a,i--,i===0)break}else{if(n.test(u))continue;break}}return i!==0?(e.push(new Pe(t.sourceSpan,"Unclosed parentheses in expression")),null):r.slice(o,s)}var dH=class extends c_{hasPipe=!1;visitPipe(){this.hasPipe=!0}},cut=/^\d+\.?\d*(ms|s)?$/,lut=/^\s$/,hye=new Map([[Ws,to],[il,Ad],[ro,wn]]),Di;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Di||(Di={}));function dut({expression:t,sourceSpan:e},r,n){let i=t.indexOf("never"),o=new $e(e.start.moveBy(i),e.start.moveBy(i+5)),s=HH(t,e),a=GH(t,e);i===-1?n.push(new Pe(e,'Could not find "never" keyword in expression')):WH("never",r,n,new mV(o,e,s,null,a))}function HU({expression:t,sourceSpan:e},r,n,i){let o=t.indexOf("when"),s=new $e(e.start.moveBy(o),e.start.moveBy(o+4)),a=HH(t,e),u=GH(t,e);if(o===-1)i.push(new Pe(e,'Could not find "when" keyword in expression'));else{let c=Kw(t,o+1),l=r.parseBinding(t.slice(c),!1,e,e.start.offset+c);WH("when",n,i,new wM(l,e,a,s,u))}}function GU({expression:t,sourceSpan:e},r,n,i,o){let s=t.indexOf("on"),a=new $e(e.start.moveBy(s),e.start.moveBy(s+2)),u=HH(t,e),c=GH(t,e);if(s===-1)i.push(new Pe(e,'Could not find "on" keyword in expression'));else{let l=Kw(t,s+1),d=t.startsWith("hydrate");new fH(t,r,l,e,n,i,d?but:vut,d,u,a,c).parse()}}function HH(t,e){return t.startsWith("prefetch")?new $e(e.start,e.start.moveBy(8)):null}function GH(t,e){return t.startsWith("hydrate")?new $e(e.start,e.start.moveBy(7)):null}var fH=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,r,n,i,o,s,a,u,c,l,d){this.expression=e,this.bindingParser=r,this.start=n,this.span=i,this.triggers=o,this.errors=s,this.validator=a,this.isHydrationTrigger=u,this.prefetchSpan=c,this.onSourceSpan=l,this.hydrateSpan=d,this.tokens=new Vw().tokenize(e.slice(n))}parse(){for(;this.tokens.length>0&&this.index<this.tokens.length;){let e=this.token();if(!e.isIdentifier()){this.unexpectedToken(e);break}if(this.isFollowedByOrLast(Ni))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(ro)){this.advance();let r=this.errors.length,n=this.consumeParameters();if(this.errors.length!==r)break;this.consumeTrigger(e,n),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,r){let n=this.span.start.moveBy(this.start+e.index-this.tokens[0].index),i=new $e(n,n.moveBy(e.strValue.length)),o=n.moveBy(this.token().end-e.index),s=e.index===0,a=s?this.onSourceSpan:null,u=s?this.prefetchSpan:null,c=s?this.hydrateSpan:null,l=new $e(s?this.span.start:n,o);try{switch(e.toString()){case Di.IDLE:this.trackTrigger("idle",fut(r,i,l,u,a,c));break;case Di.TIMER:this.trackTrigger("timer",put(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Di.INTERACTION:this.trackTrigger("interaction",gut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Di.IMMEDIATE:this.trackTrigger("immediate",hut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Di.HOVER:this.trackTrigger("hover",mut(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Di.VIEWPORT:this.trackTrigger("viewport",yut(this.start,this.isHydrationTrigger,this.bindingParser,r,i,l,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(ro))return this.unexpectedToken(this.token()),e;this.advance();let r=[],n=[];for(;this.index<this.tokens.length;){let i=this.token();if(i.isCharacter(wn)&&r.length===0){n.length&&e.push({expression:this.tokenRangeText(n),start:n[0].index});break}if(i.type===Re.Character&&hye.has(i.numValue)&&r.push(hye.get(i.numValue)),r.length>0&&i.isCharacter(r[r.length-1])&&r.pop(),r.length===0&&i.isCharacter(Ni)&&n.length>0){e.push({expression:this.tokenRangeText(n),start:n[0].index}),this.advance(),n=[];continue}n.push(i),this.advance()}return(!this.token().isCharacter(wn)||r.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Ni)&&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,r){WH(e,this.triggers,this.errors,r)}error(e,r){let n=this.span.start.moveBy(this.start+e.index),i=n.moveBy(e.end-e.index);this.errors.push(new Pe(new $e(n,i),r))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function WH(t,e,r,n){e[t]?r.push(new Pe(n.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=n}function fut(t,e,r,n,i,o){if(t.length>0)throw new Error(`"${Di.IDLE}" trigger cannot have parameters`);return new gV(e,r,n,i,o)}function put(t,e,r,n,i,o){if(t.length!==1)throw new Error(`"${Di.TIMER}" trigger must have exactly one parameter`);let s=o3(t[0].expression);if(s===null)throw new Error(`Could not parse time value of trigger "${Di.TIMER}"`);return new vV(s,e,r,n,i,o)}function hut(t,e,r,n,i,o){if(t.length>0)throw new Error(`"${Di.IMMEDIATE}" trigger cannot have parameters`);return new yV(e,r,n,i,o)}function mut(t,e,r,n,i,o,s){return s(Di.HOVER,t),new IM(t[0]?.expression??null,e,r,n,i,o)}function gut(t,e,r,n,i,o,s){return s(Di.INTERACTION,t),new AM(t[0]?.expression??null,e,r,n,i,o)}function yut(t,e,r,n,i,o,s,a,u,c){c(Di.VIEWPORT,n);let l,d;if(n.length===0)l=d=null;else if(!n[0].expression.startsWith("{"))l=n[0].expression,d=null;else{let f=r.parseBinding(n[0].expression,!1,o,o.start.offset+t+n[0].start);if(f.ast instanceof ly){if(f.ast.keys.some(m=>m.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(f.ast.keys.some(m=>m.kind==="property"&&m.key==="root"))throw new Error('The "root" option is not supported in the options parameter of the "viewport" trigger')}else throw new Error('Options parameter of the "viewport" trigger must be an object literal');let p=f.ast.keys.findIndex(m=>m.kind==="property"&&m.key==="trigger");if(p===-1)l=null,d=f.ast;else{let m=f.ast.values[p],y=(g,b)=>b!==p;if(!(m instanceof nl)||!(m.receiver instanceof ll))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');l=m.name,d=new ly(f.ast.span,f.ast.sourceSpan,f.ast.keys.filter(y),f.ast.values.filter(y))}}if(e&&l!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(d){let f=pH.findDynamicNode(d);if(f!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${f.constructor.name}" was found`)}return new yw(l,d,i,o,s,a,u)}function vut(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function but(t,e){if(t===Di.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 Kw(t,e=0){let r=!1;for(let n=e;n<t.length;n++)if(lut.test(t[n]))r=!0;else if(r)return n;return-1}function o3(t){let e=t.match(cut);if(!e)return null;let[r,n]=e;return parseFloat(r)*(n==="s"?1e3:1)}var pH=class t extends c_{dynamicNode=null;static findDynamicNode(e){let r=new t;return r.visit(e),r.dynamicNode}visit(e){!(e instanceof xo)&&!(e instanceof Io)&&!(e instanceof uw)&&!(e instanceof ly)?this.dynamicNode=e:super.visit(e)}},_ut=/^prefetch\s+when\s/,Eut=/^prefetch\s+on\s/,Sut=/^hydrate\s+when\s/,Tut=/^hydrate\s+on\s/,wut=/^hydrate\s+never(\s*)$/,Q0e=/^minimum\s/,Iut=/^after\s/,Aut=/^when\s/,xut=/^on\s/;function hH(t){return t==="placeholder"||t==="loading"||t==="error"}function Cut(t,e,r,n){let i=[],{placeholder:o,loading:s,error:a}=Out(e,i,r),{triggers:u,prefetchTriggers:c,hydrateTriggers:l}=Mut(t,n,i),d=t.endSourceSpan,f=t.sourceSpan.end;if(e.length>0){let y=e[e.length-1];d=y.endSourceSpan,f=y.sourceSpan.end}let p=new $e(t.sourceSpan.start,f);return{node:new dy(Ir(r,t.children,t.children),u,c,l,o,s,a,t.nameSpan,p,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:i}}function Out(t,e,r){let n=null,i=null,o=null;for(let s of t)try{if(!hH(s.name)){e.push(new Pe(s.startSourceSpan,`Unrecognized block "@${s.name}"`));break}switch(s.name){case"placeholder":n!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @placeholder block")):n=Put(s,r);break;case"loading":i!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @loading block")):i=Nut(s,r);break;case"error":o!==null?e.push(new Pe(s.startSourceSpan,"@defer block can only have one @error block")):o=Dut(s,r);break}}catch(a){e.push(new Pe(s.startSourceSpan,a.message))}return{placeholder:n,loading:i,error:o}}function Put(t,e){let r=null;for(let n of t.parameters)if(Q0e.test(n.expression)){if(r!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=o3(n.expression.slice(Kw(n.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');r=i}else throw new Error(`Unrecognized parameter in @placeholder block: "${n.expression}"`);return new vw(Ir(e,t.children,t.children),r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Nut(t,e){let r=null,n=null;for(let i of t.parameters)if(Iut.test(i.expression)){if(r!=null)throw new Error('@loading block can only have one "after" parameter');let o=o3(i.expression.slice(Kw(i.expression)));if(o===null)throw new Error('Could not parse time value of parameter "after"');r=o}else if(Q0e.test(i.expression)){if(n!=null)throw new Error('@loading block can only have one "minimum" parameter');let o=o3(i.expression.slice(Kw(i.expression)));if(o===null)throw new Error('Could not parse time value of parameter "minimum"');n=o}else throw new Error(`Unrecognized parameter in @loading block: "${i.expression}"`);return new bw(Ir(e,t.children,t.children),r,n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Dut(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new _w(Ir(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function Mut(t,e,r,n){let i={},o={},s={};for(let a of t.parameters)Aut.test(a.expression)?HU(a,e,i,r):xut.test(a.expression)?GU(a,e,i,r):_ut.test(a.expression)?HU(a,e,o,r):Eut.test(a.expression)?GU(a,e,o,r):Sut.test(a.expression)?HU(a,e,s,r):Tut.test(a.expression)?GU(a,e,s,r):wut.test(a.expression)?dut(a,s,r):r.push(new Pe(a.sourceSpan,"Unrecognized trigger"));return s.never&&Object.keys(s).length>1&&r.push(new Pe(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:i,prefetchTriggers:o,hydrateTriggers:s}}var Rut=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,mye=1,gye=2,yye=3,vye=4,bye=5,kut=6,LT=7,Ip={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},WU="*",Lut=new Set(["link","style","script","ng-template","ng-container","ng-content"]),$ut=new Set(["ngProjectAs","ngNonBindable"]);function Fut(t,e,r){let n=new mH(e,r),i=Ir(n,t,t),o=e.errors.concat(n.errors),s={nodes:i,errors:o,styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return r.collectCommentNodes&&(s.commentNodes=n.commentNodes),s}var mH=class{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(e,r){this.bindingParser=e,this.options=r}visitElement(e){let r=JD(e.i18n);r&&(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 n=z0e(e);if(n.type===Co.SCRIPT)return null;if(n.type===Co.STYLE){let b=jut(e);return b!==null&&this.styles.push(b),null}else if(n.type===Co.STYLESHEET&&Fat(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let i=$Je(e.name),{attributes:o,boundEvents:s,references:a,variables:u,templateVariables:c,elementHasInlineTemplate:l,parsedProperties:d,templateParsedProperties:f,i18nAttrsMeta:p}=this.prepareAttributes(e.attrs,i),m=this.extractDirectives(e),y;n.nonBindable?y=Ir(_ye,e.children).flat(1/0):y=Ir(this,e.children,e.children);let g;if(n.type===Co.NG_CONTENT){let b=n.selectAttr,_=e.attrs.map(S=>this.visitAttribute(S));g=new p_(b,_,y,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(b)}else if(i){let b=this.categorizePropertyAttributes(e.name,d,p);g=new fs(e.name,o,b.bound,s,m,[],y,a,u,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let b=this.categorizePropertyAttributes(e.name,d,p);if(e.name==="ng-container")for(let _ of b.bound)_.type===Ct.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",_.sourceSpan);g=new dl(e.name,o,b.bound,s,m,y,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return l&&(g=this.wrapInTemplate(g,f,c,p,i,r)),r&&(this.inI18nBlock=!1),g}visitAttribute(e){return new d_(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(!JD(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let r=e.i18n,n={},i={};return Object.keys(r.placeholders).forEach(o=>{let s=r.placeholders[o];if(o.startsWith(BJe)){let a=o.trim(),u=this.bindingParser.parseInterpolationExpression(s.text,s.sourceSpan);n[a]=new l_(u,s.sourceSpan)}else i[o]=this._visitTextWithInterpolation(s.text,s.sourceSpan,null)}),new jye(n,i,e.sourceSpan,r)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new d3(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,r){let n=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return n.errors.length===0&&n.ast instanceof Pi&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new OH(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let r=JD(e.i18n);if(r&&(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&&Lut.has(e.tagName))return this.reportError(`Tag name "${e.tagName}" cannot be used as a component tag`,e.startSourceSpan),null;let{attributes:n,boundEvents:i,references:o,templateVariables:s,elementHasInlineTemplate:a,parsedProperties:u,templateParsedProperties:c,i18nAttrsMeta:l}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(o);let d=this.extractDirectives(e),f;e.attrs.find(y=>y.name==="ngNonBindable")?f=Ir(_ye,e.children).flat(1/0):f=Ir(this,e.children,e.children);let p=this.categorizePropertyAttributes(e.tagName,u,l),m=new VT(e.componentName,e.tagName,e.fullName,n,p.bound,i,d,f,o,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(m=this.wrapInTemplate(m,c,s,l,!1,r)),r&&(this.inI18nBlock=!1),m}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(e,r){let n=Array.isArray(r)?r.indexOf(e):-1;if(n===-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 i=null;switch(e.name){case"defer":i=Cut(e,this.findConnectedBlocks(n,r,hH),this,this.bindingParser);break;case"switch":i=rut(e,this,this.bindingParser);break;case"for":i=tut(e,this.findConnectedBlocks(n,r,dye),this,this.bindingParser);break;case"if":i=eut(e,this.findConnectedBlocks(n,r,fye),this,this.bindingParser);break;default:let o;hH(e.name)?(o=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):dye(e.name)?(o=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):fye(e.name)?(o=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):o=`Unrecognized block @${e.name}.`,i={node:new OM(e.name,e.sourceSpan,e.nameSpan),errors:[new Pe(e.sourceSpan,o)]};break}return this.errors.push(...i.errors),i.node}findConnectedBlocks(e,r,n){let i=[];for(let o=e+1;o<r.length;o++){let s=r[o];if(!(s instanceof qw)){if(s instanceof by&&s.value.trim().length===0){this.processedNodes.add(s);continue}if(!(s instanceof Gs)||!n(s.name))break;i.push(s),this.processedNodes.add(s)}}return i}categorizePropertyAttributes(e,r,n){let i=[],o=[];return r.forEach(s=>{let a=n[s.name];if(s.isLiteral)o.push(new d_(s.name,s.expression.source||"",s.sourceSpan,s.keySpan,s.valueSpan,a));else{let u=s.name.toLowerCase().startsWith("attr.on"),c=this.bindingParser.createBoundElementProperty(e,s,!u,!1);i.push(pV.fromBoundElementProperty(c,a))}}),{bound:i,literal:o}}prepareAttributes(e,r){let n=[],i=[],o=[],s=[],a=[],u={},c=[],l=[],d=!1;for(let f of e){let p=!1,m=Eye(f.name),y=!1;if(f.i18n&&(u[f.name]=f.i18n),m.startsWith(WU)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",f.sourceSpan),y=!0,d=!0;let g=f.value,b=m.substring(WU.length),_=[],S=f.valueSpan?f.valueSpan.fullStart.offset:f.sourceSpan.fullStart.offset+f.name.length;this.bindingParser.parseInlineTemplateBinding(b,g,f.sourceSpan,S,[],c,_,!0),l.push(..._.map(x=>new Lp(x.name,x.value,x.sourceSpan,x.keySpan,x.valueSpan)))}else p=this.parseAttribute(r,f,[],n,i,o,s);!p&&!y&&a.push(this.visitAttribute(f))}return{attributes:a,boundEvents:i,references:s,variables:o,templateVariables:l,elementHasInlineTemplate:d,parsedProperties:n,templateParsedProperties:c,i18nAttrsMeta:u}}parseAttribute(e,r,n,i,o,s,a){let u=Eye(r.name),c=r.value,l=r.sourceSpan,d=r.valueSpan?r.valueSpan.fullStart.offset:l.fullStart.offset;function f(b,_,S){let x=r.name.length-u.length,N=b.start.moveBy(_.length+x),z=N.moveBy(S.length);return new $e(N,z,N,S)}let p=u.match(Rut);if(p){if(p[mye]!=null){let b=p[LT],_=f(l,p[mye],b);this.bindingParser.parsePropertyBinding(b,c,!1,!1,l,d,r.valueSpan,n,i,_)}else if(p[gye])if(e){let b=p[LT],_=f(l,p[gye],b);this.parseVariable(b,c,l,_,r.valueSpan,s)}else this.reportError('"let-" is only supported on ng-template elements.',l);else if(p[yye]){let b=p[LT],_=f(l,p[yye],b);this.parseReference(b,c,l,_,r.valueSpan,a)}else if(p[vye]){let b=[],_=p[LT],S=f(l,p[vye],_);this.bindingParser.parseEvent(_,c,!1,l,r.valueSpan||l,n,b,S),KU(b,o)}else if(p[bye]){let b=p[LT],_=f(l,p[bye],b);this.bindingParser.parsePropertyBinding(b,c,!1,!0,l,d,r.valueSpan,n,i,_),this.parseAssignmentEvent(b,c,l,r.valueSpan,n,o,_,d)}else if(p[kut]){let b=f(l,"",u);this.bindingParser.parseLiteralAttr(u,c,l,d,r.valueSpan,n,i,b)}return!0}let m=null;if(u.startsWith(Ip.BANANA_BOX.start)?m=Ip.BANANA_BOX:u.startsWith(Ip.PROPERTY.start)?m=Ip.PROPERTY:u.startsWith(Ip.EVENT.start)&&(m=Ip.EVENT),m!==null&&u.endsWith(m.end)&&u.length>m.start.length+m.end.length){let b=u.substring(m.start.length,u.length-m.end.length),_=f(l,m.start,b);if(m.start===Ip.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(b,c,!1,!0,l,d,r.valueSpan,n,i,_),this.parseAssignmentEvent(b,c,l,r.valueSpan,n,o,_,d);else if(m.start===Ip.PROPERTY.start)this.bindingParser.parsePropertyBinding(b,c,!1,!1,l,d,r.valueSpan,n,i,_);else{let S=[];this.bindingParser.parseEvent(b,c,!1,l,r.valueSpan||l,n,S,_),KU(S,o)}return!0}let y=f(l,"",u);return this.bindingParser.parsePropertyInterpolation(u,c,l,r.valueSpan,n,i,y,r.valueTokens??null)}extractDirectives(e){let r=e instanceof Ji?e.tagName:e.name,n=[],i=new Set;for(let o of e.directives){let s=!1;for(let p of o.attrs)p.name.startsWith(WU)?(s=!0,this.reportError(`Shorthand template syntax "${p.name}" is not supported inside a directive context`,p.sourceSpan)):$ut.has(p.name)&&(s=!0,this.reportError(`Attribute "${p.name}" is not supported in a directive context`,p.sourceSpan));if(!s&&i.has(o.name)&&(s=!0,this.reportError(`Cannot apply directive "${o.name}" multiple times on the same element`,o.sourceSpan)),s)continue;let{attributes:a,parsedProperties:u,boundEvents:c,references:l,i18nAttrsMeta:d}=this.prepareAttributes(o.attrs,!1);this.validateSelectorlessReferences(l);let{bound:f}=this.categorizePropertyAttributes(r,u,d);for(let p of f)p.type!==Ct.Property&&p.type!==Ct.TwoWay&&(s=!0,this.reportError("Binding is not supported in a directive context",p.sourceSpan));s||(i.add(o.name),n.push(new Fye(o.name,a,f,c,l,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,void 0)))}return n}filterAnimationAttributes(e){return e.filter(r=>!r.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(r=>r.type!==Ct.Animation)}wrapInTemplate(e,r,n,i,o,s){let a=this.categorizePropertyAttributes("ng-template",r,i),u=[];a.literal.forEach(f=>u.push(f)),a.bound.forEach(f=>u.push(f));let c={attributes:[],inputs:[],outputs:[]};(e instanceof dl||e instanceof VT)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let l=o&&s?void 0:e.i18n,d;return e instanceof VT?d=e.tagName:e instanceof fs?d=null:d=e.name,new fs(d,c.attributes,c.inputs,c.outputs,[],u,[e],[],n,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,l)}_visitTextWithInterpolation(e,r,n,i){let o=A0e(e),s=this.bindingParser.parseInterpolation(o,r,n);return s?new l_(s,r,i):new Yg(o,r)}parseVariable(e,r,n,i,o,s){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):e.length===0&&this.reportError("Variable does not have a name",n),s.push(new Lp(e,r,n,i,o))}parseReference(e,r,n,i,o,s){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):e.length===0?this.reportError("Reference does not have a name",n):s.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),s.push(new Tw(e,r,n,i,o))}parseAssignmentEvent(e,r,n,i,o,s,a,u){let c=[];this.bindingParser.parseEvent(`${e}Change`,r,!0,n,i||n,o,c,a),KU(c,s)}validateSelectorlessReferences(e){if(e.length===0)return;let r=new Set;for(let n of e)n.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",n.valueSpan||n.sourceSpan):r.has(n.name)?this.reportError("Duplicate reference names are not allowed",n.sourceSpan):r.add(n.name)}reportError(e,r,n=xd.ERROR){this.errors.push(new Pe(r,e,n))}},gH=class{visitElement(e){let r=z0e(e);if(r.type===Co.SCRIPT||r.type===Co.STYLE||r.type===Co.STYLESHEET)return null;let n=Ir(this,e.children,null);return new dl(e.name,Ir(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new d_(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Yg(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,r){let n=[new Yg(e.startSourceSpan.toString(),e.startSourceSpan),...Ir(this,e.children)];return e.endSourceSpan!==null&&n.push(new Yg(e.endSourceSpan.toString(),e.endSourceSpan)),n}visitBlockParameter(e,r){return null}visitLetDeclaration(e,r){return new Yg(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,r){let n=Ir(this,e.children,null);return new dl(e.fullName,Ir(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,r){return null}},_ye=new gH;function Eye(t){return/^data-/i.test(t)?t.substring(5):t}function KU(t,e){e.push(...t.map(r=>hV.fromParsedEvent(r)))}function jut(t){return t.children.length!==1||!(t.children[0]instanceof by)?null:t.children[0].value}var qut=[" ",`
|
|
264
264
|
`,"\r"," "];function But(t,e,r={}){let{preserveWhitespaces:n,enableI18nLegacyMessageIdFormat:i}=r,o=r.enableSelectorless??!1,s=s3(o),u=new cH().parse(t,e,{leadingTriviaChars:qut,...r,tokenizeExpansionForms:!0,tokenizeBlocks:r.enableBlockSyntax??!0,tokenizeLet:r.enableLetSyntax??!0,selectorlessEnabled:o});if(!r.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){let x={preserveWhitespaces:n,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return r.collectCommentNodes&&(x.commentNodes=[]),x}let c=u.rootNodes,l=!(r.preserveSignificantWhitespace??!0),d=new e3(!n,i,r.preserveSignificantWhitespace,l),f=d.visitAllWithErrors(c);if(!r.alwaysAttemptHtmlToR3AstConversion&&f.errors&&f.errors.length>0){let x={preserveWhitespaces:n,errors:f.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return r.collectCommentNodes&&(x.commentNodes=[]),x}c=f.rootNodes,n||(c=Ir(new XM(!0,void 0,!1),c),d.hasI18nMeta&&(c=Ir(new e3(!1,void 0,!0,l),c)));let{nodes:p,errors:m,styleUrls:y,styles:g,ngContentSelectors:b,commentNodes:_}=Fut(c,s,{collectCommentNodes:!!r.collectCommentNodes});m.push(...u.errors,...f.errors);let S={preserveWhitespaces:n,errors:m.length>0?m:null,nodes:p,styleUrls:y,styles:g,ngContentSelectors:b};return r.collectCommentNodes&&(S.commentNodes=_),S}var Uut=new __;function s3(t=!1){return new sH(new JM(new Vw,t),Uut,[])}var Y0e="%COMP%",Vut=`_nghost-${Y0e}`,Hut=`_ngcontent-${Y0e}`;function Z0e(t,e,r){let n=new jp,i=AH(t.selector);return n.set("type",t.type.value),i.length>0&&n.set("selectors",Kb(i)),t.queries.length>0&&n.set("contentQueries",$at(t.queries,e,t.name)),t.viewQueries.length&&n.set("viewQuery",Lat(t.viewQueries,e,t.name)),n.set("hostBindings",Xut(t.host,t.typeSourceSpan,r,e,t.selector||"",t.name,n)),n.set("inputs",Yme(t.inputs,!0)),n.set("outputs",Yme(t.outputs)),t.exportAs!==null&&n.set("exportAs",or(t.exportAs.map(o=>C(o)))),t.isStandalone===!1&&n.set("standalone",C(!1)),t.isSignal&&n.set("signals",C(!0)),n}function X0e(t,e){let r=[],n=e.providers,i=e.viewProviders;if(n||i){let o=[n||new cl([])];i&&o.push(i),r.push(me(T.ProvidersFeature).callFn(o))}if(e.hostDirectives?.length&&r.push(me(T.HostDirectivesFeature).callFn([nct(e.hostDirectives)])),e.usesInheritance&&r.push(me(T.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&r.push(me(T.NgOnChangesFeature)),e.controlCreate!==null&&r.push(me(T.ControlFeature).callFn([C(e.controlCreate.passThroughInput)])),"externalStyles"in e&&e.externalStyles?.length){let o=e.externalStyles.map(s=>C(s));r.push(me(T.ExternalStylesFeature).callFn([or(o)]))}r.length&&t.set("features",or(r))}function Gut(t,e,r){let n=Z0e(t,e,r);X0e(n,t);let i=me(T.defineDirective).callFn([n.toLiteralMap()],void 0,!0),o=Zut(t);return{expression:i,type:o,statements:[]}}function Wut(t,e,r){let n=Z0e(t,e,r);X0e(n,t);let i=t.selector&&t_.parse(t.selector),o=i&&i[0];if(o){let m=o.getAttrs();m.length&&n.set("attrs",e.getConstLiteral(or(m.map(y=>y!=null?C(y):C(void 0))),!0))}let s=t.name,a=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let m=`${s}_DeferFn`;e.statements.push(new Ln(m,t.defer.dependenciesFn,void 0,Xn.Final)),a=pt(m)}let u=t.isStandalone&&!t.hasDirectiveDependencies?eo.DomOnly:eo.Full,c=dat(t.name,t.template.nodes,e,u,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a,t.relativeTemplatePath,Mat());F0e(c,ue.Tmpl);let l=nat(c,e);if(c.contentSelectors!==null&&n.set("ngContentSelectors",c.contentSelectors),n.set("decls",C(c.root.decls)),n.set("vars",C(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?n.set("consts",ms([],[...c.constsInitializers,new xn(or(c.consts))])):n.set("consts",or(c.consts))),n.set("template",l),t.declarationListEmitMode!==3&&t.declarations.length>0)n.set("dependencies",zut(or(t.declarations.map(m=>m.type)),t.declarationListEmitMode));else if(t.declarationListEmitMode===3){let m=[t.type.value];t.rawImports&&m.push(t.rawImports),n.set("dependencies",me(T.getComponentDepsFactory).callFn(m))}t.encapsulation===null&&(t.encapsulation=Op.Emulated);let d=!!t.externalStyles?.length;if(t.styles&&t.styles.length){let y=(t.encapsulation==Op.Emulated?rct(t.styles,Hut,Vut):t.styles).reduce((g,b)=>(b.trim().length>0&&g.push(e.getConstLiteral(C(b))),g),[]);y.length>0&&(d=!0,n.set("styles",or(y)))}!d&&t.encapsulation===Op.Emulated&&(t.encapsulation=Op.None),t.encapsulation!==Op.Emulated&&n.set("encapsulation",C(t.encapsulation)),t.animations!==null&&n.set("data",Ys([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==rM.Default?n.set("changeDetection",C(t.changeDetection)):typeof t.changeDetection=="object"&&n.set("changeDetection",t.changeDetection));let f=me(T.defineComponent).callFn([n.toLiteralMap()],void 0,!0),p=Kut(t);return{expression:f,type:p,statements:[]}}function Kut(t){let e=J0e(t);return e.push(vH(t.template.ngContentSelectors)),e.push(ci(C(t.isStandalone))),e.push(eve(t)),t.isSignal&&e.push(ci(C(t.isSignal))),ci(me(T.ComponentDeclaration,e))}function zut(t,e){switch(e){case 0:return t;case 1:return ms([],t);case 2:let r=t.prop("map").callFn([me(T.resolveForwardRef)]);return ms([],r);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function Qut(t){return ci(C(t))}function yH(t){let e=Object.keys(t).map(r=>{let n=Array.isArray(t[r])?t[r][0]:t[r];return{key:r,value:C(n),quoted:!0}});return Ys(e)}function vH(t){return t.length>0?ci(or(t.map(e=>C(e)))):al}function J0e(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[l3(t.type.type,t.typeArgumentCount),e!==null?Qut(e):al,t.exportAs!==null?vH(t.exportAs):al,ci(Yut(t)),ci(yH(t.outputs)),vH(t.queries.map(r=>r.propertyName))]}function Yut(t){return Ys(Object.keys(t.inputs).map(e=>{let r=t.inputs[e],n=[{key:"alias",value:C(r.bindingPropertyName),quoted:!0},{key:"required",value:C(r.required),quoted:!0}];return r.isSignal&&n.push({key:"isSignal",value:C(r.isSignal),quoted:!0}),{key:e,value:Ys(n),quoted:!0}}))}function Zut(t){let e=J0e(t);return e.push(al),e.push(ci(C(t.isStandalone))),e.push(eve(t)),t.isSignal&&e.push(ci(C(t.isSignal))),ci(me(T.DirectiveDeclaration,e))}function Xut(t,e,r,n,i,o,s){let a=r.createBoundHostProperties(t.properties,e),u=r.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=C(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=C(t.specialAttributes.classAttr));let c=fat({componentName:o,componentSelector:i,properties:a,events:u,attributes:t.attributes},r,n);F0e(c,ue.Host),s.set("hostAttrs",c.root.attributes);let l=c.root.vars;return l!==null&&l>0&&s.set("hostVars",C(l)),iat(c)}function Jut(t){let e={},r={},n={},i={};for(let o of Object.keys(t)){let s=t[o];if(o.startsWith("(")&&o.endsWith(")")){if(typeof s!="string")throw new Error("Event binding must be string");r[o.slice(1,-1)]=s}else if(o.startsWith("[")&&o.endsWith("]")){if(typeof s!="string")throw new Error("Property binding must be string");n[o.slice(1,-1)]=s}else switch(o){case"class":if(typeof s!="string")throw new Error("Class binding must be string");i.classAttr=s;break;case"style":if(typeof s!="string")throw new Error("Style binding must be string");i.styleAttr=s;break;default:typeof s=="string"?e[o]=C(s):e[o]=s}}return{attributes:e,listeners:r,properties:n,specialAttributes:i}}function ect(t,e){let r=s3();return r.createDirectiveHostEventAsts(t.listeners,e),r.createBoundHostProperties(t.properties,e),tct(t,r,e),r.errors}function tct(t,e,r){for(let n in t.properties){let i=n.startsWith("attr."),o=i?n.slice(5):n;if(o.toLowerCase().startsWith("on")){let s=i?"attribute":"property",a=`(${o.slice(2)})=...`,u=`Binding to event ${s} '${o}' is disallowed for security reasons, please use ${a}`;i||(u+=`
|
|
265
265
|
If '${n}' is a directive input, make sure the directive is imported by the current module.`),e.errors.push(new Pe(r,u))}}}function rct(t,e,r){let n=new OV;return t.map(i=>n.shimCssText(i,e,r))}function eve(t){return t.hostDirectives?.length?ci(or(t.hostDirectives.map(e=>Ys([{key:"directive",value:zw(e.directive.type),quoted:!1},{key:"inputs",value:yH(e.inputs||{}),quoted:!1},{key:"outputs",value:yH(e.outputs||{}),quoted:!1}])))):al}function nct(t){let e=[],r=!1;for(let n of t){if(!n.inputs&&!n.outputs)e.push(n.directive.type);else{let i=[{key:"directive",value:n.directive.type,quoted:!1}];if(n.inputs){let o=Sye(n.inputs);o&&i.push({key:"inputs",value:o,quoted:!1})}if(n.outputs){let o=Sye(n.outputs);o&&i.push({key:"outputs",value:o,quoted:!1})}e.push(Ys(i))}n.isForwardReference&&(r=!0)}return r?new Dp([],[new xn(or(e))]):or(e)}function Sye(t){let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(C(r),C(t[r]));return e.length>0?or(e):null}var bH=class extends c_{visit(e){e instanceof xo?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(r=>this.visit(e.vars[r])),Object.keys(e.placeholders).forEach(r=>this.visit(e.placeholders[r]))}visitDeferredBlock(e){e.visitAll(this)}visitDeferredTrigger(e){e instanceof wM?this.visit(e.value):e instanceof yw&&e.options!==null&&this.visit(e.options)}visitDeferredBlockPlaceholder(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockError(e){this.visitAllTemplateNodes(e.children)}visitDeferredBlockLoading(e){this.visitAllTemplateNodes(e.children)}visitSwitchBlock(e){this.visit(e.expression),this.visitAllTemplateNodes(e.groups)}visitSwitchBlockCase(e){e.expression&&this.visit(e.expression)}visitSwitchBlockCaseGroup(e){this.visitAllTemplateNodes(e.cases),this.visitAllTemplateNodes(e.children)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.item.visit(this),this.visitAllTemplateNodes(e.contextVariables),this.visit(e.expression),this.visitAllTemplateNodes(e.children),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.visitAllTemplateNodes(e.children)}visitIfBlock(e){this.visitAllTemplateNodes(e.branches)}visitIfBlockBranch(e){e.expression&&this.visit(e.expression),e.expressionAlias?.visit(this),this.visitAllTemplateNodes(e.children)}visitLetDeclaration(e){this.visit(e.value)}visitComponent(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.directives),this.visitAllTemplateNodes(e.references),this.visitAllTemplateNodes(e.children)}visitDirective(e){this.visitAllTemplateNodes(e.attributes),this.visitAllTemplateNodes(e.inputs),this.visitAllTemplateNodes(e.outputs),this.visitAllTemplateNodes(e.references)}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitText(e){}visitUnknownBlock(e){}visitAllTemplateNodes(e){for(let r of e)this.visit(r)}};var _H=class{directiveMatcher;constructor(e){this.directiveMatcher=e}bind(e){if(!e.template&&!e.host)throw new Error("Empty bound targets are not supported");let r=new Map,n=[],i=new Set,o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Map,d=new Set,f=new Set,p=[];if(e.template){let m=a3.apply(e.template);ict(m,a),EH.apply(e.template,this.directiveMatcher,r,n,i,o,s),u3.applyWithScope(e.template,m,u,c,l,d,f,p)}return e.host&&(r.set(e.host.node,e.host.directives),u3.applyWithScope(e.host.node,a3.apply(e.host.node),u,c,l,d,f,p)),new SH(e,r,n,i,o,s,u,c,l,a,d,f,p)}},a3=class t{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(e,r){this.parentScope=e,this.rootNode=r,this.isDeferred=e!==null&&e.isDeferred?!0:r instanceof dy}static newRootScope(){return new t(null,null)}static apply(e){let r=t.newRootScope();return r.ingest(e),r}ingest(e){e instanceof fs?(e.variables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Xg?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(r=>r.visit(this))):e instanceof f_?(this.visitVariable(e.item),e.contextVariables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Ew||e instanceof Sw||e instanceof dy||e instanceof _w||e instanceof vw||e instanceof bw||e instanceof p_?e.children.forEach(r=>r.visit(this)):e instanceof ww||e.forEach(r=>r.visit(this))}visitElement(e){this.visitElementLike(e)}visitTemplate(e){e.directives.forEach(r=>r.visit(this)),e.references.forEach(r=>this.visitReference(r)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){this.ingestScopedNode(e),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.groups.forEach(r=>r.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(r=>r.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(r=>this.visitReference(r))}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitElementLike(e){e.directives.forEach(r=>r.visit(this)),e.references.forEach(r=>this.visitReference(r)),e.children.forEach(r=>r.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 r=this.childScopes.get(e);if(r===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return r}ingestScopedNode(e){let r=new t(this,e);r.ingest(e),this.childScopes.set(e,r)}},EH=class t{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,r,n,i,o,s){this.directiveMatcher=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=o,this.references=s}static apply(e,r,n,i,o,s,a){new t(r,n,i,o,s,a).ingest(e)}ingest(e){e.forEach(r=>r.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitDeferredBlock(e){let r=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(n=>n.visit(this)),this.isInDeferBlock=r,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(r=>r.visit(this))}visitDeferredBlockError(e){e.children.forEach(r=>r.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(r=>r.visit(this))}visitSwitchBlock(e){e.groups.forEach(r=>r.visit(this))}visitSwitchBlockCase(e){}visitSwitchBlockCaseGroup(e){e.children.forEach(r=>r.visit(this))}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(r=>r.visit(this))}visitIfBlock(e){e.branches.forEach(r=>r.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(r=>r.visit(this))}visitContent(e){e.children.forEach(r=>r.visit(this))}visitComponent(e){if(this.directiveMatcher instanceof tM){let r=this.directiveMatcher.match(e.componentName);r.length>0?this.trackSelectorlessMatchesAndDirectives(e,r):this.missingDirectives.add(e.componentName)}e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}visitDirective(e){if(this.directiveMatcher instanceof tM){let r=this.directiveMatcher.match(e.name);r.length>0?this.trackSelectorlessMatchesAndDirectives(e,r):this.missingDirectives.add(e.name)}}visitElementOrTemplate(e){if(this.directiveMatcher instanceof eM){let r=[],n=HJe(e);this.directiveMatcher.match(n,(i,o)=>r.push(...o)),this.trackSelectorBasedBindingsAndDirectives(e,r)}else e.references.forEach(r=>{r.value.trim()===""&&this.references.set(r,e)});e.directives.forEach(r=>r.visit(this)),e.children.forEach(r=>r.visit(this))}trackMatchedDirectives(e,r){r.length>0&&(this.directives.set(e,r),this.isInDeferBlock||this.eagerDirectives.push(...r))}trackSelectorlessMatchesAndDirectives(e,r){if(r.length===0)return;this.trackMatchedDirectives(e,r);let n=(i,o,s)=>{i[s].hasBindingPropertyName(o.name)&&this.bindings.set(o,i)};for(let i of r)e.inputs.forEach(o=>n(i,o,"inputs")),e.attributes.forEach(o=>n(i,o,"inputs")),e.outputs.forEach(o=>n(i,o,"outputs"));e.references.forEach(i=>this.references.set(i,{directive:r[0],node:e}))}trackSelectorBasedBindingsAndDirectives(e,r){this.trackMatchedDirectives(e,r),e.references.forEach(i=>{let o=null;if(i.value.trim()==="")o=r.find(s=>s.isComponent)||null;else if(o=r.find(s=>s.exportAs!==null&&s.exportAs.some(a=>a===i.value))||null,o===null)return;o!==null?this.references.set(i,{directive:o,node:e}):this.references.set(i,e)});let n=(i,o)=>{let s=r.find(u=>u[o].hasBindingPropertyName(i.name)),a=s!==void 0?s:e;this.bindings.set(i,a)};e.inputs.forEach(i=>n(i,"inputs")),e.attributes.forEach(i=>n(i,"inputs")),e instanceof fs&&e.templateAttrs.forEach(i=>n(i,"inputs")),e.outputs.forEach(i=>n(i,"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){}},u3=class t extends bH{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,r,n,i,o,s,a,u,c){super(),this.bindings=e,this.symbols=r,this.usedPipes=n,this.eagerPipes=i,this.deferBlocks=o,this.nestingLevel=s,this.scope=a,this.rootNode=u,this.level=c}static applyWithScope(e,r,n,i,o,s,a,u){let c=e instanceof fs?e:null;new t(n,i,s,a,u,o,r,c,0).ingest(e)}ingest(e){if(e instanceof fs)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Xg)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof f_)this.visitNode(e.item),e.contextVariables.forEach(r=>this.visitNode(r)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof dy){if(this.scope.rootNode!==e)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${e}`);this.deferBlocks.push([e,this.scope]),e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof Ew||e instanceof Sw||e instanceof _w||e instanceof vw||e instanceof bw||e instanceof p_?(e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof ww?this.nestingLevel.set(e,0):e.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.directives.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitReference(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.visit(this),e.hydrateTriggers.when?.value.visit(this),e.hydrateTriggers.never?.visit(this),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlockCase(e){e.expression?.visit(this)}visitSwitchBlockCaseGroup(e){e.cases.forEach(r=>r.visit(this)),this.ingestScopedNode(e)}visitSwitchExhaustiveCheck(e){}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){super.visitLetDeclaration(e),this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitPipe(e,r){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,r)}visitPropertyRead(e,r){return this.maybeMap(e,e.name),super.visitPropertyRead(e,r)}visitSafePropertyRead(e,r){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,r)}ingestScopedNode(e){let r=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,r,e,this.level+1).ingest(e)}maybeMap(e,r){if(!(e.receiver instanceof ll))return;let n=this.scope.lookup(r);n!==null&&this.bindings.set(e,n)}},SH=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,r,n,i,o,s,a,u,c,l,d,f,p){this.target=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=o,this.references=s,this.exprTargets=a,this.symbols=u,this.nestingLevel=c,this.scopedNodeEntities=l,this.usedPipes=d,this.eagerPipes=f,this.deferredBlocks=p.map(m=>m[0]),this.deferredScopes=new Map(p)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(r=>r.forEach(n=>e.add(n))),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,r){if(!(r instanceof AM)&&!(r instanceof yw)&&!(r instanceof IM))return null;let n=r.reference;if(n===null){let o=null;if(e.placeholder!==null){for(let s of e.placeholder.children)if(!(s instanceof d3)){if(o!==null)return null;s instanceof dl&&(o=s)}}return o}let i=this.findEntityInScope(e,n);if(i instanceof Tw&&this.getDefinitionNodeOfSymbol(i)!==e){let o=this.getReferenceTarget(i);if(o!==null)return this.referenceTargetToElement(o)}if(e.placeholder!==null){let o=this.findEntityInScope(e.placeholder,n),s=o instanceof Tw?this.getReferenceTarget(o):null;if(s!==null)return this.referenceTargetToElement(s)}return null}isDeferred(e){for(let r of this.deferredBlocks){if(!this.deferredScopes.has(r))continue;let n=[this.deferredScopes.get(r)];for(;n.length>0;){let i=n.pop();if(i.elementLikeInScope.has(e))return!0;n.push(...i.childScopes.values())}}return!1}referencedDirectiveExists(e){return!this.missingDirectives.has(e)}findEntityInScope(e,r){let n=this.getEntitiesInScope(e);for(let i of n)if(i.name===r)return i;return null}referenceTargetToElement(e){return e instanceof dl?e:e instanceof fs||e.node instanceof VT||e.node instanceof Fye||e.node instanceof ww?null:this.referenceTargetToElement(e.node)}};function ict(t,e){let r=new Map;function n(o){if(r.has(o.rootNode))return r.get(o.rootNode);let s=o.namedEntities,a;return o.parentScope!==null?a=new Map([...n(o.parentScope),...s]):a=new Map(s),r.set(o.rootNode,a),a}let i=[t];for(;i.length>0;){let o=i.pop();for(let s of o.childScopes.values())i.push(s);n(o)}for(let[o,s]of r)e.set(o,new Set(s.values()))}var TH=class{},wH=class{jitEvaluator;FactoryTarget=el;ResourceLoader=TH;elementSchemaRegistry=new __;constructor(e=new AV){this.jitEvaluator=e}compilePipe(e,r,n){let i={name:n.name,type:Rn(n.type),typeArgumentCount:0,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},o=age(i);return this.jitExpression(o.expression,e,r,[])}compilePipeDeclaration(e,r,n){let i=Ect(n),o=age(i);return this.jitExpression(o.expression,e,r,[])}compileInjectable(e,r,n){let{expression:i,statements:o}=Zme({name:n.name,type:Rn(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:Cye(n.providedIn),useClass:Ub(n,"useClass"),useFactory:xye(n,"useFactory"),useValue:Ub(n,"useValue"),useExisting:Ub(n,"useExisting"),deps:n.deps?.map(ive)},!0);return this.jitExpression(i,e,r,o)}compileInjectableDeclaration(e,r,n){let{expression:i,statements:o}=Zme({name:n.type.name,type:Rn(n.type),typeArgumentCount:0,providedIn:Cye(n.providedIn),useClass:Ub(n,"useClass"),useFactory:xye(n,"useFactory"),useValue:Ub(n,"useValue"),useExisting:Ub(n,"useExisting"),deps:n.deps?.map(Oye)},!0);return this.jitExpression(i,e,r,o)}compileInjector(e,r,n){let i={type:Rn(n.type),providers:n.providers&&n.providers.length>0?new yt(n.providers):null,imports:n.imports.map(s=>new yt(s))},o=sge(i);return this.jitExpression(o.expression,e,r,[])}compileInjectorDeclaration(e,r,n){let i=Sct(n),o=sge(i);return this.jitExpression(o.expression,e,r,[])}compileNgModule(e,r,n){let i={kind:Cd.Global,type:Rn(n.type),bootstrap:n.bootstrap.map(Rn),declarations:n.declarations.map(Rn),publicDeclarationTypes:null,imports:n.imports.map(Rn),includeImportTypes:!0,exports:n.exports.map(Rn),selectorScopeMode:Pw.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(Rn):null,id:n.id?new yt(n.id):null},o=det(i);return this.jitExpression(o.expression,e,r,[])}compileNgModuleDeclaration(e,r,n){let i=fet(n);return this.jitExpression(i,e,r,[])}compileDirective(e,r,n){let i=Iye(n);return this.compileDirectiveFromMeta(e,r,i)}compileDirectiveDeclaration(e,r,n){let i=this.createParseSourceSpan("Directive",n.type.name,r),o=rve(n,i);return this.compileDirectiveFromMeta(e,r,o)}compileDirectiveFromMeta(e,r,n){let i=new pM,o=s3(),s=Gut(n,i,o);return this.jitExpression(s.expression,e,r,i.statements)}compileComponent(e,r,n){let{template:i,defer:o}=nve(n.template,n.name,r,n.preserveWhitespaces,void 0),s={...n,...Iye(n),selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:n.declarations.map(uct),declarationListEmitMode:0,defer:o,styles:[...n.styles,...i.styles],encapsulation:n.encapsulation,changeDetection:n.changeDetection??null,animations:n.animations!=null?new yt(n.animations):null,viewProviders:n.viewProviders!=null?new yt(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null},a=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,a,s)}compileComponentDeclaration(e,r,n){let i=this.createParseSourceSpan("Component",n.type.name,r),o=act(n,i,r);return this.compileComponentFromMeta(e,r,o)}compileComponentFromMeta(e,r,n){let i=new pM,o=s3(),s=Wut(n,i,o);return this.jitExpression(s.expression,e,r,i.statements)}compileFactory(e,r,n){let i=Gg({name:n.name,type:Rn(n.type),typeArgumentCount:n.typeArgumentCount,deps:dct(n.deps),target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}compileFactoryDeclaration(e,r,n){let i=Gg({name:n.type.name,type:Rn(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(Oye):n.deps,target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}createParseSourceSpan(e,r,n){return net(e,r,n)}jitExpression(e,r,n,i){let o=[...i,new Ln("$def",e,void 0,Xn.Exported)];return this.jitEvaluator.evaluateStatements(n,o,new CV(r),!0).$def}};function Tye(t){return{...t,isSignal:t.isSignal,predicate:tve(t.predicate),read:t.read?new yt(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function wye(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:tve(t.predicate),descendants:t.descendants??!1,read:t.read?new yt(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function tve(t){return Array.isArray(t)?t:CH(new yt(t),1)}function Iye(t){let e=_ct(t.inputs||[]),r=QU(t.outputs||[]),n=t.propMetadata,i={},o={};for(let a in n)n.hasOwnProperty(a)&&n[a].forEach(u=>{gct(u)?i[a]={bindingPropertyName:u.alias||a,classPropertyName:a,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new yt(u.transform):null}:yct(u)&&(o[a]=u.alias||a)});let s=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:Rn(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:Rn(a.directive),isForwardReference:!1,inputs:a.inputs?QU(a.inputs):null,outputs:a.outputs?QU(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:Rn(t.type),deps:null,host:{...pct(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...i},outputs:{...r,...o},queries:t.queries.map(Tye),providers:t.providers!=null?new yt(t.providers):null,viewQueries:t.viewQueries.map(Tye),hostDirectives:s}}function rve(t,e){let r=t.hostDirectives?.length?t.hostDirectives.map(n=>({directive:Rn(n.directive),isForwardReference:!1,inputs:n.inputs?Aye(n.inputs):null,outputs:n.outputs?Aye(n.outputs):null})):null;return{name:t.type.name,type:Rn(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?vct(t.inputs):{},outputs:t.outputs??{},host:oct(t.host),queries:(t.queries??[]).map(wye),viewQueries:(t.viewQueries??[]).map(wye),providers:t.providers!==void 0?new yt(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,controlCreate:t.controlCreate??null,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:t.isStandalone??$ye(t.version),isSignal:t.isSignal??!1,hostDirectives:r}}function oct(t={}){return{attributes:sct(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function Aye(t){let e=null;for(let r=1;r<t.length;r+=2)e=e||{},e[t[r-1]]=t[r];return e}function sct(t){let e={};for(let r of Object.keys(t))e[r]=new yt(t[r]);return e}function act(t,e,r){let{template:n,defer:i}=nve(t.template,t.type.name,r,t.preserveWhitespaces??!1,t.deferBlockDependencies),o=[];if(t.dependencies)for(let a of t.dependencies)switch(a.kind){case"directive":case"component":o.push(zU(a));break;case"pipe":o.push(lct(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&o.push(...t.components.map(a=>zU(a,!0))),t.directives&&o.push(...t.directives.map(a=>zU(a))),t.pipes&&o.push(...cct(t.pipes)));let s=o.some(({kind:a})=>a===py.Directive||a===py.NgModule);return{...rve(t,e),template:n,styles:t.styles??[],declarations:o,viewProviders:t.viewProviders!==void 0?new yt(t.viewProviders):null,animations:t.animations!==void 0?new yt(t.animations):null,defer:i,changeDetection:t.changeDetection??rM.Default,encapsulation:t.encapsulation??Op.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:s}}function uct(t){return{...t,type:new yt(t.type)}}function zU(t,e=null){return{kind:py.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new yt(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function cct(t){return t?Object.keys(t).map(e=>({kind:py.Pipe,name:e,type:new yt(t[e])})):[]}function lct(t){return{kind:py.Pipe,name:t.name,type:new yt(t.type)}}function nve(t,e,r,n,i){let o=But(t,r,{preserveWhitespaces:n});if(o.errors!==null){let u=o.errors.map(c=>c.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let a=new _H(null).bind({template:o.nodes});return{template:o,defer:fct(a,i)}}function Ub(t,e){if(t.hasOwnProperty(e))return CH(new yt(t[e]),0)}function xye(t,e){if(t.hasOwnProperty(e))return new yt(t[e])}function Cye(t){let e=typeof t=="function"?new yt(t):new di(t??null);return CH(e,0)}function dct(t){return t==null?null:t.map(ive)}function ive(t){let e=t.attribute!=null,r=t.token===null?null:new yt(t.token),n=e?new yt(t.attribute):r;return ove(n,e,t.host,t.optional,t.self,t.skipSelf)}function Oye(t){let e=t.attribute??!1,r=t.token===null?null:new yt(t.token);return ove(r,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function ove(t,e,r,n,i,o){let s=e?C("unknown"):null;return{token:t,attributeNameType:s,host:r,optional:n,self:i,skipSelf:o}}function fct(t,e){let r=t.getDeferBlocks(),n=new Map;for(let i=0;i<r.length;i++){let o=e?.[i];n.set(r[i],o?new yt(o):null)}return{mode:0,blocks:n}}function pct(t,e,r){let n=Jut(r||{});for(let o in t)t.hasOwnProperty(o)&&t[o].forEach(s=>{hct(s)?n.properties[s.hostPropertyName||o]=AJe("this",o):mct(s)&&(n.listeners[s.eventName||o]=`${o}(${(s.args||[]).join(",")})`)});let i=ect(n,e);if(i.length)throw new Error(i.map(o=>o.msg).join(`
|
|
266
|
-
`));return n}function hct(t){return t.ngMetadataName==="HostBinding"}function mct(t){return t.ngMetadataName==="HostListener"}function gct(t){return t.ngMetadataName==="Input"}function yct(t){return t.ngMetadataName==="Output"}function vct(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=bct(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new yt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function bct(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 yt(t[2]):null,required:!1,isSignal:!1}}function _ct(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=sve(r);e[i]={bindingPropertyName:n,classPropertyName:i,required:!1,isSignal:!1,transformFunction:null}}else e[r.name]={bindingPropertyName:r.alias||r.name,classPropertyName:r.name,required:r.required||!1,isSignal:!1,transformFunction:r.transform!=null?new yt(r.transform):null};return e},{})}function QU(t){return t.reduce((e,r)=>{let[n,i]=sve(r);return e[i]=n,e},{})}function sve(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function Ect(t){return{name:t.type.name,type:Rn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??$ye(t.version)}}function Sct(t){return{name:t.type.name,type:Rn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new yt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new yt(e)):[]}}function Tct(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new wH}var Pye;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Pye||(Pye={}));var IH=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Ma.PARSABLE_DATA}},sCr=new IH;var Nye;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Nye||(Nye={}));var aCr=new nV("21.2.25");Tct(BT);import*as wme from"fs";var ge={};Cme(ge,{ANIMATION_MODULE_TYPE:()=>L2e,APP_BOOTSTRAP_LISTENER:()=>R0,APP_ID:()=>Za,APP_INITIALIZER:()=>BL,ApplicationInitStatus:()=>E0,ApplicationModule:()=>Y$,ApplicationRef:()=>qn,Attribute:()=>PY,COMPILER_OPTIONS:()=>Nee,CSP_NONCE:()=>F4,CUSTOM_ELEMENTS_SCHEMA:()=>aZ,ChangeDetectionStrategy:()=>Uh,ChangeDetectorRef:()=>H$,Compiler:()=>$A,CompilerFactory:()=>P4,Component:()=>Txe,ComponentFactory:()=>ix,ComponentFactoryResolver:()=>FE,ComponentRef:()=>XZ,ContentChild:()=>V9t,ContentChildren:()=>U9t,DEFAULT_CURRENCY_CODE:()=>Oxe,DOCUMENT:()=>fo,DebugElement:()=>Qh,DebugEventListener:()=>D4,DebugNode:()=>bE,DefaultIterableDiffer:()=>K$,DestroyRef:()=>yi,Directive:()=>Pee,ENVIRONMENT_INITIALIZER:()=>co,ElementRef:()=>Bh,EmbeddedViewRef:()=>Zee,EnvironmentInjector:()=>Hr,ErrorHandler:()=>Ba,EventEmitter:()=>wl,HOST_TAG_NAME:()=>L9t,Host:()=>IY,HostAttributeToken:()=>Qee,HostBinding:()=>xxe,HostListener:()=>Cxe,INJECTOR:()=>a8,Inject:()=>Vl,Injectable:()=>de,InjectionToken:()=>F,Injector:()=>Gr,Input:()=>Ixe,IterableDiffers:()=>Ix,KeyValueDiffers:()=>Ax,LOCALE_ID:()=>N$,MAX_ANIMATION_TIMEOUT:()=>PZ,MissingTranslationStrategy:()=>N4,ModuleWithComponentFactories:()=>LA,NO_ERRORS_SCHEMA:()=>uZ,NgModule:()=>k0,NgModuleFactory:()=>bX,NgModuleRef:()=>Kh,NgZone:()=>Ot,Optional:()=>w0,Output:()=>Axe,OutputEmitterRef:()=>WE,PLATFORM_ID:()=>k2e,PLATFORM_INITIALIZER:()=>$4,PendingTasks:()=>Ua,Pipe:()=>wxe,PlatformRef:()=>QE,Query:()=>F0,QueryList:()=>cA,REQUEST:()=>skt,REQUEST_CONTEXT:()=>ukt,RESPONSE_INIT:()=>akt,Renderer2:()=>m4,RendererFactory2:()=>hE,RendererStyleFlags2:()=>dE,Sanitizer:()=>IA,SecurityContext:()=>hr,Self:()=>TY,SimpleChange:()=>oA,SkipSelf:()=>wY,TRANSLATIONS:()=>Pxe,TRANSLATIONS_FORMAT:()=>Nxe,TemplateRef:()=>Gh,Testability:()=>DA,TestabilityRegistry:()=>_0,TransferState:()=>ws,Type:()=>AY,VERSION:()=>Gk,Version:()=>bI,ViewChild:()=>G9t,ViewChildren:()=>H9t,ViewContainerRef:()=>p0,ViewEncapsulation:()=>Ho,ViewRef:()=>G$,afterEveryRender:()=>_A,afterNextRender:()=>JA,afterRenderEffect:()=>ite,asNativeElements:()=>Dxe,assertInInjectionContext:()=>gn,assertNotInReactiveContext:()=>G1,assertPlatform:()=>jCe,booleanAttribute:()=>BRt,computed:()=>Un,contentChild:()=>ACe,contentChildren:()=>xCe,createComponent:()=>nkt,createEnvironmentInjector:()=>qE,createNgModule:()=>_X,createNgModuleRef:()=>kIe,createPlatform:()=>LCe,createPlatformFactory:()=>$Ce,destroyPlatform:()=>X9t,effect:()=>w1,enableProdMode:()=>nRt,enableProfiling:()=>DX,forwardRef:()=>I1,getDebugNode:()=>_E,getModuleFactory:()=>_Rt,getNgModuleById:()=>ERt,getPlatform:()=>xx,importProvidersFrom:()=>tz,inject:()=>O,input:()=>ste,inputBinding:()=>sX,isDevMode:()=>rRt,isSignal:()=>ux,isStandalone:()=>Nl,isWritableSignal:()=>FL,linkedSignal:()=>em,makeEnvironmentProviders:()=>vi,makeStateKey:()=>qY,mergeApplicationConfig:()=>okt,model:()=>ute,numberAttribute:()=>URt,output:()=>wCe,outputBinding:()=>aX,platformCore:()=>ORt,provideAppInitializer:()=>FX,provideBrowserGlobalErrorListeners:()=>dEe,provideCheckNoChangesConfig:()=>tRt,provideEnvironmentInitializer:()=>c8,provideNgReflectAttributes:()=>UTe,providePlatformInitializer:()=>J9t,provideStabilityDebugging:()=>bRt,provideZoneChangeDetection:()=>W9t,provideZonelessChangeDetection:()=>P$,reflectComponentType:()=>ikt,resolveForwardRef:()=>ze,resource:()=>Lee,resourceFromSnapshots:()=>rkt,runInInjectionContext:()=>Ga,setTestabilityGetter:()=>kX,signal:()=>Fi,twoWayBinding:()=>hIe,untracked:()=>sa,viewChild:()=>ate,viewChildren:()=>ICe,\u0275ANIMATIONS_DISABLED:()=>OZ,\u0275AcxChangeDetectionStrategy:()=>s4,\u0275AcxViewEncapsulation:()=>a4,\u0275AfterRenderManager:()=>c0,\u0275CLIENT_RENDER_MODE_FLAG:()=>HCe,\u0275CONTAINER_HEADER_OFFSET:()=>Wt,\u0275ChangeDetectionScheduler:()=>_s,\u0275ComponentFactory:()=>ix,\u0275Console:()=>oa,\u0275DEFAULT_LOCALE_ID:()=>GE,\u0275DEFER_BLOCK_CONFIG:()=>CX,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>xX,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Xa,\u0275DeferBlockBehavior:()=>PA,\u0275DeferBlockState:()=>rr,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>MCe,\u0275EVENT_REPLAY_QUEUE:()=>zY,\u0275EffectScheduler:()=>By,\u0275Framework:()=>zee,\u0275HydrationStatus:()=>Vh,\u0275IMAGE_CONFIG:()=>jY,\u0275IMAGE_CONFIG_DEFAULTS:()=>FY,\u0275INJECTOR_SCOPE:()=>L1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>k9t,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Fl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>q2e,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Zh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>H4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>AE,\u0275JSACTION_EVENT_CONTRACT:()=>G4,\u0275LContext:()=>dA,\u0275LocaleDataIndex:()=>zh,\u0275NG_COMP_DEF:()=>Pl,\u0275NG_DIR_DEF:()=>Ih,\u0275NG_ELEMENT_ID:()=>Ah,\u0275NG_INJ_DEF:()=>_1,\u0275NG_MOD_DEF:()=>OI,\u0275NG_PIPE_DEF:()=>D1,\u0275NG_PROV_DEF:()=>Hy,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>XI,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>g0,\u0275NoopNgZone:()=>S1,\u0275PERFORMANCE_MARK_PREFIX:()=>XCe,\u0275PROVIDED_NG_ZONE:()=>cte,\u0275PROVIDED_ZONELESS:()=>UI,\u0275PendingTasksInternal:()=>ta,\u0275ProfilerEvent:()=>he,\u0275R3Injector:()=>ea,\u0275ReflectionCapabilities:()=>iA,\u0275Render3ComponentFactory:()=>Jd,\u0275Render3ComponentRef:()=>xA,\u0275Render3NgModuleRef:()=>m0,\u0275ResourceImpl:()=>L0,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>ar,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>JY,\u0275TESTABILITY:()=>RX,\u0275TESTABILITY_GETTER:()=>jL,\u0275TimerScheduler:()=>NA,\u0275TracingAction:()=>pE,\u0275TracingService:()=>Gl,\u0275ViewRef:()=>Xd,\u0275XSS_SECURITY_URL:()=>Va,\u0275ZONELESS_ENABLED:()=>Xy,\u0275_sanitizeHtml:()=>hZ,\u0275_sanitizeUrl:()=>WA,\u0275allLeavingAnimations:()=>Hh,\u0275allowSanitizationBypassAndThrow:()=>O0,\u0275annotateForHydration:()=>MRt,\u0275assertType:()=>KRt,\u0275bypassSanitizationTrustHtml:()=>STe,\u0275bypassSanitizationTrustResourceUrl:()=>ATe,\u0275bypassSanitizationTrustScript:()=>wTe,\u0275bypassSanitizationTrustStyle:()=>TTe,\u0275bypassSanitizationTrustUrl:()=>ITe,\u0275clearResolutionOfComponentResourcesQueue:()=>PIe,\u0275compileComponent:()=>Cee,\u0275compileDirective:()=>O$,\u0275compileNgModule:()=>Iee,\u0275compileNgModuleDefs:()=>Aee,\u0275compileNgModuleFactory:()=>PCe,\u0275compilePipe:()=>Oee,\u0275convertToBitFlags:()=>vh,\u0275createInjector:()=>Qk,\u0275createOrReusePlatformInjector:()=>qCe,\u0275defaultIterableDiffers:()=>xRt,\u0275defaultKeyValueDiffers:()=>CRt,\u0275depsTracker:()=>Wh,\u0275devModeEqual:()=>OL,\u0275disableProfiling:()=>WRt,\u0275enableProfiling:()=>GRt,\u0275encapsulateResourceError:()=>KE,\u0275findLocaleData:()=>JL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>wee,\u0275formatRuntimeError:()=>Er,\u0275generateStandaloneInDeclarationsError:()=>xee,\u0275getAsyncClassMetadataFn:()=>eAe,\u0275getClosestComponentName:()=>mIe,\u0275getComponentDef:()=>ut,\u0275getDeferBlocks:()=>iE,\u0275getDirectives:()=>RY,\u0275getDocument:()=>x0,\u0275getHostElement:()=>kY,\u0275getInjectableDef:()=>C1,\u0275getLContext:()=>ji,\u0275getLocaleCurrencyCode:()=>bAe,\u0275getLocalePluralCase:()=>EJ,\u0275getOutputDestroyRef:()=>kxe,\u0275getSanitizationBypassType:()=>pZ,\u0275getTransferState:()=>MX,\u0275getUnknownElementStrictMode:()=>pTe,\u0275getUnknownPropertyStrictMode:()=>mTe,\u0275global:()=>$n,\u0275inferTagNameFromDefinition:()=>cX,\u0275injectChangeDetectorRef:()=>WCe,\u0275internalCreateApplication:()=>PRt,\u0275internalProvideZoneChangeDetection:()=>NCe,\u0275isBoundToModule:()=>BX,\u0275isComponentDefPendingResolution:()=>CIe,\u0275isEnvironmentProviders:()=>N1,\u0275isInjectable:()=>C1e,\u0275isNgModule:()=>Lh,\u0275isPromise:()=>qL,\u0275isSubscribable:()=>$X,\u0275isViewDirty:()=>Owe,\u0275markForRefresh:()=>Pwe,\u0275noSideEffects:()=>Ya,\u0275patchComponentDefWithScope:()=>x$,\u0275performanceMarkFeature:()=>zr,\u0275promiseWithResolvers:()=>cx,\u0275provideZonelessChangeDetectionInternal:()=>Ex,\u0275publishExternalGlobalUtil:()=>aAe,\u0275readHydrationInfo:()=>rZ,\u0275registerLocaleData:()=>vAe,\u0275renderDeferBlockState:()=>Bl,\u0275resetCompiledComponents:()=>pxe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>tTe,\u0275resetJitOptions:()=>dxe,\u0275resolveComponentResources:()=>yX,\u0275restoreComponentResolutionQueue:()=>NIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>RIe,\u0275setAlternateWeakRefImpl:()=>v1e,\u0275setClassDebugInfo:()=>Eee,\u0275setClassMetadata:()=>Bi,\u0275setClassMetadataAsync:()=>PX,\u0275setCurrentInjector:()=>Js,\u0275setDocument:()=>R2e,\u0275setInjectorProfilerContext:()=>mn,\u0275setLocaleId:()=>SJ,\u0275setUnknownElementStrictMode:()=>fTe,\u0275setUnknownPropertyStrictMode:()=>hTe,\u0275startMeasuring:()=>VRt,\u0275stopMeasuring:()=>HRt,\u0275store:()=>q1,\u0275stringify:()=>Gt,\u0275transitiveScopesFor:()=>C$,\u0275triggerResourceLoading:()=>dx,\u0275truncateMiddle:()=>t8,\u0275unregisterLocaleData:()=>_Ae,\u0275unwrapSafeValue:()=>Hl,\u0275unwrapWritableSignal:()=>fEe,\u0275withDomHydration:()=>mRt,\u0275withEventReplay:()=>UCe,\u0275withI18nSupport:()=>gRt,\u0275withIncrementalHydration:()=>yRt,\u0275\u0275ControlFeature:()=>wX,\u0275\u0275ExternalStylesFeature:()=>eee,\u0275\u0275FactoryTarget:()=>Ut,\u0275\u0275HostDirectivesFeature:()=>IX,\u0275\u0275InheritDefinitionFeature:()=>ML,\u0275\u0275NgOnChangesFeature:()=>xY,\u0275\u0275ProvidersFeature:()=>JJ,\u0275\u0275advance:()=>xZ,\u0275\u0275animateEnter:()=>oE,\u0275\u0275animateEnterListener:()=>sE,\u0275\u0275animateLeave:()=>aE,\u0275\u0275animateLeaveListener:()=>MA,\u0275\u0275ariaProperty:()=>UL,\u0275\u0275arrowFunction:()=>XJ,\u0275\u0275attachSourceLocations:()=>BJ,\u0275\u0275attribute:()=>VL,\u0275\u0275classMap:()=>LJ,\u0275\u0275classProp:()=>h$,\u0275\u0275componentInstance:()=>fJ,\u0275\u0275conditional:()=>hJ,\u0275\u0275conditionalBranchCreate:()=>fx,\u0275\u0275conditionalCreate:()=>pJ,\u0275\u0275contentQuery:()=>c$,\u0275\u0275contentQuerySignal:()=>d$,\u0275\u0275control:()=>oX,\u0275\u0275controlCreate:()=>iX,\u0275\u0275declareLet:()=>A$,\u0275\u0275defer:()=>VX,\u0275\u0275deferEnableTimerScheduling:()=>OX,\u0275\u0275deferHydrateNever:()=>KX,\u0275\u0275deferHydrateOnHover:()=>oJ,\u0275\u0275deferHydrateOnIdle:()=>YX,\u0275\u0275deferHydrateOnImmediate:()=>JX,\u0275\u0275deferHydrateOnInteraction:()=>uJ,\u0275\u0275deferHydrateOnTimer:()=>rJ,\u0275\u0275deferHydrateOnViewport:()=>dJ,\u0275\u0275deferHydrateWhen:()=>WX,\u0275\u0275deferOnHover:()=>nJ,\u0275\u0275deferOnIdle:()=>zX,\u0275\u0275deferOnImmediate:()=>ZX,\u0275\u0275deferOnInteraction:()=>sJ,\u0275\u0275deferOnTimer:()=>eJ,\u0275\u0275deferOnViewport:()=>cJ,\u0275\u0275deferPrefetchOnHover:()=>iJ,\u0275\u0275deferPrefetchOnIdle:()=>QX,\u0275\u0275deferPrefetchOnImmediate:()=>XX,\u0275\u0275deferPrefetchOnInteraction:()=>aJ,\u0275\u0275deferPrefetchOnTimer:()=>tJ,\u0275\u0275deferPrefetchOnViewport:()=>lJ,\u0275\u0275deferPrefetchWhen:()=>GX,\u0275\u0275deferWhen:()=>HX,\u0275\u0275defineComponent:()=>EX,\u0275\u0275defineDirective:()=>SX,\u0275\u0275defineInjectable:()=>er,\u0275\u0275defineInjector:()=>x1,\u0275\u0275defineNgModule:()=>DL,\u0275\u0275definePipe:()=>TX,\u0275\u0275directiveInject:()=>Xh,\u0275\u0275disableBindings:()=>S8,\u0275\u0275domElement:()=>KL,\u0275\u0275domElementContainer:()=>YL,\u0275\u0275domElementContainerEnd:()=>QL,\u0275\u0275domElementContainerStart:()=>yx,\u0275\u0275domElementEnd:()=>mx,\u0275\u0275domElementStart:()=>hx,\u0275\u0275domListener:()=>u$,\u0275\u0275domProperty:()=>ZL,\u0275\u0275domTemplate:()=>kL,\u0275\u0275element:()=>WL,\u0275\u0275elementContainer:()=>zL,\u0275\u0275elementContainerEnd:()=>HE,\u0275\u0275elementContainerStart:()=>gx,\u0275\u0275elementEnd:()=>px,\u0275\u0275elementStart:()=>gE,\u0275\u0275enableBindings:()=>E8,\u0275\u0275getComponentDepsFactory:()=>_ee,\u0275\u0275getCurrentView:()=>_J,\u0275\u0275getInheritedFactory:()=>OY,\u0275\u0275getReplaceMetadataURL:()=>See,\u0275\u0275i18n:()=>TJ,\u0275\u0275i18nApply:()=>IJ,\u0275\u0275i18nAttributes:()=>wJ,\u0275\u0275i18nEnd:()=>i$,\u0275\u0275i18nExp:()=>o$,\u0275\u0275i18nPostprocess:()=>AJ,\u0275\u0275i18nStart:()=>n$,\u0275\u0275inject:()=>Jn,\u0275\u0275injectAttribute:()=>qA,\u0275\u0275interpolate:()=>UJ,\u0275\u0275interpolate1:()=>VJ,\u0275\u0275interpolate2:()=>HJ,\u0275\u0275interpolate3:()=>GJ,\u0275\u0275interpolate4:()=>WJ,\u0275\u0275interpolate5:()=>KJ,\u0275\u0275interpolate6:()=>zJ,\u0275\u0275interpolate7:()=>QJ,\u0275\u0275interpolate8:()=>YJ,\u0275\u0275interpolateV:()=>ZJ,\u0275\u0275invalidFactory:()=>eX,\u0275\u0275invalidFactoryDep:()=>NI,\u0275\u0275listener:()=>s$,\u0275\u0275loadQuery:()=>DJ,\u0275\u0275namespaceHTML:()=>M8,\u0275\u0275namespaceMathML:()=>D8,\u0275\u0275namespaceSVG:()=>N8,\u0275\u0275nextContext:()=>CJ,\u0275\u0275ngDeclareClassMetadata:()=>Ar,\u0275\u0275ngDeclareClassMetadataAsync:()=>QRt,\u0275\u0275ngDeclareComponent:()=>YRt,\u0275\u0275ngDeclareDirective:()=>zRt,\u0275\u0275ngDeclareFactory:()=>xr,\u0275\u0275ngDeclareInjectable:()=>Qr,\u0275\u0275ngDeclareInjector:()=>Cx,\u0275\u0275ngDeclareNgModule:()=>Ox,\u0275\u0275ngDeclarePipe:()=>XRt,\u0275\u0275pipe:()=>pee,\u0275\u0275pipeBind1:()=>hee,\u0275\u0275pipeBind2:()=>mee,\u0275\u0275pipeBind3:()=>gee,\u0275\u0275pipeBind4:()=>yee,\u0275\u0275pipeBindV:()=>vee,\u0275\u0275projection:()=>PJ,\u0275\u0275projectionDef:()=>OJ,\u0275\u0275property:()=>GL,\u0275\u0275pureFunction0:()=>nee,\u0275\u0275pureFunction1:()=>iee,\u0275\u0275pureFunction2:()=>oee,\u0275\u0275pureFunction3:()=>see,\u0275\u0275pureFunction4:()=>aee,\u0275\u0275pureFunction5:()=>uee,\u0275\u0275pureFunction6:()=>cee,\u0275\u0275pureFunction7:()=>lee,\u0275\u0275pureFunction8:()=>dee,\u0275\u0275pureFunctionV:()=>fee,\u0275\u0275queryAdvance:()=>MJ,\u0275\u0275queryRefresh:()=>NJ,\u0275\u0275readContextLet:()=>qJ,\u0275\u0275reference:()=>RJ,\u0275\u0275registerNgModuleType:()=>NL,\u0275\u0275repeater:()=>yJ,\u0275\u0275repeaterCreate:()=>gJ,\u0275\u0275repeaterTrackByIdentity:()=>HL,\u0275\u0275repeaterTrackByIndex:()=>mJ,\u0275\u0275replaceMetadata:()=>Tee,\u0275\u0275resetView:()=>w8,\u0275\u0275resolveBody:()=>iL,\u0275\u0275resolveDocument:()=>SZ,\u0275\u0275resolveWindow:()=>EZ,\u0275\u0275restoreView:()=>T8,\u0275\u0275sanitizeHtml:()=>J4,\u0275\u0275sanitizeResourceUrl:()=>QA,\u0275\u0275sanitizeScript:()=>rL,\u0275\u0275sanitizeStyle:()=>eL,\u0275\u0275sanitizeUrl:()=>tL,\u0275\u0275sanitizeUrlOrResourceUrl:()=>_Z,\u0275\u0275setComponentScope:()=>tee,\u0275\u0275setNgModuleScope:()=>ree,\u0275\u0275storeLet:()=>jJ,\u0275\u0275styleMap:()=>kJ,\u0275\u0275styleProp:()=>p$,\u0275\u0275syntheticHostListener:()=>a$,\u0275\u0275syntheticHostProperty:()=>XL,\u0275\u0275template:()=>RL,\u0275\u0275templateRefExtractor:()=>bee,\u0275\u0275text:()=>$J,\u0275\u0275textInterpolate:()=>m$,\u0275\u0275textInterpolate1:()=>vx,\u0275\u0275textInterpolate2:()=>g$,\u0275\u0275textInterpolate3:()=>y$,\u0275\u0275textInterpolate4:()=>v$,\u0275\u0275textInterpolate5:()=>b$,\u0275\u0275textInterpolate6:()=>_$,\u0275\u0275textInterpolate7:()=>E$,\u0275\u0275textInterpolate8:()=>S$,\u0275\u0275textInterpolateV:()=>T$,\u0275\u0275trustConstantHtml:()=>vZ,\u0275\u0275trustConstantResourceUrl:()=>bZ,\u0275\u0275twoWayBindingSet:()=>FJ,\u0275\u0275twoWayListener:()=>I$,\u0275\u0275twoWayProperty:()=>w$,\u0275\u0275validateAttribute:()=>nL,\u0275\u0275viewQuery:()=>l$,\u0275\u0275viewQuerySignal:()=>f$});var Ri=null,Jw=!1,KH=1,wct=null,ar=Symbol("SIGNAL");function Oe(t){let e=Ri;return Ri=t,e}function wy(){return Ri}function zH(){return Jw}var Ld={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function $d(t){if(Jw)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ri===null)return;Ri.consumerOnSignalRead(t);let e=Ri.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Ri.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Ri.producers,r!==void 0&&r.producer===t)){Ri.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ri&&(!n||Ict(i,Ri)))return;let o=x_(Ri),s={producer:t,consumer:Ri,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ri.producersTail=s,e!==void 0?e.nextProducer=s:Ri.producers=s,o&&dve(t,s)}function ave(){KH++}function Iy(t){if(!(x_(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===KH)){if(!t.producerMustRecompute(t)&&!Ay(t)){A_(t);return}t.producerRecomputeValue(t),A_(t)}}function QH(t){if(t.consumers===void 0)return;let e=Jw;Jw=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||uve(n)}}finally{Jw=e}}function YH(){return Ri?.consumerAllowSignalWrites!==!1}function uve(t){t.dirty=!0,QH(t),t.consumerMarkedDirty?.(t)}function A_(t){t.dirty=!1,t.lastCleanEpoch=KH}function gl(t){return t&&cve(t),Oe(t)}function cve(t){t.producersTail=void 0,t.recomputing=!0}function Fd(t,e){Oe(e),t&&lve(t)}function lve(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(x_(t))do r=ZH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function Ay(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(Iy(r),n!==r.version))return!0}return!1}function jd(t){if(x_(t)){let e=t.producers;for(;e!==void 0;)e=ZH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function dve(t,e){let r=t.consumersTail,n=x_(t);if(r!==void 0?(e.nextConsumer=r.nextConsumer,r.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=r,t.consumersTail=e,!n)for(let i=t.producers;i!==void 0;i=i.nextProducer)dve(i.producer,i)}function ZH(t){let e=t.producer,r=t.nextProducer,n=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=i:e.consumersTail=i,i!==void 0)i.nextConsumer=n;else if(e.consumers=n,!x_(e)){let o=e.producers;for(;o!==void 0;)o=ZH(o)}return r}function x_(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function eI(t){wct?.(t)}function Ict(t,e){let r=e.producersTail;if(r!==void 0){let n=e.producers;do{if(n===t)return!0;if(n===r)break;n=n.nextProducer}while(n!==void 0)}return!1}function tI(t,e){return Object.is(t,e)}function rI(t,e){let r=Object.create(Act);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(Iy(r),$d(r),r.value===ml)throw r.error;return r.value};return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Computed${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),eI(r),n}var Sy=Symbol("UNSET"),Ty=Symbol("COMPUTING"),ml=Symbol("ERRORED"),Act={...Ld,value:Sy,dirty:!0,error:null,equal:tI,kind:"computed",producerMustRecompute(t){return t.value===Sy||t.value===Ty},producerRecomputeValue(t){if(t.value===Ty)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=Ty;let r=gl(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Sy&&e!==ml&&n!==ml&&t.equal(e,n)}catch(o){n=ml,t.error=o}finally{Fd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function xct(){throw new Error}var fve=xct;function pve(t){fve(t)}function XH(t){fve=t}var Cct=null;function JH(t,e){let r=Object.create(nI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>hve(r);return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Signal${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),eI(r),[n,s=>zp(r,s),s=>b3(r,s)]}function hve(t){return $d(t),t.value}function zp(t,e){YH()||pve(t),t.equal(t.value,e)||(t.value=e,Oct(t))}function b3(t,e){YH()||pve(t),zp(t,e(t.value))}var nI={...Ld,equal:tI,value:void 0,kind:"signal"};function Oct(t){t.version++,ave(),QH(t),Cct?.(t)}var eG={...Ld,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function tG(t){if(t.dirty=!1,t.version>0&&!Ay(t))return;t.version++;let e=gl(t);try{t.cleanup(),t.fn()}finally{Fd(t,e)}}var Th=Q(kt(),1);var AK;function Uk(){return AK}function Js(t){let e=AK;return AK=t,e}var h1e=Symbol("NotFound");function y1(t){return t===h1e||t?.name==="\u0275NotFound"}function xK(t,e,r){let n=Object.create(qTt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let o=()=>{if(Iy(n),$d(n),n.value===ml)throw n.error;return n.value};return o[ar]=n,typeof ngDevMode<"u"&&ngDevMode&&(o.toString=()=>`[LinkedSignal${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),eI(n),o}function m1e(t,e){Iy(t),zp(t,e),A_(t)}function g1e(t,e){if(Iy(t),t.value===ml)throw t.error;b3(t,e),A_(t)}var qTt={...Ld,value:Sy,dirty:!0,error:null,equal:tI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Sy||t.value===Ty},producerRecomputeValue(t){if(t.value===Ty)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=Ty;let r=gl(t),n,i=!1;try{let o=t.source(),s=e!==Sy&&e!==ml,a=s?{source:t.sourceValue,value:e}:void 0;n=t.computation(o,a),t.sourceValue=o,Oe(null),i=s&&n!==ml&&t.equal(e,n)}catch(o){n=ml,t.error=o}finally{Fd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function y1e(t){let e=Oe(null);try{return t()}finally{Oe(e)}}function v1e(t){}var OK={header:(t,e)=>{if(!CK(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(o){return["span",`Signal(\u26A0\uFE0F Error)${o.message?`: ${o.message}`:""}`]}let n="computation"in t[ar]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],CK(r)?OK.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:BTt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!CK(t))return!1;try{t()}catch{return!1}return!e?.ngSkipFormatting},body:(t,e)=>{let r="var(--sys-color-primary)";return["div",{style:"background: #FFFFFF10; padding-left: 4px; padding-top: 2px; padding-bottom: 2px;"},["div",{style:`color: ${r}`},"Signal value: "],["div",{style:"padding-left: .5rem;"},["object",{object:t(),config:e}]],["div",{style:`color: ${r}`},"Signal function: "],["div",{style:"padding-left: .5rem;"},["object",{object:t,config:{...e,ngSkipFormatting:!0}}]]]}};function BTt(t){if(t===null)return"null";if(Array.isArray(t))return`Array(${t.length})`;if(t instanceof Element)return`<${t.tagName.toLowerCase()}>`;if(t instanceof URL)return"URL";switch(typeof t){case"undefined":return"undefined";case"function":return"prototype"in t?"class":"() => {\u2026}";case"object":return t.constructor.name==="Object"?"{\u2026}":`${t.constructor.name} {}`;default:return["object",{object:t,config:{ngSkipFormatting:!0}}]}}function CK(t){return t[ar]!==void 0}function UTt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===OK)||globalThis.devtoolsFormatters.push(OK)}(typeof ngDevMode>"u"||ngDevMode)&&UTt();var bI=class{full;major;minor;patch;constructor(e){this.full=e;let r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}},Gk=new bI("21.2.25"),xI=(()=>{let t=Gk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.84.0"?"next":`v${Gk.major}`}.angular.dev`})(),Xk=`${xI}/errors`,Va="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Er(e,r)),this.code=e}};function VTt(t){return`NG0${Math.abs(t)}`}function Er(t,e){let r=VTt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let o=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${o} Find more at ${Xk}/${r}`}return n}var $n=globalThis;function HTt(){let t=typeof location<"u"?location.toString():"",e={hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};return t.indexOf("ngDevMode=false")===-1?(typeof $n.ngDevMode!="object"&&($n.ngDevMode={}),Object.assign($n.ngDevMode,e)):$n.ngDevMode=!1,e}function Jk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&HTt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Jt(t){for(let e in t)if(t[e]===Jt)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function w1e(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Gt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Gt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let r=t.toString();if(r==null)return""+r;let n=r.indexOf(`
|
|
266
|
+
`));return n}function hct(t){return t.ngMetadataName==="HostBinding"}function mct(t){return t.ngMetadataName==="HostListener"}function gct(t){return t.ngMetadataName==="Input"}function yct(t){return t.ngMetadataName==="Output"}function vct(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=bct(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new yt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function bct(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 yt(t[2]):null,required:!1,isSignal:!1}}function _ct(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=sve(r);e[i]={bindingPropertyName:n,classPropertyName:i,required:!1,isSignal:!1,transformFunction:null}}else e[r.name]={bindingPropertyName:r.alias||r.name,classPropertyName:r.name,required:r.required||!1,isSignal:!1,transformFunction:r.transform!=null?new yt(r.transform):null};return e},{})}function QU(t){return t.reduce((e,r)=>{let[n,i]=sve(r);return e[i]=n,e},{})}function sve(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function Ect(t){return{name:t.type.name,type:Rn(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??$ye(t.version)}}function Sct(t){return{name:t.type.name,type:Rn(t.type),providers:t.providers!==void 0&&t.providers.length>0?new yt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new yt(e)):[]}}function Tct(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new wH}var Pye;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(Pye||(Pye={}));var IH=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Ma.PARSABLE_DATA}},sCr=new IH;var Nye;(function(t){t[t.Selector=0]="Selector",t[t.HostDirective=1]="HostDirective"})(Nye||(Nye={}));var aCr=new nV("21.2.25");Tct(BT);import*as wme from"fs";var ge={};Cme(ge,{ANIMATION_MODULE_TYPE:()=>L2e,APP_BOOTSTRAP_LISTENER:()=>R0,APP_ID:()=>Za,APP_INITIALIZER:()=>BL,ApplicationInitStatus:()=>E0,ApplicationModule:()=>Y$,ApplicationRef:()=>qn,Attribute:()=>PY,COMPILER_OPTIONS:()=>Nee,CSP_NONCE:()=>F4,CUSTOM_ELEMENTS_SCHEMA:()=>aZ,ChangeDetectionStrategy:()=>Uh,ChangeDetectorRef:()=>H$,Compiler:()=>$A,CompilerFactory:()=>P4,Component:()=>Txe,ComponentFactory:()=>ix,ComponentFactoryResolver:()=>FE,ComponentRef:()=>XZ,ContentChild:()=>V9t,ContentChildren:()=>U9t,DEFAULT_CURRENCY_CODE:()=>Oxe,DOCUMENT:()=>fo,DebugElement:()=>Qh,DebugEventListener:()=>D4,DebugNode:()=>bE,DefaultIterableDiffer:()=>K$,DestroyRef:()=>yi,Directive:()=>Pee,ENVIRONMENT_INITIALIZER:()=>co,ElementRef:()=>Bh,EmbeddedViewRef:()=>Zee,EnvironmentInjector:()=>Hr,ErrorHandler:()=>Ba,EventEmitter:()=>wl,HOST_TAG_NAME:()=>L9t,Host:()=>IY,HostAttributeToken:()=>Qee,HostBinding:()=>xxe,HostListener:()=>Cxe,INJECTOR:()=>a8,Inject:()=>Vl,Injectable:()=>de,InjectionToken:()=>F,Injector:()=>Gr,Input:()=>Ixe,IterableDiffers:()=>Ix,KeyValueDiffers:()=>Ax,LOCALE_ID:()=>N$,MAX_ANIMATION_TIMEOUT:()=>PZ,MissingTranslationStrategy:()=>N4,ModuleWithComponentFactories:()=>LA,NO_ERRORS_SCHEMA:()=>uZ,NgModule:()=>k0,NgModuleFactory:()=>bX,NgModuleRef:()=>Kh,NgZone:()=>Ot,Optional:()=>w0,Output:()=>Axe,OutputEmitterRef:()=>WE,PLATFORM_ID:()=>k2e,PLATFORM_INITIALIZER:()=>$4,PendingTasks:()=>Ua,Pipe:()=>wxe,PlatformRef:()=>QE,Query:()=>F0,QueryList:()=>cA,REQUEST:()=>skt,REQUEST_CONTEXT:()=>ukt,RESPONSE_INIT:()=>akt,Renderer2:()=>m4,RendererFactory2:()=>hE,RendererStyleFlags2:()=>dE,Sanitizer:()=>IA,SecurityContext:()=>hr,Self:()=>TY,SimpleChange:()=>oA,SkipSelf:()=>wY,TRANSLATIONS:()=>Pxe,TRANSLATIONS_FORMAT:()=>Nxe,TemplateRef:()=>Gh,Testability:()=>DA,TestabilityRegistry:()=>_0,TransferState:()=>ws,Type:()=>AY,VERSION:()=>Gk,Version:()=>bI,ViewChild:()=>G9t,ViewChildren:()=>H9t,ViewContainerRef:()=>p0,ViewEncapsulation:()=>Ho,ViewRef:()=>G$,afterEveryRender:()=>_A,afterNextRender:()=>JA,afterRenderEffect:()=>ite,asNativeElements:()=>Dxe,assertInInjectionContext:()=>gn,assertNotInReactiveContext:()=>G1,assertPlatform:()=>jCe,booleanAttribute:()=>BRt,computed:()=>Un,contentChild:()=>ACe,contentChildren:()=>xCe,createComponent:()=>nkt,createEnvironmentInjector:()=>qE,createNgModule:()=>_X,createNgModuleRef:()=>kIe,createPlatform:()=>LCe,createPlatformFactory:()=>$Ce,destroyPlatform:()=>X9t,effect:()=>w1,enableProdMode:()=>nRt,enableProfiling:()=>DX,forwardRef:()=>I1,getDebugNode:()=>_E,getModuleFactory:()=>_Rt,getNgModuleById:()=>ERt,getPlatform:()=>xx,importProvidersFrom:()=>tz,inject:()=>O,input:()=>ste,inputBinding:()=>sX,isDevMode:()=>rRt,isSignal:()=>ux,isStandalone:()=>Nl,isWritableSignal:()=>FL,linkedSignal:()=>em,makeEnvironmentProviders:()=>vi,makeStateKey:()=>qY,mergeApplicationConfig:()=>okt,model:()=>ute,numberAttribute:()=>URt,output:()=>wCe,outputBinding:()=>aX,platformCore:()=>ORt,provideAppInitializer:()=>FX,provideBrowserGlobalErrorListeners:()=>dEe,provideCheckNoChangesConfig:()=>tRt,provideEnvironmentInitializer:()=>c8,provideNgReflectAttributes:()=>UTe,providePlatformInitializer:()=>J9t,provideStabilityDebugging:()=>bRt,provideZoneChangeDetection:()=>W9t,provideZonelessChangeDetection:()=>P$,reflectComponentType:()=>ikt,resolveForwardRef:()=>ze,resource:()=>Lee,resourceFromSnapshots:()=>rkt,runInInjectionContext:()=>Ga,setTestabilityGetter:()=>kX,signal:()=>Fi,twoWayBinding:()=>hIe,untracked:()=>sa,viewChild:()=>ate,viewChildren:()=>ICe,\u0275ANIMATIONS_DISABLED:()=>OZ,\u0275AcxChangeDetectionStrategy:()=>s4,\u0275AcxViewEncapsulation:()=>a4,\u0275AfterRenderManager:()=>c0,\u0275CLIENT_RENDER_MODE_FLAG:()=>HCe,\u0275CONTAINER_HEADER_OFFSET:()=>Wt,\u0275ChangeDetectionScheduler:()=>_s,\u0275ComponentFactory:()=>ix,\u0275Console:()=>oa,\u0275DEFAULT_LOCALE_ID:()=>GE,\u0275DEFER_BLOCK_CONFIG:()=>CX,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>xX,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Xa,\u0275DeferBlockBehavior:()=>PA,\u0275DeferBlockState:()=>rr,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>MCe,\u0275EVENT_REPLAY_QUEUE:()=>zY,\u0275EffectScheduler:()=>By,\u0275Framework:()=>zee,\u0275HydrationStatus:()=>Vh,\u0275IMAGE_CONFIG:()=>jY,\u0275IMAGE_CONFIG_DEFAULTS:()=>FY,\u0275INJECTOR_SCOPE:()=>L1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>k9t,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Fl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>q2e,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Zh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>H4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>AE,\u0275JSACTION_EVENT_CONTRACT:()=>G4,\u0275LContext:()=>dA,\u0275LocaleDataIndex:()=>zh,\u0275NG_COMP_DEF:()=>Pl,\u0275NG_DIR_DEF:()=>Ih,\u0275NG_ELEMENT_ID:()=>Ah,\u0275NG_INJ_DEF:()=>_1,\u0275NG_MOD_DEF:()=>OI,\u0275NG_PIPE_DEF:()=>D1,\u0275NG_PROV_DEF:()=>Hy,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>XI,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>g0,\u0275NoopNgZone:()=>S1,\u0275PERFORMANCE_MARK_PREFIX:()=>XCe,\u0275PROVIDED_NG_ZONE:()=>cte,\u0275PROVIDED_ZONELESS:()=>UI,\u0275PendingTasksInternal:()=>ta,\u0275ProfilerEvent:()=>he,\u0275R3Injector:()=>ea,\u0275ReflectionCapabilities:()=>iA,\u0275Render3ComponentFactory:()=>Jd,\u0275Render3ComponentRef:()=>xA,\u0275Render3NgModuleRef:()=>m0,\u0275ResourceImpl:()=>L0,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>ar,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>JY,\u0275TESTABILITY:()=>RX,\u0275TESTABILITY_GETTER:()=>jL,\u0275TimerScheduler:()=>NA,\u0275TracingAction:()=>pE,\u0275TracingService:()=>Gl,\u0275ViewRef:()=>Xd,\u0275XSS_SECURITY_URL:()=>Va,\u0275ZONELESS_ENABLED:()=>Xy,\u0275_sanitizeHtml:()=>hZ,\u0275_sanitizeUrl:()=>WA,\u0275allLeavingAnimations:()=>Hh,\u0275allowSanitizationBypassAndThrow:()=>O0,\u0275annotateForHydration:()=>MRt,\u0275assertType:()=>KRt,\u0275bypassSanitizationTrustHtml:()=>STe,\u0275bypassSanitizationTrustResourceUrl:()=>ATe,\u0275bypassSanitizationTrustScript:()=>wTe,\u0275bypassSanitizationTrustStyle:()=>TTe,\u0275bypassSanitizationTrustUrl:()=>ITe,\u0275clearResolutionOfComponentResourcesQueue:()=>PIe,\u0275compileComponent:()=>Cee,\u0275compileDirective:()=>O$,\u0275compileNgModule:()=>Iee,\u0275compileNgModuleDefs:()=>Aee,\u0275compileNgModuleFactory:()=>PCe,\u0275compilePipe:()=>Oee,\u0275convertToBitFlags:()=>vh,\u0275createInjector:()=>Qk,\u0275createOrReusePlatformInjector:()=>qCe,\u0275defaultIterableDiffers:()=>xRt,\u0275defaultKeyValueDiffers:()=>CRt,\u0275depsTracker:()=>Wh,\u0275devModeEqual:()=>OL,\u0275disableProfiling:()=>WRt,\u0275enableProfiling:()=>GRt,\u0275encapsulateResourceError:()=>KE,\u0275findLocaleData:()=>JL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>wee,\u0275formatRuntimeError:()=>Er,\u0275generateStandaloneInDeclarationsError:()=>xee,\u0275getAsyncClassMetadataFn:()=>eAe,\u0275getClosestComponentName:()=>mIe,\u0275getComponentDef:()=>ut,\u0275getDeferBlocks:()=>iE,\u0275getDirectives:()=>RY,\u0275getDocument:()=>x0,\u0275getHostElement:()=>kY,\u0275getInjectableDef:()=>C1,\u0275getLContext:()=>ji,\u0275getLocaleCurrencyCode:()=>bAe,\u0275getLocalePluralCase:()=>EJ,\u0275getOutputDestroyRef:()=>kxe,\u0275getSanitizationBypassType:()=>pZ,\u0275getTransferState:()=>MX,\u0275getUnknownElementStrictMode:()=>pTe,\u0275getUnknownPropertyStrictMode:()=>mTe,\u0275global:()=>$n,\u0275inferTagNameFromDefinition:()=>cX,\u0275injectChangeDetectorRef:()=>WCe,\u0275internalCreateApplication:()=>PRt,\u0275internalProvideZoneChangeDetection:()=>NCe,\u0275isBoundToModule:()=>BX,\u0275isComponentDefPendingResolution:()=>CIe,\u0275isEnvironmentProviders:()=>N1,\u0275isInjectable:()=>C1e,\u0275isNgModule:()=>Lh,\u0275isPromise:()=>qL,\u0275isSubscribable:()=>$X,\u0275isViewDirty:()=>Owe,\u0275markForRefresh:()=>Pwe,\u0275noSideEffects:()=>Ya,\u0275patchComponentDefWithScope:()=>x$,\u0275performanceMarkFeature:()=>zr,\u0275promiseWithResolvers:()=>cx,\u0275provideZonelessChangeDetectionInternal:()=>Ex,\u0275publishExternalGlobalUtil:()=>aAe,\u0275readHydrationInfo:()=>rZ,\u0275registerLocaleData:()=>vAe,\u0275renderDeferBlockState:()=>Bl,\u0275resetCompiledComponents:()=>pxe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>tTe,\u0275resetJitOptions:()=>dxe,\u0275resolveComponentResources:()=>yX,\u0275restoreComponentResolutionQueue:()=>NIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>RIe,\u0275setAlternateWeakRefImpl:()=>v1e,\u0275setClassDebugInfo:()=>Eee,\u0275setClassMetadata:()=>Bi,\u0275setClassMetadataAsync:()=>PX,\u0275setCurrentInjector:()=>Js,\u0275setDocument:()=>R2e,\u0275setInjectorProfilerContext:()=>mn,\u0275setLocaleId:()=>SJ,\u0275setUnknownElementStrictMode:()=>fTe,\u0275setUnknownPropertyStrictMode:()=>hTe,\u0275startMeasuring:()=>VRt,\u0275stopMeasuring:()=>HRt,\u0275store:()=>q1,\u0275stringify:()=>Gt,\u0275transitiveScopesFor:()=>C$,\u0275triggerResourceLoading:()=>dx,\u0275truncateMiddle:()=>t8,\u0275unregisterLocaleData:()=>_Ae,\u0275unwrapSafeValue:()=>Hl,\u0275unwrapWritableSignal:()=>fEe,\u0275withDomHydration:()=>mRt,\u0275withEventReplay:()=>UCe,\u0275withI18nSupport:()=>gRt,\u0275withIncrementalHydration:()=>yRt,\u0275\u0275ControlFeature:()=>wX,\u0275\u0275ExternalStylesFeature:()=>eee,\u0275\u0275FactoryTarget:()=>Ut,\u0275\u0275HostDirectivesFeature:()=>IX,\u0275\u0275InheritDefinitionFeature:()=>ML,\u0275\u0275NgOnChangesFeature:()=>xY,\u0275\u0275ProvidersFeature:()=>JJ,\u0275\u0275advance:()=>xZ,\u0275\u0275animateEnter:()=>oE,\u0275\u0275animateEnterListener:()=>sE,\u0275\u0275animateLeave:()=>aE,\u0275\u0275animateLeaveListener:()=>MA,\u0275\u0275ariaProperty:()=>UL,\u0275\u0275arrowFunction:()=>XJ,\u0275\u0275attachSourceLocations:()=>BJ,\u0275\u0275attribute:()=>VL,\u0275\u0275classMap:()=>LJ,\u0275\u0275classProp:()=>h$,\u0275\u0275componentInstance:()=>fJ,\u0275\u0275conditional:()=>hJ,\u0275\u0275conditionalBranchCreate:()=>fx,\u0275\u0275conditionalCreate:()=>pJ,\u0275\u0275contentQuery:()=>c$,\u0275\u0275contentQuerySignal:()=>d$,\u0275\u0275control:()=>oX,\u0275\u0275controlCreate:()=>iX,\u0275\u0275declareLet:()=>A$,\u0275\u0275defer:()=>VX,\u0275\u0275deferEnableTimerScheduling:()=>OX,\u0275\u0275deferHydrateNever:()=>KX,\u0275\u0275deferHydrateOnHover:()=>oJ,\u0275\u0275deferHydrateOnIdle:()=>YX,\u0275\u0275deferHydrateOnImmediate:()=>JX,\u0275\u0275deferHydrateOnInteraction:()=>uJ,\u0275\u0275deferHydrateOnTimer:()=>rJ,\u0275\u0275deferHydrateOnViewport:()=>dJ,\u0275\u0275deferHydrateWhen:()=>WX,\u0275\u0275deferOnHover:()=>nJ,\u0275\u0275deferOnIdle:()=>zX,\u0275\u0275deferOnImmediate:()=>ZX,\u0275\u0275deferOnInteraction:()=>sJ,\u0275\u0275deferOnTimer:()=>eJ,\u0275\u0275deferOnViewport:()=>cJ,\u0275\u0275deferPrefetchOnHover:()=>iJ,\u0275\u0275deferPrefetchOnIdle:()=>QX,\u0275\u0275deferPrefetchOnImmediate:()=>XX,\u0275\u0275deferPrefetchOnInteraction:()=>aJ,\u0275\u0275deferPrefetchOnTimer:()=>tJ,\u0275\u0275deferPrefetchOnViewport:()=>lJ,\u0275\u0275deferPrefetchWhen:()=>GX,\u0275\u0275deferWhen:()=>HX,\u0275\u0275defineComponent:()=>EX,\u0275\u0275defineDirective:()=>SX,\u0275\u0275defineInjectable:()=>er,\u0275\u0275defineInjector:()=>x1,\u0275\u0275defineNgModule:()=>DL,\u0275\u0275definePipe:()=>TX,\u0275\u0275directiveInject:()=>Xh,\u0275\u0275disableBindings:()=>S8,\u0275\u0275domElement:()=>KL,\u0275\u0275domElementContainer:()=>YL,\u0275\u0275domElementContainerEnd:()=>QL,\u0275\u0275domElementContainerStart:()=>yx,\u0275\u0275domElementEnd:()=>mx,\u0275\u0275domElementStart:()=>hx,\u0275\u0275domListener:()=>u$,\u0275\u0275domProperty:()=>ZL,\u0275\u0275domTemplate:()=>kL,\u0275\u0275element:()=>WL,\u0275\u0275elementContainer:()=>zL,\u0275\u0275elementContainerEnd:()=>HE,\u0275\u0275elementContainerStart:()=>gx,\u0275\u0275elementEnd:()=>px,\u0275\u0275elementStart:()=>gE,\u0275\u0275enableBindings:()=>E8,\u0275\u0275getComponentDepsFactory:()=>_ee,\u0275\u0275getCurrentView:()=>_J,\u0275\u0275getInheritedFactory:()=>OY,\u0275\u0275getReplaceMetadataURL:()=>See,\u0275\u0275i18n:()=>TJ,\u0275\u0275i18nApply:()=>IJ,\u0275\u0275i18nAttributes:()=>wJ,\u0275\u0275i18nEnd:()=>i$,\u0275\u0275i18nExp:()=>o$,\u0275\u0275i18nPostprocess:()=>AJ,\u0275\u0275i18nStart:()=>n$,\u0275\u0275inject:()=>Jn,\u0275\u0275injectAttribute:()=>qA,\u0275\u0275interpolate:()=>UJ,\u0275\u0275interpolate1:()=>VJ,\u0275\u0275interpolate2:()=>HJ,\u0275\u0275interpolate3:()=>GJ,\u0275\u0275interpolate4:()=>WJ,\u0275\u0275interpolate5:()=>KJ,\u0275\u0275interpolate6:()=>zJ,\u0275\u0275interpolate7:()=>QJ,\u0275\u0275interpolate8:()=>YJ,\u0275\u0275interpolateV:()=>ZJ,\u0275\u0275invalidFactory:()=>eX,\u0275\u0275invalidFactoryDep:()=>NI,\u0275\u0275listener:()=>s$,\u0275\u0275loadQuery:()=>DJ,\u0275\u0275namespaceHTML:()=>M8,\u0275\u0275namespaceMathML:()=>D8,\u0275\u0275namespaceSVG:()=>N8,\u0275\u0275nextContext:()=>CJ,\u0275\u0275ngDeclareClassMetadata:()=>Ar,\u0275\u0275ngDeclareClassMetadataAsync:()=>QRt,\u0275\u0275ngDeclareComponent:()=>YRt,\u0275\u0275ngDeclareDirective:()=>zRt,\u0275\u0275ngDeclareFactory:()=>xr,\u0275\u0275ngDeclareInjectable:()=>Qr,\u0275\u0275ngDeclareInjector:()=>Cx,\u0275\u0275ngDeclareNgModule:()=>Ox,\u0275\u0275ngDeclarePipe:()=>XRt,\u0275\u0275pipe:()=>pee,\u0275\u0275pipeBind1:()=>hee,\u0275\u0275pipeBind2:()=>mee,\u0275\u0275pipeBind3:()=>gee,\u0275\u0275pipeBind4:()=>yee,\u0275\u0275pipeBindV:()=>vee,\u0275\u0275projection:()=>PJ,\u0275\u0275projectionDef:()=>OJ,\u0275\u0275property:()=>GL,\u0275\u0275pureFunction0:()=>nee,\u0275\u0275pureFunction1:()=>iee,\u0275\u0275pureFunction2:()=>oee,\u0275\u0275pureFunction3:()=>see,\u0275\u0275pureFunction4:()=>aee,\u0275\u0275pureFunction5:()=>uee,\u0275\u0275pureFunction6:()=>cee,\u0275\u0275pureFunction7:()=>lee,\u0275\u0275pureFunction8:()=>dee,\u0275\u0275pureFunctionV:()=>fee,\u0275\u0275queryAdvance:()=>MJ,\u0275\u0275queryRefresh:()=>NJ,\u0275\u0275readContextLet:()=>qJ,\u0275\u0275reference:()=>RJ,\u0275\u0275registerNgModuleType:()=>NL,\u0275\u0275repeater:()=>yJ,\u0275\u0275repeaterCreate:()=>gJ,\u0275\u0275repeaterTrackByIdentity:()=>HL,\u0275\u0275repeaterTrackByIndex:()=>mJ,\u0275\u0275replaceMetadata:()=>Tee,\u0275\u0275resetView:()=>w8,\u0275\u0275resolveBody:()=>iL,\u0275\u0275resolveDocument:()=>SZ,\u0275\u0275resolveWindow:()=>EZ,\u0275\u0275restoreView:()=>T8,\u0275\u0275sanitizeHtml:()=>J4,\u0275\u0275sanitizeResourceUrl:()=>QA,\u0275\u0275sanitizeScript:()=>rL,\u0275\u0275sanitizeStyle:()=>eL,\u0275\u0275sanitizeUrl:()=>tL,\u0275\u0275sanitizeUrlOrResourceUrl:()=>_Z,\u0275\u0275setComponentScope:()=>tee,\u0275\u0275setNgModuleScope:()=>ree,\u0275\u0275storeLet:()=>jJ,\u0275\u0275styleMap:()=>kJ,\u0275\u0275styleProp:()=>p$,\u0275\u0275syntheticHostListener:()=>a$,\u0275\u0275syntheticHostProperty:()=>XL,\u0275\u0275template:()=>RL,\u0275\u0275templateRefExtractor:()=>bee,\u0275\u0275text:()=>$J,\u0275\u0275textInterpolate:()=>m$,\u0275\u0275textInterpolate1:()=>vx,\u0275\u0275textInterpolate2:()=>g$,\u0275\u0275textInterpolate3:()=>y$,\u0275\u0275textInterpolate4:()=>v$,\u0275\u0275textInterpolate5:()=>b$,\u0275\u0275textInterpolate6:()=>_$,\u0275\u0275textInterpolate7:()=>E$,\u0275\u0275textInterpolate8:()=>S$,\u0275\u0275textInterpolateV:()=>T$,\u0275\u0275trustConstantHtml:()=>vZ,\u0275\u0275trustConstantResourceUrl:()=>bZ,\u0275\u0275twoWayBindingSet:()=>FJ,\u0275\u0275twoWayListener:()=>I$,\u0275\u0275twoWayProperty:()=>w$,\u0275\u0275validateAttribute:()=>nL,\u0275\u0275viewQuery:()=>l$,\u0275\u0275viewQuerySignal:()=>f$});var Ri=null,Jw=!1,KH=1,wct=null,ar=Symbol("SIGNAL");function Oe(t){let e=Ri;return Ri=t,e}function wy(){return Ri}function zH(){return Jw}var Ld={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function $d(t){if(Jw)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ri===null)return;Ri.consumerOnSignalRead(t);let e=Ri.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Ri.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Ri.producers,r!==void 0&&r.producer===t)){Ri.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ri&&(!n||Ict(i,Ri)))return;let o=x_(Ri),s={producer:t,consumer:Ri,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ri.producersTail=s,e!==void 0?e.nextProducer=s:Ri.producers=s,o&&dve(t,s)}function ave(){KH++}function Iy(t){if(!(x_(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===KH)){if(!t.producerMustRecompute(t)&&!Ay(t)){A_(t);return}t.producerRecomputeValue(t),A_(t)}}function QH(t){if(t.consumers===void 0)return;let e=Jw;Jw=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||uve(n)}}finally{Jw=e}}function YH(){return Ri?.consumerAllowSignalWrites!==!1}function uve(t){t.dirty=!0,QH(t),t.consumerMarkedDirty?.(t)}function A_(t){t.dirty=!1,t.lastCleanEpoch=KH}function gl(t){return t&&cve(t),Oe(t)}function cve(t){t.producersTail=void 0,t.recomputing=!0}function Fd(t,e){Oe(e),t&&lve(t)}function lve(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(x_(t))do r=ZH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function Ay(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(Iy(r),n!==r.version))return!0}return!1}function jd(t){if(x_(t)){let e=t.producers;for(;e!==void 0;)e=ZH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function dve(t,e){let r=t.consumersTail,n=x_(t);if(r!==void 0?(e.nextConsumer=r.nextConsumer,r.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=r,t.consumersTail=e,!n)for(let i=t.producers;i!==void 0;i=i.nextProducer)dve(i.producer,i)}function ZH(t){let e=t.producer,r=t.nextProducer,n=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=i:e.consumersTail=i,i!==void 0)i.nextConsumer=n;else if(e.consumers=n,!x_(e)){let o=e.producers;for(;o!==void 0;)o=ZH(o)}return r}function x_(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function eI(t){wct?.(t)}function Ict(t,e){let r=e.producersTail;if(r!==void 0){let n=e.producers;do{if(n===t)return!0;if(n===r)break;n=n.nextProducer}while(n!==void 0)}return!1}function tI(t,e){return Object.is(t,e)}function rI(t,e){let r=Object.create(Act);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(Iy(r),$d(r),r.value===ml)throw r.error;return r.value};return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Computed${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),eI(r),n}var Sy=Symbol("UNSET"),Ty=Symbol("COMPUTING"),ml=Symbol("ERRORED"),Act={...Ld,value:Sy,dirty:!0,error:null,equal:tI,kind:"computed",producerMustRecompute(t){return t.value===Sy||t.value===Ty},producerRecomputeValue(t){if(t.value===Ty)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=Ty;let r=gl(t),n,i=!1;try{n=t.computation(),Oe(null),i=e!==Sy&&e!==ml&&n!==ml&&t.equal(e,n)}catch(o){n=ml,t.error=o}finally{Fd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function xct(){throw new Error}var fve=xct;function pve(t){fve(t)}function XH(t){fve=t}var Cct=null;function JH(t,e){let r=Object.create(nI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>hve(r);return n[ar]=r,typeof ngDevMode<"u"&&ngDevMode&&(n.toString=()=>`[Signal${r.debugName?" ("+r.debugName+")":""}: ${String(r.value)}]`),eI(r),[n,s=>zp(r,s),s=>b3(r,s)]}function hve(t){return $d(t),t.value}function zp(t,e){YH()||pve(t),t.equal(t.value,e)||(t.value=e,Oct(t))}function b3(t,e){YH()||pve(t),zp(t,e(t.value))}var nI={...Ld,equal:tI,value:void 0,kind:"signal"};function Oct(t){t.version++,ave(),QH(t),Cct?.(t)}var eG={...Ld,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function tG(t){if(t.dirty=!1,t.version>0&&!Ay(t))return;t.version++;let e=gl(t);try{t.cleanup(),t.fn()}finally{Fd(t,e)}}var Th=Q(kt(),1);var AK;function Uk(){return AK}function Js(t){let e=AK;return AK=t,e}var h1e=Symbol("NotFound");function y1(t){return t===h1e||t?.name==="\u0275NotFound"}function xK(t,e,r){let n=Object.create(qTt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let o=()=>{if(Iy(n),$d(n),n.value===ml)throw n.error;return n.value};return o[ar]=n,typeof ngDevMode<"u"&&ngDevMode&&(o.toString=()=>`[LinkedSignal${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),eI(n),o}function m1e(t,e){Iy(t),zp(t,e),A_(t)}function g1e(t,e){if(Iy(t),t.value===ml)throw t.error;b3(t,e),A_(t)}var qTt={...Ld,value:Sy,dirty:!0,error:null,equal:tI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Sy||t.value===Ty},producerRecomputeValue(t){if(t.value===Ty)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=Ty;let r=gl(t),n,i=!1;try{let o=t.source(),s=e!==Sy&&e!==ml,a=s?{source:t.sourceValue,value:e}:void 0;n=t.computation(o,a),t.sourceValue=o,Oe(null),i=s&&n!==ml&&t.equal(e,n)}catch(o){n=ml,t.error=o}finally{Fd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function y1e(t){let e=Oe(null);try{return t()}finally{Oe(e)}}function v1e(t){}var OK={header:(t,e)=>{if(!CK(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(o){return["span",`Signal(\u26A0\uFE0F Error)${o.message?`: ${o.message}`:""}`]}let n="computation"in t[ar]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],CK(r)?OK.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:BTt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!CK(t))return!1;try{t()}catch{return!1}return!e?.ngSkipFormatting},body:(t,e)=>{let r="var(--sys-color-primary)";return["div",{style:"background: #FFFFFF10; padding-left: 4px; padding-top: 2px; padding-bottom: 2px;"},["div",{style:`color: ${r}`},"Signal value: "],["div",{style:"padding-left: .5rem;"},["object",{object:t(),config:e}]],["div",{style:`color: ${r}`},"Signal function: "],["div",{style:"padding-left: .5rem;"},["object",{object:t,config:{...e,ngSkipFormatting:!0}}]]]}};function BTt(t){if(t===null)return"null";if(Array.isArray(t))return`Array(${t.length})`;if(t instanceof Element)return`<${t.tagName.toLowerCase()}>`;if(t instanceof URL)return"URL";switch(typeof t){case"undefined":return"undefined";case"function":return"prototype"in t?"class":"() => {\u2026}";case"object":return t.constructor.name==="Object"?"{\u2026}":`${t.constructor.name} {}`;default:return["object",{object:t,config:{ngSkipFormatting:!0}}]}}function CK(t){return t[ar]!==void 0}function UTt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===OK)||globalThis.devtoolsFormatters.push(OK)}(typeof ngDevMode>"u"||ngDevMode)&&UTt();var bI=class{full;major;minor;patch;constructor(e){this.full=e;let r=e.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}},Gk=new bI("21.2.25"),xI=(()=>{let t=Gk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.84.1"?"next":`v${Gk.major}`}.angular.dev`})(),Xk=`${xI}/errors`,Va="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Er(e,r)),this.code=e}};function VTt(t){return`NG0${Math.abs(t)}`}function Er(t,e){let r=VTt(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let o=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${o} Find more at ${Xk}/${r}`}return n}var $n=globalThis;function HTt(){let t=typeof location<"u"?location.toString():"",e={hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};return t.indexOf("ngDevMode=false")===-1?(typeof $n.ngDevMode!="object"&&($n.ngDevMode={}),Object.assign($n.ngDevMode,e)):$n.ngDevMode=!1,e}function Jk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&HTt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Jt(t){for(let e in t)if(t[e]===Jt)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function w1e(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Gt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Gt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let r=t.toString();if(r==null)return""+r;let n=r.indexOf(`
|
|
267
267
|
`);return n>=0?r.slice(0,n):r}function e8(t,e){return t?e?`${t} ${e}`:t:e||""}function t8(t,e=100){if(!t||e<1||t.length<=e)return t;if(e==1)return t.substring(0,1)+"...";let r=Math.round(e/2);return t.substring(0,r)+"..."+t.substring(t.length-r)}var GTt=Jt({__forward_ref__:Jt});function I1(t){return t.__forward_ref__=I1,ngDevMode&&(t.toString=function(){return Gt(this())}),t}function ze(t){return CI(t)?t():t}function CI(t){return typeof t=="function"&&t.hasOwnProperty(GTt)&&t.__forward_ref__===I1}function ur(t,e){typeof t!="number"&&Ae(e,typeof t,"number","===")}function A1(t,e,r){ur(t,"Expected a number"),I1e(t,r,"Expected number to be less than or equal to"),Ol(t,e,"Expected number to be greater than or equal to")}function Uy(t,e){typeof t!="string"&&Ae(e,t===null?"null":typeof t,"string","===")}function VK(t,e){typeof t!="function"&&Ae(e,t===null?"null":typeof t,"function","===")}function ke(t,e,r){t!=e&&Ae(r,t,e,"==")}function so(t,e,r){t==e&&Ae(r,t,e,"!=")}function HK(t,e,r){t!==e&&Ae(r,t,e,"===")}function Vy(t,e,r){t===e&&Ae(r,t,e,"!==")}function Cl(t,e,r){t<e||Ae(r,t,e,"<")}function I1e(t,e,r){t<=e||Ae(r,t,e,"<=")}function wh(t,e,r){t>e||Ae(r,t,e,">")}function Ol(t,e,r){t>=e||Ae(r,t,e,">=")}function GK(t,e){t!=null&&Ae(e,t,null,"==")}function ee(t,e){t==null&&Ae(e,t,null,"!=")}function Ae(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function zd(t){t instanceof Node||Ae(`The provided value must be an instance of a DOM Node but got ${Gt(t)}`)}function A1e(t){t instanceof Element||Ae(`The provided value must be an element but got ${Gt(t)}`)}function $r(t,e){ee(t,"Array must be defined.");let r=t.length;(e<0||e>=r)&&Ae(`Index expected to be less than ${r} but got ${e}`)}function x1e(t,...e){if(e.indexOf(t)!==-1)return!0;Ae(`Expected value to be one of ${JSON.stringify(e)} but was ${JSON.stringify(t)}.`)}function r8(t){wy()!==null&&Ae(`${t}() should never be called in a reactive context.`)}function er(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function x1(t){return{providers:t.providers||[],imports:t.imports||[]}}function C1(t){return WTt(t,Hy)}function C1e(t){return C1(t)!==null}function WTt(t,e){return t.hasOwnProperty(e)&&t[e]||null}function KTt(t){let e=t?.[Hy]??null;return e?(ngDevMode&&console.warn(`DEPRECATED: DI is instantiating a token "${t.name}" that inherits its @Injectable decorator but does not provide one itself.
|
|
268
268
|
This will become an error in a future version of Angular. Please add @Injectable() to the "${t.name}" class.`),e):null}function _I(t){return t&&t.hasOwnProperty(_1)?t[_1]:null}var Hy=Jt({\u0275prov:Jt}),_1=Jt({\u0275inj:Jt}),F=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,r){this._desc=e,this.\u0275prov=void 0,typeof r=="number"?((typeof ngDevMode>"u"||ngDevMode)&&Cl(r,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=r):r!==void 0&&(this.\u0275prov=er({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},NK;function O1(){return!ngDevMode&&Ae("getInjectorProfilerContext should never be called in production mode"),NK}function mn(t){!ngDevMode&&Ae("setInjectorProfilerContext should never be called in production mode");let e=NK;return NK=t,e}var Fy=[],zTt=()=>{};function QTt(t){let e=Fy.indexOf(t);e!==-1&&Fy.splice(e,1)}function WK(t){return!ngDevMode&&Ae("setInjectorProfiler should never be called in production mode"),t!==null?(Fy.includes(t)||Fy.push(t),()=>QTt(t)):(Fy.length=0,zTt)}function P1(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode");for(let e=0;e<Fy.length;e++){let r=Fy[e];r(t)}}function Wk(t,e=!1){!ngDevMode&&Ae("Injector profiler should never be called in production mode");let r;typeof t=="function"||t instanceof F?r=t:r=ze(t.provide);let n=t;t instanceof F&&(n=t.\u0275prov||t),P1({type:2,context:O1(),providerRecord:{token:r,provider:n,isViewProvider:e}})}function EI(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:5,context:O1(),token:t})}function SI(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:1,context:O1(),instance:{value:t}})}function KK(t,e,r){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:0,context:O1(),service:{token:t,value:e,flags:r}})}function YTt(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:3,context:O1(),effect:t})}function O1e(t){!ngDevMode&&Ae("Injector profiler should never be called in production mode"),P1({type:4,context:O1(),effectPhase:t})}function b1(t,e,r){!ngDevMode&&Ae("runInInjectorProfilerContext should never be called in production mode");let n=mn({injector:t,token:e});try{r()}finally{mn(n)}}function N1(t){return t&&!!t.\u0275providers}var Pl=Jt({\u0275cmp:Jt}),Ih=Jt({\u0275dir:Jt}),D1=Jt({\u0275pipe:Jt}),OI=Jt({\u0275mod:Jt}),Il=Jt({\u0275fac:Jt}),Ah=Jt({__NG_ELEMENT_ID__:Jt}),b1e=Jt({__NG_ENV_ID__:Jt});function Ha(t){return n8(t,"@NgModule"),t[OI]||null}function PI(t){let e=Ha(t);if(!e)throw new $(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Gt(t)} does not have '\u0275mod' property.`);return e}function ut(t){return n8(t,"@Component"),t[Pl]||null}function P1e(t){let e=Cn(t);if(!e)throw new $(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Gt(t)} does not have '\u0275dir' property.`);return e}function Cn(t){return n8(t,"@Directive"),t[Ih]||null}function ao(t){return n8(t,"@Pipe"),t[D1]||null}function n8(t,e){if(t==null)throw new $(-919,(typeof ngDevMode>"u"||ngDevMode)&&`Cannot read ${e} metadata. This can indicate a runtime circular dependency in your app that needs to be resolved.`)}function Nl(t){let e=ut(t)||Cn(t)||ao(t);return e!==null&&e.standalone}function nt(t){return typeof t=="string"?t:t==null?"":String(t)}function Xe(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():nt(t)}function zK(t){let e=ut(t);return e!==null&&e.debugInfo?ZTt(e.debugInfo):Xe(t)}function ZTt(t){return!t.filePath||!t.lineNumber?t.className:`${t.className} (at ${t.filePath}:${t.lineNumber})`}var QK=Jt({ngErrorCode:Jt}),N1e=Jt({ngErrorMessage:Jt}),vI=Jt({ngTokenPath:Jt});function i8(t,e){let r=ngDevMode?`Circular dependency detected for \`${t}\`.`:"";return M1e(r,-200,e)}function YK(t,e){return D1e(i8(t,e),null)}function _1e(){throw new Error("Cannot mix multi providers and regular providers")}function DK(t,e,r){if(t&&e){let n=e.map(i=>i==r?"?"+r+"?":"...");throw new Error(`Invalid provider for the NgModule '${Gt(t)}' - only instances of Provider and Type are allowed, got: [${n.join(", ")}]`)}else throw N1(r)?r.\u0275fromNgModule?new $(-207,"Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers."):new $(-207,"Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers."):new Error("Invalid provider")}function o8(t,e){let r=ngDevMode&&`No provider for ${Xe(t)} found${e?` in ${e}`:""}`;throw new $(-201,r)}function XTt(t,e){t[vI]??=[];let r=t[vI],n;typeof e=="object"&&"multi"in e&&e?.multi===!0?(ee(e.provide,"Token with multi: true should have a provide property"),n=Xe(e.provide)):n=Xe(e),r[0]!==n&&t[vI].unshift(n)}function D1e(t,e){let r=t[vI],n=t[QK],i=t[N1e]||t.message;return t.message=ewt(i,n,r,e),t}function M1e(t,e,r){let n=new $(e,t);return n[QK]=e,n[N1e]=t,r&&(n[vI]=r),n}function JTt(t){return t[QK]}function ewt(t,e,r=[],n=null){let i="";r&&r.length>1&&(i=` Path: ${r.join(" -> ")}.`);let o=n?` Source: ${n}.`:"";return Er(e,`${t}${o}${i}`)}var Kk;function R1e(){return Kk}function oo(t){let e=Kk;return Kk=t,e}function ZK(t,e,r){let n=C1(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&8)return null;if(e!==void 0)return e;o8(t,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function k1e(t){ngDevMode&&so(Kk,t,"Calling \u0275\u0275inject would cause infinite recursion")}var twt={},jy=twt,MK="__NG_DI_FLAG__",RK=class{injector;constructor(e){this.injector=e}retrieve(e,r){let n=vh(r)||0;try{return this.injector.get(e,n&8?null:jy,n)}catch(i){if(y1(i))return i;throw i}}};function rwt(t,e=0){let r=Uk();if(r===void 0)throw new $(-203,ngDevMode&&`The \`${Gt(t)}\` token injection failed. \`inject()\` function must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \`runInInjectionContext\`.`);if(r===null)return ZK(t,void 0,e);{let n=nwt(e),i=r.retrieve(t,n);if(ngDevMode&&KK(t,i,e),y1(i)){if(n.optional)return null;throw i}return i}}function Jn(t,e=0){return(R1e()||rwt)(ze(t),e)}function NI(t){throw new $(202,ngDevMode&&`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${t} of the parameter list is invalid.
|
|
269
269
|
This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.
|