planx 20.66.1 → 20.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.main.mjs +7 -7
- package/blob.main.mjs +2 -2
- package/config.main.mjs +2 -2
- package/domain.main.mjs +2 -2
- package/exit.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/main.js +242 -242
- package/nosturn.main.mjs +1 -1
- package/package.json +6 -6
- 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.
|
|
1
|
+
globalThis.__PLANX_SERVICE_VERSION__="20.67.0";
|
|
2
2
|
import { createRequire } from "module";
|
|
3
3
|
import _nodeUrl from "url";
|
|
4
4
|
import _nodePath from "path";
|
|
@@ -262,7 +262,7 @@ ${e.map(r=>`"${r.sourceSpan.toString()}"`).join(`
|
|
|
262
262
|
`)}
|
|
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 gtt=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function ytt(t){return t.split(gtt)[2]}var Cme=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Pme(t,e){return t=t.toLowerCase(),e=e.toLowerCase(),Cme.has(t+"|"+e)||Cme.has("*|"+e)}var vtt=t=>(e,r)=>{let n=t.get(e)??e;return n instanceof wd&&(r instanceof tb&&n.i18n instanceof Ki&&(r.previousMessage=n.i18n),n.i18n=r),r},SM=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:s,customId:o}=this._parseMetadata(r),u=dtt(this.retainEmptyTokens,this.preserveSignificantWhitespace)(e,i,s,o,n);return this._setMessageId(u,r),this._setLegacyIds(u,r),u}visitAllWithErrors(e){let r=e.map(n=>n.visit(this,null));return new _M(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 tb){let s=i.name;n=this._generateI18nMessage([e],i);let o=xge(n);o.name=s,r!==null&&(r.placeholderToMessage[s]=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 Sr(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(PZe(e)){this.hasI18nMeta=!0;let n=[],i={};for(let s of e.attrs)if(s.name===wge){let o=e.i18n||s.value,a=new Map,u=this.preserveSignificantWhitespace?e.children:Kc(new bM(!1,a),e.children);r=this._generateI18nMessage(u,o,vtt(a)),r.nodes.length===0&&(r=void 0),e.i18n=r}else if(s.name.startsWith(FU)){let o=s.name.slice(FU.length),a;e instanceof vs?a=e.tagName===null?!1:Pme(e.tagName,o):a=Pme(e.name,o),a?this._reportError(s,`Translating attribute '${o}' is disallowed for security reasons.`):i[o]=s.value}else n.push(s);if(Object.keys(i).length)for(let s of n){let o=i[s.name];o!==void 0&&s.value&&(s.i18n=this._generateI18nMessage([s],s.i18n||o))}this.keepI18nAttrs||(e.attrs=n)}Sr(this,e.children,r)}_parseMetadata(e){return typeof e=="string"?Ett(e):e instanceof Ki?e:{}}_setMessageId(e,r){e.id||(e.id=r instanceof Ki&&r.id||DYe(e))}_setLegacyIds(e,r){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[NYe(e),yge(e)];else if(typeof r!="string"){let n=r instanceof Ki?r:r instanceof tb?r.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}}_reportError(e,r){this._errors.push(new Re(e.sourceSpan,r))}},_tt="|",btt="@@";function Ett(t=""){let e,r,n;if(t=t.trim(),t){let i=t.indexOf(btt),s=t.indexOf(_tt),o;[o,e]=i>-1?[t.slice(0,i),t.slice(i+2)]:[t,""],[r,n]=s>-1?[o.slice(0,s),o.slice(s+1)]:["",o]}return{customId:e,meaning:r,description:n}}function Stt(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}),KYe(e)}var Ttt="goog.getMsg";function Itt(t,e,r,n){let i=Att(e),s=[O(i)];Object.keys(n).length&&(s.push(tV(KV(n,!0),!0)),s.push(tV({original_code:qo(Object.keys(n).map(u=>({key:xI(u),quoted:!0,value:e.placeholders[u]?O(e.placeholders[u].sourceSpan.toString()):O(e.placeholderToMessage[u].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=new Pn(r.name,vt(Ttt).callFn(s),Oa,Vn.Final);o.addLeadingComment(Stt(e));let a=new wi(t.set(r));return[o,a]}var vV=class{formatPh(e){return`{$${xI(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(r=>r.visit(this)).join("")}visitIcu(e){return u0e(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)}},wtt=new vV;function Att(t){return t.nodes.map(e=>e.visit(wtt,null)).join("")}function xtt(t,e,r){let{messageParts:n,placeHolders:i}=Ott(e),s=Ctt(e),o=i.map(c=>r[c.text]),a=YYe(e,n,i,o,s),u=t.set(a);return[new wi(u)]}var _V=class{placeholderToMessage;pieces;constructor(e,r){this.placeholderToMessage=e,this.pieces=r}visitText(e){if(this.pieces[this.pieces.length-1]instanceof qg)this.pieces[this.pieces.length-1].text+=e.value;else{let r=new je(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new qg(e.value,r))}}visitContainer(e){e.children.forEach(r=>r.visit(this))}visitIcu(e){this.pieces.push(new qg(u0e(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 j_(xI(e,!1),r,n)}};function Ott(t){let e=[],r=new _V(t.placeholderToMessage,e);return t.nodes.forEach(n=>n.visit(r)),Ptt(e)}function Ctt(t){let e=t.nodes[0],r=t.nodes[t.nodes.length-1];return new je(e.sourceSpan.fullStart,r.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function Ptt(t){let e=[],r=[];t[0]instanceof j_&&e.push(nU(t[0].sourceSpan.start));for(let n=0;n<t.length;n++){let i=t[n];i instanceof qg?e.push(i):(r.push(i),t[n-1]instanceof j_&&e.push(nU(t[n-1].sourceSpan.end)))}return t[t.length-1]instanceof j_&&e.push(nU(t[t.length-1].sourceSpan.end)),{messageParts:e,placeHolders:r}}function nU(t){return new qg("",new je(t,t))}var Nme="ngI18nClosureMode",Ntt="i18n_",Dtt="I18N_EXP_",Dme="\uFFFD",Mtt="MSG_";function Mme(t){return`${Mtt}${t}`.toUpperCase()}function Rtt(t){return new Pn(t.name,void 0,Oa,void 0,t.sourceSpan)}function ktt(t){let e=t.relativeContextFilePath.replace(/[^A-Za-z0-9]/g,"_").toUpperCase()+"_",r=new Map,n=new Map,i=new Map,s=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===i0.I18nAttribute){let l=i.get(c.target)??[];l.push(c),i.set(c.target,l)}else c.kind===v.I18nMessage&&s.set(c.xref,c);let o=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}=g0e(t,e,s,c);if(c.i18nBlock!==null){let f=t.addConst(l,d);a.set(c.i18nBlock,f)}else{t.constsInitializers.push(...d),o.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(qp(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 g=f.has(m.name);return f.add(m.name),!g});let p=d.flatMap(m=>{let g=o.get(m.context);if(g===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[O(m.name),g]});l.i18nAttributesConfig=t.addConst(new il(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 g0e(t,e,r,n){let i=[],s=new Map;for(let c of n.subMessages){let l=r.get(c),{mainVar:d,statements:f}=g0e(t,e,r,l);i.push(...f);let p=s.get(l.messagePlaceholder)??[];p.push(d),s.set(l.messagePlaceholder,p)}Ltt(n,s),n.params=new Map([...n.params.entries()].sort());let o=vt(t.pool.uniqueName(Ntt)),a=jtt(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=KV(c,!1),d=[];n.postprocessingParams.size>0&&d.push(tV(l,!0)),u=f=>Ee(T.i18nPostprocess).callFn([f,...d])}return i.push(...$tt(n.message,o,a,n.params,u)),{mainVar:o,statements:i}}function Ltt(t,e){for(let[r,n]of e)n.length===1?t.params.set(r,n[0]):(t.params.set(r,O(`${Dme}${Dtt}${r}${Dme}`)),t.postprocessingParams.set(r,ir(n)))}function $tt(t,e,r,n,i){let s=Object.fromEntries(n),o=[Rtt(e),kM(Ftt(),Itt(e,t,r,s),xtt(e,t,KV(s,!1)))];return i&&o.push(new wi(e.set(i(e)))),o}function Ftt(){return wI(vt(Nme)).notIdentical(O("undefined",HV)).and(vt(Nme))}function jtt(t,e,r,n){let i,s=r;if(n){let o=Mme("EXTERNAL_"),a=t.uniqueName(s);i=`${o}${kg(e)}$$${a}`}else{let o=Mme(s);i=t.uniqueName(o)}return vt(i)}function qtt(t){for(let e of t.units){let r=null,n=null,i=new Map,s=new Map,o=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),s.set(a.xref,n),a.icuPlaceholder!==null){let u=lJe(t.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);L.replace(a,u),o.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=s.get(a.target),l=o.get(a.target),d=c?c.context:u.context,f=c?rb.Postproccessing:rb.Creation,p=[];for(let m=0;m<a.interpolation.expressions.length;m++){let g=a.interpolation.expressions[m];p.push(Kge(d,u.xref,u.xref,u.handle,g,l?.xref??null,a.interpolation.i18nPlaceholders[m]??null,f,i0.I18nText,"",g.sourceSpan??a.sourceSpan))}L.replaceWithMany(a,p),l!==void 0&&(l.strings=a.interpolation.strings);break}}}function Btt(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=Utt(r.localRefs);r.localRefs=t.addConst(n)}else r.localRefs=null;break}}function Utt(t){let e=[];for(let r of t)e.push(O(r.name),O(r.target));return ir(e)}function Vtt(t){for(let e of t.units){let r=ii.HTML;for(let n of e.create)n.kind===v.ElementStart&&n.namespace!==r&&(L.insertBefore(rJe(n.namespace),n),r=n.namespace)}}function Htt(t){let e=[],r=0,n=0,i=0,s=0,o=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=y0e(t.substring(o,r-1).trim()),s=r);break;case 59:if(a&&s>0&&n===0&&i===0){let c=t.substring(s,r-1).trim();e.push(a,c),o=r,s=0,a=null}break}if(a&&s){let u=t.slice(s).trim();e.push(a,u)}return e}function y0e(t){return t.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Gtt(t){let e=new Map;for(let r of t.units)for(let n of r.create)qp(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===ge.Attribute&&zge(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===zi.Structural)continue;if(n.name==="style"){let s=Htt(n.expression.value);for(let o=0;o<s.length-1;o+=2)L.insertBefore(eo(n.target,ge.StyleProperty,null,s[o],O(s[o+1]),null,null,nr.STYLE),n);L.remove(n)}else if(n.name==="class"){let s=n.expression.value.trim().split(/\s+/g);for(let o of s)L.insertBefore(eo(n.target,ge.ClassName,null,o,null,null,null,nr.NONE),n);L.remove(n)}}}function Wtt(t){bT(t.root,t.componentName,{index:0},t.compatibility===Is.TemplateDefinitionBuilder)}function bT(t,e,r,n){t.fnName===null&&(t.fnName=t.job.pool.uniqueName(kg(`${e}_${t.job.fnSuffix}`),!1));let i=new Map;for(let s of t.ops())switch(s.kind){case v.Property:case v.DomProperty:s.bindingKind===ge.LegacyAnimation&&(s.name="@"+s.name);break;case v.Animation:if(s.handlerFnName===null){let l=s.name.replace(".","");s.handlerFnName=`${t.fnName}_${l}_cb`,s.handlerFnName=kg(s.handlerFnName)}break;case v.AnimationListener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let o=s.name.replace(".","");s.hostListener?s.handlerFnName=`${e}_${o}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${o}_${s.targetSlot.slot}_listener`,s.handlerFnName=kg(s.handlerFnName);break;case v.Listener:if(s.handlerFnName!==null)break;if(!s.hostListener&&s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");let a="";s.isLegacyAnimationListener&&(s.name=`@${s.name}.${s.legacyAnimationPhase}`,a="animation"),s.hostListener?s.handlerFnName=`${e}_${a}${s.name}_HostBindingHandler`:s.handlerFnName=`${t.fnName}_${s.tag.replace("-","_")}_${a}${s.name}_${s.targetSlot.slot}_listener`,s.handlerFnName=kg(s.handlerFnName);break;case v.TwoWayListener:if(s.handlerFnName!==null)break;if(s.targetSlot.slot===null)throw new Error("Expected a slot to be assigned");s.handlerFnName=kg(`${t.fnName}_${s.tag.replace("-","_")}_${s.name}_${s.targetSlot.slot}_listener`);break;case v.Variable:i.set(s.xref,Ktt(t,s.variable,r));break;case v.RepeaterCreate:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.emptyView!==null){let l=t.job.views.get(s.emptyView);bT(l,`${e}_${s.functionNameSuffix}Empty_${s.handle.slot+2}`,r,n)}bT(t.job.views.get(s.xref),`${e}_${s.functionNameSuffix}_${s.handle.slot+1}`,r,n);break;case v.Projection:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");if(s.handle.slot===null)throw new Error("Expected slot to be assigned");if(s.fallbackView!==null){let l=t.job.views.get(s.fallbackView);bT(l,`${e}_ProjectionFallback_${s.handle.slot}`,r,n)}break;case v.ConditionalCreate:case v.ConditionalBranchCreate:case v.Template:if(!(t instanceof Fo))throw new Error("AssertionError: must be compiling a component");let u=t.job.views.get(s.xref);if(s.handle.slot===null)throw new Error("Expected slot to be assigned");let c=s.functionNameSuffix.length===0?"":`_${s.functionNameSuffix}`;bT(u,`${e}${c}_${s.handle.slot}`,r,n);break;case v.StyleProp:s.name=ztt(s.name),n&&(s.name=Rme(s.name));break;case v.ClassProp:n&&(s.name=Rme(s.name));break}for(let s of t.ops())Hn(s,o=>{if(!(!(o instanceof Td)||o.name!==null)){if(!i.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=i.get(o.xref)}})}function Ktt(t,e,r){if(e.name===null)switch(e.kind){case Cn.Context:e.name=`ctx_r${r.index++}`;break;case Cn.Identifier:if(t.job.compatibility===Is.TemplateDefinitionBuilder){let n=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${n}r${++r.index}`}else e.name=`${e.identifier}_i${r.index++}`;break;default:e.name=`_r${++r.index}`;break}return e.name}function ztt(t){return t.startsWith("--")?t:y0e(t)}function Rme(t){let e=t.indexOf("!important");return e>-1?t.substring(0,e):t}function Qtt(t){for(let e of t.units){for(let r of e.create)(r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener)&&kme(r.handlerOps);kme(e.update)}}function kme(t){for(let e of t){if(e.kind!==v.Statement||!(e.statement instanceof wi)||!(e.statement.expr instanceof sM))continue;let r=e.statement.expr.steps,n=!0;for(let i=e.next;i.kind!==v.ListEnd&&n;i=i.next)Hn(i,(s,o)=>{if(!cl(s))return s;if(n&&!(o&Ot.InChildOperation))switch(s.kind){case Se.NextContext:s.steps+=r,L.remove(e),n=!1;break;case Se.GetCurrentView:case Se.Reference:case Se.ContextLetReference:n=!1;break}})}}var Ytt="ng-container";function Ztt(t){for(let e of t.units){let r=new Set;for(let n of e.create)n.kind===v.ElementStart&&n.tag===Ytt&&(n.kind=v.ContainerStart,r.add(n.xref)),n.kind===v.ElementEnd&&r.has(n.xref)&&(n.kind=v.ContainerEnd)}}function Xtt(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 Jtt(t){let e=new Map;for(let r of t.units)for(let n of r.create)qp(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(XXe(n.xref),n),(n.kind===v.ElementEnd||n.kind===v.ContainerEnd)&&Xtt(e,n.xref).nonBindable&&L.insertBefore(JXe(n.xref),n)}function Zc(t){return e=>e.kind===t}function AT(t,e){return r=>r.kind===t&&e===r.expression instanceof Br}function ert(t){return t.kind===v.Listener&&!(t.hostListener&&t.isLegacyAnimationListener)||t.kind===v.TwoWayListener||t.kind===v.Animation||t.kind===v.AnimationListener}function trt(t){return(t.kind===v.Property||t.kind===v.TwoWayProperty)&&!(t.expression instanceof Br)}var rrt=[{test:t=>t.kind===v.Listener&&t.hostListener&&t.isLegacyAnimationListener},{test:ert}],nrt=[{test:Zc(v.StyleMap),transform:TM},{test:Zc(v.ClassMap),transform:TM},{test:Zc(v.StyleProp)},{test:Zc(v.ClassProp)},{test:AT(v.Attribute,!0)},{test:AT(v.Property,!0)},{test:trt},{test:AT(v.Attribute,!1)},{test:Zc(v.Control)}],irt=[{test:AT(v.DomProperty,!0)},{test:AT(v.DomProperty,!1)},{test:Zc(v.Attribute)},{test:Zc(v.StyleMap),transform:TM},{test:Zc(v.ClassMap),transform:TM},{test:Zc(v.StyleProp)},{test:Zc(v.ClassProp)}],Lme=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 srt(t){for(let e of t.units){$me(e.create,rrt);let r=e.job.kind===ue.Host?irt:nrt;$me(e.update,r)}}function $me(t,e){let r=[],n=null;for(let i of t){let s=lI(i)?i.target:null;(!Lme.has(i.kind)||s!==n&&n!==null&&s!==null)&&(L.insertBefore(Fme(r,e),i),r=[],n=null),Lme.has(i.kind)&&(r.push(i),L.remove(i),n=s??n)}t.push(Fme(r,e))}function Fme(t,e){let r=Array.from(e,()=>new Array);for(let n of t){let i=e.findIndex(s=>s.test(n));r[i].push(n)}return r.flatMap((n,i)=>{let s=e[i].transform;return s?s(n):n})}function TM(t){return t.slice(t.length-1)}function ort(t){for(let e of t.units){let r=i0e(e);for(let n of e.ops())if(n.kind===v.Binding){let i=urt(r,n.target);art(n.name)&&i.kind===v.Projection&&L.remove(n)}}}function art(t){return t.toLowerCase()==="select"}function urt(t,e){let r=t.get(e);if(r===void 0)throw new Error("All attributes should have an slottable target.");return r}function crt(t){for(let e of t.units)lrt(e)}function lrt(t){for(let e of t.update)Hn(e,(r,n)=>{if(cl(r)&&r.kind===Se.PipeBinding){if(n&Ot.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(t.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");drt(t,e.target,r)}else t.create.push(t0e(r.target,r.targetSlot,r.name))}})}function drt(t,e,r){for(let n=t.create.head.next;n.kind!==v.ListEnd;n=n.next){if(!db(n)||n.xref!==e)continue;for(;n.next.kind===v.Pipe;)n=n.next;let i=t0e(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 frt(t){for(let e of t.units)for(let r of e.update)ln(r,n=>!(n instanceof a0)||n.args.length<=4?n:new pI(n.target,n.targetSlot,n.name,ir(n.args),n.args.length),Ot.None)}function prt(t){v0e(t.root,0)}function v0e(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=cD(t.job.views.get(n.xref),r,n.i18nPlaceholder,e);break;case v.RepeaterCreate:let i=t.job.views.get(n.xref);e=cD(i,r,n.i18nPlaceholder,e),n.emptyView!==null&&(e=cD(t.job.views.get(n.emptyView),r,n.emptyI18nPlaceholder,e));break;case v.Projection:n.fallbackView!==null&&(e=cD(t.job.views.get(n.fallbackView),r,n.fallbackViewI18nPlaceholder,e));break}return e}function cD(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++,hrt(t,e)}return v0e(t,n)}function hrt(t,e){if(t.create.head.next?.kind!==v.I18nStart){let r=t.job.allocateXrefId();L.insertAfter(qM(r,e.message,e.root,null),t.create.head),L.insertBefore(BM(r,null),t.create.tail)}}function mrt(t){for(let e of t.units)for(let r of e.ops())Hn(r,n=>{if(!(n instanceof o0)||n.body===null)return;let i=new bV(n.args.length);n.fn=t.pool.getSharedConstant(i,n.body),n.body=null})}var bV=class extends MT{numArgs;constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Fp?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,r){let n=[];for(let s=0;s<this.numArgs;s++)n.push(new si("a"+s));let i=fe(r,s=>s instanceof Fp?vt("a"+s.index):s,Ot.None);return new Pn(e,new zg(n,i),void 0,Vn.Final)}};function grt(t){for(let e of t.units)for(let r of e.update)ln(r,(n,i)=>i&Ot.InChildOperation?n:n instanceof il?yrt(n):n instanceof Na?vrt(n):n,Ot.None)}function yrt(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Yg){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Yg(new Fp(i)))}continue}if(n.isConstant())e.push(n);else{let i=r.length;r.push(n),e.push(new Fp(i))}}return new o0(ir(e),r)}function vrt(t){let e=[],r=[];for(let n of t.entries){if(n instanceof Pp){if(n.expression.isConstant())e.push(n);else{let i=r.length;r.push(n.expression),e.push(new Pp(new Fp(i)))}continue}if(n.value.isConstant())e.push(n);else{let i=r.length;r.push(n.value),e.push(new W_(n.key,new Fp(i),n.quoted))}}return new o0(new Na(e),r)}function _rt(t){for(let e of t.units)for(let r of e.ops())ln(r,n=>n instanceof G_&&(n.flags===null||!n.flags.includes("g"))?t.pool.getSharedConstant(new EV,n):n,Ot.None)}var EV=class extends MT{toSharedConstantDeclaration(e,r){return new Pn(e,r,void 0,Vn.Final)}};function brt(t,e,r,n,i){return Vp(T.element,t,e,r,n,i)}function Ert(t,e,r,n,i){return Vp(T.elementStart,t,e,r,n,i)}function Vp(t,e,r,n,i,s){let o=[O(e)];return r!==null&&o.push(O(r)),i!==null?o.push(O(n),O(i)):n!==null&&o.push(O(n)),ze(t,o,s)}function _0e(t,e,r,n,i,s,o,a,u){let c=[O(e),r,O(n),O(i),O(s),O(o)];for(a!==null&&(c.push(O(a)),c.push(Ee(T.templateRefExtractor)));c[c.length-1].isEquivalent(K_);)c.pop();return ze(t,c,u)}function iH(t,e,r,n,i){let s=[O(e)];return r instanceof Br?s.push(l0(r,i)):s.push(r),n!==null&&s.push(n),ze(t,s,i)}function Srt(t){return ze(T.elementEnd,[],t)}function Trt(t,e,r,n){return Vp(T.elementContainerStart,t,null,e,r,n)}function Irt(t,e,r,n){return Vp(T.elementContainer,t,null,e,r,n)}function wrt(){return ze(T.elementContainerEnd,[],null)}function Art(t,e,r,n,i,s,o,a){return _0e(T.templateCreate,t,e,r,n,i,s,o,a)}function xrt(){return ze(T.disableBindings,[],null)}function Ort(){return ze(T.enableBindings,[],null)}function Crt(t,e,r,n,i){let s=[O(t),e];return r!==null&&s.push(Ee(r)),ze(n?T.syntheticHostListener:T.listener,s,i)}function jme(t,e){return Ee(T.twoWayBindingSet).callFn([t,e])}function Prt(t,e,r){return ze(T.twoWayListener,[O(t),e],r)}function Nrt(t,e){return ze(T.pipe,[O(t),O(e)],null)}function Drt(){return ze(T.namespaceHTML,[],null)}function Mrt(){return ze(T.namespaceSVG,[],null)}function Rrt(){return ze(T.namespaceMathML,[],null)}function krt(t,e){return ze(T.advance,t>1?[O(t)]:[],e)}function Lrt(t){return Ee(T.reference).callFn([O(t)])}function $rt(t){return Ee(T.nextContext).callFn(t===1?[]:[O(t)])}function Frt(){return Ee(T.getCurrentView).callFn([])}function jrt(t){return Ee(T.restoreView).callFn([t])}function qrt(t){return Ee(T.resetView).callFn([t])}function Brt(t,e,r){let n=[O(t,null)];return e!==""&&n.push(O(e)),ze(T.text,n,r)}function Urt(t,e,r,n,i,s,o,a,u,c,l){let d=[O(t),O(e),r??O(null),O(n),O(i),O(s),o??O(null),a??O(null),u?Ee(T.deferEnableTimerScheduling):O(null),O(l)],f;for(;(f=d[d.length-1])!==null&&f instanceof ui&&f.value===null;)d.pop();return ze(T.defer,d,c)}var Vrt=new Map([[rr.Idle,{none:T.deferOnIdle,prefetch:T.deferPrefetchOnIdle,hydrate:T.deferHydrateOnIdle}],[rr.Immediate,{none:T.deferOnImmediate,prefetch:T.deferPrefetchOnImmediate,hydrate:T.deferHydrateOnImmediate}],[rr.Timer,{none:T.deferOnTimer,prefetch:T.deferPrefetchOnTimer,hydrate:T.deferHydrateOnTimer}],[rr.Hover,{none:T.deferOnHover,prefetch:T.deferPrefetchOnHover,hydrate:T.deferHydrateOnHover}],[rr.Interaction,{none:T.deferOnInteraction,prefetch:T.deferPrefetchOnInteraction,hydrate:T.deferHydrateOnInteraction}],[rr.Viewport,{none:T.deferOnViewport,prefetch:T.deferPrefetchOnViewport,hydrate:T.deferHydrateOnViewport}],[rr.Never,{none:T.deferHydrateNever,prefetch:T.deferHydrateNever,hydrate:T.deferHydrateNever}]]);function Hrt(t,e,r,n){let i=Vrt.get(t)?.[r];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${t}`);return ze(i,e,n)}function Grt(t){return ze(T.projectionDef,t?[t]:[],null)}function Wrt(t,e,r,n,i,s,o){let a=[O(t)];return(e!==0||r!==null||n!==null)&&(a.push(O(e)),r!==null&&a.push(r),n!==null&&(r===null&&a.push(O(null)),a.push(vt(n),O(i),O(s)))),ze(T.projection,a,o)}function Krt(t,e,r,n){let i=[O(t),O(e)];return r!==null&&i.push(O(r)),ze(T.i18nStart,i,n)}function zrt(t,e,r,n,i,s,o,a){let u=[O(t),e,O(r),O(n),O(i),O(s)];for(o!==null&&(u.push(O(o)),u.push(Ee(T.templateRefExtractor)));u[u.length-1].isEquivalent(K_);)u.pop();return ze(T.conditionalCreate,u,a)}function Qrt(t,e,r,n,i,s,o,a){let u=[O(t),e,O(r),O(n),O(i),O(s)];for(o!==null&&(u.push(O(o)),u.push(Ee(T.templateRefExtractor)));u[u.length-1].isEquivalent(K_);)u.pop();return ze(T.conditionalBranchCreate,u,a)}function Yrt(t,e,r,n,i,s,o,a,u,c,l,d,f,p){let m=[O(t),vt(e),O(r),O(n),O(i),O(s),o];return(a||u!==null)&&(m.push(O(a)),u!==null&&(m.push(vt(u),O(c),O(l)),(d!==null||f!==null)&&m.push(O(d)),f!==null&&m.push(O(f)))),ze(T.repeaterCreate,m,p)}function Zrt(t,e){return ze(T.repeater,[t],e)}function Xrt(t,e,r){return t==="prefetch"?ze(T.deferPrefetchWhen,[e],r):t==="hydrate"?ze(T.deferHydrateWhen,[e],r):ze(T.deferWhen,[e],r)}function Jrt(t,e){return ze(T.declareLet,[O(t)],e)}function ent(t,e){return Ee(T.storeLet).callFn([t],e)}function tnt(t){return Ee(T.readContextLet).callFn([O(t)])}function rnt(t,e,r,n){let i=[O(t),O(e)];return r&&i.push(O(r)),ze(T.i18n,i,n)}function nnt(t){return ze(T.i18nEnd,[],t)}function int(t,e){let r=[O(t),O(e)];return ze(T.i18nAttributes,r,null)}function snt(t,e,r){return iH(T.ariaProperty,t,e,null,r)}function ont(t,e,r,n){return iH(T.property,t,e,r,n)}function ant(t,e,r,n){let i=[];return e instanceof Br?i.push(l0(e,n)):i.push(e),i.push(O(t)),r!==null&&i.push(r),ze(T.control,i,n)}function unt(t){return ze(T.controlCreate,[],t)}function cnt(t,e,r,n){let i=[O(t),e];return r!==null&&i.push(r),ze(T.twoWayProperty,i,n)}function lnt(t,e,r,n,i){let s=[O(t)];return e instanceof Br?s.push(l0(e,i)):s.push(e),(r!==null||n!==null)&&s.push(r??O(null)),n!==null&&s.push(O(n)),ze(T.attribute,s,null)}function dnt(t,e,r,n){let i=[O(t)];return e instanceof Br?i.push(l0(e,n)):i.push(e),r!==null&&i.push(O(r)),ze(T.styleProp,i,n)}function fnt(t,e,r){return ze(T.classProp,[O(t),e],r)}function pnt(t,e){let r=t instanceof Br?l0(t,e):t;return ze(T.styleMap,[r],e)}function hnt(t,e){let r=t instanceof Br?l0(t,e):t;return ze(T.classMap,[r],e)}function mnt(t,e,r,n,i){return Vp(T.domElement,t,e,r,n,i)}function gnt(t,e,r,n,i){return Vp(T.domElementStart,t,e,r,n,i)}function ynt(t){return ze(T.domElementEnd,[],t)}function vnt(t,e,r,n){return Vp(T.domElementContainerStart,t,null,e,r,n)}function _nt(t,e,r,n){return Vp(T.domElementContainer,t,null,e,r,n)}function bnt(){return ze(T.domElementContainerEnd,[],null)}function Ent(t,e,r,n){let i=[O(t),e];return r!==null&&i.push(Ee(r)),ze(T.domListener,i,n)}function Snt(t,e,r,n,i,s,o,a){return _0e(T.domTemplate,t,e,r,n,i,s,o,a)}var qme=[T.pipeBind1,T.pipeBind2,T.pipeBind3,T.pipeBind4];function Tnt(t,e,r){if(r.length<1||r.length>qme.length)throw new Error("pipeBind() argument count out of bounds");let n=qme[r.length-1];return Ee(n).callFn([O(t),O(e),...r])}function Int(t,e,r){return Ee(T.pipeBindV).callFn([O(t),O(e),r])}function wnt(t,e,r){let n=b0e(t,e);return jnt(Lnt,[],n,r)}function Ant(t,e){return ze(T.i18nExp,[t],e)}function xnt(t,e){return ze(T.i18nApply,[O(t)],e)}function Ont(t,e,r,n){return iH(T.domProperty,t,e,r,n)}function Cnt(t,e,r,n){let i=[e];r!==null&&i.push(r);let s=t==="enter"?T.animationEnter:T.animationLeave;return ze(s,i,n)}function Pnt(t,e,r,n){let s=[e instanceof Br?l0(e,n):e];r!==null&&s.push(r);let o=t==="enter"?T.animationEnter:T.animationLeave;return ze(o,s,n)}function Nnt(t,e,r,n){let i=[e],s=t==="enter"?T.animationEnterListener:T.animationLeaveListener;return ze(s,i,n)}function Dnt(t,e,r){return ze(T.syntheticHostProperty,[O(t),e],r)}function Mnt(t,e,r){return sH(Fnt,[O(t),e],r,null)}function Rnt(t,e){return ze(T.attachSourceLocations,[O(t),e],null)}function b0e(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(O(t[n]),e[n]);r.push(O(t[n]))}return r}function l0(t,e){let r=b0e(t.strings,t.expressions);return sH($nt,[],r,e)}function ze(t,e,r){let n=Ee(t).callFn(e,r);return Bo(new wi(n,r))}function knt(t,e,r){let n=[t];return e!==null&&n.push(e),ze(T.conditional,n,r)}var Lnt={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}},$nt={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}},Fnt={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 sH(t,e,r,n){let i=t.mapping(r.length),s=r.at(-1);if(r.length>1&&s instanceof ui&&s.value===""&&r.pop(),i<t.constant.length)return Ee(t.constant[i]).callFn([...e,...r],n);if(t.variable!==null)return Ee(t.variable).callFn([...e,ir(r)],n);throw new Error("AssertionError: unable to call variadic function")}function jnt(t,e,r,n){return Bo(sH(t,e,r,n).toStmt())}var qnt=new Map([["window",T.resolveWindow],["document",T.resolveDocument],["body",T.resolveBody]]),Bnt=new Map([["class","className"],["for","htmlFor"],["formaction","formAction"],["innerHtml","innerHTML"],["readonly","readOnly"],["tabindex","tabIndex"]]);function Unt(t){for(let e of t.units)Vnt(e,e.create),oH(e,e.update)}function Vnt(t,e){for(let r of e)switch(ln(r,E0e,Ot.None),r.kind){case v.Text:L.replace(r,Brt(r.handle.slot,r.initialValue,r.sourceSpan));break;case v.ElementStart:L.replace(r,t.job.mode===Gi.DomOnly?gnt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan):Ert(r.handle.slot,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Element:L.replace(r,t.job.mode===Gi.DomOnly?mnt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan):brt(r.handle.slot,r.tag,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ElementEnd:L.replace(r,t.job.mode===Gi.DomOnly?ynt(r.sourceSpan):Srt(r.sourceSpan));break;case v.ContainerStart:L.replace(r,t.job.mode===Gi.DomOnly?vnt(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan):Trt(r.handle.slot,r.attributes,r.localRefs,r.startSourceSpan));break;case v.Container:L.replace(r,t.job.mode===Gi.DomOnly?_nt(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan):Irt(r.handle.slot,r.attributes,r.localRefs,r.wholeSourceSpan));break;case v.ContainerEnd:L.replace(r,t.job.mode===Gi.DomOnly?bnt():wrt());break;case v.I18nStart:L.replace(r,Krt(r.handle.slot,r.messageIndex,r.subTemplateIndex,r.sourceSpan));break;case v.I18nEnd:L.replace(r,nnt(r.sourceSpan));break;case v.I18n:L.replace(r,rnt(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,int(r.handle.slot,r.i18nAttributesConfig));break;case v.Template:if(!(t instanceof Fo))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===zi.Block||t.job.mode===Gi.DomOnly?Snt(r.handle.slot,vt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan):Art(r.handle.slot,vt(n.fnName),n.decls,n.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.DisableBindings:L.replace(r,xrt());break;case v.EnableBindings:L.replace(r,Ort());break;case v.Pipe:L.replace(r,Nrt(r.handle.slot,r.name));break;case v.DeclareLet:L.replace(r,Jrt(r.handle.slot,r.sourceSpan));break;case v.AnimationString:L.replace(r,Pnt(r.animationKind,r.expression,r.sanitizer,r.sourceSpan));break;case v.Animation:let i=lD(t,r.handlerFnName,r.handlerOps,!1);L.replace(r,Cnt(r.animationKind,i,r.sanitizer,r.sourceSpan));break;case v.AnimationListener:let s=lD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent);L.replace(r,Nnt(r.animationKind,s,null,r.sourceSpan));break;case v.Listener:let o=lD(t,r.handlerFnName,r.handlerOps,r.consumesDollarEvent),a=r.eventTarget?qnt.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===Gi.DomOnly&&!r.hostListener&&!r.isLegacyAnimationListener?Ent(r.name,o,a,r.sourceSpan):Crt(r.name,o,a,r.hostListener&&r.isLegacyAnimationListener,r.sourceSpan));break;case v.TwoWayListener:L.replace(r,Prt(r.name,lD(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,Bo(new Pn(r.variable.name,r.initializer,void 0,Vn.Final)));break;case v.Namespace:switch(r.active){case ii.HTML:L.replace(r,Drt());break;case ii.SVG:L.replace(r,Mrt());break;case ii.Math:L.replace(r,Rrt());break}break;case v.Defer:let u=!!r.loadingMinimumTime||!!r.loadingAfterTime||!!r.placeholderMinimumTime;L.replace(r,Urt(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 rr.Never:case rr.Idle:case rr.Immediate:break;case rr.Timer:c=[O(r.trigger.delay)];break;case rr.Viewport:r.modifier==="hydrate"?c=r.trigger.options?[r.trigger.options]:[]:(c=[O(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0?c.push(O(r.trigger.targetSlotViewSteps)):r.trigger.options&&c.push(O(null)),r.trigger.options&&c.push(r.trigger.options));break;case rr.Interaction:case rr.Hover:r.modifier==="hydrate"?c=[]:(c=[O(r.trigger.targetSlot?.slot??null)],r.trigger.targetSlotViewSteps!==0&&c.push(O(r.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${r.trigger.kind}`)}L.replace(r,Hrt(r.trigger.kind,c,r.modifier,r.sourceSpan));break;case v.ProjectionDef:L.replace(r,Grt(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 Fo))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,Wrt(r.handle.slot,r.projectionSlotIndex,r.attributes,l,d,f,r.sourceSpan));break;case v.ConditionalCreate:if(!(t instanceof Fo))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,zrt(r.handle.slot,vt(p.fnName),p.decls,p.vars,r.tag,r.attributes,r.localRefs,r.startSourceSpan));break;case v.ConditionalBranchCreate:if(!(t instanceof Fo))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,Qrt(r.handle.slot,vt(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 Fo))throw new Error("AssertionError: must be compiling a component");let g=t.job.views.get(r.xref);if(g.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let y=null,_=null,b=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");y=x.fnName,_=x.decls,b=x.vars}L.replace(r,Yrt(r.handle.slot,g.fnName,r.decls,r.vars,r.tag,r.attributes,Wnt(t,r),r.usesComponentInstance,y,_,b,r.emptyTag,r.emptyAttributes,r.wholeSourceSpan));break;case v.SourceLocation:let S=ir(r.locations.map(({targetSlot:x,offset:M,line:se,column:ye})=>{if(x.slot===null)throw new Error("No slot was assigned for source location");return ir([O(x.slot),O(M),O(se),O(ye)])}));L.replace(r,Rnt(r.templatePath,S));break;case v.ControlCreate:L.replace(r,unt(r.sourceSpan));break;case v.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${v[r.kind]}`)}}function oH(t,e){for(let r of e)switch(ln(r,E0e,Ot.None),r.kind){case v.Advance:L.replace(r,krt(r.delta,r.sourceSpan));break;case v.Property:L.replace(r,t.job.mode===Gi.DomOnly&&r.bindingKind!==ge.LegacyAnimation&&r.bindingKind!==ge.Animation?Bme(r):Hnt(r));break;case v.Control:L.replace(r,Gnt(r));break;case v.TwoWayProperty:L.replace(r,cnt(r.name,r.expression,r.sanitizer,r.sourceSpan));break;case v.StyleProp:L.replace(r,dnt(r.name,r.expression,r.unit,r.sourceSpan));break;case v.ClassProp:L.replace(r,fnt(r.name,r.expression,r.sourceSpan));break;case v.StyleMap:L.replace(r,pnt(r.expression,r.sourceSpan));break;case v.ClassMap:L.replace(r,hnt(r.expression,r.sourceSpan));break;case v.I18nExpression:L.replace(r,Ant(r.expression,r.sourceSpan));break;case v.I18nApply:L.replace(r,xnt(r.handle.slot,r.sourceSpan));break;case v.InterpolateText:L.replace(r,wnt(r.interpolation.strings,r.interpolation.expressions,r.sourceSpan));break;case v.Attribute:L.replace(r,lnt(r.name,r.expression,r.sanitizer,r.namespace,r.sourceSpan));break;case v.DomProperty:if(r.expression instanceof Br)throw new Error("not yet handled");r.bindingKind===ge.LegacyAnimation||r.bindingKind===ge.Animation?L.replace(r,Dnt(r.name,r.expression,r.sourceSpan)):L.replace(r,Bme(r));break;case v.Variable:if(r.variable.name===null)throw new Error(`AssertionError: unnamed variable ${r.xref}`);L.replace(r,Bo(new Pn(r.variable.name,r.initializer,void 0,Vn.Final)));break;case v.Conditional:if(r.processed===null)throw new Error("Conditional test was not set.");L.replace(r,knt(r.processed,r.contextValue,r.sourceSpan));break;case v.Repeater:L.replace(r,Zrt(r.collection,r.sourceSpan));break;case v.DeferWhen:L.replace(r,Xrt(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 Bme(t){return Ont(Bnt.get(t.name)??t.name,t.expression,t.sanitizer,t.sourceSpan)}function Hnt(t){return s0e(t.name)?snt(t.name,t.expression,t.sourceSpan):ont(t.name,t.expression,t.sanitizer,t.sourceSpan)}function Gnt(t){return ant(t.name,t.expression,t.sanitizer,t.sourceSpan)}function E0e(t){if(!cl(t))return t;switch(t.kind){case Se.NextContext:return $rt(t.steps);case Se.Reference:return Lrt(t.targetSlot.slot+1+t.offset);case Se.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${t.name}`);case Se.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case Se.RestoreView:if(typeof t.view=="number")throw new Error("AssertionError: unresolved RestoreView");return jrt(t.view);case Se.ResetView:return qrt(t.expr);case Se.GetCurrentView:return Frt();case Se.ReadVariable:if(t.name===null)throw new Error(`Read of unnamed variable ${t.xref}`);return vt(t.name);case Se.ReadTemporaryExpr:if(t.name===null)throw new Error(`Read of unnamed temporary ${t.xref}`);return vt(t.name);case Se.AssignTemporaryExpr:if(t.name===null)throw new Error(`Assign of unnamed temporary ${t.xref}`);return vt(t.name).set(t.expr);case Se.PureFunctionExpr:if(t.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return Mnt(t.varOffset,t.fn,t.args);case Se.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case Se.PipeBinding:return Tnt(t.targetSlot.slot,t.varOffset,t.args);case Se.PipeBindingVariadic:return Int(t.targetSlot.slot,t.varOffset,t.args);case Se.SlotLiteralExpr:return O(t.slot.slot);case Se.ContextLetReference:return tnt(t.targetSlot.slot);case Se.StoreLet:return ent(t.value,t.sourceSpan);case Se.TrackContext:return vt("this");default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${Se[t.kind]}`)}}function lD(t,e,r,n){oH(t,r);let i=[];for(let o of r){if(o.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[o.kind]}`);i.push(o.statement)}let s=[];return n&&s.push(new si("$event")),Np(s,i,void 0,void 0,e)}function Wnt(t,e){if(e.trackByFn!==null)return e.trackByFn;let r=[new si("$index"),new si("$item")],n;if(e.trackByOps===null)n=e.usesComponentInstance?Np(r,[new oi(e.track)]):sl(r,e.track);else{oH(t,e.trackByOps);let i=[];for(let s of e.trackByOps){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${v[s.kind]}`);i.push(s.statement)}n=e.usesComponentInstance||i.length!==1||!(i[0]instanceof oi)?Np(r,i):sl(r,i[0].value)}return e.trackByFn=t.job.pool.getSharedFunctionReference(n,"_forTrack"),e.trackByFn}function Knt(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 hI&&L.remove(r);break}}function znt(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 Qnt(t){for(let e of t.units)for(let r of e.update){if(r.kind!==v.Variable||r.variable.kind!==Cn.Identifier||!(r.initializer instanceof dI))continue;let n=r.variable.identifier,i=r;for(;i&&i.kind!==v.ListEnd;)ln(i,s=>s instanceof ri&&s.name===n?O(void 0):s,Ot.None),i=i.prev}}function Ynt(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 Znt(t){for(let e of t.units)IM(e,e.create),IM(e,e.update)}function IM(t,e){let r=new Map;r.set(t.xref,vt("ctx"));for(let n of e)switch(n.kind){case v.Variable:n.variable.kind===Cn.Context&&r.set(n.variable.view,new Td(n.xref));break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:IM(t,n.handlerOps);break;case v.RepeaterCreate:n.trackByOps!==null&&IM(t,n.trackByOps);break}t===t.job.root&&r.set(t.xref,vt("ctx"));for(let n of e)ln(n,i=>{if(i instanceof $p){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 Xnt(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 Jnt(t){for(let e of t.units)Ume(e.create),Ume(e.update)}function Ume(t){for(let e of t)(e.kind===v.Listener||e.kind===v.TwoWayListener||e.kind===v.AnimationListener)&&ln(e,r=>r instanceof ri&&r.name==="$event"?((e.kind===v.Listener||e.kind===v.AnimationListener)&&(e.consumesDollarEvent=!0),new Ca(r.name)):r,Ot.InChildOperation)}function eit(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}zc(t,t.root,e,r)}function zc(t,e,r,n,i){let s=null,o=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");s={i18nBlock:a,i18nContext:r.get(a.context)};break;case v.I18nEnd:s=null;break;case v.ElementStart:if(a.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Vme(a,s.i18nContext,s.i18nBlock,i),i&&a.i18nPlaceholder.closeName&&o.set(a.xref,i),i=void 0}break;case v.ElementEnd:let u=n.get(a.xref);if(u&&u.i18nPlaceholder!==void 0){if(s===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Hme(u,s.i18nContext,s.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case v.Projection:if(a.i18nPlaceholder!==void 0){if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Vme(a,s.i18nContext,s.i18nBlock,i),Hme(a,s.i18nContext,s.i18nBlock,i),i=void 0}if(a.fallbackView!==null){let f=t.views.get(a.fallbackView);if(a.fallbackViewI18nPlaceholder===void 0)zc(t,f,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");dD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,f,r,n),fD(t,f,a.handle.slot,a.fallbackViewI18nPlaceholder,s.i18nContext,s.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)zc(t,c,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===zi.Structural?zc(t,c,r,n,a):(dD(t,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,c,r,n),fD(t,c,a.handle.slot,a.i18nPlaceholder,s.i18nContext,s.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)zc(t,d,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");dD(t,d,l,a.i18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,d,r,n),fD(t,d,l,a.i18nPlaceholder,s.i18nContext,s.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)zc(t,p,r,n);else{if(s===null)throw Error("i18n tag placeholder should only occur inside an i18n block");dD(t,p,f,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),zc(t,p,r,n),fD(t,p,f,a.emptyI18nPlaceholder,s.i18nContext,s.i18nBlock,i),i=void 0}}break}}function Vme(t,e,r,n){let{startName:i,closeName:s}=t.i18nPlaceholder,o=lr.ElementTag|lr.OpenTag,a=t.handle.slot;n!==void 0&&(o|=lr.TemplateTag,a={element:a,template:n.handle.slot}),s||(o|=lr.CloseTag),ub(e.params,i,a,r.subTemplateIndex,o)}function Hme(t,e,r,n){let{closeName:i}=t.i18nPlaceholder;if(i){let s=lr.ElementTag|lr.CloseTag,o=t.handle.slot;n!==void 0&&(s|=lr.TemplateTag,o={element:o,template:n.handle.slot}),ub(e.params,i,o,r.subTemplateIndex,s)}}function dD(t,e,r,n,i,s,o){let{startName:a,closeName:u}=n,c=lr.TemplateTag|lr.OpenTag;u||(c|=lr.CloseTag),o!==void 0&&ub(i.params,a,o.handle.slot,s.subTemplateIndex,c),ub(i.params,a,r,S0e(t,s,e),c)}function fD(t,e,r,n,i,s,o){let{closeName:a}=n,u=lr.TemplateTag|lr.CloseTag;a&&(ub(i.params,a,r,S0e(t,s,e),u),o!==void 0&&ub(i.params,a,o.handle.slot,s.subTemplateIndex,u))}function S0e(t,e,r){for(let n of r.create)if(n.kind===v.I18nStart)return n.subTemplateIndex;return e.subTemplateIndex}function ub(t,e,r,n,i){let s=t.get(e)??[];s.push({value:r,subTemplateIndex:n,flags:i}),t.set(e,s)}function tit(t){let e=new Map,r=new Map,n=new Map;for(let o of t.units)for(let a of o.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,s=o=>o.usage===i0.I18nText?o.i18nOwner:o.context;for(let o of t.units)for(let a of o.update)if(a.kind===v.I18nExpression){let u=i.get(s(a))||0,c=e.get(a.i18nOwner)??null,l={value:u,subTemplateIndex:c,flags:lr.ExpressionIndex};rit(a,l,r,n),i.set(s(a),u+1)}}function rit(t,e,r,n){if(t.i18nPlaceholder!==null){let i=r.get(t.context),s=t.resolutionTime===rb.Creation?i.params:i.postprocessingParams,o=s.get(t.i18nPlaceholder)||[];o.push(e),s.set(t.i18nPlaceholder,o)}t.icuPlaceholder!==null&&n.get(t.icuPlaceholder)?.expressionPlaceholders.push(e)}function nit(t){for(let e of t.units)wM(e,e.create,null),wM(e,e.update,null)}function wM(t,e,r){let n=new Map,i=new Map;for(let s of e)switch(s.kind){case v.Variable:switch(s.variable.kind){case Cn.Identifier:if(s.variable.local){if(i.has(s.variable.identifier))continue;i.set(s.variable.identifier,s.xref)}else if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case Cn.Alias:if(n.has(s.variable.identifier))continue;n.set(s.variable.identifier,s.xref);break;case Cn.SavedView:r={view:s.variable.view,variable:s.xref};break}break;case v.Animation:case v.AnimationListener:case v.Listener:case v.TwoWayListener:wM(t,s.handlerOps,r);break;case v.RepeaterCreate:s.trackByOps!==null&&wM(t,s.trackByOps,r);break}for(let s of e)s.kind==v.Listener||s.kind===v.TwoWayListener||s.kind===v.Animation||s.kind===v.AnimationListener||ln(s,o=>{if(o instanceof ri)return i.has(o.name)?new Td(i.get(o.name)):n.has(o.name)?new Td(n.get(o.name)):new ao(new $p(t.job.root.xref),o.name);if(o instanceof oM&&typeof o.view=="number"){if(r===null||r.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${t.xref}`);return o.view=new Td(r.variable),o}else return o},Ot.None);for(let s of e)Hn(s,o=>{if(o instanceof ri)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var iit=new Map([[nr.HTML,T.sanitizeHtml],[nr.RESOURCE_URL,T.sanitizeResourceUrl],[nr.SCRIPT,T.sanitizeScript],[nr.STYLE,T.sanitizeStyle],[nr.URL,T.sanitizeUrl],[nr.ATTRIBUTE_NO_BINDING,T.validateAttribute]]),sit=new Map([[nr.HTML,T.trustConstantHtml],[nr.RESOURCE_URL,T.trustConstantResourceUrl]]);function oit(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=sit.get(Gme(r.securityContext))??null;r.trustedValueFn=n!==null?Ee(n):null}}for(let r of e.update)switch(r.kind){case v.Property:case v.Attribute:case v.DomProperty:let n=null;Array.isArray(r.securityContext)&&r.securityContext.length===2&&r.securityContext.includes(nr.URL)&&r.securityContext.includes(nr.RESOURCE_URL)?n=T.sanitizeUrlOrResourceUrl:n=iit.get(Gme(r.securityContext))??null,r.sanitizer=n!==null?Ee(n):null;break}}}function Gme(t){if(Array.isArray(t)){if(t.length>1)throw Error("AssertionError: Ambiguous security context");return t[0]||nr.NONE}return t}function ait(t){for(let e of t.units){e.create.prepend([Ap(e.job.allocateXrefId(),{kind:Cn.SavedView,name:null,view:e.xref},new YU,ro.None)]);for(let r of e.create){if(r.kind!==v.Listener&&r.kind!==v.TwoWayListener&&r.kind!==v.Animation&&r.kind!==v.AnimationListener)continue;let n=e!==t.root;if(!n)for(let i of r.handlerOps)Hn(i,s=>{(s instanceof iM||s instanceof fI)&&(n=!0)});n&&uit(e,r)}}}function uit(t,e){e.handlerOps.prepend([Ap(t.job.allocateXrefId(),{kind:Cn.Context,name:null,view:t.xref},new oM(t.xref),ro.None)]);for(let r of e.handlerOps)r.kind===v.Statement&&r.statement instanceof oi&&(r.statement.value=new ZU(r.statement.value))}function cit(t){let e=new Map;for(let r of t.units){let n=0;for(let i of r.create)db(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 lit(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,s=>{s instanceof fI&&e.add(s.target)});for(let n of t.units)for(let i of n.update)ln(i,s=>s instanceof dI&&!e.has(s.target)?(dit(s)||L.remove(r.get(s.target)),s.value):s,Ot.None)}function dit(t){let e=!1;return fe(t,r=>((r instanceof a0||r instanceof pI)&&(e=!0),r),Ot.None),e}function fit(t){let e=new Set;for(let r of t.units)for(let n of r.ops())Hn(n,i=>{if(i instanceof Tt)switch(i.operator){case H.Exponentiation:pit(i,e);break;case H.NullishCoalesce:hit(i,e);break;case H.And:case H.Or:mit(i,e)}});for(let r of t.units)for(let n of r.ops())ln(n,i=>i instanceof Pa?e.has(i)?i:i.expr:i,Ot.None)}function pit(t,e){t.lhs instanceof Pa&&t.lhs.expr instanceof Qg&&e.add(t.lhs)}function hit(t,e){t.lhs instanceof Pa&&(Wme(t.lhs.expr)||t.lhs.expr instanceof nl)&&e.add(t.lhs),t.rhs instanceof Pa&&(Wme(t.rhs.expr)||t.rhs.expr instanceof nl)&&e.add(t.rhs)}function mit(t,e){t.lhs instanceof Pa&&t.lhs.expr instanceof Tt&&t.lhs.expr.operator===H.NullishCoalesce&&e.add(t.lhs)}function Wme(t){return t instanceof Tt&&(t.operator===H.And||t.operator===H.Or)}function git(t){for(let e of t.units)for(let r of e.update)if(r.kind===v.Binding)switch(r.bindingKind){case ge.ClassName:if(r.expression instanceof Br)throw new Error("Unexpected interpolation in ClassName binding");L.replace(r,jXe(r.target,r.name,r.expression,r.sourceSpan));break;case ge.StyleProperty:L.replace(r,FXe(r.target,r.name,r.expression,r.unit,r.sourceSpan));break;case ge.Property:case ge.Template:r.name==="style"?L.replace(r,qXe(r.target,r.expression,r.sourceSpan)):r.name==="class"&&L.replace(r,BXe(r.target,r.expression,r.sourceSpan));break}}function yit(t){for(let e of t.units)e.create.prepend(AM(e.create)),e.update.prepend(AM(e.update))}function AM(t){let e=0,r=[];for(let n of t){let i=new Map;Hn(n,(c,l)=>{l&Ot.InChildOperation||c instanceof jp&&i.set(c.xref,c)});let s=0,o=new Set,a=new Set,u=new Map;Hn(n,(c,l)=>{l&Ot.InChildOperation||(c instanceof ll?(o.has(c.xref)||(o.add(c.xref),u.set(c.xref,`tmp_${e}_${s++}`)),Kme(u,c)):c instanceof jp&&(i.get(c.xref)===c&&(a.add(c.xref),s--),Kme(u,c)))}),r.push(...Array.from(new Set(u.values())).map(c=>Bo(new Pn(c)))),e++,n.kind===v.Listener||n.kind===v.Animation||n.kind===v.AnimationListener||n.kind===v.TwoWayListener?n.handlerOps.prepend(AM(n.handlerOps)):n.kind===v.RepeaterCreate&&n.trackByOps!==null&&n.trackByOps.prepend(AM(n.trackByOps))}return r}function Kme(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 vit(t){for(let e of t.units)for(let r of e.create)if(r.kind===v.RepeaterCreate)if(r.track instanceof Ca&&r.track.name==="$index")r.trackByFn=Ee(T.repeaterTrackByIndex);else if(r.track instanceof Ca&&r.track.name==="$item")r.trackByFn=Ee(T.repeaterTrackByIdentity);else if(_it(t.root.xref,r.track))r.usesComponentInstance=!0,r.track.receiver.receiver.view===e.xref?r.trackByFn=r.track.receiver:(r.trackByFn=Ee(T.componentInstance).callFn([]).prop(r.track.receiver.name),r.track=r.trackByFn);else{r.track=fe(r.track,i=>{if(i instanceof a0||i instanceof pI)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof $p?(r.usesComponentInstance=!0,new QU(i.view)):i},Ot.None);let n=new L;n.push(Bo(new oi(r.track,r.track.sourceSpan))),r.trackByOps=n}}function _it(t,e){if(!(e instanceof Ts)||e.args.length===0||e.args.length>2||!(e.receiver instanceof ao&&e.receiver.receiver instanceof $p)||e.receiver.receiver.view!==t)return!1;let[r,n]=e.args;return!(r instanceof Ca)||r.name!=="$index"?!1:e.args.length===1?!0:!(!(n instanceof Ca)||n.name!=="$item")}function bit(t){for(let e of t.units)for(let r of e.create)r.kind===v.RepeaterCreate&&(r.track=fe(r.track,n=>{if(n instanceof ri){if(r.varNames.$index.has(n.name))return vt("$index");if(n.name===r.varNames.$implicit)return vt("$item")}return n},Ot.None))}function Eit(t){for(let e of t.units)for(let r of e.create)r.kind===v.TwoWayListener&&ln(r,n=>{if(!(n instanceof aM))return n;let{target:i,value:s}=n;if(i instanceof ao||i instanceof Id)return jme(i,s).or(i.set(s));if(i instanceof Td)return jme(i,s);throw new Error("Unsupported expression in two-way action binding.")},Ot.InChildOperation)}function Sit(t){for(let e of t.units){let r=0;for(let n of e.ops())JB(n)&&(r+=Tit(n));for(let n of e.ops())Hn(n,i=>{cl(i)&&(t.compatibility===Is.TemplateDefinitionBuilder&&i instanceof o0||(tme(i)&&(i.varOffset=r),JB(i)&&(r+=zme(i))))});if(t.compatibility===Is.TemplateDefinitionBuilder)for(let n of e.ops())Hn(n,i=>{!cl(i)||!(i instanceof o0)||(tme(i)&&(i.varOffset=r),JB(i)&&(r+=zme(i)))});e.vars=r}if(t instanceof gI)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 Tit(t){let e;switch(t.kind){case v.Attribute:return e=1,t.expression instanceof Br&&!Iit(t.expression)&&(e+=t.expression.expressions.length),e;case v.Property:case v.DomProperty:return e=1,t.expression instanceof Br&&(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 Br&&(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 zme(t){switch(t.kind){case Se.PureFunctionExpr:return 1+t.args.length;case Se.PipeBinding:return 1+t.args.length;case Se.PipeBindingVariadic:return 1+t.numArgs;case Se.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${t.constructor.name}`)}}function Iit(t){return!(t.expressions.length!==1||t.strings.length!==2||t.strings[0]!==""||t.strings[1]!=="")}function wit(t){for(let e of t.units){pD(e.create),pD(e.update);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?pD(r.handlerOps):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&pD(r.trackByOps);hD(e.create,t.compatibility),hD(e.update,t.compatibility);for(let r of e.create)r.kind===v.Listener||r.kind===v.Animation||r.kind===v.AnimationListener||r.kind===v.TwoWayListener?hD(r.handlerOps,t.compatibility):r.kind===v.RepeaterCreate&&r.trackByOps!==null&&hD(r.trackByOps,t.compatibility)}}var _n;(function(t){t[t.None=0]="None",t[t.ViewContextRead=1]="ViewContextRead",t[t.ViewContextWrite=2]="ViewContextWrite",t[t.SideEffectful=4]="SideEffectful"})(_n||(_n={}));function pD(t){let e=new Map;for(let r of t)r.kind===v.Variable&&r.flags&ro.AlwaysInline&&(Hn(r,n=>{if(cl(n)&&aH(n)!==_n.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(r.xref,r)),ln(r,n=>n instanceof Td&&e.has(n.xref)?e.get(n.xref).initializer.clone():n,Ot.None);for(let r of e.values())L.remove(r)}function hD(t,e){let r=new Map,n=new Map,i=new Set,s=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)}s.set(c,Ait(c)),xit(c,n,i)}let o=!1;for(let c of t.reversed()){let l=s.get(c);if(c.kind===v.Variable&&n.get(c.xref)===0){if(o&&l.fences&_n.ViewContextWrite||l.fences&_n.SideEffectful){let d=Bo(c.initializer.toStmt());s.set(d,l),L.replace(c,d)}else Oit(c,n),L.remove(c);s.delete(c),r.delete(c.xref),n.delete(c.xref);continue}l.fences&_n.ViewContextRead&&(o=!0)}let a=[];for(let[c,l]of n){let f=!!(r.get(c).flags&ro.AlwaysInline);l!==1||f||i.has(c)||a.push(c)}let u;for(;u=a.pop();){let c=r.get(u),l=s.get(c);if(!!(c.flags&ro.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=s.get(f);if(p.variablesUsed.has(u)){if(e===Is.TemplateDefinitionBuilder&&!Pit(c,f))break;if(Cit(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),s.delete(c),L.remove(c)}break}if(!T0e(p.fences,l.fences))break}}}function aH(t){switch(t.kind){case Se.NextContext:return _n.ViewContextRead|_n.ViewContextWrite;case Se.RestoreView:return _n.ViewContextRead|_n.ViewContextWrite|_n.SideEffectful;case Se.StoreLet:return _n.SideEffectful;case Se.Reference:case Se.ContextLetReference:return _n.ViewContextRead;default:return _n.None}}function Ait(t){let e=_n.None,r=new Set;return Hn(t,n=>{cl(n)&&(n.kind===Se.ReadVariable?r.add(n.xref):e|=aH(n))}),{fences:e,variablesUsed:r}}function xit(t,e,r){Hn(t,(n,i)=>{if(!cl(n)||n.kind!==Se.ReadVariable)return;let s=e.get(n.xref);s!==void 0&&(e.set(n.xref,s+1),i&Ot.InChildOperation&&r.add(n.xref))})}function Oit(t,e){Hn(t,r=>{if(!cl(r)||r.kind!==Se.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 T0e(t,e){if(t&_n.ViewContextWrite){if(e&_n.ViewContextRead)return!1}else if(t&_n.ViewContextRead&&e&_n.ViewContextWrite)return!1;return!0}function Cit(t,e,r,n){let i=!1,s=!0;return ln(r,(o,a)=>{if(!cl(o)||i||!s)return o;if(a&Ot.InChildOperation&&n&_n.ViewContextRead)return o;switch(o.kind){case Se.ReadVariable:if(o.xref===t)return i=!0,e;break;default:let u=aH(o);s=s&&T0e(u,n);break}return o},Ot.None),i}function Pit(t,e){switch(t.variable.kind){case Cn.Identifier:return t.initializer instanceof Ca&&t.initializer.name==="ctx";case Cn.Context:return e.kind===v.Variable;default:return!0}}function Nit(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(qM(n,i.message,void 0,null),i));break;case v.IcuEnd:n!==null&&(L.insertAfter(BM(n,null),i),n=null);break}}}var Dit=[{kind:ue.Tmpl,fn:ort},{kind:ue.Both,fn:_rt},{kind:ue.Host,fn:vet},{kind:ue.Tmpl,fn:Vtt},{kind:ue.Tmpl,fn:prt},{kind:ue.Tmpl,fn:Nit},{kind:ue.Both,fn:FJe},{kind:ue.Both,fn:git},{kind:ue.Both,fn:TJe},{kind:ue.Both,fn:RJe},{kind:ue.Both,fn:bJe},{kind:ue.Tmpl,fn:$Je},{kind:ue.Both,fn:Gtt},{kind:ue.Tmpl,fn:Knt},{kind:ue.Both,fn:AJe},{kind:ue.Both,fn:srt},{kind:ue.Tmpl,fn:xJe},{kind:ue.Tmpl,fn:crt},{kind:ue.Tmpl,fn:jJe},{kind:ue.Tmpl,fn:frt},{kind:ue.Both,fn:grt},{kind:ue.Tmpl,fn:pet},{kind:ue.Tmpl,fn:fet},{kind:ue.Tmpl,fn:het},{kind:ue.Tmpl,fn:ait},{kind:ue.Both,fn:hJe},{kind:ue.Both,fn:Jnt},{kind:ue.Tmpl,fn:bit},{kind:ue.Tmpl,fn:Qnt},{kind:ue.Both,fn:nit},{kind:ue.Tmpl,fn:qJe},{kind:ue.Tmpl,fn:Eit},{kind:ue.Tmpl,fn:vit},{kind:ue.Both,fn:Znt},{kind:ue.Both,fn:oit},{kind:ue.Tmpl,fn:Btt},{kind:ue.Both,fn:GJe},{kind:ue.Both,fn:fit},{kind:ue.Both,fn:yit},{kind:ue.Both,fn:wit},{kind:ue.Both,fn:lit},{kind:ue.Tmpl,fn:qtt},{kind:ue.Tmpl,fn:LJe},{kind:ue.Tmpl,fn:Ynt},{kind:ue.Tmpl,fn:vJe},{kind:ue.Tmpl,fn:gJe},{kind:ue.Tmpl,fn:cit},{kind:ue.Tmpl,fn:eit},{kind:ue.Tmpl,fn:tit},{kind:ue.Tmpl,fn:oet},{kind:ue.Tmpl,fn:ktt},{kind:ue.Tmpl,fn:get},{kind:ue.Both,fn:NJe},{kind:ue.Tmpl,fn:znt},{kind:ue.Both,fn:Sit},{kind:ue.Tmpl,fn:det},{kind:ue.Both,fn:Wtt},{kind:ue.Tmpl,fn:Xnt},{kind:ue.Tmpl,fn:Qtt},{kind:ue.Tmpl,fn:Ztt},{kind:ue.Tmpl,fn:HJe},{kind:ue.Tmpl,fn:_Je},{kind:ue.Tmpl,fn:Jtt},{kind:ue.Both,fn:mrt},{kind:ue.Both,fn:Unt},{kind:ue.Both,fn:wJe}];function I0e(t,e){for(let r of Dit)(r.kind===e||r.kind===ue.Both)&&r.fn(t)}function Mit(t,e){let r=A0e(t.root);return w0e(t.root,e),r}function w0e(t,e){for(let r of t.job.units){if(r.parent!==t.xref)continue;w0e(r,e);let n=A0e(r);e.statements.push(n.toDeclStmt(n.name))}}function A0e(t){if(t.fnName===null)throw new Error(`AssertionError: view ${t.xref} is unnamed`);let e=[];for(let s of t.create){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[s.kind]}`);e.push(s.statement)}let r=[];for(let s of t.update){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[s.kind]}`);r.push(s.statement)}let n=xM(1,e),i=xM(2,r);return Np([new si("rf"),new si("ctx")],[...n,...i],void 0,void 0,t.fnName)}function xM(t,e){return e.length===0?[]:[kM(new Tt(H.BitwiseAnd,vt("rf"),O(t)),e)]}function Rit(t){if(t.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let s of t.root.create){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${v[s.kind]}`);e.push(s.statement)}let r=[];for(let s of t.root.update){if(s.kind!==v.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${v[s.kind]}`);r.push(s.statement)}if(e.length===0&&r.length===0)return null;let n=xM(1,e),i=xM(2,r);return Np([new si("rf"),new si("ctx")],[...n,...i],void 0,void 0,t.root.fnName)}var x0e=Is.TemplateDefinitionBuilder,Gg=new ab,Wg="ng-template",kit="animate.";function SD(t){return t instanceof Ki}function Lit(t){return SD(t)&&t.nodes.length===1&&t.nodes[0]instanceof XD}function $it(t,e,r,n,i,s,o,a,u,c){let l=new gI(t,r,x0e,n,i,s,o,a,u,c);return Ad(l.root,e),l}function Fit(t,e,r){let n=new pM(t.componentName,r,x0e,Gi.DomOnly);for(let i of t.properties??[]){let s=ge.Property;i.name.startsWith("attr.")&&(i.name=i.name.substring(5),s=ge.Attribute),i.isLegacyAnimation&&(s=ge.LegacyAnimation),i.isAnimation&&(s=ge.Animation);let o=e.calcPossibleSecurityContexts(t.componentSelector,i.name,s===ge.Attribute).filter(a=>a!==nr.NONE);jit(n,i,s,o)}for(let[i,s]of Object.entries(t.attributes)??[]){let o=e.calcPossibleSecurityContexts(t.componentSelector,i,!0).filter(a=>a!==nr.NONE);qit(n,i,s,o)}for(let i of t.events??[])Bit(n,i);return n}function jit(t,e,r,n){let i,s=e.expression.ast;s instanceof AI?i=new Br(s.strings,s.expressions.map(o=>st(o,t,e.sourceSpan)),[]):i=st(s,t,e.sourceSpan),t.root.update.push(s0(t.root.xref,r,e.name,i,null,n,!1,!1,null,null,e.sourceSpan))}function qit(t,e,r,n){let i=s0(t.root.xref,ge.Attribute,e,r,null,n,!0,!1,null,null,r.sourceSpan);t.root.update.push(i)}function Bit(t,e){let r;if(e.type===Ii.Animation)r=Jge(t.root.xref,new ci,e.name,null,EI(t.root,e.handler,e.handlerSpan),e.name.endsWith("enter")?"enter":"leave",e.targetOrPhase,!0,e.sourceSpan);else{let[n,i]=e.type!==Ii.LegacyAnimation?[null,e.targetOrPhase]:[e.targetOrPhase,null];r=nH(t.root.xref,new ci,e.name,null,EI(t.root,e.handler,e.handlerSpan),n,i,!0,e.sourceSpan)}t.root.create.push(r)}function Ad(t,e){for(let r of e)if(r instanceof al)Uit(t,r);else if(r instanceof so)Vit(t,r);else if(r instanceof eb)Hit(t,r);else if(r instanceof jg)O0e(t,r,null);else if(r instanceof Z_)C0e(t,r,null);else if(r instanceof YD)Git(t,r);else if(r instanceof QD)Wit(t,r);else if(r instanceof t0)Kit(t,r);else if(r instanceof Ige)Qit(t,r);else if(r instanceof J_)Yit(t,r);else if(r instanceof WV)Xit(t,r);else if(!(r instanceof TT))throw new Error(`Unsupported template node: ${r.constructor.name}`)}function Uit(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Ki||e.i18n instanceof Mp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=t.job.allocateXrefId(),[n,i]=Da(e.name),s=QXe(i,r,o0e(n),e.i18n instanceof Mp?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);t.create.push(s),est(t,s,e),D0e(s,e);let o=null;e.i18n instanceof Ki&&(o=t.job.allocateXrefId(),t.create.push(qM(o,e.i18n,void 0,e.startSourceSpan))),Ad(t,e.children);let a=ZXe(r,e.endSourceSpan??e.startSourceSpan);t.create.push(a);let u=e.inputs.find(c=>c.name==="formField"&&c.type===It.Property);u&&t.create.push(fJe(u.sourceSpan)),o!==null&&L.insertBefore(BM(o,e.endSourceSpan??e.startSourceSpan),a)}function Vit(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Ki||e.i18n instanceof Mp))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]=Da(e.tagName));let s=e.i18n instanceof Mp?e.i18n:void 0,o=o0e(i),a=n===null?"":PJe(n,o),u=Jit(e)?zi.NgTemplate:zi.Structural,c=Qge(r.xref,u,n,a,o,s,e.startSourceSpan,e.sourceSpan);t.create.push(c),tst(t,c,e,u),D0e(c,e),Ad(r,e.children);for(let{name:l,value:d}of e.variables)r.contextVariables.set(l,d!==""?d:"$implicit");if(u===zi.NgTemplate&&e.i18n instanceof Ki){let l=t.job.allocateXrefId();L.insertAfter(qM(l,e.i18n,void 0,e.startSourceSpan),r.create.head),L.insertBefore(BM(l,e.endSourceSpan??e.startSourceSpan),r.create.tail)}}function Hit(t,e){if(e.i18n!==void 0&&!(e.i18n instanceof Mp))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let r=null;e.children.some(s=>!(s instanceof $M)&&(!(s instanceof jg)||s.value.trim().length>0))&&(r=t.job.allocateView(t.xref),Ad(r,e.children));let n=t.job.allocateXrefId(),i=iJe(n,e.selector,e.i18n,r?.xref??null,e.sourceSpan);for(let s of e.attributes){let o=Gg.securityContext(e.name,s.name,!0);t.update.push(s0(i.xref,ge.Attribute,s.name,O(s.value),null,o,!0,!1,null,Ed(s.i18n),s.sourceSpan))}t.create.push(i)}function O0e(t,e,r){t.create.push(Xge(t.job.allocateXrefId(),e.value,r,e.sourceSpan))}function C0e(t,e,r){let n=e.value;if(n instanceof bs&&(n=n.ast),!(n instanceof AI))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${n.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Sd))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let i=e.i18n instanceof Sd?e.i18n.children.filter(a=>a instanceof rI).map(a=>a.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 s=t.job.allocateXrefId();t.create.push(Xge(s,"",r,e.sourceSpan));let o=t.job.compatibility?null:e.sourceSpan;t.update.push(kXe(s,new Br(n.strings,n.expressions.map(a=>st(a,t.job,o)),i),e.sourceSpan))}function Git(t,e){let r=null,n=[];for(let i=0;i<e.branches.length;i++){let s=e.branches[i],o=t.job.allocateView(t.xref),a=OM(t,o.xref,s);s.expressionAlias!==null&&o.contextVariables.set(s.expressionAlias.name,n0e);let u;if(s.i18n!==void 0){if(!(s.i18n instanceof Rp))throw Error(`Unhandled i18n metadata type for if block: ${s.i18n?.constructor.name}`);u=s.i18n}let l=(i===0?Yge:Zge)(o.xref,zi.Block,a,"Conditional",ii.HTML,u,s.startSourceSpan,s.sourceSpan);t.create.push(l),r===null&&(r=o.xref);let d=s.expression?st(s.expression,t.job,null):null,f=new cM(d,l.xref,l.handle,s.expressionAlias);n.push(f),Ad(o,s.children)}t.update.push(Wge(r,null,n,e.sourceSpan))}function Wit(t,e){if(e.groups.length===0)return;let r=null,n=[];for(let i=0;i<e.groups.length;i++){let s=e.groups[i],o=t.job.allocateView(t.xref),a=OM(t,o.xref,s),u;if(s.i18n!==void 0){if(!(s.i18n instanceof Rp))throw Error(`Unhandled i18n metadata type for switch block: ${s.i18n?.constructor.name}`);u=s.i18n}let l=(i===0?Yge:Zge)(o.xref,zi.Block,a,"Case",ii.HTML,u,s.startSourceSpan,s.sourceSpan);t.create.push(l),r===null&&(r=o.xref);for(let d of s.cases){let f=d.expression?st(d.expression,t.job,e.startSourceSpan):null,p=new cM(f,l.xref,l.handle);n.push(p)}Ad(o,s.children)}t.update.push(Wge(r,st(e.expression,t.job,null),n,e.sourceSpan))}function mD(t,e,r,n,i){if(r!==void 0&&!(r instanceof Rp))throw Error("Unhandled i18n metadata type for defer block");if(n===void 0)return null;let s=t.job.allocateView(t.xref);Ad(s,n);let o=Qge(s.xref,zi.Block,null,`Defer${e}`,ii.HTML,r,i,i);return t.create.push(o),o}function Kit(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=mD(t,"",e.i18n,e.children,e.sourceSpan),i=mD(t,"Loading",e.loading?.i18n,e.loading?.children,e.loading?.sourceSpan),s=mD(t,"Placeholder",e.placeholder?.i18n,e.placeholder?.children,e.placeholder?.sourceSpan),o=mD(t,"Error",e.error?.i18n,e.error?.children,e.error?.sourceSpan),a=t.job.allocateXrefId(),u=sJe(a,n.xref,n.handle,r,t.job.allDeferrableDepsFn,e.sourceSpan);u.placeholderView=s?.xref??null,u.placeholderSlot=s?.handle??null,u.loadingSlot=i?.handle??null,u.errorSlot=o?.handle??null,u.placeholderMinimumTime=e.placeholder?.minimumTime??null,u.loadingMinimumTime=e.loading?.minimumTime??null,u.loadingAfterTime=e.loading?.afterTime??null,u.flags=zit(e),t.create.push(u);let c=[],l=[];iU("hydrate",e.hydrateTriggers,c,l,t,a),iU("none",e.triggers,c,l,t,a),iU("prefetch",e.prefetchTriggers,c,l,t,a),c.some(f=>f.modifier==="none")||l.some(f=>f.modifier==="none")||c.push(Sp(a,{kind:rr.Idle},"none",null)),t.create.push(c),t.update.push(l)}function zit(t){return Object.keys(t.hydrateTriggers).length>0?1:null}function iU(t,e,r,n,i,s){if(e.idle!==void 0){let o=Sp(s,{kind:rr.Idle},t,e.idle.sourceSpan);r.push(o)}if(e.immediate!==void 0){let o=Sp(s,{kind:rr.Immediate},t,e.immediate.sourceSpan);r.push(o)}if(e.timer!==void 0){let o=Sp(s,{kind:rr.Timer,delay:e.timer.delay},t,e.timer.sourceSpan);r.push(o)}if(e.hover!==void 0){let o=Sp(s,{kind:rr.Hover,targetName:e.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.hover.sourceSpan);r.push(o)}if(e.interaction!==void 0){let o=Sp(s,{kind:rr.Interaction,targetName:e.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},t,e.interaction.sourceSpan);r.push(o)}if(e.viewport!==void 0){let o=Sp(s,{kind:rr.Viewport,targetName:e.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:e.viewport.options?st(e.viewport.options,i.job,e.viewport.sourceSpan):null},t,e.viewport.sourceSpan);r.push(o)}if(e.never!==void 0){let o=Sp(s,{kind:rr.Never},t,e.never.sourceSpan);r.push(o)}if(e.when!==void 0){if(e.when.value instanceof AI)throw new Error("Unexpected interpolation in defer block when trigger");let o=HXe(s,st(e.when.value,i.job,e.when.sourceSpan),t,e.when.sourceSpan);n.push(o)}}function Qit(t,e){if(e.i18n instanceof Ki&&Lit(e.i18n)){let r=t.job.allocateXrefId();t.create.push(uJe(r,e.i18n,xge(e.i18n).name,null));for(let[n,i]of Object.entries({...e.vars,...e.placeholders}))i instanceof Z_?C0e(t,i,n):O0e(t,i,n);t.create.push(cJe(r))}else throw Error(`Unhandled i18n metadata type for ICU: ${e.i18n?.constructor.name}`)}function Yit(t,e){let r=t.job.allocateView(t.xref),n=`\u0275$index_${r.xref}`,i=`\u0275$count_${r.xref}`,s=new Set;r.contextVariables.set(e.item.name,e.item.value);for(let _ of e.contextVariables)_.value==="$index"&&s.add(_.name),_.name==="$index"?r.contextVariables.set("$index",_.value).set(n,_.value):_.name==="$count"?r.contextVariables.set("$count",_.value).set(i,_.value):r.aliases.add({kind:Cn.Alias,name:null,identifier:_.name,expression:Zit(_,n,i)});let o=xn(e.trackBy.span,e.sourceSpan),a=st(e.trackBy,t.job,o);Ad(r,e.children);let u=null,c=null;e.empty!==null&&(u=t.job.allocateView(t.xref),Ad(u,e.empty.children),c=OM(t,u.xref,e.empty));let l={$index:s,$implicit:e.item.name};if(e.i18n!==void 0&&!(e.i18n instanceof Rp))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(e.empty?.i18n!==void 0&&!(e.empty.i18n instanceof Rp))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let d=e.i18n,f=e.empty?.i18n,p=OM(t,r.xref,e),m=YXe(r.xref,u?.xref??null,p,a,l,c,d,f,e.startSourceSpan,e.sourceSpan);t.create.push(m);let g=st(e.expression,t.job,xn(e.expression.span,e.sourceSpan)),y=VXe(m.xref,m.handle,g,e.sourceSpan);t.update.push(y)}function Zit(t,e,r){switch(t.value){case"$index":return new ri(e);case"$count":return new ri(r);case"$first":return new ri(e).identical(O(0));case"$last":return new ri(e).identical(new ri(r).minus(O(1)));case"$even":return new ri(e).modulo(O(2)).identical(O(0));case"$odd":return new ri(e).modulo(O(2)).notIdentical(O(0));default:throw new Error(`AssertionError: unknown @for loop variable ${t.value}`)}}function Xit(t,e){let r=t.job.allocateXrefId();t.create.push(oJe(r,e.name,e.sourceSpan)),t.update.push(WXe(r,e.name,st(e.value,t.job,e.valueSpan),e.sourceSpan))}function st(t,e,r){if(t instanceof bs)return st(t.ast,e,r);if(t instanceof Xc)return t.receiver instanceof ol?new ri(t.name):new ao(st(t.receiver,e,r),t.name,null,xn(t.span,r));if(t instanceof Q_){if(t.receiver instanceof ol)throw new Error("Unexpected ImplicitReceiver");return new Ts(st(t.receiver,e,r),t.args.map(n=>st(n,e,r)),void 0,xn(t.span,r))}else{if(t instanceof _s)return O(t.value,void 0,xn(t.span,r));if(t instanceof q_)switch(t.operator){case"+":return new Qg(V_.Plus,st(t.expr,e,r),void 0,xn(t.span,r));case"-":return new Qg(V_.Minus,st(t.expr,e,r),void 0,xn(t.span,r));default:throw new Error(`AssertionError: unknown unary operator ${t.operator}`)}else if(t instanceof Hi){let n=OJe.get(t.operation);if(n===void 0)throw new Error(`AssertionError: unknown binary operator ${t.operation}`);return new Tt(n,st(t.left,e,r),st(t.right,e,r),void 0,xn(t.span,r))}else{if(t instanceof LT)return new $p(e.root.xref);if(t instanceof Jg)return new Id(st(t.receiver,e,r),st(t.key,e,r),void 0,xn(t.span,r));if(t instanceof z_)throw new Error("AssertionError: Chain in unknown context");if(t instanceof e0){let n=t.keys.map((i,s)=>{let o=st(t.values[s],e,r);return i.kind==="spread"?new Pp(o):new W_(i.key,o,i.quoted)});return new Na(n,void 0,xn(t.span,r))}else{if(t instanceof jT)return new il(t.expressions.map(n=>st(n,e,r)));if(t instanceof FD)return new nl(st(t.condition,e,r),st(t.trueExp,e,r),st(t.falseExp,e,r),void 0,xn(t.span,r));if(t instanceof VT)return st(t.expression,e,r);if(t instanceof jD)return new a0(e.allocateXrefId(),new ci,t.name,[st(t.exp,e,r),...t.args.map(n=>st(n,e,r))]);if(t instanceof FT)return new ib(st(t.receiver,e,r),st(t.key,e,r),xn(t.span,r));if(t instanceof $T)return new nb(st(t.receiver,e,r),t.name);if(t instanceof BD)return new u0(st(t.receiver,e,r),t.args.map(n=>st(n,e,r)));if(t instanceof Vi)return new hI(xn(t.span,r));if(t instanceof qT)return zYe(st(t.expression,e,r),xn(t.span,r));if(t instanceof BT)return wI(st(t.expression,e,r));if(t instanceof UT)return new PD(st(t.expression,e,r),void 0,xn(t.span,r));if(t instanceof GT)return Qme(t,e,r);if(t instanceof HT)return new OT(st(t.tag,e,r),Qme(t.template,e,r),void 0,xn(t.span,r));if(t instanceof WT)return new Pa(st(t.expression,e,r),void 0,xn(t.span,r));if(t instanceof VD)return new G_(t.body,t.flags,r);if(t instanceof qD)return new Yg(st(t.expression,e,r));throw new Error(`Unhandled expression type "${t.constructor.name}" in file "${r?.start.file.url}"`)}}}}function Qme(t,e,r){return new PT(t.elements.map(n=>new ND(n.text,xn(n.span,r))),t.expressions.map(n=>st(n,e,r)),xn(t.span,r))}function SV(t,e,r,n){let i;return e instanceof AI?i=new Br(e.strings,e.expressions.map(s=>st(s,t,null)),Object.keys(Ed(r)?.placeholders??{})):e instanceof hr?i=st(e,t,null):i=O(e),i}var P0e=new Map([[It.Property,ge.Property],[It.TwoWay,ge.TwoWayProperty],[It.Attribute,ge.Attribute],[It.Class,ge.ClassName],[It.Style,ge.StyleProperty],[It.LegacyAnimation,ge.LegacyAnimation],[It.Animation,ge.Animation]]);function Jit(t){return Da(t.tagName??"")[1]===Wg}function Ed(t){if(t==null)return null;if(!(t instanceof Ki))throw Error(`Expected i18n meta to be a Message, but got: ${t.constructor.name}`);return t}function est(t,e,r){let n=new Array,i=new Set;for(let s of r.attributes){let o=Gg.securityContext(r.name,s.name,!0);n.push(s0(e.xref,ge.Attribute,s.name,SV(t.job,s.value,s.i18n),null,o,!0,!1,null,Ed(s.i18n),s.sourceSpan)),s.i18n&&i.add(s.name)}for(let s of r.inputs)i.has(s.name)&&console.error(`On component ${t.job.componentName}, the binding ${s.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(s0(e.xref,P0e.get(s.type),s.name,SV(t.job,SI(s.value),s.i18n),s.unit,s.securityContext,!1,!1,null,Ed(s.i18n)??null,s.sourceSpan));t.create.push(n.filter(s=>s?.kind===v.ExtractedAttribute)),t.update.push(n.filter(s=>s?.kind===v.Binding));for(let s of r.outputs){if(s.type===Ii.LegacyAnimation&&s.phase===null)throw Error("Animation listener should have a phase");s.type===Ii.TwoWay?t.create.push(e0e(e.xref,e.handle,s.name,e.tag,N0e(t,s.handler,s.handlerSpan),s.sourceSpan)):s.type===Ii.Animation?t.create.push(Jge(e.xref,e.handle,s.name,e.tag,EI(t,s.handler,s.handlerSpan),s.name.endsWith("enter")?"enter":"leave",s.target,!1,s.sourceSpan)):t.create.push(nH(e.xref,e.handle,s.name,e.tag,EI(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))}n.some(s=>s?.i18nMessage)!==null&&t.create.push(r0e(t.job.allocateXrefId(),new ci,e.xref))}function tst(t,e,r,n){let i=new Array;for(let s of r.templateAttrs)if(s instanceof X_){let o=Gg.securityContext(Wg,s.name,!0);i.push(gD(t,e.xref,It.Attribute,s.name,s.value,null,o,!0,n,Ed(s.i18n),s.sourceSpan))}else i.push(gD(t,e.xref,s.type,s.name,SI(s.value),s.unit,s.securityContext,!0,n,Ed(s.i18n),s.sourceSpan));for(let s of r.attributes){let o=Gg.securityContext(Wg,s.name,!0);i.push(gD(t,e.xref,It.Attribute,s.name,s.value,null,o,!1,n,Ed(s.i18n),s.sourceSpan))}for(let s of r.inputs)i.push(gD(t,e.xref,s.type,s.name,SI(s.value),s.unit,s.securityContext,!1,n,Ed(s.i18n),s.sourceSpan));t.create.push(i.filter(s=>s?.kind===v.ExtractedAttribute)),t.update.push(i.filter(s=>s?.kind===v.Binding));for(let s of r.outputs){if(s.type===Ii.LegacyAnimation&&s.phase===null)throw Error("Animation listener should have a phase");if(n===zi.NgTemplate&&(s.type===Ii.TwoWay?t.create.push(e0e(e.xref,e.handle,s.name,e.tag,N0e(t,s.handler,s.handlerSpan),s.sourceSpan)):t.create.push(nH(e.xref,e.handle,s.name,e.tag,EI(t,s.handler,s.handlerSpan),s.phase,s.target,!1,s.sourceSpan))),n===zi.Structural&&s.type!==Ii.LegacyAnimation){let o=Gg.securityContext(Wg,s.name,!1);t.create.push(eo(e.xref,ge.Property,null,s.name,null,null,null,o))}}i.some(s=>s?.i18nMessage)!==null&&t.create.push(r0e(t.job.allocateXrefId(),new ci,e.xref))}function gD(t,e,r,n,i,s,o,a,u,c,l){let d=typeof i=="string";if(u===zi.Structural){if(!a)switch(r){case It.Property:case It.Class:case It.Style:return eo(e,ge.Property,null,n,null,null,c,o);case It.TwoWay:return eo(e,ge.TwoWayProperty,null,n,null,null,c,o)}if(!d&&(r===It.Attribute||r===It.LegacyAnimation||r===It.Animation))return null}let f=P0e.get(r);return u===zi.NgTemplate&&(r===It.Class||r===It.Style||r===It.Attribute&&!d)&&(f=ge.Property),s0(e,f,n,SV(t.job,i,c),s,o,d,a,u,c,l)}function EI(t,e,r){e=SI(e);let n=new Array,i=e instanceof z_?e.expressions:[e];if(i.length===0)throw new Error("Expected listener to have non-empty expression list.");let s=i.map(a=>st(a,t.job,r)),o=s.pop();return n.push(...s.map(a=>Bo(new wi(a,a.sourceSpan)))),n.push(Bo(new oi(o,o.sourceSpan))),n}function N0e(t,e,r){e=SI(e);let n=new Array;if(e instanceof z_)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let i=st(e,t.job,r),s=new ri("$event"),o=new aM(i,s);return n.push(Bo(new wi(o))),n.push(Bo(new oi(s))),n}function SI(t){return t instanceof bs?t.ast:t}function D0e(t,e){rst(t.localRefs);for(let{name:r,value:n}of e.references)t.localRefs.push({name:r,target:n})}function rst(t){if(!Array.isArray(t))throw new Error("AssertionError: expected an array")}function xn(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 je(r,n,i)}function OM(t,e,r){let n=null;for(let i of r.children)if(!(i instanceof $M||i instanceof WV)){if(n!==null)return null;if(i instanceof al||i instanceof so&&i.tagName!==null)n=i;else return null}if(n!==null){for(let s of n.attributes)if(!s.name.startsWith(kit)){let o=Gg.securityContext(Wg,s.name,!0);t.update.push(s0(e,ge.Attribute,s.name,O(s.value),null,o,!0,!1,null,Ed(s.i18n),s.sourceSpan))}for(let s of n.inputs)if(s.type!==It.LegacyAnimation&&s.type!==It.Animation&&s.type!==It.Attribute){let o=Gg.securityContext(Wg,s.name,!0);t.create.push(eo(e,ge.Property,null,s.name,null,null,null,o))}let i=n instanceof al?n.name:n.tagName;return i===Wg?null:i}return null}var nst=!1;function ist(){return nst}function CM(t,e){return kM(vt(QV).bitwiseAnd(O(t),null),e)}function sst(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function ost(t,e){if(Array.isArray(t.predicate)){let r=[];return t.predicate.forEach(n=>{let i=n.split(",").map(s=>O(s.trim()));r.push(...i)}),e.getConstLiteral(ir(r),!0)}else switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return Ee(T.resolveForwardRef).callFn([t.predicate.expression])}}function M0e(t,e,r){let n=[];return r!==void 0&&n.push(...r),t.isSignal&&n.push(new ao(vt(nI),t.propertyName)),n.push(ost(t,e),O(sst(t))),t.read&&n.push(t.read),n}var uH=Symbol("queryAdvancePlaceholder");function R0e(t){let e=[],r=0,n=()=>{r>0&&(e.unshift(Ee(T.queryAdvance).callFn(r===1?[]:[O(r)]).toStmt()),r=0)};for(let i=t.length-1;i>=0;i--){let s=t[i];s===uH?r++:(n(),e.unshift(s))}return n(),e}function ast(t,e,r){let n=[],i=[],s=Oge(c=>i.push(c),zV),o=null,a=null;t.forEach(c=>{let l=M0e(c,e);if(c.isSignal?(o??=Ee(T.viewQuerySignal),o=o.callFn(l)):(a??=Ee(T.viewQuery),a=a.callFn(l)),c.isSignal){i.push(uH);return}let d=s(),f=Ee(T.loadQuery).callFn([]),p=Ee(T.queryRefresh).callFn([d.set(f)]),m=vt(nI).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}),o!==null&&n.push(new wi(o)),a!==null&&n.push(new wi(a));let u=r?`${r}_Query`:null;return Np([new si(QV,VV),new si(nI,null)],[CM(1,n),CM(2,R0e(i))],Oa,null,u)}function ust(t,e,r){let n=[],i=[],s=Oge(c=>i.push(c),zV),o=null,a=null;for(let c of t){let l=M0e(c,e,[vt("dirIndex")]);if(c.isSignal?(o??=Ee(T.contentQuerySignal),o=o.callFn(l)):(a??=Ee(T.contentQuery),a=a.callFn(l)),c.isSignal){i.push(uH);continue}let d=s(),f=Ee(T.loadQuery).callFn([]),p=Ee(T.queryRefresh).callFn([d.set(f)]),m=vt(nI).prop(c.propertyName).set(c.first?d.prop("first"):d);i.push(p.and(m).toStmt())}o!==null&&n.push(new wi(o)),a!==null&&n.push(new wi(a));let u=r?`${r}_ContentQueries`:null;return Np([new si(QV,VV),new si(nI,null),new si("dirIndex",null)],[CM(1,n),CM(2,R0e(i))],Oa,null,u)}var TV=class extends Ret{constructor(){super(mV)}parse(e,r,n){return super.parse(e,r,n)}},yD=".",cst="attr",sU="animate",lst="class",dst="style",fst="*",oU="animate-",IV=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 s=e[i];typeof s=="string"?this.parsePropertyBinding(i,s,!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 "${s}" (${typeof s})`,r)}return n}createDirectiveHostEventAsts(e,r){let n=[];for(let i of Object.keys(e)){let s=e[i];typeof s=="string"?this.parseEvent(i,s,!1,r,r,[],n,r):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${s}" (${typeof s})`,r)}return n}parseInterpolation(e,r,n){let i=r.fullStart.offset;try{let s=this._exprParser.parseInterpolation(e,r,i,n);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,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,s,o,a,u){let c=n.start.offset+fst.length,l=this._parseTemplateBindings(e,r,n,c,i);for(let d of l){let f=bp(n,d.sourceSpan),p=d.key.source,m=bp(n,d.key.span);if(d instanceof KT){let g=d.value?d.value.source:"$implicit",y=d.value?bp(n,d.value.span):void 0;a.push(new xU(p,g,f,m,y))}else if(d.value){let g=u?f:n,y=bp(n,d.value.ast.sourceSpan);this._parsePropertyAst(p,d.value,!1,g,m,y,s,o)}else s.push([p,""]),this.parseLiteralAttr(p,null,m,i,void 0,s,o,m)}}_parseTemplateBindings(e,r,n,i,s){try{let o=this._exprParser.parseTemplateBindings(e,r,n,i,s);return o.errors.forEach(a=>this.errors.push(a)),o.warnings.forEach(a=>{this._reportError(a,n,_d.WARNING)}),o.templateBindings}catch(o){return this._reportError(`${o}`,n),[]}}parseLiteralAttr(e,r,n,i,s,o,a,u){aU(e)?(e=e.substring(1),u!==void 0&&(u=bp(u,new no(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,_d.ERROR),this._parseLegacyAnimation(e,r,n,i,u,s,o,a)):a.push(new M_(e,this._exprParser.wrapLiteralPrimitive(r,"",i),Ia.LITERAL_ATTR,n,u,s))}parsePropertyBinding(e,r,n,i,s,o,a,u,c,l){e.length===0&&this._reportError("Property name is missing in binding",s);let d=!1;e.startsWith(oU)?(d=!0,e=e.substring(oU.length),l!==void 0&&(l=bp(l,new no(l.start.offset+oU.length,l.end.offset)))):aU(e)&&(d=!0,e=e.substring(1),l!==void 0&&(l=bp(l,new no(l.start.offset+1,l.end.offset)))),d?this._parseLegacyAnimation(e,r,s,o,l,a,u,c):e.startsWith(`${sU}${yD}`)?this._parseAnimation(e,this.parseBinding(r,n,a||s,o),s,l,a,u,c):this._parsePropertyAst(e,this.parseBinding(r,n,a||s,o),i,s,l,a,u,c)}parsePropertyInterpolation(e,r,n,i,s,o,a,u){let c=this.parseInterpolation(r,i||n,u);return c?(this._parsePropertyAst(e,c,!1,n,a,i,s,o),!0):!1}_parsePropertyAst(e,r,n,i,s,o,a,u){a.push([e,r.source]),u.push(new M_(e,r,n?Ia.TWO_WAY:Ia.DEFAULT,i,s,o))}_parseAnimation(e,r,n,i,s,o,a){o.push([e,r.source]),a.push(new M_(e,r,Ia.ANIMATION,n,i,s))}_parseLegacyAnimation(e,r,n,i,s,o,a,u){e.length===0&&this._reportError("Animation trigger is missing",n);let c=this.parseBinding(r||"undefined",!1,o||n,i);a.push([e,c.source]),u.push(new M_(e,c,Ia.LEGACY_ANIMATION,n,s,o))}parseBinding(e,r,n,i){try{let s=r?this._exprParser.parseSimpleBinding(e,n,i):this._exprParser.parseBinding(e,n,i);return s&&this.errors.push(...s.errors),s}catch(s){return this._reportError(`${s}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)}}createBoundElementProperty(e,r,n=!1,i=!0){if(r.isLegacyAnimation)return new GD(r.name,It.LegacyAnimation,nr.NONE,r.expression,null,r.sourceSpan,r.keySpan,r.valueSpan);let s=null,o,a=null,u=r.name.split(yD),c;if(u.length>1)if(u[0]==cst){a=u.slice(1).join(yD),n||this._validatePropertyOrAttributeName(a,r.sourceSpan,!0),c=uU(this._schemaRegistry,e,a,!0);let l=a.indexOf(":");if(l>-1){let d=a.substring(0,l),f=a.substring(l+1);a=_D(d,f)}o=It.Attribute}else u[0]==lst?(a=u[1],o=It.Class,c=[nr.NONE]):u[0]==dst?(s=u.length>2?u[2]:null,a=u[1],o=It.Style,c=[nr.STYLE]):u[0]==sU&&(a=r.name,o=It.Animation,c=[nr.NONE]);if(a===null){let l=this._schemaRegistry.getMappedPropName(r.name);a=i?l:r.name,c=uU(this._schemaRegistry,e,l,!1),o=r.type===Ia.TWO_WAY?It.TwoWay:It.Property,n||this._validatePropertyOrAttributeName(l,r.sourceSpan,!1)}return new GD(a,o,c[0],r.expression,s,r.sourceSpan,r.keySpan,r.valueSpan)}parseEvent(e,r,n,i,s,o,a,u){e.length===0&&this._reportError("Event name is missing in binding",i),aU(e)?(e=e.slice(1),u!==void 0&&(u=bp(u,new no(u.start.offset+1,u.end.offset))),this._parseLegacyAnimationEvent(e,r,i,s,a,u)):this._parseRegularEvent(e,r,n,i,s,o,a,u)}calcPossibleSecurityContexts(e,r,n){let i=this._schemaRegistry.getMappedPropName(r);return uU(this._schemaRegistry,e,i,n)}parseEventListenerName(e){let[r,n]=nZe(e,[null,e]);return{eventName:n,target:r}}parseLegacyAnimationEventName(e){let r=iZe(e,[e,null]);return{eventName:r[0],phase:r[1]===null?null:r[1].toLowerCase()}}_parseLegacyAnimationEvent(e,r,n,i,s,o){let{eventName:a,phase:u}=this.parseLegacyAnimationEventName(e),c=this._parseAction(r,i);s.push(new HD(a,u,Ii.LegacyAnimation,c,n,i,o)),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,s,o,a,u){let{eventName:c,target:l}=this.parseEventListenerName(e),d=this.errors.length,f=this._parseAction(r,s),p=this.errors.length===d;o.push([e,f.source]),n&&p&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",i);let m=Ii.Regular;n&&(m=Ii.TwoWay),e.startsWith(`${sU}${yD}`)&&(m=Ii.Animation),a.push(new HD(c,l,m,f,i,s,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 Vi?(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=_d.ERROR){this.errors.push(new Re(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,_d.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof bs?this._isAllowedAssignmentEvent(e.ast):e instanceof VT?this._isAllowedAssignmentEvent(e.expression):e instanceof Q_&&e.args.length===1&&e.receiver instanceof Xc&&e.receiver.name==="$any"&&e.receiver.receiver instanceof ol?this._isAllowedAssignmentEvent(e.args[0]):(e instanceof Xc||e instanceof Jg)&&!wV(e)}};function wV(t){return t instanceof $T||t instanceof FT?!0:t instanceof WT?wV(t.expression):t instanceof Xc||t instanceof Jg||t instanceof Q_?wV(t.receiver):!1}function aU(t){return t[0]=="@"}function uU(t,e,r,n){let i,s=o=>t.securityContext(o,r,n);return e===null?i=t.allKnownElementNames().map(s):(i=[],U_.parse(e).forEach(o=>{let a=o.element?[o.element]:t.allKnownElementNames(),u=new Set(o.notSelectors.filter(l=>l.isElementSelector()).map(l=>l.element)),c=a.filter(l=>!u.has(l));i.push(...c.map(s))})),i.length===0?[nr.NONE]:Array.from(new Set(i)).sort()}function bp(t,e){let r=e.start-t.start.offset,n=e.end-t.end.offset;return new je(t.start.moveBy(r),t.end.moveBy(n),t.fullStart.moveBy(r),t.details)}function pst(t){if(t==null||t.length===0||t[0]=="/")return!1;let e=t.match(hst);return e===null||e[1]=="package"||e[1]=="asset"}var hst=/^([^:/?#]+):/,mst="select",gst="link",yst="rel",vst="href",_st="stylesheet",bst="style",Est="script",Sst="ngNonBindable",Tst="ngProjectAs";function k0e(t){let e=null,r=null,n=null,i=!1,s="";t.attrs.forEach(u=>{let c=u.name.toLowerCase();c==mst?e=u.value:c==vst?r=u.value:c==yst?n=u.value:u.name==Sst?i=!0:u.name==Tst&&u.value.length>0&&(s=u.value)}),e=Ist(e);let o=t.name.toLowerCase(),a=Es.OTHER;return OU(o)?a=Es.NG_CONTENT:o==bst?a=Es.STYLE:o==Est?a=Es.SCRIPT:o==gst&&n==_st&&(a=Es.STYLESHEET),new AV(a,e,r,i,s)}var Es;(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"})(Es||(Es={}));var AV=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(e,r,n,i,s){this.type=e,this.selectAttr=r,this.hrefAttr=n,this.nonBindable=i,this.projectAs=s}};function Ist(t){return t===null||t.length===0?"*":t}var wst=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,Ast=/^track\s+([\S\s]*)/,xst=/^(as\s+)(.*)/,UM=/^else[^\S\r\n]+if/,Ost=/^let\s+([\S\s]*)/,Cst=/^[$A-Z_][0-9A-Z_$]*$/i,Yme=/(\s*)(\S+)(\s*)/,xT=new Set(["$index","$first","$last","$even","$odd","$count"]);function Zme(t){return t==="empty"}function Xme(t){return t==="else"||UM.test(t)}function Pst(t,e,r,n){let i=Lst(e),s=[],o=Jme(t,i,n);o!==null&&s.push(new Bg(o.expression,Sr(r,t.children,t.children),o.expressionAlias,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan,t.i18n));for(let d of e)if(UM.test(d.name)){let f=Jme(d,i,n);if(f!==null){let p=Sr(r,d.children,d.children);s.push(new Bg(f.expression,p,f.expressionAlias,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}}else if(d.name==="else"){let f=Sr(r,d.children,d.children);s.push(new Bg(null,f,null,d.sourceSpan,d.startSourceSpan,d.endSourceSpan,d.nameSpan,d.i18n))}let a=s.length>0?s[0].startSourceSpan:t.startSourceSpan,u=s.length>0?s[s.length-1].endSourceSpan:t.endSourceSpan,c=t.sourceSpan,l=s[s.length-1];return l!==void 0&&(c=new je(a.start,l.sourceSpan.end)),{node:new YD(s,c,t.startSourceSpan,u,t.nameSpan),errors:i}}function Nst(t,e,r,n){let i=[],s=Mst(t,i,n),o=null,a=null;for(let u of e)u.name==="empty"?a!==null?i.push(new Re(u.sourceSpan,"@for loop can only have one @empty block")):u.parameters.length>0?i.push(new Re(u.sourceSpan,"@empty block cannot have parameters")):a=new JT(Sr(r,u.children,u.children),u.sourceSpan,u.startSourceSpan,u.endSourceSpan,u.nameSpan,u.i18n):i.push(new Re(u.sourceSpan,`Unrecognized @for loop block "${u.name}"`));if(s!==null)if(s.trackBy===null)i.push(new Re(t.startSourceSpan,'@for loop must have a "track" expression'));else{let u=a?.endSourceSpan??t.endSourceSpan,c=new je(t.sourceSpan.start,u?.end??t.sourceSpan.end);Rst(s.trackBy.expression,s.trackBy.keywordSpan,i),o=new J_(s.itemName,s.expression,s.trackBy.expression,s.trackBy.keywordSpan,s.context,Sr(r,t.children,t.children),a,c,t.sourceSpan,t.startSourceSpan,u,t.nameSpan,t.i18n)}return{node:o,errors:i}}function Dst(t,e,r){let n=$st(t),i=t.parameters.length>0?TI(t.parameters[0],r):r.parseBinding("",!1,t.sourceSpan,0),s=[],o=[],a=[],u=null;for(let l of t.children){if(!(l instanceof $o))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){o.push(new ZD(l.name,l.sourceSpan,l.nameSpan));continue}let d=l.name==="case",f=null;d&&(f=TI(l.parameters[0],r));let p=new LU(f,l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan);if(a.push(p),l.children.length===0&&l.endSourceSpan!==null&&l.endSourceSpan.start.offset===l.endSourceSpan.end.offset){u===null&&(u=l.sourceSpan);continue}let g=l.sourceSpan,y=l.startSourceSpan;u!==null&&(g=new je(u.start,l.sourceSpan.end),y=new je(u.start,l.startSourceSpan.end),u=null);let _=new XT(a,Sr(e,l.children,l.children),g,y,l.endSourceSpan,l.nameSpan,l.i18n);s.push(_),a=[]}return{node:new QD(i,s,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.nameSpan),errors:n}}function Mst(t,e,r){if(t.parameters.length===0)return e.push(new Re(t.startSourceSpan,"@for loop does not have an expression")),null;let[n,...i]=t.parameters,s=Fst(n,e)?.match(wst);if(!s||s[2].trim().length===0)return e.push(new Re(n.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern "<identifier> of <expression>"')),null;let[,o,a]=s;xT.has(o)&&e.push(new Re(n.sourceSpan,`@for loop item name cannot be one of ${Array.from(xT).join(", ")}.`));let u=n.expression.split(" ")[0],c=new je(n.sourceSpan.start,n.sourceSpan.start.moveBy(u.length)),l={itemName:new Dp(o,"$implicit",c,c),trackBy:null,expression:TI(n,r,a),context:Array.from(xT,d=>{let f=new je(t.startSourceSpan.end,t.startSourceSpan.end);return new Dp(d,d,f,f)})};for(let d of i){let f=d.expression.match(Ost);if(f!==null){let m=new je(d.sourceSpan.start.moveBy(f[0].length-f[1].length),d.sourceSpan.end);kst(d.sourceSpan,f[1],m,o,l.context,e);continue}let p=d.expression.match(Ast);if(p!==null){if(l.trackBy!==null)e.push(new Re(d.sourceSpan,'@for loop can only have one "track" expression'));else{let m=TI(d,r,p[1]);m.ast instanceof Vi&&e.push(new Re(t.startSourceSpan,'@for loop must have a "track" expression'));let g=new je(d.sourceSpan.start,d.sourceSpan.start.moveBy(5));l.trackBy={expression:m,keywordSpan:g}}continue}e.push(new Re(d.sourceSpan,`Unrecognized @for loop parameter "${d.expression}"`))}return l}function Rst(t,e,r){let n=new xV;t.ast.visit(n),n.hasPipe&&r.push(new Re(e,"Cannot use pipes in track expressions"))}function kst(t,e,r,n,i,s){let o=e.split(","),a=r.start;for(let u of o){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)s.push(new Re(t,'Invalid @for loop "let" parameter. Parameter should match the pattern "<name> = <variable name>"'));else if(!xT.has(d))s.push(new Re(t,`Unknown "let" parameter variable "${d}". The allowed variables are: ${Array.from(xT).join(", ")}`));else if(l===n)s.push(new Re(t,`Invalid @for loop "let" parameter. Variable cannot be called "${n}"`));else if(i.some(f=>f.name===l))s.push(new Re(t,`Duplicate "let" parameter variable "${d}"`));else{let[,f,p]=c[0].match(Yme)??[],m=f!==void 0&&c.length===2?new je(a.moveBy(f.length),a.moveBy(f.length+p.length)):r,g;if(c.length===2){let[,_,b]=c[1].match(Yme)??[];g=_!==void 0?new je(a.moveBy(c[0].length+1+_.length),a.moveBy(c[0].length+1+_.length+b.length)):void 0}let y=new je(m.start,g?.end??m.end);i.push(new Dp(l,d,y,m,g))}a=a.moveBy(u.length+1)}}function Lst(t){let e=[],r=!1;for(let n=0;n<t.length;n++){let i=t[n];i.name==="else"?(r?e.push(new Re(i.startSourceSpan,"Conditional can only have one @else block")):t.length>1&&n<t.length-1?e.push(new Re(i.startSourceSpan,"@else block must be last inside the conditional")):i.parameters.length>0&&e.push(new Re(i.startSourceSpan,"@else block cannot have parameters")),r=!0):UM.test(i.name)||e.push(new Re(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return e}function $st(t){let e=[],r=!1;if(t.parameters.length!==1)return e.push(new Re(t.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let n of t.children)if(!(n instanceof yI||n instanceof c0&&n.value.trim().length===0)){if(!(n instanceof $o)||n.name!=="case"&&n.name!=="default"){e.push(new Re(n.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}n.name==="default"?(r?e.push(new Re(n.startSourceSpan,"@switch block can only have one @default block")):n.parameters.length>0&&e.push(new Re(n.startSourceSpan,"@default block cannot have parameters")),r=!0):n.name==="case"&&n.parameters.length!==1&&e.push(new Re(n.startSourceSpan,"@case block must have exactly one parameter"))}return e}function TI(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 Jme(t,e,r){if(t.parameters.length===0)return e.push(new Re(t.startSourceSpan,"Conditional block does not have an expression")),null;let n=TI(t.parameters[0],r),i=null;for(let s=1;s<t.parameters.length;s++){let o=t.parameters[s],a=o.expression.match(xst);if(a===null)e.push(new Re(o.sourceSpan,`Unrecognized conditional parameter "${o.expression}"`));else if(t.name!=="if"&&!UM.test(t.name))e.push(new Re(o.sourceSpan,'"as" expression is only allowed on `@if` and `@else if` blocks'));else if(i!==null)e.push(new Re(o.sourceSpan,'Conditional can only have one "as" expression'));else{let u=a[2].trim();if(Cst.test(u)){let c=o.sourceSpan.start.moveBy(a[1].length),l=new je(c,c.moveBy(u.length));i=new Dp(u,u,l,l)}else e.push(new Re(o.sourceSpan,'"as" expression must be a valid JavaScript identifier'))}}return{expression:n,expressionAlias:i}}function Fst(t,e){let r=t.expression,n=/^\s$/,i=0,s=0,o=r.length-1;for(let a=0;a<r.length;a++){let u=r[a];if(u==="(")s=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(o=a,i--,i===0)break}else{if(n.test(u))continue;break}}return i!==0?(e.push(new Re(t.sourceSpan,"Unclosed parentheses in expression")),null):r.slice(s,o)}var xV=class extends Y_{hasPipe=!1;visitPipe(){this.hasPipe=!0}},jst=/^\d+\.?\d*(ms|s)?$/,qst=/^\s$/,ege=new Map([[xa,Wi],[Jc,vd],[io,ni]]),Ti;(function(t){t.IDLE="idle",t.TIMER="timer",t.INTERACTION="interaction",t.IMMEDIATE="immediate",t.HOVER="hover",t.VIEWPORT="viewport",t.NEVER="never"})(Ti||(Ti={}));function Bst({expression:t,sourceSpan:e},r,n){let i=t.indexOf("never"),s=new je(e.start.moveBy(i),e.start.moveBy(i+5)),o=cH(t,e),a=lH(t,e);i===-1?n.push(new Re(e,'Could not find "never" keyword in expression')):dH("never",r,n,new DU(s,e,o,null,a))}function cU({expression:t,sourceSpan:e},r,n,i){let s=t.indexOf("when"),o=new je(e.start.moveBy(s),e.start.moveBy(s+4)),a=cH(t,e),u=lH(t,e);if(s===-1)i.push(new Re(e,'Could not find "when" keyword in expression'));else{let c=II(t,s+1),l=r.parseBinding(t.slice(c),!1,e,e.start.offset+c);dH("when",n,i,new WD(l,e,a,o,u))}}function lU({expression:t,sourceSpan:e},r,n,i,s){let o=t.indexOf("on"),a=new je(e.start.moveBy(o),e.start.moveBy(o+2)),u=cH(t,e),c=lH(t,e);if(o===-1)i.push(new Re(e,'Could not find "on" keyword in expression'));else{let l=II(t,o+1),d=t.startsWith("hydrate");new OV(t,r,l,e,n,i,d?Qst:zst,d,u,a,c).parse()}}function cH(t,e){return t.startsWith("prefetch")?new je(e.start,e.start.moveBy(8)):null}function lH(t,e){return t.startsWith("hydrate")?new je(e.start,e.start.moveBy(7)):null}var OV=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(e,r,n,i,s,o,a,u,c,l,d){this.expression=e,this.bindingParser=r,this.start=n,this.span=i,this.triggers=s,this.errors=o,this.validator=a,this.isHydrationTrigger=u,this.prefetchSpan=c,this.onSourceSpan=l,this.hydrateSpan=d,this.tokens=new bI().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(Ss))this.consumeTrigger(e,[]),this.advance();else if(this.isFollowedByOrLast(io)){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 je(n,n.moveBy(e.strValue.length)),s=n.moveBy(this.token().end-e.index),o=e.index===0,a=o?this.onSourceSpan:null,u=o?this.prefetchSpan:null,c=o?this.hydrateSpan:null,l=new je(o?this.span.start:n,s);try{switch(e.toString()){case Ti.IDLE:this.trackTrigger("idle",Ust(r,i,l,u,a,c));break;case Ti.TIMER:this.trackTrigger("timer",Vst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ti.INTERACTION:this.trackTrigger("interaction",Wst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ti.IMMEDIATE:this.trackTrigger("immediate",Hst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan));break;case Ti.HOVER:this.trackTrigger("hover",Gst(r,i,l,this.prefetchSpan,this.onSourceSpan,this.hydrateSpan,this.validator));break;case Ti.VIEWPORT:this.trackTrigger("viewport",Kst(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(io))return this.unexpectedToken(this.token()),e;this.advance();let r=[],n=[];for(;this.index<this.tokens.length;){let i=this.token();if(i.isCharacter(ni)&&r.length===0){n.length&&e.push({expression:this.tokenRangeText(n),start:n[0].index});break}if(i.type===$e.Character&&ege.has(i.numValue)&&r.push(ege.get(i.numValue)),r.length>0&&i.isCharacter(r[r.length-1])&&r.pop(),r.length===0&&i.isCharacter(Ss)&&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(ni)||r.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index<this.tokens.length-1&&!this.tokens[this.index+1].isCharacter(Ss)&&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){dH(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 Re(new je(n,i),r))}unexpectedToken(e){this.error(e,`Unexpected token "${e}"`)}};function dH(t,e,r,n){e[t]?r.push(new Re(n.sourceSpan,`Duplicate "${t}" trigger is not allowed`)):e[t]=n}function Ust(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${Ti.IDLE}" trigger cannot have parameters`);return new MU(e,r,n,i,s)}function Vst(t,e,r,n,i,s){if(t.length!==1)throw new Error(`"${Ti.TIMER}" trigger must have exactly one parameter`);let o=PM(t[0].expression);if(o===null)throw new Error(`Could not parse time value of trigger "${Ti.TIMER}"`);return new kU(o,e,r,n,i,s)}function Hst(t,e,r,n,i,s){if(t.length>0)throw new Error(`"${Ti.IMMEDIATE}" trigger cannot have parameters`);return new RU(e,r,n,i,s)}function Gst(t,e,r,n,i,s,o){return o(Ti.HOVER,t),new KD(t[0]?.expression??null,e,r,n,i,s)}function Wst(t,e,r,n,i,s,o){return o(Ti.INTERACTION,t),new zD(t[0]?.expression??null,e,r,n,i,s)}function Kst(t,e,r,n,i,s,o,a,u,c){c(Ti.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,s,s.start.offset+t+n[0].start);if(f.ast instanceof e0){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],g=(y,_)=>_!==p;if(!(m instanceof Xc)||!(m.receiver instanceof ol))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');l=m.name,d=new e0(f.ast.span,f.ast.sourceSpan,f.ast.keys.filter(g),f.ast.values.filter(g))}}if(e&&l!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(d){let f=CV.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 zT(l,d,i,s,o,a,u)}function zst(t,e){if(e.length>1)throw new Error(`"${t}" trigger can only have zero or one parameters`)}function Qst(t,e){if(t===Ti.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 II(t,e=0){let r=!1;for(let n=e;n<t.length;n++)if(qst.test(t[n]))r=!0;else if(r)return n;return-1}function PM(t){let e=t.match(jst);if(!e)return null;let[r,n]=e;return parseFloat(r)*(n==="s"?1e3:1)}var CV=class t extends Y_{dynamicNode=null;static findDynamicNode(e){let r=new t;return r.visit(e),r.dynamicNode}visit(e){!(e instanceof bs)&&!(e instanceof _s)&&!(e instanceof jT)&&!(e instanceof e0)?this.dynamicNode=e:super.visit(e)}},Yst=/^prefetch\s+when\s/,Zst=/^prefetch\s+on\s/,Xst=/^hydrate\s+when\s/,Jst=/^hydrate\s+on\s/,eot=/^hydrate\s+never(\s*)$/,L0e=/^minimum\s/,tot=/^after\s/,rot=/^when\s/,not=/^on\s/;function PV(t){return t==="placeholder"||t==="loading"||t==="error"}function iot(t,e,r,n){let i=[],{placeholder:s,loading:o,error:a}=sot(e,i,r),{triggers:u,prefetchTriggers:c,hydrateTriggers:l}=cot(t,n,i),d=t.endSourceSpan,f=t.sourceSpan.end;if(e.length>0){let g=e[e.length-1];d=g.endSourceSpan,f=g.sourceSpan.end}let p=new je(t.sourceSpan.start,f);return{node:new t0(Sr(r,t.children,t.children),u,c,l,s,o,a,t.nameSpan,p,t.sourceSpan,t.startSourceSpan,d,t.i18n),errors:i}}function sot(t,e,r){let n=null,i=null,s=null;for(let o of t)try{if(!PV(o.name)){e.push(new Re(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":n!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @placeholder block")):n=oot(o,r);break;case"loading":i!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @loading block")):i=aot(o,r);break;case"error":s!==null?e.push(new Re(o.startSourceSpan,"@defer block can only have one @error block")):s=uot(o,r);break}}catch(a){e.push(new Re(o.startSourceSpan,a.message))}return{placeholder:n,loading:i,error:s}}function oot(t,e){let r=null;for(let n of t.parameters)if(L0e.test(n.expression)){if(r!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=PM(n.expression.slice(II(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 QT(Sr(e,t.children,t.children),r,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function aot(t,e){let r=null,n=null;for(let i of t.parameters)if(tot.test(i.expression)){if(r!=null)throw new Error('@loading block can only have one "after" parameter');let s=PM(i.expression.slice(II(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "after"');r=s}else if(L0e.test(i.expression)){if(n!=null)throw new Error('@loading block can only have one "minimum" parameter');let s=PM(i.expression.slice(II(i.expression)));if(s===null)throw new Error('Could not parse time value of parameter "minimum"');n=s}else throw new Error(`Unrecognized parameter in @loading block: "${i.expression}"`);return new YT(Sr(e,t.children,t.children),r,n,t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function uot(t,e){if(t.parameters.length>0)throw new Error("@error block cannot have parameters");return new ZT(Sr(e,t.children,t.children),t.nameSpan,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}function cot(t,e,r,n){let i={},s={},o={};for(let a of t.parameters)rot.test(a.expression)?cU(a,e,i,r):not.test(a.expression)?lU(a,e,i,r):Yst.test(a.expression)?cU(a,e,s,r):Zst.test(a.expression)?lU(a,e,s,r):Xst.test(a.expression)?cU(a,e,o,r):Jst.test(a.expression)?lU(a,e,o,r):eot.test(a.expression)?Bst(a,o,r):r.push(new Re(a.sourceSpan,"Unrecognized trigger"));return o.never&&Object.keys(o).length>1&&r.push(new Re(t.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:i,prefetchTriggers:s,hydrateTriggers:o}}var lot=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,tge=1,rge=2,nge=3,ige=4,sge=5,dot=6,yT=7,Ep={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},dU="*",fot=new Set(["link","style","script","ng-template","ng-container","ng-content"]),pot=new Set(["ngProjectAs","ngNonBindable"]);function hot(t,e,r){let n=new NV(e,r),i=Sr(n,t,t),s=e.errors.concat(n.errors),o={nodes:i,errors:s,styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors};return r.collectCommentNodes&&(o.commentNodes=n.commentNodes),o}var NV=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=SD(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=k0e(e);if(n.type===Es.SCRIPT)return null;if(n.type===Es.STYLE){let _=mot(e);return _!==null&&this.styles.push(_),null}else if(n.type===Es.STYLESHEET&&pst(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;let i=wZe(e.name),{attributes:s,boundEvents:o,references:a,variables:u,templateVariables:c,elementHasInlineTemplate:l,parsedProperties:d,templateParsedProperties:f,i18nAttrsMeta:p}=this.prepareAttributes(e.attrs,i),m=this.extractDirectives(e),g;n.nonBindable?g=Sr(oge,e.children).flat(1/0):g=Sr(this,e.children,e.children);let y;if(n.type===Es.NG_CONTENT){let _=n.selectAttr,b=e.attrs.map(S=>this.visitAttribute(S));y=new eb(_,b,g,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n),this.ngContentSelectors.push(_)}else if(i){let _=this.categorizePropertyAttributes(e.name,d,p);y=new so(e.name,s,_.bound,o,m,[],g,a,u,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let _=this.categorizePropertyAttributes(e.name,d,p);if(e.name==="ng-container")for(let b of _.bound)b.type===It.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",b.sourceSpan);y=new al(e.name,s,_.bound,o,m,g,a,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid,e.i18n)}return l&&(y=this.wrapInTemplate(y,f,c,p,i,r)),r&&(this.inI18nBlock=!1),y}visitAttribute(e){return new X_(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(!SD(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(s=>{let o=r.placeholders[s];if(s.startsWith(CZe)){let a=s.trim(),u=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);n[a]=new Z_(u,o.sourceSpan)}else i[s]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Ige(n,i,e.sourceSpan,r)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new $M(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 Vi&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new WV(e.name,n,e.sourceSpan,e.nameSpan,e.valueSpan)}visitComponent(e){let r=SD(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&&fot.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:s,templateVariables:o,elementHasInlineTemplate:a,parsedProperties:u,templateParsedProperties:c,i18nAttrsMeta:l}=this.prepareAttributes(e.attrs,!1);this.validateSelectorlessReferences(s);let d=this.extractDirectives(e),f;e.attrs.find(g=>g.name==="ngNonBindable")?f=Sr(oge,e.children).flat(1/0):f=Sr(this,e.children,e.children);let p=this.categorizePropertyAttributes(e.tagName,u,l),m=new TT(e.componentName,e.tagName,e.fullName,n,p.bound,i,d,f,s,e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return a&&(m=this.wrapInTemplate(m,c,o,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=iot(e,this.findConnectedBlocks(n,r,PV),this,this.bindingParser);break;case"switch":i=Dst(e,this,this.bindingParser);break;case"for":i=Nst(e,this.findConnectedBlocks(n,r,Zme),this,this.bindingParser);break;case"if":i=Pst(e,this.findConnectedBlocks(n,r,Xme),this,this.bindingParser);break;default:let s;PV(e.name)?(s=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Zme(e.name)?(s=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Xme(e.name)?(s=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):s=`Unrecognized block @${e.name}.`,i={node:new ZD(e.name,e.sourceSpan,e.nameSpan),errors:[new Re(e.sourceSpan,s)]};break}return this.errors.push(...i.errors),i.node}findConnectedBlocks(e,r,n){let i=[];for(let s=e+1;s<r.length;s++){let o=r[s];if(!(o instanceof yI)){if(o instanceof c0&&o.value.trim().length===0){this.processedNodes.add(o);continue}if(!(o instanceof $o)||!n(o.name))break;i.push(o),this.processedNodes.add(o)}}return i}categorizePropertyAttributes(e,r,n){let i=[],s=[];return r.forEach(o=>{let a=n[o.name];if(o.isLiteral)s.push(new X_(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let u=this.bindingParser.createBoundElementProperty(e,o,!0,!1);i.push(PU.fromBoundElementProperty(u,a))}}),{bound:i,literal:s}}prepareAttributes(e,r){let n=[],i=[],s=[],o=[],a=[],u={},c=[],l=[],d=!1;for(let f of e){let p=!1,m=age(f.name),g=!1;if(f.i18n&&(u[f.name]=f.i18n),m.startsWith(dU)){d&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",f.sourceSpan),g=!0,d=!0;let y=f.value,_=m.substring(dU.length),b=[],S=f.valueSpan?f.valueSpan.fullStart.offset:f.sourceSpan.fullStart.offset+f.name.length;this.bindingParser.parseInlineTemplateBinding(_,y,f.sourceSpan,S,[],c,b,!0),l.push(...b.map(x=>new Dp(x.name,x.value,x.sourceSpan,x.keySpan,x.valueSpan)))}else p=this.parseAttribute(r,f,[],n,i,s,o);!p&&!g&&a.push(this.visitAttribute(f))}return{attributes:a,boundEvents:i,references:o,variables:s,templateVariables:l,elementHasInlineTemplate:d,parsedProperties:n,templateParsedProperties:c,i18nAttrsMeta:u}}parseAttribute(e,r,n,i,s,o,a){let u=age(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,M=_.start.moveBy(b.length+x),se=M.moveBy(S.length);return new je(M,se,M,S)}let p=u.match(lot);if(p){if(p[tge]!=null){let _=p[yT],b=f(l,p[tge],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b)}else if(p[rge])if(e){let _=p[yT],b=f(l,p[rge],_);this.parseVariable(_,c,l,b,r.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',l);else if(p[nge]){let _=p[yT],b=f(l,p[nge],_);this.parseReference(_,c,l,b,r.valueSpan,a)}else if(p[ige]){let _=[],b=p[yT],S=f(l,p[ige],b);this.bindingParser.parseEvent(b,c,!1,l,r.valueSpan||l,n,_,S),fU(_,s)}else if(p[sge]){let _=p[yT],b=f(l,p[sge],_);this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,s,b,d)}else if(p[dot]){let _=f(l,"",u);this.bindingParser.parseLiteralAttr(u,c,l,d,r.valueSpan,n,i,_)}return!0}let m=null;if(u.startsWith(Ep.BANANA_BOX.start)?m=Ep.BANANA_BOX:u.startsWith(Ep.PROPERTY.start)?m=Ep.PROPERTY:u.startsWith(Ep.EVENT.start)&&(m=Ep.EVENT),m!==null&&u.endsWith(m.end)&&u.length>m.start.length+m.end.length){let _=u.substring(m.start.length,u.length-m.end.length),b=f(l,m.start,_);if(m.start===Ep.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,c,!1,!0,l,d,r.valueSpan,n,i,b),this.parseAssignmentEvent(_,c,l,r.valueSpan,n,s,b,d);else if(m.start===Ep.PROPERTY.start)this.bindingParser.parsePropertyBinding(_,c,!1,!1,l,d,r.valueSpan,n,i,b);else{let S=[];this.bindingParser.parseEvent(_,c,!1,l,r.valueSpan||l,n,S,b),fU(S,s)}return!0}let g=f(l,"",u);return this.bindingParser.parsePropertyInterpolation(u,c,l,r.valueSpan,n,i,g,r.valueTokens??null)}extractDirectives(e){let r=e instanceof vs?e.tagName:e.name,n=[],i=new Set;for(let s of e.directives){let o=!1;for(let p of s.attrs)p.name.startsWith(dU)?(o=!0,this.reportError(`Shorthand template syntax "${p.name}" is not supported inside a directive context`,p.sourceSpan)):pot.has(p.name)&&(o=!0,this.reportError(`Attribute "${p.name}" is not supported in a directive context`,p.sourceSpan));if(!o&&i.has(s.name)&&(o=!0,this.reportError(`Cannot apply directive "${s.name}" multiple times on the same element`,s.sourceSpan)),o)continue;let{attributes:a,parsedProperties:u,boundEvents:c,references:l,i18nAttrsMeta:d}=this.prepareAttributes(s.attrs,!1);this.validateSelectorlessReferences(l);let{bound:f}=this.categorizePropertyAttributes(r,u,d);for(let p of f)p.type!==It.Property&&p.type!==It.TwoWay&&(o=!0,this.reportError("Binding is not supported in a directive context",p.sourceSpan));o||(i.add(s.name),n.push(new Tge(s.name,a,f,c,l,s.sourceSpan,s.startSourceSpan,s.endSourceSpan,void 0)))}return n}filterAnimationAttributes(e){return e.filter(r=>!r.name.startsWith("animate."))}filterAnimationInputs(e){return e.filter(r=>r.type!==It.Animation)}wrapInTemplate(e,r,n,i,s,o){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 al||e instanceof TT)&&(c.attributes.push(...this.filterAnimationAttributes(e.attributes)),c.inputs.push(...this.filterAnimationInputs(e.inputs)),c.outputs.push(...e.outputs));let l=s&&o?void 0:e.i18n,d;return e instanceof TT?d=e.tagName:e instanceof so?d=null:d=e.name,new so(d,c.attributes,c.inputs,c.outputs,[],u,[e],[],n,!1,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,l)}_visitTextWithInterpolation(e,r,n,i){let s=f0e(e),o=this.bindingParser.parseInterpolation(s,r,n);return o?new Z_(o,r,i):new jg(s,r)}parseVariable(e,r,n,i,s,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):e.length===0&&this.reportError("Variable does not have a name",n),o.push(new Dp(e,r,n,i,s))}parseReference(e,r,n,i,s,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):e.length===0?this.reportError("Reference does not have a name",n):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,n),o.push(new eI(e,r,n,i,s))}parseAssignmentEvent(e,r,n,i,s,o,a,u){let c=[];this.bindingParser.parseEvent(`${e}Change`,r,!0,n,i||n,s,c,a),fU(c,o)}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=_d.ERROR){this.errors.push(new Re(r,e,n))}},DV=class{visitElement(e){let r=k0e(e);if(r.type===Es.SCRIPT||r.type===Es.STYLE||r.type===Es.STYLESHEET)return null;let n=Sr(this,e.children,null);return new al(e.name,Sr(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.isVoid)}visitComment(e){return null}visitAttribute(e){return new X_(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new jg(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,r){let n=[new jg(e.startSourceSpan.toString(),e.startSourceSpan),...Sr(this,e.children)];return e.endSourceSpan!==null&&n.push(new jg(e.endSourceSpan.toString(),e.endSourceSpan)),n}visitBlockParameter(e,r){return null}visitLetDeclaration(e,r){return new jg(`@let ${e.name} = ${e.value};`,e.sourceSpan)}visitComponent(e,r){let n=Sr(this,e.children,null);return new al(e.fullName,Sr(this,e.attrs),[],[],[],n,[],e.isSelfClosing,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,!1)}visitDirective(e,r){return null}},oge=new DV;function age(t){return/^data-/i.test(t)?t.substring(5):t}function fU(t,e){e.push(...t.map(r=>NU.fromParsedEvent(r)))}function mot(t){return t.children.length!==1||!(t.children[0]instanceof c0)?null:t.children[0].value}var got=[" ",`
|
|
264
264
|
`,"\r"," "];function yot(t,e,r={}){let{preserveWhitespaces:n,enableI18nLegacyMessageIdFormat:i}=r,s=r.enableSelectorless??!1,o=NM(s),u=new TV().parse(t,e,{leadingTriviaChars:got,...r,tokenizeExpansionForms:!0,tokenizeBlocks:r.enableBlockSyntax??!0,tokenizeLet:r.enableLetSyntax??!0,selectorlessEnabled:s});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 SM(!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=Sr(new bM(!0,void 0,!1),c),d.hasI18nMeta&&(c=Sr(new SM(!1,void 0,!0,l),c)));let{nodes:p,errors:m,styleUrls:g,styles:y,ngContentSelectors:_,commentNodes:b}=hot(c,o,{collectCommentNodes:!!r.collectCommentNodes});m.push(...u.errors,...f.errors);let S={preserveWhitespaces:n,errors:m.length>0?m:null,nodes:p,styleUrls:g,styles:y,ngContentSelectors:_};return r.collectCommentNodes&&(S.commentNodes=b),S}var vot=new ab;function NM(t=!1){return new IV(new EM(new bI,t),vot,[])}var $0e="%COMP%",_ot=`_nghost-${$0e}`,bot=`_ngcontent-${$0e}`;function F0e(t,e,r){let n=new kp,i=UV(t.selector);return n.set("type",t.type.value),i.length>0&&n.set("selectors",R_(i)),t.queries.length>0&&n.set("contentQueries",ust(t.queries,e,t.name)),t.viewQueries.length&&n.set("viewQuery",ast(t.viewQueries,e,t.name)),n.set("hostBindings",Oot(t.host,t.typeSourceSpan,r,e,t.selector||"",t.name,n)),n.set("inputs",qhe(t.inputs,!0)),n.set("outputs",qhe(t.outputs)),t.exportAs!==null&&n.set("exportAs",ir(t.exportAs.map(s=>O(s)))),t.isStandalone===!1&&n.set("standalone",O(!1)),t.isSignal&&n.set("signals",O(!0)),n}function j0e(t,e){let r=[],n=e.providers,i=e.viewProviders;if(n||i){let s=[n||new il([])];i&&s.push(i),r.push(Ee(T.ProvidersFeature).callFn(s))}if(e.hostDirectives?.length&&r.push(Ee(T.HostDirectivesFeature).callFn([Mot(e.hostDirectives)])),e.usesInheritance&&r.push(Ee(T.InheritDefinitionFeature)),e.lifecycle.usesOnChanges&&r.push(Ee(T.NgOnChangesFeature)),"externalStyles"in e&&e.externalStyles?.length){let s=e.externalStyles.map(o=>O(o));r.push(Ee(T.ExternalStylesFeature).callFn([ir(s)]))}r.length&&t.set("features",ir(r))}function Eot(t,e,r){let n=F0e(t,e,r);j0e(n,t);let i=Ee(T.defineDirective).callFn([n.toLiteralMap()],void 0,!0),s=xot(t);return{expression:i,type:s,statements:[]}}function Sot(t,e,r){let n=F0e(t,e,r);j0e(n,t);let i=t.selector&&U_.parse(t.selector),s=i&&i[0];if(s){let m=s.getAttrs();m.length&&n.set("attrs",e.getConstLiteral(ir(m.map(g=>g!=null?O(g):O(void 0))),!0))}let o=t.name,a=null;if(t.defer.mode===1&&t.defer.dependenciesFn!==null){let m=`${o}_DeferFn`;e.statements.push(new Pn(m,t.defer.dependenciesFn,void 0,Vn.Final)),a=vt(m)}let u=t.isStandalone&&!t.hasDirectiveDependencies?Gi.DomOnly:Gi.Full,c=$it(t.name,t.template.nodes,e,u,t.relativeContextFilePath,t.i18nUseExternalIds,t.defer,a,t.relativeTemplatePath,ist());I0e(c,ue.Tmpl);let l=Mit(c,e);if(c.contentSelectors!==null&&n.set("ngContentSelectors",c.contentSelectors),n.set("decls",O(c.root.decls)),n.set("vars",O(c.root.vars)),c.consts.length>0&&(c.constsInitializers.length>0?n.set("consts",sl([],[...c.constsInitializers,new oi(ir(c.consts))])):n.set("consts",ir(c.consts))),n.set("template",l),t.declarationListEmitMode!==3&&t.declarations.length>0)n.set("dependencies",Iot(ir(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",Ee(T.getComponentDepsFactory).callFn(m))}t.encapsulation===null&&(t.encapsulation=wp.Emulated);let d=!!t.externalStyles?.length;if(t.styles&&t.styles.length){let g=(t.encapsulation==wp.Emulated?Dot(t.styles,bot,_ot):t.styles).reduce((y,_)=>(_.trim().length>0&&y.push(e.getConstLiteral(O(_))),y),[]);g.length>0&&(d=!0,n.set("styles",ir(g)))}!d&&t.encapsulation===wp.Emulated&&(t.encapsulation=wp.None),t.encapsulation!==wp.Emulated&&n.set("encapsulation",O(t.encapsulation)),t.animations!==null&&n.set("data",qo([{key:"animation",value:t.animations,quoted:!1}])),t.changeDetection!==null&&(typeof t.changeDetection=="number"&&t.changeDetection!==wD.Default?n.set("changeDetection",O(t.changeDetection)):typeof t.changeDetection=="object"&&n.set("changeDetection",t.changeDetection));let f=Ee(T.defineComponent).callFn([n.toLiteralMap()],void 0,!0),p=Tot(t);return{expression:f,type:p,statements:[]}}function Tot(t){let e=q0e(t);return e.push(RV(t.template.ngContentSelectors)),e.push(ai(O(t.isStandalone))),e.push(B0e(t)),t.isSignal&&e.push(ai(O(t.isSignal))),ai(Ee(T.ComponentDeclaration,e))}function Iot(t,e){switch(e){case 0:return t;case 1:return sl([],t);case 2:let r=t.prop("map").callFn([Ee(T.resolveForwardRef)]);return sl([],r);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function wot(t){return ai(O(t))}function MV(t){let e=Object.keys(t).map(r=>{let n=Array.isArray(t[r])?t[r][0]:t[r];return{key:r,value:O(n),quoted:!0}});return qo(e)}function RV(t){return t.length>0?ai(ir(t.map(e=>O(e)))):rl}function q0e(t){let e=t.selector!==null?t.selector.replace(/\n/g,""):null;return[LM(t.type.type,t.typeArgumentCount),e!==null?wot(e):rl,t.exportAs!==null?RV(t.exportAs):rl,ai(Aot(t)),ai(MV(t.outputs)),RV(t.queries.map(r=>r.propertyName))]}function Aot(t){return qo(Object.keys(t.inputs).map(e=>{let r=t.inputs[e],n=[{key:"alias",value:O(r.bindingPropertyName),quoted:!0},{key:"required",value:O(r.required),quoted:!0}];return r.isSignal&&n.push({key:"isSignal",value:O(r.isSignal),quoted:!0}),{key:e,value:qo(n),quoted:!0}}))}function xot(t){let e=q0e(t);return e.push(rl),e.push(ai(O(t.isStandalone))),e.push(B0e(t)),t.isSignal&&e.push(ai(O(t.isSignal))),ai(Ee(T.DirectiveDeclaration,e))}function Oot(t,e,r,n,i,s,o){let a=r.createBoundHostProperties(t.properties,e),u=r.createDirectiveHostEventAsts(t.listeners,e);t.specialAttributes.styleAttr&&(t.attributes.style=O(t.specialAttributes.styleAttr)),t.specialAttributes.classAttr&&(t.attributes.class=O(t.specialAttributes.classAttr));let c=Fit({componentName:s,componentSelector:i,properties:a,events:u,attributes:t.attributes},r,n);I0e(c,ue.Host),o.set("hostAttrs",c.root.attributes);let l=c.root.vars;return l!==null&&l>0&&o.set("hostVars",O(l)),Rit(c)}var Cot=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Pot(t){let e={},r={},n={},i={};for(let s of Object.keys(t)){let o=t[s],a=s.match(Cot);if(a===null)switch(s){case"class":if(typeof o!="string")throw new Error("Class binding must be string");i.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");i.styleAttr=o;break;default:typeof o=="string"?e[s]=O(o):e[s]=o}else if(a[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");n[a[1]]=o}else if(a[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");r[a[2]]=o}}return{attributes:e,listeners:r,properties:n,specialAttributes:i}}function Not(t,e){let r=NM();return r.createDirectiveHostEventAsts(t.listeners,e),r.createBoundHostProperties(t.properties,e),r.errors}function Dot(t,e,r){let n=new GU;return t.map(i=>n.shimCssText(i,e,r))}function B0e(t){return t.hostDirectives?.length?ai(ir(t.hostDirectives.map(e=>qo([{key:"directive",value:wI(e.directive.type),quoted:!1},{key:"inputs",value:MV(e.inputs||{}),quoted:!1},{key:"outputs",value:MV(e.outputs||{}),quoted:!1}])))):rl}function Mot(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 s=uge(n.inputs);s&&i.push({key:"inputs",value:s,quoted:!1})}if(n.outputs){let s=uge(n.outputs);s&&i.push({key:"outputs",value:s,quoted:!1})}e.push(qo(i))}n.isForwardReference&&(r=!0)}return r?new Op([],[new oi(ir(e))]):ir(e)}function uge(t){let e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(O(r),O(t[r]));return e.length>0?ir(e):null}var kV=class extends Y_{visit(e){e instanceof bs?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 WD?this.visit(e.value):e instanceof zT&&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)}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 LV=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,s=new Map,o=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=DM.apply(e.template);Rot(m,a),$V.apply(e.template,this.directiveMatcher,r,n,i,s,o),MM.applyWithScope(e.template,m,u,c,l,d,f,p)}return e.host&&(r.set(e.host.node,e.host.directives),MM.applyWithScope(e.host.node,DM.apply(e.host.node),u,c,l,d,f,p)),new FV(e,r,n,i,s,o,u,c,l,a,d,f,p)}},DM=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 t0}static newRootScope(){return new t(null,null)}static apply(e){let r=t.newRootScope();return r.ingest(e),r}ingest(e){e instanceof so?(e.variables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof Bg?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(r=>r.visit(this))):e instanceof J_?(this.visitVariable(e.item),e.contextVariables.forEach(r=>this.visitVariable(r)),e.children.forEach(r=>r.visit(this))):e instanceof XT||e instanceof JT||e instanceof t0||e instanceof ZT||e instanceof QT||e instanceof YT||e instanceof eb?e.children.forEach(r=>r.visit(this)):e instanceof tI||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)}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)}},$V=class t{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(e,r,n,i,s,o){this.directiveMatcher=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=s,this.references=o}static apply(e,r,n,i,s,o,a){new t(r,n,i,s,o,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))}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 ID){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 ID){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 TD){let r=[],n=DZe(e);this.directiveMatcher.match(n,(i,s)=>r.push(...s)),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,s,o)=>{i[o].hasBindingPropertyName(s.name)&&this.bindings.set(s,i)};for(let i of r)e.inputs.forEach(s=>n(i,s,"inputs")),e.attributes.forEach(s=>n(i,s,"inputs")),e.outputs.forEach(s=>n(i,s,"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 s=null;if(i.value.trim()==="")s=r.find(o=>o.isComponent)||null;else if(s=r.find(o=>o.exportAs!==null&&o.exportAs.some(a=>a===i.value))||null,s===null)return;s!==null?this.references.set(i,{directive:s,node:e}):this.references.set(i,e)});let n=(i,s)=>{let o=r.find(u=>u[s].hasBindingPropertyName(i.name)),a=o!==void 0?o:e;this.bindings.set(i,a)};e.inputs.forEach(i=>n(i,"inputs")),e.attributes.forEach(i=>n(i,"inputs")),e instanceof so&&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){}},MM=class t extends kV{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=e=>e.visit(this);constructor(e,r,n,i,s,o,a,u,c){super(),this.bindings=e,this.symbols=r,this.usedPipes=n,this.eagerPipes=i,this.deferBlocks=s,this.nestingLevel=o,this.scope=a,this.rootNode=u,this.level=c}static applyWithScope(e,r,n,i,s,o,a,u){let c=e instanceof so?e:null;new t(n,i,o,a,u,s,r,c,0).ingest(e)}ingest(e){if(e instanceof so)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Bg)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof J_)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 t0){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 XT||e instanceof JT||e instanceof ZT||e instanceof QT||e instanceof YT||e instanceof eb?(e.children.forEach(r=>r.visit(this)),this.nestingLevel.set(e,this.level)):e instanceof tI?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)}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 ol))return;let n=this.scope.lookup(r);n!==null&&this.bindings.set(e,n)}},FV=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(e,r,n,i,s,o,a,u,c,l,d,f,p){this.target=e,this.directives=r,this.eagerDirectives=n,this.missingDirectives=i,this.bindings=s,this.references=o,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 zD)&&!(r instanceof zT)&&!(r instanceof KD))return null;let n=r.reference;if(n===null){let s=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof $M)){if(s!==null)return null;o instanceof al&&(s=o)}}return s}let i=this.findEntityInScope(e,n);if(i instanceof eI&&this.getDefinitionNodeOfSymbol(i)!==e){let s=this.getReferenceTarget(i);if(s!==null)return this.referenceTargetToElement(s)}if(e.placeholder!==null){let s=this.findEntityInScope(e.placeholder,n),o=s instanceof eI?this.getReferenceTarget(s):null;if(o!==null)return this.referenceTargetToElement(o)}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 al?e:e instanceof so||e.node instanceof TT||e.node instanceof Tge||e.node instanceof tI?null:this.referenceTargetToElement(e.node)}};function Rot(t,e){let r=new Map;function n(s){if(r.has(s.rootNode))return r.get(s.rootNode);let o=s.namedEntities,a;return s.parentScope!==null?a=new Map([...n(s.parentScope),...o]):a=new Map(o),r.set(s.rootNode,a),a}let i=[t];for(;i.length>0;){let s=i.pop();for(let o of s.childScopes.values())i.push(o);n(s)}for(let[s,o]of r)e.set(s,new Set(o.values()))}var jV=class{},qV=class{jitEvaluator;FactoryTarget=Qc;ResourceLoader=jV;elementSchemaRegistry=new ab;constructor(e=new UU){this.jitEvaluator=e}compilePipe(e,r,n){let i={name:n.name,type:On(n.type),typeArgumentCount:0,deps:null,pipeName:n.pipeName,pure:n.pure,isStandalone:n.isStandalone},s=Zhe(i);return this.jitExpression(s.expression,e,r,[])}compilePipeDeclaration(e,r,n){let i=Zot(n),s=Zhe(i);return this.jitExpression(s.expression,e,r,[])}compileInjectable(e,r,n){let{expression:i,statements:s}=Bhe({name:n.name,type:On(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:hge(n.providedIn),useClass:P_(n,"useClass"),useFactory:pge(n,"useFactory"),useValue:P_(n,"useValue"),useExisting:P_(n,"useExisting"),deps:n.deps?.map(G0e)},!0);return this.jitExpression(i,e,r,s)}compileInjectableDeclaration(e,r,n){let{expression:i,statements:s}=Bhe({name:n.type.name,type:On(n.type),typeArgumentCount:0,providedIn:hge(n.providedIn),useClass:P_(n,"useClass"),useFactory:pge(n,"useFactory"),useValue:P_(n,"useValue"),useExisting:P_(n,"useExisting"),deps:n.deps?.map(mge)},!0);return this.jitExpression(i,e,r,s)}compileInjector(e,r,n){let i={name:n.name,type:On(n.type),providers:n.providers&&n.providers.length>0?new mt(n.providers):null,imports:n.imports.map(o=>new mt(o))},s=Yhe(i);return this.jitExpression(s.expression,e,r,[])}compileInjectorDeclaration(e,r,n){let i=Xot(n),s=Yhe(i);return this.jitExpression(s.expression,e,r,[])}compileNgModule(e,r,n){let i={kind:bd.Global,type:On(n.type),bootstrap:n.bootstrap.map(On),declarations:n.declarations.map(On),publicDeclarationTypes:null,imports:n.imports.map(On),includeImportTypes:!0,exports:n.exports.map(On),selectorScopeMode:uI.Inline,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(On):null,id:n.id?new mt(n.id):null},s=XZe(i);return this.jitExpression(s.expression,e,r,[])}compileNgModuleDeclaration(e,r,n){let i=JZe(n);return this.jitExpression(i,e,r,[])}compileDirective(e,r,n){let i=dge(n);return this.compileDirectiveFromMeta(e,r,i)}compileDirectiveDeclaration(e,r,n){let i=this.createParseSourceSpan("Directive",n.type.name,r),s=V0e(n,i);return this.compileDirectiveFromMeta(e,r,s)}compileDirectiveFromMeta(e,r,n){let i=new LD,s=NM(),o=Eot(n,i,s);return this.jitExpression(o.expression,e,r,i.statements)}compileComponent(e,r,n){let{template:i,defer:s}=H0e(n.template,n.name,r,n.preserveWhitespaces,void 0),o={...n,...dge(n),selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:n.declarations.map(Fot),declarationListEmitMode:0,defer:s,styles:[...n.styles,...i.styles],encapsulation:n.encapsulation,changeDetection:n.changeDetection??null,animations:n.animations!=null?new mt(n.animations):null,viewProviders:n.viewProviders!=null?new mt(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null},a=`ng:///${n.name}.js`;return this.compileComponentFromMeta(e,a,o)}compileComponentDeclaration(e,r,n){let i=this.createParseSourceSpan("Component",n.type.name,r),s=$ot(n,i,r);return this.compileComponentFromMeta(e,r,s)}compileComponentFromMeta(e,r,n){let i=new LD,s=NM(),o=Sot(n,i,s);return this.jitExpression(o.expression,e,r,i.statements)}compileFactory(e,r,n){let i=Rg({name:n.name,type:On(n.type),typeArgumentCount:n.typeArgumentCount,deps:Bot(n.deps),target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}compileFactoryDeclaration(e,r,n){let i=Rg({name:n.type.name,type:On(n.type),typeArgumentCount:0,deps:Array.isArray(n.deps)?n.deps.map(mge):n.deps,target:n.target});return this.jitExpression(i.expression,e,r,i.statements)}createParseSourceSpan(e,r,n){return GZe(e,r,n)}jitExpression(e,r,n,i){let s=[...i,new Pn("$def",e,void 0,Vn.Exported)];return this.jitEvaluator.evaluateStatements(n,s,new HU(r),!0).$def}};function cge(t){return{...t,isSignal:t.isSignal,predicate:U0e(t.predicate),read:t.read?new mt(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly}}function lge(t){return{propertyName:t.propertyName,first:t.first??!1,predicate:U0e(t.predicate),descendants:t.descendants??!1,read:t.read?new mt(t.read):null,static:t.static??!1,emitDistinctChangesOnly:t.emitDistinctChangesOnly??!0,isSignal:!!t.isSignal}}function U0e(t){return Array.isArray(t)?t:GV(new mt(t),1)}function dge(t){let e=Yot(t.inputs||[]),r=hU(t.outputs||[]),n=t.propMetadata,i={},s={};for(let a in n)n.hasOwnProperty(a)&&n[a].forEach(u=>{Wot(u)?i[a]={bindingPropertyName:u.alias||a,classPropertyName:a,required:u.required||!1,isSignal:!!u.isSignal,transformFunction:u.transform!=null?new mt(u.transform):null}:Kot(u)&&(s[a]=u.alias||a)});let o=t.hostDirectives?.length?t.hostDirectives.map(a=>typeof a=="function"?{directive:On(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:On(a.directive),isForwardReference:!1,inputs:a.inputs?hU(a.inputs):null,outputs:a.outputs?hU(a.outputs):null}):null;return{...t,typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:On(t.type),deps:null,host:{...Vot(t.propMetadata,t.typeSourceSpan,t.host)},inputs:{...e,...i},outputs:{...r,...s},queries:t.queries.map(cge),providers:t.providers!=null?new mt(t.providers):null,viewQueries:t.viewQueries.map(cge),hostDirectives:o}}function V0e(t,e){let r=t.hostDirectives?.length?t.hostDirectives.map(n=>({directive:On(n.directive),isForwardReference:!1,inputs:n.inputs?fge(n.inputs):null,outputs:n.outputs?fge(n.outputs):null})):null;return{name:t.type.name,type:On(t.type),typeSourceSpan:e,selector:t.selector??null,inputs:t.inputs?zot(t.inputs):{},outputs:t.outputs??{},host:kot(t.host),queries:(t.queries??[]).map(lge),viewQueries:(t.viewQueries??[]).map(lge),providers:t.providers!==void 0?new mt(t.providers):null,exportAs:t.exportAs??null,usesInheritance:t.usesInheritance??!1,lifecycle:{usesOnChanges:t.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:t.isStandalone??Sge(t.version),isSignal:t.isSignal??!1,hostDirectives:r}}function kot(t={}){return{attributes:Lot(t.attributes??{}),listeners:t.listeners??{},properties:t.properties??{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function fge(t){let e=null;for(let r=1;r<t.length;r+=2)e=e||{},e[t[r-1]]=t[r];return e}function Lot(t){let e={};for(let r of Object.keys(t))e[r]=new mt(t[r]);return e}function $ot(t,e,r){let{template:n,defer:i}=H0e(t.template,t.type.name,r,t.preserveWhitespaces??!1,t.deferBlockDependencies),s=[];if(t.dependencies)for(let a of t.dependencies)switch(a.kind){case"directive":case"component":s.push(pU(a));break;case"pipe":s.push(qot(a));break}else(t.components||t.directives||t.pipes)&&(t.components&&s.push(...t.components.map(a=>pU(a,!0))),t.directives&&s.push(...t.directives.map(a=>pU(a))),t.pipes&&s.push(...jot(t.pipes)));let o=s.some(({kind:a})=>a===n0.Directive||a===n0.NgModule);return{...V0e(t,e),template:n,styles:t.styles??[],declarations:s,viewProviders:t.viewProviders!==void 0?new mt(t.viewProviders):null,animations:t.animations!==void 0?new mt(t.animations):null,defer:i,changeDetection:t.changeDetection??wD.Default,encapsulation:t.encapsulation??wp.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:o}}function Fot(t){return{...t,type:new mt(t.type)}}function pU(t,e=null){return{kind:n0.Directive,isComponent:e||t.kind==="component",selector:t.selector,type:new mt(t.type),inputs:t.inputs??[],outputs:t.outputs??[],exportAs:t.exportAs??null}}function jot(t){return t?Object.keys(t).map(e=>({kind:n0.Pipe,name:e,type:new mt(t[e])})):[]}function qot(t){return{kind:n0.Pipe,name:t.name,type:new mt(t.type)}}function H0e(t,e,r,n,i){let s=yot(t,r,{preserveWhitespaces:n});if(s.errors!==null){let u=s.errors.map(c=>c.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let a=new LV(null).bind({template:s.nodes});return{template:s,defer:Uot(a,i)}}function P_(t,e){if(t.hasOwnProperty(e))return GV(new mt(t[e]),0)}function pge(t,e){if(t.hasOwnProperty(e))return new mt(t[e])}function hge(t){let e=typeof t=="function"?new mt(t):new ui(t??null);return GV(e,0)}function Bot(t){return t==null?null:t.map(G0e)}function G0e(t){let e=t.attribute!=null,r=t.token===null?null:new mt(t.token),n=e?new mt(t.attribute):r;return W0e(n,e,t.host,t.optional,t.self,t.skipSelf)}function mge(t){let e=t.attribute??!1,r=t.token===null?null:new mt(t.token);return W0e(r,e,t.host??!1,t.optional??!1,t.self??!1,t.skipSelf??!1)}function W0e(t,e,r,n,i,s){let o=e?O("unknown"):null;return{token:t,attributeNameType:o,host:r,optional:n,self:i,skipSelf:s}}function Uot(t,e){let r=t.getDeferBlocks(),n=new Map;for(let i=0;i<r.length;i++){let s=e?.[i];n.set(r[i],s?new mt(s):null)}return{mode:0,blocks:n}}function Vot(t,e,r){let n=Pot(r||{}),i=Not(n,e);if(i.length)throw new Error(i.map(s=>s.msg).join(`
|
|
265
|
-
`));for(let s in t)t.hasOwnProperty(s)&&t[s].forEach(o=>{Hot(o)?n.properties[o.hostPropertyName||s]=hZe("this",s):Got(o)&&(n.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return n}function Hot(t){return t.ngMetadataName==="HostBinding"}function Got(t){return t.ngMetadataName==="HostListener"}function Wot(t){return t.ngMetadataName==="Input"}function Kot(t){return t.ngMetadataName==="Output"}function zot(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=Qot(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new mt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function Qot(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 mt(t[2]):null,required:!1,isSignal:!1}}function Yot(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=K0e(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 mt(r.transform):null};return e},{})}function hU(t){return t.reduce((e,r)=>{let[n,i]=K0e(r);return e[i]=n,e},{})}function K0e(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function Zot(t){return{name:t.type.name,type:On(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??Sge(t.version)}}function Xot(t){return{name:t.type.name,type:On(t.type),providers:t.providers!==void 0&&t.providers.length>0?new mt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new mt(e)):[]}}function Jot(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new qV}var gge;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(gge||(gge={}));var BV=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Aa.PARSABLE_DATA}},RIr=new BV;var kIr=new EU("21.1.6");Jot(ET);import*as mhe from"fs";var he={};_he(he,{ANIMATION_MODULE_TYPE:()=>TSe,APP_BOOTSTRAP_LISTENER:()=>_y,APP_ID:()=>Wa,APP_INITIALIZER:()=>sL,ApplicationInitStatus:()=>ay,ApplicationModule:()=>E6,ApplicationRef:()=>Rn,Attribute:()=>ZQ,COMPILER_OPTIONS:()=>ZJ,CSP_NONCE:()=>ISe,CUSTOM_ELEMENTS_SCHEMA:()=>xY,ChangeDetectionStrategy:()=>Lh,ChangeDetectorRef:()=>m6,Compiler:()=>cA,CompilerFactory:()=>X8,Component:()=>lAe,ComponentFactory:()=>PA,ComponentFactoryResolver:()=>AE,ComponentRef:()=>mZ,ContentChild:()=>GMt,ContentChildren:()=>HMt,DEFAULT_CURRENCY_CODE:()=>gAe,DOCUMENT:()=>rs,DebugElement:()=>Vh,DebugEventListener:()=>e4,DebugNode:()=>aE,DefaultIterableDiffer:()=>v6,DestroyRef:()=>pi,Directive:()=>YJ,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>kh,EmbeddedViewRef:()=>vee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>La,EventEmitter:()=>bl,HOST_TAG_NAME:()=>FMt,Host:()=>GQ,HostAttributeToken:()=>gee,HostBinding:()=>hAe,HostListener:()=>mAe,INJECTOR:()=>Ck,Inject:()=>kl,Injectable:()=>ce,InjectionToken:()=>F,Injector:()=>Jr,Input:()=>fAe,IterableDiffers:()=>ZA,KeyValueDiffers:()=>XA,LOCALE_ID:()=>r6,MAX_ANIMATION_TIMEOUT:()=>wX,MissingTranslationStrategy:()=>J8,ModuleWithComponentFactories:()=>uA,NO_ERRORS_SCHEMA:()=>OY,NgModule:()=>Ey,NgModuleFactory:()=>DZ,NgModuleRef:()=>Bh,NgZone:()=>Ct,Optional:()=>fy,Output:()=>pAe,OutputEmitterRef:()=>ME,PLATFORM_ID:()=>SSe,PLATFORM_INITIALIZER:()=>o4,PendingTasks:()=>$a,Pipe:()=>dAe,PlatformRef:()=>LE,Query:()=>Iy,QueryList:()=>jw,REQUEST:()=>u9t,REQUEST_CONTEXT:()=>l9t,RESPONSE_INIT:()=>c9t,Renderer2:()=>$8,RendererFactory2:()=>tE,RendererStyleFlags2:()=>J1,Sanitizer:()=>Zw,SecurityContext:()=>Kd,Self:()=>VQ,SimpleChange:()=>kw,SkipSelf:()=>HQ,TRANSLATIONS:()=>yAe,TRANSLATIONS_FORMAT:()=>vAe,TemplateRef:()=>jh,Testability:()=>iA,TestabilityRegistry:()=>oy,TransferState:()=>Qo,Type:()=>WQ,VERSION:()=>hk,Version:()=>QI,ViewChild:()=>KMt,ViewChildren:()=>WMt,ViewContainerRef:()=>J0,ViewEncapsulation:()=>Ls,ViewRef:()=>g6,afterEveryRender:()=>Kw,afterNextRender:()=>IA,afterRenderEffect:()=>wee,asNativeElements:()=>_Ae,assertInInjectionContext:()=>fn,assertNotInReactiveContext:()=>N1,assertPlatform:()=>Axe,booleanAttribute:()=>V3t,computed:()=>Xo,contentChild:()=>pxe,contentChildren:()=>hxe,createComponent:()=>s9t,createEnvironmentInjector:()=>xE,createNgModule:()=>MZ,createNgModuleRef:()=>pIe,createPlatform:()=>Txe,createPlatformFactory:()=>Ixe,destroyPlatform:()=>e3t,effect:()=>c1,enableProdMode:()=>s3t,enableProfiling:()=>HZ,forwardRef:()=>l1,getDebugNode:()=>dy,getModuleFactory:()=>S3t,getNgModuleById:()=>T3t,getPlatform:()=>JA,importProvidersFrom:()=>TK,inject:()=>C,input:()=>Aee,inputBinding:()=>bZ,isDevMode:()=>i3t,isSignal:()=>tL,isStandalone:()=>Al,isWritableSignal:()=>rL,linkedSignal:()=>Qh,makeEnvironmentProviders:()=>hi,makeStateKey:()=>oY,mergeApplicationConfig:()=>a9t,model:()=>Oee,numberAttribute:()=>H3t,output:()=>dxe,outputBinding:()=>EZ,platformCore:()=>N3t,provideAppInitializer:()=>YZ,provideBrowserGlobalErrorListeners:()=>Ybe,provideCheckNoChangesConfig:()=>n3t,provideEnvironmentInitializer:()=>Nk,provideNgReflectAttributes:()=>I2e,providePlatformInitializer:()=>t3t,provideStabilityDebugging:()=>E3t,provideZoneChangeDetection:()=>zMt,provideZonelessChangeDetection:()=>t6,reflectComponentType:()=>o9t,resolveForwardRef:()=>Qe,resource:()=>nee,runInInjectionContext:()=>qd,setTestabilityGetter:()=>KZ,signal:()=>ns,twoWayBinding:()=>WTe,untracked:()=>Pi,viewChild:()=>xee,viewChildren:()=>fxe,\u0275ANIMATIONS_DISABLED:()=>IX,\u0275AcxChangeDetectionStrategy:()=>A8,\u0275AcxViewEncapsulation:()=>x8,\u0275AfterRenderManager:()=>Q0,\u0275CLIENT_RENDER_MODE_FLAG:()=>Nxe,\u0275CONTAINER_HEADER_OFFSET:()=>Gt,\u0275CONTROL:()=>K4,\u0275ChangeDetectionScheduler:()=>fo,\u0275ComponentFactory:()=>PA,\u0275Console:()=>Zo,\u0275DEFAULT_LOCALE_ID:()=>DE,\u0275DEFER_BLOCK_CONFIG:()=>qZ,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>jZ,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Ka,\u0275DeferBlockBehavior:()=>rA,\u0275DeferBlockState:()=>er,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>bxe,\u0275EVENT_REPLAY_QUEUE:()=>hY,\u0275EffectScheduler:()=>C0,\u0275Framework:()=>mee,\u0275HydrationStatus:()=>$h,\u0275IMAGE_CONFIG:()=>sY,\u0275IMAGE_CONFIG_DEFAULTS:()=>iY,\u0275INJECTOR_SCOPE:()=>S1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>$Mt,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Pl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>OSe,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Gh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>f4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>hE,\u0275JSACTION_EVENT_CONTRACT:()=>p4,\u0275LContext:()=>Bw,\u0275LocaleDataIndex:()=>Uh,\u0275NG_COMP_DEF:()=>Eh,\u0275NG_DIR_DEF:()=>y1,\u0275NG_ELEMENT_ID:()=>Sh,\u0275NG_INJ_DEF:()=>o1,\u0275NG_MOD_DEF:()=>iw,\u0275NG_PIPE_DEF:()=>v1,\u0275NG_PROV_DEF:()=>D0,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>xw,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>ry,\u0275NoopNgZone:()=>a1,\u0275PERFORMANCE_MARK_PREFIX:()=>jxe,\u0275PROVIDED_NG_ZONE:()=>Cee,\u0275PROVIDED_ZONELESS:()=>yw,\u0275PendingTasksInternal:()=>Wo,\u0275ProfilerEvent:()=>pe,\u0275R3Injector:()=>Go,\u0275ReflectionCapabilities:()=>Rw,\u0275Render3ComponentFactory:()=>Qd,\u0275Render3ComponentRef:()=>Jw,\u0275Render3NgModuleRef:()=>ty,\u0275ResourceImpl:()=>Sy,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>sr,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>_Y,\u0275TESTABILITY:()=>WZ,\u0275TESTABILITY_GETTER:()=>nL,\u0275TimerScheduler:()=>nA,\u0275TracingAction:()=>eE,\u0275TracingService:()=>Xd,\u0275ViewRef:()=>zd,\u0275XSS_SECURITY_URL:()=>Fa,\u0275ZONELESS_ENABLED:()=>q0,\u0275_sanitizeHtml:()=>RY,\u0275_sanitizeUrl:()=>vA,\u0275allLeavingAnimations:()=>Fh,\u0275allowSanitizationBypassAndThrow:()=>gy,\u0275annotateForHydration:()=>k3t,\u0275assertType:()=>Y3t,\u0275bypassSanitizationTrustHtml:()=>a2e,\u0275bypassSanitizationTrustResourceUrl:()=>d2e,\u0275bypassSanitizationTrustScript:()=>c2e,\u0275bypassSanitizationTrustStyle:()=>u2e,\u0275bypassSanitizationTrustUrl:()=>l2e,\u0275clearResolutionOfComponentResourcesQueue:()=>uIe,\u0275compileComponent:()=>zJ,\u0275compileDirective:()=>e6,\u0275compileNgModule:()=>GJ,\u0275compileNgModuleDefs:()=>WJ,\u0275compileNgModuleFactory:()=>yxe,\u0275compilePipe:()=>QJ,\u0275controlUpdate:()=>YIe,\u0275convertToBitFlags:()=>hh,\u0275createInjector:()=>vk,\u0275createOrReusePlatformInjector:()=>xxe,\u0275defaultIterableDiffers:()=>C3t,\u0275defaultKeyValueDiffers:()=>P3t,\u0275depsTracker:()=>qh,\u0275devModeEqual:()=>G4,\u0275disableProfiling:()=>z3t,\u0275enableProfiling:()=>K3t,\u0275encapsulateResourceError:()=>RE,\u0275findLocaleData:()=>IL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>HJ,\u0275formatRuntimeError:()=>Tr,\u0275generateStandaloneInDeclarationsError:()=>KJ,\u0275getAsyncClassMetadataFn:()=>DIe,\u0275getClosestComponentName:()=>Q3t,\u0275getComponentDef:()=>ut,\u0275getDebugNode:()=>dy,\u0275getDeferBlocks:()=>G1,\u0275getDirectives:()=>eY,\u0275getDocument:()=>hy,\u0275getHostElement:()=>tY,\u0275getInjectableDef:()=>p1,\u0275getLContext:()=>Ni,\u0275getLocaleCurrencyCode:()=>owe,\u0275getLocalePluralCase:()=>UX,\u0275getOutputDestroyRef:()=>SAe,\u0275getSanitizationBypassType:()=>MY,\u0275getTransferState:()=>GZ,\u0275getUnknownElementStrictMode:()=>t2e,\u0275getUnknownPropertyStrictMode:()=>n2e,\u0275global:()=>Nn,\u0275inferTagNameFromDefinition:()=>SZ,\u0275injectChangeDetectorRef:()=>Mxe,\u0275internalCreateApplication:()=>D3t,\u0275internalProvideZoneChangeDetection:()=>vxe,\u0275isBoundToModule:()=>JZ,\u0275isComponentDefPendingResolution:()=>oIe,\u0275isEnvironmentProviders:()=>g1,\u0275isInjectable:()=>hbe,\u0275isNgModule:()=>Dh,\u0275isPromise:()=>iL,\u0275isSubscribable:()=>QZ,\u0275isViewDirty:()=>lTe,\u0275markForRefresh:()=>dTe,\u0275noSideEffects:()=>Ga,\u0275patchComponentDefWithScope:()=>XL,\u0275performanceMarkFeature:()=>Gr,\u0275promiseWithResolvers:()=>kA,\u0275provideZonelessChangeDetectionInternal:()=>zA,\u0275publishExternalGlobalUtil:()=>jIe,\u0275readHydrationInfo:()=>SY,\u0275registerLocaleData:()=>swe,\u0275renderDeferBlockState:()=>Ml,\u0275resetCompiledComponents:()=>eAe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>VSe,\u0275resetJitOptions:()=>Xwe,\u0275resolveComponentResources:()=>PZ,\u0275restoreComponentResolutionQueue:()=>cIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>fIe,\u0275setAlternateWeakRefImpl:()=>ibe,\u0275setClassDebugInfo:()=>BJ,\u0275setClassMetadata:()=>Mi,\u0275setClassMetadataAsync:()=>UZ,\u0275setCurrentInjector:()=>Ho,\u0275setDocument:()=>ESe,\u0275setInjectorProfilerContext:()=>dn,\u0275setLocaleId:()=>VX,\u0275setUnknownElementStrictMode:()=>e2e,\u0275setUnknownPropertyStrictMode:()=>r2e,\u0275startMeasuring:()=>G3t,\u0275stopMeasuring:()=>W3t,\u0275store:()=>A1,\u0275stringify:()=>Ht,\u0275transitiveScopesFor:()=>JL,\u0275triggerResourceLoading:()=>$A,\u0275truncateMiddle:()=>lK,\u0275unregisterLocaleData:()=>awe,\u0275unwrapSafeValue:()=>Ll,\u0275unwrapWritableSignal:()=>Zbe,\u0275withDomHydration:()=>y3t,\u0275withEventReplay:()=>Cxe,\u0275withI18nSupport:()=>v3t,\u0275withIncrementalHydration:()=>_3t,\u0275\u0275ExternalStylesFeature:()=>bJ,\u0275\u0275FactoryTarget:()=>qt,\u0275\u0275HostDirectivesFeature:()=>$Z,\u0275\u0275InheritDefinitionFeature:()=>Y4,\u0275\u0275NgOnChangesFeature:()=>KQ,\u0275\u0275ProvidersFeature:()=>_J,\u0275\u0275advance:()=>YY,\u0275\u0275animateEnter:()=>K1,\u0275\u0275animateEnterListener:()=>z1,\u0275\u0275animateLeave:()=>Q1,\u0275\u0275animateLeaveListener:()=>sA,\u0275\u0275ariaProperty:()=>oL,\u0275\u0275attachSourceLocations:()=>uJ,\u0275\u0275attribute:()=>aL,\u0275\u0275classMap:()=>nJ,\u0275\u0275classProp:()=>jL,\u0275\u0275componentInstance:()=>xX,\u0275\u0275conditional:()=>kX,\u0275\u0275conditionalBranchCreate:()=>FA,\u0275\u0275conditionalCreate:()=>RX,\u0275\u0275contentQuery:()=>RL,\u0275\u0275contentQuerySignal:()=>LL,\u0275\u0275control:()=>CX,\u0275\u0275controlCreate:()=>OX,\u0275\u0275declareLet:()=>ZL,\u0275\u0275defer:()=>tX,\u0275\u0275deferEnableTimerScheduling:()=>BZ,\u0275\u0275deferHydrateNever:()=>sX,\u0275\u0275deferHydrateOnHover:()=>yX,\u0275\u0275deferHydrateOnIdle:()=>uX,\u0275\u0275deferHydrateOnImmediate:()=>dX,\u0275\u0275deferHydrateOnInteraction:()=>bX,\u0275\u0275deferHydrateOnTimer:()=>hX,\u0275\u0275deferHydrateOnViewport:()=>TX,\u0275\u0275deferHydrateWhen:()=>iX,\u0275\u0275deferOnHover:()=>mX,\u0275\u0275deferOnIdle:()=>oX,\u0275\u0275deferOnImmediate:()=>cX,\u0275\u0275deferOnInteraction:()=>vX,\u0275\u0275deferOnTimer:()=>fX,\u0275\u0275deferOnViewport:()=>EX,\u0275\u0275deferPrefetchOnHover:()=>gX,\u0275\u0275deferPrefetchOnIdle:()=>aX,\u0275\u0275deferPrefetchOnImmediate:()=>lX,\u0275\u0275deferPrefetchOnInteraction:()=>_X,\u0275\u0275deferPrefetchOnTimer:()=>pX,\u0275\u0275deferPrefetchOnViewport:()=>SX,\u0275\u0275deferPrefetchWhen:()=>nX,\u0275\u0275deferWhen:()=>rX,\u0275\u0275defineComponent:()=>RZ,\u0275\u0275defineDirective:()=>kZ,\u0275\u0275defineInjectable:()=>Xt,\u0275\u0275defineInjector:()=>f1,\u0275\u0275defineNgModule:()=>Q4,\u0275\u0275definePipe:()=>LZ,\u0275\u0275directiveInject:()=>Kh,\u0275\u0275disableBindings:()=>Vk,\u0275\u0275domElement:()=>vL,\u0275\u0275domElementContainer:()=>EL,\u0275\u0275domElementContainerEnd:()=>bL,\u0275\u0275domElementContainerStart:()=>HA,\u0275\u0275domElementEnd:()=>UA,\u0275\u0275domElementStart:()=>BA,\u0275\u0275domListener:()=>ML,\u0275\u0275domProperty:()=>SL,\u0275\u0275domTemplate:()=>X4,\u0275\u0275element:()=>yL,\u0275\u0275elementContainer:()=>_L,\u0275\u0275elementContainerEnd:()=>NE,\u0275\u0275elementContainerStart:()=>VA,\u0275\u0275elementEnd:()=>qA,\u0275\u0275elementStart:()=>jA,\u0275\u0275enableBindings:()=>Uk,\u0275\u0275getComponentDepsFactory:()=>qJ,\u0275\u0275getCurrentView:()=>BX,\u0275\u0275getInheritedFactory:()=>YQ,\u0275\u0275getReplaceMetadataURL:()=>UJ,\u0275\u0275i18n:()=>HX,\u0275\u0275i18nApply:()=>WX,\u0275\u0275i18nAttributes:()=>GX,\u0275\u0275i18nEnd:()=>CL,\u0275\u0275i18nExp:()=>PL,\u0275\u0275i18nPostprocess:()=>KX,\u0275\u0275i18nStart:()=>OL,\u0275\u0275inject:()=>Gn,\u0275\u0275injectAttribute:()=>fA,\u0275\u0275interpolate:()=>cJ,\u0275\u0275interpolate1:()=>lJ,\u0275\u0275interpolate2:()=>dJ,\u0275\u0275interpolate3:()=>fJ,\u0275\u0275interpolate4:()=>pJ,\u0275\u0275interpolate5:()=>hJ,\u0275\u0275interpolate6:()=>mJ,\u0275\u0275interpolate7:()=>gJ,\u0275\u0275interpolate8:()=>yJ,\u0275\u0275interpolateV:()=>vJ,\u0275\u0275invalidFactory:()=>yZ,\u0275\u0275invalidFactoryDep:()=>ow,\u0275\u0275listener:()=>NL,\u0275\u0275loadQuery:()=>JX,\u0275\u0275namespaceHTML:()=>e8,\u0275\u0275namespaceMathML:()=>Jk,\u0275\u0275namespaceSVG:()=>Xk,\u0275\u0275nextContext:()=>QX,\u0275\u0275ngDeclareClassMetadata:()=>wr,\u0275\u0275ngDeclareClassMetadataAsync:()=>X3t,\u0275\u0275ngDeclareComponent:()=>J3t,\u0275\u0275ngDeclareDirective:()=>Z3t,\u0275\u0275ngDeclareFactory:()=>Ar,\u0275\u0275ngDeclareInjectable:()=>Wr,\u0275\u0275ngDeclareInjector:()=>ex,\u0275\u0275ngDeclareNgModule:()=>tx,\u0275\u0275ngDeclarePipe:()=>t9t,\u0275\u0275pipe:()=>MJ,\u0275\u0275pipeBind1:()=>RJ,\u0275\u0275pipeBind2:()=>kJ,\u0275\u0275pipeBind3:()=>LJ,\u0275\u0275pipeBind4:()=>$J,\u0275\u0275pipeBindV:()=>FJ,\u0275\u0275projection:()=>ZX,\u0275\u0275projectionDef:()=>YX,\u0275\u0275property:()=>gL,\u0275\u0275pureFunction0:()=>TJ,\u0275\u0275pureFunction1:()=>IJ,\u0275\u0275pureFunction2:()=>wJ,\u0275\u0275pureFunction3:()=>AJ,\u0275\u0275pureFunction4:()=>xJ,\u0275\u0275pureFunction5:()=>OJ,\u0275\u0275pureFunction6:()=>CJ,\u0275\u0275pureFunction7:()=>PJ,\u0275\u0275pureFunction8:()=>NJ,\u0275\u0275pureFunctionV:()=>DJ,\u0275\u0275queryAdvance:()=>eJ,\u0275\u0275queryRefresh:()=>XX,\u0275\u0275readContextLet:()=>aJ,\u0275\u0275reference:()=>tJ,\u0275\u0275registerNgModuleType:()=>z4,\u0275\u0275repeater:()=>FX,\u0275\u0275repeaterCreate:()=>$X,\u0275\u0275repeaterTrackByIdentity:()=>mL,\u0275\u0275repeaterTrackByIndex:()=>LX,\u0275\u0275replaceMetadata:()=>VJ,\u0275\u0275resetView:()=>Gk,\u0275\u0275resolveBody:()=>I4,\u0275\u0275resolveDocument:()=>GY,\u0275\u0275resolveWindow:()=>HY,\u0275\u0275restoreView:()=>Hk,\u0275\u0275sanitizeHtml:()=>$Y,\u0275\u0275sanitizeResourceUrl:()=>T4,\u0275\u0275sanitizeScript:()=>jY,\u0275\u0275sanitizeStyle:()=>FY,\u0275\u0275sanitizeUrl:()=>S4,\u0275\u0275sanitizeUrlOrResourceUrl:()=>UY,\u0275\u0275setComponentScope:()=>EJ,\u0275\u0275setNgModuleScope:()=>SJ,\u0275\u0275storeLet:()=>oJ,\u0275\u0275styleMap:()=>rJ,\u0275\u0275styleProp:()=>FL,\u0275\u0275syntheticHostListener:()=>DL,\u0275\u0275syntheticHostProperty:()=>TL,\u0275\u0275template:()=>Z4,\u0275\u0275templateRefExtractor:()=>jJ,\u0275\u0275text:()=>iJ,\u0275\u0275textInterpolate:()=>qL,\u0275\u0275textInterpolate1:()=>GA,\u0275\u0275textInterpolate2:()=>BL,\u0275\u0275textInterpolate3:()=>UL,\u0275\u0275textInterpolate4:()=>VL,\u0275\u0275textInterpolate5:()=>HL,\u0275\u0275textInterpolate6:()=>GL,\u0275\u0275textInterpolate7:()=>WL,\u0275\u0275textInterpolate8:()=>KL,\u0275\u0275textInterpolateV:()=>zL,\u0275\u0275trustConstantHtml:()=>qY,\u0275\u0275trustConstantResourceUrl:()=>BY,\u0275\u0275twoWayBindingSet:()=>sJ,\u0275\u0275twoWayListener:()=>YL,\u0275\u0275twoWayProperty:()=>QL,\u0275\u0275validateAttribute:()=>VY,\u0275\u0275viewQuery:()=>kL,\u0275\u0275viewQuerySignal:()=>$L});var Ai=null,CI=!1,fH=1,eat=null,sr=Symbol("SIGNAL");function Ce(t){let e=Ai;return Ai=t,e}function f0(){return Ai}function pH(){return CI}var xd={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 Od(t){if(CI)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ai===null)return;Ai.consumerOnSignalRead(t);let e=Ai.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Ai.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Ai.producers,r!==void 0&&r.producer===t)){Ai.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ai&&(!n||tat(i,Ai)))return;let s=pb(Ai),o={producer:t,consumer:Ai,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ai.producersTail=o,e!==void 0?e.nextProducer=o:Ai.producers=o,s&&X0e(t,o)}function z0e(){fH++}function p0(t){if(!(pb(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===fH)){if(!t.producerMustRecompute(t)&&!h0(t)){fb(t);return}t.producerRecomputeValue(t),fb(t)}}function hH(t){if(t.consumers===void 0)return;let e=CI;CI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||Q0e(n)}}finally{CI=e}}function mH(){return Ai?.consumerAllowSignalWrites!==!1}function Q0e(t){t.dirty=!0,hH(t),t.consumerMarkedDirty?.(t)}function fb(t){t.dirty=!1,t.lastCleanEpoch=fH}function fl(t){return t&&Y0e(t),Ce(t)}function Y0e(t){t.producersTail=void 0,t.recomputing=!0}function Cd(t,e){Ce(e),t&&Z0e(t)}function Z0e(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(pb(t))do r=gH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function h0(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(p0(r),n!==r.version))return!0}return!1}function Pd(t){if(pb(t)){let e=t.producers;for(;e!==void 0;)e=gH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function X0e(t,e){let r=t.consumersTail,n=pb(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)X0e(i.producer,i)}function gH(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,!pb(e)){let s=e.producers;for(;s!==void 0;)s=gH(s)}return r}function pb(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function PI(t){eat?.(t)}function tat(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 NI(t,e){return Object.is(t,e)}function DI(t,e){let r=Object.create(rat);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(p0(r),Od(r),r.value===dl)throw r.error;return r.value};if(n[sr]=r,typeof ngDevMode<"u"&&ngDevMode){let i=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Computed${i}: ${String(r.value)}]`}return PI(r),n}var Hp=Symbol("UNSET"),d0=Symbol("COMPUTING"),dl=Symbol("ERRORED"),rat={...xd,value:Hp,dirty:!0,error:null,equal:NI,kind:"computed",producerMustRecompute(t){return t.value===Hp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n,i=!1;try{n=t.computation(),Ce(null),i=e!==Hp&&e!==dl&&n!==dl&&t.equal(e,n)}catch(s){n=dl,t.error=s}finally{Cd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function nat(){throw new Error}var J0e=nat;function eye(t){J0e(t)}function yH(t){J0e=t}var iat=null;function vH(t,e){let r=Object.create(MI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>tye(r);if(n[sr]=r,typeof ngDevMode<"u"&&ngDevMode){let o=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Signal${o}: ${String(r.value)}]`}return PI(r),[n,o=>Gp(r,o),o=>VM(r,o)]}function tye(t){return Od(t),t.value}function Gp(t,e){mH()||eye(t),t.equal(t.value,e)||(t.value=e,sat(t))}function VM(t,e){mH()||eye(t),Gp(t,e(t.value))}var MI={...xd,equal:NI,value:void 0,kind:"signal"};function sat(t){t.version++,z0e(),hH(t),iat?.(t)}function _H(t){let e=Ce(null);try{return t()}finally{Ce(e)}}var bH={...xd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function EH(t){if(t.dirty=!1,t.version>0&&!h0(t))return;t.version++;let e=fl(t);try{t.cleanup(),t.fn()}finally{Cd(t,e)}}var _h=Z(Vt(),1);var WW;function fk(){return WW}function Ho(t){let e=WW;return WW=t,e}var tbe=Symbol("NotFound");function n1(t){return t===tbe||t?.name==="\u0275NotFound"}function KW(t,e,r){let n=Object.create(gSt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let s=()=>{if(p0(n),Od(n),n.value===dl)throw n.error;return n.value};if(s[sr]=n,typeof ngDevMode<"u"&&ngDevMode){let o=n.debugName?" ("+n.debugName+")":"";s.toString=()=>`[LinkedSignal${o}: ${String(n.value)}]`}return PI(n),s}function rbe(t,e){p0(t),Gp(t,e),fb(t)}function nbe(t,e){if(p0(t),t.value===dl)throw t.error;VM(t,e),fb(t)}var gSt={...xd,value:Hp,dirty:!0,error:null,equal:NI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Hp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n;try{let i=t.source(),s=e===Hp||e===dl?void 0:{source:t.sourceValue,value:e};n=t.computation(i,s),t.sourceValue=i}catch(i){n=dl,t.error=i}finally{Cd(t,r)}if(e!==Hp&&n!==dl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}};function ibe(t){}var QW={header:(t,e)=>{if(!zW(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(s){return["span",`Signal(\u26A0\uFE0F Error)${s.message?`: ${s.message}`:""}`]}let n="computation"in t[sr]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],zW(r)?QW.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:ySt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!zW(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 ySt(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 zW(t){return t[sr]!==void 0}function vSt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===QW)||globalThis.devtoolsFormatters.push(QW)}(typeof ngDevMode>"u"||ngDevMode)&&vSt();var QI=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(".")}},hk=new QI("21.1.6"),cK=(()=>{let t=hk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.66.1"?"next":`v${hk.major}`}.angular.dev`})(),Ek=`${cK}/errors`,Fa="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Tr(e,r)),this.code=e}};function _St(t){return`NG0${Math.abs(t)}`}function Tr(t,e){let r=_St(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let s=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${s} Find more at ${Ek}/${r}`}return n}var Nn=globalThis;function bSt(){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 Nn.ngDevMode!="object"&&(Nn.ngDevMode={}),Object.assign(Nn.ngDevMode,e)):Nn.ngDevMode=!1,e}function Sk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&bSt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Ye(t){for(let e in t)if(t[e]===Ye)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function lbe(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ht(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Ht).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(`
|
|
265
|
+
`));for(let s in t)t.hasOwnProperty(s)&&t[s].forEach(o=>{Hot(o)?n.properties[o.hostPropertyName||s]=hZe("this",s):Got(o)&&(n.listeners[o.eventName||s]=`${s}(${(o.args||[]).join(",")})`)});return n}function Hot(t){return t.ngMetadataName==="HostBinding"}function Got(t){return t.ngMetadataName==="HostListener"}function Wot(t){return t.ngMetadataName==="Input"}function Kot(t){return t.ngMetadataName==="Output"}function zot(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return typeof n=="string"||Array.isArray(n)?e[r]=Qot(n):e[r]={bindingPropertyName:n.publicName,classPropertyName:r,transformFunction:n.transformFunction!==null?new mt(n.transformFunction):null,required:n.isRequired,isSignal:n.isSignal},e},{})}function Qot(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 mt(t[2]):null,required:!1,isSignal:!1}}function Yot(t){return t.reduce((e,r)=>{if(typeof r=="string"){let[n,i]=K0e(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 mt(r.transform):null};return e},{})}function hU(t){return t.reduce((e,r)=>{let[n,i]=K0e(r);return e[i]=n,e},{})}function K0e(t){let[e,r]=t.split(":",2).map(n=>n.trim());return[r??e,e]}function Zot(t){return{name:t.type.name,type:On(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:t.pure??!0,isStandalone:t.isStandalone??Sge(t.version)}}function Xot(t){return{name:t.type.name,type:On(t.type),providers:t.providers!==void 0&&t.providers.length>0?new mt(t.providers):null,imports:t.imports!==void 0?t.imports.map(e=>new mt(e)):[]}}function Jot(t){let e=t.ng||(t.ng={});e.\u0275compilerFacade=new qV}var gge;(function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"})(gge||(gge={}));var BV=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return Aa.PARSABLE_DATA}},RIr=new BV;var kIr=new EU("21.1.6");Jot(ET);import*as mhe from"fs";var he={};_he(he,{ANIMATION_MODULE_TYPE:()=>TSe,APP_BOOTSTRAP_LISTENER:()=>_y,APP_ID:()=>Wa,APP_INITIALIZER:()=>sL,ApplicationInitStatus:()=>ay,ApplicationModule:()=>E6,ApplicationRef:()=>Rn,Attribute:()=>ZQ,COMPILER_OPTIONS:()=>ZJ,CSP_NONCE:()=>ISe,CUSTOM_ELEMENTS_SCHEMA:()=>xY,ChangeDetectionStrategy:()=>Lh,ChangeDetectorRef:()=>m6,Compiler:()=>cA,CompilerFactory:()=>X8,Component:()=>lAe,ComponentFactory:()=>PA,ComponentFactoryResolver:()=>AE,ComponentRef:()=>mZ,ContentChild:()=>GMt,ContentChildren:()=>HMt,DEFAULT_CURRENCY_CODE:()=>gAe,DOCUMENT:()=>rs,DebugElement:()=>Vh,DebugEventListener:()=>e4,DebugNode:()=>aE,DefaultIterableDiffer:()=>v6,DestroyRef:()=>pi,Directive:()=>YJ,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>kh,EmbeddedViewRef:()=>vee,EnvironmentInjector:()=>Vr,ErrorHandler:()=>La,EventEmitter:()=>bl,HOST_TAG_NAME:()=>FMt,Host:()=>GQ,HostAttributeToken:()=>gee,HostBinding:()=>hAe,HostListener:()=>mAe,INJECTOR:()=>Ck,Inject:()=>kl,Injectable:()=>ce,InjectionToken:()=>F,Injector:()=>Jr,Input:()=>fAe,IterableDiffers:()=>ZA,KeyValueDiffers:()=>XA,LOCALE_ID:()=>r6,MAX_ANIMATION_TIMEOUT:()=>wX,MissingTranslationStrategy:()=>J8,ModuleWithComponentFactories:()=>uA,NO_ERRORS_SCHEMA:()=>OY,NgModule:()=>Ey,NgModuleFactory:()=>DZ,NgModuleRef:()=>Bh,NgZone:()=>Ct,Optional:()=>fy,Output:()=>pAe,OutputEmitterRef:()=>ME,PLATFORM_ID:()=>SSe,PLATFORM_INITIALIZER:()=>o4,PendingTasks:()=>$a,Pipe:()=>dAe,PlatformRef:()=>LE,Query:()=>Iy,QueryList:()=>jw,REQUEST:()=>u9t,REQUEST_CONTEXT:()=>l9t,RESPONSE_INIT:()=>c9t,Renderer2:()=>$8,RendererFactory2:()=>tE,RendererStyleFlags2:()=>J1,Sanitizer:()=>Zw,SecurityContext:()=>Kd,Self:()=>VQ,SimpleChange:()=>kw,SkipSelf:()=>HQ,TRANSLATIONS:()=>yAe,TRANSLATIONS_FORMAT:()=>vAe,TemplateRef:()=>jh,Testability:()=>iA,TestabilityRegistry:()=>oy,TransferState:()=>Qo,Type:()=>WQ,VERSION:()=>hk,Version:()=>QI,ViewChild:()=>KMt,ViewChildren:()=>WMt,ViewContainerRef:()=>J0,ViewEncapsulation:()=>Ls,ViewRef:()=>g6,afterEveryRender:()=>Kw,afterNextRender:()=>IA,afterRenderEffect:()=>wee,asNativeElements:()=>_Ae,assertInInjectionContext:()=>fn,assertNotInReactiveContext:()=>N1,assertPlatform:()=>Axe,booleanAttribute:()=>V3t,computed:()=>Xo,contentChild:()=>pxe,contentChildren:()=>hxe,createComponent:()=>s9t,createEnvironmentInjector:()=>xE,createNgModule:()=>MZ,createNgModuleRef:()=>pIe,createPlatform:()=>Txe,createPlatformFactory:()=>Ixe,destroyPlatform:()=>e3t,effect:()=>c1,enableProdMode:()=>s3t,enableProfiling:()=>HZ,forwardRef:()=>l1,getDebugNode:()=>dy,getModuleFactory:()=>S3t,getNgModuleById:()=>T3t,getPlatform:()=>JA,importProvidersFrom:()=>TK,inject:()=>C,input:()=>Aee,inputBinding:()=>bZ,isDevMode:()=>i3t,isSignal:()=>tL,isStandalone:()=>Al,isWritableSignal:()=>rL,linkedSignal:()=>Qh,makeEnvironmentProviders:()=>hi,makeStateKey:()=>oY,mergeApplicationConfig:()=>a9t,model:()=>Oee,numberAttribute:()=>H3t,output:()=>dxe,outputBinding:()=>EZ,platformCore:()=>N3t,provideAppInitializer:()=>YZ,provideBrowserGlobalErrorListeners:()=>Ybe,provideCheckNoChangesConfig:()=>n3t,provideEnvironmentInitializer:()=>Nk,provideNgReflectAttributes:()=>I2e,providePlatformInitializer:()=>t3t,provideStabilityDebugging:()=>E3t,provideZoneChangeDetection:()=>zMt,provideZonelessChangeDetection:()=>t6,reflectComponentType:()=>o9t,resolveForwardRef:()=>Qe,resource:()=>nee,runInInjectionContext:()=>qd,setTestabilityGetter:()=>KZ,signal:()=>ns,twoWayBinding:()=>WTe,untracked:()=>Pi,viewChild:()=>xee,viewChildren:()=>fxe,\u0275ANIMATIONS_DISABLED:()=>IX,\u0275AcxChangeDetectionStrategy:()=>A8,\u0275AcxViewEncapsulation:()=>x8,\u0275AfterRenderManager:()=>Q0,\u0275CLIENT_RENDER_MODE_FLAG:()=>Nxe,\u0275CONTAINER_HEADER_OFFSET:()=>Gt,\u0275CONTROL:()=>K4,\u0275ChangeDetectionScheduler:()=>fo,\u0275ComponentFactory:()=>PA,\u0275Console:()=>Zo,\u0275DEFAULT_LOCALE_ID:()=>DE,\u0275DEFER_BLOCK_CONFIG:()=>qZ,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>jZ,\u0275DEHYDRATED_BLOCK_REGISTRY:()=>Ka,\u0275DeferBlockBehavior:()=>rA,\u0275DeferBlockState:()=>er,\u0275ENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>bxe,\u0275EVENT_REPLAY_QUEUE:()=>hY,\u0275EffectScheduler:()=>C0,\u0275Framework:()=>mee,\u0275HydrationStatus:()=>$h,\u0275IMAGE_CONFIG:()=>sY,\u0275IMAGE_CONFIG_DEFAULTS:()=>iY,\u0275INJECTOR_SCOPE:()=>S1,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>$Mt,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>Pl,\u0275IS_ENABLED_BLOCKING_INITIAL_NAVIGATION:()=>OSe,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>Gh,\u0275IS_INCREMENTAL_HYDRATION_ENABLED:()=>f4,\u0275JSACTION_BLOCK_ELEMENT_MAP:()=>hE,\u0275JSACTION_EVENT_CONTRACT:()=>p4,\u0275LContext:()=>Bw,\u0275LocaleDataIndex:()=>Uh,\u0275NG_COMP_DEF:()=>Eh,\u0275NG_DIR_DEF:()=>y1,\u0275NG_ELEMENT_ID:()=>Sh,\u0275NG_INJ_DEF:()=>o1,\u0275NG_MOD_DEF:()=>iw,\u0275NG_PIPE_DEF:()=>v1,\u0275NG_PROV_DEF:()=>D0,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>xw,\u0275NO_CHANGE:()=>At,\u0275NgModuleFactory:()=>ry,\u0275NoopNgZone:()=>a1,\u0275PERFORMANCE_MARK_PREFIX:()=>jxe,\u0275PROVIDED_NG_ZONE:()=>Cee,\u0275PROVIDED_ZONELESS:()=>yw,\u0275PendingTasksInternal:()=>Wo,\u0275ProfilerEvent:()=>pe,\u0275R3Injector:()=>Go,\u0275ReflectionCapabilities:()=>Rw,\u0275Render3ComponentFactory:()=>Qd,\u0275Render3ComponentRef:()=>Jw,\u0275Render3NgModuleRef:()=>ty,\u0275ResourceImpl:()=>Sy,\u0275RuntimeError:()=>$,\u0275SIGNAL:()=>sr,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>_Y,\u0275TESTABILITY:()=>WZ,\u0275TESTABILITY_GETTER:()=>nL,\u0275TimerScheduler:()=>nA,\u0275TracingAction:()=>eE,\u0275TracingService:()=>Xd,\u0275ViewRef:()=>zd,\u0275XSS_SECURITY_URL:()=>Fa,\u0275ZONELESS_ENABLED:()=>q0,\u0275_sanitizeHtml:()=>RY,\u0275_sanitizeUrl:()=>vA,\u0275allLeavingAnimations:()=>Fh,\u0275allowSanitizationBypassAndThrow:()=>gy,\u0275annotateForHydration:()=>k3t,\u0275assertType:()=>Y3t,\u0275bypassSanitizationTrustHtml:()=>a2e,\u0275bypassSanitizationTrustResourceUrl:()=>d2e,\u0275bypassSanitizationTrustScript:()=>c2e,\u0275bypassSanitizationTrustStyle:()=>u2e,\u0275bypassSanitizationTrustUrl:()=>l2e,\u0275clearResolutionOfComponentResourcesQueue:()=>uIe,\u0275compileComponent:()=>zJ,\u0275compileDirective:()=>e6,\u0275compileNgModule:()=>GJ,\u0275compileNgModuleDefs:()=>WJ,\u0275compileNgModuleFactory:()=>yxe,\u0275compilePipe:()=>QJ,\u0275controlUpdate:()=>YIe,\u0275convertToBitFlags:()=>hh,\u0275createInjector:()=>vk,\u0275createOrReusePlatformInjector:()=>xxe,\u0275defaultIterableDiffers:()=>C3t,\u0275defaultKeyValueDiffers:()=>P3t,\u0275depsTracker:()=>qh,\u0275devModeEqual:()=>G4,\u0275disableProfiling:()=>z3t,\u0275enableProfiling:()=>K3t,\u0275encapsulateResourceError:()=>RE,\u0275findLocaleData:()=>IL,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>HJ,\u0275formatRuntimeError:()=>Tr,\u0275generateStandaloneInDeclarationsError:()=>KJ,\u0275getAsyncClassMetadataFn:()=>DIe,\u0275getClosestComponentName:()=>Q3t,\u0275getComponentDef:()=>ut,\u0275getDebugNode:()=>dy,\u0275getDeferBlocks:()=>G1,\u0275getDirectives:()=>eY,\u0275getDocument:()=>hy,\u0275getHostElement:()=>tY,\u0275getInjectableDef:()=>p1,\u0275getLContext:()=>Ni,\u0275getLocaleCurrencyCode:()=>owe,\u0275getLocalePluralCase:()=>UX,\u0275getOutputDestroyRef:()=>SAe,\u0275getSanitizationBypassType:()=>MY,\u0275getTransferState:()=>GZ,\u0275getUnknownElementStrictMode:()=>t2e,\u0275getUnknownPropertyStrictMode:()=>n2e,\u0275global:()=>Nn,\u0275inferTagNameFromDefinition:()=>SZ,\u0275injectChangeDetectorRef:()=>Mxe,\u0275internalCreateApplication:()=>D3t,\u0275internalProvideZoneChangeDetection:()=>vxe,\u0275isBoundToModule:()=>JZ,\u0275isComponentDefPendingResolution:()=>oIe,\u0275isEnvironmentProviders:()=>g1,\u0275isInjectable:()=>hbe,\u0275isNgModule:()=>Dh,\u0275isPromise:()=>iL,\u0275isSubscribable:()=>QZ,\u0275isViewDirty:()=>lTe,\u0275markForRefresh:()=>dTe,\u0275noSideEffects:()=>Ga,\u0275patchComponentDefWithScope:()=>XL,\u0275performanceMarkFeature:()=>Gr,\u0275promiseWithResolvers:()=>kA,\u0275provideZonelessChangeDetectionInternal:()=>zA,\u0275publishExternalGlobalUtil:()=>jIe,\u0275readHydrationInfo:()=>SY,\u0275registerLocaleData:()=>swe,\u0275renderDeferBlockState:()=>Ml,\u0275resetCompiledComponents:()=>eAe,\u0275resetIncrementalHydrationEnabledWarnedForTests:()=>VSe,\u0275resetJitOptions:()=>Xwe,\u0275resolveComponentResources:()=>PZ,\u0275restoreComponentResolutionQueue:()=>cIe,\u0275setAllowDuplicateNgModuleIdsForTest:()=>fIe,\u0275setAlternateWeakRefImpl:()=>ibe,\u0275setClassDebugInfo:()=>BJ,\u0275setClassMetadata:()=>Mi,\u0275setClassMetadataAsync:()=>UZ,\u0275setCurrentInjector:()=>Ho,\u0275setDocument:()=>ESe,\u0275setInjectorProfilerContext:()=>dn,\u0275setLocaleId:()=>VX,\u0275setUnknownElementStrictMode:()=>e2e,\u0275setUnknownPropertyStrictMode:()=>r2e,\u0275startMeasuring:()=>G3t,\u0275stopMeasuring:()=>W3t,\u0275store:()=>A1,\u0275stringify:()=>Ht,\u0275transitiveScopesFor:()=>JL,\u0275triggerResourceLoading:()=>$A,\u0275truncateMiddle:()=>lK,\u0275unregisterLocaleData:()=>awe,\u0275unwrapSafeValue:()=>Ll,\u0275unwrapWritableSignal:()=>Zbe,\u0275withDomHydration:()=>y3t,\u0275withEventReplay:()=>Cxe,\u0275withI18nSupport:()=>v3t,\u0275withIncrementalHydration:()=>_3t,\u0275\u0275ExternalStylesFeature:()=>bJ,\u0275\u0275FactoryTarget:()=>qt,\u0275\u0275HostDirectivesFeature:()=>$Z,\u0275\u0275InheritDefinitionFeature:()=>Y4,\u0275\u0275NgOnChangesFeature:()=>KQ,\u0275\u0275ProvidersFeature:()=>_J,\u0275\u0275advance:()=>YY,\u0275\u0275animateEnter:()=>K1,\u0275\u0275animateEnterListener:()=>z1,\u0275\u0275animateLeave:()=>Q1,\u0275\u0275animateLeaveListener:()=>sA,\u0275\u0275ariaProperty:()=>oL,\u0275\u0275attachSourceLocations:()=>uJ,\u0275\u0275attribute:()=>aL,\u0275\u0275classMap:()=>nJ,\u0275\u0275classProp:()=>jL,\u0275\u0275componentInstance:()=>xX,\u0275\u0275conditional:()=>kX,\u0275\u0275conditionalBranchCreate:()=>FA,\u0275\u0275conditionalCreate:()=>RX,\u0275\u0275contentQuery:()=>RL,\u0275\u0275contentQuerySignal:()=>LL,\u0275\u0275control:()=>CX,\u0275\u0275controlCreate:()=>OX,\u0275\u0275declareLet:()=>ZL,\u0275\u0275defer:()=>tX,\u0275\u0275deferEnableTimerScheduling:()=>BZ,\u0275\u0275deferHydrateNever:()=>sX,\u0275\u0275deferHydrateOnHover:()=>yX,\u0275\u0275deferHydrateOnIdle:()=>uX,\u0275\u0275deferHydrateOnImmediate:()=>dX,\u0275\u0275deferHydrateOnInteraction:()=>bX,\u0275\u0275deferHydrateOnTimer:()=>hX,\u0275\u0275deferHydrateOnViewport:()=>TX,\u0275\u0275deferHydrateWhen:()=>iX,\u0275\u0275deferOnHover:()=>mX,\u0275\u0275deferOnIdle:()=>oX,\u0275\u0275deferOnImmediate:()=>cX,\u0275\u0275deferOnInteraction:()=>vX,\u0275\u0275deferOnTimer:()=>fX,\u0275\u0275deferOnViewport:()=>EX,\u0275\u0275deferPrefetchOnHover:()=>gX,\u0275\u0275deferPrefetchOnIdle:()=>aX,\u0275\u0275deferPrefetchOnImmediate:()=>lX,\u0275\u0275deferPrefetchOnInteraction:()=>_X,\u0275\u0275deferPrefetchOnTimer:()=>pX,\u0275\u0275deferPrefetchOnViewport:()=>SX,\u0275\u0275deferPrefetchWhen:()=>nX,\u0275\u0275deferWhen:()=>rX,\u0275\u0275defineComponent:()=>RZ,\u0275\u0275defineDirective:()=>kZ,\u0275\u0275defineInjectable:()=>Xt,\u0275\u0275defineInjector:()=>f1,\u0275\u0275defineNgModule:()=>Q4,\u0275\u0275definePipe:()=>LZ,\u0275\u0275directiveInject:()=>Kh,\u0275\u0275disableBindings:()=>Vk,\u0275\u0275domElement:()=>vL,\u0275\u0275domElementContainer:()=>EL,\u0275\u0275domElementContainerEnd:()=>bL,\u0275\u0275domElementContainerStart:()=>HA,\u0275\u0275domElementEnd:()=>UA,\u0275\u0275domElementStart:()=>BA,\u0275\u0275domListener:()=>ML,\u0275\u0275domProperty:()=>SL,\u0275\u0275domTemplate:()=>X4,\u0275\u0275element:()=>yL,\u0275\u0275elementContainer:()=>_L,\u0275\u0275elementContainerEnd:()=>NE,\u0275\u0275elementContainerStart:()=>VA,\u0275\u0275elementEnd:()=>qA,\u0275\u0275elementStart:()=>jA,\u0275\u0275enableBindings:()=>Uk,\u0275\u0275getComponentDepsFactory:()=>qJ,\u0275\u0275getCurrentView:()=>BX,\u0275\u0275getInheritedFactory:()=>YQ,\u0275\u0275getReplaceMetadataURL:()=>UJ,\u0275\u0275i18n:()=>HX,\u0275\u0275i18nApply:()=>WX,\u0275\u0275i18nAttributes:()=>GX,\u0275\u0275i18nEnd:()=>CL,\u0275\u0275i18nExp:()=>PL,\u0275\u0275i18nPostprocess:()=>KX,\u0275\u0275i18nStart:()=>OL,\u0275\u0275inject:()=>Gn,\u0275\u0275injectAttribute:()=>fA,\u0275\u0275interpolate:()=>cJ,\u0275\u0275interpolate1:()=>lJ,\u0275\u0275interpolate2:()=>dJ,\u0275\u0275interpolate3:()=>fJ,\u0275\u0275interpolate4:()=>pJ,\u0275\u0275interpolate5:()=>hJ,\u0275\u0275interpolate6:()=>mJ,\u0275\u0275interpolate7:()=>gJ,\u0275\u0275interpolate8:()=>yJ,\u0275\u0275interpolateV:()=>vJ,\u0275\u0275invalidFactory:()=>yZ,\u0275\u0275invalidFactoryDep:()=>ow,\u0275\u0275listener:()=>NL,\u0275\u0275loadQuery:()=>JX,\u0275\u0275namespaceHTML:()=>e8,\u0275\u0275namespaceMathML:()=>Jk,\u0275\u0275namespaceSVG:()=>Xk,\u0275\u0275nextContext:()=>QX,\u0275\u0275ngDeclareClassMetadata:()=>wr,\u0275\u0275ngDeclareClassMetadataAsync:()=>X3t,\u0275\u0275ngDeclareComponent:()=>J3t,\u0275\u0275ngDeclareDirective:()=>Z3t,\u0275\u0275ngDeclareFactory:()=>Ar,\u0275\u0275ngDeclareInjectable:()=>Wr,\u0275\u0275ngDeclareInjector:()=>ex,\u0275\u0275ngDeclareNgModule:()=>tx,\u0275\u0275ngDeclarePipe:()=>t9t,\u0275\u0275pipe:()=>MJ,\u0275\u0275pipeBind1:()=>RJ,\u0275\u0275pipeBind2:()=>kJ,\u0275\u0275pipeBind3:()=>LJ,\u0275\u0275pipeBind4:()=>$J,\u0275\u0275pipeBindV:()=>FJ,\u0275\u0275projection:()=>ZX,\u0275\u0275projectionDef:()=>YX,\u0275\u0275property:()=>gL,\u0275\u0275pureFunction0:()=>TJ,\u0275\u0275pureFunction1:()=>IJ,\u0275\u0275pureFunction2:()=>wJ,\u0275\u0275pureFunction3:()=>AJ,\u0275\u0275pureFunction4:()=>xJ,\u0275\u0275pureFunction5:()=>OJ,\u0275\u0275pureFunction6:()=>CJ,\u0275\u0275pureFunction7:()=>PJ,\u0275\u0275pureFunction8:()=>NJ,\u0275\u0275pureFunctionV:()=>DJ,\u0275\u0275queryAdvance:()=>eJ,\u0275\u0275queryRefresh:()=>XX,\u0275\u0275readContextLet:()=>aJ,\u0275\u0275reference:()=>tJ,\u0275\u0275registerNgModuleType:()=>z4,\u0275\u0275repeater:()=>FX,\u0275\u0275repeaterCreate:()=>$X,\u0275\u0275repeaterTrackByIdentity:()=>mL,\u0275\u0275repeaterTrackByIndex:()=>LX,\u0275\u0275replaceMetadata:()=>VJ,\u0275\u0275resetView:()=>Gk,\u0275\u0275resolveBody:()=>I4,\u0275\u0275resolveDocument:()=>GY,\u0275\u0275resolveWindow:()=>HY,\u0275\u0275restoreView:()=>Hk,\u0275\u0275sanitizeHtml:()=>$Y,\u0275\u0275sanitizeResourceUrl:()=>T4,\u0275\u0275sanitizeScript:()=>jY,\u0275\u0275sanitizeStyle:()=>FY,\u0275\u0275sanitizeUrl:()=>S4,\u0275\u0275sanitizeUrlOrResourceUrl:()=>UY,\u0275\u0275setComponentScope:()=>EJ,\u0275\u0275setNgModuleScope:()=>SJ,\u0275\u0275storeLet:()=>oJ,\u0275\u0275styleMap:()=>rJ,\u0275\u0275styleProp:()=>FL,\u0275\u0275syntheticHostListener:()=>DL,\u0275\u0275syntheticHostProperty:()=>TL,\u0275\u0275template:()=>Z4,\u0275\u0275templateRefExtractor:()=>jJ,\u0275\u0275text:()=>iJ,\u0275\u0275textInterpolate:()=>qL,\u0275\u0275textInterpolate1:()=>GA,\u0275\u0275textInterpolate2:()=>BL,\u0275\u0275textInterpolate3:()=>UL,\u0275\u0275textInterpolate4:()=>VL,\u0275\u0275textInterpolate5:()=>HL,\u0275\u0275textInterpolate6:()=>GL,\u0275\u0275textInterpolate7:()=>WL,\u0275\u0275textInterpolate8:()=>KL,\u0275\u0275textInterpolateV:()=>zL,\u0275\u0275trustConstantHtml:()=>qY,\u0275\u0275trustConstantResourceUrl:()=>BY,\u0275\u0275twoWayBindingSet:()=>sJ,\u0275\u0275twoWayListener:()=>YL,\u0275\u0275twoWayProperty:()=>QL,\u0275\u0275validateAttribute:()=>VY,\u0275\u0275viewQuery:()=>kL,\u0275\u0275viewQuerySignal:()=>$L});var Ai=null,CI=!1,fH=1,eat=null,sr=Symbol("SIGNAL");function Ce(t){let e=Ai;return Ai=t,e}function f0(){return Ai}function pH(){return CI}var xd={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 Od(t){if(CI)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ai===null)return;Ai.consumerOnSignalRead(t);let e=Ai.producersTail;if(e!==void 0&&e.producer===t)return;let r,n=Ai.recomputing;if(n&&(r=e!==void 0?e.nextProducer:Ai.producers,r!==void 0&&r.producer===t)){Ai.producersTail=r,r.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===Ai&&(!n||tat(i,Ai)))return;let s=pb(Ai),o={producer:t,consumer:Ai,nextProducer:r,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};Ai.producersTail=o,e!==void 0?e.nextProducer=o:Ai.producers=o,s&&X0e(t,o)}function z0e(){fH++}function p0(t){if(!(pb(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===fH)){if(!t.producerMustRecompute(t)&&!h0(t)){fb(t);return}t.producerRecomputeValue(t),fb(t)}}function hH(t){if(t.consumers===void 0)return;let e=CI;CI=!0;try{for(let r=t.consumers;r!==void 0;r=r.nextConsumer){let n=r.consumer;n.dirty||Q0e(n)}}finally{CI=e}}function mH(){return Ai?.consumerAllowSignalWrites!==!1}function Q0e(t){t.dirty=!0,hH(t),t.consumerMarkedDirty?.(t)}function fb(t){t.dirty=!1,t.lastCleanEpoch=fH}function fl(t){return t&&Y0e(t),Ce(t)}function Y0e(t){t.producersTail=void 0,t.recomputing=!0}function Cd(t,e){Ce(e),t&&Z0e(t)}function Z0e(t){t.recomputing=!1;let e=t.producersTail,r=e!==void 0?e.nextProducer:t.producers;if(r!==void 0){if(pb(t))do r=gH(r);while(r!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function h0(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let r=e.producer,n=e.lastReadVersion;if(n!==r.version||(p0(r),n!==r.version))return!0}return!1}function Pd(t){if(pb(t)){let e=t.producers;for(;e!==void 0;)e=gH(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function X0e(t,e){let r=t.consumersTail,n=pb(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)X0e(i.producer,i)}function gH(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,!pb(e)){let s=e.producers;for(;s!==void 0;)s=gH(s)}return r}function pb(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function PI(t){eat?.(t)}function tat(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 NI(t,e){return Object.is(t,e)}function DI(t,e){let r=Object.create(rat);r.computation=t,e!==void 0&&(r.equal=e);let n=()=>{if(p0(r),Od(r),r.value===dl)throw r.error;return r.value};if(n[sr]=r,typeof ngDevMode<"u"&&ngDevMode){let i=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Computed${i}: ${String(r.value)}]`}return PI(r),n}var Hp=Symbol("UNSET"),d0=Symbol("COMPUTING"),dl=Symbol("ERRORED"),rat={...xd,value:Hp,dirty:!0,error:null,equal:NI,kind:"computed",producerMustRecompute(t){return t.value===Hp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n,i=!1;try{n=t.computation(),Ce(null),i=e!==Hp&&e!==dl&&n!==dl&&t.equal(e,n)}catch(s){n=dl,t.error=s}finally{Cd(t,r)}if(i){t.value=e;return}t.value=n,t.version++}};function nat(){throw new Error}var J0e=nat;function eye(t){J0e(t)}function yH(t){J0e=t}var iat=null;function vH(t,e){let r=Object.create(MI);r.value=t,e!==void 0&&(r.equal=e);let n=()=>tye(r);if(n[sr]=r,typeof ngDevMode<"u"&&ngDevMode){let o=r.debugName?" ("+r.debugName+")":"";n.toString=()=>`[Signal${o}: ${String(r.value)}]`}return PI(r),[n,o=>Gp(r,o),o=>VM(r,o)]}function tye(t){return Od(t),t.value}function Gp(t,e){mH()||eye(t),t.equal(t.value,e)||(t.value=e,sat(t))}function VM(t,e){mH()||eye(t),Gp(t,e(t.value))}var MI={...xd,equal:NI,value:void 0,kind:"signal"};function sat(t){t.version++,z0e(),hH(t),iat?.(t)}function _H(t){let e=Ce(null);try{return t()}finally{Ce(e)}}var bH={...xd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function EH(t){if(t.dirty=!1,t.version>0&&!h0(t))return;t.version++;let e=fl(t);try{t.cleanup(),t.fn()}finally{Cd(t,e)}}var _h=Z(Vt(),1);var WW;function fk(){return WW}function Ho(t){let e=WW;return WW=t,e}var tbe=Symbol("NotFound");function n1(t){return t===tbe||t?.name==="\u0275NotFound"}function KW(t,e,r){let n=Object.create(gSt);n.source=t,n.computation=e,r!=null&&(n.equal=r);let s=()=>{if(p0(n),Od(n),n.value===dl)throw n.error;return n.value};if(s[sr]=n,typeof ngDevMode<"u"&&ngDevMode){let o=n.debugName?" ("+n.debugName+")":"";s.toString=()=>`[LinkedSignal${o}: ${String(n.value)}]`}return PI(n),s}function rbe(t,e){p0(t),Gp(t,e),fb(t)}function nbe(t,e){if(p0(t),t.value===dl)throw t.error;VM(t,e),fb(t)}var gSt={...xd,value:Hp,dirty:!0,error:null,equal:NI,kind:"linkedSignal",producerMustRecompute(t){return t.value===Hp||t.value===d0},producerRecomputeValue(t){if(t.value===d0)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let e=t.value;t.value=d0;let r=fl(t),n;try{let i=t.source(),s=e===Hp||e===dl?void 0:{source:t.sourceValue,value:e};n=t.computation(i,s),t.sourceValue=i}catch(i){n=dl,t.error=i}finally{Cd(t,r)}if(e!==Hp&&n!==dl&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}};function ibe(t){}var QW={header:(t,e)=>{if(!zW(t)||e?.ngSkipFormatting)return null;let r;try{r=t()}catch(s){return["span",`Signal(\u26A0\uFE0F Error)${s.message?`: ${s.message}`:""}`]}let n="computation"in t[sr]?"Computed":"Signal",i=r===null||!Array.isArray(r)&&typeof r!="object";return["span",{},["span",{},`${n}(`],zW(r)?QW.header(r,e):i&&r!==void 0&&typeof r!="function"?["object",{object:r}]:ySt(r),["span",{},")"]]},hasBody:(t,e)=>{if(!zW(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 ySt(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 zW(t){return t[sr]!==void 0}function vSt(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(t=>t===QW)||globalThis.devtoolsFormatters.push(QW)}(typeof ngDevMode>"u"||ngDevMode)&&vSt();var QI=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(".")}},hk=new QI("21.1.6"),cK=(()=>{let t=hk.full;return`https://${t.includes("-next")||t.includes("-rc")||t==="20.67.0"?"next":`v${hk.major}`}.angular.dev`})(),Ek=`${cK}/errors`,Fa="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",$=class extends Error{code;constructor(e,r){super(Tr(e,r)),this.code=e}};function _St(t){return`NG0${Math.abs(t)}`}function Tr(t,e){let r=_St(t),n=`${r}${e?": "+e:""}`;if(ngDevMode&&t<0){let s=!n.match(/[.,;!?\n]$/)?".":"";n=`${n}${s} Find more at ${Ek}/${r}`}return n}var Nn=globalThis;function bSt(){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 Nn.ngDevMode!="object"&&(Nn.ngDevMode={}),Object.assign(Nn.ngDevMode,e)):Nn.ngDevMode=!1,e}function Sk(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&bSt(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function Ye(t){for(let e in t)if(t[e]===Ye)return e;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function lbe(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ht(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Ht).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
266
|
`);return n>=0?r.slice(0,n):r}function Tk(t,e){return t?e?`${t} ${e}`:t:e||""}function lK(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 ESt=Ye({__forward_ref__:Ye});function l1(t){return t.__forward_ref__=l1,t.toString=function(){return Ht(this())},t}function Qe(t){return nw(t)?t():t}function nw(t){return typeof t=="function"&&t.hasOwnProperty(ESt)&&t.__forward_ref__===l1}function or(t,e){typeof t!="number"&&Te(e,typeof t,"number","===")}function d1(t,e,r){or(t,"Expected a number"),dbe(t,r,"Expected number to be less than or equal to"),wl(t,e,"Expected number to be greater than or equal to")}function P0(t,e){typeof t!="string"&&Te(e,t===null?"null":typeof t,"string","===")}function dK(t,e){typeof t!="function"&&Te(e,t===null?"null":typeof t,"function","===")}function ke(t,e,r){t!=e&&Te(r,t,e,"==")}function Zi(t,e,r){t==e&&Te(r,t,e,"!=")}function fK(t,e,r){t!==e&&Te(r,t,e,"===")}function N0(t,e,r){t===e&&Te(r,t,e,"!==")}function Il(t,e,r){t<e||Te(r,t,e,"<")}function dbe(t,e,r){t<=e||Te(r,t,e,"<=")}function bh(t,e,r){t>e||Te(r,t,e,">")}function wl(t,e,r){t>=e||Te(r,t,e,">=")}function pK(t,e){t!=null&&Te(e,t,null,"==")}function J(t,e){t==null&&Te(e,t,null,"!=")}function Te(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function jd(t){t instanceof Node||Te(`The provided value must be an instance of a DOM Node but got ${Ht(t)}`)}function fbe(t){t instanceof Element||Te(`The provided value must be an element but got ${Ht(t)}`)}function $r(t,e){J(t,"Array must be defined.");let r=t.length;(e<0||e>=r)&&Te(`Index expected to be less than ${r} but got ${e}`)}function pbe(t,...e){if(e.indexOf(t)!==-1)return!0;Te(`Expected value to be one of ${JSON.stringify(e)} but was ${JSON.stringify(t)}.`)}function Ik(t){f0()!==null&&Te(`${t}() should never be called in a reactive context.`)}function Xt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function f1(t){return{providers:t.providers||[],imports:t.imports||[]}}function p1(t){return SSt(t,D0)}function hbe(t){return p1(t)!==null}function SSt(t,e){return t.hasOwnProperty(e)&&t[e]||null}function TSt(t){let e=t?.[D0]??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.
|
|
267
267
|
This will become an error in a future version of Angular. Please add @Injectable() to the "${t.name}" class.`),e):null}function YI(t){return t&&t.hasOwnProperty(o1)?t[o1]:null}var D0=Ye({\u0275prov:Ye}),o1=Ye({\u0275inj:Ye}),F=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,r){this._desc=e,this.\u0275prov=void 0,typeof r=="number"?((typeof ngDevMode>"u"||ngDevMode)&&Il(r,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=r):r!==void 0&&(this.\u0275prov=Xt({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},ZW;function h1(){return!ngDevMode&&Te("getInjectorProfilerContext should never be called in production mode"),ZW}function dn(t){!ngDevMode&&Te("setInjectorProfilerContext should never be called in production mode");let e=ZW;return ZW=t,e}var A0=[],ISt=()=>{};function wSt(t){let e=A0.indexOf(t);e!==-1&&A0.splice(e,1)}function hK(t){return!ngDevMode&&Te("setInjectorProfiler should never be called in production mode"),t!==null?(A0.includes(t)||A0.push(t),()=>wSt(t)):(A0.length=0,ISt)}function m1(t){!ngDevMode&&Te("Injector profiler should never be called in production mode");for(let e=0;e<A0.length;e++){let r=A0[e];r(t)}}function mk(t,e=!1){!ngDevMode&&Te("Injector profiler should never be called in production mode");let r;typeof t=="function"||t instanceof F?r=t:r=Qe(t.provide);let n=t;t instanceof F&&(n=t.\u0275prov||t),m1({type:2,context:h1(),providerRecord:{token:r,provider:n,isViewProvider:e}})}function ZI(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:5,context:h1(),token:t})}function XI(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:1,context:h1(),instance:{value:t}})}function mK(t,e,r){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:0,context:h1(),service:{token:t,value:e,flags:r}})}function ASt(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:3,context:h1(),effect:t})}function mbe(t){!ngDevMode&&Te("Injector profiler should never be called in production mode"),m1({type:4,context:h1(),effectPhase:t})}function s1(t,e,r){!ngDevMode&&Te("runInInjectorProfilerContext should never be called in production mode");let n=dn({injector:t,token:e});try{r()}finally{dn(n)}}function g1(t){return t&&!!t.\u0275providers}var Eh=Ye({\u0275cmp:Ye}),y1=Ye({\u0275dir:Ye}),v1=Ye({\u0275pipe:Ye}),iw=Ye({\u0275mod:Ye}),El=Ye({\u0275fac:Ye}),Sh=Ye({__NG_ELEMENT_ID__:Ye}),sbe=Ye({__NG_ENV_ID__:Ye});function ja(t){return wk(t,"@NgModule"),t[iw]||null}function sw(t){let e=ja(t);if(!e)throw new $(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Ht(t)} does not have '\u0275mod' property.`);return e}function ut(t){return wk(t,"@Component"),t[Eh]||null}function gbe(t){let e=bn(t);if(!e)throw new $(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${Ht(t)} does not have '\u0275dir' property.`);return e}function bn(t){return wk(t,"@Directive"),t[y1]||null}function Xi(t){return wk(t,"@Pipe"),t[v1]||null}function wk(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 Al(t){let e=ut(t)||bn(t)||Xi(t);return e!==null&&e.standalone}function it(t){return typeof t=="string"?t:t==null?"":String(t)}function et(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():it(t)}function gK(t){let e=ut(t);return e!==null&&e.debugInfo?xSt(e.debugInfo):et(t)}function xSt(t){return!t.filePath||!t.lineNumber?t.className:`${t.className} (at ${t.filePath}:${t.lineNumber})`}var yK=Ye({ngErrorCode:Ye}),ybe=Ye({ngErrorMessage:Ye}),zI=Ye({ngTokenPath:Ye});function Ak(t,e){let r=ngDevMode?`Circular dependency detected for \`${t}\`.`:"";return _be(r,-200,e)}function vK(t,e){return vbe(Ak(t,e),null)}function obe(){throw new Error("Cannot mix multi providers and regular providers")}function XW(t,e,r){if(t&&e){let n=e.map(i=>i==r?"?"+r+"?":"...");throw new Error(`Invalid provider for the NgModule '${Ht(t)}' - only instances of Provider and Type are allowed, got: [${n.join(", ")}]`)}else throw g1(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 xk(t,e){let r=ngDevMode&&`No provider for ${et(t)} found${e?` in ${e}`:""}`;throw new $(-201,r)}function OSt(t,e){t[zI]??=[];let r=t[zI],n;typeof e=="object"&&"multi"in e&&e?.multi===!0?(J(e.provide,"Token with multi: true should have a provide property"),n=et(e.provide)):n=et(e),r[0]!==n&&t[zI].unshift(n)}function vbe(t,e){let r=t[zI],n=t[yK],i=t[ybe]||t.message;return t.message=PSt(i,n,r,e),t}function _be(t,e,r){let n=new $(e,t);return n[yK]=e,n[ybe]=t,r&&(n[zI]=r),n}function CSt(t){return t[yK]}function PSt(t,e,r=[],n=null){let i="";r&&r.length>1&&(i=` Path: ${r.join(" -> ")}.`);let s=n?` Source: ${n}.`:"";return Tr(e,`${t}${s}${i}`)}var gk;function bbe(){return gk}function Yi(t){let e=gk;return gk=t,e}function _K(t,e,r){let n=p1(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;xk(t,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function Ebe(t){ngDevMode&&Zi(gk,t,"Calling \u0275\u0275inject would cause infinite recursion")}var NSt={},x0=NSt,JW="__NG_DI_FLAG__",eK=class{injector;constructor(e){this.injector=e}retrieve(e,r){let n=hh(r)||0;try{return this.injector.get(e,n&8?null:x0,n)}catch(i){if(n1(i))return i;throw i}}};function DSt(t,e=0){let r=fk();if(r===void 0)throw new $(-203,ngDevMode&&`The \`${Ht(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 _K(t,void 0,e);{let n=MSt(e),i=r.retrieve(t,n);if(ngDevMode&&mK(t,i,e),n1(i)){if(n.optional)return null;throw i}return i}}function Gn(t,e=0){return(bbe()||DSt)(Qe(t),e)}function ow(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.
|
|
268
268
|
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.
|