PageSourceSearch

https://lefnet.dk/main-WNWO2MYP.js

js lefnet.dk collected 2026-10-02 15:52:18 UTC 666,018 bytes, 84 lines download raw bytes

vendor: 4,389 bytes, line 1
1import{a as C,b as Z,c as Pf,d as Dv,e as Ff,f as ne}from"./chunk-OSQMNGTH.js";var Cy=Dv((by,Ey)=>{(function(t,n){typeof by=="object"&&typeof Ey<"u"?Ey.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=n()})(by,(function(){"use strict";var t=1e3,n=6e4,e=36e5,i="millisecond",r="second",o="minute",s="hour",a="day",l="week",c="month",u="quarter",d="year",m="date",f="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ie){var W=["th","st","nd","rd"],G=ie%100;return"["+ie+(W[(G-20)%10]||W[G]||W[0])+"]"}},M=function(ie,W,G){var re=String(ie);return!re||re.length>=W?ie:""+Array(W+1-re.length).join(G)+ie},T={s:M,z:function(ie){var W=-ie.utcOffset(),G=Math.abs(W),re=Math.floor(G/60),w=G%60;return(W<=0?"+":"-")+M(re,2,"0")+":"+M(w,2,"0")},m:function ie(W,G){if(W.date()<G.date())return-ie(G,W);var re=12*(G.year()-W.year())+(G.month()-W.month()),w=W.clone().add(re,c),I=G-w<0,R=W.clone().add(re+(I?-1:1),c);return+(-(re+(G-w)/(I?w-R:R-w))||0)},a:function(ie){return ie<0?Math.ceil(ie)||0:Math.floor(ie)},p:function(ie){return{M:c,y:d,w:l,d:a,D:m,h:s,m:o,s:r,ms:i,Q:u}[ie]||String(ie||"").toLowerCase().replace(/s$/,"")},u:function(ie){return ie===void 0}},q="en",Q={};Q[q]=D;var pe="$isDayjsObject",N=function(ie){return ie instanceof an||!(!ie||!ie[pe])},z=function ie(W,G,re){var w;if(!W)return q;if(typeof W=="string"){var I=W.toLowerCase();Q[I]&&(w=I),G&&(Q[I]=G,w=I);var R=W.split("-");if(!w&&R.length>1)return ie(R[0])}else{var te=W.name;Q[te]=W,w=te}return!re&&w&&(q=w),w||!re&&q},le=function(ie,W){if(N(ie))return ie.clone();var G=typeof W=="object"?W:{};return G.date=ie,G.args=arguments,new an(G)},ce=T;ce.l=z,ce.i=N,ce.w=function(ie,W){return le(ie,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var an=(function(){function ie(G){this.$L=z(G.locale,null,!0),this.parse(G),this.$x=this.$x||G.x||{},this[pe]=!0}var W=ie.prototype;return W.parse=function(G){this.$d=(function(re){var w=re.date,I=re.utc;if(w===null)return new Date(NaN);if(ce.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var R=w.match(_);if(R){var te=R[2]-1||0,be=(R[7]||"0").substring(0,3);return I?new Date(Date.UTC(R[1],te,R[3]||1,R[4]||0,R[5]||0,R[6]||0,be)):new Date(R[1],te,R[3]||1,R[4]||0,R[5]||0,R[6]||0,be)}}return new Date(w)})(G),this.init()},W.init=function(){var G=this.$d;this.$y=G.getFullYear(),this.$M=G.getMonth(),this.$D=G.getDate(),this.$W=G.getDay(),this.$H=G.getHours(),this.$m=G.getMinutes(),this.$s=G.getSeconds(),this.$ms=G.getMilliseconds()},W.$utils=function(){return ce},W.isValid=function(){return this.$d.toString()!==f},W.isSame=function(G,re){var w=le(G);return this.startOf(re)<=w&&w<=this.endOf(re)},W.isAfter=function(G,re){return le(G)<this.startOf(re)},W.isBefore=function(G,re){return this.endOf(re)<le(G)},W.$g=function(G,re,w){return ce.u(G)?this[re]:this.set(w,G)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(G,re){var w=this,I=!!ce.u(re)||re,R=ce.p(G),te=function(at,mt){var _t=ce.w(w.$u?Date.UTC(w.$y,mt,at):new Date(w.$y,mt,at),w);return I?_t:_t.endOf(a)},be=function(at,mt){return ce.w(w.toDate()[at].apply(w.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(mt)),w)},qe=this.$W,$e=this.$M,vt=this.$D,ze="set"+(this.$u?"UTC":"");switch(R){case d:return I?te(1,0):te(31,11);case c:return I?te(1,$e):te(0,$e+1);case l:var Jn=this.$locale().weekStart||0,Ir=(qe<Jn?qe+7:qe)-Jn;return te(I?vt-Ir:vt+(6-Ir),$e);case a:case m:return be(ze+"Hours",0);case s:return be(ze+"Minutes",1);case o:return be(ze+"Seconds",2);case r:return be(ze+"Milliseconds",3);default:return this.clone()}},W.endOf=function(G){return this.startOf(G,!1)},W.$set=function(G,re){var w,I=ce.p(G),R="set"+(this.$u?"UTC":""),te=(w={},w[a]=R+"Date",w[m]=R+"Date",w[c]=R+"Month",w[d]=R+"FullYear",w[s]=R+"Hours",w[o]=R+"Minutes",w[r]=R+"Seconds",w[i]=R+"Milliseconds",w)[I],be=I===a?this.$D+(re-this.$W):re;if(I===c||I===d){var qe=this.clone().set(m,1);
vendor: 5,895 bytes, line 1
1qe.$d[te](be),qe.init(),this.$d=qe.set(m,Math.min(this.$D,qe.daysInMonth())).$d}else te&&this.$d[te](be);return this.init(),this},W.set=function(G,re){return this.clone().$set(G,re)},W.get=function(G){return this[ce.p(G)]()},W.add=function(G,re){var w,I=this;G=Number(G);var R=ce.p(re),te=function($e){var vt=le(I);return ce.w(vt.date(vt.date()+Math.round($e*G)),I)};if(R===c)return this.set(c,this.$M+G);if(R===d)return this.set(d,this.$y+G);if(R===a)return te(1);if(R===l)return te(7);var be=(w={},w[o]=n,w[s]=e,w[r]=t,w)[R]||1,qe=this.$d.getTime()+G*be;return ce.w(qe,this)},W.subtract=function(G,re){return this.add(-1*G,re)},W.format=function(G){var re=this,w=this.$locale();if(!this.isValid())return w.invalidDate||f;var I=G||"YYYY-MM-DDTHH:mm:ssZ",R=ce.z(this),te=this.$H,be=this.$m,qe=this.$M,$e=w.weekdays,vt=w.months,ze=w.meridiem,Jn=function(mt,_t,ei,er){return mt&&(mt[_t]||mt(re,I))||ei[_t].slice(0,er)},Ir=function(mt){return ce.s(te%12||12,mt,"0")},at=ze||function(mt,_t,ei){var er=mt<12?"AM":"PM";return ei?er.toLowerCase():er};return I.replace(E,(function(mt,_t){return _t||(function(ei){switch(ei){case"YY":return String(re.$y).slice(-2);case"YYYY":return ce.s(re.$y,4,"0");case"M":return qe+1;case"MM":return ce.s(qe+1,2,"0");case"MMM":return Jn(w.monthsShort,qe,vt,3);case"MMMM":return Jn(vt,qe);case"D":return re.$D;case"DD":return ce.s(re.$D,2,"0");case"d":return String(re.$W);case"dd":return Jn(w.weekdaysMin,re.$W,$e,2);case"ddd":return Jn(w.weekdaysShort,re.$W,$e,3);case"dddd":return $e[re.$W];case"H":return String(te);case"HH":return ce.s(te,2,"0");case"h":return Ir(1);case"hh":return Ir(2);case"a":return at(te,be,!0);case"A":return at(te,be,!1);case"m":return String(be);case"mm":return ce.s(be,2,"0");case"s":return String(re.$s);case"ss":return ce.s(re.$s,2,"0");case"SSS":return ce.s(re.$ms,3,"0");case"Z":return R}return null})(mt)||R.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(G,re,w){var I,R=this,te=ce.p(re),be=le(G),qe=(be.utcOffset()-this.utcOffset())*n,$e=this-be,vt=function(){return ce.m(R,be)};switch(te){case d:I=vt()/12;break;case c:I=vt();break;case u:I=vt()/3;break;case l:I=($e-qe)/6048e5;break;case a:I=($e-qe)/864e5;break;case s:I=$e/e;break;case o:I=$e/n;break;case r:I=$e/t;break;default:I=$e}return w?I:ce.a(I)},W.daysInMonth=function(){return this.endOf(c).$D},W.$locale=function(){return Q[this.$L]},W.locale=function(G,re){if(!G)return this.$L;var w=this.clone(),I=z(G,re,!0);return I&&(w.$L=I),w},W.clone=function(){return ce.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},ie})(),Si=an.prototype;return le.prototype=Si,[["$ms",i],["$s",r],["$m",o],["$H",s],["$W",a],["$M",c],["$y",d],["$D",m]].forEach((function(ie){Si[ie[1]]=function(W){return this.$g(W,ie[0],ie[1])}})),le.extend=function(ie,W){return ie.$i||(ie(W,an,le),ie.$i=!0),le},le.locale=z,le.isDayjs=N,le.unix=function(ie){return le(1e3*ie)},le.en=Q[q],le.Ls=Q,le.p={},le}))});var ax=Dv((bv,Ev)=>{(function(t,n){typeof bv=="object"&&typeof Ev<"u"?Ev.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_utc=n()})(bv,(function(){"use strict";var t="minute",n=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(i,r,o){var s=r.prototype;o.utc=function(f){var _={date:f,utc:!0,args:arguments};return new r(_)},s.utc=function(f){var _=o(this.toDate(),{locale:this.$L,utc:!0});return f?_.add(this.utcOffset(),t):_},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),a.call(this,f)};var l=s.init;s.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else l.call(this)};var c=s.utcOffset;s.utcOffset=function(f,_){var E=this.$utils().u;if(E(f))return this.$u?0:E(this.$offset)?c.call(this):this.$offset;if(typeof f=="string"&&(f=(function(q){q===void 0&&(q="");var Q=q.match(n);if(!Q)return null;var pe=(""+Q[0]).match(e)||["-",0,0],N=pe[0],z=60*+pe[1]+ +pe[2];return z===0?0:N==="+"?z:-z})(f),f===null))return this;var D=Math.abs(f)<=16?60*f:f;if(D===0)return this.utc(_);var M=this.clone();if(_)return M.$offset=D,M.$u=!1,M;var T=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(M=this.local().add(D+T,t)).$offset=D,M.$x.$localOffset=T,M};var u=s.format;s.format=function(f){var _=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,_)},s.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(f){return f==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var m=s.diff;s.diff=function(f,_,E){if(f&&this.$u===f.$u)return m.call(this,f,_,E);var D=this.local(),M=o(f).local();return m.call(D,M,_,E)}}}))});var qt=null,Bl=!1,Mr=1,Dx=null,Dt=Symbol("SIGNAL");function oe(t){let n=qt;return qt=t,n}function Hl(){return qt}var tr={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 nr(t){if(Bl)throw new Error("");
vendor: 4,108 bytes, line 1
1if(qt===null)return;qt.consumerOnSignalRead(t);let n=qt.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=qt.recomputing;if(i&&(e=n!==void 0?n.nextProducer:qt.producers,e!==void 0&&e.producer===t)){qt.producersTail=e,e.lastReadVersion=t.version,e.knownValidAtEpoch=Mr;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===qt&&(!i||r.knownValidAtEpoch===Mr))return;let o=Mo(qt),s={producer:t,consumer:qt,nextProducer:e,prevConsumer:void 0,knownValidAtEpoch:Mr,lastReadVersion:t.version,nextConsumer:void 0};qt.producersTail=s,n!==void 0?n.nextProducer=s:qt.producers=s,o&&Iv(t,s)}function Sv(){Mr++}function ir(t){if(!(Mo(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Mr)){if(!t.producerMustRecompute(t)&&!Gs(t)){Io(t);return}t.producerRecomputeValue(t),Io(t)}}function Vf(t){if(t.consumers===void 0)return;let n=Bl;Bl=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||Sx(i)}}finally{Bl=n}}function jf(){return qt?.consumerAllowSignalWrites!==!1}function Sx(t){t.dirty=!0,Vf(t),t.consumerMarkedDirty?.(t)}function Io(t){t.dirty=!1,t.lastCleanEpoch=Mr}function rr(t){return t&&xv(t),oe(t)}function xv(t){if(t.producersTail?.knownValidAtEpoch===Mr){let n=t.producers;for(;n!==void 0;)n.knownValidAtEpoch=null,n=n.nextProducer}t.producersTail=void 0,t.recomputing=!0}function Nr(t,n){oe(n),t&&Tv(t)}function Tv(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Mo(t))do e=Uf(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function Gs(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(ir(e),i!==e.version))return!0}return!1}function Rr(t){if(Mo(t)){let n=t.producers;for(;n!==void 0;)n=Uf(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Iv(t,n){let e=t.consumersTail,i=Mo(t);if(e!==void 0?(n.nextConsumer=e.nextConsumer,e.nextConsumer=n):(n.nextConsumer=void 0,t.consumers=n),n.prevConsumer=e,t.consumersTail=n,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)Iv(r.producer,r)}function Uf(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Mo(n)){let o=n.producers;for(;o!==void 0;)o=Uf(o)}return e}function Mo(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function qs(t){Dx?.(t)}function Ws(t,n){return Object.is(t,n)}function $l(t,n){let e=Object.create(xx);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(ir(e),nr(e),e.value===Dn)throw e.error;return e.value};return i[Dt]=e,qs(e),i}var kr=Symbol("UNSET"),Ar=Symbol("COMPUTING"),Dn=Symbol("ERRORED"),xx=Z(C({},tr),{value:kr,dirty:!0,error:null,equal:Ws,kind:"computed",producerMustRecompute(t){return t.value===kr||t.value===Ar},producerRecomputeValue(t){if(t.value===Ar)throw new Error("");let n=t.value;t.value=Ar;let e=rr(t),i,r=!1;try{i=t.computation(),oe(null),r=n!==kr&&n!==Dn&&i!==Dn&&t.equal(n,i)}catch(o){i=Dn,t.error=o}finally{Nr(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function Tx(){throw new Error}var Mv=Tx;function kv(t){Mv(t)}function Bf(t){Mv=t}var Ix=null;function Hf(t,n){let e=Object.create(Ks);e.value=t,n!==void 0&&(e.equal=n);let i=()=>Av(e);return i[Dt]=e,qs(e),[i,s=>or(e,s),s=>zl(e,s)]}function Av(t){return nr(t),t.value}function or(t,n){jf()||kv(t),t.equal(t.value,n)||(t.value=n,Mx(t))}function zl(t,n){jf()||kv(t),or(t,n(t.value))}var Ks=Z(C({},tr),{equal:Ws,value:void 0,kind:"signal"});function Mx(t){t.version++,Sv(),Vf(t),Ix?.(t)}var $f=Z(C({},tr),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function zf(t){if(t.dirty=!1,t.version>0&&!Gs(t))return;t.version++;let n=rr(t);try{t.cleanup(),t.fn()}finally{Nr(t,n)}}var Gf;function Gl(){return Gf}function ti(t){let n=Gf;return Gf=t,n}var Nv=Symbol("NotFound");function ko(t){return t===Nv||t?.name==="\u0275NotFound"}function qf(t,n,e){let i=Object.create(kx);i.source=t,i.computation=n,e!=null&&(i.equal=e);let o=()=>
vendor: 4,511 bytes, lines 1-3
1{if(ir(i),nr(i),i.value===Dn)throw i.error;return i.value};return o[Dt]=i,qs(i),o}function Wf(t,n){ir(t),or(t,n),Io(t)}function Rv(t,n){if(ir(t),t.value===Dn)throw t.error;zl(t,n),Io(t)}var kx=Z(C({},tr),{value:kr,dirty:!0,error:null,equal:Ws,kind:"linkedSignal",producerMustRecompute(t){return t.value===kr||t.value===Ar},producerRecomputeValue(t){if(t.value===Ar)throw new Error("");let n=t.value;t.value=Ar;let e=rr(t),i,r=!1;try{let o=t.source(),s=n!==kr&&n!==Dn,a=s?{source:t.sourceValue,value:n}:void 0;i=t.computation(o,a),t.sourceValue=o,oe(null),r=s&&i!==Dn&&t.equal(n,i)}catch(o){i=Dn,t.error=o}finally{Nr(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function Ov(t){let n=oe(null);try{return t()}finally{oe(n)}}function ge(t){return typeof t=="function"}function Ao(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ql=Ao(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
2${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(`
3  `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Or(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ct=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(ge(i))try{i()}catch(o){n=o instanceof ql?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{Lv(o)}catch(s){n=n??[],s instanceof ql?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ql(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Lv(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Or(e,n)}remove(n){let{_finalizers:e}=this;e&&Or(e,n),n instanceof t&&n._removeParent(this)}};ct.EMPTY=(()=>{let t=new ct;return t.closed=!0,t})();var Kf=ct.EMPTY;function Wl(t){return t instanceof ct||t&&"closed"in t&&ge(t.remove)&&ge(t.add)&&ge(t.unsubscribe)}function Lv(t){ge(t)?t():t.unsubscribe()}var Rn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var No={setTimeout(t,n,...e){let{delegate:i}=No;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=No;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Kl(t){No.setTimeout(()=>{let{onUnhandledError:n}=Rn;if(n)n(t);else throw t})}function Ys(){}var Pv=Yf("C",void 0,void 0);function Fv(t){return Yf("E",void 0,t)}function Vv(t){return Yf("N",t,void 0)}function Yf(t,n,e){return{kind:t,value:n,error:e}}var Lr=null;function Ro(t){if(Rn.useDeprecatedSynchronousErrorHandling){let n=!Lr;if(n&&(Lr={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=Lr;if(Lr=null,e)throw i}}else t()}function jv(t){Rn.useDeprecatedSynchronousErrorHandling&&Lr&&(Lr.errorThrown=!0,Lr.error=t)}var Pr=class extends ct{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Wl(n)&&n.add(this)):this.destination=Rx}static create(n,e,i){return new xi(n,e,i)}next(n){this.isStopped?Zf(Vv(n),this):this._next(n)}error(n){this.isStopped?Zf(Fv(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Zf(Pv,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Ax=Function.prototype.bind;function Qf(t,n){return Ax.call(t,n)}var Xf=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Yl(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Yl(i)}else Yl(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Yl(e)}}},xi=class extends Pr{constructor(n,e,i){super();let r;if(ge(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;
vendor: 6,081 bytes, line 3
3this&&Rn.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Qf(n.next,o),error:n.error&&Qf(n.error,o),complete:n.complete&&Qf(n.complete,o)}):r=n}this.destination=new Xf(r)}};function Yl(t){Rn.useDeprecatedSynchronousErrorHandling?jv(t):Kl(t)}function Nx(t){throw t}function Zf(t,n){let{onStoppedNotification:e}=Rn;e&&No.setTimeout(()=>e(t,n))}var Rx={closed:!0,next:Ys,error:Nx,complete:Ys};var Oo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Wt(t){return t}function Ql(...t){return Jf(t)}function Jf(t){return t.length===0?Wt:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var he=class t{constructor(n){n&&(this._subscribe=n)}lift(n){let e=new t;return e.source=this,e.operator=n,e}subscribe(n,e,i){let r=Lx(n)?n:new xi(n,e,i);return Ro(()=>{let{operator:o,source:s}=this;r.add(o?o.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(n){try{return this._subscribe(n)}catch(e){n.error(e)}}forEach(n,e){return e=Uv(e),new e((i,r)=>{let o=new xi({next:s=>{try{n(s)}catch(a){r(a),o.unsubscribe()}},error:r,complete:i});this.subscribe(o)})}_subscribe(n){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(n)}[Oo](){return this}pipe(...n){return Jf(n)(this)}toPromise(n){return n=Uv(n),new n((e,i)=>{let r;this.subscribe(o=>r=o,o=>i(o),()=>e(r))})}};he.create=t=>new he(t);function Uv(t){var n;return(n=t??Rn.Promise)!==null&&n!==void 0?n:Promise}function Ox(t){return t&&ge(t.next)&&ge(t.error)&&ge(t.complete)}function Lx(t){return t&&t instanceof Pr||Ox(t)&&Wl(t)}function Px(t){return ge(t?.lift)}function xe(t){return n=>{if(Px(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(t,n,e,i,r){return new ep(t,n,e,i,r)}var ep=class extends Pr{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};var Bv=Ao(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ie=class extends he{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let e=new Zl(this,this);return e.operator=n,e}_throwIfClosed(){if(this.closed)throw new Bv}next(n){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let e of this.currentObservers)e.next(n)}})}error(n){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:e}=this;for(;e.length;)e.shift().error(n)}})}complete(){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:e,isStopped:i,observers:r}=this;return e||i?Kf:(this.currentObservers=null,r.push(n),new ct(()=>{this.currentObservers=null,Or(r,n)}))}_checkFinalizedStatuses(n){let{hasError:e,thrownError:i,isStopped:r}=this;e?n.error(i):r&&n.complete()}asObservable(){let n=new he;return n.source=this,n}};Ie.create=(t,n)=>new Zl(t,n);var Zl=class extends Ie{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Kf}};var St=class extends Ie{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var Qs={now(){return(Qs.delegate||Date).now()},delegate:void 0};var Xl=class extends Ie{constructor(n=1/0,e=1/0,i=Qs){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!n.closed;s+=i?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){let s=e.now(),a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}};var Jl=class extends ct{constructor(n,e){super()}schedule(n,e=0){return this}};var Zs={setInterval(t,n,...e){let{delegate:i}=Zs;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){let{delegate:n}=Zs;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};var ec=class extends Jl{constructor(n,e){super(n,e),this.scheduler
vendor: 10,011 bytes, line 3
3=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return Zs.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return e;e!=null&&Zs.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(n,e);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let i=!1,r;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Or(i,this),n!=null&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}};var Lo=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};Lo.now=Qs.now;var tc=class extends Lo{constructor(n,e=Lo.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var Xs=new tc(ec),Hv=Xs;var xt=new he(t=>t.complete());function nc(t){return t&&ge(t.schedule)}function tp(t){return t[t.length-1]}function ic(t){return ge(tp(t))?t.pop():void 0}function ni(t){return nc(tp(t))?t.pop():void 0}function $v(t,n){return typeof tp(t)=="number"?t.pop():n}function Gv(t,n,e,i){function r(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}function zv(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fr(t){return this instanceof Fr?(this.v=t,this):new Fr(t)}function qv(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(f){return function(_){return Promise.resolve(_).then(f,d)}}function a(f,_){i[f]&&(r[f]=function(E){return new Promise(function(D,M){o.push([f,E,D,M])>1||l(f,E)})},_&&(r[f]=_(r[f])))}function l(f,_){try{c(i[f](_))}catch(E){m(o[0][3],E)}}function c(f){f.value instanceof Fr?Promise.resolve(f.value.v).then(u,d):m(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function m(f,_){f(_),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Wv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof zv=="function"?zv(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var rc=(t=>t&&typeof t.length=="number"&&typeof t!="function");function oc(t){return ge(t?.then)}function sc(t){return ge(t[Oo])}function ac(t){return Symbol.asyncIterator&&ge(t?.[Symbol.asyncIterator])}function lc(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Fx(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var cc=Fx();function uc(t){return ge(t?.[cc])}function dc(t){return qv(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield Fr(e.read());if(r)return yield Fr(void 0);yield yield Fr(i)}}finally{e.releaseLock()}})}function fc(t){return ge(t?.getReader)}function We(t){if(t instanceof he)return t;if(t!=null){if(sc(t))return Vx(t);if(rc(t))return jx(t);if(oc(t))return Ux(t);if(ac(t))return Kv(t);if(uc(t))return Bx(t);if(fc(t))return Hx(t)}throw lc(t)}function Vx(t){return new he(n=>{let e=t[Oo]();if(ge(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function jx(t){return new he(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function Ux(t){return new he(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Kl)})}function Bx(t){return new he(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Kv(t){return new he(n=>{$x(t,n).catch(e=>n.error(e))})}function Hx(t){return Kv(dc(t))}function $x(t,n){var e,i,r,o;return Gv(this,void 0,void 0,function*(){try{for(e=Wv(t);i=yield e.next(),!i.done;){let s=i.value;if(n.next(s),n.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function Xt(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function pc(t,n=0){return xe((e,i)=>{e.subscribe(Te(i,r=>Xt(i,t,()=>i.next(r),n),()=>Xt(i,t,()=>i.complete(),n),r=>Xt(i,t,()=>i.error(r),n)))})}function hc(t,n=0){return xe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function Yv(t,n){return We(t).pipe(hc(n),pc(n))}function Qv(t,n){return We(t).pipe(hc(n),pc(n))}function Zv(t,n){return new he(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function Xv(t,n){return new he(e=>{let i;return Xt(e,n,()=>{i=t[cc](),Xt(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){e.error(s);return}o?e.complete():e.next(r)},0,!0)}),()=>ge(i?.return)&&i.return()})}function mc(t,n){if(!t)throw new Error("Iterable cannot be null");return new he(e=>{Xt(e,n,()=>{let i=t[Symbol.asyncIterator]();Xt(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Jv(t,n){return mc(dc(t),n)}function e0(t,n){if(t!=null){if(sc(t))return Yv(t,n);if(rc(t))return Zv(t,n);if(oc(t))return Qv(t,n);if(ac(t))return mc(t,n);if(uc(t))return Xv(t,n);if(fc(t))return Jv(t,n)}throw lc(t)}function lt(t,n){return n?e0(t,n):We(t)}function ue(...t){let n=ni(t);return lt(t,n)}function Po(t,n){let e=ge(t)?t:()=>t,i=r=>r.error(e());return new he(n?r=>n.schedule(i,0,r):i)}function gc(t){return!!t&&(t instanceof he||ge(t.lift)&&ge(t.subscribe))}var Vr=Ao(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function t0(t){return t instanceof Date&&!isNaN(t)}function Ne(t,n){return xe((e,i)=>{let r=0;e.subscribe(Te(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:zx}=Array;function Gx(t,n){return zx(n)?t(...n):t(n)}function yc(t){return Ne(n=>Gx(t,n))}var{isArray:qx}=Array,{getPrototypeOf:Wx,prototype:Kx,keys:Yx}=Object;function vc(t){if(t.length===1){let n=t[0];if(qx(n))return{args:n,keys:null};if(Qx(n)){let e=Yx(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function Qx(t){return t&&typeof t=="object"&&Wx(t)===Kx}function _c(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function np(...t){let n=ni(t),e=ic(t),{args:i,keys:r}=vc(t);if(i.length===0)return lt([],n);let o=new he(Zx(i,n,r?s=>_c(r,s):Wt));return e?o.pipe(yc(e)):o}function Zx(t,n,e=Wt){return i=>{n0(n,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)n0(n,()=>{let c=lt(t[l],n),u=!1;c.subscribe(Te(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function n0(t,n,e){t?Xt(e,t,n):n()}function i0(t,n,e,i,r,o,s,a){let l=[],c=0,u=0,d=!1,m=()=>{d&&!l.length&&!c&&n.complete()},f=E=>c<i?_(E):l.push(E),_=E=>{o&&n.next(E),c++;let D=!1;We(e(E,u++)).subscribe(Te(n,M=>{r?.(M),o?f(M):n.next(M)},()=>{D=!0},void 0,()=>{if(D)try{for(c--;l.length&&c<i;){let M=l.shift();s?Xt(n,s,()=>_(M)):_(M)}m()}catch(M){n.error(M)}}))};return t.subscribe(Te(n,f,()=>{d=!0,m()})),()=>{a?.()}}function Kt(t,n,e=1/0){return ge(n)?Kt((i,r)=>Ne((o,s)=>n(i,o,r,s))(We(t(i,r))),e):(typeof n=="number"&&(e=n),xe((i,r)=>i0(i,r,t,e)))}function bc(t=1/0){return Kt(Wt,t)}function r0(){return bc(1)}function Fo(...t){return r0()(lt(t,ni(t)))}function Js(t){return new he(n=>{We(t()).subscribe(n)})}function ip(...t){let n=ic(t),{args:e,keys:i}=vc(t),r=new he(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;We(e[u]).subscribe(Te(o,m=>{d||(d=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?_c(i,a):a),o.complete())}))}});return n?r.pipe(yc(n)):r}function Ti(t=0,n,e=Hv){let i=-1;return n!=null&&(nc(n)?e=n:i=n),new he(r=>{let o=t0(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function rp(t=0,n=Xs){return t<0&&(t=0),Ti(t,t,n)}function op(...t){let n=ni(t),e=$v(t,1/0),i=t;return i.length?i.length===1?We(i[0]):bc(e)(lt(i,n)):xt}function ln(t,n){return xe((e,i)=>{let r=0;e.subscribe(Te(i,o=>t.call(n,o,r++)&&i.next(o)))})}function ii(t){return xe((n,e)=>{let i=null,r=!1,o;i=n.subscribe(Te(e,void 0,void 0,s=>{o=We(t(s,ii(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function Vo(t,n){return ge(n)?Kt(t,n,1):Kt(t,1)}function o0(t){return xe((n,e)=>{let i=!1;n.subscribe(Te(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}
vendor: 11,329 bytes, lines 3-4
3))})}function Ii(t){return t<=0?()=>xt:xe((n,e)=>{let i=0;n.subscribe(Te(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function sp(t){return Ne(()=>t)}function jo(t,n=Wt){return t=t??Xx,xe((e,i)=>{let r,o=!0;e.subscribe(Te(i,s=>{let a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function Xx(t,n){return t===n}function s0(t=Jx){return xe((n,e)=>{let i=!1;n.subscribe(Te(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function Jx(){return new Vr}function Uo(t){return xe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Mi(t,n){let e=arguments.length>=2;return i=>i.pipe(t?ln((r,o)=>t(r,o,i)):Wt,Ii(1),e?o0(n):s0(()=>new Vr))}function Ec(t){return t<=0?()=>xt:xe((n,e)=>{let i=[];n.subscribe(Te(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function ap(t=1/0){let n;t&&typeof t=="object"?n=t:n={count:t};let{count:e=1/0,delay:i,resetOnSuccess:r=!1}=n;return e<=0?Wt:xe((o,s)=>{let a=0,l,c=()=>{let u=!1;l=o.subscribe(Te(s,d=>{r&&(a=0),s.next(d)},void 0,d=>{if(a++<e){let m=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(i!=null){let f=typeof i=="number"?Ti(i):We(i(d,a)),_=Te(s,()=>{_.unsubscribe(),m()},()=>{s.complete()});f.subscribe(_)}else m()}else s.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}function a0(t={}){let{connector:n=()=>new Ie,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,u=!1,d=!1,m=()=>{a?.unsubscribe(),a=void 0},f=()=>{m(),s=l=void 0,u=d=!1},_=()=>{let E=s;f(),E?.unsubscribe()};return xe((E,D)=>{c++,!d&&!u&&m();let M=l=l??n();D.add(()=>{c--,c===0&&!d&&!u&&(a=lp(_,r))}),M.subscribe(D),!s&&c>0&&(s=new xi({next:T=>M.next(T),error:T=>{d=!0,m(),a=lp(f,e,T),M.error(T)},complete:()=>{u=!0,m(),a=lp(f,i),M.complete()}}),We(E).subscribe(s))})(o)}}function lp(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new xi({next:()=>{i.unsubscribe(),t()}});return We(n(...e)).subscribe(i)}function cp(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,a0({connector:()=>new Xl(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function up(...t){let n=ni(t);return xe((e,i)=>{(n?Fo(t,e,n):Fo(t,e)).subscribe(i)})}function Ut(t,n){return xe((e,i)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&i.complete();e.subscribe(Te(i,l=>{r?.unsubscribe();let c=0,u=o++;We(t(l,u)).subscribe(r=Te(i,d=>i.next(n?n(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function ki(t){return xe((n,e)=>{We(t).subscribe(Te(e,()=>e.complete(),Ys)),!e.closed&&n.subscribe(e)})}function At(t,n,e){let i=ge(t)||n||e?{next:t,error:n,complete:e}:t;return i?xe((r,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;r.subscribe(Te(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;a=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;a=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;a&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):Wt}function l0(t,n){return xe((e,i)=>{let{leading:r=!0,trailing:o=!1}=n??{},s=!1,a=null,l=null,c=!1,u=()=>{l?.unsubscribe(),l=null,o&&(f(),c&&i.complete())},d=()=>{l=null,c&&i.complete()},m=_=>l=We(t(_)).subscribe(Te(i,u,d)),f=()=>{if(s){s=!1;let _=a;a=null,i.next(_),!c&&m(_)}};e.subscribe(Te(i,_=>{s=!0,a=_,!(l&&!l.closed)&&(r?f():m(_))},()=>{c=!0,!(o&&s&&l&&!l.closed)&&i.complete()}))})}function Cc(t,n=Xs,e){let i=Ti(t,n);return l0(()=>i,e)}var Mc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",S=class extends Error{code;constructor(n,e){super(un(n,e)),this.code=n}};function eT(t){return`NG0${Math.abs(t)}`}function un(t,n){return`${eT(t)}${n?": "+n:""}`}function Ge(t){for(let n in t)if(t[n]===Ge)return n;throw Error("")}function h0(t,n){for(let e in n)Object.hasOwn(n,e)&&!Object.hasOwn(t,e)&&(t[e]=n[e])}function sa(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(sa).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(`
4`);return i>=0?e.slice(0,i):e}function xp(t,n){return t?n?`${t} ${n}`:t:n||""}var tT=Ge({__forward_ref__:Ge});function ri(t){return t.__forward_ref__=ri,t}function Lt(t){return Tp(t)?t():t}function Tp(t){return typeof t=="function"&&Object.hasOwn(t,tT)&&t.__forward_ref__===ri}function A(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Nt(t){return{providers:t.providers||[],imports:t.imports||[]}}function aa(t){return nT(t,kc)}function Ip(t){return aa(t)!==null}function nT(t,n){return Object.hasOwn(t,n)&&t[n]||null}function iT(t){let n=t?.[kc]??null;return n||null}function fp(t){return t&&Object.hasOwn(t,Dc)?t[Dc]:null}var kc=Ge({\u0275prov:Ge}),Dc=Ge({\u0275inj:Ge}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Mp(t){return t&&!!t.\u0275providers}var la=Ge({\u0275cmp:Ge}),ca=Ge({\u0275dir:Ge}),kp=Ge({\u0275pipe:Ge}),Ap=Ge({\u0275mod:Ge}),na=Ge({\u0275fac:Ge}),zr=Ge({__NG_ELEMENT_ID__:Ge}),c0=Ge({__NG_ENV_ID__:Ge});function m0(t){return Nc(t,"@NgModule"),t[Ap]||null}function Gr(t){return Nc(t,"@Component"),t[la]||null}function Ac(t){return Nc(t,"@Directive"),t[ca]||null}function g0(t){return Nc(t,"@Pipe"),t[kp]||null}function Nc(t,n){if(t==null)throw new S(-919,!1)}function Ln(t){return typeof t=="string"?t:t==null?"":String(t)}var y0=Ge({ngErrorCode:Ge}),rT=Ge({ngErrorMessage:Ge}),oT=Ge({ngTokenPath:Ge});function Np(t,n){return v0("",-200,n)}function Rc(t,n){throw new S(-201,!1)}function v0(t,n,e){let i=new S(n,t);return i[y0]=n,i[rT]=t,e&&(i[oT]=e),i}function sT(t){return t[y0]}var pp;function _0(){return pp}function Yt(t){let n=pp;return pp=t,n}function Rp(t,n,e){let i=aa(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;Rc(t,"")}var Qt=globalThis;var aT={},jr=aT,lT="__NG_DI_FLAG__",hp=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=Ur(e)||0;try{return this.injector.get(n,i&8?null:jr,i)}catch(r){if(ko(r))return r;throw r}}};function cT(t,n=0){let e=Gl();if(e===void 0)throw new S(-203,!1);if(e===null)return Rp(t,void 0,n);{let i=uT(n),r=e.retrieve(t,i);if(ko(r)){if(i.optional)return null;throw r}return r}}function K(t,n=0){return(_0()||cT)(Lt(t),n)}function v(t,n){return K(t,Ur(n))}function Ur(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function uT(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function mp(t){let n=[];for(let e=0;e<t.length;e++){let i=Lt(t[e]);if(Array.isArray(i)){if(i.length===0)throw new S(900,!1);let r,o=0;for(let s=0;s<i.length;s++){let a=i[s],l=dT(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}n.push(K(r,o))}else n.push(K(i))}return n}function dT(t){return t[lT]}function ar(t,n){let e=Object.hasOwn(t,na);return e?t[na]:null}function b0(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function E0(t){return t.flat(Number.POSITIVE_INFINITY)}function Oc(t,n){t.forEach(e=>Array.isArray(e)?Oc(e,n):n(e))}function Op(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function ua(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function C0(t,n){let e=[];for(let i=0;i<t;i++)e.push(n);return e}function w0(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(r===1)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function D0(t,n,e){let i=$o(t,n);return i>=0?t[i|1]=e:(i=~i,w0(t,i,n,e)),i}function Lc(t,n){let e=$o(t,n);if(e>=0)return t[e|1]}function $o(t,n){return fT(t,n,1)}function fT(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}var lr={},cn=[],cr=new L(""),da=new L("",-1),Lp=new L(""),Ho=class{get(n,e=jr){if(e===jr){let r=v0("",-201);throw r.name="\u0275NotFound",r}return e}};function Li(t){return{\u0275providers:t}}function Pc(...t){return{\u0275providers:Pp(!0,t),\u0275fromNgModule:!0}}function Pp(t,...n){let e=[],i=new Set,r,o=s=>{e.push(s)};return Oc(n,s=>{let a=s;Sc(a,o,[],i)&&(r||=[],r.push(a))}),r!==void 0&&S0(r,o),e}function S0(t,n){for(let e=0;e<t.length;e++){let{ngModule:i,providers:r}=t[e];Fp(r,o=>{n(o,i)})}}function Sc(t,n,e,i){if(t=Lt(t),!t)return!1;let r=null,o=fp(t),s=!o&&Gr(t);if(!o&&!s){let l=t.ngModule;if(o=fp(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Sc(c,n,e,i)}}else if(o){if(o.imports!=null&&!a){i.add(r);let c;Oc(o.imports,u=>{Sc(u,n,e,i)&&(c||=[],c.push(u))}),c!==void 0&&S0(c,n)}if(!a){let c=ar(r)||(()=>new r);n({provide:r,useFactory:c,deps:cn},r),n({provide:Lp,useValue:r,multi:!0},r),n({provide:cr,useValue:()=>K(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=t;Fp(l,u=>{n(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function Fp(t,n){for(let e of t)Mp(e)&&(e=e.\u0275providers),Array.isArray(e)?Fp(e,n):n(e)}var pT=Ge({provide:String,useValue:Ge});function x0(t){return t!==null&&typeof t=="object"&&pT in t}function hT(t){return!!(t&&t.useExisting)}function mT(t){return!!(t&&t.useFactory)}function Br(t){return typeof t=="function"}function T0(t){return!!t.useClass}var fa=new L(""),wc={},u0={},dp;function pa(){return dp===void 0&&(dp=new Ho),dp}var ut=class{},Hr=class extends ut{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,yp(n,s=>this.processProvider(s)),this.records.set(da,Bo(void 0,this)),r.has("environment")&&this.records.set(ut,Bo(void 0,this));let o=this.records.get(fa);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Lp,cn,{self:!0}))}retrieve(n,e){let i=Ur(e)||0;try{return this.get(n,jr,i)}catch(r){if(ko(r))return r;throw r}}destroy(){ea(this),this._destroyed=!0;let n=oe(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),oe(n)}}onDestroy(n){return ea(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){ea(this);let e=ti(this),i=Yt(void 0),r;try{return n()}finally{ti(e),Yt(i)}}get(n,e=jr,i){if(ea(this),Object.hasOwn(n,c0))return n[c0](this);let r=Ur(i),o,s=ti(this),a=Yt(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let u=bT(n)&&aa(n);u&&this.injectableDefInScope(u)?c=Bo(gp(n),wc):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?pa():this.parent;return e=r&8&&e===jr?null:e,l.get(n,e)}catch(l){let c=sT(l);throw c===-200||c===-201?new S(c,null):l}finally{Yt(a),ti(s)}}
vendor: 8,026 bytes, line 4
4resolveInjectorInitializers(){let n=oe(null),e=ti(this),i=Yt(void 0),r;try{let o=this.get(cr,cn,{self:!0});for(let s of o)s()}finally{ti(e),Yt(i),oe(n)}}toString(){return"R3Injector[...]"}processProvider(n){n=Lt(n);let e=Br(n)?n:Lt(n&&n.provide),i=yT(n);if(!Br(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Bo(void 0,wc,!0),r.factory=()=>mp(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=oe(null);try{if(e.value===u0)throw Np("");return e.value===wc&&(e.value=u0,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&_T(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{oe(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Lt(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function gp(t){let n=aa(t),e=n!==null?n.factory:ar(t);if(e!==null)return e;if(t instanceof L)throw new S(-204,!1);if(t instanceof Function)return gT(t);throw new S(-204,!1)}function gT(t){if(t.length>0)throw new S(-204,!1);let e=iT(t);return e!==null?()=>e.factory(t):()=>new t}function yT(t){if(x0(t))return Bo(void 0,t.useValue);{let n=Vp(t);return Bo(n,wc)}}function Vp(t,n,e){let i;if(Br(t)){let r=Lt(t);return ar(r)||gp(r)}else if(x0(t))i=()=>Lt(t.useValue);else if(mT(t))i=()=>t.useFactory(...mp(t.deps||[]));else if(hT(t))i=(r,o)=>K(Lt(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=Lt(t&&(t.useClass||t.provide));if(vT(t))i=()=>new r(...mp(t.deps));else return ar(r)||gp(r)}return i}function ea(t){if(t.destroyed)throw new S(-205,!1)}function Bo(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function vT(t){return!!t.deps}function _T(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function bT(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function yp(t,n){for(let e of t)Array.isArray(e)?yp(e,n):e&&Mp(e)?yp(e.\u0275providers,n):n(e)}function Tt(t,n){let e;t instanceof Hr?(ea(t),e=t):e=new hp(t);let i,r=ti(e),o=Yt(void 0);try{return n()}finally{ti(r),Yt(o)}}function jp(){return _0()!==void 0||Gl()!=null}var Pn=0,ee=1,de=2,bt=3,Sn=4,Pt=5,qr=6,zo=7,gt=8,oi=9,Fn=10,Ze=11,Go=12,Up=13,ur=14,Bt=15,dr=16,Wr=17,si=18,ai=19,Bp=20,Ai=21,Fc=22,Ni=23,dn=24,Vc=25,Vn=26,ha=27,dt=28,I0=1,Hp=6,Kr=7,ma=8,Yr=9,nt=10;function Pi(t){return Array.isArray(t)&&typeof t[I0]=="object"}function Ht(t){return Array.isArray(t)&&t[I0]===!0}function $p(t){return(t.flags&4)!==0}function Fi(t){return t.componentOffset>-1}function ga(t){return(t.flags&1)===1}function li(t){return!!t.template}function qo(t){return(t[de]&512)!==0}function Qr(t){return(t[de]&256)===256}var Ke=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Ke||{}),ta,$r="svg",jc="math",vp="",d0="*",_p=()=>Object.create(null);function ET(){return ta||(ta=_p(),sr(Ke.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),sr(Ke.STYLE,void 0,[["*",["style"]]]),sr(Ke.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),sr(Ke.URL,jc,[["*",["href","xlink:href"]]]),sr(Ke.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),sr(Ke.URL,$r,[["a",["href","xlink:href"]]]),sr(Ke.ATTRIBUTE_NO_BINDING,$r,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),sr(Ke.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),ta)}function sr(t,n,e){let i=n??vp;for(let[r,o]of e){let s=r.toLowerCase();for(let a of o){let l=a.toLowerCase(),c=ta[l]??=_p(),u=c[i]??=_p();u[s]=t}}}function M0(t,n,e){let r=ET()[n.toLowerCase()];if(!r)return Ke.NONE;let o=t.toLowerCase(),s;if(e){let a=r[e];a&&(s=a[o]??a[d0])}if(s===void 0){let a=r[vp];a&&(s=a[o]??a[d0])}if(s===void 0&&(!e||e===vp)){let a=r[$r];a&&(s=a[o])}return s??Ke.NONE}function Ft(t){for(;Array.isArray(t);)t=t[Pn];return t}function zp(t,n){return Ft(n[t])}function fn(t,n){return Ft(n[t.index])}function Uc(t,n){return t.data[n]}function Gp(t,n){return t[n]}function qp(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function xn(t,n){let e=n[t];return Pi(e)?e:e[Pn]}function k0(t){return(t[de]&4)===4}function Bc(t){return(t[de]&128)===128}function A0(t){return Ht(t[bt])}function Tn(t,n){return n==null?null:t[n]}function Wp(t){t[Wr]=0}function Kp(t){t[de]&1024||(t[de]|=1024,Bc(t)&&Wo(t))}function N0(t,n){for(;t>0;)n=n[ur],t--;return n}function ya(t){return!!(t[de]&9216||t[dn]?.dirty)}function Hc(t){t[Fn].changeDetectionScheduler?.notify(8),t[de]&64&&(t[de]|=1024),ya(t)&&Wo(t)}function Wo(t){t[Fn].changeDetectionScheduler?.notify(0);let n=Ri(t);for(;n!==null&&!(n[de]&8192||(n[de]|=8192,!Bc(n)));)n=Ri(n)}function $c(t,n){if(Qr(t))throw new S(911,!1);t[Ai]===null&&(t[Ai]=[]),t[Ai].push(n)}function R0(t,n){if(t[Ai]===null)return;let e=t[Ai].indexOf(n);e!==-1&&t[Ai].splice(e,1)}function Ri(t){let n=t[bt];return Ht(n)?n[bt]:n}function Yp(t){return t[zo]??=[]}function Qp(t){return t.cleanup??=[]}function O0(t,n,e,i){let r=Yp(n);r.push(e),t.firstCreatePass&&Qp(t).push(i,r.length-1)}var ye={lFrame:G0(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var bp=!1;function L0(){return ye.lFrame.elementDepthCount}function P0(){ye.lFrame.elementDepthCount++}function Zp(){ye.lFrame.elementDepthCount--}function Xp(){return ye.bindingsEnabled}function Jp(){return ye.skipHydrationRootTNode!==null}function eh(t){return ye.skipHydrationRootTNode===t}function th(){ye.skipHydrationRootTNode=null}function se(){return ye.lFrame.lView}function ot(){return ye.lFrame.tView}function V(t){return ye.lFrame.contextLView=t,t[gt]}function j(t){return ye.lFrame.contextLView=null,t}function It(){let t=nh();for(;t!==null&&t.type===64;)t=t.parent;return t}function nh(){return ye.lFrame.currentTNode}function F0(){let t=ye.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function Ko(t,n){let e=ye.lFrame;e.currentTNode=t,e.isParent=n}function ih(){return ye.lFrame.isParent}function rh(){ye.lFrame.isParent=!1}function V0(){return ye.lFrame.contextLView}function oh(){return bp}function ia(t){let n=bp;return bp=t,n}function zc(){let t=ye.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function sh(){return ye.lFrame.bindingIndex}function j0(t){return ye.lFrame.bindingIndex=t}function Vi(){return ye.lFrame.bindingIndex++}function Gc(t){let n=ye.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function U0(){return ye.lFrame.inI18n}function B0(t,n){let e=ye.lFrame;e.bindingIndex=e.bindingRootIndex=t,qc(n)}function H0(){return ye.lFrame.currentDirectiveIndex}function qc(t){ye.lFrame.currentDirectiveIndex=t}function $0(t){let n=ye.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function ah(){return ye.lFrame.currentQueryIndex}function Wc(t){ye.lFrame.currentQueryIndex=t}function CT(t){let n=t[ee];return n.type===2?n.declTNode:n.type===1?t[Pt]:null}function lh(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=CT(o),r===null||(o=o[ur],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=ye.lFrame=z0();return i.currentTNode=n,i.lView=t,!0}function Kc(t){let n=z0(),e=t[ee];ye.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function z0(){let t=ye.lFrame,n=t===null?null:t.child;return n===null?G0(t):n}function G0(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,
vendor: 21,738 bytes, line 4
4selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function q0(){let t=ye.lFrame;return ye.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var ch=q0;function Yc(){let t=q0();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function W0(t){return(ye.lFrame.contextLView=N0(t,ye.lFrame.contextLView))[gt]}function jn(){return ye.lFrame.selectedIndex}function fr(t){ye.lFrame.selectedIndex=t}function Zr(){let t=ye.lFrame;return Uc(t.tView,t.selectedIndex)}function Xe(){ye.lFrame.currentNamespace=$r}function Et(){wT()}function wT(){ye.lFrame.currentNamespace=null}function uh(){return ye.lFrame.currentNamespace}var K0=!0;function Qc(){return K0}function Zc(t){K0=t}function Ep(t,n=null,e=null,i){let r=dh(t,n,e,i);return r.resolveInjectorInitializers(),r}function dh(t,n=null,e=null,i,r=new Set){let o=[e||cn,Pc(t)],s;return new Hr(o,n||pa(),s||null,r)}var wt=class t{static THROW_IF_NOT_FOUND=jr;static NULL=new Ho;static create(n,e){if(Array.isArray(n))return Ep({name:""},e,n,"");{let i=n.name??"";return Ep({name:i},n.parent,n.providers,i)}}static \u0275prov=A({token:t,providedIn:"any",factory:()=>K(da)});static __NG_ELEMENT_ID__=-1},Ee=new L(""),je=class{static __NG_ELEMENT_ID__=DT;static __NG_ENV_ID__=n=>n},xc=class extends je{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Qr(this._lView)}onDestroy(n){let e=this._lView;return $c(e,n),()=>R0(e,n)}};function DT(){return new xc(se())}var fh=!1,Y0=new L(""),Un=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new St(!1);debugTaskTracker=v(Y0,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new he(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=A({token:t,providedIn:"root",factory:()=>new t})}return t})(),Cp=class extends Ie{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,jp()&&(this.destroyRef=v(je,{optional:!0})??void 0,this.pendingTasks=v(Un,{optional:!0})??void 0)}emit(n){let e=oe(null);try{super.next(n)}finally{oe(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return n instanceof ct&&n.add(a),a}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},Ye=Cp;function Tc(...t){}function ph(t){let n,e;function i(){t=Tc;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch(r){}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function Q0(t){return queueMicrotask(()=>t()),()=>{t=Tc}}var hh="isAngularZone",ra=hh+"_ID",ST=0,Ve=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ye(!1);onMicrotaskEmpty=new Ye(!1);onStable=new Ye(!1);onError=new Ye(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=fh}=n;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,IT(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(hh)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new S(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,xT,Tc,Tc);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},xT={};function mh(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function TT(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){ph(()=>{t.callbackScheduled=!1,wp(t),t.isCheckStableRunning=!0,mh(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),wp(t)}function IT(t){let n=()=>{TT(t)},e=ST++;t._inner=t._inner.fork({name:"angular",properties:{[hh]:!0,[ra]:e,[ra+e]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(MT(l))return i.invokeTask(o,s,a,l);try{return f0(t),i.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),p0(t)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return f0(t),i.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!kT(l)&&n(),p0(t)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,wp(t),mh(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function wp(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function f0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function p0(t){t._nesting--,mh(t)}var oa=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ye;onMicrotaskEmpty=new Ye;onStable=new Ye;onError=new Ye;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function MT(t){return Z0(t,"__ignore_ng_zone__")}function kT(t){return Z0(t,"__scheduler_tick__")}function Z0(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var On=class{_console=console;handleError(n){this._console.error("ERROR",n)}};function X0(t){return J0(t)?t:new Dp(t)}function J0(t){return t instanceof Error||typeof t=="object"&&t!==null&&typeof t.name=="string"&&typeof t.message=="string"}var Dp=class extends Error{constructor(n){super(String(n),{cause:n}),this.name="ErrorBoundaryWrappedError"}},pn=new L("",{factory:()=>{let t=v(Ve),n=v(ut),e;return i=>{t.runOutsideAngular(()=>{n.destroyed&&!e?setTimeout(()=>{throw i}):(e??=n.get(On),e.handleError(i))})}}}),e_={provide:cr,useValue:()=>{let t=v(On,{optional:!0})},multi:!0};function B(t,n){let[e,i,r]=Hf(t,n?.equal),o=e,s=o[Dt];return o.set=i,o.update=r,o.asReadonly=Xc.bind(o),o}function Xc(){let t=this[Dt];if(t.readonlyFn===void 0){let n=()=>this();n[Dt]=t,t.readonlyFn=n}return t.readonlyFn}var va=new L("",{factory:()=>AT}),AT="ng";var Jc=new L(""),ji=new L("",{providedIn:"platform",factory:()=>"unknown"}),eu=new L(""),_a=new L("",{factory:()=>v(Ee).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var tu=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=NT}return t})();function NT(){return new tu(se(),It())}var Oi=class{},Yo=new L("",{factory:()=>!0});var nu=new L(""),iu=(()=>{class t{static \u0275prov=A({token:t,providedIn:"root",factory:()=>new Sp})}return t})(),Sp=class{dirtyEffectCount=0;queues=new Map;add(n){this.enqueue(n),this.schedule(n)}schedule(n){n.dirty&&this.dirtyEffectCount++}remove(n){let e=n.zone,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}},Ic=class{[Dt];constructor(n){this[Dt]=n}destroy(){this[Dt].destroy()}};function Qo(t,n){let e=n?.injector??v(wt),i=n?.manualCleanup!==!0?e.get(je):null,r,o=e.get(tu,null,{optional:!0}),s=e.get(Oi);return o!==null?(r=n_(o.view,s,t),i instanceof xc&&i._lView===o.view&&(i=null)):r=LT(t,e.get(iu),s),r.injector=e,i!==null&&(r.onDestroyFns=[i.onDestroy(()=>r.destroy())]),new Ic(r)}var t_=Z(C({},$f),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=ia(!1);try{zf(this)}finally{ia(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=oe(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],oe(t)}}}),RT=Z(C({},t_),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Rr(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),OT=Z(C({},t_),{consumerMarkedDirty(){this.view[de]|=8192,Wo(this.view),this.notifier.notify(13)},destroy(){if(Rr(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[Ni]?.delete(this)}});function n_(t,n,e){let i=Object.create(OT);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.userFn=e,i.fn=i_(i,e),t[Ni]??=new Set,t[Ni].add(i),i.consumerMarkedDirty(i),i}function LT(t,n,e){let i=Object.create(RT);return i.userFn=t,i.fn=i_(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function i_(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}function ba(t){return typeof t=="function"&&t[Dt]!==void 0}function ru(t){return ba(t)&&typeof t.set=="function"}var Ui=(()=>{class t{internalPendingTasks=v(Un);scheduler=v(Oi);errorHandler=v(pn);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();try{e().catch(this.errorHandler).finally(i)}catch(r){this.errorHandler(r),i()}}static \u0275prov=A({token:t,providedIn:"root",factory:()=>new t})}return t})();var Au=Symbol("InputSignalNode#UNSET"),z_=Z(C({},Ks),{transformFn:void 0,applyValueToInputSignal(t,n){or(t,n)}});function ka(t){return{toString:t}.toString()}var Ue=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(Ue||{}),pu=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function G_(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var q_=null,Jt=(()=>{q_=r_;let t=()=>r_;return t.ngInherit=!0,t})();function zT(){return q_}function r_(t){return t.type.prototype.ngOnChanges&&(t.setInput=qT),GT}function GT(){let t=W_(this),n=t?.current;if(n){let e=t.previous;if(e===lr)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function qT(t,n,e,i,r){let o=this.declaredInputs[i],s=W_(t)||WT(t,{previous:lr,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new pu(c&&c.currentValue,e,l===lr),G_(t,n,r,e)}var xh="__ngSimpleChanges__";function W_(t){return Object.hasOwn(t,xh)&&t[xh]||null}function WT(t,n){return t[xh]=n}var o_=[];var Qe=function(t,n=null,e){for(let i=0;i<o_.length;i++){let r=o_[i];r(t,n,e)}};function KT(t,n,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){let s=zT()(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function K_(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),u!=null&&(t.destroyHooks??=[]).push(e,u)}}function cu(t,n,e){Y_(t,n,3,e)}function uu(t,n,e,i){(t[de]&3)===e&&Y_(t,n,e,i)}function gh(t,n){let e=t[de];(e&3)===n&&(e&=16383,e+=1,t[de]=e)}function Y_(t,n,e,i){let r=i!==void 0?t[Wr]&65535:0,o=i??-1,s=n.length-1,a=0;for(let l=r;l<s;l++)if(typeof n[l+1]=="number"){if(a=n[l],i!=null&&a>=i)break}else n[l]<0&&(t[Wr]+=65536),(a<o||o==-1)&&(YT(t,e,n,l),t[Wr]=(t[Wr]&4294901760)+l+2),l++}function s_(t,n){Qe(Ue.LifecycleHookStart,t,n);let e=oe(null);try{n.call(t)}finally{oe(e),Qe(Ue.LifecycleHookEnd,t,n)}}function YT(t,n,e,i){let r=e[i]<0,o=e[i+1],s=r?-e[i]:e[i],a=t[s];r?t[de]>>14<t[Wr]>>16&&(t[de]&3)===n&&(t[de]+=16384,s_(a,o)):s_(a,o)}var Jo=-1,eo=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function QT(t){return(t.flags&8)!==0}function ZT(t){return(t.flags&16)!==0}function XT(t,n,e){let i=0;for(;i<e.length;){let r=e[i];if(typeof r=="number"){if(r!==0)break;i++;let o=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,o)}else{let o=r,s=e[++i];JT(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),i++}}return i}function Q_(t){return t===3||t===4||t===6}function JT(t){return t.charCodeAt(0)===64}function es(t,n){if(!(n===null||n.length===0))if(t===null||t.length===0)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){let r=n[i];typeof r=="number"?e=r:e===0||(e===-1||e===2?a_(t,e,r,null,n[++i]):a_(t,e,r,null,null))}}return t}function a_(t,n,e,i,r){let o=0,s=t.length;if(n===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===n){s=-1;break}else if(a>n){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===e){r!==null&&(t[o+1]=r);return}o++,r!==null&&o++}s!==-1&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),r!==null&&t.splice(o++,0,r)}function Z_(t){return t!==Jo}function hu(t){return t&32767}function eI(t){return t>>16}function mu(t,n){let e=eI(t),i=n;for(;e>0;)i=i[ur],e--;return i}var Th=!0;function gu(t){let n=Th;return Th=t,n}var tI=256,X_=tI-1,J_=5,nI=0,ci={};function iI(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:Object.hasOwn(e,zr)&&(i=e[zr]),i==null&&(i=e[zr]=nI++);let r=i&X_,o=1<<r;n.data[t+(r>>J_)]|=o}function yu(t,n){let e=eb(t,n);if(e!==-1)return e;let i=n[ee];i.firstCreatePass&&(t.injectorIndex=n.length,yh(i.data,t),yh(n,null),yh(i.blueprint,null));let r=am(t,n),o=t.injectorIndex;if(Z_(r)){let s=hu(r),a=mu(r,n),l=a[ee].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function yh(t,n){t.push(0,0,0,0,0,0,0,0,n)}function eb(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function am(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=ob(r),i===null)return Jo;if(e++,r=r[ur],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return Jo}function Ih(t,n,e){iI(t,n,e)}function rI(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r<i;){let o=e[r];if(Q_(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<i&&typeof e[r]=="string";)r++;else{if(o===n)return e[r+1];r=r+2}}}return null}function tb(t,n,e){if(e&8||t!==void 0)return t;Rc(n,"NodeInjector")}function nb(t,n,e,i){if(e&8&&i===void 0&&(i=null),(e&3)===0){let r=t[oi],o=Yt(void 0);try{return r?r.get(n,i,e&8):Rp(n,i,e&8)}finally{Yt(o)}}return tb(i,n,e)}function ib(t,n,e,i=0,r){if(t!==null){if(n[de]&2048&&!(i&2)){let s=lI(t,n,e,i,ci);if(s!==ci)return s}let o=rb(t,n,e,i,ci);if(o!==ci)return o}return nb(n,e,i,r)}function rb(t,n,e,i,r){let o=sI(e);if(typeof o=="function"){if(!lh(n,t,i))return i&1?tb(r,e,i):nb(n,e,i,r);try{let s;if(s=o(i),s==null&&!(i&8))Rc(e);else return s}finally{ch()}}else if(typeof o=="number"){let s=null,a=eb(t,n),l=Jo,c=i&1?n[Bt][Pt]:null;for((a===-1||i&4)&&(l=a===-1?am(t,n):n[a+8],l===Jo||!c_(i,!1)?a=-1:(s=n[ee],a=hu(l),n=mu(l,n)));a!==-1;){let u=n[ee];if(l_(o,a,u.data)){let d=oI(a,n,e,s,i,c);if(d!==ci)return d}l=n[a+8],l!==Jo&&c_(i,n[ee].data[a+8]===c)&&l_(o,a,n)?(s=u,a=hu(l),n=mu(l,n)):a=-1}}return r}function oI(t,n,e,i,r,o){let s=n[ee],a=s.data[t+8],l=i==null?Fi(a)&&Th:i!=s&&(a.type&3)!==0,c=r&1&&o===a,u=du(a,s,e,l,c);return u!==null?wa(n,s,u,a,r):ci}function du(t,n,e,i,r){let o=t.providerIndexes,s=n.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,u=o>>20,d=i?a:a+u,m=r?a+u:c;for(let f=d;f<m;f++){let _=s[f];if(f<l&&e===_||f>=l&&_.type===e)return f}if(r){let f=s[l];if(f&&li(f)&&f.type===e)return l}return null}function wa(t,n,e,i,r){let o=t[e],s=n.data;if(o instanceof eo){let a=o;if(a.resolving)throw Np("");let l=gu(a.canSeeViewProviders);a.resolving=!0;let c=s[e].type||s[e],u,d=a.injectImpl?Yt(a.injectImpl):null,m=lh(t,i,0);try{o=t[e]=a.factory(void 0,r,s,t,i),n.firstCreatePass&&e>=i.directiveStart&&KT(e,s[e],n)}finally{d!==null&&Yt(d),gu(l),a.resolving=!1,ch()}}return o}function sI(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=Object.hasOwn(t,zr)?t[zr]:void 0;return typeof n=="number"?n>=0?n&X_:aI:n}function l_(t,n,e){let i=1<<t;return!!(e[n+(t>>J_)]&i)}function c_(t,n){return!(t&2)&&!(t&1&&n)}var Bi=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return ib(this._tNode,this._lView,n,Ur(i),e)}};function aI(){return new Bi(It(),se())}function ui(t){return ka(()=>{let n=t.prototype.constructor,e=n[na]||Mh(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[na]||Mh(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Mh(t){return Tp(t)?()=>{let n=Mh(Lt(t));return n&&n()}:ar(t)}function lI(t,n,e,i,r){let o=t,s=n;for(;o!==null&&s!==null&&s[de]&2048&&!qo(s);){let a=rb(o,s,e,i|2,ci);if(a!==ci)return a;i&=-5;let l=o.parent;if(!l){let c=s[Bp];if(c){let u=c.get(e,ci,i);if(u!==ci)return u}l=ob(s),s=s[ur]}o=l}return r}function ob(t){let n=t[ee],e=n.type;return e===2?n.declTNode:e===1?t[Pt]:null}function Aa(t){return rI(It(),t)}function Re(t){return{token:t.token,providedIn:t.autoProvided===!1?null:"root",factory:t.factory,value:void 0}}function cI(){return os(It(),se())}function os(t,n){return new Mt(fn(t,n))}var Mt=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=cI}return t})();function uI(t){return t instanceof Mt?t.nativeElement:t}function dI(){return this._results[Symbol.iterator]()}var vu=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Ie}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let i=E0(n);(this._changesDetected=!b0(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=dI};
vendor: 12,307 bytes, line 4
4function sb(t){return(t.flags&128)===128}var lm=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(lm||{}),ab=new Map,fI=0;function pI(){return fI++}function hI(t){ab.set(t[ai],t)}function kh(t){ab.delete(t[ai])}var u_="__ngContext__";function ts(t,n){Pi(n)?(t[u_]=n[ai],hI(n)):t[u_]=n}function lb(t){return ub(t[Go])}function cb(t){return ub(t[Sn])}function ub(t){for(;t!==null&&!Ht(t);)t=t[Sn];return t}var Ah;function cm(t){Ah=t}function um(){if(Ah!==void 0)return Ah;if(typeof document<"u")return document;throw new S(210,!1)}var db="r";var fb="di";var dm=new L(""),pb=!1,hb=new L("",{factory:()=>pb});var d_=new WeakMap;function mI(t,n){if(t==null||typeof t!="object")return;let e=d_.get(t);e||(e=new WeakSet,d_.set(t,e)),e.add(n)}var gI=(t,n,e,i)=>{};function yI(t,n,e,i){gI(t,n,e,i)}function Nu(t){return(t.flags&32)===32}var vI=()=>null;function mb(t,n,e=!1){return vI(t,n,e)}function gb(t,n){let e=t.contentQueries;if(e!==null){let i=oe(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],s=e[r+1];if(s!==-1){let a=t.data[s];Wc(o),a.contentQueries(2,n[s],s)}}}finally{oe(i)}}}function Nh(t,n,e){Wc(0);let i=oe(null);try{n(t,e)}finally{oe(i)}}function yb(t,n,e){if($p(n)){let i=oe(null);try{let r=n.directiveStart,o=n.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=e[s];a.contentQueries(1,l,s)}}}finally{oe(i)}}}var Hn=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(Hn||{});var _I={"http://www.w3.org/2000/svg":$r,"http://www.w3.org/1998/Math/MathML":jc},ou;function bI(){if(ou===void 0&&(ou=null,Qt.trustedTypes))try{ou=Qt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return ou}function Ru(t){return bI()?.createHTML(t)||t}var su;function vb(){if(su===void 0&&(su=null,Qt.trustedTypes))try{su=Qt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return su}function f_(t){return vb()?.createHTML(t)||t}function p_(t){return vb()?.createScriptURL(t)||t}var Hi=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mc})`}},Rh=class extends Hi{getTypeName(){return"HTML"}},Oh=class extends Hi{getTypeName(){return"Style"}},Lh=class extends Hi{getTypeName(){return"Script"}},Ph=class extends Hi{getTypeName(){return"URL"}},Fh=class extends Hi{getTypeName(){return"ResourceURL"}};function hn(t){return t instanceof Hi?t.changingThisBreaksApplicationSecurity:t}function di(t,n){let e=_b(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Mc})`)}return e===n}function _b(t){return t instanceof Hi&&t.getTypeName()||null}function fm(t){return new Rh(t)}function pm(t){return new Oh(t)}function hm(t){return new Lh(t)}function mm(t){return new Ph(t)}function gm(t){return new Fh(t)}function EI(t){let n=new jh(t);return CI()?new Vh(n):n}var Vh=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{let e=new window.DOMParser().parseFromString(Ru(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch(e){return null}}},jh=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Ru(n),e}};function CI(){try{return!!new window.DOMParser().parseFromString(Ru(""),"text/html")}catch(t){return!1}}var wI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Na(t){return t=String(t),t.match(wI)?t:"unsafe:"+t}function zi(t){let n=Object.create(null);for(let e of t.split(","))n[e]=!0;return n}function Ra(...t){let n=Object.create(null);for(let e of t)for(let i in e)Object.hasOwn(e,i)&&(n[i]=!0);return n}var bb=zi("area,br,col,hr,img,wbr"),Eb=zi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Cb=zi("rp,rt"),DI=Ra(Cb,Eb),SI=Ra(Eb,zi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),xI=Ra(Cb,zi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),h_=Ra(bb,SI,xI,DI),wb=zi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),TI=zi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),II=zi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),MI=Ra(wb,TI,II),kI=zi("script,style,template"),Uh=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=RI(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=NI(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=m_(n).toLowerCase();if(!Object.hasOwn(h_,e))return this.sanitizedSomething=!0,!Object.hasOwn(kI,e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r<i.length;r++){let o=i.item(r),s=o.name,a=s.toLowerCase();if(!Object.hasOwn(MI,a)){this.sanitizedSomething=!0;continue}let l=o.value;wb[a]&&(l=Na(l)),this.buf.push(" ",s,'="',g_(l),'"')}return this.buf.push(">"),!0}endElement(n){let e=m_(n).toLowerCase();Object.hasOwn(h_,e)&&!Object.hasOwn(bb,e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(g_(n))}};function AI(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function NI(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw Db(n);return n}function RI(t){let n=t.firstChild;if(n&&AI(t,n))throw Db(n);return n}function m_(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function Db(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var OI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LI=/([^\#-~ |!])/g;function g_(t){return t.replace(/&/g,"&amp;").replace(OI,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(LI,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var au;function Ou(t,n){let e=null;try{au=au||EI(t);let i=n?String(n):"";e=au.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=au.getInertBodyElement(i)}while(i!==o);let a=new Uh().sanitizeChildren(y_(e)||e);return Ru(a)}finally{if(e){let i=y_(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function y_(t){return"content"in t&&PI(t)?t.content:null}function PI(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}function FI(t,n){return t.createText(n)}function VI(t,n,e){t.setValue(n,e)}function Sb(t,n,e){return t.createElement(n,e)}function Xr(t,n,e,i,r){t.insertBefore(n,e,i,r)}function xb(t,n,e){t.appendChild(n,e)}function v_(t,n,e,i,r){i!==null?Xr(t,n,e,i,r):xb(t,n,e)}function Tb(t,n,e,i){t.removeChild(null,n,e,i)}function jI(t,n,e){t.setAttribute(n,"style",e)}function UI(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function Ib(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&XT(t,n,i),r!==null&&UI(t,n,r),o!==null&&jI(t,n,o)}function BI(t,n=!0){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1){if(n)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,e),t.slice(e+1)]}function fi(t,n,e){if(n!==void 0&&e!==void 0&&kb(n,e)!==Ke.HTML)return t;let i=vm();return i?f_(i.sanitize(Ke.HTML,t)||""):di(t,"HTML")?f_(hn(t)):Ou(um(),Ln(t))}function ve(t){let n=vm();return n?n.sanitize(Ke.URL,t)||"":di(t,"URL")?hn(t):Na(Ln(t))}function Mb(t){let n=vm();if(n)return p_(n.sanitize(Ke.RESOURCE_URL,t)||"");if(di(t,"ResourceURL"))return p_(hn(t));throw new S(904,!1)}function HI(t,n){switch(kb(t,n)){case Ke.RESOURCE_URL:return Mb;case Ke.URL:return ve;default:return null}}function ym(t,n,e){return HI(n,e)?.(t)??t}function vm(){let t=se();return t&&t[Fn].sanitizer}function kb(t,n){let[e,i]=$I(t);return M0(i,n,e)}function $I(t){t=t.toLowerCase();let n=BI(t,!1);if(n[0])return n;let i=jn()===-1?null:Zr(),r=i?.namespace;if(t==="#host"&&i?.type===2){let o=fn(i,se());if(o.tagName&&(t=o.tagName.toLowerCase()),r==null){let s=o.namespaceURI;r=s&&_I[s]}}return[r,t]}function _m(t){return t.ownerDocument.defaultView}function zI(t){return t instanceof Function?t():t}function GI(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var Ab="ng-template";function qI(t,n,e,i){let r=0;if(i){for(;r<n.length&&typeof n[r]=="string";r+=2)if(n[r]==="class"&&GI(n[r+1].toLowerCase(),e,0)!==-1)return!0}else if(bm(t))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&typeof(o=n[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function bm(t){return t.type===4&&t.value!==Ab}function WI(t,n,e){let i=t.type===4&&!e?Ab:t.value;return n===i}function KI(t,n,e){let i=4,r=t.attrs,o=r!==null?ZI(r):0,s=!1;for(let a=0;a<n.length;a++){let l=n[a];if(typeof l=="number"){if(!s&&!Bn(i)&&!Bn(l))return!1;if(s&&Bn(l))continue;s=!1,i=l|i&1;continue}if(!s)if(i&4){if(i=2|i&1,l!==""&&!WI(t,l,e)||l===""&&n.length===1){if(Bn(i))return!1;s=!0}}else if(i&8){if(r===null||!qI(t,r,l,e)){if(Bn(i))return!1;s=!0}}else{let c=n[++a],u=YI(l,r,bm(t),e);if(u===-1){if(Bn(i))return!1;s=!0;continue}if(c!==""){let d;if(u>o?d="":d=r[u+1].toLowerCase(),i&2&&c!==d){if(Bn(i))return!1;s=!0}}}}return Bn(i)||s}function Bn(t){return(t&1)===0}function YI(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){let s=n[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=n[++r];for(;typeof a=="string";)a=n[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return XI(n,t)}function Nb(t,n,e=!1){for(let i=0;i<n.length;i++)if(KI(t,n[i],e))return!0;return!1}function QI(t){let n=t.attrs;if(n!=null){let e=n.indexOf(5);if((e&1)===0)return n[e+1]}return null}function ZI(t){for(let n=0;n<t.length;n++){let e=t[n];if(Q_(e))return n}return t.length}function XI(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let i=t[e];if(typeof i=="number")return-1;if(i===n)return e;e++}return-1}function JI(t,n){e:for(let e=0;e<n.length;e++){let i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function __(t,n){return t?":not("+n.trim()+")":n}function eM(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let s=t[e];if(typeof s=="string")if(i&2){let a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else i&8?r+="."+s:i&4&&(r+=" "+s);
4else r!==""&&!Bn(s)&&(n+=__(o,r),r=""),i=s,o=o||!Bn(i);e++}return r!==""&&(n+=__(o,r)),n}function tM(t){return t.map(eM).join(",")}function nM(t){let n=[],e=[],i=1,r=2;for(;i<t.length;){let o=t[i];if(typeof o=="string")r===2?o!==""&&n.push(o,t[++i]):r===8&&e.push(o);else{if(!Bn(r))break;r=o}i++}return e.length&&n.push(1,...e),n}var Zt={},$n=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})($n||{}),iM;function Em(t,n){return iM(t,n)}var pr=new Set;var j8=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Bh=new WeakMap;function Rb(t){return t?t[ur]??t:null}var Zo=new WeakSet;function rM(t,n,e){let i=Bh.get(t);if(!i||i.length===0)return;let r=n.parentNode,o=n.previousSibling,s=Rb(e);for(let a=i.length-1;a>=0;a--){let{el:l,declarationView:c}=i[a],u=l.parentNode;l===n?(i.splice(a,1),Zo.add(l),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):o&&l===o?(i.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l)):u&&r&&u!==r&&(s===null||c===null||s===c)&&(i.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l))}}function oM(t,n,e){let i=Rb(e),r=Bh.get(t);r?r.some(o=>o.el===n)||r.push({el:n,declarationView:i}):Bh.set(t,[{el:n,declarationView:i}])}var Cm=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Cm||{}),Gi=new L(""),b_=new Set;function In(t){b_.has(t)||(b_.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Ob=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=A({token:t,providedIn:"root",factory:()=>new t})}return t})();var wm=new L("",{factory:()=>{let t=v(ut),n=new Set;return t.onDestroy(()=>n.clear()),{queue:n,isScheduled:!1,scheduler:null,injector:t}}});
4function Lb(t,n,e){let i=t.get(wm);if(Array.isArray(n))for(let r of n)i.queue.add(r),e?.detachedLeaveAnimationFns?.push(r);else i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);i.scheduler&&i.scheduler(t)}function sM(t,n){let e=t.get(wm);if(Array.isArray(n))for(let i of n)e.queue.delete(i);else e.queue.delete(n)}function aM(t,n){let e=t.get(wm);if(n.detachedLeaveAnimationFns){for(let i of n.detachedLeaveAnimationFns)e.queue.delete(i);n.detachedLeaveAnimationFns=void 0}}function lM(t,n){for(let[e,i]of n)Lb(t,i.animateFns)}function E_(t,n,e,i){let r=t?.[Vn]?.enter;n!==null&&r&&r.has(e.index)&&lM(i,r)}function C_(t,n,e,i){try{e.get(da)}catch(s){return i(!1)}let r=t?t[Vn]??={}:void 0;r?.enter?.has(n.index)&&sM(e,r.enter.get(n.index).animateFns);let o=cM(t,n,r);if(o.size===0&&!(t?Dm(t,n):!1))return i(!1);t&&pr.add(t[ai]),Lb(e,()=>uM(t,n,r,o,i),r)}function cM(t,n,e){let i=new Map,r=e?.leave;if(r&&r.has(n.index)&&i.set(n.index,r.get(n.index)),t&&r)for(let[o,s]of r){if(i.has(o))continue;let l=t[ee].data[o].parent;for(;l;){if(l===n){i.set(o,s);break}l=l.parent}}return i}function uM(t,n,e,i,r){let o=[];if(e&&e.leave)for(let[s]of i){if(!e.leave.has(s))continue;let a=e.leave.get(s);for(let l of a.animateFns){let{promise:c}=l();o.push(c)}e.detachedLeaveAnimationFns=void 0}if(t&&Sm(t,n,o),o.length>0){let s=e||t?.[Vn];if(s){let a=s.running;a&&o.push(a),s.running=Promise.allSettled(o),pM(t,s.running,r)}else Promise.allSettled(o).then(()=>{t&&pr.delete(t[ai]),r(!0)})}else t&&pr.delete(t[ai]),r(!1)}function Dm(t,n){if(n.type&12){let i=t[n.index];if(Ht(i))for(let r=nt;r<i.length;r++){let o=i[r];if(o[ee].type===2&&dM(o))return!0}}let e=n.child;for(;e;){if(Dm(t,e))return!0;e=e.next}return!1}function dM(t){let n=t[Vn];if(n?.leave&&n.leave.size>0)return!0;let e=t[ee].firstChild;for(;e;){if(Dm(t,e))return!0;e=e.next}return!1}function Sm(t,n,e){if(n.type&12){let r=t[n.index];if(Ht(r))for(let o=nt;o<r.length;o++){let s=r[o];s[ee].type===2&&fM(s,e)}}let i=n.child;for(;i;)Sm(t,i,e),i=i.next}function fM(t,n){let e=t[Vn];if(e&&e.leave)for(let r of e.leave.values())for(let o of r.animateFns){let{promise:s}=o();n.push(s)}let i=t[ee].firstChild;for(;i;)Sm(t,i,n),i=i.next}function pM(t,n,e){n.then(()=>{t[Vn]?.running===n&&(t[Vn].running=void 0,pr.delete(t[ai])),e(!0)})}function Pb(t){let n=t[Vn]??={};n.detachedLeaveAnimationFns=[];let e=t[ee].firstChild;for(;e;)Fb(t,e),e=e.next}function Fb(t,n){if(n.type&12){let i=t[n.index];if(Ht(i))for(let r=nt;r<i.length;r++){let o=i[r];o[ee].type===2&&Pb(o)}}let e=n.child;for(;e;)Fb(t,e),e=e.next}function Vb(t){let n=t[Vn];if(n&&n.detachedLeaveAnimationFns&&n.detachedLeaveAnimationFns.length>0){let i=t[oi];aM(i,n),pr.delete(t[ai]),n.detachedLeaveAnimationFns=void 0}else n&&(n.detachedLeaveAnimationFns=void 0);let e=t[ee].firstChild;for(;e;)jb(t,e),e=e.next}function jb(t,n){if(n.type&12){let i=t[n.index];if(Ht(i))for(let r=nt;r<i.length;r++){let o=i[r];o[ee].type===2&&Vb(o)}}let e=n.child;for(;e;)jb(t,e),e=e.next}function Xo(t,n,e,i,r,o,s,a){if(r!=null){let l,c=!1;Ht(r)?l=r:Pi(r)&&(c=!0,r=r[Pn]);let u=Ft(r);t===0&&i!==null?(E_(a,i,o,e),s==null?xb(n,i,u):Xr(n,i,u,s||null,!0)):t===1&&i!==null?(Xr(n,i,u,s||null,!0),rM(o,u,a),Zo.has(u)||E_(a,i,o,e)):t===2?(a?.[Vn]?.leave?.has(o.index)&&oM(o,u,a),Zo.delete(u),C_(a,o,e,d=>{if(Zo.has(u)){Zo.delete(u);return}Tb(n,u,c,d)})):t===3&&(Zo.delete(u),C_(a,o,e,()=>{n.destroyNode(u)})),l!=null&&DM(n,t,e,l,o,i,s)}}function hM(t,n){Ub(t,n),n[Pn]=null,n[Pt]=null}function mM(t,n,e,i,r,o){i[Pn]=r,i[Pt]=n,Pu(t,i,e,1,r,o)}function Ub(t,n){n[Fn].changeDetectionScheduler?.notify(9),Pu(t,n,n[Ze],2,null,null)}function gM(t){let n=t[Go];if(!n)return vh(t[ee],t);for(;n;){let e=null;if(Pi(n))e=n[Go];else{let i=n[nt];i&&(e=i)}if(!e){for(;n&&!n[Sn]&&n!==t;)Pi(n)&&vh(n[ee],n),n=n[bt];n===null&&(n=t),Pi(n)&&vh(n[ee],n),e=n&&n[Sn]}n=e}}function xm(t,n){let e=t[Yr],i=e.indexOf(n);e.splice(i,1)}function Lu(t,n){if(Qr(n))return;let e=n[Ze];e.destroyNode&&Pu(t,n,e,3,null,null),gM(n)}function vh(t,n){if(Qr(n))return;let e=oe(null);try{n[de]&=-129,n[de]|=256,n[dn]&&Rr(n[dn]),vM(t,n),yM(t,n),n[ee].type===1&&n[Ze].destroy();let i=n[dr];if(i!==null&&Ht(n[bt])){i!==n[bt]&&xm(i,n);let r=n[si];r!==null&&r.detachView(t)}kh(n)}finally{oe(e)}}function yM(t,n){let e=t.cleanup,i=n[zo];if(e!==null)for(let s=0;s<e.length-1;s+=2)if(typeof e[s]=="string"){let a=e[s+3];a>=0?i[a]():i[-a].unsubscribe(),s+=2}else{let a=i[e[s+1]];e[s].call(a)}i!==null&&(n[zo]=null);let r=n[Ai];if(r!==null){n[Ai]=null;for(let s=0;s<r.length;s++){let a=r[s];a()}}let o=n[Ni];if(o!==null){n[Ni]=null;for(let s of o)s.destroy()}}function vM(t,n){let e;
vendor: 8,327 bytes, line 4
4if(t!=null&&(e=t.destroyHooks)!=null)for(let i=0;i<e.length;i+=2){let r=n[e[i]];if(!(r instanceof eo)){let o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],l=o[s+1];Qe(Ue.LifecycleHookStart,a,l);try{l.call(a)}finally{Qe(Ue.LifecycleHookEnd,a,l)}}else{Qe(Ue.LifecycleHookStart,r,o);try{o.call(r)}finally{Qe(Ue.LifecycleHookEnd,r,o)}}}}}function Bb(t,n,e){if(n===null)throw new S(510,!1);return _M(t,n.parent,e)}function _M(t,n,e){let i=n;for(;i!==null&&i.type&168;)n=i,i=n.parent;if(i===null)return e[Pn];if(Fi(i)){let{encapsulation:r}=t.data[i.directiveStart+i.componentOffset];if(r===Hn.None||r===Hn.Emulated)return null}return fn(i,e)}function Hb(t,n,e){return EM(t,n,e)}function bM(t,n,e){return t.type&40?fn(t,e):null}var EM=bM,w_;function Tm(t,n,e,i){let r=Bb(t,i,n),o=n[Ze],s=i.parent||n[Pt],a=Hb(s,i,n);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)v_(o,r,e[l],a,!1);else v_(o,r,e,a,!1);w_!==void 0&&w_(o,i,n,e,r)}function Ea(t,n){if(n!==null){let e=n.type;if(e&3)return fn(n,t);if(e&4)return Hh(-1,t[n.index]);if(e&8){let i=n.child;if(i!==null)return Ea(t,i);{let r=t[n.index];return Ht(r)?Hh(-1,r):Ft(r)}}else{if(e&128)return Ea(t,n.next);if(e&32)return Em(n,t)()||Ft(t[n.index]);{let i=$b(t,n);if(i!==null){if(Array.isArray(i))return i[0];let r=Ri(t[Bt]);return Ea(r,i)}else return Ea(t,n.next)}}}return null}function $b(t,n){if(n!==null){let i=t[Bt][Pt],r=n.projection;return i.projection[r]}return null}function Hh(t,n){let e=nt+t+1;if(e<n.length){let i=n[e],r=i[ee].firstChild;if(r!==null)return Ea(i,r)}return n[Kr]}function Im(t,n,e,i,r,o,s){for(;e!=null;){let a=i[oi];if(e.type===128){e=e.next;continue}let l=i[e.index],c=e.type;if(s&&n===0&&(l&&ts(Ft(l),i),e.flags|=2),!Nu(e))if(c&8)Im(t,n,e.child,i,r,o,!1),Xo(n,t,a,r,l,e,o,i);else if(c&32){let u=Em(e,i),d;for(;d=u();)Xo(n,t,a,r,d,e,o,i);Xo(n,t,a,r,l,e,o,i)}else c&16?zb(t,n,i,e,r,o):Xo(n,t,a,r,l,e,o,i);e=s?e.projectionNext:e.next}}function Pu(t,n,e,i,r,o){t.type===3?CM(e,i,n,r,o):Im(e,i,t.firstChild,n,r,o,!1)}function CM(t,n,e,i,r){let s=e[ee].firstChild,a=s.next,l=Ft(e[s.index]),c=Ft(e[a.index]),u=a.index+1,d=e[u];if(n===1||n===0)i!==null&&(d&&d.hasChildNodes()?Xr(t,i,d,r,!0):(Xr(t,i,l,r,!0),Xr(t,i,c,r,!0)));else if(n===2){if(d||(d=document.createDocumentFragment(),e[u]=d),l&&l.parentNode===d)return;let m=l;for(;m!==null;){let f=m.nextSibling;if(d.appendChild(m),m===c)break;m=f}}}function wM(t,n,e){let i=n[Ze],r=Bb(t,e,n),o=e.parent||n[Pt],s=Hb(o,e,n);zb(i,0,n,e,r,s)}function zb(t,n,e,i,r,o){let s=e[Bt],l=s[Pt].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];Xo(n,t,e[oi],r,u,i,o,e)}else{let c=l,u=s[bt];sb(i)&&(c.flags|=128),Im(t,n,c,u,r,o,!0)}}function DM(t,n,e,i,r,o,s){let a=i[Kr],l=Ft(i);if(a!==l&&Xo(n,t,e,o,a,r,s),(i[de]&4)===0)for(let c=nt;c<i.length;c++){let u=i[c];Pu(u[ee],u,t,n,o,a)}}function SM(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=i.indexOf("-")===-1?void 0:$n.DashCase;r==null?t.removeStyle(e,i,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=$n.Important),t.setStyle(e,i,r,o))}}function Mm(t,n,e,i,r,o,s,a,l,c,u){let d=dt+i,m=d+r,f=xM(d,m),_=typeof c=="function"?c():c;return f[ee]={type:t,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:m,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:_,incompleteFirstPass:!1,ssrId:u}}function xM(t,n){let e=[];for(let i=0;i<n;i++)e.push(i<t?null:Zt);return e}function TM(t){let n=t.tView;return n===null||n.incompleteFirstPass?t.tView=Mm(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function km(t,n,e,i,r,o,s,a,l,c,u){let d=n.blueprint.slice();return d[Pn]=r,d[de]=i|4|128|8|64|1024,(c!==null||t&&t[de]&2048)&&(d[de]|=2048),Wp(d),d[bt]=d[ur]=t,d[gt]=e,d[Fn]=s||t&&t[Fn],d[Ze]=a||t&&t[Ze],d[oi]=l||t&&t[oi]||null,d[Pt]=o,d[ai]=pI(),d[qr]=u,d[Bp]=c,d[Bt]=n.type==2?t[Bt]:d,d}function IM(t,n,e){let i=fn(n,t),r=TM(e),o=t[Fn].rendererFactory,s=Am(t,km(t,r,null,Gb(e),i,n,null,o.createRenderer(i,e),null,null,null));return t[n.index]=s}function Gb(t){let n=16;return t.signals?n=4096:t.onPush&&(n=64),n}function qb(t,n,e,i){if(e===0)return-1;let r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function Am(t,n){return t[Go]?t[Up][Sn]=n:t[Go]=n,t[Up]=n,n}function y(t=1){Wb(ot(),se(),jn()+t,!1)}function Wb(t,n,e,i){if(!i)if((n[de]&3)===3){let o=t.preOrderCheckHooks;o!==null&&cu(n,o,e)}else{let o=t.preOrderHooks;o!==null&&uu(n,o,0,e)}fr(e)}var Oa=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(Oa||{});function to(t,n,e,i){let r=oe(null);try{let[o,s,a]=t.inputs[e],l=null;(s&Oa.SignalBased)!==0&&(l=n[o][Dt]),l!==null&&l.transformFn!==void 0?i=l.transformFn(i):a!==null&&(i=a.call(n,i)),t.setInput!==null?t.setInput(n,l,i,e,o):G_(n,l,o,i)}finally{oe(r)}}function Kb(t,n,e,i,r){let o=jn(),s=i&2;try{fr(-1),s&&n.length>dt&&Wb(t,n,dt,!1);let a=s?Ue.TemplateUpdateStart:Ue.TemplateCreateStart;Qe(a,r,e),e(i,r)}finally{fr(o);let a=s?Ue.TemplateUpdateEnd:Ue.TemplateCreateEnd;Qe(a,r,e)}}function Nm(t,n,e){OM(t,n,e),(e.flags&64)===64&&LM(t,n,e)}function Fu(t,n,e=fn){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;o<i.length;o+=2){let s=i[o+1],a=s===-1?e(n,t):t[s];t[r++]=a}}}function MM(t,n,e,i){let o=i.get(hb,pb)||e===Hn.ShadowDom||e===Hn.ExperimentalIsolatedShadowDom,s=t.selectRootElement(n,o);return kM(s),s}function kM(t){AM(t)}var AM=()=>null;function NM(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Yb(t,n,e,i,r,o){let s=n[ee];if(Rm(t,s,n,e,i)){Fi(t)&&RM(n,t.index);return}t.type&3&&(e=NM(e)),Qb(t,n,e,i,r,o)}function Qb(t,n,e,i,r,o){if(t.type&3){let s=fn(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(s,e,i)}else t.type&12}function RM(t,n){let e=xn(n,t);e[de]&16||(e[de]|=64)}function OM(t,n,e){let i=e.directiveStart,r=e.directiveEnd;Fi(e)&&IM(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||yu(e,n);let o=e.initialInputs;for(let s=i;s<r;s++){let a=t.data[s],l=wa(n,t,s,e);if(ts(l,n),o!==null&&jM(n,s-i,l,a,e,o),li(a)){let c=xn(e.index,n);c[gt]=wa(n,t,s,e)}}}function LM(t,n,e){let i=e.directiveStart,r=e.directiveEnd,o=e.index,s=H0();try{fr(o);for(let a=i;a<r;a++){let l=t.data[a],c=n[a];qc(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&PM(l,c)}}finally{fr(-1),qc(s)}}function PM(t,n){t.hostBindings!==null&&t.hostBindings(1,n)}function Zb(t,n){let e=t.directiveRegistry,i=null;if(e)for(let r=0;r<e.length;r++){let o=e[r];Nb(n,o.selectors,!1)&&(i??=[],li(o)?i.unshift(o):i.push(o))}return i}function FM(t,n,e,i,r,o){let s=fn(t,n);VM(n[Ze],s,o,t.value,e,i,r)}function VM(t,n,e,i,r,o,s){if(o==null)s?.(o,i||"",r),t.removeAttribute(n,r,e);else{let a=s==null?Ln(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}function jM(t,n,e,i,r,o){let s=o[n];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];to(i,e,l,c)}}function Xb(t,n,e,i,r){let o=dt+e,s=n[ee],a=r(s,n,t,i,e);n[o]=a,Ko(t,!0);let l=t.type===2;return l?(Ib(n[Ze],a,t),(L0()===0||ga(t))&&ts(a,n),P0()):ts(a,n),Qc()&&(!l||!Nu(t))&&Tm(s,n,a,t),t}function Jb(t){let n=t;return ih()?rh():(n=n.parent,Ko(n,!1)),n}function UM(t,n){let e=t[oi];if(!e)return;let i;try{i=e.get(pn,null)}catch(r){i=null}i?.(n)}function Rm(t,n,e,i,r){let o=t.inputs?.[i],s=t.hostDirectiveInputs?.[i],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],u=s[l+1],d=n.data[c];to(d,e[c],u,r),a=!0}if(o)for(let l of o){let c=e[l],u=n.data[l];to(u,c,i,r),a=!0}return a}function BM(t,n,e,i,r,o){let s=null,a=null,l=null,c=!1,u=t.directiveToIndex.get(i.type);if(typeof u=="number"?s=u:[s,a,l]=u,a!==null&&l!==null&&t.hostDirectiveInputs&&Object.hasOwn(t.hostDirectiveInputs,r)){let d=t.hostDirectiveInputs[r];for(let m=0;m<d.length;m+=2){let f=d[m];if(f>
4=a&&f<=l){let _=n.data[f],E=d[m+1];to(_,e[f],E,o),c=!0}else if(f>l)break}}return s!==null&&Object.hasOwn(i.inputs,r)&&(to(i,e[s],r,o),c=!0),c}function HM(t,n){let e=xn(n,t),i=e[ee];$M(i,e);let r=e[Pn];r!==null&&e[qr]===null&&(e[qr]=mb(r,e[oi])),Qe(Ue.ComponentStart);try{Om(i,e,e[gt])}finally{Qe(Ue.ComponentEnd,e[gt])}}function $M(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}function Om(t,n,e){Kc(n);try{let i=t.viewQuery;i!==null&&Nh(1,i,e);let r=t.template;r!==null&&Kb(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[si]?.finishViewCreation(t),t.staticContentQueries&&gb(t,n),t.staticViewQueries&&Nh(2,t.viewQuery,e);let o=t.components;o!==null&&zM(n,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[de]&=-5,Yc()}}function zM(t,n){for(let e=0;e<n.length;e++)HM(t,n[e])}function La(t,n,e,i){let r=oe(null);try{let o=n.tView,a=t[de]&4096?4096:16,l=km(t,o,e,a,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),c=t[n.index];l[dr]=c;let u=t[si];return u!==null&&(l[si]=u.createEmbeddedView(o)),Om(o,l,e),l}finally{oe(r)}}function ns(t,n){return!n||n.firstChild===null||sb(t)}function Da(t,n,e,i,r=!1){if(t.type===3){let o=t.firstChild,s=o.next,a=Ft(n[o.index]),l=Ft(n[s.index]),c=a;for(;c!==null&&(i.push(c),c!==l);)c=c.nextSibling;return i}for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue}let o=n[e.index];if(o!==null)if(Ht(o)){let a=o[Kr];a!==o[Pn]&&i.push(Ft(o)),o[de]&4||eE(o,i),i.push(a)}else i.push(Ft(o));let s=e.type;if(s&8)Da(t,n,e.child,i);else if(s&32){let a=Em(e,n),l;for(;l=a();)i.push(l)}else if(s&16){let a=$b(n,e);if(Array.isArray(a))i.push(...a);else{let l=Ri(n[Bt]);Da(l[ee],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}function eE(t,n){for(let e=nt;e<t.length;e++){let i=t[e],r=i[ee].firstChild;r!==null&&Da(i[ee],i,r,n)}}function tE(t){if(t[Vc]!==null){for(let n of t[Vc])n.impl.addSequence(n);t[Vc].length=0}}var nE=[];function GM(t){return t[dn]??qM(t)}function qM(t){let n=nE.pop()??Object.create(KM);return n.lView=t,n}function WM(t){t.lView[dn]!==t&&(t.lView=null,nE.push(t))}var KM=Z(C({},tr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Wo(t.lView)},consumerOnSignalRead(){this.lView[dn]=this}});function YM(t){let n=t[dn]??Object.create(QM);return n.lView=t,n}var QM=Z(C({},tr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Ri(t.lView);for(;n&&!iE(n[ee]);)n=Ri(n);n&&Kp(n)},consumerOnSignalRead(){this.lView[dn]=this}});function iE(t){return t.type!==2}function rE(t){if(t[Ni]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[Ni])if(i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()),t[Ni]===null))return;n=e&&!!(t[de]&8192)}}var ZM=100;function oE(t,n=0){let i=t[Fn].rendererFactory,r=!1;r||i.begin?.();try{XM(t,n)}finally{r||i.end?.()}}function XM(t,n){let e=oh();try{ia(!0),$h(t,n);let i=0;for(;ya(t);){if(i===ZM)throw new S(103,!1);i++,$h(t,1)}}finally{ia(e)}}function JM(t,n,e,i){if(Qr(n))return;let r=n[de],o=!1,s=!1;Kc(n);let a=!0,l=null,c=null;o||(iE(t)?(c=GM(n),l=rr(c)):Hl()===null?(a=!1,c=YM(n),l=rr(c)):n[dn]&&(Rr(n[dn]),n[dn]=null));try{Wp(n),j0(t.bindingStartIndex),e!==null&&Kb(t,n,e,2,i);let u=(r&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&cu(n,f,null)}else{let f=t.preOrderHooks;f!==null&&uu(n,f,0,null),gh(n,0)}if(s||ek(n),rE(n),sE(n,0),t.contentQueries!==null&&gb(t,n),!o)if(u){let f=t.contentCheckHooks;f!==null&&cu(n,f)}else{let f=t.contentHooks;f!==null&&uu(n,f,1),gh(n,1)}nk(t,n);let d=t.components;d!==null&&lE(n,d,0);let m=t.viewQuery;if(m!==null&&Nh(2,m,i),!o)if(u){let f=t.viewCheckHooks;f!==null&&cu(n,f)}else{let f=t.viewHooks;f!==null&&uu(n,f,2),gh(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Fc]){for(let f of n[Fc])f();n[Fc]=null}o||(tE(n),n[de]&=-73)}catch(u){let d=!1,m=u,f=n;for(;f!==null;){if(Ht(f)){f=f[bt];continue}let _=f[ha];if(_)try{let E=n[Bt][gt],D=E?.constructor,M={declarationInstance:E,declarationType:D,caughtBy:_};_(X0(m),M),d=!0;break}catch(E){m=E}f=f[bt]}if(!d)throw o||Wo(n),m}finally{c!==null&&(Nr(c,l),a&&WM(c)),Yc()}}function sE(t,n){for(let e=lb(t);e!==null;e=cb(e))for(let i=nt;i<e.length;i++){let r=e[i];aE(r,n)}}function ek(t){for(let n=lb(t);n!==null;
vendor: 4,438 bytes, line 4
4n=cb(n)){if(!(n[de]&2))continue;let e=n[Yr];for(let i=0;i<e.length;i++){let r=e[i];Kp(r)}}}function tk(t,n,e){Qe(Ue.ComponentStart);let i=xn(n,t);try{aE(i,e)}finally{Qe(Ue.ComponentEnd,i[gt])}}function aE(t,n){Bc(t)&&$h(t,n)}function $h(t,n){let i=t[ee],r=t[de],o=t[dn],s=!!(n===0&&r&16);if(s||=!!(r&64&&n===0),s||=!!(r&1024),s||=!!(o?.dirty&&Gs(o)),s||=!1,o&&(o.dirty=!1),t[de]&=-9217,s)JM(i,t,i.template,t[gt]);else if(r&8192){let a=oe(null);try{rE(t),sE(t,1);let l=i.components;l!==null&&lE(t,l,1),tE(t)}finally{oe(a)}}}function lE(t,n,e){for(let i=0;i<n.length;i++)tk(t,n[i],e)}function nk(t,n){let e=t.hostBindingOpCodes;if(e!==null)try{for(let i=0;i<e.length;i++){let r=e[i];if(r<0)fr(~r);else{let o=r,s=e[++i],a=e[++i];B0(s,o);let l=n[o];Qe(Ue.HostBindingsUpdateStart,l);try{a(2,l)}finally{Qe(Ue.HostBindingsUpdateEnd,l)}}}}finally{fr(-1)}}function Lm(t,n){let e=oh()?64:1088;for(t[Fn].changeDetectionScheduler?.notify(n);t;){t[de]|=e;let i=Ri(t);if(qo(t)&&!i)return t;t=i}return null}function cE(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function uE(t,n){let e=nt+n;if(e<t.length)return t[e]}function Pa(t,n,e,i=!0){let r=n[ee];if(ik(r,n,t,e),i){let s=Hh(e,t),a=n[Ze],l=a.parentNode(t[Kr]);l!==null&&mM(r,t[Pt],a,n,l,s)}let o=n[qr];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function dE(t,n){let e=Sa(t,n);return e!==void 0&&Lu(e[ee],e),e}function Sa(t,n){if(t.length<=nt)return;let e=nt+n,i=t[e];if(i){let r=i[dr];r!==null&&r!==t&&xm(r,i),n>0&&(t[e-1][Sn]=i[Sn]);let o=ua(t,nt+n);hM(i[ee],i);let s=o[si];s!==null&&s.detachView(o[ee]),i[bt]=null,i[Sn]=null,i[de]&=-129}return i}function ik(t,n,e,i){let r=nt+i,o=e.length;i>0&&(e[r-1][Sn]=n),i<o-nt?(n[Sn]=e[r],Op(e,nt+i,n)):(e.push(n),n[Sn]=null),n[bt]=e;let s=n[dr];s!==null&&e!==s&&fE(s,n);let a=n[si];a!==null&&a.insertView(t),Hc(n),n[de]|=128}function fE(t,n){let e=t[Yr],i=n[bt];if(Pi(i))t[de]|=2;else{let r=i[bt][Bt];n[Bt]!==r&&(t[de]|=2)}e===null?t[Yr]=[n]:e.push(n)}var hr=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let n=this._lView,e=n[ee];return Da(e,n,e.firstChild,[])}constructor(n,e){this._lView=n,this._cdRefInjectingView=e}get context(){return this._lView[gt]}set context(n){this._lView[gt]=n}get destroyed(){return Qr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[bt];if(Ht(n)){let e=n[ma],i=e?e.indexOf(this):-1;i>-1&&(Sa(n,i),ua(e,i))}this._attachedToViewContainer=!1}Lu(this._lView[ee],this._lView)}onDestroy(n){$c(this._lView,n)}markForCheck(){Lm(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[de]&=-129}reattach(){Hc(this._lView),this._lView[de]|=128}detectChanges(){this._lView[de]|=1024,oE(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=qo(this._lView),e=this._lView[dr];e!==null&&!n&&xm(e,this._lView),Ub(this._lView[ee],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n;let e=qo(this._lView),i=this._lView[dr];i!==null&&!e&&fE(i,this._lView),Hc(this._lView)}};var is=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=rk;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=La(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new hr(o)}}return t})();function rk(){return Pm(It(),se())}function Pm(t,n){return t.type&4?new is(n,t,os(t,n)):null}function ss(t,n,e,i,r){let o=t.data[n];if(o===null)o=ok(t,n,e,i,r),U0()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let s=F0();o.injectorIndex=s===null?-1:s.injectorIndex}return Ko(o,!0),o}function ok(t,n,e,i,r){let o=nh(),s=ih(),a=s?o:o&&o.parent,l=t.data[n]=ak(t,a,e,n,i,r);return sk(t,l,o,s),l}function sk(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function ak(t,n,e,i,r,o){let s=n?n.injectorIndex:-1,a=0;return Jp()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOff
4set:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,namespace:uh(),attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function lk(t){let n=t[Hp]??[],i=t[bt][Ze],r=[];for(let o of n)o.data[fb]!==void 0?r.push(o):ck(o,i);t[Hp]=r}function ck(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[db];for(;e<r;){let o=i.nextSibling;Tb(n,i,!1),i=o,e++}}}var uk=()=>null,dk=()=>null;function _u(t,n){return uk(t,n)}function pE(t,n,e){return dk(t,n,e)}var hE=class{},$i=class{},$t=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>fk()};function fk(){let t=se(),n=It(),e=xn(n.index,t);return(Pi(e)?e:t)[Ze]}var mE=(()=>{class t{static \u0275prov=A({token:t,providedIn:"root",factory:()=>null})}return t})();function gE(t){return t.debugInfo?.className||t.type.name||null}var fu={},bu=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,fu,i);return r!==fu||e===fu?r:this.parentInjector.get(n,e,i)}};function Fm(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function yE(t,n,e){return t[n]=e}function mn(t,n,e){if(e===Zt)return!1;let i=t[n];return Object.is(i,e)?!1:(t[n]=e,!0)}function vE(t,n,e,i){let r=mn(t,n,e);return mn(t,n+1,i)||r}function _E(t,n,e,i,r){let o=vE(t,n,e,i);return mn(t,n+2,r)||o}function Jr(t,n,e){return function i(r){let o=i.__ngNativeEl__;o!==void 0&&mI(r,o);let s=Fi(t)?xn(t.index,n):n;Lm(s,5);let a=n[gt],l=D_(n,a,e,r),c=i.__ngNextListenerFn__;for(;c;)l=D_(n,a,c,r)&&l,c=c.__ngNextListenerFn__;return l}}function D_(t,n,e,i){let r=oe(null);try{return Qe(Ue.OutputStart,n,e),e(i)!==!1}catch(o){return UM(t,o),!1}finally{Qe(Ue.OutputEnd,n,e),oe(r)}}function Vm(t,n,e,i,r,o,s,a){let l=ga(t),c=!1,u=null;if(!i&&l&&(u=hk(n,e,o,t.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,c=!0}else{let d=fn(t,e),m=i?i(d):d;yI(e,m,o,a),i||(a.__ngNativeEl__=d);let f=r.listen(m,o,a);if(!pk(o)){let _=i?E=>i(Ft(E[t.index])):t.index;bE(_,n,e,o,a,f,!1)}}return c}function pk(t){return t.startsWith("animation")||t.startsWith("transition")}function hk(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===e&&r[o+1]===i){let a=n[zo],l=r[o+2];return a&&a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function bE(t,n,e,i,r,o,s){let a=n.firstCreatePass?Qp(n):null,l=Yp(e),c=l.length;l.push(r,o),a&&a.push(i,t,c,(c+1)*(s?-1:1))}function S_(t,n,e,i,r){let o=null,s=null,a=null,l=!1,c=t.directiveToIndex.get(e.type);if(typeof c=="number"?o=c:[o,s,a]=c,s!==null&&a!==null&&t.hostDirectiveOutputs&&Object.hasOwn(t.hostDirectiveOutputs,i)){let u=t.hostDirectiveOutputs[i];for(let d=0;d<u.length;d+=2){let m=u[d];if(m>=s&&m<=a)l=!0,Eu(t,n,m,u[d+1],i,r);else if(m>a)break}}return Object.hasOwn(e.outputs,i)&&(l=!0,Eu(t,n,o,i,i,r)),l}function Eu(t,n,e,i,r,o){let s=n[e],a=n[ee],c=a.data[e].outputs[i],d=s[c].subscribe(o);bE(t.index,a,n,r,o,d,!0)}function jm(){mk()}function mk(){let t=se(),n=ot(),e=It();if(n.firstCreatePass&&yk(n,e),e.controlDirectiveIndex===-1)return;In("NgSignalForms");let i=t[e.controlDirectiveIndex];n.data[e.controlDirectiveIndex].controlDef.create(i,new Cu(t,n,e))}function Um(){gk()}function gk(){let t=se(),n=ot(),e=Zr();if(e.controlDirectiveIndex===-1)return;let i=n.data[e.controlDirectiveIndex].controlDef,r=t[e.controlDirectiveIndex];i.update(r,new Cu(t,n,e))}var Cu=class{lView;tView;tNode;hasPassThrough;constructor(n,e,i){this.lView=n,this.tView=e,this.tNode=i,this.hasPassThrough=!!(i.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return fn(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(n,e){let i=this.tView.data[this.tNode.customControlIndex];S_(this.tNode,this.lView,i,n,Jr(this.tNode,this.lView,e))}listenToCustomControlModel(n){let e=this.tNode.flags&1024?"valueChange":"checkedChange",i=this.tView.data[this.tNode.customControlIndex];S_(this.tNode,this.lView,i,e,Jr(this.tNode,this.lView,n))}listenToDom(n,e){Vm(this.tNode,this.tView,this.lView,void 0,this.lView[Ze],n,e,Jr(this.tNode,this.lView,e))}
4setInputOnDirectives(n,e,i){let r=this.tNode.inputs?.[n],o=this.tNode.hostDirectiveInputs?.[n];if(!r&&!o)return!1;let s=!1;if(r)for(let a of r){if(a===this.tNode.controlDirectiveIndex)continue;let l=this.lView[a],c=this.tView.data[a];(!i||i(T_(l,c,n)))&&(to(c,l,n,e),s=!0)}if(o)for(let a=0;a<o.length;a+=2){let l=o[a];if(l===this.tNode.controlDirectiveIndex)continue;let c=this.lView[l],u=o[a+1],d=this.tView.data[l];(!i||i(T_(c,d,n)))&&(to(d,c,u,e),s=!0)}return s}setCustomControlModelInput(n){let e=this.tView.data[this.tNode.customControlIndex],i=this.tNode.flags&1024?"value":"checked";BM(this.tNode,this.tView,this.lView,e,i,n)}customControlHasInput(n){if(this.tNode.customControlIndex===-1)return!1;let e=this.tView.data[this.tNode.customControlIndex];return(e.signalFormsInputPresence??=this._buildCustomControlInputCache(e))[n]===!0}_buildCustomControlInputCache(n){let e={};for(let i in n.inputs)e[i]=!0;if(n.hostDirectives!==null){let i=[...n.hostDirectives];for(;i.length>0;){let r=i.shift();if(typeof r!="function"){for(let s in r.inputs)e[r.inputs[s]]=!0;let o=x_(r.directive);o!==null&&i.push(...o);continue}for(let o of r()){if(typeof o=="function")continue;if(o.inputs)for(let a=0;a<o.inputs.length;a+=2){let l=o.inputs[a+1]||o.inputs[a];e[l]=!0}let s=x_(o.directive);s!==null&&i.push(...s)}}}return e}};function x_(t){return typeof t=="function"&&"\u0275dir"in t?t.\u0275dir.hostDirectives??null:null}function T_(t,n,e){if(!n.inputs||!Object.hasOwn(n.inputs,e))return;let[i,r]=n.inputs[e];if((r&Oa.SignalBased)!==0){let s=t[i][Dt];return s.value===Au?void 0:s.value}return t[i]}function yk(t,n,e){for(let r=n.directiveStart;r<n.directiveEnd;r++)if(t.data[r].controlDef){n.controlDirectiveIndex=r;break}if(n.controlDirectiveIndex===-1)return;let i=t.data[n.controlDirectiveIndex].controlDef;if(i.passThroughInput&&(n.inputs?.[i.passThroughInput]?.length??0)>1){n.flags|=4096;return}vk(t,n)}function vk(t,n){for(let e=n.directiveStart;e<n.directiveEnd;e++){let i=t.data[e];if(!(n.directiveToIndex&&!n.directiveToIndex.has(i.type))){if(I_(i,"value")){n.flags|=1024,n.customControlIndex=e;return}if(I_(i,"checked")){n.flags|=2048,n.customControlIndex=e;return}}}if(n.hostDirectiveInputs!==null&&n.hostDirectiveOutputs!==null&&n.directiveToIndex!==null){let e=(i,r)=>{let o=n.hostDirectiveInputs[i],s=n.hostDirectiveOutputs[i+"Change"];if(!o||!s)return!1;for(let a=0;a<o.length;a+=2){let l=o[a];for(let c=0;c<s.length;c+=2){let u=s[c];if(l===u)for(let d of n.directiveToIndex.values()){if(!Array.isArray(d))continue;let[m,f,_]=d;if(l>=f&&l<=_)return n.flags|=r,n.customControlIndex=m,!0}}}return!1};if(e("value",1024)||e("checked",2048))return}}function I_(t,n){return _k(t,n)&&bk(t,n+"Change")}function _k(t,n){return n in t.inputs}function bk(t,n){return n in t.outputs}var zh=Symbol("BINDING");var ro=new L("");function wu(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let s=0;s<n.length;s++){let a=n[s];if(typeof a=="number")o=a;else if(o==1)r=xp(r,a);else if(o==2){let l=a,c=n[++s];i=xp(i,l+": "+c+";")}}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function Oe(t,n=0){let e=se();if(e===null)return K(t,n);let i=It();return ib(i,e,Lt(t),n)}function Vu(){let t="invalid";throw new Error(t)}function EE(t,n,e,i,r){let o=i===null?null:{"":-1},s=r(t,e);if(s!==null){let a=s,l=null,c=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,l,c]=u.resolveHostDirectives(s);break}wk(t,n,e,a,o,l,c)}o!==null&&i!==null&&Ek(e,i,o)}function Ek(t,n,e){let i=t.localNames=[];for(let r=0;r<n.length;r+=2){let o=e[n[r+1]];if(o==null)throw new S(-301,!1);i.push(n[r],o)}}function Ck(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function wk(t,n,e,i,r,o,s){let a=i.length,l=null;for(let m=0;m<a;m++){let f=i[m];l===null&&li(f)&&(l=f,Ck(t,e,m)),Ih(yu(e,n),t,f.type)}Mk(e,t.data.length,a),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let m=0;m<a;m++){let f=i[m];f.providersResolver&&f.providersResolver(f)}let c=!1,u=!1,d=qb(t,n,a,null);a>0&&(e.directiveToIndex=new Map);for(let m=0;m<a;m++){let f=i[m];if(e.mergedAttrs=es(e.mergedAttrs,f.hostAttrs),Sk(t,e,n,d,f),Ik(d,f,r),s!==null&&s.has(f)){let[E,D]=s.get(f);e.directiveToIndex.set(f.type,[d,E+e.directiveStart,D+e.directiveStart])}else(o===null||!o.has(f))&&e.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(e.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(e.flags|=64);let _=f.type.prototype;!c&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),c=!0),!u&&(_.ngOnChanges||_.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),u=!0),d++}Dk(t,e,o)}function Dk(t,n,e){for(let i=n.directiveStart;i<n.directiveEnd;i++){let r=t.data[i];if(e===null||!e.has(r))M_(0,n,r,i),M_(1,n,r,i),A_(n,i,!1);else{let o=e.get(r);k_(0,n,o,i),k_(1,n,o,i),A_(n,i,!0)}}}function M_(t,n,e,i){let r=t===0?e.inputs:e.outputs;for(let o in r)if(Object.hasOwn(r,o)){let s;t===0?s=n.inputs??={}:s=n.outputs??={},s[o]??=[],s[o].push(i),CE(n,o)}}function k_(t,n,e,i){let r=t===0?e.inputs:e.outputs;for(let o in r)if(Object.hasOwn(r,o)){let s=r[o],a;t===0?a=n.hostDirectiveInputs??={}:a=n.hostDirectiveOutputs??={},a[s]??=[],a[s].push(i,o),CE(n,s)}}function CE(t,n){n==="class"?t.flags|=8:n==="style"&&(t.flags|=16)}function A_(t,n,e){let{attrs:i,inputs:r,hostDirectiveInputs:o}=t;if(i===null||!e&&r===null||e&&o===null||bm(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<i.length;){let l=i[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!e&&Object.hasOwn(r,l)){let c=r[l];for(let u of c)if(u===n){s??=[],s.push(l,i[a+1]);break}}else if(e&&Object.hasOwn(o,l)){let c=o[l];for(let u=0;u<c.length;u+=2)if(c[u]===n){s??=[],s.push(c[u+1],i[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function Sk(t,n,e,i,r){t.data[i]=r;let o=r.factory||(r.factory=ar(r.type,!0)),s=new eo(o,li(r),Oe,null);t.blueprint[i]=s,e[i]=s,xk(t,n,i,qb(t,e,r.hostVars,Zt),r)}function xk(t,n,e,i,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~n.index;Tk(s)!=a&&s.push(a),s.push(e,i,o)}}function Tk(t){let n=t.length;for(;n>0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function Ik(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;li(n)&&(e[""]=t)}}function Mk(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function wE(t,n,e,i,r,o,s,a){let l=n[ee],c=l.consts,u=Tn(c,s),d=ss(l,t,e,i,u);return o&&EE(l,n,d,Tn(c,a),r),d.mergedAttrs=es(d.mergedAttrs,d.attrs),d.attrs!==null&&wu(d,d.attrs,!1),d.mergedAttrs!==null&&wu(d,d.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,d),d}function DE(t,n){K_(t,n),$p(n)&&t.queries.elementEnd(n)}function kk(t,n,e,i,r,o){let s=n.consts,a=Tn(s,r),l=ss(n,t,e,i,a);if(l.mergedAttrs=es(l.mergedAttrs,l.attrs),o!=null){let c=Tn(s,o);l.localNames=[];for(let u=0;u<c.length;u+=2)l.localNames.push(c[u],-1)}return l.attrs!==null&&wu(l,l.attrs,!1),l.mergedAttrs!==null&&wu(l,l.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,l),l}var SE=typeof ShadowRoot<"u",Ak=typeof Document<"u";function Nk(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&Oa.SignalBased)!==0};return r&&(o.transform=r),o}
4)}function Rk(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function Ok(t,n,e){let i=n instanceof ut?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new bu(e,i):e}function Lk(t){let n=t.get($i,null);if(n===null)throw new S(407,!1);let e=t.get(mE,null),i=t.get(Oi,null),r=t.get(Gi,null,{optional:!0});return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1,tracingService:r}}function Pk(t,n,e){let i=xE(t);return Sb(n,i,i==="svg"?$r:i==="math"?jc:e)}function Fk(t){if((t&&"localName"in t&&typeof t.localName=="string"?t.localName:t?.tagName)?.toLowerCase()==="script")throw new S(905,!1)}function xE(t){return(t.selectors[0][0]||"div").toLowerCase()}var xa=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Nk(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Rk(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=tM(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,s,a,l){Qe(Ue.DynamicComponentStart);let c=oe(null);try{let u=this.componentDef,d=Ok(u,r||this.ngModule,n),m=Lk(d),f=m.tracingService;return f&&f.componentCreate?f.componentCreate(gE(u),()=>this.createComponentRef(m,d,e,i,o,s,a,l)):this.createComponentRef(m,d,e,i,o,s,a,l)}finally{oe(c)}}createComponentRef(n,e,i,r,o,s,a,l){let c=this.componentDef,u=Vk(r,c,s,o,l),d=n.rendererFactory.createRenderer(null,c),m=r?MM(d,r,c.encapsulation,e):Pk(c,d,a??null);Fk(m);let f=e.get(ro,null),_=jk(m,()=>e.get(Ee,null)??um());f&&f.addHost(_);let E=s?.some(N_)||o?.some(T=>typeof T!="function"&&T.bindings.some(N_)),D=km(null,u,null,512|Gb(c),null,null,n,d,e,null,mb(m,e,!0));f&&SE&&_ instanceof ShadowRoot&&$c(D,()=>{f.removeHost(_)}),D[dt]=m,Kc(D);let M=null;try{let T=wE(dt,D,2,"#host",()=>u.directiveRegistry,!0,0);Ib(d,m,T),ts(m,D),Nm(u,D,T),yb(u,T,D),DE(u,T),i!==void 0&&Bk(T,this.ngContentSelectors,i),M=xn(T.index,D),D[gt]=M[gt],Om(u,D,null)}catch(T){throw M!==null&&kh(M),kh(D),T}finally{Qe(Ue.DynamicComponentEnd),Yc()}return new Du(this.componentType,D,!!E)}};function Vk(t,n,e,i,r){let o=t?["ng-version","22.2.0"]:nM(n.selectors[0]),s=null,a=null,l=0;if(e)for(let d of e)l+=d[zh].requiredVars,d.create&&(d.targetIdx=0,(s??=[]).push(d)),d.update&&(d.targetIdx=0,(a??=[]).push(d));if(i)for(let d=0;d<i.length;d++){let m=i[d];if(typeof m!="function")for(let f of m.bindings){l+=f[zh].requiredVars;let _=d+1;f.create&&(f.targetIdx=_,(s??=[]).push(f)),f.update&&(f.targetIdx=_,(a??=[]).push(f))}}let c=[n];if(i)for(let d of i){let m=typeof d=="function"?d:d.type,f=Ac(m);c.push(f)}return Mm(0,null,Uk(s,a),1,l,c,null,null,null,[o],null)}function jk(t,n){let e=t.getRootNode?.();return Ak&&e instanceof Document?e.head:e&&SE&&e instanceof ShadowRoot?e:n().head}function Uk(t,n){return!t&&!n?null:e=>{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function N_(t){let n=t[zh].kind;return n==="input"||n==="twoWay"}var Du=class extends hE{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Uc(e[ee],dt),this.location=os(this._tNode,e),this.instance=xn(this._tNode.index,e)[gt],this.hostView=this.changeDetectorRef=new hr(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=Rm(i,r[ee],r,n,e);this.previousInputValues.set(n,e);let s=xn(i.index,r);Lm(s,1)}get injector(){return new Bi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function Bk(t,n,e){let i=t.projection=[];for(let r=0;r<n.length;r++){let o=e[r];i.push(o!=null&&o.length?Array.from(o):null)}}var pi=(()=>{class t{static __NG_ELEMENT_ID__=Hk}return t})();function Hk(){let t=It();return TE(t,se())}var Gh=class t extends pi{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}
vendor: 4,832 bytes, line 4
4get element(){return os(this._hostTNode,this._hostLView)}get injector(){return new Bi(this._hostTNode,this._hostLView)}get parentInjector(){let n=am(this._hostTNode,this._hostLView);if(Z_(n)){let e=mu(n,this._hostLView),i=hu(n),r=e[ee].data[i+8];return new Bi(r,e)}else return new Bi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=R_(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-nt}createEmbeddedView(n,e,i){let r,o,s;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector,s=i.onError);let a=_u(this._lContainer,n.ssrId),l=n.createEmbeddedViewImpl(e||{},o,a);return s&&(l._lView[ha]=s),this.insertImpl(l,r,ns(this._hostTNode,a)),l}createComponent(n,e,i,r,o,s,a){let l,c,u=e||{};l=u.index,i=u.injector,r=u.projectableNodes,o=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings,c=u.onError;let d=new xa(Gr(n)),m=i||this.parentInjector;if(!o&&d.ngModule==null){let T=this.parentInjector.get(ut,null);T&&(o=T)}let f=Gr(d.componentType??{}),_=_u(this._lContainer,f?.id??null),E=_?.firstChild??null,D=d.create(m,r,E,o,s,a,this._getHostElementNamespace());return c&&(D.hostView._lView[ha]=c),this.insertImpl(D.hostView,l,ns(this._hostTNode,_)),D}_getHostElementNamespace(){if(this._hostTNode.type&2){let n=this._hostTNode.parent??this._hostLView[Pt];return n!==null&&n.type&2&&typeof n.value=="string"&&n.value.toLowerCase()==="foreignobject"?null:n?.namespace??null}return this._hostTNode.namespace}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(A0(r)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let l=r[bt],c=new t(l,l[Pt],l[bt]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return Pa(s,r,o,i),n.attachToViewContainerRef(),Op(_h(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=R_(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Sa(this._lContainer,e);i&&(ua(_h(this._lContainer),e),Lu(i[ee],i))}detach(n){let e=this._adjustIndex(n,-1),i=Sa(this._lContainer,e);return i&&ua(_h(this._lContainer),e)!=null?new hr(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function R_(t){return t[ma]}function _h(t){return t[ma]||(t[ma]=[])}function TE(t,n){let e,i=n[t.index];return Ht(i)?e=i:(e=cE(i,n,null,t),n[t.index]=e,Am(n,e)),zk(e,n,t,i),new Gh(e,t,n)}function $k(t,n){let e=t[Ze],i=e.createComment(""),r=fn(n,t),o=e.parentNode(r);return Xr(e,o,i,e.nextSibling(r),!1),i}var zk=Wk,Gk=()=>!1;function qk(t,n,e){return Gk(t,n,e)}function Wk(t,n,e,i){if(t[Kr])return;let r;e.type&8?r=Ft(i):r=$k(n,e),t[Kr]=r}var qh=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Wh=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){let s=e.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)Bm(n,e).matches!==null&&this.queries[e].setDirty()}},Su=class{flags;read;predicate;constructor(n,e,i=null){this.flags=e,this.read=i,typeof n=="string"?this.predicate=tA(n):this.predicate=n}},Kh=class t{queries;constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){let r=e!==null?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},Yh=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,e=-1){this.metadata=n,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new t(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,i=n.parent;for(;i!==null&&i.type&8&&i.index!==e;)i=i.parent;return e===(i!==null?i.index:-1)}return this._appliesToNextNode}
vendor: 4,636 bytes, line 4
4matchTNode(n,e){let i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){let o=i[r];this.matchTNodeWithReadOption(n,e,Kk(e,o)),this.matchTNodeWithReadOption(n,e,du(e,n,o,!1,!1))}else i===is?e.type&4&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,du(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(i!==null){let r=this.metadata.read;if(r!==null)if(r===Mt||r===pi||r===wt||r===is&&e.type&4)this.addMatch(e.index,-2);else{let o=du(e,n,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){this.matches===null?this.matches=[n,e]:this.matches.push(n,e)}};function Kk(t,n){let e=t.localNames;if(e!==null){for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1]}return null}function Yk(t,n){return t.type&11?os(t,n):t.type&4?Pm(t,n):null}function Qk(t,n,e,i){return e===-1?Yk(n,t):e===-2?Zk(t,n,i):wa(t,t[ee],e,n)}function Zk(t,n,e){if(e===Mt)return os(n,t);if(e===is)return Pm(n,t);if(e===pi)return TE(n,t);if(e===wt)return new Bi(n,t)}function IE(t,n,e,i){let r=n[si].queries[i];if(r.matches===null){let o=t.data,s=e.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let u=o[c];a.push(Qk(n,u,s[l+1],e.metadata.read))}}r.matches=a}return r.matches}function Qh(t,n,e,i){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let s=IE(t,n,r,e);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)i.push(s[a/2]);else{let c=o[a+1],u=n[-l];for(let d=nt;d<u.length;d++){let m=u[d];m[dr]===m[bt]&&Qh(m[ee],m,c,i)}if(u[Yr]!==null){let d=u[Yr];for(let m=0;m<d.length;m++){let f=d[m];Qh(f[ee],f,c,i)}}}}}return i}function Xk(t,n){return t[si].queries[n].queryList}function ME(t,n,e){let i=new vu((e&4)===4);return O0(t,n,i,i.destroy),(n[si]??=new Wh).queries.push(new qh(i))-1}function Jk(t,n,e){let i=ot();return i.firstCreatePass&&(kE(i,new Su(t,n,e),-1),(n&2)===2&&(i.staticViewQueries=!0)),ME(i,se(),n)}function eA(t,n,e,i){let r=ot();if(r.firstCreatePass){let o=It();kE(r,new Su(n,e,i),o.index),nA(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return ME(r,se(),e)}function tA(t){return t.split(",").map(n=>n.trim())}function kE(t,n,e){t.queries===null&&(t.queries=new Kh),t.queries.track(new Yh(n,e))}function nA(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function Bm(t,n){return t.queries.getByIndex(n)}function iA(t,n){let e=t[ee],i=Bm(e,n);return i.crossesNgTemplate?Qh(e,t,n,[]):IE(e,t,i,n)}function mr(t){return!!t&&typeof t.then=="function"}function Hm(t){return!!t&&typeof t.subscribe=="function"}var no=class{},ju=class{};var xu=class extends no{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=m0(n);this._bootstrapComponents=zI(o.bootstrap),this._r3Injector=dh(n,e,[{provide:no,useValue:this},...i],sa(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Tu=class extends ju{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new xu(this.moduleType,n,[])}};var Ta=class extends no{injector;instance=null;constructor(n){super();let e=new Hr([...n.providers,{provide:no,useValue:this}],n.parent||pa(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Fa(t,n,e=null){return new Ta({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var rA=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=Pp(!1,e.type),r=i.length>0?Fa([i],this._injector,""):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=A({token:t,providedIn:"environment",factory:()=>new t(K(ut))})}return t})();function fe(t){return ka(()=>{let n=AE(t),e=Z(C({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection!==lm.Eager,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.depen
vendor: 5,244 bytes, line 4
4dencies||null,getStandaloneInjector:n.standalone?r=>r.get(rA).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Hn.Emulated,styles:t.styles||cn,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&In("NgStandalone"),NE(e);let i=t.dependencies;return e.directiveDefs=O_(i,oA),e.pipeDefs=O_(i,g0),e.id=lA(e),e})}function oA(t){return Gr(t)||Ac(t)}function Vt(t){return ka(()=>({type:t.type,bootstrap:t.bootstrap||cn,declarations:t.declarations||cn,imports:t.imports||cn,exports:t.exports||cn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function sA(t,n){if(t==null)return lr;let e={};for(let i in t)if(Object.hasOwn(t,i)){let r=t[i],o,s,a,l;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o,l=r[3]||null):(o=r,s=r,a=Oa.None,l=null),e[o]=[i,a,l],n[o]=s}return e}function aA(t){if(t==null)return lr;let n={};for(let e in t)Object.hasOwn(t,e)&&(n[t[e]]=e);return n}function Ct(t){return ka(()=>{let n=AE(t);return NE(n),n})}function Va(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function AE(t){let n={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||lr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||cn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:sA(t.inputs,n),outputs:aA(t.outputs),debugInfo:null}}function NE(t){t.features?.forEach(n=>n(t))}function O_(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function lA(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}var RE=new L("");var $m=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=v(RE,{optional:!0})??[];injector=v(wt);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=Tt(this.injector,r);if(mr(o))e.push(o);else if(Hm(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function zm(t){return n=>{n.controlDef={create:(e,i)=>{e?.\u0275ngControlCreate(i)},update:(e,i)=>{e?.\u0275ngControlUpdate?.(i)},passThroughInput:t}}}function cA(t){return Object.getPrototypeOf(t.prototype).constructor}function Je(t){let n=cA(t.type),e=!0,i=[t];for(;n&&n!==Function.prototype&&n!==Object.prototype;){let r,o=Object.hasOwn(n,la)?n[la]:void 0,s=Object.hasOwn(n,ca)?n[ca]:void 0;if(li(t))r=o??s;else{if(o)throw new S(903,!1);r=s}if(r){if(e){i.push(r);let l=t;l.inputs=bh(t.inputs),l.declaredInputs=bh(t.declaredInputs),l.outputs=bh(t.outputs);let c=r.hostBindings;c&&hA(t,c);let u=r.viewQuery,d=r.contentQueries;if(u&&fA(t,u),d&&pA(t,d),uA(t,r),h0(t.outputs,r.outputs),li(r)&&r.data.animation){let m=t.data;m.animation=(m.animation||[]).concat(r.data.animation)}}let a=r.features;if(a)for(let l=0;l<a.length;l++){let c=a[l];c&&c.ngInherit&&c(t),c===Je&&(e=!1)}}n=Object.getPrototypeOf(n)}dA(i)}function uA(t,n){for(let e in n.inputs){if(!Object.hasOwn(n.inputs,e)||Object.hasOwn(t.inputs,e))continue;let i=n.inputs[e];i!==void 0&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e])}}function dA(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=es(r.hostAttrs,e=es(e,r.hostAttrs))}}function bh(t){return t===lr?{}:t===cn?[]:t}function fA(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function pA(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function hA(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function OE(t,n,e,i,r,o,s,a){if(e.firstCreatePass){t.mergedAttrs=es(t.mergedAttrs,t.attrs);let u=t.tView=Mm(2,t,r,o,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),u.queries=e.queries.embeddedTView(t))}a&&(t.flags|=a),Ko(t,!1);let l=gA(e,n,t,i);Qc()&&Tm(e,n,l,t),ts(l,n);let c=cE(l,n,l,t);n[i+dt]=c,Am(n,c),qk(c,t,n)}function mA(t,n,e,i,r,o,s,a,l,c,u){let d=e+dt,m;return n.firstCreatePass?(m=ss(n,d,4,s||null,a||null),Xp()&&EE(n,t,m,Tn(n.consts,c),Zb),K_(n,m)):m=n.data[d],OE(m,t,n,e,i,r,o,l),ga(m)&&Nm(n,t,m),c!=null&&Fu(t,m,u),m}function Ia(t,n,e,i,r,o,s,a,l,c,u){let d=e+dt,m;
4if(n.firstCreatePass){if(m=ss(n,d,4,s||null,a||null),c!=null){let f=Tn(n.consts,c);m.localNames=[];for(let _=0;_<f.length;_+=2)m.localNames.push(f[_],-1)}}else m=n.data[d];return OE(m,t,n,e,i,r,o,l),c!=null&&Fu(t,m,u),m}function ja(t,n,e,i,r,o,s,a){let l=se(),c=ot(),u=Tn(c.consts,o);return mA(l,c,t,n,e,i,r,u,void 0,s,a),ja}var gA=yA;function yA(t,n,e,i){return Zc(!0),n[Ze].createComment("")}var Uu=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var Bu=new L(""),as=new L(""),Gm=new L("USE_PENDING_TASKS",{providedIn:"root",factory:()=>typeof Zone>"u"}),Ua=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;pendingTasksInternal=v(Un);_usePendingTasks=v(Gm);constructor(e,i,r){this._ngZone=e,this.registry=i,jp()&&(this._destroyRef=v(je,{optional:!0})??void 0),qm||(LE(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),i,r;this._ngZone.runOutsideAngular(()=>{this._usePendingTasks&&(i=this.pendingTasksInternal.hasPendingTasksObservable.subscribe(()=>{this.isStable()&&this._ngZone.runOutsideAngular(()=>{this._runCallbacksIfReady()})})),r=this._ngZone.onStable.subscribe({next:()=>{Ve.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})}),this._destroyRef?.onDestroy(()=>{e.unsubscribe(),i?.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks&&(!this._usePendingTasks||!this.pendingTasksInternal.hasPendingTasks)}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(e)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}static \u0275fac=function(i){return new(i||t)(K(Ve),K(Ba),K(as))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Ba=(()=>{class t{_applications=new Map;registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return qm?.findTestabilityInTree(this,e,i)??null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function LE(t){qm=t}var qm,Ha=new L("");function PE(){Bf(()=>{let t="";throw new S(-600,t)})}var vA=10;var zn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(pn);afterRenderManager=v(Ob);zonelessEnabled=v(Yo);
vendor: 8,145 bytes, line 4
4rootEffectScheduler=v(iu);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Ie;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=v(Un);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Ne(e=>!e))}constructor(){v(Gi,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=v(ut);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=wt.NULL){return this._injector.get(Ve).run(()=>{if(Qe(Ue.BootstrapComponentStart),!this._injector.get($m).done){let M="";throw new S(405,M)}let a=Gr(e),l=this._injector.get(no),c=new xa(a,l);this.componentTypes.push(e);let{hostElement:u,directives:d,bindings:m}=_A(i),f=u||c.selector,_=c.create(r,[],f,l.injector,d,m),E=_.location.nativeElement,D=_.injector.get(Bu,null);return D?.registerApplication(E),_.onDestroy(()=>{this.detachView(_.hostView),Ca(this.components,_),D?.unregisterApplication(E)}),this._loadComponent(_),Qe(Ue.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Qe(Ue.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Cm.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Qe(Ue.ChangeDetectionEnd),new S(101,!1);let e=oe(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,oe(e),this.afterTick.next(),Qe(Ue.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get($i,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++<vA;){Qe(Ue.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Qe(Ue.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let e=!1;if(this.dirtyFlags&7){let i=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r}of this.allViews){if(!i&&!ya(r))continue;let o=i&&!this.zonelessEnabled?0:1;oE(r,o),e=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}e||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>ya(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Ca(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(Ha,[]).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ca(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function _A(t){return t===void 0||typeof t=="string"||t instanceof Element?{hostElement:t}:t}function Ca(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function De(t,n,e,i){let r=se(),o=Vi();if(mn(r,o,n)){let s=ot(),a=Zr();FM(a,r,t,n,e,i)}return De}var Zh=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function Eh(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function bA(t,n,e,i){let r,o,s=0,a=t.length-1,l=void 0;if(Array.isArray(n)){oe(i);let c=n.length-1;for(oe(null);s<=a&&s<=c;){let u=t.at(s),d=n[s],m=Eh(s,u,s,d,e);if(m!==0){m<0&&t.updateValue(s,d),s++;continue}let f=t.at(a),_=n[c],E=Eh(a,f,c,_,e);if(E!==0){E<0&&t.updateValue(a,_),a--,c--;continue}let D=e(s,u),M=e(a,f),T=e(s,d);if(Object.is(T,M)){let q=e(c,_);Object.is(q,D)?(t.swap(s,a),t.updateValue(a,_),c--,a--):t.move(a,s),t.updateValue(s,d),s++;continue}if(r??=new Iu,o??=P_(t,s,a,e),Xh(t,r,s,T))t.updateValue(s,d),s++,a++;else if(o.has(T))r.set(D,t.detach(s)),a--;else{let q=t.create(s,n[s]);t.attach(s,q),s++,a++}}for(;s<=c;)L_(t,r,e,s,n[s]),s++}else if(n!=null){oe(i);let c=n[Symbol.iterator]();oe(null);let u=c.next();for(;!u.done&&s<=a;){let d=t.at(s),m=u.value,f=Eh(s,d,s,m,e);if(f!==0)f<0&&t.updateValue(s,m),s++,u=c.next();else{r??=new Iu,o??=P_(t,s,a,e);let _=e(s,m);if(Xh(t,r,s,_))t.updateValue(s,m),s++,a++,u=c.next();else if(!o.has(_))t.attach(s,t.create(s,m)),s++,a++,u=c.next();else{let E=e(s,d);r.set(E,t.detach(s)),a--}}}for(;!u.done;)L_(t,r,e,t.length,u.value),u=c.next()}for(;s<=a;)t.destroy(t.detach(a--));r?.forEach(c=>{t.destroy(c)})}function Xh(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function L_(t,n,e,i,r){if(Xh(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function P_(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var Iu=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function P(t,n,e,i,r,o,s,a){In("NgControlFlow");let l=se(),c=ot(),u=Tn(c.consts,o);return Ia(l,c,t,n,e,i,r,u,256,s,a),Wm}function Wm(t,n,e,i,r,o,s,a){return In("NgControlFlow"),EA(t,n,e,i,r,o,s,a),Wm}function EA(t,n,e,i,r,o,s,a){let l=se(),c=ot(),u=Tn(c.consts,o);Ia(l,c,t,n,e,i,r,u,512,s,a)}function F(t,n){In("NgControlFlow");let e=se(),i=Vi(),r=e[i]!==Zt?e[i]:-1,o=r!==-1?Mu(e,dt+r):void 0,s=0;if(mn(e,i,t)){let a=oe(null);try{if(o!==void 0&&dE(o,s),t!==-1){let l=dt+t,c=Mu(e,l),u=nm(e[ee],l),d=pE(c,u,e),m=La(e,u,n,{dehydratedView:d});Pa(c,m,s,ns(u,d))}}finally{oe(a)}}else if(o!==void 0){let a=uE(o,s);a!==void 0&&(a[gt]=n)}}var Jh=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-nt}};function $a(t){return t}function it(t,n){return n}var em=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function Ce(t,n,e,i,r,o,s,a,l,c,u,d,m){In("NgControlFlow");let f=se(),_=ot(),E=l!==void 0,D=se(),M=a?s.bind(D[Bt][gt]):s,T=new em(E,M);D[dt+t]=T,Ia(f,_,t+1,n,e,i,r,Tn(_.consts,o),256),E&&Ia(f,_,t+2,l,c,u,d,Tn(_.consts,m),512)}var tm=class extends Zh{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-nt}at(n){return this.getLView(n)[gt].$implicit}attach(n,e){let i=e[qr];this.needsIndexUpdate||=n!==this.length,Pa(this.lContainer,e,n,ns(this.templateTNode,i)),CA(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,wA(this.lContainer,n),DA(this.lContainer,n)}create(n,e){let i=_u(this.lContainer,this.templateTNode.tView.ssrId);return La(this.hostLView,this.templateTNode,new Jh(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Lu(n[ee],n)}updateValue(n,e){this.getLView(n)[gt].$implicit=e}reset(){this.needsIndexUpdate=!1}
vendor: 6,331 bytes, line 4
4updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[gt].$index=n}getLView(n){return SA(this.lContainer,n)}};function we(t){let n=oe(null),e=jn();try{let i=se(),r=i[ee],o=i[e],s=e+1,a=Mu(i,s);if(o.liveCollection===void 0){let c=nm(r,s);o.liveCollection=new tm(a,i,c)}else o.liveCollection.reset();let l=o.liveCollection;if(bA(l,t,o.trackByFn,n),l.updateIndexes(),o.hasEmptyBlock){let c=Vi(),u=l.length===0;if(mn(i,c,u)){let d=e+2,m=Mu(i,d);if(u){let f=nm(r,d),_=pE(m,f,i),E=La(i,f,void 0,{dehydratedView:_});Pa(m,E,0,ns(f,_))}else r.firstUpdatePass&&lk(m),dE(m,0)}}}finally{oe(n)}}function Mu(t,n){return t[n]}function CA(t,n){if(t.length<=nt)return;let e=nt+n,i=t[e];i&&Vb(i)}function wA(t,n){if(t.length<=nt)return;let e=nt+n,i=t[e];i&&Pb(i)}function DA(t,n){return Sa(t,n)}function SA(t,n){return uE(t,n)}function nm(t,n){return Uc(t,n)}function H(t,n,e){let i=se(),r=Vi();if(mn(i,r,n)){let o=ot(),s=Zr();Yb(s,i,t,n,i[Ze],e)}return H}function F_(t,n,e,i,r){Rm(n,t,e,r?"class":"style",i)}function h(t,n,e,i){let r=se(),o=r[ee],s=t+dt,a=o.firstCreatePass?wE(s,r,2,n,Zb,Xp(),e,i):o.data[s];if(Fi(a)){let l=r[Fn].tracingService;if(l&&l.componentCreate){let c=o.data[a.directiveStart+a.componentOffset];return l.componentCreate(gE(c),()=>(V_(t,n,r,a,i),h))}}return V_(t,n,r,a,i),h}function V_(t,n,e,i,r){if(Xb(i,e,t,n,FE),ga(i)){let o=e[ee];Nm(o,e,i),yb(o,i,e)}r!=null&&Fu(e,i)}function g(){let t=ot(),n=It(),e=Jb(n);return t.firstCreatePass&&DE(t,e),eh(e)&&th(),Zp(),e.classesWithoutHost!=null&&QT(e)&&F_(t,e,se(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&ZT(e)&&F_(t,e,se(),e.stylesWithoutHost,!1),g}function O(t,n,e,i){return h(t,n,e,i),g(),O}function U(t,n,e,i){let r=se(),o=r[ee],s=t+dt,a=o.firstCreatePass?kk(s,o,2,n,e,i):o.data[s];return Xb(a,r,t,n,FE),i!=null&&Fu(r,a),U}function $(){let t=It(),n=Jb(t);return eh(n)&&th(),Zp(),$}function rt(t,n,e,i){return U(t,n,e,i),$(),rt}var FE=(t,n,e,i,r)=>(Zc(!0),Sb(n[Ze],i,uh()));function ke(){return se()}function Be(t,n,e){let i=se(),r=Vi();if(mn(i,r,n)){let o=ot(),s=Zr();Qb(s,i,t,n,i[Ze],e)}return Be}var za="en-US";var xA=za;function VE(t){typeof t=="string"&&(xA=t.toLowerCase().replace(/_/g,"-"))}function X(t,n,e){let i=se(),r=ot(),o=It();return jE(r,i,i[Ze],o,t,n,e),X}function st(t,n,e){let i=se(),r=ot(),o=It();return(o.type&3||e)&&Vm(o,r,i,e,i[Ze],t,n,Jr(o,i,n)),st}function jE(t,n,e,i,r,o,s){let a=!0,l=null;if((i.type&3||s)&&(l??=Jr(i,n,o),Vm(i,t,n,s,e,r,o,l)&&(a=!1)),a){let c=i.outputs?.[r],u=i.hostDirectiveOutputs?.[r];if(u&&u.length)for(let d=0;d<u.length;d+=2){let m=u[d],f=u[d+1];l??=Jr(i,n,o),Eu(i,n,m,f,r,l)}if(c&&c.length)for(let d of c)l??=Jr(i,n,o),Eu(i,n,d,r,r,l)}}function b(t=1){return W0(t)}function TA(t,n){let e=null,i=QI(t);for(let r=0;r<n.length;r++){let o=n[r];if(o==="*"){e=r;continue}if(i===null?Nb(t,o,!0):JI(i,o))return r}return e}function Ga(t){let n=se()[Bt][Pt];if(!n.projection){let e=t?t.length:1,i=n.projection=C0(e,null),r=i.slice(),o=n.child;for(;o!==null;){if(o.type!==128){let s=t?TA(o,t):0;s!==null&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o)}o=o.next}}}function qa(t,n=0,e,i,r,o){let s=se(),a=ot(),l=i?t+1:null;l!==null&&Ia(s,a,l,i,r,o,null,e);let c=ss(a,dt+t,16,null,e||null);c.projection===null&&(c.projection=n),rh();let d=!s[qr]||Jp();s[Bt][Pt].projection[c.projection]===null&&l!==null?IA(s,a,l):d&&!Nu(c)&&wM(a,s,c)}function IA(t,n,e){let i=dt+e,r=n.data[i],o=t[i],s=_u(o,r.tView.ssrId),a=La(t,r,void 0,{dehydratedView:s});Pa(o,a,0,ns(r,s))}function Wa(t,n,e,i){return eA(t,n,e,i),Wa}function hi(t,n,e){return Jk(t,n,e),hi}function ft(t){let n=se(),e=ot(),i=ah();Wc(i+1);let r=Bm(e,i);if(t.dirty&&k0(n)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=iA(n,i);t.reset(o,uI),t.notifyOnChanges()}return!0}return!1}function pt(){return Xk(se(),ah())}function Le(t){let n=V0();return Gp(n,dt+t)}function lu(t,n){return t<<17|n<<2}function io(t){return t>>17&32767}function MA(t){return(t&2)==2}function kA(t,n){return t&131071|n<<17}function im(t){return t|2}function rs(t){return(t&131068)>>2}function Ch(t,n){return t&-131069|n<<2}function AA(t){return(t&1)===1}function rm(t){return t|1}function NA(t,n,e,i,r,o){let s=o?n.classBindings:n.styleBindings,a=io(s),l=rs(s);t[i]=e;let c=!1,u;if(Array.isArray(e)){let d=e;u=d[1],(u===null||$o(d,u)>0)&&(c=!0)}else u=e;if(r)if(l!==0){let m=io(t[a+1]);t[i+1]=lu(m,a),m!==0&&(t[m+1]=Ch(t[m+1],i)),t[a+1]=kA(t[a+1],i)}else t[i+1]=lu(a,0),a!==0&&(t[a+1]=Ch(t[a+1],i)),a=i;else t[i+1]=lu(l,0),a===0?a=i:t[l+1]=Ch(t[l+1],i),l=i;c&&(t[i+1]=im(t[i+1])),j_(t,u,i,!0),j_(t,u,i,!1),RA(n,u,t,i,o),s=lu(a,l),o?n.classBindings=s:n.styleBindings=s}function RA(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&$o(o,n)>=0&&(e[i+1]=rm(e[i+1]))}function j_(t,n,e,i){let r=t[e+1],o=n===null,s=i?io(r):rs(r),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];OA(l,n)&&(a=!0,t[s+1]=i?rm(c):im(c)),s=i?io(c):rs(c)}a&&(t[e+1]=i?im(r):rm(r))}function OA(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?$o(t,n)>=0:!1}function et(t,n,e){return UE(t,n,e,!1),et}function tt(t,n){return UE(t,n,null,!0),tt}function UE(t,n,e,i){let r=se(),o=ot(),s=Gc(2);if(o.firstUpdatePass&&PA(o,t,s,i),n!==Zt&&mn(r,s,n)){let a=o.data[jn()];BA(o,a,r,r[Ze],t,r[s+1]=HA(n,e),i,s)}}function LA(t,n){return n>=t.expandoStartIndex}function PA(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[jn()],s=LA(t,e);$A(o,i)&&n===null&&!s&&(n=!1),n=FA(r,o,n,i),NA(r,o,n,e,s,i)}}function FA(t,n,e,i){let r=$0(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=wh(null,t,n,e,i),e=Ma(e,n.attrs,i),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==r)if(e=wh(r,t,n,e,i),o===null){let l=VA(t,n,i);l!==void 0&&Array.isArray(l)&&(l=wh(null,t,n,l[1],i),l=Ma(l,n.attrs,i),jA(t,n,i,l))}else o=UA(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function VA(t,n,e){let i=e?n.classBindings:n.styleBindings;if(rs(i)!==0)return t[io(i)]}function jA(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[io(r)]=i}function UA(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;i=Ma(i,s,e)}return Ma(i,n.attrs,e)}function wh(t,n,e,i,r){let o=null,s=e.directiveEnd,a=e.directiveStylingLast;
vendor: 5,094 bytes, line 4
4for(a===-1?a=e.directiveStart:a++;a<s&&(o=n[a],i=Ma(i,o.hostAttrs,r),o!==t);)a++;return t!==null&&(e.directiveStylingLast=a),i}function Ma(t,n,e){let i=e?1:2,r=-1;if(n!==null)for(let o=0;o<n.length;o++){let s=n[o];typeof s=="number"?r=s:r===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),D0(t,s,e?!0:n[++o]))}return t===void 0?null:t}function BA(t,n,e,i,r,o,s,a){if(!(n.type&3))return;let l=t.data,c=l[a+1],u=AA(c)?U_(l,n,e,r,rs(c),s):void 0;if(!ku(u)){ku(o)||MA(c)&&(o=U_(l,null,e,r,a,s));let d=zp(jn(),e);SM(i,s,d,r,o)}}function U_(t,n,e,i,r,o){let s=n===null,a;for(;r>0;){let l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=u===null,m=e[r+1];m===Zt&&(m=d?cn:void 0);let f=d?Lc(m,i):u===i?m:void 0;if(c&&!ku(f)&&(f=Lc(l,i)),ku(f)&&(a=f,s))return a;let _=t[r+1];r=s?io(_):rs(_)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(a=Lc(l,i))}return a}function ku(t){return t!==void 0}function HA(t,n){return t==null||t===""||(typeof n=="string"?t=hn(t)+n:typeof t=="object"&&(t=sa(hn(t)))),t}function $A(t,n){return(t.flags&(n?8:16))!==0}function p(t,n=""){let e=se(),i=ot(),r=t+dt,o=i.firstCreatePass?ss(i,r,1,n,null):i.data[r],s=zA(i,e,o,n);e[r]=s,Qc()&&Tm(i,e,s,o),Ko(o,!1)}var zA=(t,n,e,i)=>(Zc(!0),FI(n[Ze],i));function BE(t,n,e,i=""){return mn(t,Vi(),e)?n+Ln(e)+i:Zt}function HE(t,n,e,i,r,o=""){let s=sh(),a=vE(t,s,e,r);return Gc(2),a?n+Ln(e)+i+Ln(r)+o:Zt}function GA(t,n,e,i,r,o,s,a=""){let l=sh(),c=_E(t,l,e,r,s);return Gc(3),c?n+Ln(e)+i+Ln(r)+o+Ln(s)+a:Zt}function k(t){return yt("",t),k}function yt(t,n,e){let i=se(),r=BE(i,t,n,e);return r!==Zt&&Km(i,jn(),r),yt}function gr(t,n,e,i,r){let o=se(),s=HE(o,t,n,e,i,r);return s!==Zt&&Km(o,jn(),s),gr}function Hu(t,n,e,i,r,o,s){let a=se(),l=GA(a,t,n,e,i,r,o,s);return l!==Zt&&Km(a,jn(),l),Hu}function Km(t,n,e){let i=zp(n,t);VI(t[Ze],i,e)}function ls(t,n,e){ru(n)&&(n=n());let i=se(),r=Vi();if(mn(i,r,n)){let o=ot(),s=Zr();Yb(s,i,t,n,i[Ze],e)}return ls}function Ka(t,n){let e=ru(t);return e&&t.set(n),e}function cs(t,n){let e=se(),i=ot(),r=It();return jE(i,e,e[Ze],r,t,n),cs}function Ya(t){return mn(se(),Vi(),t)?Ln(t):Zt}function gn(t,n,e=""){return BE(se(),t,n,e)}function Rt(t,n,e,i,r=""){return HE(se(),t,n,e,i,r)}function B_(t,n,e){let i=ot();i.firstCreatePass&&$E(n,i.data,i.blueprint,li(t),e)}function $E(t,n,e,i,r){if(t=Lt(t),Array.isArray(t))for(let o=0;o<t.length;o++)$E(t[o],n,e,i,r);else{let o=ot(),s=se(),a=It(),l=Br(t)?t:Lt(t.provide),c=Vp(t),u=a.providerIndexes&1048575,d=a.directiveStart,m=a.providerIndexes>>20;if(Br(t)||!t.multi){let f=new eo(c,r,Oe,null),_=Sh(l,n,r?u:u+m,d);_===-1?(Ih(yu(a,s),o,l),Dh(o,t,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[_]=f,s[_]=f)}else{let f=Sh(l,n,u+m,d),_=Sh(l,n,u,u+m),E=f>=0&&e[f],D=_>=0&&e[_];if(r&&!D||!r&&!E){Ih(yu(a,s),o,l);let M=KA(r?WA:qA,e.length,r,i,c,t);!r&&D&&(e[_].providerFactory=M),Dh(o,t,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(M),s.push(M)}else{let M=zE(e[r?_:f],c,!r&&i);Dh(o,t,f>-1?f:_,M)}!r&&i&&D&&e[_].componentProviders++}}}function Dh(t,n,e,i){let r=Br(n),o=T0(n);if(r||o){let l=(o?Lt(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let u=c.indexOf(e);u===-1?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function zE(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Sh(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function qA(t,n,e,i,r){return om(this.multi,[])}function WA(t,n,e,i,r){let o=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=wa(i,i[ee],this.providerFactory.index,r);s=l.slice(0,a),om(o,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],om(o,s);return s}function om(t,n){for(let e=0;e<t.length;e++){let i=t[e];n.push(i())}return n}function KA(t,n,e,i,r,o){let s=new eo(t,e,Oe,null);return s.multi=[],s.index=n,s.componentProviders=0,zE(s,r,i&&!e),s}function qi(t,n){return e=>{e.providersResolver=(i,r)=>B_(i,r?r(t):t,!1),n&&(e.viewProvidersResolver=(i,r)=>B_(i,r?r(n):n,!0))}}function yn(t,n,e){return qE(se(),zc(),t,n,e)}function Ym(t,n,e,i,r){return YA(se(),zc(),t,n,e,i,r)}function GE(t,n){let e=t[n];return e===Zt?void 0:e}function qE(t,n,e,i,r,o){let s=n+e;return mn(t,s,r)?yE(t,s+1,o?i.call(o,r):i(r)):GE(t,s+1)}function YA(t,n,e,i,r,o,s,a){let l=n+e;return _E(t,l,r,o,s)?yE(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):GE(t,l+3)}function us(t,n){let e=ot(),i,r=t+dt;e.firstCreatePass?(i=QA(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=ar(i.type,!0)),s,a=Yt(Oe);try{let l=gu(!1),c=o();return gu(l),qp(e,se(),r,c),c}finally{Yt(a)}}function QA(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function ds(t,n,e){let i=t+dt,r=se(),o=Gp(r,i);return ZA(r,i)?qE(r,zc(),n,o.transform,e,o):o.transform(e)}function ZA(t,n){return t[ee].data[n].pure}var WE=(()=>{class t{applicationErrorHandler=v(pn);appRef=v(zn);taskService=v(Un);ngZone=v(Ve);zonelessEnabled=v(Yo);tracing=v(Gi,{optional:!0});
4zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ct;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ra):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(nu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?Q0:ph;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ra+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){this.applicationErrorHandler(i)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function KE(){return[{provide:Oi,useExisting:WE},{provide:Ve,useClass:oa},{provide:Yo,useValue:!0}]}var Qm=(()=>{class t{compileModuleSync(e){return new Tu(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function XA(){return typeof $localize<"u"&&$localize.locale||za}var $u=new L("",{factory:()=>v($u,{optional:!0,skipSelf:!0})||XA()});var zu=class{destroyed=!1;listeners=null;errorHandler=v(On,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=v(je);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new S(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{let e=this.listeners?this.listeners.indexOf(n):-1;e>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[e]=null):this.listeners.splice(e,1))}}}emit(n){if(this.destroyed){console.warn(un(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let e=oe(null);try{for(let i of this.listeners)try{i!==null&&i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&JA(this.listeners)),oe(e),this.isEmitting=!1}}};function JA(t){let n=t.length-1;for(;n>-1;)t[n]===null&&t.splice(n,1),n--}
4function Ae(t,n){return $l(t,n?.equal)}function Me(t){return Ov(t)}var YE=class t extends Error{_brand;constructor(n){super(n)}static IDLE=new t("IDLE");static LOADING=new t("LOADING")},eN=t=>t;function Zm(t,n){if(typeof t=="function"){let e=qf(t,eN,n?.equal);return QE(e,n?.debugName,n?.set)}else{let e=qf(t.source,t.computation,t.equal);return QE(e,t.debugName,t.set)}}function QE(t,n,e){let i=t[Dt],r=t;if(e!==void 0){let o=s=>Wf(i,s);r.set=s=>e(s,o),r.update=s=>e(s(Me(t)),o)}else r.set=o=>Wf(i,o),r.update=o=>Rv(i,o);return r.asReadonly=Xc.bind(t),r}function nC(t,n){let e=Object.create(z_);e.value=t,e.transformFn=n?.transform;function i(){if(nr(e),e.value===Au){let r=null;throw new S(-950,r)}return e.value}return i[Dt]=e,i}var qu=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>Aa(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function ig(t){return fN(t)?t.default:t}function fN(t){return t&&typeof t=="object"&&"default"in t}function iC(t){return new zu}function ZE(t,n){return nC(t,n)}function pN(t){return nC(Au,t)}var mi=(ZE.required=pN,ZE);var rC=(()=>{class t{constructor(e){}static \u0275fac=function(i){return new(i||t)(K(zn))};static \u0275mod=Vt({type:t});static \u0275inj=Nt({})}return t})();var hN=1e4;var W9=hN-1e3;var Xm=class{supports(n){return n instanceof Map||Fm(n)}create(){return new Jm}},Jm=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(n){let e;for(e=this._mapHead;e!==null;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;e!==null;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;e!==null;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}diff(n){if(!n)n=new Map;else if(!(n instanceof Map||Fm(n)))throw new S(900,!1);return this.check(n)?this:null}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){let i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let r=this._records.get(n);this._maybeAddToChanges(r,e);let o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}let i=new eg(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}
vendor: 9,855 bytes, line 4
4_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}},eg=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function XE(){return new rg([new Xm])}var rg=(()=>{class t{static \u0275prov=A({token:t,providedIn:"root",factory:XE});factories;constructor(e){this.factories=e}static create(e,i){if(i){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=v(t,{optional:!0,skipSelf:!0});return t.create(e,i||XE())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i)return i;throw new S(901,!1)}}return t})(),en=(()=>{class t{static __NG_ELEMENT_ID__=mN}return t})();function mN(t){return gN(It(),se(),(t&16)===16)}function gN(t,n,e){if(Fi(t)&&!e){let i=xn(t.index,n);return new hr(i,i)}else if(t.type&175){let i=n[Bt];return new hr(i,n)}return null}var yN=(()=>{class t{zone=v(Ve);changeDetectionScheduler=v(Oi);applicationRef=v(zn);applicationErrorHandler=v(pn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})(),vN=new L("",{factory:()=>!1});function _N({ngZoneFactory:t,scheduleInRootZone:n}){return t??=()=>new Ve(Z(C({},sC()),{scheduleInRootZone:n})),[{provide:Yo,useValue:!1},{provide:Ve,useFactory:t},{provide:cr,multi:!0,useFactory:()=>{let e=v(yN,{optional:!0});return()=>e.initialize()}},{provide:cr,multi:!0,useFactory:()=>{let e=v(bN);return()=>{e.initialize()}}},{provide:nu,useValue:n??fh}]}function oC(t){let n=t?.scheduleInRootZone,e=_N({ngZoneFactory:()=>{let i=sC(t);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&In("NgZone_CoalesceEvent"),new Ve(i)},scheduleInRootZone:n});return Li([{provide:vN,useValue:!0},e])}function sC(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var bN=(()=>{class t{subscription=new ct;initialized=!1;zone=v(Ve);pendingTasks=v(Un);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ve.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ve.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();var tg=new L(""),EN=new L("");function Qa(t){return!t.moduleRef}function CN(t){let n=Qa(t)?t.r3Injector:t.moduleRef.injector,e=n.get(Ve);return e.run(()=>{Qa(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(pn),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),Qa(t)){let o=()=>n.destroy(),s=t.platformInjector.get(tg);s.add(o),n.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(tg);s.add(o),t.moduleRef.onDestroy(()=>{Ca(t.allPlatformModules,t.moduleRef),r.unsubscribe(),s.delete(o)})}return DN(i,e,()=>{let o=n.get(Un),s=o.add(),a=n.get($m);return a.runInitializers(),a.donePromise.then(()=>{let l=n.get($u,za);if(VE(l||za),!n.get(EN,!0))return Qa(t)?n.get(zn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Qa(t)){let u=n.get(zn);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return wN?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{o.remove(s)})})})}var wN;function DN(t,n,e){try{let i=e();return mr(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var Gu=null;function SN(t=[],n){return wt.create({name:n,providers:[{provide:fa,useValue:"platform"},{provide:tg,useValue:new Set([()=>Gu=null])},...t]})}function xN(t=[]){if(Gu)return Gu;let n=SN(t);return Gu=n,PE(),TN(n),n}function TN(t){let n=t.get(Jc,null);Tt(t,()=>{n?.forEach(e=>e())})}function aC(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;Qe(Ue.BootstrapApplicationStart);try{let o=r?.injector??xN(i),s=[KE(),e_,...e||[]],a=new Ta({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1});return CN({r3Injector:a.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{Qe(Ue.BootstrapApplicationEnd)}}function yr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}var lC=null;function tn(){return lC}function og(t){lC??=t}var Za=class{},oo=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:()=>v(cC),providedIn:"platform"})}return t})();var cC=(()=>{class t extends oo{_location;_history;_doc=v(Ee);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return tn().getBaseHref(this._doc)}onPopState(e){let i=tn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=tn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function fC(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function uC(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function vr(t){return t&&t[0]!=="?"?`?${t}`:t}var so=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:()=>v(pC),providedIn:"root"})}return t})(),IN=new L(""),pC=(()=>{class t extends so{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??v(Ee).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return fC(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+vr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+vr(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+vr(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(K(oo),K(IN,8))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ao=(()=>{class t{_subject=new Ie;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=AN(uC(dC(i))),this._locationStrategy.onPopState(r=>{let o={url:this.path(!0),pop:!0,state:r.state,type:r.type};r.hasUAVisualTransition&&(o.hasUAVisualTransition=!0),this._subject.next(o)})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+vr(i))}normalize(e){return t.stripTrailingSlash(kN(this._basePath,dC(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vr(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vr(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEac
vendor: 6,721 bytes, line 4
4h(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=vr;static joinWithSlash=fC;static stripTrailingSlash=uC;static \u0275fac=function(i){return new(i||t)(K(so))};static \u0275prov=A({token:t,factory:()=>MN(),providedIn:"root"})}return t})();function MN(){return new ao(K(so))}function kN(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function dC(t){return t.replace(/\/index\.html$/,"")}function AN(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var sg=/\s+/,hC=[],ag=(()=>{class t{_ngEl;_renderer;initialClasses=hC;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(sg):hC}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(sg):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(sg).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(Oe(Mt),Oe($t))};static \u0275dir=Ct({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Wi=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){let[r,o]=e.split("."),s=r.indexOf("-")===-1?void 0:$n.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static \u0275fac=function(i){return new(i||t)(Oe(Mt),Oe(rg),Oe($t))};static \u0275dir=Ct({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),lg=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=v(wt);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(Oe(pi))};static \u0275dir=Ct({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Jt]})}return t})();var Xa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Vt({type:t});static \u0275inj=Nt({})}return t})();function Ja(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()!==n)continue;let s=o;try{s=decodeURIComponent(o)}catch(a){}return s.length>1&&s[0]==='"'&&s[s.length-1]==='"'&&(s=s.slice(1,-1)),s}return null}var NN=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})(),cg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=K(NN),r},providedIn:"root"})}return t})();var dg="browser";function _r(t){return t===dg}var mC=(()=>{class t{static \u0275prov=A({token:t,providedIn:"root",factory:()=>new ug(v(Ee),window)})}return t})(),ug=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n,e){this.window.scrollTo(Z(C({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let i=PN(this.document,n);i&&(this.scrollToElement(i,e),i.focus({preventScroll:!0}))}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch(e){console.warn(un(2400,!1))}}scrollToElement(n,e){let i=n.getBoundingClientRect(),r=i.left+this.window.pageXOffset,o=i.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(Z(C({},e),{left:r-s[0],top:o-s[1]}))}};function PN(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${CSS.escape(n)}"]`);if(s)return s}r=i.nextNode()}}return null}var el=class{_doc;constructor(n){this._doc=n}manager},Ku=(()=>{class t extends el{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(K(Ee))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Zu=new L(""),mg=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(s=>{s.manager=this});let r=e.filter(s=>!(s instanceof Ku));this._plugins=r.slice().reverse();let o=e.find(s=>
vendor: 12,418 bytes, line 4
4s instanceof Ku);o&&this._plugins.push(o)}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new S(-5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(K(Zu),K(Ve))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),fg="ng-app-id";function yC(t){for(let n of t)n.remove()}function vC(t,n){let e=n.createElement("style");return e.textContent=t,e}function FN(t,n,e,i){let r=t.head?.querySelectorAll(`style[${fg}="${n}"],link[${fg}="${n}"]`);if(!r||r.length===0)return!1;for(let o of r)o.removeAttribute(fg),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]});return!0}function hg(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var gg=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,FN(e,i,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,vC);i?.forEach(r=>this.addUsage(r,this.external,hg))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(yC(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])yC(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,vC(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,hg(i,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let i of[...this.inline.values(),...this.external.values()]){let r=[];for(let o of i.elements)o.parentNode===e?o.remove():r.push(o);i.elements=r}}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(K(Ee),K(va),K(_a,8),K(ji))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),pg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},yg=/%COMP%/g;var bC="%COMP%",VN=`_nghost-${bC}`,jN=`_ngcontent-${bC}`,UN=!0,BN=new L("",{factory:()=>UN}),HN=new L("");function $N(t){return jN.replace(yg,t)}function zN(t){return VN.replace(yg,t)}function EC(t,n){return n.map(e=>e.replace(yg,t))}var il=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,i,r,o,s,a,l=null,c=null,u=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=l,this.tracingService=c,this.cssVarNamespace=u??"",this.defaultRenderer=new tl(e,s,a,this.tracingService,this.cssVarNamespace)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof Qu?r.applyToHost(e):r instanceof nl&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.tracingService;switch(i.encapsulation){case Hn.Emulated:o=new Qu(l,c,i,this.appId,u,s,a,d,this.cssVarNamespace);break;case Hn.ShadowDom:return new Yu(l,e,i,s,a,this.nonce,d,this.cssVarNamespace,c);case Hn.ExperimentalIsolatedShadowDom:return new Yu(l,e,i,s,a,this.nonce,d,this.cssVarNamespace);default:o=new nl(l,c,i,u,s,a,d,this.cssVarNamespace);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(K(mg),K(ro),K(va),K(BN),K(Ee),K(Ve),K(_a),K(Gi,8),K(HN,8))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),tl=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o=""){this.eventManager=n,this.doc=e,this.ngZone=i,this.tracingService=r,this.cssVarNamespace=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(pg[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(_C(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){if(n){let r=_C(n)?n.content:n;if(i!=null&&i.parentNode!==r)throw new S(-5106,!1);r.insertBefore(e,i)}}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new S(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=pg[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=pg[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){let o=e.startsWith("--");o&&(e=e.replace("%NS%",this.cssVarNamespace)),o||r&($n.DashCase|$n.Important)?n.style.setProperty(e,i,r&$n.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){let r=e.startsWith("--");r&&(e=e.replace("%NS%",this.cssVarNamespace)),r||i&$n.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=tn().getGlobalEventTarget(this.doc,n),!n))throw new S(-5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function _C(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Yu=class extends tl{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,i,r,o,s,a,l,c){super(n,r,o,a,l),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=i.styles;u=EC(i.id,u).map(m=>m.replace(/%NS%/g,l));for(let m of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=m,this.shadowRoot.appendChild(f)}let d=i.getExternalStyles?.();if(d)for(let m of d){let f=hg(m,r);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},nl=class extends tl{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,s,a,l,c){super(n,o,s,a,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let u=i.styles,d=c?EC(c,u):u;this.styles=d.map(m=>m.replace(/%NS%/g,l)),this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&pr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Qu=class extends nl{contentAttr;hostAttr;constructor(n,e,i,r,o,s,a,l,c){let u=r+"-"+i.id;super(n,e,i,o,s,a,l,c,u),this.contentAttr=$N(u),this.hostAttr=zN(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var Xu=class t extends Za{supportsDOMEvents=!0;static makeCurrent(){og(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=GN();return e==null?null:qN(e)}resetBaseElement(){rl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Ja(document.cookie,n)}},rl=null;function GN(){return rl=rl||document.head.querySelector("base"),rl?rl.getAttribute("href"):null}function qN(t){return new URL(t,document.baseURI).pathname}var Ju=class{addToWindow(n){Qt.getAngularTestability=(i,r=!0)=>{let o=n.findTestabilityInTree(i,r);if(o==null)throw new S(5103,!1);return o},Qt.getAllAngularTestabilities=()=>n.getAllTestabilities(),Qt.getAllAngularRootElements=()=>n.getAllRootElements();let e=i=>{let r=Qt.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&i()};r.forEach(a=>{a.whenStable(s)})};Qt.frameworkStabilizers||(Qt.frameworkStabilizers=[]),Qt.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,i){if(e==null)return null;let r=n.getTestability(e);return r??(i?tn().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},CC=["alt","control","meta","shift"],WN={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},KN={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},wC=(()=>{class t extends el{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>tn().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),CC.forEach(c=>{let u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=WN[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),CC.forEach(s=>{if(s!==r){let a=KN[s];a(e)&&(o+=s+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(K(Ee))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();function vg(t,n,e){return ne(this,null,function*(){let i=C({rootComponent:t},YN(n,e));return aC(i)})}function YN(t,n){return{platformRef:n?.platformRef,appProviders:[...DC,...t?.providers??[]],platformProviders:JN}}function QN(){Xu.makeCurrent()}function ZN(){return new On}function XN(){return cm(document),document}var JN=[{provide:ji,useValue:dg},{provide:Jc,useValue:QN,multi:!0},{provide:Ee,useFactory:XN}];var e1=[{provide:as,useClass:Ju},{provide:Bu,useClass:Ua,deps:[Ve,Ba,as]},{provide:Ua,useClass:Ua,deps:[Ve,Ba,as]}],DC=[{provide:fa,useValue:"root"},{provide:On,useFactory:ZN},{provide:Zu,useClass:Ku,multi:!0},{provide:Zu,useClass:wC,multi:!0},il,{provide:ro,useClass:gg},{provide:gg,useExisting:ro},mg,{provide:$i,useExisting:il},[]],_g=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275mod=Vt({type:t});static \u0275inj=Nt({providers:[...DC,...e1],imports:[Xa,rC]})}return t})();var vi=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
5`).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init();for(let[e,i]of n.headers.entries())this.headers.set(e,i),this.normalizedNames.set(e,n.normalizedNames.get(e))}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=n.op==="a"?(this.headers.get(e)||[]).slice():[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(o===void 0)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=Array.isArray(o)?o:[o],a=this.headers.get(e);if(!a)return;a=a.filter(l=>s.indexOf(l)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var td=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}},nd=class{encodeKey(n){return SC(n)}encodeValue(n){return SC(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function t1(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var n1=/%(\d[a-f0-9])/gi,i1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function SC(t){return encodeURIComponent(t).replace(n1,(n,e)=>i1[e]??n)}function ed(t){return`${t}`}var Ki=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new nd,n.fromString){if(n.fromObject)throw new S(2805,!1);this.map=t1(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(ed):[ed(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[n,e]of this.cloneFrom.map.entries())this.map.set(n,e);
vendor: 6,575 bytes, line 5
5this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=n.op==="a"?(this.map.get(n.param)||[]).slice():[];e.push(ed(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=(this.map.get(n.param)||[]).slice(),r=i.indexOf(ed(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null}}};function r1(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function xC(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function TC(t){return typeof Blob<"u"&&t instanceof Blob}function IC(t){return typeof FormData<"u"&&t instanceof FormData}function o1(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ol="Content-Type",id="Accept",NC="text/plain",RC="application/json",OC=`${RC}, ${NC}, */*`,fs=class t{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(r1(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.reportUploadProgress=!!o.reportUploadProgress,this.reportDownloadProgress=!!o.reportDownloadProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new S(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer!==void 0&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache}if(this.headers??=new vi,this.context??=new td,!this.params)this.params=new Ki,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e,l="",c=e.indexOf("#");c!==-1&&(l=e.substring(c),a=e.substring(0,c));let u=a.indexOf("?"),d=u===-1?"?":u<a.length-1?"&":"";this.urlWithParams=a+d+s+l}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||xC(this.body)||TC(this.body)||IC(this.body)||o1(this.body)?this.body:this.body instanceof Ki?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||IC(this.body)?null:TC(this.body)?this.body.type||null:xC(this.body)?null:typeof this.body=="string"?NC:this.body instanceof Ki?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?RC:null}clone(n={}){let e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=n.keepalive??this.keepalive,s=n.priority||this.priority,a=n.cache||this.cache,l=n.mode||this.mode,c=n.redirect||this.redirect,u=n.credentials||this.credentials,d=n.referrer??this.referrer,m=n.integrity||this.integrity,f=n.referrerPolicy||this.referrerPolicy,_=n.transferCache??this.transferCache,E=n.timeout??this.timeout,D=n.body!==void 0?n.body:this.body,M=n.withCredentials??this.withCredentials,T=n.reportProgress??this.reportProgress,q=n.reportUploadProgress??this.reportUploadProgress,Q=n.reportDownloadProgress??this.reportDownloadProgress,pe=n.headers||this.headers,N=n.params||this.params,z=n.context??this.context;return n.setHeaders!==void 0&&(pe=Object.keys(n.setHeaders).reduce((le,ce)=>le.set(ce,n.setHeaders[ce]),pe)),n.setParams&&(N=Object.keys(n.setParams).reduce((le,ce)=>le.set(ce,n.setParams[ce]),N)),new t(e,i,D,{params:N,headers:pe,context:z,reportProgress:T,reportUploadProgress:q,reportDownloadProgress:Q,responseType:r,withCredentials:M,transferCache:_,keepalive:o,cache:a,priority:s,timeout:E,mode:l,redirect:c,credentials:u,referrer:d,integrity:m,referrerPolicy:f})}},yi=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(yi||{}),ps=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(n,e=200,i="OK"){this.headers=n.headers||new vi,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.responseType=n.responseType,this.ok=this.status>=200&&this.status<300}},sl=class t extends ps{constructor(n={}){super(n)}type=yi.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},hs=class t extends ps{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=yi.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected,responseType:n.responseType??this.responseType})}},gi=class extends ps{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},LC=200,s1=204;var a1=/^\)\]\}',?\n/,gK=1024*1024,PC=new L("",{factory:()=>null}),rd=(()=>{class t{fetchImpl=v(Eg,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=v(Ve);destroyRef=v(je);maxResponseSize=v(PC);handle(e){return new he(i=>{let r=new AbortController,o=!1,s={next:l=>{l.type===yi.Response&&(o=!0),i.next(l)},error:l=>{o=!0,i.error(l)},complete:()=>{o=!0,i.complete()}};this.doRequest(e,r.signal,s).then(Cg,l=>s.error(new gi({error:l})));let a;return e.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{r.signal.aborted||r.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{a!==void 0&&clearTimeout(a),!o&&!r.signal.aborted&&r.abort()}})}
5doRequest(e,i,r){return ne(this,null,function*(){let o=this.createRequestInit(e),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,C({signal:i},o)));l1(D),r.next({type:yi.Sent}),s=yield D}catch(D){r.error(new gi({error:D,status:D.status??0,statusText:D.statusText,url:e.urlWithParams,headers:D.headers}));return}let a=new vi(s.headers),l=s.statusText,c=s.url||e.urlWithParams,u=s.status,d=null,m=e.reportProgress||e.reportDownloadProgress;if(m&&r.next(new sl({headers:a,status:u,statusText:l,url:c})),s.body){let D=s.headers.get(ol)??"",M=s.headers.get("content-length"),T=M!==null?Number(M):NaN;this.maxResponseSize!==null&&Number.isFinite(T)&&T>this.maxResponseSize&&(yield s.body.cancel(),MC(this.maxResponseSize));let q=[],Q=s.body.getReader(),pe=0,N,z,le=typeof Zone<"u"&&Zone.current,ce=!1;if(yield this.ngZone.runOutsideAngular(()=>ne(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield Q.cancel(),ce=!0;break}let{done:Si,value:ie}=yield Q.read();if(Si)break;if(q.push(ie),pe+=ie.length,this.maxResponseSize!==null&&pe>this.maxResponseSize&&(yield Q.cancel(),MC(this.maxResponseSize)),m){z=e.responseType==="text"?(z??"")+(N??=kC(D)).decode(ie,{stream:!0}):void 0;let W=()=>r.next({type:yi.DownloadProgress,total:Number.isFinite(T)?T:void 0,loaded:pe,partialText:z});le?le.run(W):W()}}})),ce){r.complete();return}let an=this.concatChunks(q,pe);try{d=this.parseBody(e,an,D,u)}catch(Si){r.error(new gi({error:Si,headers:new vi(s.headers),status:s.status,statusText:s.statusText,url:s.url||e.urlWithParams}));return}}u===0&&(u=d?LC:0);let f=u>=200&&u<300,_=s.redirected,E=s.type;f?(r.next(new hs({body:d,headers:a,status:u,statusText:l,url:c,redirected:_,responseType:E})),r.complete()):r.error(new gi({error:d,headers:a,status:u,statusText:l,url:c,redirected:_,responseType:E}))})}parseBody(e,i,r,o){switch(e.responseType){case"json":let s=new TextDecoder().decode(i).replace(a1,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(o<200||o>=300)return s;throw a}case"text":return kC(r).decode(i);case"blob":return new Blob([i],{type:r});case"arraybuffer":return i.buffer}}createRequestInit(e){if(e.reportUploadProgress)throw new S(2824,!1);let i={},r;if(r=e.credentials,e.withCredentials&&(r="include"),e.headers.forEach((o,s)=>i[o]=s.join(",")),e.headers.has(id)||(i[id]=OC),!e.headers.has(ol)){let o=e.detectContentTypeHeader();o!==null&&(i[ol]=o)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:r,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,i){let r=new Uint8Array(i),o=0;for(let s of e)r.set(s,o),o+=s.length;return r}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})(),Eg=class{};function Cg(){}function l1(t){t.then(Cg,Cg)}function MC(t){throw new S(-2825,!1)}var c1=/charset=\s*["']?([^;"'\s]+)["']?/i;function kC(t){let n=t.match(c1);if(n!==null)try{return new TextDecoder(n[1])}catch(e){}return new TextDecoder}var u1=new L("",{factory:()=>!0}),d1="XSRF-TOKEN",f1=new L("",{factory:()=>d1}),p1="X-XSRF-TOKEN",h1=new L("",{factory:()=>p1}),m1=(()=>{class t{cookieName=v(f1);doc=v(Ee);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ja(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})(),sd=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=K(m1),r},providedIn:"root"})}return t})();function FC(t,n){if(!v(u1)||t.method==="GET"||t.method==="HEAD")return n(t);try{let r=v(oo).href,{origin:o}=new URL(r),{origin:s}=new URL(t.url,o);if(o!==s)return n(t)}catch(r){return n(t)}let e=v(sd).getToken(),i=v(h1);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}function VC(t,n){return n(t)}function g1(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}function y1(t,n,e){return(i,r)=>Tt(e,()=>n(i,o=>t(o,r)))}var ms=new L(""),Dg=new L("",{factory:()=>[FC]}),jC=new L(""),Sg=new L("",{factory:()=>!0});function v1(){let t=null;return(n,e)=>{t===null&&(t=(v(ms,{optional:!0})??[]).reduceRight(g1,VC));let i=v(Ui);if(v(Sg)){let o=i.add();
vendor: 4,357 bytes, line 5
5return t(n,e).pipe(Uo(o))}else return t(n,e)}}var ad=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=K(rd),r},providedIn:"root"})}return t})();var od=(()=>{class t{backend;injector;chain=null;pendingTasks=v(Ui);contributeToStability=v(Sg);constructor(e,i){this.backend=e,this.injector=i}handle(e){if(this.chain===null){let r=this.injector.get(ld,null,{skipSelf:!0}),o=r!==null&&this.backend===r,s=this.injector.get(jC,[],o?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(Dg),...s]));this.chain=a.reduceRight((l,c)=>y1(l,c,this.injector),VC)}let i=this.chain;if(this.contributeToStability){let r=this.pendingTasks.add();return Me(()=>i(e,o=>this.backend.handle(o))).pipe(Uo(r))}else return Me(()=>i(e,r=>this.backend.handle(r)))}static \u0275fac=function(i){return new(i||t)(K(ad),K(ut))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ld=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=K(od),r},providedIn:"root"})}return t})();function bg(t,n){return C({body:n},t)}var Gn=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof fs)o=e;else{let l;r.headers instanceof vi?l=r.headers:l=new vi(r.headers);let c;r.params&&(r.params instanceof Ki?c=r.params:c=new Ki({fromObject:r.params})),o=new fs(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,reportUploadProgress:r.reportUploadProgress,reportDownloadProgress:r.reportDownloadProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,referrerPolicy:r.referrerPolicy,integrity:r.integrity,timeout:r.timeout})}let s=ue(o).pipe(Vo(l=>this.handler.handle(l)));if(e instanceof fs||r.observe==="events")return s;let a=s.pipe(ln(l=>l instanceof hs));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Ne(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new S(2806,!1);return l.body}));case"blob":return a.pipe(Ne(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new S(2807,!1);return l.body}));case"text":return a.pipe(Ne(l=>{if(l.body!==null&&typeof l.body!="string")throw new S(2808,!1);return l.body}));default:return a.pipe(Ne(l=>l.body))}case"response":return a;default:throw new S(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Ki().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,bg(r,i))}post(e,i,r={}){return this.request("POST",e,bg(r,i))}put(e,i,r={}){return this.request("PUT",e,bg(r,i))}static \u0275fac=function(i){return new(i||t)(K(ld))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _1=/^\)\]\}',?\n/;var wg=(()=>{class t{xhrFactory;tracingService=v(Gi,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new S(-2800,!1);let i=this.xhrFactory;return ue(null).pipe(Ut(()=>new he(o=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((T,q)=>s.setRequestHeader(T,q.join(","))),e.headers.has(id)||s.setRequestHeader(id,OC),!e.headers.has(ol)){let T=e.detectContentTypeHeader();T!==null&&s.setRequestHeader(ol,T)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let T=e.responseType.toLowerCase();s.responseType=T!=="json"?T:"text"}let a=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let T=s.statusText||"OK",q=new vi(s.getAllResponseHeaders()),Q=s.responseURL||e.url;return l=new sl({headers:q,status:s.status,statusText:T,url:Q}),l},u=this.maybePropagateTrace(()=>{let{headers:T,status:q,statusText:Q,url:pe}=c(),N=null;q!==s1&&(N=typeof s.response>"u"?s.responseText:s.response),q===0&&(q=N?LC:0);let z=q>=200&&q<300;
5if(e.responseType==="json"&&typeof N=="string"){let le=N;N=N.replace(_1,"");try{N=N!==""?JSON.parse(N):null}catch(ce){N=le,z&&(z=!1,N={error:ce,text:N})}}z?(o.next(new hs({body:N,headers:T,status:q,statusText:Q,url:pe||void 0})),o.complete()):o.error(new gi({error:N,headers:T,status:q,statusText:Q,url:pe||void 0}))}),d=this.maybePropagateTrace(T=>{let{url:q}=c(),Q=new gi({error:T,status:s.status||0,statusText:s.statusText||"Unknown Error",url:q||void 0});o.error(Q)}),m=d;e.timeout&&(m=this.maybePropagateTrace(T=>{let{url:q}=c(),Q=new gi({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:q||void 0});o.error(Q)}));let f=!1,_=this.maybePropagateTrace(T=>{f||(o.next(c()),f=!0);let q={type:yi.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(q.total=T.total),e.responseType==="text"&&s.responseText&&(q.partialText=s.responseText),o.next(q)}),E=this.maybePropagateTrace(T=>{let q={type:yi.UploadProgress,loaded:T.loaded};T.lengthComputable&&(q.total=T.total),o.next(q)});s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",m),s.addEventListener("abort",d);let D=e.reportProgress||e.reportUploadProgress,M=e.reportProgress||e.reportDownloadProgress;return M&&s.addEventListener("progress",_),D&&a!==null&&s.upload&&s.upload.addEventListener("progress",E),s.send(a),o.next({type:yi.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",m),M&&s.removeEventListener("progress",_),D&&a!==null&&s.upload&&s.upload.removeEventListener("progress",E),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(i){return new(i||t)(K(cg))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t[t.Xhr=7]="Xhr",t})(cd||{});function UC(t,n){return{\u0275kind:t,\u0275providers:n}}function xg(...t){let n=[Gn,rd,od,{provide:ld,useExisting:od},{provide:ad,useFactory:()=>v(rd)},{provide:Dg,useValue:FC,multi:!0}];for(let e of t)n.push(...e.\u0275providers);return Li(n)}var AC=new L("");function Tg(){return UC(cd.LegacyInterceptors,[{provide:AC,useFactory:v1},{provide:Dg,useExisting:AC,multi:!0}])}function Ig(){return UC(cd.Xhr,[wg,{provide:ad,useExisting:wg}])}var WC=(()=>{class t{_doc=v(Ee);_dom=tn();_cachedHead;addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e.filter(r=>!!r).map(r=>this._getOrCreateElement(r,i))}getTag(e){if(!e)return null;let i=this._doc.querySelector(BC(e));return GC(i)?i:null}getTags(e){if(!e)return[];let i=this._doc.querySelectorAll(BC(e));return i?Array.from(i).filter(r=>GC(r)):[]}updateTag(e,i){$C(e),i??=zC(e);let r=this.getTag(i);return r?(HC(e,r),r):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if($C(e),!i){let s=zC(e),a=this.getTags(s).filter(l=>C1(e,l))[0];if(a!==void 0)return a}let r=this._dom.createElement("meta");return HC(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function BC(t){return`meta[${t}]`}function HC(t,n){Object.keys(t).forEach(e=>n.setAttribute(Mg(e),t[e]))}function $C(t){for(let n of Object.keys(t))if(Mg(n).toLowerCase().startsWith("on"))throw new S(5203,!1)}function zC(t){let n=t.name?"name":"property";return`${n}=${E1(String(t[n]))}`}function E1(t){return`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function C1(t,n){return Object.keys(t).every(e=>n.getAttribute(Mg(e))===t[e])}function Mg(t){return Object.hasOwn(qC,t)?qC[t]:t}function GC(t){return t?.nodeName.toLowerCase()==="meta"}var qC={httpEquiv:"http-equiv"},ud=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(K(Ee))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var kg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=K(w1),r},providedIn:"root"})}return t})(),w1=(()=>{class t extends kg{_doc=v(Ee);sanitize(e,i){if(i==null)return null;switch(e){case Ke.NONE:return i;case Ke.HTML:return di(i,"HTML")?hn(i):Ou(this._doc,String(i)).toString();case Ke.STYLE:return di(i,"Style")?hn(i):i;case Ke.SCRIPT:if(di(i,"Script"))return hn(i);throw new S(5200,!1);case Ke.URL:return di(i,"URL")?hn(i):Na(String(i));case Ke.RESOURCE_URL:if(di(i,"ResourceURL"))return hn(i);throw new S(-5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return fm(e)}bypassSecurityTrustStyle(e){return pm(e)}bypassSecurityTrustScript(e){return hm(e)}bypassSecurityTrustUrl(e){return mm(e)}bypassSecurityTrustResourceUrl(e){return gm(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();var iw=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(Oe($t),Oe(Mt))};static \u0275dir=Ct({type:t})}return t})(),S1=(()=>{class t extends iw{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ui(t)))(r||t)}})();static \u0275dir=Ct({type:t,features:[Je]})}return t})(),yd=new L("");var x1={provide:yd,useExisting:ri(()=>vd),multi:!0};function T1(){let t=tn()?tn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var I1=new L(""),vd=(()=>{class t extends iw{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!T1())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(Oe($t),Oe(Mt),Oe(I1,8))};static \u0275dir=Ct({type:t,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&X("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},standalone:!1,features:[qi([x1]),Je]})}return t})();function Fg(t){return t==null||Vg(t)===0}function Vg(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var rw=new L(""),M1=new L(""),k1=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vs=class{static min(n){return A1(n)}static max(n){return N1(n)}static required(n){return ow(n)}static requiredTrue(n){return R1(n)}static email(n){return O1(n)}static minLength(n){return L1(n)}static maxLength(n){return P1(n)}static pattern(n){return F1(n)}static nullValidator(n){return fd()}static compose(n){return dw(n)}static composeAsync(n){return pw(n)}};function A1(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}function N1(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function ow(t){return Fg(t.value)?{required:!0}:null}function R1(t){return t.value===!0?null:{required:!0}}function O1(t){return Fg(t.value)||k1.test(t.value)?null:{email:!0}}function L1(t){return n=>{let e=n.value?.length??Vg(n.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function P1(t){return n=>{let e=n.value?.length??Vg(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function F1(t){if(!t)return fd;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>
vendor: 6,248 bytes, line 5
5{if(Fg(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function fd(t){return null}function sw(t){return t!=null}function aw(t){return mr(t)?lt(t):t}function lw(t){let n={};return t.forEach(e=>{n=e!=null?C(C({},n),e):n}),Object.keys(n).length===0?null:n}function cw(t,n){return n.map(e=>e(t))}function V1(t){return!t.validate}function uw(t){return t.map(n=>V1(n)?n:e=>n.validate(e))}function dw(t){if(!t)return null;let n=t.filter(sw);return n.length==0?null:function(e){return lw(cw(e,n))}}function fw(t){return t!=null?dw(uw(t)):null}function pw(t){if(!t)return null;let n=t.filter(sw);return n.length==0?null:function(e){let i=cw(e,n).map(aw);return ip(i).pipe(Ne(lw))}}function hw(t){return t!=null?pw(uw(t)):null}function KC(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function j1(t){return t._rawValidators}function U1(t){return t._rawAsyncValidators}function Ag(t){return t?Array.isArray(t)?t:[t]:[]}function pd(t,n){return Array.isArray(t)?t.includes(n):t===n}function YC(t,n){let e=Ag(n);return Ag(t).forEach(r=>{pd(e,r)||e.push(r)}),e}function QC(t,n){return Ag(n).filter(e=>!pd(t,e))}var hd=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=fw(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=hw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Ng=class extends hd{name;get formDirective(){return null}get path(){return null}};var al="VALID",dd="INVALID",gs="PENDING",ll="DISABLED",co=class{},md=class extends co{value;source;constructor(n,e){super(),this.value=n,this.source=e}},cl=class extends co{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},ul=class extends co{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},ys=class extends co{status;source;constructor(n,e){super(),this.status=n,this.source=e}};var uo=class extends co{source;constructor(n){super(),this.source=n}};function jg(t){return(_d(t)?t.validators:t)||null}function B1(t){return Array.isArray(t)?fw(t):t||null}function Ug(t,n){return(_d(n)?n.asyncValidators:t)||null}function H1(t){return Array.isArray(t)?hw(t):t||null}function _d(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function mw(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new S(1e3,"");if(!yw(i,e))throw new S(1001,"")}function gw(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new S(-1002,"")})}var _s=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=B(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Me(this.statusReactive)}set status(n){Me(()=>this.statusReactive.set(n))}_status=Ae(()=>this.statusReactive());statusReactive=B(void 0);get valid(){return this.status===al}get invalid(){return this.status===dd}get pending(){return this.status===gs}get disabled(){return this.status===ll}get enabled(){return this.status!==ll}errors;get pristine(){return Me(this.pristineReactive)}set pristine(n){Me(()=>this.pristineReactive.set(n))}_pristine=Ae(()=>this.pristineReactive());pristineReactive=B(!0);get dirty(){return!this.pristine}get touched(){return Me(this.touchedReactive)}set touched(n){Me(()=>this.touchedReactive.set(n))}_touched=Ae(()=>this.touchedReactive());touchedReactive=B(!1);get untouched(){return!this.touched}_events=new Ie;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(YC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(YC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(QC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(QC(n,this._rawAsyncValidators))}hasValidator(n){return pd(this._rawValidators,n)}hasAsyncValidator(n){return pd(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(Z(C({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ul(!0,i))}
vendor: 4,619 bytes, line 5
5markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),n.onlySelf||this._parent?._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new ul(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(Z(C({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new cl(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new cl(!0,i))}markAsPending(n={}){this.status=gs;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new ys(this.status,e)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(Z(C({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=ll,this.errors=null,this._forEachChild(r=>{r.disable(Z(C({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new md(this.value,i)),this._events.next(new ys(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Z(C({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=al,this._forEachChild(i=>{i.enable(Z(C({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Z(C({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){n.onlySelf||(this._parent?.updateValueAndValidity(n),n.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===al||this.status===gs)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new md(this.value,e)),this._events.next(new ys(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(Z(C({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ll:al}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=gs,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=aw(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i?.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new ys(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new Ye,this.statusChanges=new Ye}_calculateStatus(){return this._allControlsDisabled()?ll:this.errors?dd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gs)?gs:this._anyControlsHaveStatus(dd)?dd:al}
5_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,n.onlySelf||this._parent?._updatePristine(n,e),r&&this._events.next(new cl(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new ul(this.touched,e)),n.onlySelf||this._parent?._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){_d(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=B1(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=H1(this._rawAsyncValidators)}_updateHasRequiredValidator(){Me(()=>this._hasRequired.set(this.hasValidator(vs.required)))}};function yw(t,n){return Object.hasOwn(t,n)}function $1(t){return t.tagName==="INPUT"||t.tagName==="SELECT"||t.tagName==="TEXTAREA"}function z1(t,n,e,i){switch(e){case"name":t.setAttribute(n,e,i);break;case"disabled":case"readonly":case"required":i?t.setAttribute(n,e,""):t.removeAttribute(n,e);break;case"max":case"min":case"minLength":case"maxLength":i!==void 0?t.setAttribute(n,e,i.toString()):t.removeAttribute(n,e);break}}var Rg=class{kind;context;control;message;constructor({kind:n,context:e,control:i}){this.kind=n,this.context=e,this.control=i}};var G1=(()=>{class t{_validator=fd;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):fd,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Ct({type:t,features:[Jt]})}return t})();var q1={provide:rw,useExisting:ri(()=>vw),multi:!0};var vw=(()=>{class t extends G1{required;inputName="required";normalizeInput=yr;createValidator=e=>ow;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ui(t)))(r||t)}})();static \u0275dir=Ct({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&De("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[qi([q1]),Je]})}return t})();var W1=new L(""),Bg=new L("",{factory:()=>bd}),bd="always";function K1(t,n){return[...n.path,t]}function ZC(t,n,e=bd){Q1(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),Z1(t,n),J1(t,n),X1(t,n),Y1(t,n)}function XC(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Y1(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function Q1(t,n){let e=j1(t);n.validator!==null?t.setValidators(KC(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=U1(t);n.asyncValidator!==null?t.setAsyncValidators(KC(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();XC(n._rawValidators,r),XC(n._rawAsyncValidators,r)}function Z1(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&_w(t,n)})}function X1(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&_w(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function _w(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J1(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)}
5)}function eR(t,n){if(!Object.hasOwn(t,"model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function tR(t){return Object.getPrototypeOf(t.constructor)===S1}function nR(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===vd?e=o:tR(o)?i=o:r=o}),r||i||e||null}var iR={provide:W1,useFactory:()=>{let t=v(bs,{self:!0});return{setParseErrors:n=>{t.setParseErrorSource(n)},set onReset(n){t.onReset=n}}}},bs=class extends hd{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(n){this.userOnReset=n,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof uo&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=nR(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(n,e,i){super(),this.injector=n,this.renderer=e,this.rawValueAccessors=i,this.injector?.get(je)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let n=this.injector?.get(en);if(!this.control||!n)return;let e=n.markForCheck.bind(n);this.subscription=new ct,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof uo&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(n){!n.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!n.customControl||(this.isCustomControlBased=!0,n.listenToCustomControlModel(r=>{this.control?.markAsDirty(),this.control?.setValue(r,{emitModelToViewChange:!1}),this.viewToModelUpdate(r)}),n.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=$1(n.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof vw))}ngControlUpdate(n,e){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,n.setCustomControlModelInput(i.value)),this.bindControlProperty(n,r,"touched",i.touched),this.bindControlProperty(n,r,"dirty",i.dirty),this.bindControlProperty(n,r,"valid",i.valid),this.bindControlProperty(n,r,"invali
5d",i.invalid),this.bindControlProperty(n,r,"pending",i.pending),this.bindControlProperty(n,r,"disabled",i.disabled),this.shouldBindRequired&&this.bindControlProperty(n,r,"required",this.isRequired);let o=i.errors;if(r.errors!==o){r.errors=o;let s=this._convertErrors(o);n.setInputOnDirectives("errors",s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(n,e,i,r){if(e[i]===r)return;e[i]=r;let o=n.setInputOnDirectives(i,r);this.isNativeFormElement&&!o&&(i==="disabled"||i==="required")&&this.renderer&&z1(this.renderer,n.nativeElement,i,r)}_convertErrors(n){if(n===null)return[];let e=this.control;return Object.entries(n).map(([i,r])=>new Rg({context:r,kind:i,control:e}))}setParseErrorSource(n){if(n===void 0)return;let e=null,i=Ae(()=>{let r=n();return r.length===0?null:r.reduce((o,s)=>(o[s.kind]=s,o),{})});this.parseErrorsValidator=(()=>e).bind(this),Qo(()=>{e=i(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(n){this.parseErrorsValidator&&(n?.removeValidators(this.parseErrorsValidator),n?.updateValueAndValidity({emitEvent:!1}))}},Og=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var bw=(()=>{class t extends Og{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(Oe(bs,2))};static \u0275dir=Ct({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&tt("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[Je]})}return t})();var gd=class extends _s{constructor(n,e,i){super(jg(e),Ug(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){let i=this._find(n);return i||(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){let i=this._find(n);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){let r=this._find(n);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this._find(n)?.enabled===!0}setValue(n,e={}){Me(()=>{gw(this,!0,n),Object.keys(n).forEach(i=>{mw(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)})}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this._find(i);r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,Z(C({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new uo(this))}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}
vendor: 9,262 bytes, line 5
5_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return yw(this.controls,n)?this.controls[n]:null}};var Lg=class extends gd{};function JC(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function ew(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var lo=class extends _s{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(jg(e),Ug(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_d(e)&&(e.nonNullable||e.initialValueIsDefault)&&(ew(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){Me(()=>{this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)})}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new uo(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){JC(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){JC(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){ew(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var rR={provide:bs,useExisting:ri(()=>Hg)},tw=Promise.resolve(),Hg=(()=>{class t extends bs{_changeDetectorRef;callSetDisabledState;control=new lo;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Ye;constructor(e,i,r,o,s,a,l,c){super(l,c,o),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnChanges(e){if(this._registered,this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),eR(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(e){super.ngControlCreate(e)}\u0275ngControlUpdate(e){super.ngControlUpdate(e,!1)}get shouldBindRequired(){return!1}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ZC(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ZC(this.control,this,e))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){tw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&yr(i);tw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?K1(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(Oe(Ng,9),Oe(rw,10),Oe(M1,10),Oe(yd,10),Oe(en,8),Oe(Bg,8),Oe(wt,8),Oe($t,8))};static \u0275dir=Ct({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[qi([rR,iR]),Je,Jt,zm(null)]})}return t})();var Pg=class extends _s{constructor(n,e,i){super(jg(e),Ug(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){Array.isArray(n)?n.forEach(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){Me(()=>{gw(this,!1,n),n.forEach((i,r)=>{mw(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)})}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],Z(C({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new uo(this))}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};var oR=new L("");var Ew=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Vt({type:t});static \u0275inj=Nt({})}return t})();function nw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var sR=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return nw(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new gd(r,o)}record(e,i=null){let r=this._reduceControls(e);return new Lg(r,i)}control(e,i,r){let o={};return this.useNonNullable?(nw(i)?o=i:(o.validators=i,o.asyncValidators=r),new lo(e,Z(C({},o),{nonNullable:!0}))):new lo(e,i,r)}array(e,i,r){let o=e.map(s=>this._createControl(s));return new Pg(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof lo)return e;if(e instanceof _s)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();
5var Cw=(()=>{class t extends sR{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})(),Ed=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Bg,useValue:e.callSetDisabledState??bd}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=Vt({type:t});static \u0275inj=Nt({imports:[Ew]})}return t})(),ww=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:oR,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Bg,useValue:e.callSetDisabledState??bd}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=Vt({type:t});static \u0275inj=Nt({imports:[Ew]})}return t})();var me="primary",wl=Symbol("RouteTitle"),Kg=class{params;constructor(n){this.params=n||{}}has(n){return Object.hasOwn(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function po(t){return new Kg(t)}function $g(t,n,e){for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(r[0]===":")e[r.substring(1)]=o;else if(r!==o.path)return!1}return!0}function kw(t,n,e){let i=e.path.split("/"),r=i.indexOf("**");if(r===-1){if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let l={},c=t.slice(0,i.length);return $g(i,c,l)?{consumed:c,posParams:l}:null}if(r!==i.lastIndexOf("**"))return null;let o=i.slice(0,r),s=i.slice(r+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!$g(o,t.slice(0,o.length),a)||!$g(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function Td(t){return new Promise((n,e)=>{t.pipe(Mi()).subscribe({next:i=>n(i),error:i=>e(i)})})}function cR(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!_i(t[e],n[e]))return!1;return!0}function _i(t,n){let e=t?Yg(t):void 0,i=n?Yg(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!Aw(t[r],n[r]))return!1;return!0}function Yg(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Aw(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}else return t===n}function uR(t){return t.length>0?t[t.length-1]:null}function yo(t){return gc(t)?t:mr(t)?lt(Promise.resolve(t)):ue(t)}function Nw(t){return gc(t)?Td(t):Promise.resolve(t)}var dR={exact:Lw,subset:Pw},Rw={exact:fR,subset:pR,ignored:()=>!0},Ow={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Id={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Qg(t,n,e){let i=C(C({},Id),e||{});return dR[i.paths](t.root,n.root,i.matrixParams)&&Rw[i.queryParams](t.queryParams,n.queryParams)&&!(i.fragment==="exact"&&t.fragment!==n.fragment)}function fR(t,n){return _i(t,n)}function Lw(t,n,e){if(!fo(t.segments,n.segments)||!Dd(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!Lw(t.children[i],n.children[i],e))return!1;return!0}function pR(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Aw(t[e],n[e]))}function Pw(t,n,e){return Fw(t,n,n.segments,e)}function Fw(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!fo(r,e)||n.hasChildren()||!Dd(r,e,i))}else if(t.segments.length===e.length){if(!fo(t.segments,e)||!Dd(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!Pw(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!fo(t.segments,r)||!Dd(t.segments,r,i)||!t.children[me]?!1:Fw(t.children[me],n,o,i)}}function Dd(t,n,e){return n.every((i,r)=>Rw[e](t[r].parameters,i.parameters))}var _n=class{root;queryParams;fragment;_queryParamMap;constructor(n=new He([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=po(this.queryParams),this._queryParamMap}toString(){return gR.serialize(this)}},He=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>
vendor: 20,213 bytes, line 5
5i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sd(this)}},br=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=po(this.parameters),this._parameterMap}toString(){return jw(this)}};function hR(t,n){return fo(t,n)&&t.every((e,i)=>_i(e.parameters,n[i].parameters))}function fo(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function mR(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===me&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==me&&(e=e.concat(n(r,i)))}),e}var vo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:()=>new Er})}return t})(),Er=class{parse(n){let e=new Xg(n);return new _n(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${dl(n.root,!0)}`,i=_R(n.queryParams),r=typeof n.fragment=="string"?`#${yR(n.fragment)}`:"";return`${e}${i}${r}`}},gR=new Er;function Sd(t){return t.segments.map(n=>jw(n)).join("/")}function dl(t,n){if(!t.hasChildren())return Sd(t);if(n){let e=t.children[me]?dl(t.children[me],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==me&&i.push(`${r}:${dl(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=mR(t,(i,r)=>r===me?[dl(t.children[me],!1)]:[`${r}:${dl(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[me]!=null?`${Sd(t)}/${e[0]}`:`${Sd(t)}/(${e.join("//")})`}}function Vw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cd(t){return Vw(t).replace(/%3B/gi,";")}function yR(t){return encodeURI(t)}function Zg(t){return Vw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xd(t){return decodeURIComponent(t)}function Dw(t){return xd(t.replace(/\+/g,"%20"))}function jw(t){return`${Zg(t.path)}${vR(t.parameters)}`}function vR(t){return Object.entries(t).map(([n,e])=>`;${Zg(n)}=${Zg(e)}`).join("")}function _R(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Cd(e)}=${Cd(r)}`).join("&"):`${Cd(e)}=${Cd(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var zg=1073741824;function Md(t,n,e){Number(n)>=32&&!Object.hasOwn(t,zg)&&(t[zg]=e,delete t[zg]),t[n]=e}var bR=/^[^\/()?;#]+/;function Gg(t){let n=t.match(bR);return n?n[0]:""}var ER=/^[^\/()?;=#]+/;function CR(t){let n=t.match(ER);return n?n[0]:""}var wR=/^[^=?&#]+/;function DR(t){let n=t.match(wR);return n?n[0]:""}var SR=/^[^&#]+/;function xR(t){let n=t.match(SR);return n?n[0]:""}var Xg=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0,n));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1,n)),(e.length>0||Object.keys(i).length>0)&&(r[me]=new He(e,i)),r}parseSegment(){let n=Gg(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new br(xd(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=CR(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=Gg(this.remaining);r&&(i=r,this.capture(i))}Md(n,xd(e),xd(i))}parseQueryParam(n){let e=DR(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=xR(this.remaining);s&&(i=s,this.capture(i))}let r=Dw(e),o=Dw(i);if(Object.hasOwn(n,r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n,e){let i=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Gg(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=me);let a=this.parseChildren(e+1),l=Object.keys(a).length===1&&a[me]?a[me]:new He([],a);Md(i,s??me,l),this.consumeOptional("//")}return i}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};function Uw(t){return t.segments.length>0?new He([],{[me]:t}):t}function Bw(t){let n=Object.create(null);for(let[i,r]of Object.entries(t.children)){let o=Bw(r);if(i===me&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))Md(n,s,a);else(o.segments.length>0||o.hasChildren())&&Md(n,i,o)}let e=new He(t.segments,n);return TR(e)}function TR(t){if(t.numberOfChildren===1&&t.children[me]){let n=t.children[me];return new He(t.segments.concat(n.segments),n.children)}return t}function Cr(t){return t instanceof _n}function Hw(t,n,e=null,i=null,r=new Er){let o=$w(t);return zw(o,n,e,i,r)}function $w(t){let n;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new He(o.url,s);return o===t&&(n=a),a}let i=e(t.root),r=Uw(i);return n??r}function zw(t,n,e,i,r){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return qg(o,o,o,e,i,r);let s=IR(n);if(s.toRoot())return qg(o,o,new He([],{}),e,i,r);let a=MR(s,o,t),l=a.processChildren?pl(a.segmentGroup,a.index,s.commands):qw(a.segmentGroup,a.index,s.commands);return qg(o,a.segmentGroup,l,e,i,r)}function kd(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function gl(t){return typeof t=="object"&&t!=null&&t.outlets}function Sw(t,n,e){t||="\u0275";let i=new _n;return i.queryParams={[t]:n},e.parse(e.serialize(i)).queryParams[t]}function qg(t,n,e,i,r,o){let s={};for(let[c,u]of Object.entries(i??{}))s[c]=Array.isArray(u)?u.map(d=>Sw(c,d,o)):Sw(c,u,o);let a;t===n?a=e:a=Gw(t,n,e);let l=Uw(Bw(a));return new _n(l,s,r)}function Gw(t,n,e){let i=Object.create(null);return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=Gw(o,n,e)}),new He(t.segments,i)}var Ad=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&kd(i[0]))throw new S(4003,!1);let r=i.find(gl);if(r&&r!==uR(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function IR(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ad(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Ad(e,n,i)}var Cs=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function MR(t,n,e){if(t.isAbsolute)return new Cs(n,!0,0);if(!e)return new Cs(n,!1,NaN);if(e.parent===null)return new Cs(e,!0,0);let i=kd(t.commands[0])?0:1,r=e.segments.length-1+i;return kR(e,r,t.numberOfDoubleDots)}function kR(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new S(4005,!1);r=i.segments.length}return new Cs(i,!1,r-o)}function AR(t){return gl(t[0])?t[0].outlets:{[me]:t}}function qw(t,n,e){if(t??=new He([],{}),t.segments.length===0&&t.hasChildren())return pl(t,n,e);let i=NR(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let o=new He(t.segments.slice(0,i.pathIndex),{});return o.children[me]=new He(t.segments.slice(i.pathIndex),t.children),pl(o,0,r)}else return i.match&&r.length===0?new He(t.segments,{}):i.match&&!t.hasChildren()?Jg(t,n,e):i.match?pl(t,0,r):Jg(t,n,e)}function pl(t,n,e){if(e.length===0)return new He(t.segments,{});{let i=AR(e),r=Object.create(null);if(Object.keys(i).some(o=>o!==me)&&t.children[me]&&t.numberOfChildren===1&&t.children[me].segments.length===0){let o=pl(t.children[me],n,e);return new He(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=qw(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new He(t.segments,r)}}function NR(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;let s=t.segments[r],a=e[i];if(gl(a))break;let l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Tw(l,c,s))return o;i+=2}else{if(!Tw(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function Jg(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let o=e[r];if(gl(o)){let l=RR(o.outlets);return new He(i,l)}if(r===0&&kd(e[0])){let l=t.segments[n];i.push(new br(l.path,xw(e[0]))),r++;continue}let s=gl(o)?o.outlets[me]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&kd(a)?(i.push(new br(s,xw(a))),r+=2):(i.push(new br(s,{})),r++)}return new He(i,{})}function RR(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=Jg(new He([],{}),0,i))}),n}function xw(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function Tw(t,n,e){return t==e.path&&_i(n,e.parameters)}var Nd=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ho(this.rootInjector)}resetChildren(){this.children=new ho(this.rootInjector)}},ho=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Nd(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(K(ut))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rd=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=ey(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=ey(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=ty(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return ty(n,this._root).map(e=>e.value)}};function ey(t,n){if(t===n.value)return n;for(let e of n.children){let i=ey(t,e);if(i)return i}return null}function ty(t,n){if(t===n.value)return[n];for(let e of n.children){let i=ty(t,e);if(i.length)return i.unshift(n),i}return[]}var vn=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Es(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var yl=class extends Rd{snapshot;constructor(n,e){super(n),this.snapshot=e,dy(this,n)}toString(){return this.snapshot.toString()}};function Ww(t,n){let e=OR(t,n),i=new St([new br("",{})]),r=new St({}),o=new St({}),s=new St({}),a=new St(""),l=new bn(i,r,s,a,o,me,t,e.root);return l.snapshot=e.root,new yl(new vn(l,[]),e)}function OR(t,n){let e={},i={},r={},s=new Ss([],e,r,"",i,me,t,null,{},n);return new vl("",new vn(s,[]))}var bn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(n,e,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Ne(c=>c[wl]))??ue(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Ne(n=>po(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ne(n=>po(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(n){this._futureSnapshot=n,this.pending?.set(!0)}},LR="always";function uy(t,n,e){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:C(C({},n.params),t.params),data:C(C({},n.data),t.data),resolve:C(C(C(C({},t.data),n.data),r?.data),t._resolvedData)}:i={params:C({},t.params),data:C({},t.data),resolve:C(C({},t.data),t._resolvedData??{})},r&&Yw(r)&&(i.resolve[wl]=r.title),i}var Ss=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[wl]}constructor(n,e,i,r,o,s,a,l,c,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c,this._environmentInjector=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=po(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=po(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},vl=class extends Rd{url;constructor(n,e){super(e),this.url=n,dy(this,e)}toString(){return Kw(this._root)}};function dy(t,n){n.value._routerState=t,n.children.forEach(e=>dy(t,e))}function Kw(t){let n=t.children.length>0?` { ${t.children.map(Kw).join(", ")} } `:"";return`${t.value}${n}`}function Wg(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_i(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_i(n.params,e.params)||t.paramsSubject.next(e.params),cR(n.url,e.url)||t.urlSubject.next(e.url),_i(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ny(t,n){let e=_i(t.params,n.params)&&hR(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||ny(t.parent,n.parent))}function Yw(t){return typeof t.title=="string"||t.title===null}var Qw=new L(""),Dl=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=me;activateEvents=new Ye;deactivateEvents=new Ye;attachEvents=new Ye;detachEvents=new Ye;routerOutletData=mi();parentContexts=v(ho);location=v(pi);changeDetector=v(en);inputBinder=v(qd,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new iy(e,a,r.injector,this.routerOutletData);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Ct({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Jt]})}return t})(),iy=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===bn?this.route:n===ho?this.childContexts:n===Qw?this.outletData:this.parent.get(n,e)}},qd=new L("");var fy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=fe({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&O(0,"router-outlet")},dependencies:[Dl],encapsulation:2,changeDetection:1})}return t})();function py(t){let n=t.children&&t.children.map(py),e=n?Z(C({},t),{children:n}):C({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==me&&(e.component=fy),e}var ws="imperative",kt=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(kt||{}),En=class{id;url;constructor(n,e){this.id=n,this.url=e}}
5,wr=class extends En{type=kt.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Wn=class extends En{urlAfterRedirects;type=kt.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Gt=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(Gt||{}),xs=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(xs||{}),Mn=class extends En{reason;code;type=kt.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Zw(t){return t instanceof Mn&&(t.code===Gt.Redirect||t.code===Gt.SupersededByNewNavigation)}var bi=class extends En{reason;code;type=kt.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},mo=class extends En{error;target;type=kt.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},_l=class extends En{urlAfterRedirects;state;type=kt.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Od=class extends En{urlAfterRedirects;state;type=kt.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ld=class extends En{urlAfterRedirects;state;shouldActivate;type=kt.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pd=class extends En{urlAfterRedirects;state;type=kt.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fd=class extends En{urlAfterRedirects;state;type=kt.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vd=class{route;type=kt.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},jd=class{route;type=kt.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ud=class{snapshot;type=kt.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bd=class{snapshot;type=kt.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hd=class{snapshot;type=kt.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$d=class{snapshot;type=kt.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ts=class{routerEvent;position;anchor;scrollBehavior;type=kt.Scroll;constructor(n,e,i,r){this.routerEvent=n,this.position=e,this.anchor=i,this.scrollBehavior=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Is=class{},bl=class{},Ms=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function PR(t){return!(t instanceof Is)&&!(t instanceof Ms)&&!(t instanceof bl)}function FR(t,n,e){let i=new Set,r=El(t,n._root,e?e._root:void 0,i);return{newlyCreatedRoutes:i,state:new yl(r,n)}}function El(t,n,e,i){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._setPending(n.value);let o=VR(t,n,e,i);return new vn(r,o)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let a=s.route;
vendor: 8,585 bytes, line 5
5return a.value._setPending(n.value),a.children=n.children.map(l=>El(t,l,void 0,i)),a}}let r=jR(n.value);r._setPending(n.value),i.add(r);let o=n.children.map(s=>El(t,s,void 0,i));return new vn(r,o)}}function VR(t,n,e,i){return n.children.map(r=>{for(let o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return El(t,r,o,i);return El(t,r,void 0,i)})}function jR(t){return new bn(new St(t.url),new St(t.params),new St(t.queryParams),new St(t.fragment),new St(t.data),t.outlet,t.component,t)}var go=class t extends Error{redirectTo;navigationBehaviorOptions;constructor(n,e){super(),this.redirectTo=n,this.navigationBehaviorOptions=e,Object.setPrototypeOf(this,t.prototype)}},Xw="ngNavigationCancelingError";function hl(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=Cr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=Jw(!1,Gt.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function Jw(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Xw]=!0,e.cancellationCode=n,e}function UR(t){return eD(t)&&Cr(t.url)}function eD(t){return!!t&&t[Xw]}var ry=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Wg(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=Es(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Es(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.contexts;i.resetChildren(),this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Es(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null),n.value._localInjector?.destroy()}activateChildRoutes(n,e,i){let r=Es(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new $d(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Bd(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(Wg(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Wg(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}},zd=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ds=class{component;route;constructor(n,e){this.component=n,this.route=e}};function BR(t,n,e){let i=t._root,r=n?n._root:null;return fl(i,r,e,[i.value])}function HR(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function As(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!Ip(t)?t:n.get(t):i}function fl(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Es(n);return t.children.forEach(s=>{$R(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ml(a,e.getContext(s),e,r)),r}function $R(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=zR(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new zd(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?fl(t,n,a?a.children:null,i,r):fl(t,n,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ds(a.outlet.component,s))}else s&&ml(n,a,e,r),r.canActivateChecks.push(new zd(i)),o.component?fl(t,null,a?a.children:null,i,r):fl(t,null,e,i,r);return r}function zR(t,n,e){if(typeof e=="function")return Tt(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!fo(t.url,n.url);case"pathParamsOrQueryParamsChange":return!fo(t.url,n.url)||!_i(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ny(t,n)||!_i(t.queryParams,n.queryParams);default:return!ny(t,n)}}function ml(t,n,e,i){let r=Es(t),o=t.value;Object.entries(r).forEach(([s,a])=>{o.component?n?ml(a,n.children.getContext(s),n.children,i):ml(a,null,null,i):ml(a,e?e.getContext(s):null,e,i)}),o.component?n&&n.outlet&&n.outlet.isActivated?i.canDeactivateChecks.push(new Ds(n.outlet.component,o)):i.canDeactivateChecks.push(new Ds(null,o)):i.canDeactivateChecks.push(new Ds(null,o))}function Sl(t){return typeof t=="function"}function GR(t){return typeof t=="boolean"}function qR(t){return t&&Sl(t.canLoad)}function WR(t){return t&&Sl(t.canActivate)}function KR(t){return t&&Sl(t.canActivateChild)}function YR(t){return t&&Sl(t.canDeactivate)}function QR(t){return t&&Sl(t.canMatch)}function tD(t){return t instanceof Vr||t?.name==="EmptyError"}var wd=Symbol("INITIAL_VALUE");function ks(){return Ut(t=>np(t.map(n=>n.pipe(Ii(1),up(wd)))).pipe(Ne(n=>{for(let e of n)if(e!==!0){if(e===wd)return wd;if(e===!1||ZR(e))return e}return!0}),ln(n=>n!==wd),Ii(1)))}function ZR(t){return Cr(t)||t instanceof go}function nD(t){return t.aborted?ue(void 0).pipe(Ii(1)):new he(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function iD(t){return ki(nD(t))}function XR(t){return Kt(n=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return o.length===0&&r.length===0?ue(Z(C({},n),{guardsResult:!0})):JR(o,e,i).pipe(Kt(s=>s&&GR(s)?eO(e,r,t):ue(s)),Ne(s=>Z(C({},n),{guardsResult:s})))})}function JR(t,n,e){return lt(t).pipe(Kt(i=>oO(i.component,i.route,e,n)),Mi(i=>i!==!0,!0))}function eO(t,n,e){return lt(n).pipe(Vo(i=>Fo(nO(i.route.parent,e),tO(i.route,e),rO(t,i.path),iO(t,i.route))),Mi(i=>i!==!0,!0))}function tO(t,n){return t!==null&&n&&n(new Hd(t)),ue(!0)}function nO(t,n){return t!==null&&n&&n(new Ud(t)),ue(!0)}function iO(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return ue(!0);let i=e.map(r=>Js(()=>{let o=n._environmentInjector,s=As(r,o),a=WR(s)?s.canActivate(n,t):Tt(o,()=>s(n,t));return yo(a).pipe(Mi())}));return ue(i).pipe(ks())}function rO(t,n){let e=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(o=>HR(o)).filter(o=>o!==null).map(o=>Js(()=>{let s=o.guards.map(a=>{let l=o.node._environmentInjector,c=As(a,l),u=KR(c)?c.canActivateChild(e,t):Tt(l,()=>c(e,t));return yo(u).pipe(Mi())});return ue(s).pipe(ks())}));return ue(r).pipe(ks())}function oO(t,n,e,i){let r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!r||r.length===0)return ue(!0);let o=r.map(s=>{let a=n._environmentInjector,l=As(s,a),c=YR(l)?l.canDeactivate(t,n,e,i):Tt(a,()=>l(t,n,e,i));return yo(c).pipe(Mi())});return ue(o).pipe(ks())}function sO(t,n,e,i,r){let o=n.canLoad;if(o===void 0||o.length===0)return ue(!0);let s=o.map(a=>{let l=As(a,t),c=qR(l)?l.canLoad(n,e):Tt(t,()=>l(n,e)),u=yo(c);return r?u.pipe(iD(r)):u});return ue(s).pipe(ks(),rD(i))}function rD(t){return Ql(At(n=>{if(typeof n!="boolean")throw hl(t,n)}),Ne(n=>n===!0))}function aO(t,n,e,i,r,o){let s=n.canMatch;if(!s||s.length===0)return ue(!0);let a=s.map(l=>{let c=As(l,t),u=QR(c)?c.canMatch(n,e,r):Tt(t,()=>c(n,e,r));return yo(u).pipe(iD(o))});return ue(a).pipe(ks(),rD(i))}
5var Yi=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},Cl=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function lO(t){throw new S(4e3,!1)}function cO(t){throw Jw(!1,Gt.GuardRejected)}var oy=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return ne(this,null,function*(){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return i;if(r.numberOfChildren>1||!r.children[me])throw lO(`${n.redirectTo}`);r=r.children[me]}})}applyRedirectCommands(n,e,i,r,o){return ne(this,null,function*(){let s=yield uO(e,r,o);if(s instanceof _n)throw new Cl(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,i);if(s[0]==="/")throw new Cl(a);return a})}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new _n(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),s=Object.create(null);return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new He(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new S(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}};function uO(t,n,e){if(typeof t=="string")return Promise.resolve(t);let i=t;return Td(yo(Tt(e,()=>i(n))))}function dO(t,n){return t.providers&&!t._injector&&(t._injector=Fa(t.providers,n,`Route: ${t.path}`)),t._injector??n}function qn(t){return t.outlet||me}function fO(t,n){let e=t.filter(i=>qn(i)===n);return e.push(...t.filter(i=>qn(i)!==n)),e}var sy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oD(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function pO(t,n,e,i,r,o,s){let a=sD(t,n,e);if(!a.matched)return ue(a);let l=oD(o(a));return i=dO(n,i),aO(i,n,e,r,l,s).pipe(Ne(c=>c===!0?a:C({},sy)))}function sD(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?C({},sy):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||kw)(e,t,n);if(!r)return C({},sy);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?C(C({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Iw(t,n,e,i,r){return e.length>0&&gO(t,e,i,r)?{segmentGroup:new He(n,mO(i,new He(e,t.children))),slicedSegments:[]}:e.length===0&&yO(t,e,i)?{segmentGroup:new He(t.segments,hO(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new He(t.segments,t.children),slicedSegments:e}}function hO(t,n,e,i){let r={};for(let o of e)if(Wd(t,n,o)&&!i[qn(o)]){let s=new He([],{});r[qn(o)]=s}return C(C({},i),r)}function mO(t,n){let e={};e[me]=n;for(let i of t)if(i.path===""&&qn(i)!==me){let r=new He([],{});e[qn(i)]=r}return e}function gO(t,n,e,i){return e.some(r=>!Wd(t,n,r)||!(qn(r)!==me)?!1:!(i!==void 0&&qn(r)===i))}function yO(t,n,e){return e.some(i=>Wd(t,n,i))}function Wd(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function vO(t,n,e){return n.length===0&&!t.children[e]}var ay=class{};function _O(t,n,e,i,r,o,s,a){return ne(this,null,function*(){return new ly(t,n,e,i,r,s,o,a).recognize()})}var bO=31,ly=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,s,a,l){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer
5=a,this.abortSignal=l,this.applyRedirects=new oy(this.urlSerializer,this.urlTree)}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){return ne(this,null,function*(){let n=Iw(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:i}=yield this.match(n),r=new vn(i,e),o=new vl("",r),s=Hw(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(n){return ne(this,null,function*(){let e=new Ss([],Object.freeze({}),Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),me,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,me,e),rootSnapshot:e}}catch(i){if(i instanceof Cl)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Yi?this.noMatchError(i):i}})}processSegmentGroup(n,e,i,r,o){return ne(this,null,function*(){if(i.segments.length===0&&i.hasChildren())return this.processChildren(n,e,i,o);let s=yield this.processSegment(n,e,i,i.segments,r,!0,o);return s instanceof vn?[s]:[]})}processChildren(n,e,i,r){return ne(this,null,function*(){let o=[];for(let l of Object.keys(i.children))l==="primary"?o.unshift(l):o.push(l);let s=[];for(let l of o){let c=i.children[l],u=fO(e,l),d=yield this.processSegmentGroup(n,u,c,l,r);s.push(...d)}let a=aD(s);return EO(a),a})}processSegment(n,e,i,r,o,s,a){return ne(this,null,function*(){for(let l of e)try{return yield this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,s,a)}catch(c){if(c instanceof Yi||tD(c))continue;throw c}if(vO(i,r,o))return new ay;throw new Yi(i)})}processSegmentAgainstRoute(n,e,i,r,o,s,a,l){return ne(this,null,function*(){if(qn(i)!==s&&(s===me||!Wd(r,o,i)))throw new Yi(r);if(i.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,r,i,o,s,l);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s,l);throw new Yi(r)})}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s,a){return ne(this,null,function*(){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:m}=sD(e,r,o);if(!l)throw new Yi(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>bO&&(this.allowRedirects=!1));let f=this.createSnapshot(n,r,o,c,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let _=yield this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,oD(f),n),E=yield this.applyRedirects.lineralizeSegments(r,_);return this.processSegment(n,i,e,E.concat(m),s,!1,a)})}createSnapshot(n,e,i,r,o){let s=new Ss(i,r,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,wO(e),qn(e),e.component??e._loadedComponent??null,e,DO(e),n),a=uy(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(n,e,i,r,o,s){return ne(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=q=>this.createSnapshot(n,i,q.consumedSegments,q.parameters,s),l=yield Td(pO(e,i,r,n,this.urlSerializer,a,this.abortSignal));if(i.path==="**"&&(e.children={}),!l?.matched)throw new Yi(e);n=i._injector??n;let{routes:c}=yield this.getChildConfig(n,i,r),u=i._loadedInjector??n,{parameters:d,consumedSegments:m,remainingSegments:f}=l,_=this.createSnapshot(n,i,m,d,s),{segmentGroup:E,slicedSegments:D}=Iw(e,m,f,c,o);if(D.length===0&&E.hasChildren()){let q=yield this.processChildren(u,c,E,_);return new vn(_,q)}if(c.length===0&&D.length===0)return new vn(_,[]);let M=qn(i)===o,T=yield this.processSegment(u,c,E,D,M?me:o,!0,_);return new vn(_,T instanceof vn?[T]:[])})}getChildConfig(n,e,i){return ne(this,null,function*(){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}
5if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Td(sO(n,e,i,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw cO(e)}return{routes:[],injector:n}})}};function EO(t){t.sort((n,e)=>n.value.outlet===me?-1:e.value.outlet===me?1:n.value.outlet.localeCompare(e.value.outlet))}function CO(t){let n=t.value.routeConfig;return n&&n.path===""}function aD(t){let n=[],e=new Set;for(let i of t){if(!CO(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=aD(i.children);n.push(new vn(i.value,r))}return n.filter(i=>!e.has(i))}function wO(t){return t.data||{}}function DO(t){return t.resolve||{}}function SO(t,n,e,i,r,o,s){return Kt(a=>ne(null,null,function*(){let{state:l,tree:c}=yield _O(t,n,e,i,a.extractedUrl,r,o,s);return Z(C({},a),{targetSnapshot:l,urlAfterRedirects:c})}))}function xO(t){return Kt(n=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=n;if(!i.length)return ue(n);let r=new Set(i.map(a=>a.route)),o=new Set;for(let a of r)if(!o.has(a))for(let l of lD(a))o.add(l);let s=0;return lt(o).pipe(Vo(a=>r.has(a)?TO(a,e,t):(a.data=uy(a,a.parent,t).resolve,ue(void 0))),At(()=>s++),Ec(1),Kt(a=>s===o.size?ue(n):xt))})}function lD(t){let n=t.children.map(e=>lD(e)).flat();return[t,...n]}function TO(t,n,e){let i=t.routeConfig,r=t._resolve;return i?.title!==void 0&&!Yw(i)&&(r[wl]=i.title),Js(()=>(t.data=uy(t,t.parent,e).resolve,IO(r,t,n).pipe(Ne(o=>(t._resolvedData=o,t.data=C(C({},t.data),o),null)))))}function IO(t,n,e){let i=Yg(t);if(i.length===0)return ue({});let r={};return lt(i).pipe(Kt(o=>MO(t[o],n,e).pipe(Mi(),At(s=>{if(s instanceof go)throw hl(new Er,s);r[o]=s}))),Ec(1),Ne(()=>r),ii(o=>tD(o)?xt:Po(o)))}function MO(t,n,e){let i=n._environmentInjector,r=As(t,i),o=r.resolve?r.resolve(n,e):Tt(i,()=>r(n,e));return yo(o)}var cD=new L("");function cy(t){return Ut(n=>{let e=t(n);return e?lt(e).pipe(Ne(()=>n)):ue(n)})}var hy=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===me);return i}getResolvedTitleForRoute(e){return e.data[wl]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:()=>v(uD)})}return t})(),uD=(()=>{class t extends hy{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(K(ud))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_o=new L("",{factory:()=>({})}),xl=new L(""),dD=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=v(Qm);loadComponent(e,i){return ne(this,null,function*(){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Promise.resolve(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let r=ne(this,null,function*(){try{let o=yield Nw(Tt(e,()=>i.loadComponent())),s=yield pD(ig(o));return this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s,s}finally{this.componentLoaders.delete(i)}});return this.componentLoaders.set(i,r),r})}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Promise.resolve({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let r=ne(this,null,function*(){try{let o=yield fD(i,this.compiler,e,this.onLoadEndListener);return i._loadedRoutes=o.routes,i._loadedInjector=o.injector,i._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(i)}});return this.childrenLoaders.set(i,r),r}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function fD(t,n,e,i){return ne(this,null,function*(){let r=yield Nw(Tt(e,()=>t.loadChildren())),o=yield pD(ig(r)),s;o instanceof ju||Array.isArray(o)?s=o:s=yield n.compileModuleAsync(o),i&&i(t);let a,l,c=!1,u;return Array.isArray(s)?(l=s,c=!0):(a=s.create(e).injector,u=s,l=a.get(xl,[],{optional:!0,self:!0}).flat()),{routes:l.map(py),injector:a,factory:u}})}function pD(t){return ne(this,null,function*(){return t})}var Kd=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:()=>v(kO)})}return t})(),kO=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})(),hD=new L("");var AO=()=>{},mD=new L(""),my=(()=>{class t{currentNavigation=B(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=B(null);events=new Ie;
5transitionAbortWithErrorSubject=new Ie;configLoader=v(dD);environmentInjector=v(ut);destroyRef=v(je);urlSerializer=v(vo);rootContexts=v(ho);location=v(ao);inputBindingEnabled=v(qd,{optional:!0})!==null;titleStrategy=v(hy);options=v(_o,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||LR;urlHandlingStrategy=v(Kd);createViewTransition=v(hD,{optional:!0});navigationErrorHandler=v(mD,{optional:!0});routerResourcesFeature=v(cD,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ue(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new Vd(r)),i=r=>this.events.next(new jd(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Me(()=>{this.transitions?.next(Z(C({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new St(null),this.transitions.pipe(ln(i=>i!==null),Ut(i=>{let r=!0,o=!1,s=new AbortController,a=()=>!o&&this.currentTransition?.id===i.id;return ue(i).pipe(Ut(l=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Gt.SupersededByNewNavigation),xt;this.currentTransition=i;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:c?Z(C({},c),{previousNavigation:null}):null,abort:()=>s.abort(),routesRecognizeHandler:l.routesRecognizeHandler,beforeActivateHandler:l.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new bi(l.id,this.urlSerializer.serialize(l.rawUrl),"",xs.IgnoredSameUrlNavigation)),l.resolve(!1),xt;if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ue(l).pipe(Ut(m=>(this.events.next(new wr(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),m.id!==this.navigationId?xt:Promise.resolve(m))),SO(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,s.signal),At(m=>{i.targetSnapshot=m.targetSnapshot,i.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=m.urlAfterRedirects,f)),this.events.next(new bl)}),Ut(m=>lt(i.routesRecognizeHandler.deferredHandle??ue(void 0)).pipe(Ne(()=>m))),At(()=>{let m=new _l(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(m)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:m,extractedUrl:f,source:_,restoredState:E,extras:D}=l,M=new wr(m,this.urlSerializer.serialize(f),_,E);this.events.next(M);let T=Ww(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=i=Z(C({},l),{targetSnapshot:T,urlAfterRedirects:f,extras:Z(C({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=f,q)),ue(i)}else return this.events.next(new bi(l.id,this.urlSerializer.serialize(l.extractedUrl),"",xs.IgnoredByUrlHandlingStrategy)),l.resolve(!1),xt}),Ne(l=>{let c=new Od(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);return this.events.next(c),this.currentTransition=i=Z(C({},l),{guards:BR(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),i}),XR(l=>this.events.next(l)),Ut(l=>{if(i.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw hl(this.urlSerializer,l.guardsResult);let c=new Ld(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);if(this.events.next(c),!a())return xt;if(!l.guardsResult)return this.cancelNavigationTransition(l,"",Gt.GuardRejected),xt;if(l.guards.canActivateChecks.length===0)return ue(l);let u=new Pd(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);if(this.events.next(u),!a())return xt;let d=!1;
5return ue(l).pipe(xO(this.paramsInheritanceStrategy),At({next:()=>{d=!0;let m=new Fd(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(m)},complete:()=>{d||this.cancelNavigationTransition(l,"",Gt.NoDataFromResolver)}}))}),cy(l=>{let c=d=>{let m=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let f=d._environmentInjector;m.push(this.configLoader.loadComponent(f,d.routeConfig).then(_=>{d.component=_}))}for(let f of d.children)m.push(...c(f));return m},u=c(l.targetSnapshot.root);return u.length===0?ue(l):lt(Promise.all(u).then(()=>l))}),Ut(l=>{let{newlyCreatedRoutes:c,state:u}=FR(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=i=l=Z(C({},l),{targetRouterState:u,newlyCreatedRoutes:c}),this.currentNavigation.update(d=>(d.targetRouterState=u,d)),ue(l)}),this.routerResourcesFeature?.setupAndRunResources(s.signal)??(l=>l),cy(()=>this.afterPreactivation()),Ut(()=>{let{currentSnapshot:l,targetSnapshot:c}=i,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root,i.hasUAVisualTransition);return u?lt(u).pipe(Ne(()=>i)):ue(i)}),Ii(1),Ut(l=>{r=!1,this.events.next(new Is);let c=i.beforeActivateHandler.deferredHandle;return c?lt(c.then(()=>l)):ue(l)}),At(l=>{new ry(e.routeReuseStrategy,i.targetRouterState,i.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),l.newlyCreatedRoutes?.clear(),a()&&(gD(l.targetRouterState),o=!0,this.currentNavigation.update(c=>(c.abort=AO,c)),this.lastSuccessfulNavigation.set(Me(this.currentNavigation)),this.events.next(new Wn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0))}),ki(nD(s.signal).pipe(ln(()=>!o&&r),At(()=>{this.cancelNavigationTransition(i,s.signal.reason+"",Gt.Aborted)}))),At({complete:()=>{o=!0}}),ki(this.transitionAbortWithErrorSubject.pipe(At(l=>{throw l}))),Uo(()=>{s.abort(),o||this.cancelNavigationTransition(i,"",Gt.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ii(l=>{if(o=!0,Mw(i),this.destroyed)return i.resolve(!1),xt;if(l instanceof go&&(l=hl(this.urlSerializer,l)),eD(l))this.events.next(new Mn(i.id,this.urlSerializer.serialize(i.extractedUrl),l.message,l.cancellationCode)),UR(l)?this.events.next(new Ms(l.url,l.navigationBehaviorOptions)):i.resolve(!1);else{let c=new mo(i.id,this.urlSerializer.serialize(i.extractedUrl),l,i.targetSnapshot??void 0);try{let u=Tt(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof go){let{message:d,cancellationCode:m}=hl(this.urlSerializer,u);this.events.next(new Mn(i.id,this.urlSerializer.serialize(i.extractedUrl),d,m)),this.events.next(new Ms(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),l}catch(u){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(u)}}return xt}))}))}cancelNavigationTransition(e,i,r){Mw(e);let o=new Mn(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=Me(this.currentNavigation),r=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==r?.toString()&&!i?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function NO(t){return t!==ws}function Mw(t){for(let n of t.newlyCreatedRoutes??[])n._localInjector?.destroy(),n._localInjector=void 0;gD(t.targetRouterState)}function gD(t){if(!t)return;let n=e=>{e.value.pending?.set(!1),e.children.forEach(n)};n(t._root)}var yD=new L("");var vD=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:()=>v(RO)})}return t})(),Gd=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}
5shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},RO=(()=>{class t extends Gd{static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})(),Yd=(()=>{class t{urlSerializer=v(vo);options=v(_o,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=v(ao);urlHandlingStrategy=v(Kd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new _n;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,s=r??o;return s instanceof _n?this.urlSerializer.serialize(s):s}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=Ww(null,v(ut));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:()=>v(OO)})}return t})(),OO=(()=>{class t extends Yd{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate",{replaceUrl:!0},i.hasUAVisualTransition)})})}handleRouterEvent(e,i){e instanceof wr?this.updateStateMemento():e instanceof bi?this.commitTransition(i):e instanceof _l?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Is?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Mn&&!Zw(e)?this.restoreHistory(i):e instanceof mo?this.restoreHistory(i,!0):e instanceof Wn&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let{extras:r,id:o}=i,{replaceUrl:s,state:a}=r;if(this.location.isCurrentPathEqualTo(e)||s){let l=this.browserPageId,c=C(C({},a),this.generateNgRouterState(o,l,i));this.location.replaceState(e,"",c)}else{let l=C(C({},a),this.generateNgRouterState(o,this.browserPageId+1,i));this.location.go(e,"",l)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i,r){return this.canceledNavigationResolution==="computed"?C({navigationId:e,\u0275routerPageId:i},this.routerUrlState(r)):C({navigationId:e},this.routerUrlState(r))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function gy(t,n){t.events.pipe(ln(e=>e instanceof Wn||e instanceof Mn||e instanceof mo||e instanceof bi),Ne(e=>e instanceof Wn||e instanceof bi?0:(e instanceof Mn?e.code===Gt.Redirect||e.code===Gt.SupersededByNewNavigation:!1)?2:1),ln(e=>e!==2),Ii(1)).subscribe(()=>{n()})}var kn=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=v(Uu);stateManager=v(Yd);options=v(_o,{optional:!0})||{};pendingTasks=v(Un);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=v(my);
vendor: 5,005 bytes, line 5
5urlSerializer=v(vo);location=v(ao);urlHandlingStrategy=v(Kd);injector=v(ut);_events=new Ie;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=v(vD);injectorCleanup=v(yD,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=v(xl,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!v(qd,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new ct;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=Me(this.navigationTransitions.currentNavigation);if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Mn&&i.code!==Gt.Redirect&&i.code!==Gt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Wn)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(i instanceof Ms){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=C({scroll:r.extras.scroll,browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||NO(r.source)},s);this.scheduleNavigation(a,ws,null,l,r.hasUAVisualTransition,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}PR(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ws,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r,o,s)=>{this.navigateToSyncWithBrowser(e,r,i,o,s)})}navigateToSyncWithBrowser(e,i,r,o,s){let a=r?.navigationId?r:null,l=r?.\u0275routerUrl??e;if(r?.\u0275routerUrl&&(o=Z(C({},o),{browserUrl:e})),r){let u=C({},r);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(l);this.scheduleNavigation(c,i,a,o,s).catch(u=>{this.disposed||this.injector.get(pn)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Me(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(py),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=C(C({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let m=r?r.snapshot:this.routerState.snapshot.root;d=$w(m)}catch(m){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return zw(d,e,u,c??null,this.urlSerializer)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Cr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,ws,null,i)}navigate(e,i={skipLocationChange:!1}){return LO(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(i){return this.console.warn(un(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=C({},Ow):i===!1?r=C({},Id):r=C(C({},Id),i),Cr(e))return Qg(this.currentUrlTree,e,r);let o=this.parseUrl(e);return Qg(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((m,f)=>{l=m,c=f});let d=this.pendingTasks.add();return gy(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,hasUAVisualTransition:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
5),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})();function LO(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new S(4008,!1)}var FO=(()=>{class t{router=v(kn);stateManager=v(Yd);fragment=B("");queryParams=B({});path=B("");serializer=v(vo);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Wn&&this.updateState()})}updateState(){let{fragment:e,root:i,queryParams:r}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(r),this.path.set(this.serializer.serialize(new _n(i)))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Re({token:t,factory:t.\u0275fac})}return t})(),Qd=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=v(new qu("href"),{optional:!0});reactiveHref=Zm(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Me(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Me(this._target)}_target=B(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Me(this._queryParams)}_queryParams=B(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Me(this._fragment)}_fragment=B(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Me(this._queryParamsHandling)}_queryParamsHandling=B(void 0);set state(e){this._state.set(e)}get state(){return Me(this._state)}_state=B(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Me(this._info)}_info=B(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Me(this._relativeTo)}_relativeTo=B(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Me(this._preserveFragment)}_preserveFragment=B(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Me(this._skipLocationChange)}_skipLocationChange=B(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Me(this._replaceUrl)}_replaceUrl=B(!1);browserUrl=mi(void 0);isAnchorElement;onChanges=new Ie;applicationErrorHandler=v(pn);options=v(_o,{optional:!0});reactiveRouterState=v(FO);constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=B(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Cr(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l=this.browserUrl(),c=C({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},l!==void 0&&{browserUrl:l});return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}_urlTree=Ae(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=r=>r==="preserve"||r==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let i=this.routerLinkInput();return i===null||!this.router.createUrlTree?null:Cr(i)?i:this.router.createUrlTree(i,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,i)=>this.computeHref(e)===this.computeHref(i)});get urlTree(){return Me(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(i){return new(i||t)(Oe(kn),Oe(bn),Aa("tabindex"),Oe($t),Oe(Mt),Oe(so))};static \u0275dir=Ct({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(i,r){i&1&&X("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&De("href",r.reactiveHref(),ym)("target",r._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",yr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",yr],replaceUrl:[2,"replaceUrl","replaceUrl",yr],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Jt]})}return t})();var _D=new L(""),VO=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ws;restoredId=0;store={};isHydrating=v(dm,{optional:!0})??!1;
5urlSerializer=v(vo);zone=v(Ve);viewportScroller=v(mC);transitions=v(my);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&v(zn).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof wr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Wn?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof bi&&e.code===xs.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Ts)||e.scrollBehavior==="manual")return;let i={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],i):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,i):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,i){if(this.isHydrating)return;let r=Me(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>ne(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ts(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Vu()};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();function yy(t,...n){return Li([{provide:xl,multi:!0,useValue:t},{provide:bn,useFactory:jO},{provide:Ha,multi:!0,useFactory:UO},n.map(e=>e.\u0275providers)])}function jO(){return v(kn).routerState.root}function bD(t,n){return{\u0275kind:t,\u0275providers:n}}function vy(t={}){return bD(4,[{provide:_D,useFactory:()=>new VO(t)}])}function UO(){let t=v(wt);return n=>{let e=t.get(zn);if(n!==e.components[0])return;let i=t.get(kn),r=t.get(BO);t.get(HO)===1&&i.initialNavigation(),t.get($O,null,{optional:!0})?.setUpPreloading(),t.get(_D,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var BO=new L("",{factory:()=>new Ie}),HO=new L("",{factory:()=>1});var $O=new L("");function _y(t){return bD(5,[{provide:_o,useValue:t}])}var Zd=class{};var Xd=class extends Zd{};var Ei=(()=>{class t{constructor(){this.document=v(Ee),this.platformId=v(ji),this.documentIsAccessible=_r(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch(i){return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),t.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.check(e)){e=encodeURIComponent(e);let r=t.getCookieRegExp(e).exec(this.document.cookie);return r?.[1]?t.safeDecodeURIComponent(r[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(r=>{let[o,s]=r.split("=");e[t.safeDecodeURIComponent(o.replace(/^ /,""))]=t.safeDecodeURIComponent(s)}),e}set(e,i,r,o,s,a,l,c){if(!this.documentIsAccessible)return;if(typeof r=="number"||r instanceof Date||o||s||a||l){let m={expires:r,path:o,domain:s,secure:a,sameSite:l||"Lax",partitioned:c};this.set(e,i,m);return}let u=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",d=r||{};if(d.expires)if(typeof d.expires=="number"){let m=new Date(new Date().getTime()+d.expires*1e3*60*60*24);u+="Expires="+m.toUTCString()+";"}else u+="Expires="+d.expires.toUTCString()+";";d.path&&(u+="Path="+d.path+";"),d.domain&&(u+="Domain="+d.domain+";"),d.secure===!1&&d.sameSite==="None"&&(d.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),d.secure&&(u+="Secure;"),d.sameSite||(d.sameSite="Lax"),u+="SameSite="+d.sameSite+";",d.partitioned&&(u+="Partitioned;"),this.document.cookie=u}delete(e,i,r,o,s="Lax"){if(!this.documentIsAccessible)return;let a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:a,path:i,domain:r,secure:o,sameSite:s})}deleteAll(e,i,r,o="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let a in s)s.hasOwnProperty(a)&&this.delete(a,e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var J={identifier:"environment.prod.ts",production:!0,baseUrl:"https://www.lefnet.dk/",apiUrl:"https://api.lefnet.dk/",domain:".lefnet.dk"};var Qi=class{};var Pe=(function(t){return t.PROD_URL="http://api.lefnet.dk/",t.LOGIN_URL="api/login",t.LOGOUT_URL="api/logout",t.CSRF_URL="api/sanctum/csrf-cookie",t.CURRENT_USER_URL="api/user",t.USER_URL="api/auth/me",t.REGLER_URL="api/rules",t.FRONT_URL="api/front",t.TOPMOVIES_URL="api/topmovies",t.VALHELNYT_URL="api/valhelnyt",t.NAMES_URL="api/names",t.SETTINGS_U
5RL="api/config",t.PODCAST_URL="api/podcastcategories",t.PODCAST_ITEMS_URL="api/podcastitems",t.STORY_SAMPLES_URL="api/storysamples",t})(Pe||{}),Ot=(()=>{class t{constructor(){this.baseUrl=J.baseUrl,this.API_URL=J.apiUrl,this.subscriptions=[],this.httpClient=v(Gn),this.router=v(kn)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}convertObjectToBase64(e){return btoa(encodeURIComponent(JSON.stringify(e)))}getServerErrorMessage(e){switch(e.status){case 404:return`Not Found: ${e.message}`;case 403:return`Access Denied: ${e.message}`;case 419:return`CSRF token mismatch: ${e.message}`;case 422:{if(e.error&&e.error.message)return e.error.message;if(e.error&&e.error.errors){let i=Object.values(e.error.errors)[0];if(Array.isArray(i)&&i.length>0)return i[0]}return`Validation Error: ${e.message}`}case 500:return`Internal Server Error: ${e.message}`;default:return`Unknown Server Error: ${e.message}`}}handleError(e="operation",i){return r=>(console.log(`failed: ${r.message}`),ue(i))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var nn=(()=>{class t extends Ot{constructor(){super(),this.groupsSignal=B([]),this.isLoggedIn=!1,this.isAdmin=!1,this.groups=[],this.showFooter=B(!0)}toggleFooter(e){this.showFooter.set(e)}setUser(e){this.user=e,this.setGroups((e.groups||[]).map(i=>i.name))}getUser(){return this.user}getUserName(){return console.log("Username : ",this.user.name),this.user.name?this.user.name:""}setIsLoggedIn(e){this.isLoggedIn=e}getIsLoggedIn(){return this.isLoggedIn}setIsAdmin(e){this.isAdmin=e}getIsAdmin(){return this.isAdmin=this.hasAnyGroup(["admin","subadmin","trold"]),this.isAdmin}setGroups(e){this.groups=[...e],this.groupsSignal.set(this.groups),this.isAdmin=this.hasAnyGroup(["admin","subadmin","trold"])}getGroups(){return this.groupsSignal(),this.groups}hasGroup(e){this.groupsSignal();let i=e.toLowerCase();return this.groups.some(r=>r.toLowerCase()===i)}hasAnyGroup(e){return this.groupsSignal(),e.some(i=>this.hasGroup(i))}clearSession(){this.user=new Qi,this.isAdmin=!1,this.groups=[],this.groupsSignal.set([])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var CD=(()=>{class t extends Ot{constructor(){super(),this.cookieService=v(Ei),this.sessionService=v(nn)}csrf(){let e=this.API_URL+Pe.CSRF_URL;return this.httpClient.get(e).pipe(ii(this.handleError("csfr","")))}login(e){let i=this.API_URL+Pe.LOGIN_URL;return this.httpClient.post(i,e).pipe(ii(r=>{let o;throw r.error instanceof ErrorEvent?o=`Error: ${r.error.message}`:o=this.getServerErrorMessage(r),new Error(o)}))}getCurrentUser(){console.log("==>> AuthenticationService.getCurrentUser - start");let e=this.API_URL+Pe.CURRENT_USER_URL;return this.httpClient.get(e).pipe(At(i=>{}))}logout(){let e=this.API_URL+Pe.LOGOUT_URL;return console.log("==>> Calling : "+e),this.httpClient.post(e,{}).pipe(At(i=>{this.sessionService.isLoggedIn=!1,this.clearSession()}))}setSession(e){this.sessionService.setUser(e),this.cookieService.set("lef_groups",e.groups.map(i=>i.name).toString(),{path:"/",sameSite:"Lax",domain:J.domain}),this.cookieService.set("user_name",e.name,{path:"/",sameSite:"Lax",domain:J.domain}),sessionStorage.setItem("userDetails",JSON.stringify(e))}clearSession(){console.log("==>> AuthenticationService.clearSession() - start"),this.cookieService.delete("laravel_session"),this.cookieService.delete("XSRF-TOKEN"),this.cookieService.delete("lef_groups"),this.cookieService.delete("user_name"),sessionStorage.removeItem("userDetails"),this.sessionService.clearSession(),console.log("<<== AuthenticationService.clearSession() - end")}mapLoginResponseToUser(e){let i=new Qi;return i.name=e.user.name,i.email=e.user.email,i.id=e.user.id,i.groups=e.user.groups,i}getSessionUser(){return JSON.parse(sessionStorage.getItem("userDetails"))}refreshGroups(){this.getCurrentUser().subscribe(e=>{let r=(e.groups||[]).map(o=>typeof o=="string"?o:o.name);this.sessionService.setGroups(r)})}getGroups(){return this.sessionService.getGroups()}isUnderAdmin(){let e=this.sessionService.hasAnyGroup(["admin","underadmin","trold"]);return console.log("==>> AuthenticationService.isUnderAdmin() : ",e),e}isAdmin(){let e=this.sessionService.hasAnyGroup(["admin","trold"]);return console.log("==>> AuthenticationService.isAdmin() : ",e),e}isTroll(){let e=this.sessionService.hasGroup("trold");return console.log("==>>
5 AuthenticationService.isTroll() : ",e),e}isHorny(){let e=this.sessionService.hasAnyGroup(["trold","chick"]);return console.log("==>> AuthenticationService.isHorny() : ",e),e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Jd=(()=>{class t extends Ot{constructor(){super()}getSettings(){let e=this.API_URL+Pe.SETTINGS_URL;return this.httpClient.get(e)}getSetting(e){let i=this.API_URL+Pe.SETTINGS_URL+"/"+e;return this.httpClient.get(i)}getSettingByKey(e){let i=this.API_URL+Pe.SETTINGS_URL+"/key/"+e;return this.httpClient.get(i)}saveSetting(e){let i=this.API_URL+Pe.SETTINGS_URL+"/"+e.id;return this.httpClient.put(i,e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Tl={shortSHA:"ba1683b",SHA:"ba1683b75aa785af0dc65a8d53c10cd25d706cc6",branch:"master",lastCommitAuthor:"Claus Paludan",lastCommitTime:"Sat Sep 26 18:23:14 2026 +0200",lastCommitMessage:`(fix) opdatere analogjs vite-plugin-angular for at rette test-fejl
6
7Hvorfor:
8
9- @angular/build 22.2.0 aendrede SourceFileCache saa den ikke laengere er en Map.
10- @analogjs/vite-plugin-angular 2.6.4 forventede stadig Map-API'en, hvilket gav fejlen "cache.has is not a function" naar man koerte pnpm run test.
11
12Dette commit:
13
14- Opdaterer @analogjs/vite-plugin-angular fra ^2.6.0 til ^2.7.5.
15- Opdaterer pnpm-lock.yaml.`,lastCommitNumber:"119",tag:"ba1683b75aa785af0dc65a8d53c10cd25d706cc6",title:"(fix) opdatere analogjs vite-plugin-angular for at rette test-fejl",version:"4.1.4",description:"LEFnet Web Frontend"};var ef=class{constructor(){this.isLoading=!1,this.isBusy=!1,this.isSubmitted=!1,this.errorMessage=void 0,this.warningMessage=void 0}reset(){this.isLoading=!1,this.isBusy=!1,this.isSubmitted=!1,this.errorMessage=void 0,this.warningMessage=void 0}};var GO=["*"];function qO(t,n){t&1&&rt(0,"div",0)}function WO(t,n){t&1&&(rt(0,"div",1),qa(1))}var rn=(()=>{class t extends ef{constructor(){super(),this.busy=!1,this.error=void 0,this.warning=void 0,this._subscriptions=[],this._apiUrl=void 0,this._baseUrl=void 0,this._identifier=void 0,this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this._identifier=J.identifier,J.production&&(this._apiUrl=this._apiUrl.replace("http://","https://"),this._baseUrl=this._baseUrl.replace("http://","https://"))}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this._identifier=J.identifier,J.production&&(this._apiUrl=this._apiUrl.replace("http://","https://"),this._baseUrl=this._baseUrl.replace("http://","https://"))}ngOnDestroy(){this._subscriptions.forEach(e=>e.unsubscribe())}subscriptions(e){this._subscriptions.push(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-view"]],inputs:{busy:"busy",error:"error",warning:"warning"},features:[Je],ngContentSelectors:GO,decls:2,vars:1,consts:[["aria-label","Loading...",1,"spinner"],["id","error","focusable",""]],template:function(i,r){i&1&&(Ga(),P(0,qO,1,0,"div",0)(1,WO,2,0)),i&2&&F(r.busy?0:1)},encapsulation:2,changeDetection:1})}}return t})();var tf=class{};var WD=Ff(Cy());function wD(t,n){let i=!n?.manualCleanup?n?.injector?.get(je)??v(je):null,r=KO(n?.equal),o;n?.requireSync?o=B({kind:0},{equal:r}):o=B({kind:1,value:n?.initialValue},{equal:r});let s,a=t.subscribe({next:l=>o.set({kind:1,value:l}),error:l=>{o.set({kind:2,error:l}),s?.()},complete:()=>{s?.()}});if(n?.requireSync&&o().kind===0)throw new S(601,!1);return s=i?.onDestroy(a.unsubscribe.bind(a)),Ae(()=>{let l=o();switch(l.kind){case 1:return l.value;case 2:throw l.error;case 0:throw new S(601,!1)}},{equal:n?.equal})}function KO(t=Object.is){return(n,e)=>n.kind===1&&e.kind===1&&t(n.value,e.value)}function xy(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Co=xy();function OD(t){Co=t}var bo={exec:()=>null};function Ns(t){let n=[];return e=>{let i=Math.max(0,Math.min(3,e-1)),r=n[i];return r||(r=t(i),n[i]=r),r}}function _e(t,n=""){let e=typeof t=="string"?t:t.source,i={replace:(r,o)=>
vendor: 4,646 bytes, line 15
15{let s=typeof o=="string"?o:o.source;return s=s.replace(jt.caret,"$1"),e=e.replace(r,s),i},getRegex:()=>new RegExp(e,n)};return i}var YO=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch(n){return!1}})(),jt={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ns(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:Ns(t=>new RegExp(`^ {0,${t}}((?:-[ 	]*){3,}|(?:_[ 	]*){3,}|(?:\\*[ 	]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Ns(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ns(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ns(t=>new RegExp(`^ {0,${t}}(?:</?(?:${Al})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:Ns(t=>new RegExp(`^ {0,${t}}>`))},QO=/^(?:[ \t]*(?:\n|$))+/,ZO=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,XO=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,kl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,JO=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ty=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,LD=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,PD=_e(LD).replace(/bull/g,Ty).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),eL=_e(LD).replace(/bull/g,Ty).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Iy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,tL=/^[^\n]+/,My=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,nL=_e(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",My).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),iL=_e(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ty).getRegex(),Al="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ky=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rL=_e("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>
15)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",ky).replace("tag",Al).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),FD=t=>_e(Iy).replace("hr",kl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Al).getRegex(),oL=FD(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),sL=FD(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),aL=_e(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",sL).getRegex(),Ay={blockquote:aL,code:ZO,def:nL,fences:XO,heading:JO,hr:kl,html:rL,lheading:PD,list:iL,newline:QO,paragraph:oL,table:bo,text:tL},DD=_e("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",kl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Al).getRegex(),lL=Z(C({},Ay),{lheading:eL,table:DD,paragraph:_e(Iy).replace("hr",kl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",DD).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Al).getRegex()}),cL=Z(C({},Ay),{html:_e(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ky).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:bo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_e(Iy).replace("hr",kl).replace("heading",` *#{1,6} *[^
16]`).replace("lheading",PD).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),uL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,dL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,VD=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,fL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Zi=/[\p{P}\p{S}]/u,Rs=/[\s\p{P}\p{S}]/u,Nl=/[^\s\p{P}\p{S}]/u,pL=_e(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Rs).getRegex(),hL=/[\p{Pi}\p{Ps}"']/u,jD=/(?!~)[\p{P}\p{S}]/u,mL=/(?!~)[\s\p{P}\p{S}]/u,gL=/(?:[^\s\p{P}\p{S}]|~)/u,yL=_e(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",YO?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),UD=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,vL=_e(UD,"u").replace(/punct/g,Zi).getRegex(),_L=_e(UD,"u").replace(/punct/g,jD).getRegex(),bL=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,EL=_e(bL,"u").replace(/openQuote/g,hL).replace(/punct/g,Zi).getRegex(),BD="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",CL=_e(BD,"gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,Rs).replace(/punct/g,Zi).getRegex(),wL=_e(BD,"gu").replace(/notPunctSpace/g,gL).replace(/punctSpace/g,mL).replace(/punct/g,jD).getRegex(),DL="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",SL=_e(DL,"gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,Rs).replace(/punct/g,Zi).getRegex(),xL=_e("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,Rs).replace(/punct/g,Zi).getRegex(),TL="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",IL=_e(TL,"gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,Rs).replace(/punct/g,Zi).getRegex(),ML=_e(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Zi).getRegex(),kL="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",AL=_e(kL,"gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,Rs).replace(/punct/g,Zi).getRegex(),NL=_e(/\\(punct)/,"gu").replace(/punct/g,Zi).getRegex(),RL=_e
16(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),OL=_e(ky).replace("(?:-->|$)","-->").getRegex(),LL=_e("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",OL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),HD=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,rf=_e(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",HD).getRegex(),PL=_e(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",rf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),FL=_e(/^!?\[(label)\]\[(ref)\]/).replace("label",rf).replace("ref",My).getRegex(),VL=_e(/^!?\[(ref)\](?:\[\])?/).replace("ref",My).getRegex(),SD=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,jL=_e(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",HD).getRegex(),UL=_e("reflink|nolink(?!\\()","g").replace("reflink",_e(/^!?\[(label)\]\[(ref)\]/).replace("label",jL).replace("ref",SD).getRegex()).replace("nolink",_e(/^!?\[(ref)\](?:\[\])?/).replace("ref",SD).getRegex()).getRegex(),xD=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,BL=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,HL=_e(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,BL).getRegex(),Ny={_backpedal:bo,anyPunctuation:NL,autolink:RL,blockSkip:yL,br:VD,code:dL,del:bo,delLDelim:bo,delRDelim:bo,emStrongLDelim:vL,emStrongRDelimAst:CL,emStrongRDelimUnd:xL,escape:uL,link:PL,nolink:VL,punctuation:pL,reflink:FL,reflinkSearch:UL,tag:LL,text:fL,url:bo},$L=Z(C({},Ny),{emStrongLDelim:EL,emStrongRDelimAst:SL,emStrongRDelimUnd:IL,link:_e(/^!?\[(label)\]\((.*?)\)/).replace("label",rf).getRegex(),reflink:_e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rf).getRegex()}),wy=Z(C({},Ny),{emStrongRDelimAst:wL,emStrongLDelim:_L,delLDelim:ML,delRDelim:AL,url:_e(/^emailProtocol|^((?
vendor: 30,689 bytes, lines 16-80
16:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",HL).replace("protocol",xD).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_e(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",xD).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()}),zL=Z(C({},wy),{br:_e(VD).replace("{2,}","*").getRegex(),text:_e(wy.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),nf={normal:Ay,gfm:lL,pedantic:cL},Il={normal:Ny,gfm:wy,breaks:zL,pedantic:$L},GL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},TD=t=>GL[t];function Cn(t,n){if(n){if(jt.escapeTest.test(t))return t.replace(jt.escapeReplace,TD)}else if(jt.escapeTestNoEncode.test(t))return t.replace(jt.escapeReplaceNoEncode,TD);return t}function qL(t){return t.replace(jt.numericCharacterReference,(n,e,i)=>{let r=e===void 0?Number.parseInt(i,16):Number.parseInt(e,10);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":String.fromCodePoint(r)})}function ID(t){try{t=encodeURI(t).replace(jt.percentDecode,"%")}catch(n){return null}return t}function MD(t,n){let e=t.replace(jt.findPipe,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),i=e.split(jt.splitPipe),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),n)if(i.length>n)i.splice(n);else for(;i.length<n;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(jt.slashPipe,"|");return i}function Dr(t,n,e){let i=t.length;if(i===0)return"";let r=0;for(;r<i;){let o=t.charAt(i-r-1);if(o===n&&!e)r++;else if(o!==n&&e)r++;else break}return t.slice(0,i-r)}function kD(t){let n=t.split(`
17`),e=n.length-1;for(;e>=0&&jt.blankLine.test(n[e]);)e--;return n.length-e<=2?t:n.slice(0,e+1).join(`
18`)}function of(t){return t.trim().toLowerCase().toUpperCase().toLowerCase()}function WL(t,n){if(t.indexOf(n[1])===-1)return-1;let e=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===n[0])e++;else if(t[i]===n[1]&&(e--,e<0))return i;return e>0?-2:-1}function AD(t,n=0){let e=n,i="";for(let r of t)if(r==="	"){let o=4-e%4;i+=" ".repeat(o),e+=o}else i+=r,e++;return i}function ND(t,n,e,i,r){let o=n.href,s=n.title||null,a=t[1].replace(r.other.outputLinkReplace,"$1"),l=t[0].charAt(0)==="!";i.state.inLink=!0;let c=i.state.linkEmitted,u=i.state.inRawBlock;i.state.linkEmitted=!1;let d=i.inlineTokens(a),m=i.state.linkEmitted;if(i.state.linkEmitted=c,i.state.inLink=!1,!l){if(m){i.state.inRawBlock=u;return}i.state.linkEmitted=!0}return{type:l?"image":"link",raw:e,href:o,title:s,text:a,tokens:d}}function KL(t,n,e){let i=t.match(e.other.indentCodeCompensation);if(i===null)return n;let r=i[1];return n.split(`
19`).map(o=>{let s=o.match(e.other.beginningSpace);if(s===null)return o;let[a]=s;return o.slice(Math.min(a.length,r.length))}).join(`
20`)}function RD(t,n,e,i){if(!n.includes("<"))return!1;for(let r=0;r<n.length;r++){if(n[r]==="\\"){r++;continue}if(n[r]==="`"){let a=i.inline.code.exec(n.slice(r));if(a){r+=a[0].length-1;continue}}if(n[r]!=="<")continue;let o=t.slice(e+r),s=i.inline.tag.exec(o)||i.inline.autolink.exec(o);if(s){if(s[0].length>n.length-r)return!0;r+=s[0].length-1}}return!1}var sf=class{options;rules;lexer;constructor(t){this.options=t||Co}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let e=this.options.pedantic?n[0]:kD(n[0]),i=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:i}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let e=n[0],i=KL(e,n[3]||"",this.rules);return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(this.rules.other.endingHash.test(e)){let i=Dr(e,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceTabChar.test(i))&&(e=i.trim())}return{type:"heading",raw:Dr(n[0],`
21`),depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Dr(n[0],`
22`)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let e=Dr(n[0],`
23`).split(`
24`),i="",r="",o=[];for(;e.length>0;){let s=!1,a=[],l;for(l=0;l<e.length;l++)if(this.rules.other.blockquoteStart.test(e[l]))a.push(e[l]),s=!0;else if(!s)a.push(e[l]);else break;e=e.slice(l);let c=a.join(`
25`),u=c.replace(this.rules.other.blockquoteSetextReplace,`
26    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
27${c}`:c,r=r?`${r}
28${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,o,!0),this.lexer.state.top=d,e.length===0)break;let m=o.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let f=m,_=e.join(`
29`),E=f.raw+`
30`+_.replace(this.rules.other.blockquoteSetextReplace2,""),D=this.blockquote(E);o[o.length-1]=D;let M=E.substring(D.raw.length).replace(/^\n/,""),T=M?M.split(`
31`).length:0,q=T?e.slice(0,-T):e;q.length>0&&(i=`${i}
32${q.join(`
33`)}`),r=r.substring(0,r.length-f.text.length)+D.text;break}else if(m?.type==="list"){let f=m,_=f.raw+`
34`+e.join(`
35`),E=this.list(_);o[o.length-1]=E,i=i.substring(0,i.length-m.raw.length)+E.raw,r=r.substring(0,r.length-f.raw.length)+E.raw,e=_.substring(o.at(-1).raw.length).split(`
36`);continue}}return{type:"blockquote",raw:i,tokens:o,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e=n[1].trim(),i=e.length>1,r={type:"list",raw:"",ordered:i,start:i?+e.slice(0,-1):"",loose:!1,items:[]};e=i?`\\d{1,9}\\${e.slice(-1)}`:`\\${e}`,this.options.pedantic&&(e=i?e:"[*+-]");let o=this.rules.other.listItemRegex(e),s=!1;for(;t;){let l=!1,c="",u="";if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;c=n[0],t=t.substring(c.length);let d=n[2].split(`
37`,1)[0],m=n[1].length,f=this.options.pedantic?AD(d,m):d.replace(this.rules.other.leadingSpaceTab,M=>AD(M,m)),_=t.split(`
38`,1)[0],E=!f.trim(),D=0;if(this.options.pedantic?(D=2,u=f.trimStart()):E?D=m+1:(D=f.search(this.rules.other.nonSpaceChar),D=D>4?1:D,u=f.slice(D),D+=m),E&&this.rules.other.blankLine.test(_)&&(c+=_+`
39`,t=t.substring(_.length+1),l=!0),!l){let M=this.rules.other.nextBulletRegex(D),T=this.rules.other.hrRegex(D),q=this.rules.other.fencesBeginRegex(D),Q=this.rules.other.headingBeginRegex(D),pe=this.rules.other.htmlBeginRegex(D),N=this.rules.other.blockquoteBeginRegex(D);for(;t;){let z=t.split(`
40`,1)[0],le;if(_=z,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting,"  "),le=_):le=_.replace(this.rules.other.leadingSpaceTab,ce=>ce.replace(this.rules.other.tabCharGlobal,"    ")),q.test(_)||Q.test(_)||pe.test(_)||N.test(_)||M.test(_)||T.test(_))break;if(le.search(this.rules.other.nonSpaceChar)>=D||!_.trim())u+=`
41`+le.slice(D);else{if(E||f.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||q.test(f)||Q.test(f)||T.test(f))break;u+=`
42`+_}E=!_.trim(),c+=z+`
43`,t=t.substring(z.length+1),f=le.slice(D)}}r.loose||(s?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0)),r.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),r.raw+=c}let a=r.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let l of r.items)if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),!r.loose){let c=l.tokens.filter(d=>d.type==="space"),u=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));r.loose=u}for(let l of r.items){let c=l.tokens[0];if(l.task&&(c?.type==="text"||c?.type==="paragraph")){l.text=l.text.replace(this.rules.other.listReplaceTask,""),c.raw=c.raw.replace(this.rules.other.listReplaceTask,""),c.text=c.text.replace(this.rules.other.listReplaceTask,"");for(let d=this.lexer.inlineQueue.length-1;d>=0;d--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[d].src)){this.lexer.inlineQueue[d].src=this.lexer.inlineQueue[d].src.replace(this.rules.other.listReplaceTask,"");break}let u=this.rules.other.listTaskCheckbox.exec(l.raw);if(u){let d={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};l.checked=d.checked,r.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=d.raw+l.tokens[0].raw,l.tokens[0].text=d.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(d)):l.tokens.unshift({type:"paragraph",raw:d.raw,text:d.raw,tokens:[d]}):l.tokens.unshift(d)}}else l.task&&(l.task=!1)}if(r.loose)for(let l of r.items){l.loose=!0;for(let c of l.tokens)c.type==="text"&&(c.type="paragraph")}return r}}html(t){let n=this.rules.block.html.exec(t);if(n){let e=kD(n[0]);return{type:"html",block:!0,raw:e,pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:e}}}def(t){let n=this.rules.block.def.exec(t);if(n){let e=of(n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:e,raw:Dr(n[0],`
44`),href:i,title:r}}}table(t){let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let e=MD(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
45`):[],o={type:"table",raw:Dr(n[0],`
46`),header:[],align:[],rows:[]};if(e.length===i.length){for(let s of i)this.rules.other.tableAlignRight.test(s)?o.align.push("right"):this.rules.other.tableAlignCenter.test(s)?o.align.push("center"):this.rules.other.tableAlignLeft.test(s)?o.align.push("left"):o.align.push(null);for(let s=0;s<e.length;s++)o.header.push({text:e[s],tokens:this.lexer.inline(e[s]),header:!0,align:o.align[s]});for(let s of r)o.rows.push(MD(s,o.header.length).map((a,l)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:o.align[l]})));return o}}lheading(t){let n=this.rules.block.lheading.exec(t);if(n){let e=n[1].trim();return{type:"heading",raw:Dr(n[0],`
47`),depth:n[2].charAt(0)==="="?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let e=n[1].charAt(n[1].length-1)===`
48`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:e,tokens:this.lexer.inline(e)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let e=n[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&RD(t,n[1],e,this.rules))return;let i=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let s=Dr(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=WL(n[2],"()");if(s===-2)return;if(s>-1){let a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let r=n[2],o="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],o=s[3])}else o=n[3]?n[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?r=r.slice(1):r=r.slice(1,-1)),ND(n,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let e;if((e=this.rules.inline.reflink.exec(t))||(e=this.rules.inline.nolink.exec(t))){let i=e[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&RD(t,e[1],i,this.rules))return;let r=(e[2]||e[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=n[of(r)];if(!o){let s=e[0].charAt(0);return{type:"text",raw:s,text:s}}return ND(e,o,e[0],this.lexer,this.rules)}}emStrong(t,n,e=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&e.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!e||this.rules.inline.punctuation.exec(e))){let r=[...i[0]].length-1,o,s,a=r,l=0,c=i[0][0],u=e===c,d=c==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+r);(i=d.exec(n))!==null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(s=[...o].length,i[3]||i[4]){a+=s;continue}else if(i[5]||i[6]){if(r%3&&!((r+s)%3)){l+=s;continue}if(u)break}if(a-=s,a>0)continue;s=Math.min(s,s+a+l);let m=[...i[0]][0].length,f=t.slice(0,r+i.index+m+s);if(Math.min(r,s)%2){let E=f.slice(1,-1);return{type:"em",raw:f,text:E,tokens:this.lexer.inlineTokens(E)}}let _=f.slice(2,-2);return{type:"strong",raw:f,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let e=n[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return i&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:n[0],text:e}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t,n,e=""){let i=this.rules.inline.delLDelim.exec(t);if(i&&(!i[1]||!e||this.rules.inline.punctuation.exec(e))){let r=[...i[0]].length-1,o,s,a=r,l=this.rules.inline.delRDelim;for(l.lastIndex=0,n=n.slice(-1*t.length+r);(i=l.exec(n))!==null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o||(s=[...o].length,s!==r))continue;if(i[3]||i[4]){a+=s;continue}if(a-=s,a>0)continue;s=Math.min(s,s+a);let c=[...i[0]][0].length,u=t.slice(0,r+i.index+c+s),d=u.slice(r,-r);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let e,i;return n[2]==="@"?(e=n[1],i="mailto:"+e):(e=n[1],i=e),{type:"link",raw:n[0],text:e,href:i,autolink:!0,tokens:[{type:"text",raw:e,text:e}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let e,i;if(n[2]==="@")e=n[0],i="mailto:"+e;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(r!==n[0]);e=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:e,href:i,autolink:!0,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let e=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:e?n[0]:qL(n[0]),escaped:e}}}},Kn=class Dy{tokens;options;state;inlineQueue;tokenizer;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||Co,this.options.tokenizer=this.options.tokenizer||new sf,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let e={other:jt,block:nf.normal,inline:Il.normal};this.options.pedantic?(e.block=nf.pedantic,e.inline=Il.pedantic):this.options.gfm&&(e.block=nf.gfm,this.options.breaks?e.inline=Il.breaks:e.inline=Il.gfm),this.tokenizer.rules=e}static get rules(){return{block:nf,inline:Il}}static lex(n,e){return new Dy(e).lex(n)}static lexInline(n,e){return new Dy(e).inlineTokens(n)}lex(n){n=n.replace(jt.carriageReturn,`
49`),this.blockTokens(n,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let i=this.inlineQueue[e];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,e=[],i=!1){this.tokenizer.lexer=this,this.options.pedantic&&(n=n.replace(jt.tabCharGlobal,"    ").replace(jt.spaceLine,""));let r=1/0;for(;n;){if(n.length<r)r=n.length;else{this.infiniteLoopError(n.charCodeAt(0));break}let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},n,e))?(n=n.substring(o.raw.length),e.push(o),!0):!1))continue;if(o=this.tokenizer.space(n)){n=n.substring(o.raw.length);let a=e.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
50`:e.push(o);continue}if(o=this.tokenizer.code(n)){n=n.substring(o.raw.length);let a=e.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
51`)?"":`
52`)+o.raw,a.text+=`
53`+o.text,this.inlineQueue.at(-1).src=a.text):e.push(o);continue}if(o=this.tokenizer.fences(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.heading(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.hr(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.blockquote(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.list(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.html(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.def(n)){n=n.substring(o.raw.length);let a=e.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
54`)?"":`
55`)+o.raw,a.text+=`
56`+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},e.push(o));continue}if(o=this.tokenizer.table(n)){n=n.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.lheading(n)){n=n.substring(o.raw.length),e.push(o);continue}let s=n;if(this.options.extensions?.startBlock){let a=1/0,l=n.slice(1),c;this.options.extensions.startBlock.forEach(u=>{c=u.call({lexer:this},l),typeof c=="number"&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(s=n.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let a=e.at(-1);i&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
57`)?"":`
58`)+o.raw,a.text+=`
59`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(o),i=s.length!==n.length,n=n.substring(o.raw.length);continue}if(o=this.tokenizer.text(n)){n=n.substring(o.raw.length);let a=e.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
60`)?"":`
61`)+o.raw,a.text+=`
62`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(o);continue}if(n){this.infiniteLoopError(n.charCodeAt(0));break}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}linkInText(n){if(!n.includes("["))return!1;let e=this.tokenizer.rules.inline.link;for(let i of n.matchAll(this.tokenizer.rules.inline.blockSkip))if(e.test(i[0])&&n.charAt(i.index-1)!=="!")return!0;for(let i of n.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let r=i[0],o=r.lastIndexOf("[");if(!(r.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,of(r.slice(o+1,-1))))&&!(o>1&&this.linkInText(r.slice(1,o-1))))return!0}return!1}inlineTokens(n,e=[]){this.tokenizer.lexer=this;let i=n;if(this.tokens.links&&n.includes("[")){let a=this.tokenizer.rules.inline.reflinkSearch,l=c=>{let u=c.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,of(c.slice(u+1,-1))))return c;if(u>1&&c.charAt(0)!=="!"){let d=c.slice(1,u-1);if(this.linkInText(d))return"["+d.replace(a,l)+"]["+"a".repeat(c.length-u-2)+"]"}return"["+"a".repeat(c.length-2)+"]"};i=i.replace(a,l)}i=i.replace(this.tokenizer.rules.inline.anyPunctuation,a=>"+".repeat(a.length)),i=i.replace(this.tokenizer.rules.inline.blockSkip,(a,l,c)=>{let u=c?c.length:0;return a.slice(0,u)+"["+"a".repeat(a.length-u-2)+"]"}),i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let r=!1,o="",s=1/0;for(;n;){if(n.length<s)s=n.length;else{this.infiniteLoopError(n.charCodeAt(0));break}r||(o=""),r=!1;let a;if(this.options.extensions?.inline?.some(c=>(a=c.call({lexer:this},n,e))?(n=n.substring(a.raw.length),e.push(a),!0):!1))continue;if(a=this.tokenizer.escape(n)){n=n.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.tag(n)){n=n.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.link(n)){n=n.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(a.raw.length);let c=e.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):e.push(a);continue}if(a=this.tokenizer.emStrong(n,i,o)){n=n.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.codespan(n)){n=n.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.br(n)){n=n.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.del(n,i,o)){n=n.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.autolink(n)){n=n.substring(a.raw.length),e.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(n))){n=n.substring(a.raw.length),e.push(a);continue}let l=n;if(this.options.extensions?.startInline){let c=1/0,u=n.slice(1),d;this.options.extensions.startInline.forEach(m=>{d=m.call({lexer:this},u),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(l=n.substring(0,c+1))}if(a=this.tokenizer.inlineText(l)){n=n.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(o=a.raw.slice(-1)),r=!0;let c=e.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):e.push(a);continue}if(n){this.infiniteLoopError(n.charCodeAt(0));break}}return e}infiniteLoopError(n){let e="Infinite loop on byte: "+n;if(this.options.silent)console.error(e);else throw new Error(e)}},Sr=class{options;parser;constructor(t){this.options=t||Co}space(t){return""}code({text:t,lang:n,escaped:e}){let i=(n||"").match(jt.notSpaceStart)?.[0],r=t?t.replace(jt.endingNewline,"")+`
63`:"";return i?'<pre><code class="language-'+Cn(i)+'">'+(e?r:Cn(r,!0))+`</code></pre>
64`:"<pre><code>"+(e?r:Cn(r,!0))+`</code></pre>
65`}blockquote({tokens:t}){return`<blockquote>
66${this.parser.parse(t)}</blockquote>
67`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
68`}hr(t){return`<hr>
69`}list(t){let n=t.ordered,e=t.start,i="";for(let s=0;s<t.items.length;s++){let a=t.items[s];i+=this.listitem(a)}let r=n?"ol":"ul",o=n&&e!==1?' start="'+e+'"':"";return"<"+r+o+`>
70`+i+"</"+r+`>
71`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
72`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
73`}table(t){let n="",e="";for(let r=0;r<t.header.length;r++)e+=this.tablecell(t.header[r]);n+=this.tablerow({text:e});let i="";for(let r=0;r<t.rows.length;r++){let o=t.rows[r];e="";for(let s=0;s<o.length;s++)e+=this.tablecell(o[s]);i+=this.tablerow({text:e})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
74<thead>
75`+n+`</thead>
76`+i+`</table>
77`}tablerow({text:t}){return`<tr>
78${t}</tr>
79`}tablecell(t){let n=this.parser.parseInline(t.tokens),e=t.header?"th":"td";return(t.align?`<${e} align="${t.align}">`:`<${e}>`)+n+`</${e}>
80`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Cn(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,text:e,tokens:i,autolink:r}){let o=r?Cn(e,!0):this.parser.parseInline(i),s=ID(t);if(s===null)return o;t=Cn(s,r);let a='<a href="'+t+'"';return n&&(a+=' title="'+Cn(n)+'"'),a+=">"+o+"</a>",a}image({href:t,title:n,text:e,tokens:i}){i&&(e=this.parser.parseInline(i,this.parser.textRenderer));let r=ID(t);if(r===null)return Cn(e);t=r;let o=`<img src="${Cn(t)}" alt="${Cn(e)}"`;return n&&(o+=` title="${Cn(n)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Cn(t.text)}},Ry=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},Yn=class Sy{options;renderer;textRenderer;constructor(n){this.options=n||Co,this.options.renderer=this.options.renderer||new Sr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ry}static parse(n,e){return new Sy(e).parse(n)}static parseInline(n,e){return new Sy(e).parseInline(n)}parse(n){this.renderer.parser=this;let e="";for(let i=0;i<n.length;i++){let r=n[i];if(this.options.extensions?.renderers?.[r.type]){let s=r,a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){e+=a||"";continue}}let o=r;switch(o.type){case"space":{e+=this.renderer.space(o);break}case"hr":{e+=this.renderer.hr(o);break}case"heading":{e+=this.renderer.heading(o);break}case"code":{e+=this.renderer.code(o);break}case"table":{e+=this.renderer.table(o);break}case"blockquote":{e+=this.renderer.blockquote(o);break}case"list":{e+=this.renderer.list(o);break}case"checkbox":{e+=this.renderer.checkbox(o);break}case"html":{e+=this.renderer.html(o);break}case"def":{e+=this.renderer.def(o);break}case"paragraph":{e+=this.renderer.paragraph(o);break}case"text":{e+=this.renderer.text(o);break}default:{let s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return e}parseInline(n,e=this.renderer){this.renderer.parser=this;let i="";for(let r=0;r<n.length;r++){let o=n[r];if(this.options.extensions?.renderers?.[o.type]){let a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(o.type)){i+=a||"";continue}}let s=o;switch(s.type){case"escape":{i+=e.text(s);break}case"html":{i+=e.html(s);break}case"link":{i+=e.link(s);break}case"image":{i+=e.image(s);break}case"checkbox":{i+=e.checkbox(s);break}case"strong":{i+=e.strong(s);break}case"em":{i+=e.em(s);break}case"codespan":{i+=e.codespan(s);break}case"br":{i+=e.br(s);break}case"del":{i+=e.del(s);break}case"text":{i+=e.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}},Ml=class{options;block;constructor(t){this.options=t||Co}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?Kn.lex:Kn.lexInline}provideParser(t=this.block){return t?Yn.parse:Yn.parseInline}},YL=class{defaults=xy();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Yn;Renderer=Sr;TextRenderer=Ry;Lexer=Kn;Tokenizer=sf;Hooks=Ml;constructor(...t){this.use(...t)}walkTokens(t,n){let e=[];for(let i of t)switch(e=e.concat(n.call(this,i)),i.type){case"table":{let r=i;for(let o of r.header)e=e.concat(this.walkTokens(o.tokens,n));for(let o of r.rows)for(let s of o)e=e.concat(this.walkTokens(s.tokens,n));break}case"list":{let r=i;e=e.concat(this.walkTokens(r.items,n));break}default:{let r=i;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(o=>{let s=r[o].flat(1/0);e=e.concat(this.walkTokens(s,n))}):r.tokens&&(e=e.concat(this.walkTokens(r.tokens,n)))}}return e}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{let i=C({},e);if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let o=n.renderers[r.name];o?n.renderers[r.name]=function(...s){let a=r.renderer.apply(this,s);return a===!1&&(a=o.apply(this,s)),a}:n.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=n[r.level];o?o.unshift(r.tokenizer):n[r.level]=[r.tokenizer],r.start&&(r.level==="block"?n.startBlock?n.startBlock.push(r.start):n.startBlock=[r.start]:r.level==="inline"&&(n.startInline?n.startInline.push(r.start):n.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(n.childTokens[r.name]=r.childTokens)}),i.extensions=n),e.renderer){let r=this.defaults.renderer||new Sr(this.defaults);for(let o in e.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let s=o,a=e.renderer[s],l=r[s];r[s]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=l.apply(r,c)),u||""}}i.renderer=r}if(e.tokenizer){let r=this.defaults.tokenizer||new sf(this.defaults);for(let o in e.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let s=o,a=e.tokenizer[s],l=r[s];r[s]=(...c)=>{let u=a.apply(r,c);return u===!1&&(u=l.apply(r,c)),u}}i.tokenizer=r}if(e.hooks){let r=this.defaults.hooks||new Ml;for(let o in e.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let s=o,a=e.hooks[s],l=r[s];Ml.passThroughHooks.has(o)?r[s]=c=>{if(this.defaults.async&&Ml.passThroughHooksRespectAsync.has(o))return ne(this,null,function*(){let d=yield a.call(r,c);return l.call(r,d)});let u=a.call(r,c);return l.call(r,u)}:r[s]=(...c)=>{if(this.defaults.async)return ne(this,null,function*(){let d=yield a.apply(r,c);return d===!1&&(d=yield l.apply(r,c)),d});let u=a.apply(r,c);return u===!1&&(u=l.apply(r,c)),u}}i.hooks=r}if(e.walkTokens){let r=this.defaults.walkTokens,o=e.walkTokens;i.walkTokens=function(s){let a=[];return a.push(o.call(this,s)),r&&(a=a.concat(r.call(this,s))),a}}this.defaults=C(C({},this.defaults),i)}),this}setOptions(t){return this.defaults=C(C({},this.defaults),t),this}lexer(t,n){return Kn.lex(t,n??this.defaults)}parser(t,n){return Yn.parse(t,n??this.defaults)}parseMarkdown(t){return(n,e)=>{let i=C({},e),r=C(C({},this.defaults),i),o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));
80if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return ne(this,null,function*(){let s=r.hooks?yield r.hooks.preprocess(n):n,a=yield(r.hooks?yield r.hooks.provideLexer(t):t?Kn.lex:Kn.lexInline)(s,r),l=r.hooks?yield r.hooks.processAllTokens(a):a;r.walkTokens&&(yield Promise.all(this.walkTokens(l,r.walkTokens)));let c=yield(r.hooks?yield r.hooks.provideParser(t):t?Yn.parse:Yn.parseInline)(l,r);return r.hooks?yield r.hooks.postprocess(c):c}).catch(o);try{r.hooks&&(n=r.hooks.preprocess(n));let s=(r.hooks?r.hooks.provideLexer(t):t?Kn.lex:Kn.lexInline)(n,r);r.hooks&&(s=r.hooks.processAllTokens(s)),r.walkTokens&&this.walkTokens(s,r.walkTokens);let a=(r.hooks?r.hooks.provideParser(t):t?Yn.parse:Yn.parseInline)(s,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(s){return o(s)}}}onError(t,n){return e=>{if(e.message+=`
81Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+Cn(e.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(e);throw e}}},Eo=new YL;function Fe(t,n){return Eo.parse(t,n)}Fe.options=Fe.setOptions=function(t){return Eo.setOptions(t),Fe.defaults=Eo.defaults,OD(Fe.defaults),Fe};Fe.getDefaults=xy;Fe.defaults=Co;function QL(...t){return Eo.use(...t),Fe.defaults=Eo.defaults,OD(Fe.defaults),Fe}Fe.use=QL;Fe.walkTokens=function(t,n){return Eo.walkTokens(t,n)};Fe.parseInline=Eo.parseInline;Fe.Parser=Yn;Fe.parser=Yn.parse;Fe.Renderer=Sr;Fe.TextRenderer=Ry;Fe.Lexer=Kn;Fe.lexer=Kn.lex;Fe.Tokenizer=sf;Fe.Hooks=Ml;Fe.parse=Fe;var bZ=Fe.options,EZ=Fe.setOptions,CZ=Fe.walkTokens,wZ=Fe.parseInline;var DZ=Yn.parse,SZ=Kn.lex;var ZL="Copy",XL="Copied",JL=(()=>{class t{constructor(){this._buttonClick$=new Ie,this.copied=wD(this._buttonClick$.pipe(Ut(()=>op(ue(!0),Ti(3e3).pipe(sp(!1)))),jo(),cp(1))),this.copiedText=Ae(()=>this.copied()?XL:ZL)}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["markdown-clipboard"]],decls:2,vars:3,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,r){i&1&&(U(0,"button",0),st("click",function(){return r.onCopyToClipboardClick()}),p(1),$()),i&2&&(tt("copied",r.copied()),y(),k(r.copiedText()))},encapsulation:2})}}return t})(),eP=new L("CLIPBOARD_OPTIONS"),tP=new L("KATEX_OPTIONS");var nP=new L("MARKED_EXTENSIONS"),Ly=new L("MARKED_OPTIONS"),iP=new L("MERMAID_OPTIONS"),rP=new L("SANITIZE");function oP(t){return typeof t=="function"}var sP="[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information";var aP="[ngx-markdown] When using the `katex` attribute you *have to* include the `marked-katex-extension` package and its dependencies. See README for more information",lP="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",cP="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",uP="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",dP="[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information";var $D=(()=>{class t{get options(){return this._options}set options(e){this._options=C(C({},this.DEFAULT_MARKED_OPTIONS),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(){this.clipboardOptions=v(eP,{optional:!0}),this.extensions=v(nP,{optional:!0}),this.http=v(Gn,{optional:!0}),this.mermaidOptions=v(iP,{optional:!0}),this.katexOptions=v(tP,{optional:!0}),this.platform=v(ji),this.sanitize=v(rP,{optional:!0}),this.sanitizer=v(kg),this.katexGate={enabled:!1},this.markedKatex=null,this.DEFAULT_MARKED_OPTIONS={renderer:new Sr},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,katex:!1,katexOptions:void 0,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_SECURITY_CONTEXT=Ke.HTML,this._options=null,this._reload$=new Ie,this.reload$=this._reload$.asObservable(),this.options=v(Ly,{optional:!0})}parse(r){return ne(this,arguments,function*(e,i=this.DEFAULT_PARSE_OPTIONS){let{decodeHtml:o,inline:s,emoji:a,
81katex:l,katexOptions:c,mermaid:u,disableSanitizer:d}=i;this.katexGate={enabled:!!i.katex};let m=C(C({},this.options),i.markedOptions),f=m.renderer||this.renderer||new Sr;this.extensions&&(this.renderer=this.extendsRendererForExtensions(f)),l&&(this.renderer=yield this.extendsRendererForKatex(f,c)),u&&(this.renderer=this.extendsRendererForMermaid(f));let _=this.trimIndentation(e),E=o?this.decodeHtml(_):_,D=a?this.parseEmoji(E):E,M=this.parseMarked(D,m,s);return d?M:this.sanitizeHtml(M)})}render(e,i=this.DEFAULT_RENDER_OPTIONS,r){let{clipboard:o,clipboardOptions:s,mermaid:a,mermaidOptions:l}=i;a&&this.renderMermaid(e,C(C(C({},this.DEFAULT_MERMAID_OPTIONS),this.mermaidOptions),l)),o&&this.renderClipboard(e,r,C(C(C({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),s)),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error(dP);return this.http.get(e,{responseType:"text"}).pipe(Ne(i=>this.handleExtension(e,i)))}highlight(e){if(!_r(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);let i=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!_r(this.platform))return e;let i=document.createElement("textarea");return i.innerHTML=e,i.value}extendsRendererForExtensions(e){let i=e;return i.\u0275NgxMarkdownRendererExtendedForExtensions===!0||(this.extensions&&this.extensions.length>0&&Fe.use(...this.extensions),i.\u0275NgxMarkdownRendererExtendedForExtensions=!0),e}extendsRendererForKatex(e,i){return ne(this,null,function*(){let r=this.katexGate,o=e;if(o.\u0275NgxMarkdownRendererExtendedForKatex===!0)return e;if(this.markedKatex??=yield import("./chunk-I4S6R44A.js").then(u=>u.default).catch(()=>null),!this.markedKatex)throw new Error(aP);let s=C(C({},this.katexOptions),i),a=this.markedKatex(s),l=a.extensions?.map(u=>{let m=u.tokenizer;return Z(C({},u),{tokenizer(f){if(!(!r.enabled||!m))return m.call(this,f,[])}})}),c=Z(C({},a),{extensions:l});return Fe.use(c),o.\u0275NgxMarkdownRendererExtendedForKatex=!0,e})}extendsRendererForMermaid(e){let i=e;if(i.\u0275NgxMarkdownRendererExtendedForMermaid===!0)return e;let r=e.code;return e.code=o=>o.lang==="mermaid"?`<div class="mermaid">${o.text}</div>`:r(o),i.\u0275NgxMarkdownRendererExtendedForMermaid=!0,e}handleExtension(e,i){let r=e.lastIndexOf("://"),o=r>-1?e.substring(r+4):e,s=o.lastIndexOf("/"),a=s>-1?o.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&c!=="md"?"```"+c+`
82`+i+"\n```":i}parseMarked(e,i,r=!1){if(i.renderer){let o=C({},i.renderer);delete o.\u0275NgxMarkdownRendererExtendedForExtensions,delete o.\u0275NgxMarkdownRendererExtendedForKatex,delete o.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,Fe.use({renderer:o})}return r?Fe.parseInline(e,i):Fe.parse(e,i)}parseEmoji(e){if(!_r(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(sP);return joypixels.shortnameToUnicode(e)}renderClipboard(e,i,r){if(!_r(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(cP);if(!i)throw new Error(uP);let{buttonComponent:o,buttonTemplate:s}=r,a=e.querySelectorAll("pre");for(let l=0;l<a.length;l++){let c=a.item(l),u=document.createElement("div");u.style.position="relative",c.parentNode.insertBefore(u,c),u.appendChild(c);let d=document.createElement("div");d.classList.add("markdown-clipboard-toolbar"),d.style.position="absolute",d.style.top=".5em",d.style.right=".5em",d.style.zIndex="1",u.insertAdjacentElement("beforeend",d),u.onmouseenter=()=>d.classList.add("hover"),u.onmouseleave=()=>d.classList.remove("hover");let m;if(o){let _=i.createComponent(o);m=_.hostView,_.changeDetectorRef.markForCheck()}else if(s)m=i.createEmbeddedView(s);else{let _=i.createComponent(JL);m=_.hostView,_.changeDetectorRef.markForCheck()}let f;m.rootNodes.forEach(_=>{d.appendChild(_),f=new ClipboardJS(_,{text:()=>c.innerText})}),m.onDestroy(()=>f.destroy())}}renderMermaid(e,i=this.DEFAULT_MERMAID_OPTIONS){if(!_r(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(lP);let r=e.querySelectorAll(".mermaid");r.length!==0&&(mermaid.initialize(i),mermaid.run({nodes:r}))}trimIndentation(e){if(!e)return"";let i;return e.split(`
83`).map(r=>{let o=i;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(i)&&(i=o),o?r.substring(o):r}).join(`
84`)}sanitizeHtml(e){return ne(this,null,function*(){return oP(this.sanitize)?this.sanitize(yield e):this.sanitize!==Ke.NONE?this.sanitizer.sanitize(this.sanitize??this.DEFAULT_SECURITY_CONTEXT,e)??"":e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})(),Oy=(function(t){return t.CommandLine="command-line",t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t})(Oy||{}),zD=(()=>{class t{constructor(){this.element=v(Mt),this.markdownService=v($D),this.viewContainerRef
84=v(pi),this.pendingTasks=v(Ui),this.error=new Ye,this.load=new Ye,this.ready=new Ye,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Ie}get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(ki(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,i=!1){return ne(this,null,function*(){let r=this.pendingTasks.add();try{yield this.renderContent(e,i)}finally{r()}})}renderContent(e,i){return ne(this,null,function*(){let r={decodeHtml:i,inline:this.inline,emoji:this.emoji,katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},o={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},s=yield this.markdownService.parse(e,r);this.element.nativeElement.innerHTML=s,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,o,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(e){return e!=null&&`${String(e)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e).then(()=>{this.load.emit(e)})},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Oy.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Oy.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,i){let r=e.querySelectorAll("pre");for(let o=0;o<r.length;o++){let s=i instanceof Array?i:[i];r.item(o).classList.add(...s)}}setPluginOptions(e,i){let r=e.querySelectorAll("pre");for(let o=0;o<r.length;
84o++)Object.keys(i).forEach(s=>{let a=i[s];if(a){let l=this.toLispCase(s);r.item(o).setAttribute(l,a.toString())}})}toLispCase(e){let i=e.match(/([A-Z])/g);if(!i)return e;let r=e.toString();for(let o=0,s=i.length;o<s;o++)r=r.replace(new RegExp(i[o]),"-"+i[o].toLowerCase());return r.slice(0,1)==="-"&&(r=r.slice(1)),r}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=(function(){return fe({type:t,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[Jt],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,o){r&1&&(Ga(),qa(0))},encapsulation:2})})()}}return t})();function Py(t){return[$D,t?.loader??[],t?.clipboardOptions??[],t?.katexOptions??[],t?.markedOptions??[],t?.mermaidOptions??[],t?.markedExtensions??[],t?.sanitize??[]]}var GD=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[Py(e)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Vt({type:t})}static{this.\u0275inj=Nt({})}}return t})();var pP=t=>({display:t}),qD=(()=>{class t{constructor(){this.show=!1,this.closeCallback=()=>!1,this.markdownRaw="",this.changelog="",this.httpClient=v(Gn),console.log("===> ChangelogComponent.constructor()")}ngOnInit(){console.log("===> ChangelogComponent.ngOnInit()"),this.loadMarkdown()}onReady(e){console.log(e)}loadMarkdown(){this.httpClient.get("/assets/CHANGELOG.md",{responseType:"text"}).subscribe(e=>{this.markdownRaw=e,this.changelog=this.markdownRaw})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-changelog"]],inputs:{show:"show",closeCallback:"closeCallback"},decls:8,vars:4,consts:[["id","popoverlay",1,"logoverlay",3,"ngStyle"],[1,"popupplayer"],[1,"podcast-player"],["type","button","aria-label","Luk vinduet",1,"podclose",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","aria-hidden","true","focusable","false",1,"close-icon"],["d","M6 6l12 12M18 6L6 18"],[1,"content"],["markdown","",1,"markdown",2,"text-align","left",3,"ready","data"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),X("click",function(){return r.closeCallback()}),Xe(),h(4,"svg",4),O(5,"path",5),g()(),Et(),h(6,"div",6)(7,"div",7),X("ready",function(){return r.onReady(r.changelog)}),g()()()()()),i&2&&(H("ngStyle",yn(2,pP,r.show?"block":"none")),y(7),H("data",r.changelog))},dependencies:[Wi,GD,zD],encapsulation:2,changeDetection:1})}}return t})();function hP(t,n){if(t&1&&O(0,"app-changelog",5),t&2){let e=b(2);H("show",e.showModal)("closeCallback",e.toggleModal)}}function mP(t,n){if(t&1){let e=ke();h(0,"footer")(1,"div",1),p(2),O(3,"br"),h(4,"div",2),p(5,"[email protected]"),g(),h(6,"img",3),X("click",function(){V(e);let r=b();return j(r.displayModal())})("keydown.enter",function(){V(e);let r=b();return j(r.displayModal())})("keydown.space",function(){V(e);let r=b();return j(r.displayModal())}),g()(),h(7,"div",4),p(8),g(),P(9,hP,1,2,"app-changelog",5),g()}if(t&2){let e=b();y(2),yt(" Levende Eventyr & Fantasi \xA9 1986 - ",e.thisYear," "),y(6),Hu("lefnet version : ",e.dashStats.get("version")," - ",e.dashStats.get("versionHash")," - ",e.dashStats.get("title")),y(),F(e.showModal?9:-1)}}var gP=900*1e3,KD=(()=>{class t extends rn{get showFooter(){return this.sessionService.showFooter()}constructor(){super(),this.title="ln81fe",this.loginFormVisible=!1,this.user=new Qi,this.backendSettings=[],this.dashStats=new Map,this._identifier=void 0,this.showModal=!1,this.thisYear=(0,WD.default)().year(),this.formBuilder=v(Cw),this.cookieService=v(Ei),this.router=v(kn),this.route=v(bn),this.authenticationService=v(CD),this.sessionService=v(nn),this.settingsService=v(Jd),this.toggleModal=()=>(console.log("==>>
84 AppComponent.toggleModal() - this.showModal - before : ",this.showModal),this.showModal=!this.showModal,console.log("==>> AppComponent.toggleModal() - this.showModal - after : ",this.showModal),!0)}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this._identifier=J.identifier,J.production&&(this._apiUrl=this._apiUrl.replace("http://","https://"),this._baseUrl=this._baseUrl.replace("http://","https://")),this.loginForm=this.formBuilder.group({email:new lo(null,vs.required),password:new lo(null,vs.required)}),this.subscriptions(this.settingsService.getSettingByKey("xfe_vis_regel_menu").subscribe({next:e=>{this.showRuleMenu=e.value==="1",this.backendSettings.push(e)}})),this.subscriptions(this.settingsService.getSettingByKey("xfe_vis_login_menu").subscribe({next:e=>{this.showLoginMenu=e.value==="1",this.backendSettings.push(e)}})),this.subscriptions(this.settingsService.getSettingByKey("xfe_app_routes").subscribe({next:e=>{this.backendSettings.push(e)},complete:()=>{this.setupXFERoutes()}})),this.collectData(),this.setupGroupsRefresh()}toggleLoginWindow(){this.loginFormVisible=!this.loginFormVisible}setupXFERoutes(){this.backendSettings&&(this.routeSetting=this.backendSettings.find(i=>i.key==="xfe_app_routes"));let e=[];
84if(this.router.config.forEach(i=>{i.path!=="**"&&e.push("/"+i.path)}),this.routeSetting){let i=new Xd;i.id=this.routeSetting.id,i.value=e.toString(),i.description=this.routeSetting.description,this.subscriptions(this.settingsService.saveSetting(i).subscribe({error:r=>{console.log("==>> AppComponent.setupXFERoutes() - error : ",r)}}))}}login(){let e=new tf,i=new Qi;e.email=this.loginForm.controls.email.value,e.password=this.loginForm.controls.password.value,this.authenticationService.csrf().subscribe({next:()=>{this.subscriptions(this.authenticationService.login(e).subscribe(r=>{i=this.authenticationService.mapLoginResponseToUser(r),r.two_factor===!1&&(this.sessionService.setIsLoggedIn(!0),this.authenticationService.setSession(i),this.loginFormVisible=!1,this.router.navigate(["/"])),r.error==="Already authenticated."&&(i=this.authenticationService.getSessionUser(),i===null||i.email===""||i.email===void 0?this.subscriptions(this.authenticationService.getCurrentUser().subscribe(o=>{i=this.authenticationService.mapLoginResponseToUser(o),this.sessionService.setIsLoggedIn(!0),this.authenticationService.setSession(i),this.router.navigate(["/"])})):(this.sessionService.setIsLoggedIn(!0),this.authenticationService.setSession(i),this.router.navigate(["/"])))}))},error:r=>{console.log("==>> AppComponent.login() - error : ",r)}})}logout(){this.subscriptions(this.authenticationService.logout().subscribe({next:()=>{this.router.navigate(["/login"])},complete:()=>{console.log("==>> AppComponent.logout() - complete : ")}}))}checkLoggedInStatus(){let e=!1,i=this.route.snapshot.queryParams.returnUrl||"/";if(this.cookieService.get("XSRF-TOKEN")&&(e=!0),e&&this.subscriptions(this.authenticationService.getCurrentUser().subscribe(r=>{let o=this.authenticationService.mapLoginResponseToUser(r);this.sessionService.setIsLoggedIn(!0),this.authenticationService.setSession(o),this.router.navigateByUrl(i)})),this.cookieService.get("XSRF-TOKEN")&&sessionStorage.getItem("userDetails")){let r=JSON.parse(sessionStorage.getItem("userDetails"));this.sessionService.setIsLoggedIn(!0),this.authenticationService.setSession(r),this.router.navigateByUrl(i)}}get isAdmin(){return this.sessionService.getIsAdmin()}setupGroupsRefresh(){this.subscriptions(rp(gP).subscribe(()=>{this.sessionService.getIsLoggedIn()&&this.authenticationService.refreshGroups()}))}collectData(){this.dashStats=new Map([["versionHash",Tl.shortSHA],["title",Tl.title],["version",Tl.version],["gittag",Tl.tag]])}displayModal(){console.log("==>> AppComponent.displayModal() - this.showModal - before : ",this.showModal),this.toggleModal()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-root"]],features:[Je],decls:3,vars:1,consts:[[1,"wrapper"],[1,"copyright"],[1,"mailfont"],["src","assets/images/trollhouse_troll_beige.png","width","120","alt","Kodetrolden - Trollhouse Development!",3,"click","keydown.enter","keydown.space"],[1,"troldversion"],[3,"show","closeCallback"]],template:function(i,r){i&1&&(h(0,"div",0),O(1,"router-outlet"),g(),P(2,mP,10,5,"footer")),i&2&&(y(2),F(r.showFooter?2:-1))},dependencies:[Dl,qD],encapsulation:2,changeDetection:1})}}return t})();var wn=typeof window<"u"?window:{screen:{},navigator:{}},Os=(wn.matchMedia||(function(){return{matches:!1}})).bind(wn),YD=!1,yP={get passive(){return YD=!0}},QD=function(){};wn.addEventListener&&wn.addEventListener("p",QD,yP);wn.removeEventListener&&wn.removeEventListener("p",QD,!1);var af=YD,CX="PointerEvent"in wn,Fy="ontouchstart"in wn,vP="TouchEvent"in wn,_P=Fy||vP&&Os("(any-pointer: coarse)").matches,wX=(wn.navigator.maxTouchPoints||0)>0||_P,ZD=wn.navigator.userAgent||"",bP=Os("(pointer: coarse)").matches&&/iPad|Macintosh/.test(ZD)&&Math.min(wn.screen.width||0,wn.screen.height||0)>=768,DX=(Os("(pointer: coarse)").matches||!Os("(pointer: fine)").matches&&Fy)&&!/Windows.*Firefox/.test(ZD),SX=Os("(any-pointer: fine)").matches||Os("(any-hover: hover)").matches||bP||!Fy;var Ci=(function(t){return t[t.Low=0]="Low",t[t.High=1]="High",t[t.Floor=2]="Floor",t[t.Ceil=3]="Ceil",t[t.TickValue=4]="TickValue",t})(Ci||{}),Ps=class{floor=0;ceil=null;step=1;minRange=null;maxRange=null;pushRange=!1;minLimit=null;maxLimit=null;translate=null;combineLabels=null;getLegend=null;getStepLegend=null;stepsArray=null;bindIndexForStepsArray=!1;draggableRange=!1;draggableRangeOnly=!1;showSelectionBar=!1;showSelectionBarEnd=!1;showSelectionBarFromValue=null;showOuterSelectionBars=!1;hidePointerLabels=!1;hideLimitLabels=!1;autoHideLimitLabels=!0;readOnly=!1;disabled=!1;showTicks=!1;showTicksValues=!1;tickStep=null;tickValueStep=null;ticksArray=null;ticksTooltip=null;ticksValuesTooltip=null;vertical=!1;getSelectionBarColor=null;getTickColor=null;getPointerColor=null;keyboardSupport=!0;scale=1;rotate=0;enforceStep=!0;enforceRange=!0;enforceStepsArray=!0;noSwitching=!1;onlyBindHandles=!1;rightToLeft=!1;reversedControls=!1;boundPointerLabels=!0;logScale=!1;customValueToPosition=null;customPositionToValue=null;precisionLimit=12;selectionBarGradient=null;ariaLabel="ngx-slider";ariaLabelledBy=null;ariaLabelHigh="ngx-slider-max";ariaLabelledByHigh=null;handleDimension=null;barDimension=null;animate=!0;
84animateOnMove=!1},XD=new L("AllowUnsafeHtmlInSlider"),Y=(function(t){return t[t.Min=0]="Min",t[t.Max=1]="Max",t})(Y||{}),jy=class{value;highValue;pointerType},x=class{static isNullOrUndefined(n){return n==null}static areArraysEqual(n,e){if(n.length!==e.length)return!1;for(let i=0;i<n.length;++i)if(n[i]!==e[i])return!1;return!0}static linearValueToPosition(n,e,i){let r=i-e;return(n-e)/r}static logValueToPosition(n,e,i){n=Math.log(n),e=Math.log(e),i=Math.log(i);let r=i-e;return(n-e)/r}static linearPositionToValue(n,e,i){return n*(i-e)+e}static logPositionToValue(n,e,i){e=Math.log(e),i=Math.log(i);let r=n*(i-e)+e;return Math.exp(r)}static findStepIndex(n,e){let i=e.map(o=>Math.abs(n-o.value)),r=0;for(let o=0;o<e.length;o++)i[o]!==i[r]&&i[o]<i[r]&&(r=o);return r}},ht=class{static roundToPrecisionLimit(n,e){return+n.toPrecision(e)}static isModuloWithinPrecisionLimit(n,e,i){let r=Math.pow(10,-i);return Math.abs(n%e)<=r||Math.abs(Math.abs(n%e)-e)<=r}static clampToRange(n,e,i){return Math.min(Math.max(n,e),i)}},lf=class{eventName=null;events=null;eventsSubscription=null;teardownCallback=null},cf=class{renderer;constructor(n){this.renderer=n}attachPassiveEventListener(n,e,i,r){if(af!==!0)return this.attachEventListener(n,e,i,r);let o=new lf;o.eventName=e,o.events=new Ie;let s=a=>{o.events.next(a)};return n.addEventListener(e,s,{passive:!0,capture:!1}),o.teardownCallback=()=>{n.removeEventListener(e,s,{passive:!0,capture:!1})},o.eventsSubscription=o.events.pipe(x.isNullOrUndefined(r)?At(()=>{}):Cc(r,void 0,{leading:!0,trailing:!0})).subscribe(a=>{i(a)}),o}detachEventListener(n){x.isNullOrUndefined(n.eventsSubscription)||(n.eventsSubscription.unsubscribe(),n.eventsSubscription=null),x.isNullOrUndefined(n.events)||(n.events.complete(),n.events=null),x.isNullOrUndefined(n.teardownCallback)||(n.teardownCallback(),n.teardownCallback=null)}attachEventListener(n,e,i,r){let o=new lf;o.eventName=e,o.events=new Ie;let s=a=>{o.events.next(a)};return o.teardownCallback=this.renderer.listen(n,e,s),o.eventsSubscription=o.events.pipe(x.isNullOrUndefined(r)?At(()=>{}):Cc(r,void 0,{leading:!0,trailing:!0})).subscribe(a=>{i(a)}),o}},xr=(()=>{class t{elemRef=v(Mt);renderer=v($t);changeDetectionRef=v(en);_position=0;get position(){return this._position}_dimension=0;get dimension(){return this._dimension}_alwaysHide=!1;get alwaysHide(){return this._alwaysHide}_vertical=!1;get vertical(){return this._vertical}_scale=1;get scale(){return this._scale}_rotate=0;get rotate(){return this._rotate}opacity=1;visibility="visible";left="";bottom="";height="";width="";transform="";eventListenerHelper;eventListeners=[];constructor(){this.eventListenerHelper=new cf(this.renderer)}setAlwaysHide(e){this._alwaysHide=e,e?this.visibility="hidden":this.visibility="visible"}hide(){this.opacity=0}show(){this.alwaysHide||(this.opacity=1)}isVisible(){return this.alwaysHide?!1:this.opacity!==0}setVertical(e){this._vertical=e,this._vertical?(this.left="",this.width=""):(this.bottom="",this.height="")}setScale(e){this._scale=e}setRotate(e){this._rotate=e,this.transform="rotate("+e+"deg)"}getRotate(){return this._rotate}setPosition(e){this._position!==e&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._position=e,this._vertical?this.bottom=Math.round(e)+"px":this.left=Math.round(e)+"px"}calculateDimension(){let e=this.getBoundingClientRect();this.vertical?this._dimension=(e.bottom-e.top)*this.scale:this._dimension=(e.right-e.left)*this.scale}setDimension(e){this._dimension!==e&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._dimension=e,this._vertical?this.height=Math.round(e)+"px":this.width=Math.round(e)+"px"}getBoundingClientRect(){return this.elemRef.nativeElement.getBoundingClientRect()}on(e,i,r){let o=this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement,e,i,r);this.eventListeners.push(o)}onPassive(e,i,r){let o=this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement,e,i,r);this.eventListeners.push(o)}off(e){let i,r;x.isNullOrUndefined(e)?(i=[],r=this.eventListeners):(i=this.eventListeners.filter(o=>o.eventName!==e),r=this.eventListeners.filter(o=>o.eventName===e));for(let o of r)this.eventListenerHelper.detachEventListener(o);this.eventListeners=i}isRefDestroyed(){return x.isNullOrUndefined(this.changeDetectionRef)||this.changeDetectionRef.destroyed}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Ct({type:t,selectors:[["","ngxSliderElement",""]],hostVars:14,hostBindings:function(i,r){i&2&&et("opacity",r.opacity)("visibility",r.visibility)("left",r.left)("bottom",r.bottom)("height",r.height)("width",r.width)("transform",r.transform)},standalone:!1})}return t})(),Vy=(()=>{class t extends xr{active=!1;role="";tabindex="";ariaOrientation="";ariaLabel="";ariaLabelledBy="";ariaValueNow="";ariaValueText="";ariaValueMin="";ariaValueMax="";document=v(Ee);focus(){this.elemRef.nativeElement.focus()}focusIfNeeded(){this.document.activeElement!==this.elemRef.nativeElement&&this.elemRef.nativeElement.focus()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ui(t)))(r||t)}})();static \u0275dir=Ct({type:t,selectors:[["","ngxSliderHandle",""]],hostVars:11,hostBindings:function(i,r){i&2&&(De("role",r.role)("tabindex",r.tabindex)("aria-orientation",r.ariaOrientation)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledBy)("aria-valuenow",r.ariaValueNow)("aria-valuetext",r.ariaValueText)("aria-valuemin",r.ariaValueMin)("aria-valuemax",r.ariaValueMax),tt("ngx-slider-active",r.active))},standalone:!1,features:[Je]})}return t})(),Ls=(()=>{class t extends xr{allowUnsafeHtmlInSlider=v(XD,{optional:!0});_value=null;get value(){return this._value}setValue(e){let i=!1;!this.alwaysHide&&(x.isNullOrUndefined(this.value)||this.value.length!==e.length||this.value.length>0&&this.dimension===0)&&(i=!0),this._value=e,this.allowUnsafeHtmlInSlider===!1?this.elemRef.nativeElement.innerText=e:this.elemRef.nativeElement.innerHTML=e,i&&this.calculateDimension()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ui(t)))(r||t)}})();static \u0275dir=Ct({type:t,selectors:[["","ngxSliderLabel",""]],standalone:!1,features:[Je]})}return t})(),EP=(()=>{class t{template;tooltip;placement;content;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=(function(){let e=(a,l,c)=>({tooltip:a,placement:l,content:c});function i(a,l){}function r(a,l){a&1&&ja(0,i,0,0,"ng-template")}function o(a,l){if(a&1&&ja(0,r,1,0,null,1),a&2){let c=b();H("ngTemplateOutlet",c.template)("ngTemplateOutletContext",Ym(2,e,c.tooltip,c.placement,c.content))}}function s(a,l){if(a&1&&(h(0,"div",0),p(1),g()),a&2){let c=b();De("title",c.tooltip)("data-tooltip-placement",c.placement),y(),yt(" ",c.content," ")}}return fe({type:t,selectors:[["ngx-slider-tooltip-wrapper"]],inputs:{template:"template",tooltip:"tooltip",placement:"placement",content:"content"},standalone:!1,decls:2,vars:2,consts:[[1,"ngx-slider-inner-tooltip"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(l,c){l&1&&(P(0,o,1,6),P(1,s,2,3,"div",0)),l&2&&(F(c.template?0:-1),y(),F(c.template?-1:1))},dependencies:[lg],styles:[".ngx-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"],changeDetection:1})})()}return t})(),Uy=class{selected=!1;style={};tooltip=null;tooltipPlacement=null;value=null;valueTooltip=null;valueTooltipPlacement=null;legend=null},uf=class{active=!1;value=0;difference=0;position=0;lowLimit=0;highLimit=0},Fs=class{value;highValue;static compare(n,e){return x.isNullOrUndefined(n)&&x.isNullOrUndefined(e)||x.isNullOrUndefined(n)!==x.isNullOrUndefined(e)?!1:n.value===e.value&&n.highValue===e.highValue}},df=class extends Fs{forceChange;static compare(n,e){return x.isNullOrUndefined(n)&&x.isNullOrUndefined(e)||x.isNullOrUndefined(n)!==x.isNullOrUndefined(e)?!1:n.value===e.value&&n.highValue===e.highValue&&n.forceChange===e.forceChange}};var CP={provide:yd,useExisting:ri(()=>By),multi:!0},By=(()=>{class t{renderer=v($t);elementRef=v(Mt);changeDetectionRef=v(en);zone=v(Ve);allowUnsafeHtmlInSlider=v(XD,{optional:!0});sliderElementNgxSliderClass=!0;value=null;valueChange=new Ye;highValue=null;highValueChange=new Ye;options=new Ps;userChangeStart=new Ye;userChange=new Ye;userChangeEnd=new Ye;manualRefreshSubscription;set manualRefresh(e){this.unsubscribeManualRefresh(),this.manualRefreshSubscription=e.subscribe(()=>{setTimeout(()=>this.calculateViewDimensionsAndDetectChanges())})}triggerFocusSubscription;set triggerFocus(e){this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=e.subscribe(i=>{this.focusPointer(i)})}cancelUserChangeSubscription;set cancelUserChange(e){this.unsubscribeCancelUserChange(),this.cancelUserChangeSubscription=e.subscribe(()=>{this.moving&&(this.positionTrackingHandle(this.preStartHandleValue),this.forceEnd(!0))})}get range(){return!x.isNullOrUndefined(this.value)&&!x.isNullOrUndefined(this.highValue)}initHasRun=!1;
84inputModelChangeSubject=new Ie;inputModelChangeSubscription=null;outputModelChangeSubject=new Ie;outputModelChangeSubscription=null;viewLowValue=null;viewHighValue=null;viewOptions=new Ps;handleHalfDimension=0;maxHandlePosition=0;currentTrackingPointer=null;currentFocusPointer=null;firstKeyDown=!1;touchId=null;dragging=new uf;preStartHandleValue=null;leftOuterSelectionBarElement;rightOuterSelectionBarElement;fullBarElement;selectionBarElement;minHandleElement;maxHandleElement;floorLabelElement;ceilLabelElement;minHandleLabelElement;maxHandleLabelElement;combinedLabelElement;ticksElement;tooltipTemplate;sliderElementVerticalClass=!1;sliderElementAnimateClass=!1;sliderElementWithLegendClass=!1;sliderElementDisabledAttr=null;sliderElementAriaLabel="ngx-slider";barStyle={};minPointerStyle={};maxPointerStyle={};fullBarTransparentClass=!1;selectionBarDraggableClass=!1;ticksUnderValuesClass=!1;get showTicks(){return this.viewOptions.showTicks}intermediateTicks=!1;ticks=[];eventListenerHelper=null;onMoveEventListener=null;onEndEventListener=null;onCancelEventListener=null;moving=!1;resizeObserver=null;onTouchedCallback=null;onChangeCallback=null;document=v(Ee);constructor(){this.eventListenerHelper=new cf(this.renderer)}ngOnInit(){this.viewOptions=new Ps,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState(),this.updateAriaLabel()}ngAfterViewInit(){this.applyOptions(),this.subscribeInputModelChangeSubject(),this.subscribeOutputModelChangeSubject(),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.range?this.viewHighValue=this.modelValueToViewValue(this.highValue):this.viewHighValue=null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.updateAriaLabel(),this.subscribeResizeObserver(),this.initHasRun=!0,this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}ngOnChanges(e){!x.isNullOrUndefined(e.options)&&JSON.stringify(e.options.previousValue)!==JSON.stringify(e.options.currentValue)&&this.onChangeOptions(),(!x.isNullOrUndefined(e.value)||!x.isNullOrUndefined(e.highValue))&&this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,controlAccessorChange:!1,forceChange:!1,internalChange:!1})}ngOnDestroy(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()}writeValue(e){e instanceof Array?(this.value=e[0],this.highValue=e[1]):this.value=e,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1,controlAccessorChange:!0})}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.viewOptions.disabled=e,this.updateDisabledState(),this.initHasRun&&this.manageEventsBindings()}setAriaLabel(e){this.viewOptions.ariaLabel=e,this.updateAriaLabel()}onResize(e){this.calculateViewDimensionsAndDetectChanges()}subscribeInputModelChangeSubject(){this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe(jo(df.compare),ln(e=>!e.forceChange&&!e.internalChange)).subscribe(e=>this.applyInputModelChange(e))}subscribeOutputModelChangeSubject(){this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe(jo(df.compare)).subscribe(e=>this.publishOutputModelChange(e))}subscribeResizeObserver(){this.resizeObserver=new ResizeObserver(()=>this.calculateViewDimensionsAndDetectChanges()),this.resizeObserver.observe(this.elementRef.nativeElement)}unsubscribeResizeObserver(){this.resizeObserver.disconnect(),this.resizeObserver=null}unsubscribeOnMove(){x.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)}unsubscribeOnEnd(){x.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null),x.isNullOrUndefined(this.onCancelEventListener)||(this.eventListenerHelper.detachEventListener(this.onCancelEventListener),this.onCancelEventListener=null)}unsubscribeInputModelChangeSubject(){x.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)}unsubscribeOutputModelChangeSubject(){x.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)}unsubscribeManualRefresh(){x.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)}unsubscribeTriggerFocus(){x.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)}unsubscribeCancelUserChange(){x.isNullOrUndefined(this.cancelUserChangeSubscription)||(this.cancelUserChangeSubscription.unsubscribe(),this.cancelUserChangeSubscription=null)}getPointerElement(e){return e===Y.Min?this.minHandleElement:e===Y.Max?this.maxHandleElement:null}getCurrentTrackingValue(){return this.currentTrackingPointer===Y.Min?this.viewLowValue:this.currentTrackingPointer===Y.Max?this.viewHighValue:null}modelValueToViewValue(e){return x.isNullOrUndefined(e)?NaN:!x.isNullOrUndefined(this.viewOptions.stepsArray)&&!this.viewOptions.bindIndexForStepsArray?x.findStepIndex(+e,this.viewOptions.stepsArray):+e}viewValueToModelValue(e){return!x.isNullOrUndefined(this.viewOptions.stepsArray)&&!this.viewOptions.bindIndexForStepsArray?this.get
84StepValue(e):e}getStepValue(e){let i=this.viewOptions.stepsArray[e];return x.isNullOrUndefined(i)?NaN:i.value}applyViewChange(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,controlAccessorChange:!1,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,controlAccessorChange:!1,forceChange:!1,internalChange:!0})}applyInputModelChange(e){let i=this.normaliseModelValues(e),r=!Fs.compare(e,i);r&&(this.value=i.value,this.highValue=i.highValue),this.viewLowValue=this.modelValueToViewValue(i.value),this.range?this.viewHighValue=this.modelValueToViewValue(i.highValue):this.viewHighValue=null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:i.value,highValue:i.highValue,controlAccessorChange:e.controlAccessorChange,forceChange:r,userEventInitiated:!1})}publishOutputModelChange(e){let i=()=>{this.valueChange.emit(e.value),this.range&&this.highValueChange.emit(e.highValue),!e.controlAccessorChange&&(x.isNullOrUndefined(this.onChangeCallback)||(this.range?this.onChangeCallback([e.value,e.highValue]):this.onChangeCallback(e.value)),x.isNullOrUndefined(this.onTouchedCallback)||(this.range?this.onTouchedCallback([e.value,e.highValue]):this.onTouchedCallback(e.value)))};e.userEventInitiated?(i(),this.userChange.emit(this.getChangeContext())):setTimeout(()=>{i()})}normaliseModelValues(e){let i=new Fs;if(i.value=e.value,i.highValue=e.highValue,!x.isNullOrUndefined(this.viewOptions.stepsArray)){if(this.viewOptions.enforceStepsArray){let r=x.findStepIndex(i.value,this.viewOptions.stepsArray);if(i.value=this.viewOptions.stepsArray[r].value,this.range){let o=x.findStepIndex(i.highValue,this.viewOptions.stepsArray);i.highValue=this.viewOptions.stepsArray[o].value}}return i}if(this.viewOptions.enforceStep&&(i.value=this.roundStep(i.value),this.range&&(i.highValue=this.roundStep(i.highValue))),this.viewOptions.enforceRange&&(i.value=ht.clampToRange(i.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(i.highValue=ht.clampToRange(i.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&e.value>e.highValue))if(this.viewOptions.noSwitching)i.value=i.highValue;else{let r=e.value;i.value=e.highValue,i.highValue=r}return i}renormaliseModelValues(){let e={value:this.value,highValue:this.highValue},i=this.normaliseModelValues(e);Fs.compare(i,e)||(this.value=i.value,this.highValue=i.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,controlAccessorChange:!1,forceChange:!0,userEventInitiated:!1}))}onChangeOptions(){if(!this.initHasRun)return;let e=this.getOptionsInfluencingEventBindings(this.viewOptions);this.applyOptions();let i=this.getOptionsInfluencingEventBindings(this.viewOptions),r=!x.areArraysEqual(e,i);this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.range?this.viewHighValue=this.modelValueToViewValue(this.highValue):this.viewHighValue=null,this.resetSlider(r)}applyOptions(){if(this.viewOptions=new Ps,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!x.isNullOrUndefined(this.viewOptions.ticksArray),this.viewOptions.showTicks&&(!x.isNullOrUndefined(this.viewOptions.tickStep)||!x.isNullOrUndefined(this.viewOptions.ticksArray))&&(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!x.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),x.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),x.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=(e,i)=>e+" - "+i),this.viewOptions.logScale&&this.viewOptions.floor===0)throw Error("Can't use floor=0 with logarithmic scale")}
84applyStepsArrayOptions(){this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,x.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=e=>this.viewOptions.bindIndexForStepsArray?String(this.getStepValue(e)):String(e))}applyFloorCeilOptions(){if(x.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),x.isNullOrUndefined(this.viewOptions.ceil)||x.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,x.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=e=>String(e))}resetSlider(e=!0){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),e&&(this.unbindEvents(),this.manageEventsBindings()),this.updateDisabledState(),this.updateAriaLabel(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()}focusPointer(e){e!==Y.Min&&e!==Y.Max&&(e=Y.Min),e===Y.Min?this.minHandleElement.focus():this.range&&e===Y.Max&&this.maxHandleElement.focus()}refocusPointerIfNeeded(){x.isNullOrUndefined(this.currentFocusPointer)||this.getPointerElement(this.currentFocusPointer).focusIfNeeded()}manageElementsStyle(){this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);let e=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(e||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(e||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(e||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout(()=>{this.resetSlider()})),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout(()=>{this.sliderElementAnimateClass=this.viewOptions.animate}),this.updateRotate()}manageEventsBindings(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()}updateDisabledState(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null}updateAriaLabel(){this.sliderElementAriaLabel=this.viewOptions.ariaLabel||"nxg-slider"}updateVerticalState(){this.sliderElementVerticalClass=this.viewOptions.vertical;for(let e of this.getAllSliderElements())x.isNullOrUndefined(e)||e.setVertical(this.viewOptions.vertical)}updateScale(){for(let e of this.getAllSliderElements())e.setScale(this.viewOptions.scale)}updateRotate(){for(let e of this.getAllSliderElements())e.setRotate(this.viewOptions.rotate)}getAllSliderElements(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]}initHandles(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()}addAccessibility(){this.updateAriaAttributes(),this.minHandleElement.role="slider",this.viewOptions.keyboardSupport&&!(this.viewOptions.readOnly||this.viewOptions.disabled)?this.minHandleElement.tabindex="0":this.minHandleElement.tabindex="",this.minHandleElement.ariaOrientation=this.viewOptions.vertical||this.viewOptions.rotate!==0?"vertical":"horizontal",x.isNullOrUndefined(this.viewOptions.ariaLabel)?x.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",this.viewOptions.keyboardSupport&&!(this.viewOptions.readOnly||this.viewOptions.disabled)?this.maxHandleElement.tabindex="0":this.maxHandleElement.tabindex="",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical||this.viewOptions.rotate!==0?"vertical":"horizontal",x.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?x.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)}updateAriaAttributes(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,Ci.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,Ci.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())}calculateViewDimensions(){x.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);let e=this.minHandleElement.dimension;this.handleHalfDimension=e/2,x.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-e,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())}calculateViewDimensionsAndDetectChanges(){this.calculateViewDimensions(),this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}isRefDestroyed(){return this.changeDetectionRef.destroyed}updateTicksScale(){if(!this.viewOptions.showTicks&&this.sliderElementWithLegendClass){setTimeout(()=>{this.sliderElementWithLegendClass=!1});return}let e=x.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,i=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&e.reverse();let r=x.isNullOrUndefined(this.viewOptions.tickValueStep)?x.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep:this.viewOptions.tickValueStep,o=!1,s=e.map(a=>{let l=this.valueToPosition(a);this.viewOptions.vertical&&(l=this.maxHandlePosition-l);let c=i+"("+Math.round(l)+"px)",u=new Uy;u.selected=this.isTickSelected(a),u.style={"-webkit-transform":c,"-moz-transform":c,"-o-transform":c,"-ms-transform":c,transform:c},u.selected&&!x.isNullOrUndefined(this.viewOptions.getSelectionBarColor)&&(u.style["background-color"]=this.getSelectionBarColor()),!u.selected&&!x.isNullOrUndefined(this.viewOptions.getTickColor)&&(u.style["background-color"]=this.getTickColor(a)),x.isNullOrUndefined(this.viewOptions.ticksTooltip)||(u.tooltip=this.viewOptions.ticksTooltip(a),u.tooltipPlacement=this.viewOptions.vertical?"right":"top"),this.viewOptions.showTicksValues&&!x.isNullOrUndefined(r)&&ht.isModuloWithinPrecisionLimit(a,r,this.viewOptions.precisionLimit)&&(u.value=this.getDisplayValue(a,Ci.TickValue),x.isNullOrUndefined(this.viewOptions.ticksValuesTooltip)||(u.valueTooltip=this.viewOptions.ticksValuesTooltip(a),u.valueTooltipPlacement=this.viewOptions.vertical?"right":"top"));let d=null;if(x.isNullOrUndefined(this.viewOptions.stepsArray))x.isNullOrUndefined(this.viewOptions.getLegend)||(d=this.viewOptions.getLegend(a));else{let m=this.viewOptions.stepsArray[a];x.isNullOrUndefined(this.viewOptions.getStepLegend)?x.isNullOrUndefined(m)||(d=m.legend):d=this.viewOptions.getStepLegend(m)}return x.isNullOrUndefined(d)||(u.legend=d,o=!0),u});if(this.sliderElementWithLegendClass!==o&&setTimeout(()=>{this.sliderElementWithLegendClass=o}),!x.isNullOrUndefined(this.ticks)&&this.ticks.length===s.length)for(let a=0;a<s.length;++a)Object.assign(this.ticks[a],s[a]);else this.ticks=s,this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}getTicksArray(){if(!this.viewOptions.showTicks)return[];let e=x.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep,i=[],r=1+Math.floor(ht.roundToPrecisionLimit(Math.abs(this.viewOptions.ceil-this.viewOptions.floor)/e,this.viewOptions.precisionLimit));for(let o=0;o<r;++o)i.push(ht.roundToPrecisionLimit(this.viewOptions.floor+e*o,this.viewOptions.precisionLimit));return i}isTickSelected(e){if(!this.range)if(x.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)){if(this.viewOptions.showSelectionBarEnd){if
84(e>=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&e<=this.viewLowValue)return!0}else{let i=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>i&&e>=i&&e<=this.viewLowValue)return!0;if(this.viewLowValue<i&&e<=i&&e>=this.viewLowValue)return!0}return!!(this.range&&e>=this.viewLowValue&&e<=this.viewHighValue)}updateFloorLabel(){if(!this.floorLabelElement.alwaysHide){this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,Ci.Floor)),this.floorLabelElement.calculateDimension();let e=this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0;this.floorLabelElement.setPosition(e)}}updateCeilLabel(){if(!this.ceilLabelElement.alwaysHide){this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,Ci.Ceil)),this.ceilLabelElement.calculateDimension();let e=this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension;this.ceilLabelElement.setPosition(e)}}updateHandles(e,i){e===Y.Min?this.updateLowHandle(i):e===Y.Max&&this.updateHighHandle(i),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()}getHandleLabelPos(e,i){let r=e===Y.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,o=i-r/2+this.handleHalfDimension,s=this.fullBarElement.dimension-r;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&e===Y.Min||!this.viewOptions.rightToLeft&&e===Y.Max?Math.min(o,s):Math.min(Math.max(o,0),s):o}updateLowHandle(e){this.minHandleElement.setPosition(e),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,Ci.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos(Y.Min,e)),x.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor(Y.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateHighHandle(e){this.maxHandleElement.setPosition(e),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,Ci.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(Y.Max,e)),x.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor(Y.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateFloorAndCeilLabelsVisibility(){if(this.viewOptions.hidePointerLabels)return;let e=!1,i=!1,r=this.isLabelBelowFloorLabel(this.minHandleLabelElement),o=this.isLabelAboveCeilLabel(this.minHandleLabelElement),s=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),a=this.isLabelBelowFloorLabel(this.combinedLabelElement),l=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(r?(e=!0,this.floorLabelElement.hide()):(e=!1,this.floorLabelElement.show()),o?(i=!0,this.ceilLabelElement.hide()):(i=!1,this.ceilLabelElement.show()),this.range){let c=this.combinedLabelElement.isVisible()?l:s,u=this.combinedLabelElement.isVisible()?a:r;c?this.ceilLabelElement.hide():i||this.ceilLabelElement.show(),u?this.floorLabelElement.hide():e||this.floorLabelElement.show()}}isLabelBelowFloorLabel(e){let i=e.position,r=e.dimension,o=this.floorLabelElement.position,s=this.floorLabelElement.dimension;return this.viewOptions.rightToLeft?i+r>=o-2:i<=o+s+2}isLabelAboveCeilLabel(e){let i=e.position,r=e.dimension,o=this.ceilLabelElement.position,s=this.ceilLabelElement.dimension;return this.viewOptions.rightToLeft?i<=o+s+2:i+r>=o-2}updateSelectionBar(){let e=0,i=0,r=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,o=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)i=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),e=o;else if(x.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))r?(i=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),e=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(i=this.minHandleElement.position+this.handleHalfDimension,e=0);else{let s=this.viewOptions.showSelectionBarFromValue,a=this.valueToPosition(s);(this.viewOptions.rightToLeft?this.viewLowValue<=s:this.viewLowValue>s)?(i=this.minHandleElement.position-a,e=a+this.handleHalfDimension):(i=a-this.minHandleElement.position,e=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(i),this.selectionBarElement.setPosition(e),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(e),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(e+i)),this.leftOuterSelectionBarElement.setPosition(e+i)):(this.leftOuterSelectionBarElement.setDimension(e),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(e+i)),this.rightOuterSelectionBarElement.setPosition(e+i))),x.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!x.isNullOrUndefined(this.viewOptions.selectionBarGradient)){let s=x.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),a=s-e>0&&!r||s-e<=0&&r,l=this.viewOptions.vertical?a?"bottom":"top":a?"left":"right";this.barStyle={backgroundImage:"linear-gradient(to "+l+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(s+i+e+(a?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=s-e+(a?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{let s=this.getSelectionBarColor();this.barStyle={backgroundColor:s}}}getSelectionBarColor(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)}getPointerColor(e){return e===Y.Max?this.viewOptions.getPointerColor(this.highValue,e):this.viewOptions.getPointerColor(this.value,e)}getTickColor(e){return this.viewOptions.getTickColor(e)}updateCombinedLabel(){let e=null;if(this.viewOptions.rightToLeft?e=this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:e=this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position,e){let i=this.getDisplayValue(this.viewLowValue,Ci.Low),r=this.getDisplayValue(this.viewHighValue,Ci.High),o=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(r,
84i):this.viewOptions.combineLabels(i,r);this.combinedLabelElement.setValue(o);let s=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(s),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}getDisplayValue(e,i){return!x.isNullOrUndefined(this.viewOptions.stepsArray)&&!this.viewOptions.bindIndexForStepsArray&&(e=this.getStepValue(e)),this.viewOptions.translate(e,i)}roundStep(e,i){let r=x.isNullOrUndefined(i)?this.viewOptions.step:i,o=ht.roundToPrecisionLimit((e-this.viewOptions.floor)/r,this.viewOptions.precisionLimit);return o=Math.round(o)*r,ht.roundToPrecisionLimit(this.viewOptions.floor+o,this.viewOptions.precisionLimit)}valueToPosition(e){let i=x.linearValueToPosition;x.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(i=x.logValueToPosition):i=this.viewOptions.customValueToPosition,e=ht.clampToRange(e,this.viewOptions.floor,this.viewOptions.ceil);let r=i(e,this.viewOptions.floor,this.viewOptions.ceil);return x.isNullOrUndefined(r)&&(r=0),this.viewOptions.rightToLeft&&(r=1-r),r*this.maxHandlePosition}positionToValue(e){let i=e/this.maxHandlePosition;this.viewOptions.rightToLeft&&(i=1-i);let r=x.linearPositionToValue;x.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(r=x.logPositionToValue):r=this.viewOptions.customPositionToValue;let o=r(i,this.viewOptions.floor,this.viewOptions.ceil);return x.isNullOrUndefined(o)?0:o}getEventXY(e){return this.viewOptions.vertical||this.viewOptions.rotate!==0?e.clientY:e.clientX}getEventPosition(e){let i=this.elementRef.nativeElement.getBoundingClientRect(),r=this.viewOptions.vertical||this.viewOptions.rotate!==0?i.bottom:i.left,o=0;return this.viewOptions.vertical||this.viewOptions.rotate!==0?o=-this.getEventXY(e)+r:o=this.getEventXY(e)-r,o*this.viewOptions.scale-this.handleHalfDimension}getNearestHandle(e){if(!this.range)return Y.Min;let i=this.getEventPosition(e),r=Math.abs(i-this.minHandleElement.position),o=Math.abs(i-this.maxHandleElement.position);return r<o?Y.Min:r>o?Y.Max:this.viewOptions.rightToLeft?i>this.minHandleElement.position?Y.Min:Y.Max:i<this.minHandleElement.position?Y.Min:Y.Max}bindEvents(){let e=this.viewOptions.draggableRange;this.viewOptions.onlyBindHandles||this.selectionBarElement.on("pointerdown",i=>this.onBarStart(null,e,i,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.on("pointerdown",i=>this.onBarStart(Y.Min,e,i,!0,!0)),this.maxHandleElement.on("pointerdown",i=>this.onBarStart(Y.Max,e,i,!0,!0))):(this.minHandleElement.on("pointerdown",i=>this.onStart(Y.Min,i,!0,!0)),this.range&&this.maxHandleElement.on("pointerdown",i=>this.onStart(Y.Max,i,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.on("pointerdown",i=>this.onStart(null,i,!0,!0,!0)),this.ticksElement.on("pointerdown",i=>this.onStart(null,i,!0,!0,!0,!0)))),this.viewOptions.onlyBindHandles||this.selectionBarElement.onPassive("pointerdown",i=>this.onBarStart(null,e,i,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.onPassive("pointerdown",i=>this.onBarStart(Y.Min,e,i,!0,!0)),this.maxHandleElement.onPassive("pointerdown",i=>this.onBarStart(Y.Max,e,i,!0,!0))):(this.minHandleElement.onPassive("pointerdown",i=>this.onStart(Y.Min,i,!0,!0)),this.range&&this.maxHandleElement.onPassive("pointerdown",i=>this.onStart(Y.Max,i,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.onPassive("pointerdown",i=>this.onStart(null,i,!0,!0,!0)),this.ticksElement.onPassive("pointerdown",i=>
84this.onStart(null,i,!1,!1,!0,!0)))),this.viewOptions.keyboardSupport&&(this.minHandleElement.on("focus",()=>this.onPointerFocus(Y.Min)),this.range&&this.maxHandleElement.on("focus",()=>this.onPointerFocus(Y.Max)))}getOptionsInfluencingEventBindings(e){return[e.disabled,e.readOnly,e.draggableRange,e.draggableRangeOnly,e.onlyBindHandles,e.keyboardSupport]}unbindEvents(){this.unsubscribeOnMove(),this.unsubscribeOnEnd();for(let e of this.getAllSliderElements())x.isNullOrUndefined(e)||e.off()}onBarStart(e,i,r,o,s,a,l){i?this.onDragStart(e,r,o,s):this.onStart(e,r,o,s,a,l)}onStart(e,i,r,o,s,a){i.stopPropagation(),i.pointerType!=="touch"&&!af&&i.preventDefault(),this.moving=!1,this.calculateViewDimensions(),x.isNullOrUndefined(e)&&(e=this.getNearestHandle(i)),this.currentTrackingPointer=e;let l=this.getPointerElement(e);if(l.active=!0,this.preStartHandleValue=this.getCurrentTrackingValue(),this.viewOptions.keyboardSupport&&l.focus(),r){this.unsubscribeOnMove();let c=u=>this.dragging.active?this.onDragMove(u):this.onMove(u);i.pointerType==="touch"?this.onMoveEventListener=this.eventListenerHelper.attachPassiveEventListener(this.document,"pointermove",c):this.onMoveEventListener=this.eventListenerHelper.attachEventListener(this.document,"pointermove",c)}if(o){this.unsubscribeOnEnd();let c=u=>this.onEnd(u);i.pointerType==="touch"?(this.onEndEventListener=this.eventListenerHelper.attachPassiveEventListener(this.document,"pointerup",c),this.onCancelEventListener=this.eventListenerHelper.attachPassiveEventListener(this.document,"pointercancel",c)):(this.onEndEventListener=this.eventListenerHelper.attachEventListener(this.document,"pointerup",c),this.onCancelEventListener=this.eventListenerHelper.attachPassiveEventListener(this.document,"pointercancel",c))}this.userChangeStart.emit(this.getChangeContext()),i.pointerType==="touch"&&i.isPrimary&&(this.touchId=i.pointerId),s&&this.onMove(i,!0),a&&this.onEnd(i)}onMove(e,i){if(e.pointerType==="touch"&&!e.isPrimary)return;
84this.viewOptions.animate&&!this.viewOptions.animateOnMove&&this.moving&&(this.sliderElementAnimateClass=!1),this.moving=!0;let r=this.getEventPosition(e),o,s=this.viewOptions.rightToLeft?this.viewOptions.floor:this.viewOptions.ceil,a=this.viewOptions.rightToLeft?this.viewOptions.ceil:this.viewOptions.floor;r<=0?o=a:r>=this.maxHandlePosition?o=s:(o=this.positionToValue(r),i&&!x.isNullOrUndefined(this.viewOptions.tickStep)?o=this.roundStep(o,this.viewOptions.tickStep):o=this.roundStep(o)),this.positionTrackingHandle(o)}forceEnd(e=!1){this.moving=!1,this.viewOptions.animate&&(this.sliderElementAnimateClass=!0),e&&(this.sliderElementAnimateClass=!1,setTimeout(()=>{this.sliderElementAnimateClass=this.viewOptions.animate})),this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext())}onEnd(e){e.pointerType==="touch"&&!e.isPrimary||this.forceEnd()}onPointerFocus(e){let i=this.getPointerElement(e);i.on("blur",()=>this.onPointerBlur(i)),i.on("keydown",r=>this.onKeyboardEvent(r)),i.on("keyup",()=>this.onKeyUp()),i.active=!0,this.currentTrackingPointer=e,this.currentFocusPointer=e,this.firstKeyDown=!0}onKeyUp(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())}onPointerBlur(e){e.off("blur"),e.off("keydown"),e.off("keyup"),e.active=!1,x.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)}getKeyActions(e){let i=this.viewOptions.ceil-this.viewOptions.floor,r=e+this.viewOptions.step,o=e-this.viewOptions.step,s=e+i/10,a=e-i/10;this.viewOptions.reversedControls&&(r=e-this.viewOptions.step,o=e+this.viewOptions.step,s=e-i/10,a=e+i/10);let l={UP:r,DOWN:o,LEFT:o,RIGHT:r,PAGEUP:s,PAGEDOWN:a,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(l.LEFT=r,l.RIGHT=o,(this.viewOptions.vertical||this.viewOptions.rotate!==0)&&(l.UP=o,l.DOWN=r)),l}onKeyboardEvent(e){let i=this.getCurrentTrackingValue(),r=x.isNullOrUndefined(e.keyCode)?e.which:e.keyCode,o={38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"},s=this.getKeyActions(i),a=o[r],l=s[a];if(x.isNullOrUndefined(l)||x.isNullOrUndefined(this.currentTrackingPointer))return;e.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));let c=ht.clampToRange(l,this.viewOptions.floor,this.viewOptions.ceil),u=this.roundStep(c);if(!this.viewOptions.draggableRangeOnly)this.positionTrackingHandle(u);else{let d=this.viewHighValue-this.viewLowValue,m,f;this.currentTrackingPointer===Y.Min?(m=u,f=u+d,f>this.viewOptions.ceil&&(f=this.viewOptions.ceil,m=f-d)):this.currentTrackingPointer===Y.Max&&(f=u,m=u-d,m<this.viewOptions.floor&&(m=this.viewOptions.floor,f=m+d)),this.positionTrackingBar(m,f)}}onDragStart(e,i,r,o){let s=this.getEventPosition(i);this.dragging=new uf,this.dragging.active=!0,this.dragging.value=this.positionToValue(s),this.dragging.difference=this.viewHighValue-this.viewLowValue,this.dragging.lowLimit=this.viewOptions.rightToLeft?this.minHandleElement.position-s:s-this.minHandleElement.position,this.dragging.highLimit=this.viewOptions.rightToLeft?s-this.maxHandleElement.position:this.maxHandleElement.position-s,this.onStart(e,i,r,o)}getMinValue(e,i,r){let o=this.viewOptions.rightToLeft,s=null;return i?r?s=o?this.viewOptions.floor:this.viewOptions.ceil-this.dragging.difference:s=o?this.viewOptions.ceil-this.dragging.difference:this.viewOptions.floor:s=o?this.positionToValue(e+this.dragging.lowLimit):this.positionToValue(e-this.dragging.lowLimit),this.roundStep(s)}getMaxValue(e,i,r){let o=this.viewOptions.rightToLeft,s=null;return i?r?s=o?this.viewOptions.floor+this.dragging.difference:this.viewOptions.ceil:s=o?this.viewOptions.ceil:this.viewOptions.floor+this.dragging.difference:o?s=this.positionToValue(e+this.dragging.lowLimit)+this.dragging.difference:s=this.positionToValue(e-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(s)}onDragMove(e){let i=this.getEventPosition(e);
84this.viewOptions.animate&&!this.viewOptions.animateOnMove&&this.moving&&(this.sliderElementAnimateClass=!1),this.moving=!0;let r,o,s,a;this.viewOptions.rightToLeft?(r=this.dragging.lowLimit,o=this.dragging.highLimit,s=this.maxHandleElement,a=this.minHandleElement):(r=this.dragging.highLimit,o=this.dragging.lowLimit,s=this.minHandleElement,a=this.maxHandleElement);let l=i<=o,c=i>=this.maxHandlePosition-r,u,d;if(l){if(s.position===0)return;u=this.getMinValue(i,!0,!1),d=this.getMaxValue(i,!0,!1)}else if(c){if(a.position===this.maxHandlePosition)return;d=this.getMaxValue(i,!0,!0),u=this.getMinValue(i,!0,!0)}else u=this.getMinValue(i,!1,!1),d=this.getMaxValue(i,!1,!1);this.positionTrackingBar(u,d)}positionTrackingBar(e,i){!x.isNullOrUndefined(this.viewOptions.minLimit)&&e<this.viewOptions.minLimit&&(e=this.viewOptions.minLimit,i=ht.roundToPrecisionLimit(e+this.dragging.difference,this.viewOptions.precisionLimit)),!x.isNullOrUndefined(this.viewOptions.maxLimit)&&i>this.viewOptions.maxLimit&&(i=this.viewOptions.maxLimit,e=ht.roundToPrecisionLimit(i-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=e,this.viewHighValue=i,this.applyViewChange(),this.updateHandles(Y.Min,this.valueToPosition(e)),this.updateHandles(Y.Max,this.valueToPosition(i))}positionTrackingHandle(e){e=this.applyMinMaxLimit(e),this.range&&(this.viewOptions.pushRange?e=this.applyPushRange(e):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===Y.Min&&e>this.viewHighValue?e=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===Y.Max&&e<this.viewLowValue&&(e=this.applyMinMaxRange(this.viewLowValue))),e=this.applyMinMaxRange(e),this.currentTrackingPointer===Y.Min&&e>this.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles(Y.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=Y.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===Y.Max&&e<this.viewLowValue&&(this.viewHighValue=this.viewLowValue,this.applyViewChange(),this.updateHandles(Y.Max,this.minHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=Y.Min,this.maxHandleElement.active=!1,this.minHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.minHandleElement.focus()))),this.getCurrentTrackingValue()!==e&&(this.currentTrackingPointer===Y.Min?(this.viewLowValue=e,this.applyViewChange()):this.currentTrackingPointer===Y.Max&&(this.viewHighValue=e,this.applyViewChange()),this.updateHandles(this.currentTrackingPointer,this.valueToPosition(e)),this.updateAriaAttributes())}applyMinMaxLimit(e){return!x.isNullOrUndefined(this.viewOptions.minLimit)&&e<this.viewOptions.minLimit?this.viewOptions.minLimit:!x.isNullOrUndefined(this.viewOptions.maxLimit)&&e>this.viewOptions.maxLimit?this.viewOptions.maxLimit:e}applyMinMaxRange(e){let i=this.currentTrackingPointer===Y.Min?this.viewHighValue:this.viewLowValue,r=Math.abs(e-i);if(!x.isNullOrUndefined(this.viewOptions.minRange)&&r<this.viewOptions.minRange){if(this.currentTrackingPointer===Y.Min)return ht.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.minRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===Y.Max)return ht.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.minRange,this.viewOptions.precisionLimit)}if(!x.isNullOrUndefined(this.viewOptions.maxRange)&&r>this.viewOptions.maxRange){if(this.currentTrackingPointer===Y.Min)return ht.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===Y.Max)return ht.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return e}applyPushRange(e){let i=this.currentTrackingPointer===Y.Min?this.viewHighValue-e:e-this.viewLowValue,r=x.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,o=this.viewOptions.maxRange;return i<r?(this.currentTrackingPointer===Y.Min?(this.viewHighValue=ht.roundToPrecisionLimit(Math.min(e+r,this.viewOptions.ceil),this.viewOptions.precisionLimit),e=ht.roundToPrecisionLimit(this.viewHighValue-r,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(Y.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===Y.Max&&(this.viewLowValue=ht.roundToPrecisionLimit(Math.max(e-r,this.viewOptions.floor),this.viewOptions.precisionLimit),e=ht.roundToPrecisionLimit(this.viewLowValue+r,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(Y.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()):!x.isNullOrUndefined(o)&&i>o&&(this.currentTrackingPointer===Y.Min?(this.viewHighValue=ht.roundToPrecisionLimit(e+o,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(Y.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===Y.Max&&(this.viewLowValue=ht.roundToPrecisionLimit(e-o,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(Y.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),e}getChangeContext(){let e=new jy;return e.pointerType=this.currentTrackingPointer,e.value=+this.value,this.range&&(e.highValue=+this.highValue),e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=(function(){let e=["tooltipTemplate"],i=["leftOuterSelectionBar"],r=["rightOuterSelectionBar"],o=["fullBar"],s=["selectionBar"],a=["minHandle"],l=["maxHandle"],c=["floorLabel"],u=["ceilLabel"],d=["minHandleLabel"],m=["maxHandleLabel"],f=["combinedLabel"],_=["ticksElement"],E=Q=>({"ngx-slider-selected":Q});function D(Q,pe){if(Q&1&&O(0,"ngx-slider-tooltip-wrapper",28),Q&2){let N=b().$implicit,z=b();H("template",z.tooltipTemplate)("tooltip",N.valueTooltip)("placement",N.valueTooltipPlacement)("content",N.value)}}function M(Q,pe){if(Q&1&&O(0,"span",29),Q&2){let N=b().$implicit;H("innerText",N.legend)}}function T(Q,pe){if(Q&1&&O(0,"span",30),Q&2){let N=b().$implicit;H("innerHTML",N.legend,fi)}}function q(Q,pe){if(Q&1&&(h(0,"span",26),O(1,"ngx-slider-tooltip-wrapper",27),P(2,D,1,4,"ngx-slider-tooltip-wrapper",28),P(3,M,1,1,"span",29),P(4,T,1,1,"span",30),g()),Q&2){let N=pe.$implicit,z=b();H("ngClass",yn(8,E,N.selected))("ngStyle",N.style),y(),H("template",z.tooltipTemplate)("tooltip",N.tooltip)("placement",N.tooltipPlacement),y(),F(N.value!==null&&N.value!==void 0?2:-1),y(),F(N.legend!==null&&N.legend!==void 0&&z.allowUnsafeHtmlInSlider===!1?3:-1),y(),F(N.legend!==null&&N.legend!==void 0&&(z.allowUnsafeHtmlInSlider===null||z.allowUnsafeHtmlInSlider===void 0||z.allowUnsafeHtmlInSlider)?4:-1)}}return fe({type:t,selectors:[["ngx-slider"]],contentQueries:function(pe,N,z){if(pe&1&&Wa(z,e,5),pe&2){let le;ft(le=pt())&&(N.tooltipTemplate=le.first)}},viewQuery:function(pe,N){if(pe&1&&hi(i,5,xr)(r,5,xr)(o,5,xr)(s,5,xr)(a,5,Vy)(l,5,Vy)(c,5,Ls)(u,5,Ls)(d,5,Ls)(m,5,Ls)(f,5,Ls)(_,5,xr),pe&2){let z;ft(z=pt())&&(N.leftOuterSelectionBarElement=z.first),ft(z=pt())&&(N.rightOuterSelectionBarElement=z.first),ft(z=pt())&&(N.fullBarElement=z.first),ft(z=pt())&&(N.selectionBarElement=z.first),ft(z=pt())&&(N.minHandleElement=z.first),ft(z=pt())&&(N.maxHandleElement=z.first),ft(z=pt())&&(N.floorLabelElement=z.first),ft(z=pt())&&(N.ceilLabelElement=z.first),ft(z=pt())&&(N.minHandleLabelElement=z.first),ft(z=pt())&&(N.maxHandleLabelElement=z.first),ft(z=pt())&&(N.combinedLabelElement=z.first),ft(z=pt())&&(N.ticksElement=z.first)}},hostVars:10,hostBindings:function(pe,N){pe&1&&X("resize",function(le){return N.onResize(le)},_m),pe&2&&(De("disabled",N.sliderElementDisabledAttr)("aria-label",N.sliderElementAriaLabel),tt("ngx-slider",N.sliderElementNgxSliderClass)("vertical",N.sliderElementVerticalClass)("animate",N.sliderElementAnimateClass)("with-legend",N.sliderElementWithLegendClass))},inputs:{value:"value",highValue:"highValue",options:"options",manualRefresh:"manualRefresh",triggerFocus:"triggerFocus",cancelUserChange:"cancelUserChange"},outputs:{valueChange:"valueChange",highValueChange:"highValueChange",userChangeStart:"userChangeStart",userChange:"userChange",userChangeEnd:"userChangeEnd"},standalone:!1,features:[qi([CP]),Jt],decls:30,vars:12,consts:[["leftOuterSelectionBar",""],["rightOuterSelectionBar",""],["fullBar",""],["selectionBar",""],["minHandle",""],["maxHandle",""],["floorLabel",""],["ceilLabel",""],["minHandleLabel",""],["maxHandleLabel",""],["combinedLabel",""],["t
84icksElement",""],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-left-out-selection"],[1,"ngx-slider-span","ngx-slider-bar"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-right-out-selection"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-full-bar"],["ngxSliderElement","",1,"ngx-slider-span","ngx-slider-bar-wrapper","ngx-slider-selection-bar"],[1,"ngx-slider-span","ngx-slider-bar","ngx-slider-selection",3,"ngStyle"],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-min",3,"ngStyle"],["ngxSliderHandle","",1,"ngx-slider-span","ngx-slider-pointer","ngx-slider-pointer-max",3,"ngStyle"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-floor"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-limit","ngx-slider-ceil"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-value"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-model-high"],["ngxSliderLabel","",1,"ngx-slider-span","ngx-slider-bubble","ngx-slider-combined"],["ngxSliderElement","",1,"ngx-slider-ticks",3,"hidden"],[1,"ngx-slider-tick",3,"ngClass","ngStyle"],[3,"template","tooltip","placement"],[1,"ngx-slider-span","ngx-slider-tick-value",3,"template","tooltip","placement","content"],[1,"ngx-slider-span","ngx-slider-tick-legend",3,"innerText"],[1,"ngx-slider-span","ngx-slider-tick-legend",3,"innerHTML"]],template:function(pe,N){pe&1&&(h(0,"span",12,0),O(2,"span",13),g(),h(3,"span",14,1),O(5,"span",13),g(),h(6,"span",15,2),O(8,"span",13),g(),h(9,"span",16,3),O(11,"span",17),g(),O(12,"span",18,4)(14,"span",19,5)(16,"span",20,6)(18,"span",21,7)(20,"span",22,8)(22,"span",23,9)(24,"span",24,10),h(26,"span",25,11),Ce(28,q,5,10,"span",26,it),g()),pe&2&&(y(6),tt("ngx-slider-transparent",N.fullBarTransparentClass),y(3),tt("ngx-slider-draggable",N.selectionBarDraggableClass),y(2),H("ngStyle",N.barStyle),y(),H("ngStyle",N.minPointerStyle),y(2),et("display",N.range?"inherit":"none"),H("ngStyle",N.maxPointerStyle),y(12),tt("ngx-slider-ticks-values-under",N.ticksUnderValuesClass),H("hidden",!N.showTicks),y(2),we(N.ticks))},dependencies:[ag,Wi,xr,Vy,Ls,EP],styles:['.ngx-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;user-select:none;touch-action:pan-y}  .ngx-slider.with-legend{margin-bottom:40px}  .ngx-slider[disabled]{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-pointer{cursor:not-allowed;background-color:#d8e0f3}  .ngx-slider[disabled] .ngx-slider-draggable{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-selection{background:#8b91a2}  .ngx-slider[disabled] .ngx-slider-tick{cursor:not-allowed}  .ngx-slider[disabled] .ngx-slider-tick.ngx-slider-selected{background:#8b91a2}  .ngx-slider .ngx-slider-span{white-space:nowrap;position:absolute;display:inline-block}  .ngx-slider .ngx-slider-base{width:100%;height:100%;padding:0}  .ngx-slider .ngx-slider-bar-wrapper{left:0;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1}  .ngx-slider .ngx-slider-draggable{cursor:move}  .ngx-slider .ngx-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-transparent .ngx-slider-bar{background:transparent}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-left-out-selection .ngx-slider-bar{background:#df002d}  .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-right-out-selection .ngx-slider-bar{background:#03a688}  .ngx-slider .ngx-slider-selection{z-index:2;background:#0db9f0;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}  .ngx-slider .ngx-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px}  .ngx-slider .ngx-slider-pointer:after{content:"";width:8px;height:8px;position:absolute;top:12px;left:12px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background:#fff}  .ngx-slider .ngx-slider-pointer:hover:after{background-color:#fff}  .ngx-slider .ngx-slider-pointer.ngx-slider-active{z-index:4}
84  .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{background-color:#451aff}  .ngx-slider .ngx-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px}  .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:#55637d}  .ngx-slider .ngx-slider-ticks{box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none}  .ngx-slider .ngx-slider-ticks-values-under .ngx-slider-tick-value{top:auto;bottom:-36px}  .ngx-slider .ngx-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px}  .ngx-slider .ngx-slider-tick.ngx-slider-selected{background:#0db9f0}  .ngx-slider .ngx-slider-tick-value{position:absolute;top:-34px;transform:translate(-50%)}  .ngx-slider .ngx-slider-tick-legend{position:absolute;top:24px;transform:translate(-50%);max-width:50px;white-space:normal}  .ngx-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;touch-action:pan-x}  .ngx-slider.vertical .ngx-slider-base{width:100%;height:100%;padding:0}  .ngx-slider.vertical .ngx-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px}  .ngx-slider.vertical .ngx-slider-bar{bottom:0;left:auto;width:4px;height:100%}  .ngx-slider.vertical .ngx-slider-pointer{left:-14px!important;top:auto;bottom:0}  .ngx-slider.vertical .ngx-slider-bubble{left:16px!important;bottom:0}  .ngx-slider.vertical .ngx-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1}  .ngx-slider.vertical .ngx-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px}  .ngx-slider.vertical .ngx-slider-tick-value{left:24px;top:auto;transform:translateY(-28%)}  .ngx-slider.vertical .ngx-slider-tick-legend{top:auto;right:24px;transform:translateY(-28%);max-width:none;white-space:nowrap}  .ngx-slider.vertical .ngx-slider-ticks-values-under .ngx-slider-tick-value{bottom:auto;left:auto;right:24px}  .ngx-slider *{transition:none}  .ngx-slider.animate .ngx-slider-bar-wrapper{transition:all linear .3s}  .ngx-slider.animate .ngx-slider-selection{transition:background-color linear .3s}  .ngx-slider.animate .ngx-slider-pointer{transition:all linear .3s}  .ngx-slider.animate .ngx-slider-pointer:after{transition:all linear .3s}  .ngx-slider.animate .ngx-slider-bubble{transition:all linear .3s}  .ngx-slider.animate .ngx-slider-bubble.ngx-slider-limit{transition:opacity linear .3s}  .ngx-slider.animate .ngx-slider-bubble.ngx-slider-combined{transition:opacity linear .3s}  .ngx-slider.animate .ngx-slider-tick{transition:background-color linear .3s}'],changeDetection:1})})()}return t})(),ff=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Vt({type:t});static \u0275inj=Nt({imports:[Xa]})}return t})();var Se=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Se||{}),Qn="*";function JD(t,n=null){return{type:Se.Sequence,steps:t,options:n}}function Hy(t){return{type:Se.Style,styles:t,offset:null}}var Xi=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>
vendor: 60,330 bytes, line 84
84i()),e.length=0}},Vs=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Rl="!";function eS(t){return new S(3e3,!1)}function DP(){return new S(3100,!1)}function SP(){return new S(3101,!1)}function xP(t){return new S(3001,!1)}function TP(t){return new S(3003,!1)}function IP(t){return new S(3004,!1)}function nS(t,n){return new S(3005,!1)}function iS(){return new S(3006,!1)}function rS(){return new S(3007,!1)}function oS(t,n){return new S(3008,!1)}function sS(t){return new S(3002,!1)}function aS(t,n,e,i,r){return new S(3010,!1)}function lS(){return new S(3011,!1)}function cS(){return new S(3012,!1)}function uS(){return new S(3200,!1)}function dS(){return new S(3202,!1)}function fS(){return new S(3013,!1)}function pS(t){return new S(3014,!1)}function hS(t){return new S(3015,!1)}function mS(t){return new S(3016,!1)}function gS(t,n){return new S(3404,!1)}function MP(t){return new S(3502,!1)}function yS(t){return new S(3503,!1)}function vS(){return new S(3300,!1)}function _S(t){return new S(3504,!1)}function bS(t){return new S(3301,!1)}function ES(t,n){return new S(3302,!1)}function CS(t){return new S(3303,!1)}function wS(t,n){return new S(3400,!1)}function DS(t){return new S(3401,!1)}function SS(t){return new S(3402,!1)}function xS(t,n){return new S(3505,!1)}function Ji(t){switch(t.length){case 0:return new Xi;case 1:return t[0];default:return new Vs(t)}}function qy(t,n,e=new Map,i=new Map){let r=[],o=[],s=-1,a=null;if(n.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((m,f)=>{let _=f,E=m;if(f!=="offset")switch(_=t.normalizePropertyName(_,r),E){case Rl:E=e.get(f);break;case Qn:E=i.get(f);break;default:E=t.normalizeStyleValue(f,_,E,r);break}d.set(_,E)}),u||o.push(d),a=d,s=c}),r.length)throw MP(r);return o}function pf(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&$y(e,"start",t)));break;case"done":t.onDone(()=>i(e&&$y(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&$y(e,"destroy",t)));break}}function $y(t,n,e){let i=e.totalTime,r=!!e.disabled,o=hf(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function hf(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function on(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function Wy(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}var kP=typeof document>"u"?null:document.documentElement;function mf(t){let n=t.parentNode||t.host||null;return n===kP?null:n}function AP(t){return t.substring(1,6)=="ebkit"}var wo=null,tS=!1;function TS(t){wo||(wo=NP()||{},tS=wo.style?"WebkitAppearance"in wo.style:!1);let n=!0;return wo.style&&!AP(t)&&(n=t in wo.style,!n&&tS&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in wo.style)),n}function NP(){return typeof document<"u"?document.body:null}function Ky(t,n){for(;n;){if(n===t)return!0;n=mf(n)}return!1}function Yy(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}var RP=1e3,Qy="{{",OP="}}",Zy="ng-enter",gf="ng-leave",Ol="ng-trigger",Ll=".ng-trigger",Xy="ng-animating",yf=".ng-animating";function wi(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:zy(parseFloat(n[1]),n[2])}function zy(t,n){return n==="s"?t*RP:t}function Pl(t,n,e){return typeof t=="object"&&t!==null&&Object.hasOwn(t,"duration")?t:PP(t,n,e)}var LP=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function PP(t,n,e){let i,r=0,o="";if(typeof t=="string"){let s=t.match(LP);if(s===null)return n.push(eS(t)),{duration:0,delay:0,easing:""};i=zy(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(r=zy(parseFloat(a),s[4]));let l=s[5];l&&(o=l)}else i=t;if(!e){let s=!1,a=n.length;i<0&&(n.push(DP()),s=!0),r<0&&(n.push(SP()),s=!0),s&&n.splice(a,0,eS(t))}return{duration:i,delay:r,easing:o}}function IS(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function Zn(t,n,e){n.forEach((i,r)=>{let o=vf(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Tr(t,n){n.forEach((e,i)=>{let r=vf(i);t.style[r]=""})}function js(t){return Array.isArray(t)?t.length==1?t[0]:JD(t):t}function MS(t,n,e){let i=n.params||{},r=Jy(t);r.length&&r.forEach(o=>{Object.hasOwn(i,o)||e.push(xP(o))})}var Gy=new RegExp(`${Qy}\\s*(.+?)\\s*${OP}`,"g");function Jy(t){let n=[];if(typeof t=="string"){let e;for(;e=Gy.exec(t);)n.push(e[1]);Gy.lastIndex=0}return n}function Us(t,n,e){let i=`${t}`,r=i.replace(Gy,(o,s)=>{let a=n[s];return a==null&&(e.push(TP(s)),a=""),a.toString()});return r==i?t:r}var FP=/-+([a-z0-9])/g;function vf(t){return t.replace(FP,(...n)=>n[1].toUpperCase())}function kS(t,n){return t===0||n===0}function AS(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<n.length;o++){let s=n[o];r.forEach(a=>s.set(a,_f(t,a)))}}return n}function sn(t,n,e){switch(n.type){case Se.Trigger:return t.visitTrigger(n,e);case Se.State:return t.visitState(n,e);case Se.Transition:return t.visitTransition(n,e);case Se.Sequence:return t.visitSequence(n,e);case Se.Group:return t.visitGroup(n,e);case Se.Animate:return t.visitAnimate(n,e);case Se.Keyframes:return t.visitKeyframes(n,e);case Se.Style:return t.visitStyle(n,e);case Se.Reference:return t.visitReference(n,e);case Se.AnimateChild:return t.visitAnimateChild(n,e);case Se.AnimateRef:return t.visitAnimateRef(n,e);case Se.Query:return t.visitQuery(n,e);case Se.Stagger:return t.visitStagger(n,e);default:throw IP(n.type)}}function _f(t,n){return window.getComputedStyle(t)[n]}var gv=(()=>{class t{validateStyleProperty(e){return TS(e)}containsElement(e,i){return Ky(e,i)}getParentElement(e){return mf(e)}query(e,i,r){return Yy(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Xi(r,o)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),So=class{static NOOP=new gv},xo=class{};var VP=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Df=class extends xo{normalizePropertyName(n,e){return vf(n)}normalizeStyleValue(n,e,i,r){let o="",s=i.toString().trim();if(VP.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(nS(n,i))}return s+o}};var Sf="*";function jP(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>UP(i,e,n)):e.push(t),e}function UP(t,n,e){if(t[0]==":"){let l=BP(t,e);if(typeof l=="function"){n.push(l);return}t=l}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(hS(t)),n;let r=i[1],o=i[2],s=i[3];n.push(NS(r,s));let a=r==Sf&&s==Sf;o[0]=="<"&&!a&&n.push(NS(s,r))}function BP(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(mS(t)),"* => *"}}var bf=new Set(["true","1"]),Ef=new Set(["false","0"]);function NS(t,n){let e=bf.has(t)||Ef.has(t),i=bf.has(n)||Ef.has(n);return(r,o)=>{let s=t==Sf||t==r,a=n==Sf||n==o;return!s&&e&&typeof r=="boolean"&&(s=r?bf.has(t):Ef.has(t)),!a&&i&&typeof o=="boolean"&&(a=o?bf.has(n):Ef.has(n)),s&&a}}var HS=":self",HP=new RegExp(`s*${HS}s*,?`,"g");function $S(t,n,e,i){return new ov(t).build(n,e,i)}var RS="",ov=class{_driver;constructor(n){this._driver=n}build(n,e,i){let r=new sv(e);return this._resetContextStyleTimingState(r),sn(this,js(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector=RS,n.collectedStyles=new Map,n.collectedStyles.set(RS,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,o=[],s=[];return n.name.charAt(0)=="@"&&e.errors.push(iS()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Se.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(a.type==Se.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(rS())}),{type:Se.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Jy(l).forEach(c=>{Object.hasOwn(s,c)||o.add(c)})})}),o.size&&e.errors.push(oS(n.name,[...o.values()]))}return{type:Se.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=sn(this,js(n.animation),e),r=jP(n.expr,e.errors);return{type:Se.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Do(n.options)}}visitSequence(n,e){return{type:Se.Sequence,steps:n.steps.map(i=>sn(this,i,e)),options:Do(n.options)}}visitGroup(n,e){let i=e.currentTime,r=0,o=n.steps.map(s=>{e.currentTime=i;let a=sn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:Se.Group,steps:o,options:Do(n.options)}}visitAnimate(n,e){let i=qP(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Hy({});if(o.type==Se.Keyframes)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;let c={};i.easing&&(c.easing=i.easing),s=Hy(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:Se.Animate,timings:i,style:r,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)typeof a=="string"?a===Qn?i.push(a):e.errors.push(sS(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(Qy)>=0){o=!0;break}}}),{type:Se.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(aS(l,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&MS(a,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:Se.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(lS()),i;let r=1,o=0,s=[],a=!1,l=!1,c=0,u=n.steps.map(M=>{let T=this._makeStyleAst(M,e),q=T.offset!=null?T.offset:GP(T.styles),Q=0;return q!=null&&(o++,Q=T.offset=q),l=l||Q<0||Q>1,a=a||Q<c,c=Q,s.push(Q),T});l&&e.errors.push(cS()),a&&e.errors.push(uS());let d=n.steps.length,m=0;o>0&&o<d?e.errors.push(dS()):o==0&&(m=r/(d-1));let f=d-1,_=e.currentTime,E=e.currentAnimateTimings,D=E.duration;return u.forEach((M,T)=>{let q=m>0?T==f?1:m*T:s[T],Q=q*D;e.currentTime=_+E.delay+Q,E.duration=Q,this._validateStyleAst(M,e),M.offset=q,i.styles.push(M)}),i}visitReference(n,e){return{type:Se.Reference,animation:sn(this,js(n.animation),e),options:Do(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Se.AnimateChild,options:Do(n.options)}}visitAnimateRef(n,e){return{type:Se.AnimateRef,animation:this.visitReference(n.animation,e),options:Do(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[o,s]=$P(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,on(e.collectedStyles,e.currentQuerySelector,new Map);let a=sn(this,js(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Se.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Do(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(fS());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:Pl(n.timings,e.errors,!0);return{type:Se.Stagger,animation:sn(this,js(n.animation),e),timings:i,options:null}}};function $P(t){let n=!!t.split(/\s*,\s*/).find(e=>e==HS);return n&&(t=t.replace(HP,"")),t=t.replace(/@\*/g,Ll).replace(/@\w+/g,e=>Ll+"-"+e.slice(1)).replace(/:animating/g,yf),[t,n]}function zP(t){return t?C({},t):null}var sv=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}};function GP(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function qP(t,n){if(typeof t=="object"&&t!==null&&Object.hasOwn(t,"duration"))return t;if(typeof t=="number"){let o=Pl(t,n).duration;return ev(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=ev(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=Pl(e,n);return ev(r.duration,r.delay,r.easing)}function Do(t){return t?(t=C({},t),t.params&&(t.params=zP(t.params))):t={},t}function ev(t,n,e){return{duration:t,delay:n,easing:e}}function yv(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var Vl=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},WP=1,KP=":enter",YP=new RegExp(KP,"g"),QP=":leave",ZP=new RegExp(QP,"g");function zS(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return new av().buildKeyframes(t,n,e,i,r,o,s,a,l,c)}var av=class{buildKeyframes(n,e,i,r,o,s,a,l,c,u=[]){c=c||new Vl;let d=new lv(n,e,c,r,o,u,[]);d.options=l;let m=l.delay?wi(l.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([s],null,d.errors,l),sn(this,i,d);let f=d.timelines.filter(_=>_.containsAnimation());if(f.length&&a.size){let _;for(let E=f.length-1;E>=0;E--){let D=f[E];if(D.element===e){_=D;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,d.errors,l)}return f.length?f.map(_=>_.buildKeyframes()):[yv(e,[],[],[],0,m,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let r of n){let o=r?.delay;if(o){let s=typeof o=="number"?o:wi(Us(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime,s=i.duration!=null?wi(i.duration):null,a=i.delay!=null?wi(i.delay):null;return s!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),sn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,r=e,o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==Se.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=xf);let s=wi(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>sn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,o=n.options&&n.options.delay?wi(n.options.delay):0;n.steps.forEach(s=>{let a=e.createSubContext(n.options);o&&a.delayNextStep(o),sn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?Us(i,e.params,e.errors):i;return Pl(r,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=n.style;o.type==Se.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?wi(r.delay):0;o&&(e.previousNode.type===Se.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=xf);let s=i,a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;let d=e.createSubContext(n.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),sn(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe();let m=d.currentTimeline.currentTime;s=Math.max(s,m)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let u=e.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;sn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}},xf={},lv=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=xf;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=l||new Tf(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=wi(i.duration)),i.delay!=null&&(r.delay=wi(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!Object.hasOwn(s,a))&&(s[a]=Us(o[a],s,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=xf,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new cv(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=n.replace(YP,"."+this._enterClassName),n=n.replace(ZP,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,n,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&a.length==0&&s.push(pS(e)),a}},Tf=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=WP,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Qn),this._currentKeyframe.set(e,Qn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},s=XP(n,this._globalTimelineStyles);for(let[a,l]of s){let c=Us(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Qn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===Rl?n.add(d):u===Qn&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});let o=[...n.values()],s=[...e.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return yv(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},cv=class extends Tf{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=i+e,a=e/s,l=new Map(n[0]);l.set("offset",0),o.push(l);let c=new Map(n[0]);c.set("offset",OS(a)),o.push(c);let u=n.length-1;for(let d=1;d<=u;d++){let m=new Map(n[d]),f=m.get("offset"),_=e+f*i;m.set("offset",OS(_/s)),o.push(m)}i=s,e=0,r="",n=o}return yv(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function OS(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function XP(t,n){let e=new Map,i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let o of i)e.set(o,Qn)}else for(let[o,s]of r)e.set(o,s)}),e}function LS(t,n,e,i,r,o,s,a,l,c,u,d,m){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:m}}var tv={},If=class{_triggerName;ast;_stateStyles;constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return JP(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,u){let d=[],m=this.ast.options&&this.ast.options.params||tv,f=a&&a.params||tv,_=this.buildStyles(i,f,d),E=l&&l.params||tv,D=this.buildStyles(r,E,d),M=new Set,T=new Map,q=new Map,Q=r==="void",pe={params:GS(E,m),delay:this.ast.options?.delay},N=u?[]:zS(n,e,this.ast.animation,o,s,_,D,pe,c,d),z=0;return N.forEach(le=>{z=Math.max(le.duration+le.delay,z)}),d.length?LS(e,this._triggerName,i,r,Q,_,D,[],[],T,q,z,d):(N.forEach(le=>{let ce=le.element,an=on(T,ce,new Set);le.preStyleProps.forEach(ie=>an.add(ie));let Si=on(q,ce,new Set);le.postStyleProps.forEach(ie=>Si.add(ie)),ce!==e&&M.add(ce)}),LS(e,this._triggerName,i,r,Q,_,D,N,[...M.values()],T,q,z))}};function JP(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}function GS(t,n){let e=C({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var uv=class{styles;defaultParams;normalizer;constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,r=GS(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Us(s,r,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}};function eF(t,n,e){return new dv(t,n,e)}var dv=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new uv(r.style,o,i))}),PS(this.states,"true","1"),PS(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new If(n,r,this.states))}),this.fallbackTransition=tF(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};function tF(t,n,e){let i=[(s,a)=>!0],r={type:Se.Sequence,steps:[],options:null},o={type:Se.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new If(t,o,n)}function PS(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var nF=new Vl,fv=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i}register(n,e){let i=[],r=[],o=$S(this._driver,e,i,r);if(i.length)throw yS(i);this._animations.set(n,o)}_buildPlayer(n,e,i){let r=n.element,o=qy(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let r=[],o=this._animations.get(n),s,a=new Map;if(o?(s=zS(this._driver,e,o,Zy,gf,new Map,new Map,i,nF,r),s.forEach(u=>{let d=on(a,u.element,new Map);u.postStyleProps.forEach(m=>d.set(m,null))})):(r.push(vS()),s=[]),r.length)throw _S(r);a.forEach((u,d)=>{u.forEach((m,f)=>{u.set(f,this._driver.computeStyle(d,f,Qn))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=Ji(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw bS(n);return e}listen(n,e,i,r){let o=hf(e,"","","");return pf(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(n,e,s);return}let o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break}}},FS="ng-animate-queued",iF=".ng-animate-queued",nv="ng-animate-disabled",rF=".ng-animate-disabled",oF="ng-star-inserted",sF=".ng-star-inserted",aF=[],qS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xn="__ng_removed",jl=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&Object.hasOwn(n,"value"),r=i?n.value:n;if(this.value=uF(r),i){let o=n,{value:s}=o,a=Pf(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},Fl="void",iv=new jl(Fl),pv=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+n,An(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw ES(i,e);if(i==null||i.length==0)throw CS(e);if(!dF(i))throw wS(i,e);let o=on(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);let a=on(this._engine.statesByElement,n,new Map);return a.has(e)||(An(n,Ol),An(n,Ol+"-"+e),a.set(e,iv)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw DS(n);return e}trigger(n,e,i,r=!0){let o=this._getTrigger(e),s=new Ul(this.id,e,n),a=this._engine.statesByElement.get(n);a||(An(n,Ol),An(n,Ol+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e),c=new jl(i,this.id);if(!(i&&Object.hasOwn(i,"value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=iv),!(c.value===Fl)&&l.value===c.value){if(!hF(l.params,c.params)){let E=[],D=o.matchStyles(l.value,l.params,E),M=o.matchStyles(c.value,c.params,E);E.length?this._engine.reportError(E):this._engine.afterFlush(()=>{Tr(n,D),Zn(n,M)})}return}let m=on(this._engine.playersByElement,n,[]);m.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),_=!1;if(!f){if(!r)return;f=o.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:_}),_||(An(n,FS),s.onStart(()=>{Bs(n,FS)})),s.onDone(()=>{let E=this.players.indexOf(s);E>=0&&this.players.splice(E,1);let D=this._engine.playersByElement.get(n);if(D){let M=D.indexOf(s);M>=0&&D.splice(M,1)}}),this.players.push(s),m.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,Ll,!0);i.forEach(r=>{if(r[Xn])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){let o=this._engine.statesByElement.get(n),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(n,c,Fl,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Ji(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set;e.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=i.get(s)||iv,u=new jl(Fl),d=new Ul(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let o=n[Xn];(!o||o===qS)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){An(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let l=hf(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,pf(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},hv=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new pv(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(n,e,i,r){if(Cf(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Cf(e))return;let o=e[Xn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){let s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),An(n,nv)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Bs(n,nv))}removeNode(n,e,i){if(Cf(e)){let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Xn]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Cf(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Ll,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,yf,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ji(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[Xn];if(e&&e.setForRemoval){if(n[Xn]=qS,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(nv)&&this.markElementAsDisabled(n,!1),this.driver.query(n,rF,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];An(r,oF)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ji(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw SS(n)}_flushAnimations(n,e){let i=new Vl,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(w=>{u.add(w);let I=this.driver.query(w,iF,!0);for(let R=0;R<I.length;R++)u.add(I[R])});let d=this.bodyNode,m=Array.from(this.statesByElement.keys()),f=US(m,this.collectedEnterElements),_=new Map,E=0;f.forEach((w,I)=>{let R=Zy+E++;_.set(I,R),w.forEach(te=>An(te,R))});let D=[],M=new Set,T=new Set;for(let w=0;w<this.collectedLeaveElements.length;w++){let I=this.collectedLeaveElements[w],R=I[Xn];R&&R.setForRemoval&&(D.push(I),M.add(I),R.hasAnimation?this.driver.query(I,sF,!0).forEach(te=>M.add(te)):T.add(I))}let q=new Map,Q=US(m,Array.from(M));Q.forEach((w,I)=>{let R=gf+E++;q.set(I,R),w.forEach(te=>An(te,R))}),n.push(()=>{f.forEach((w,I)=>{let R=_.get(I);w.forEach(te=>Bs(te,R))}),Q.forEach((w,I)=>{let R=q.get(I);w.forEach(te=>Bs(te,R))}),D.forEach(w=>{this.processLeaveNode(w)})});let pe=[],N=[];for(let w=this._namespaceList.length-1;w>=0;w--)this._namespaceList[w].drainQueuedTransitions(e).forEach(R=>{let te=R.player,be=R.element;if(pe.push(te),this.collectedEnterElements.length){let at=be[Xn];if(at&&at.setForMove){if(at.previousTriggersValues&&at.previousTriggersValues.has(R.triggerName)){let mt=at.previousTriggersValues.get(R.triggerName),_t=this.statesByElement.get(R.element);if(_t&&_t.has(R.triggerName)){let ei=_t.get(R.triggerName);ei.value=mt,_t.set(R.triggerName,ei)}}te.destroy();return}}let qe=!d||!this.driver.containsElement(d,be),$e=q.get(be),vt=_.get(be),ze=this._buildInstruction(R,i,vt,$e,qe);if(ze.errors&&ze.errors.length){N.push(ze);return}if(qe){te.onStart(()=>Tr(be,ze.fromStyles)),te.onDestroy(()=>Zn(be,ze.toStyles)),r.push(te);return}if(R.isFallbackTransition){te.onStart(()=>Tr(be,ze.fromStyles)),te.onDestroy(()=>Zn(be,ze.toStyles)),r.push(te);return}let Jn=[];ze.timelines.forEach(at=>{at.stretchStartingKeyframe=!0,this.disabledNodes.has(at.element)||Jn.push(at)}),ze.timelines=Jn,i.append(be,ze.timelines);let Ir={instruction:ze,player:te,element:be};s.push(Ir),ze.queriedElements.forEach(at=>on(a,at,[]).push(te)),ze.preStyleProps.forEach((at,mt)=>{if(at.size){let _t=l.get(mt);_t||l.set(mt,_t=new Set),at.forEach((ei,er)=>_t.add(er))}}),ze.postStyleProps.forEach((at,mt)=>{let _t=c.get(mt);_t||c.set(mt,_t=new Set),at.forEach((ei,er)=>_t.add(er))})});if(N.length){let w=[];N.forEach(I=>{w.push(xS(I.triggerName,I.errors))}),pe.forEach(I=>I.destroy()),this.reportError(w)}let z=new Map,le=new Map;s.forEach(w=>{let I=w.element;i.has(I)&&(le.set(I,I),this._beforeAnimationBuild(w.player.namespaceId,w.instruction,z))}),r.forEach(w=>{let I=w.element;this._getPreviousPlayers(I,!1,w.namespaceId,w.triggerName,null).forEach(te=>{on(z,I,[]).push(te),te.destroy()})});let ce=D.filter(w=>BS(w,l,c)),an=new Map;jS(an,this.driver,T,c,Qn).forEach(w=>{BS(w,l,c)&&ce.push(w)});let ie=new Map;f.forEach((w,I)=>{jS(ie,this.driver,new Set(w),l,Rl)}),ce.forEach(w=>{let I=an.get(w),R=ie.get(w);an.set(w,new Map([...I?.entries()??[],...R?.entries()??[]]))});let W=[],G=[],re={};s.forEach(w=>{let{element:I,player:R,instruction:te}=w;if(i.has(I)){if(u.has(I)){R.onDestroy(()=>Zn(I,te.toStyles)),R.disabled=!0,R.overrideTotalTime(te.totalTime),r.push(R);return}let be=re;if(le.size>1){let $e=I,vt=[];for(;$e=$e.parentNode;){let ze=le.get($e);if(ze){be=ze;break}vt.push($e)}vt.forEach(ze=>le.set(ze,be))}let qe=this._buildAnimation(R.namespaceId,te,z,o,ie,an);if(R.setRealPlayer(qe),be===re)W.push(R);else{let $e=this.playersByElement.get(be);$e&&$e.length&&(R.parentPlayer=Ji($e)),r.push(R)}}else Tr(I,te.fromStyles),R.onDestroy(()=>Zn(I,te.toStyles)),G.push(R),u.has(I)&&r.push(R)}),G.forEach(w=>{let I=o.get(w.element);if(I&&I.length){let R=Ji(I);w.setRealPlayer(R)}}),r.forEach(w=>{w.parentPlayer?w.syncPlayerEvents(w.parentPlayer):w.destroy()});for(let w=0;w<D.length;w++){let I=D[w],R=I[Xn];if(Bs(I,gf),R&&R.hasAnimation)continue;let te=[];if(a.size){let qe=a.get(I);qe&&qe.length&&te.push(...qe);let $e=this.driver.query(I,yf,!0);for(let vt=0;vt<$e.length;vt++){let ze=a.get($e[vt]);ze&&ze.length&&te.push(...ze)}}let be=te.filter(qe=>!qe.destroyed);be.length?fF(this,I,be):this.processLeaveNode(I)}return D.length=0,W.forEach(w=>{this.players.push(w),w.onDone(()=>{w.destroy();let I=this.players.indexOf(w);this.players.splice(I,1)}),w.play()}),W}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){let a=this.playersByQueriedElement.get(n);a&&(s=a)}else{let a=this.playersByElement.get(n);if(a){let l=!o||o==Fl;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){let r=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,u=c!==o,d=on(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{let _=f.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),f.destroy(),d.push(f)})}Tr(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){let a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,m=e.timelines.map(_=>{let E=_.element;u.add(E);let D=E[Xn];if(D&&D.removedBeforeQueried)return new Xi(_.duration,_.delay);let M=E!==l,T=pF((i.get(E)||aF).map(z=>z.getRealPlayer())).filter(z=>{let le=z;return le.element?le.element===E:!1}),q=o.get(E),Q=s.get(E),pe=qy(this._normalizer,_.keyframes,q,Q),N=this._buildPlayer(_,pe,T);if(_.subTimeline&&r&&d.add(E),M){let z=new Ul(n,a,E);z.setRealPlayer(N),c.push(z)}return N});c.forEach(_=>{on(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>cF(this.playersByQueriedElement,_.element,_))}),u.forEach(_=>An(_,Xy));let f=Ji(m);return f.onDestroy(()=>{u.forEach(_=>Bs(_,Xy)),Zn(l,e.toStyles)}),d.forEach(_=>{on(r,_,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Xi(n.duration,n.delay)}},Ul=class{namespaceId;triggerName;element;_player=new Xi;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>pf(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){on(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function cF(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&t.delete(n)}return i}function uF(t){return t??null}function Cf(t){return t&&t.nodeType===1}function dF(t){return t=="start"||t=="done"}function VS(t,n){let e=t.style.display;return t.style.display=n??"none",e}function jS(t,n,e,i,r){let o=[];e.forEach(l=>o.push(VS(l)));let s=[];i.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let m=n.computeStyle(c,d,r);u.set(d,m),(!m||m.length==0)&&(c[Xn]=lF,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>VS(l,o[a++])),s}function US(t,n){let e=new Map;if(t.forEach(a=>e.set(a,[])),n.length==0)return e;let i=1,r=new Set(n),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:r.has(c)?l=i:l=s(c),o.set(a,l),l}return n.forEach(a=>{let l=s(a);l!==i&&e.get(l).push(a)}),e}function An(t,n){t.classList?.add(n)}function Bs(t,n){t.classList?.remove(n)}function fF(t,n,e){Ji(e).onDone(()=>t.processLeaveNode(n))}function pF(t){let n=[];return WS(t,n),n}function WS(t,n){for(let e=0;e<t.length;e++){let i=t[e];i instanceof Vs?WS(i.players,n):n.push(i)}}function hF(t,n){let e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!Object.hasOwn(n,o)||t[o]!==n[o])return!1}return!0}function BS(t,n,e){let i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(o=>r.add(o)):n.set(t,i),e.delete(t),!0}var Hs=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,e)=>{};constructor(n,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new hv(n.body,e,i),this._timelineEngine=new fv(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){let s=n+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],u=$S(this._driver,o,l,c);if(l.length)throw gS(r,l);a=eF(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if(i.charAt(0)=="@"){let[o,s]=Wy(i),a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if(i.charAt(0)=="@"){let[s,a]=Wy(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function mF(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=rv(n[0]),n.length>1&&(i=rv(n[n.length-1]))):n instanceof Map&&(e=rv(n)),e||i?new gF(t,e,i):null}var gF=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Zn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Zn(this._element,this._initialStyles),this._endStyles&&(Zn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Tr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tr(this._element,this._endStyles),this._endStyles=null),Zn(this._element,this._initialStyles),this._state=3)}}return t})();function rv(t){let n=null;return t.forEach((e,i)=>{yF(i)&&(n=n||new Map,n.set(i,e))}),n}function yF(t){return t==="display"||t==="position"}var Mf=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let n=this.keyframes,e=this._triggerWebAnimation(this.element,n,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=n.length?n[n.length-1]:new Map;let i=()=>this._onFinish();return e.addEventListener("finish",i),this.onDestroy(()=>{e.removeEventListener("finish",i)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){let r=this._convertKeyframesToObject(e);try{return n.animate(r,i)}catch(o){return null}}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){let n=this._buildPlayer();n&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),n.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=n*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:_f(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},kf=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return Ky(n,e)}getParentElement(n){return mf(n)}query(n,e,i){return Yy(n,e,i)}computeStyle(n,e,i){return _f(n,e)}animate(n,e,i,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(f=>f instanceof Mf);kS(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((_,E)=>c.set(E,_))});let d=IS(e).map(f=>new Map(f));d=AS(n,d,c);let m=mF(n,d);return new Mf(n,d,l,m)}};var wf="@",KS="@.disabled",Af=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i,r){if(r){this.delegate.removeChild(n,e,i,r);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==wf&&e==KS?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i,r){return this.delegate.listen(n,e,i,r)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},mv=class extends Af{factory;constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==wf?e.charAt(1)=="."&&e==KS?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i,r){if(e.charAt(0)==wf){let o=vF(n),s=e.slice(1),a="";return s.charAt(0)!=wf&&([s,a]=_F(s)),this.engine.listen(this.namespaceId,o,s,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l)})}return this.delegate.listen(n,e,i,r)}};function vF(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function _F(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var Nf=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,e){let r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new Af("",r,this.engine,d),c.set(r,u)}return u}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);let a=c=>
84{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return e.data.animation.forEach(a),new mv(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId){this._zone.run(()=>e(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n)}};var EF=(()=>{class t extends Hs{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(K(Ee),K(So),K(xo))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();function CF(){return new Df}function wF(){return new Nf(v(il),v(Hs),v(Ve))}var YS=[{provide:xo,useFactory:CF},{provide:Hs,useClass:EF},{provide:$i,useFactory:wF}],uJ=[{provide:So,useClass:gv},{provide:eu,useValue:"NoopAnimations"},...YS],DF=[{provide:So,useFactory:()=>new kf},{provide:eu,useFactory:()=>"BrowserAnimations"},...YS];function QS(){return In("NgEagerAnimations"),[...DF]}var $s=(()=>{class t{constructor(){this.document=v(Ee),this.registered=new Set,this.groups=new Map;let e=i=>{i.target instanceof HTMLMediaElement&&this.claim(i.target)};this.document.addEventListener("play",e,!0),v(je).onDestroy(()=>this.document.removeEventListener("play",e,!0))}register(e,i){i&&this.groups.set(e,i),this.registered.add(e);let r=()=>this.claim(e);return e.addEventListener("play",r),()=>{e.removeEventListener("play",r),this.registered.delete(e),this.groups.delete(e)}}claim(e){let i=new Set([...this.registered,...this.document.querySelectorAll("audio, video")]),r=this.groups.get(e),o=new Set;i.forEach(s=>{let a=this.groups.get(s);s===e||a&&a.key===r?.key||(a&&!o.has(a.key)&&(o.add(a.key),a.stop()),s.pause(),s.readyState>0&&s.currentTime!==0&&(s.currentTime=0))})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var vv=(()=>{class t{constructor(){this.enabled=B(!1),this.focus=v($s),this.tracks=[],this.queue=[],this.overlapStartedAt=0,this.loading=!1,this.generation=0,this.volume=1,this.unregister=[],this.report=()=>{},this.fail=()=>{},this.stopped=()=>{},v(je).onDestroy(()=>this.stop())}start(e,i,r,o,s){return ne(this,null,function*(){if(this.stop(),!e.length)return;this.tracks=e,this.volume=i,this.report=r,this.fail=o,this.stopped=s,this.enabled.set(!0),this.current=this.create(),this.upcoming=this.create(),this.currentTrack=this.pick(),this.current.src=this.currentTrack.url,this.current.volume=i;let a=this.generation;try{if(yield this.current.play(),a!==this.generation)return;this.prepare(),this.timer=setInterval(()=>this.tick(),50),this.tick()}catch(l){a===this.generation&&(this.stop(),this.fail())}})}create(){let e=new Audio;return e.preload="auto",this.unregister.push(this.focus.register(e,{key:this,stop:()=>this.stop()})),e}pick(){if(!this.queue.length){this.queue=[...this.tracks];for(let e=this.queue.length-1;e>0;e--){let i=Math.floor(Math.random()*(e+1));[this.queue[e],this.queue[i]]=[this.queue[i],this.queue[e]]}if(this.queue.length>1&&this.queue[0].id===this.currentTrack?.id){let e=1+Math.floor(Math.random()*(this.queue.length-1));[this.queue[0],this.queue[e]]=[this.queue[e],this.queue[0]]}}return this.queue.shift()}skip(){return ne(this,null,function*(){if(!this.enabled()||!this.current||!this.upcoming||!this.nextTrack||this.loading)return;this.loading=!0,this.overlapStartedAt=0,this.current.pause();let e=this.generation;try{if(yield this.upcoming.play(),e!==this.generation)return;this.loading=!1,this.completeOverlap()}catch(i){e===this.generation&&(this.stop(),this.fail())}})}prepare(){this.upcoming&&(this.nextTrack=this.pick(),this.upcoming.src=this.nextTrack.url,this.upcoming.volume=this.volume,this.upcoming.load())}tick(){let e=this.current;if(!(!this.enabled()||!e||!this.currentTrack)){if(this.report(this.currentTrack,e),e.error||this.upcoming?.error){this.stop(),this.fail();return}this.overlapStartedAt&&this.upcoming?e.ended&&this.completeOverlap():!this.loading&&Number.isFinite(e.duration)&&(e.duration-e.currentTime<=2&&(this.upcoming?.readyState??0)>=3?this.beginOverlap():e.ended&&this.upcoming&&this.beginOverlap())}}beginOverlap(){return ne(this,null,function*(){if(!this.upcoming||this.loading)return;this.loading=!0;let e=this.generation;try{if(yield this.upcoming.play(),e!==this.generation)return;this.overlapStartedAt=performance.now(),this.loading=!1}catch(i){e===this.generation&&(this.stop(),this.fail())}})}completeOverlap(){let e=this.current;e.pause(),e.currentTime=0,this.current=this.upcoming,this.currentTrack=this.nextTrack,this.upcoming=e,this.overlapStartedAt=0,this.current.volume=this.volume,this.prepare(),this.report(this.currentTrack,this.current)}setVolume(e){this.volume=e,this.current&&(this.current.volume=e),this.upcoming&&(this.upcoming.volume=e)}seek(e){this.current&&((this.overlapStartedAt||this.loading)&&(this.generation++,this.upcoming?.pause(),this.upcoming&&(this.upcoming.currentTime=0),this.overlapStartedAt=0,this.loading=!1,this.current.volume=this.volume),this.current.currentTime=Math.max(0,Math.min(this.current.duration||0,e)))}stop(){this.generation++,this.enabled.set(!1),this.stopped(),this.timer&&clearInterval(this.timer),this.timer=void 0;for(let e of[this.current,this.upcoming])e&&(e.pause(),e.removeAttribute("src"),e.load());
84this.unregister.splice(0).forEach(e=>e()),this.queue=[],this.currentTrack=void 0,this.nextTrack=void 0,this.current=void 0,this.upcoming=void 0,this.overlapStartedAt=0,this.loading=!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})();var ZS=(()=>{class t extends Ot{constructor(){super()}getStorySamples(){let e=this.API_URL+Pe.STORY_SAMPLES_URL;return this.httpClient.get(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var SF=["clip"],xF=(t,n)=>n.id;function TF(t,n){t&1&&(U(0,"p",4),p(1,"Smagspr\xF8verne kunne ikke hentes. Pr\xF8v igen senere."),$())}function IF(t,n){t&1&&(U(0,"p",5),p(1,"Der er ingen smagspr\xF8ver lige nu."),$())}function MF(t,n){t&1&&(Xe(),rt(0,"path",18))}function kF(t,n){t&1&&(Xe(),rt(0,"path",19))}function AF(t,n){t&1&&(U(0,"p",4),p(1,"Lydklippet kunne ikke afspilles. Pr\xF8v igen."),$())}function NF(t,n){if(t&1){let e=ke();U(0,"div",7)(1,"audio",8,0),st("playing",function(){let r=V(e).$implicit,o=b();return j(o.active.set(r.id))})("pause",function(){let r=V(e).$implicit,o=b();return j(o.paused(r.id))})("timeupdate",function(){let r=V(e).$implicit,o=Le(2),s=b();return j(s.update(r.id,o))})("loadedmetadata",function(){let r=V(e).$implicit,o=Le(2),s=b();return j(s.update(r.id,o))})("ended",function(){let r=V(e).$implicit,o=Le(2),s=b();return j(s.ended(r.id,o))})("error",function(){let r=V(e).$implicit,o=b();return o.failed.set(r.id),j(o.paused(r.id))}),$(),U(3,"button",9),st("click",function(){let r=V(e).$implicit,o=Le(2),s=b();return j(s.toggle(r.id,o))}),Xe(),U(4,"svg",10)(5,"defs"),rt(6,"path",11),$(),rt(7,"circle",12)(8,"circle",13),U(9,"text",14)(10,"textPath",15),p(11,"LEF \xB7 FANTASY LYDSERIER"),$()()(),Et(),U(12,"span",16),p(13),$(),Xe(),U(14,"svg",17),P(15,MF,1,0,":svg:path",18)(16,kF,1,0,":svg:path",19),$(),Et(),U(17,"span",20),p(18),$()(),P(19,AF,2,0,"p",4),$()}if(t&2){let e=n.$implicit,i=b();y(),Be("src",i.apiUrl+"story_samples/"+e.audio_file),y(2),tt("playing",i.active()===e.id),De("aria-pressed",i.active()===e.id)("aria-label",(i.active()===e.id?"Stop smagspr\xF8ven: ":"Afspil smagspr\xF8ven: ")+e.title),y(3),Be("id","sample-arc-"+e.id),y(2),De("stroke-dasharray",(i.progress()[e.id]||0)+" 100"),y(2),De("href","#sample-arc-"+e.id),y(3),k(e.title),y(2),F(i.active()===e.id?15:16),y(3),gr("",i.active()===e.id?"Stop":"Lyt"," \xB7 ",i.clock(i.times()[e.id])),y(),F(i.failed()===e.id?19:-1)}}var XS=(()=>{class t{constructor(){this.apiUrl=J.apiUrl,this.samples=B([]),this.loadFailed=B(!1),this.loaded=B(!1),this.active=B(null),this.progress=B({}),this.times=B({}),this.failed=B(null),this.focus=v($s),this.storySamplesService=v(ZS),v(je).onDestroy(()=>this.clips?.forEach(e=>e.nativeElement.pause()))}ngOnInit(){this.storySamplesService.getStorySamples().subscribe({next:e=>{this.samples.set(e),this.loaded.set(!0)},error:()=>{this.loadFailed.set(!0),this.loaded.set(!0)}})}toggle(e,i){return ne(this,null,function*(){if(!i.paused){i.pause(),i.currentTime=0,this.update(e,i);return}this.failed.set(null),this.focus.claim(i);try{yield i.play()}catch(r){r.name!=="AbortError"&&this.failed.set(e)}})}update(e,i){this.times.update(r=>Z(C({},r),{[e]:i.currentTime})),this.progress.update(r=>Z(C({},r),{[e]:Number.isFinite(i.duration)&&i.duration>0?Math.min(100,i.currentTime/i.duration*100):0}))}paused(e){this.active()===e&&this.active.set(null)}ended(e,i){this.paused(e),i.currentTime=0,this.update(e,i)}clock(e){let i=Math.floor(e||0);return Math.floor(i/60)+":"+String(i%60).padStart(2,"0")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-story-samples"]],viewQuery:function(i,r){if(i&1&&hi(SF,5),i&2){let o;ft(o=pt())&&(r.clips=o)}},decls:10,vars:1,consts:[["clip",""],["aria-labelledby","samples-title"],[1,"kicker"],["id","samples-title"],["role","alert",1,"sample-error"],[1,"sample-error"],[1,"sample-grid"],[1,"sample-item"],["hidden","","preload","metadata",3,"playing","pause","timeupdate","loadedmetadata","ended","error","src"],["type","button",1,"sample-button",3,"click"],["viewBox","0 0 240 240","aria-hidden","true","focusable","false",1,"sample-ring"],["d","M 34,120 A 86,86 0 0,1 206,120",3,"id"],["cx","120","cy","120","r","115",1,"ring-track"],["cx","120","cy","120","r","115","pathLength","100","transform","rotate(-90 120 120)",1,"ring-progress"],[1,"ring-caption"],["startOffset","50%","text-anchor","middle"],[1,"sample-title"],["width","22","height","22","viewBox","0 0 24 24","fill","currentColor","aria-hidden","true",1,"sample-symbol"],["d","M5 5h14v14H5z"],["d","M7 3v18l15-9z"],[1,"sample-action"]],template:function(i,r){i&1&&(U(0,"section",1)(1,"p",2),p(2,"Et minut i Valhel"),$(),U(3,"h2",3),p(4,"H\xF8r en smagspr\xF8ve"),$(),P(5,TF,2,0,"p",4)(6,IF,2,0,"p",5),U(7,"div",6),Ce(8,NF,20,13,"div",7,xF),$()()),i&2&&(y(5),F(r.loadFailed()?5:r.loaded()&&r.samples().length===0?6:-1),y(3),we(r.samples()))},encapsulation:2})}}return t})();var RF=(t,n)=>n.id;function OF(t,n){if(t&1&&(U(0,"span",6),p(1),$()),t&2){let e=b();y(),k(e.stamp())}}function LF(t,n){if(t&1){let e=ke();U(0,"button",29),st("click",function(){let r=V(e).$implicit;b(2);let o=Le(1),s=b();return j(s.chooseYear(r,o))}),p(1),$()}if(t&2){let e=n.$implicit,i=b(3);tt("active",e===i.activeYear()),De("aria-pressed",e===i.activeYear()),y(),k(e)}}function PF(t,n){if(t&1&&(U(0,"a",27),p(1,"Lyt i din podcast-app"),$()),t&2){let e=b(3);Be("href",e.podcastAppUrl(),ve)}}function FF(t,n){if(t&1&&(U(0,"div",25),Ce(1,LF,2,4,"button",26,it),P(3,PF,2,1,"a",27),$(),U(4,"p",28),p(5),$()),t&2){let e=b(2);y(),we(e.years()),y(2),F(e.podcastAppUrl()?3:-1),y(2),k(e.storyTitle())}}function VF(t,n){if(t&1&&(U(0,"a",27),p(1,"Lyt i din podcast-app"),$()),t&2){let e=b(3);Be("href",e.podcastAppUrl(),ve)}}function jF(t,n){if(t&1&&(U(0,"div",12)(1,"p",30),p(2,"V\xE6lg episode"),$(),P(3,VF,2,1,"a",27),$()),t&2){let e=b(2);y(),Be("id",e.titleId()+"-episodes"),y(2),F(e.podcastAppUrl()&&!e.groupByYear()?3:-1)}}function UF(t,n){if(t&1){let e=ke();U(0,"button",29),st("click",function(){let r=V(e).$implicit;b();let o=Le(1),s=Le(5);return b().choose(r.id,o),s.open=!1,j(s.querySelector("summary").focus())}),U(1,"span",31),p(2),$(),U(3,"span"),p(4),$(),U(5,"small"),p(6),$()()}if(t&2){let e=n.$implicit,i=n.$index,r=b();tt("selected",r.id===e.id),De("aria-pressed",r.id===e.id),y(2),k(i+1),y(2),k(e.title),y(2),k(e.itunes_duration)}}function BF(t,n){t&1&&(Xe(),rt(0,"path",19))}function HF(t,n){t&1&&(Xe(),rt(0,"path",20))}function $F(t,n){t&1&&(U(0,"p",24),p(1,"Episoden kunne ikke afspilles. Pr\xF8v igen."),$())}function zF(t,n){if(t&1){let e=ke();U(0,"audio",11,0),st("playing",function(){V(e);
84let r=b();return j(r.playing.set(!0))})("pause",function(){V(e);let r=b();return j(r.playing.set(!1))})("ended",function(){V(e);let r=b();return j(r.playing.set(!1))})("timeupdate",function(){V(e);let r=Le(1),o=b();return j(o.time.set(r.currentTime))})("loadedmetadata",function(){V(e);let r=Le(1),o=b();return j(o.metadata(r))})("durationchange",function(){V(e);let r=Le(1),o=b();return j(o.metadata(r))})("error",function(){V(e);let r=b();return r.failed.set(!0),j(r.playing.set(!1))}),$(),P(2,FF,6,2),P(3,jF,4,2,"div",12),U(4,"details",13,1)(6,"summary"),p(7),$(),U(8,"div",14),Ce(9,UF,7,6,"button",15,RF),$()(),U(11,"div",16)(12,"button",17),st("click",function(){V(e);let r=Le(1),o=b();return j(o.toggle(r))}),Xe(),U(13,"svg",18),P(14,BF,1,0,":svg:path",19)(15,HF,1,0,":svg:path",20),$()(),Et(),U(16,"div",21)(17,"div",22),p(18),$(),U(19,"input",23,2),st("input",function(){V(e);let r=Le(1),o=Le(20),s=b();return j(s.seek(r,o.value))}),$()()(),P(21,$F,2,0,"p",24)}if(t&2){let e=n,i=b();Be("src",i.source()),y(2),F(i.groupByYear()?2:-1),y(),F(i.groupByYear()?-1:3),y(3),De("aria-describedby",i.groupByYear()?null:i.titleId()+"-episodes"),y(),k(e.title),y(2),we(i.visibleEpisodes()),y(3),De("aria-label",i.playing()?"S\xE6t "+i.category().title+" p\xE5 pause":"Afspil "+e.title),y(2),F(i.playing()?14:15),y(4),gr("",i.clock(i.time())," / ",i.duration()?i.clock(i.duration()):e.itunes_duration),y(),Be("max",i.duration()||1)("value",i.time())("disabled",!i.duration()),De("aria-label","Position i "+i.category().title+"-episoden")("aria-valuetext",i.clock(i.time())),y(2),F(i.failed()?21:-1)}}function GF(t,n){t&1&&(U(0,"p"),p(1,"Der er endnu ingen episoder tilg\xE6ngelige."),$())}var JS=(()=>{class t{chooseYear(e,i){e!==this.activeYear()&&(i.pause(),this.playing.set(!1),this.selectedYear.set(e),this.selectedId.set(null),this.time.set(0),this.duration.set(0),this.failed.set(!1))}constructor(){this.category=mi.required(),this.kicker=mi("Bag historierne \xB7 40 \xE5r med LEF"),this.stamp=mi("1986 \u2014 2026"),this.podcastAppUrl=mi(""),this.groupByYear=mi(!1),this.selectedYear=B(null),this.titleId=Ae(()=>"home-podcast-"+this.category().lefcastfolder),this.selectedId=B(null),this.playing=B(!1),this.time=B(0),this.duration=B(0),this.failed=B(!1),this.episodes=Ae(()=>(this.category().podcastitems??[]).filter(i=>i.mediefil&&!i.deleted_at&&!Number(i.private)&&Number(i.active)===1&&Date.parse(i.pub_date)<=Date.now()).slice().sort((i,r)=>Date.parse(i.pub_date)-Date.parse(r.pub_date)||i.id-r.id)),this.years=Ae(()=>this.groupByYear()?[...new Set(this.episodes().map(i=>new Date(i.pub_date).getFullYear()))].sort((i,r)=>i-r):[]),this.activeYear=Ae(()=>this.years().includes(this.selectedYear())?this.selectedYear():this.years()[0]),this.visibleEpisodes=Ae(()=>this.groupByYear()?this.episodes().filter(i=>new Date(i.pub_date).getFullYear()===this.activeYear()):this.episodes()),this.storyTitle=Ae(()=>(this.visibleEpisodes()[0]?.title??"").replace(/\s+(?:\d+|eftersnak)$/i,"").trim()),this.selected=Ae(()=>this.visibleEpisodes().find(i=>i.id===this.selectedId())??this.visibleEpisodes()[0]),this.source=Ae(()=>{let i=this.selected();return i?/^https?:\/\//i.test(i.mediefil)?i.mediefil:J.apiUrl+"podcast/lefcast_media/"+[this.category().lefcastfolder,i.subfolder,i.mediefil].filter(Boolean).map(r=>r.split("/").map(encodeURIComponent).join("/")).join("/"):""}),this.poster=Ae(()=>J.apiUrl+"podcast/lefcast_media/"+this.category().lefcastfolder+"/"+this.category().itunes_image),this.description=Ae(()=>(this.category().description??"").replace(/<[^>]*>/g,"").trim()),this.document=v(Ee);let e=i=>{i.target!==this.audio&&this.audio?.pause()};this.document.addEventListener("play",e,!0),v(je).onDestroy(()=>{this.document.removeEventListener("play",e,!0),this.audio?.pause()})}choose(e,i){i.pause(),this.selectedId.set(e),this.time.set(0),this.duration.set(0),this.failed.set(!1)}toggle(e){return ne(this,null,function*(){if(this.audio=e,!e.paused){e.pause();return}this.failed.set(!1),this.document.querySelectorAll("audio").forEach(i=>{i!==e&&i.pause()});try{yield e.play()}catch(i){i.name!=="AbortError"&&this.failed.set(!0)}})}metadata(e){this.duration.set(Number.isFinite(e.duration)?e.duration:0)}seek(e,i){this.duration()&&(e.currentTime=Math.max(0,Math.min(this.duration(),Number(i))))}clock(e){let i=Math.max(0,Math.floor(e)),r=Math.floor(i/3600);return(r?r+":":"")+String(Math.floor(i/60)%60).padStart(2,"0")+":"+String(i%60).padStart(2,"0")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-lef-anniversary"]],inputs:{category:[1,"category"],kicker:[1,"kicker"],stamp:[1,"stamp"],podcastAppUrl:[1,"podcastAppUrl"],groupByYear:[1,"groupByYear"]},decls:13,vars:9,consts:[["audio",""],["episodeMenu",""],["position",""],[1,"anniversary","media-copy-layout"],[1,"artwork"],["loading","lazy",3,"src","alt"],[1,"anniversary-stamp"],[1,"conversation"],[1,"kicker"],[3,"id"],[1,"intro"],["hidden","","preload","none",3,"playing","pause","ended","timeupdate","loadedmetadata","durationchange","error","src"],[1,"episode-heading"],[1,"episode-menu"],[1,"episode-list"],["type","button",3,"selected"],[1,"lef40-controls"],["type","button",1,"play","radio-play",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","currentColor","aria-hidden","true"],["d","M6 4h4v16H6zM14 4h4v16h-4z"],["d","M7 3v18l15-9z"],[1,"progress"],[1,"time"],["type","range","min","0","step","1",3,"input","max","value","disabled"],["role","alert"],["role","group","aria-label","V\xE6lg \xE5rets vinterfort\xE6lling",1,"year-selector"],["type","button",3,"active"],["target","_blank","rel","noopener noreferrer",1,"podcast-app-button",3,"href"],[1,"winter-story-title"],["type","button",3,"click"],[1,"episode-label",3,"id"],[1,"number"]],template:function(i,r){if(i&1&&(U(0,"section",3)(1,"div",4),rt(2,"img",5),P(3,OF,2,1,"span",6),$(),U(4,"div",7)(5,"p",8),p(6),$(),U(7,"h2",9),p(8),$(),U(9,"p",10),p(10),$(),P(11,zF,22,15)(12,GF,2,0,"p"),$()()),i&2){let o;De("aria-labelledby",r.titleId()),y(2),Be("src",r.poster(),ve)("alt",r.category().title+" \u2013 podcastplakat"),y(),F(r.stamp()?3:-1),y(3),k(r.kicker()),y(),Be("id",r.titleId()),y(),k(r.category().title),y(2),k(r.description()),y(),F((o=r.selected())?11:12,o)}},encapsulation:2})}}return t})();var qF=["dialog"],WF=["viewport"],KF=(t,n)=>n.row*7+n.col;function YF(t,n){t&1&&(U(0,"p",5),p(1,"En del af kortet kunne ikke hentes. Luk kortet og pr\xF8v igen."),$())}function QF(t,n){if(t&1){let e=ke();U(0,"img",17),st("error",function(){V(e);
84let r=b();return j(r.failed.set(!0))}),$()}if(t&2){let e=n.$implicit;et("left",e.x,"px")("top",e.y,"px")("width",e.width,"px")("height",e.height,"px"),Be("src","assets/images/valhel-map/tile-"+e.col+"-"+e.row+".jpg",ve)}}var ex=(()=>{class t{constructor(){this.dismissed=iC(),this.width=7016,this.height=9922,this.scale=B(.1),this.x=B(0),this.y=B(0),this.size=B({width:1,height:1}),this.failed=B(!1),this.fitScale=Ae(()=>Math.min(this.size().width/this.width,this.size().height/this.height)),this.zoomPercent=Ae(()=>Math.round(this.scale()/this.fitScale()*100)),this.tiles=Array.from({length:70},(e,i)=>{let r=i%7,o=Math.floor(i/7);return{col:r,row:o,x:r*1024,y:o*1024,width:Math.min(1024,this.width-r*1024),height:Math.min(1024,this.height-o*1024)}}),this.visibleTiles=Ae(()=>{if(this.scale()<=this.fitScale()*1.05)return[];let e=this.scale(),{width:i,height:r}=this.size();return this.tiles.filter(o=>this.x()+(o.x+o.width)*e>=0&&this.x()+o.x*e<=i&&this.y()+(o.y+o.height)*e>=0&&this.y()+o.y*e<=r)}),this.pointers=new Map,this.oldOverflow=""}ngAfterViewInit(){this.oldOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.dialog.nativeElement.showModal(),this.observer=new ResizeObserver(()=>{let e=this.viewport.nativeElement;this.size.set({width:e.clientWidth,height:e.clientHeight}),this.fit()}),this.observer.observe(this.viewport.nativeElement)}ngOnDestroy(){this.observer?.disconnect(),this.dialog.nativeElement.close(),document.body.style.overflow=this.oldOverflow}fit(){this.scale.set(this.fitScale()),this.x.set((this.size().width-this.width*this.scale())/2),this.y.set((this.size().height-this.height*this.scale())/2)}zoom(e,i=this.size().width/2,r=this.size().height/2){let o=this.scale(),s=Math.max(this.fitScale(),Math.min(1.5,o*e));this.x.set(i-(i-this.x())*s/o),this.y.set(r-(r-this.y())*s/o),this.scale.set(s),this.clamp()}clamp(){let e=this.width*this.scale(),i=this.height*this.scale(),r=this.size();this.x.set(e<=r.width?(r.width-e)/2:Math.min(0,Math.max(r.width-e,this.x()))),this.y.set(i<=r.height?(r.height-i)/2:Math.min(0,Math.max(r.height-i,this.y())))}wheel(e){e.preventDefault();let i=this.viewport.nativeElement.getBoundingClientRect();this.zoom(Math.exp(-Math.max(-100,Math.min(100,e.deltaY))*.004),e.clientX-i.left,e.clientY-i.top)}pointerDown(e){e.pointerType==="mouse"&&e.button!==0||(this.viewport.nativeElement.setPointerCapture(e.pointerId),this.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}))}pointerMove(e){let i=this.pointers.get(e.pointerId);if(!i)return;let r=[...this.pointers.entries()].find(([o])=>o!==e.pointerId)?.[1];if(r){let o=Math.hypot(i.x-r.x,i.y-r.y),s=Math.hypot(e.clientX-r.x,e.clientY-r.y),a=this.viewport.nativeElement.getBoundingClientRect();o>0&&this.zoom(s/o,(i.x+r.x)/2-a.left,(i.y+r.y)/2-a.top),this.x.update(l=>l+(e.clientX-i.x)/2),this.y.update(l=>l+(e.clientY-i.y)/2)}else this.x.update(o=>o+e.clientX-i.x),this.y.update(o=>o+e.clientY-i.y);this.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),this.clamp()}pointerUp(e){this.pointers.delete(e.pointerId)}keyboard(e){let i={ArrowLeft:[80,0],ArrowRight:[-80,0],ArrowUp:[0,80],ArrowDown:[0,-80]};i[e.key]?(e.preventDefault(),this.x.update(r=>r+i[e.key][0]),this.y.update(r=>r+i[e.key][1]),this.clamp()):e.key==="+"||e.key==="="?(e.preventDefault(),this.zoom(1.5)):e.key==="-"?(e.preventDefault(),this.zoom(1/1.5)):e.key==="Home"&&(e.preventDefault(),this.fit())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-valhel-map"]],viewQuery:function(i,r){if(i&1&&hi(qF,7)(WF,7),i&2){let o;ft(o=pt())&&(r.dialog=o.first),ft(o=pt())&&(r.viewport=o.first)}},outputs:{dismissed:"dismissed"},decls:25,vars:10,consts:[["dialog",""],["viewport",""],["aria-labelledby","map-title",3,"cancel"],["id","map-title"],[1,"map-tools"],["role","status"],["aria-label","Kortets zoom",1,"zoom-controls"],["type","button","aria-label","Zoom ud",3,"click","disabled"],["type","button","aria-label","Zoom ind",3,"click","disabled"],["type","button",3,"click"],["type","button","aria-label","Luk kortet","autofocus","",1,"close-map",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","aria-hidden","true","focusable","false",1,"close-icon"],["d","M6 6l12 12M18 6L6 18"],["tabindex","0","role","regi
84on","aria-label","Kort over Valhel. Zoom med plus og minus, flyt med piletaster, og tryk Home for at se hele kortet.",1,"map-viewport",3,"wheel","pointerdown","pointermove","pointerup","pointercancel","lostpointercapture","keydown"],[1,"map-canvas"],["src","assets/images/valhel-map/overview.jpg","alt","Valhel med byer, lande, bjerge og have","draggable","false",1,"overview",3,"error"],["alt","","draggable","false",1,"tile",3,"src","left","top","width","height"],["alt","","draggable","false",1,"tile",3,"error","src"]],template:function(i,r){if(i&1){let o=ke();U(0,"dialog",2,0),st("cancel",function(a){return V(o),a.preventDefault(),j(r.dismissed.emit())}),U(2,"header")(3,"h2",3),p(4,"Kort over Valhel"),$(),U(5,"div",4),P(6,YF,2,0,"p",5),U(7,"div",6)(8,"button",7),st("click",function(){return r.zoom(1/1.5)}),p(9,"\u2212"),$(),U(10,"span"),p(11),$(),U(12,"button",8),st("click",function(){return r.zoom(1.5)}),p(13,"+"),$(),U(14,"button",9),st("click",function(){return r.fit()}),p(15,"Hele kortet"),$()()(),U(16,"button",10),st("click",function(){return r.dismissed.emit()}),Xe(),U(17,"svg",11),rt(18,"path",12),$()()(),Et(),U(19,"div",13,1),st("wheel",function(a){return r.wheel(a)})("pointerdown",function(a){return r.pointerDown(a)})("pointermove",function(a){return r.pointerMove(a)})("pointerup",function(a){return r.pointerUp(a)})("pointercancel",function(a){return r.pointerUp(a)})("lostpointercapture",function(a){return r.pointerUp(a)})("keydown",function(a){return r.keyboard(a)}),U(21,"div",14)(22,"img",15),st("error",function(){return r.failed.set(!0)}),$(),Ce(23,QF,1,9,"img",16,KF),$()()()}i&2&&(y(6),F(r.failed()?6:-1),y(2),Be("disabled",r.scale()<=r.fitScale()),y(3),yt("",r.zoomPercent()," %"),y(),Be("disabled",r.scale()>=1.5),y(9),et("width",r.width,"px")("height",r.height,"px")("transform","translate("+r.x()+"px,"+r.y()+"px) scale("+r.scale()+")"),y(2),we(r.visibleTiles()))},encapsulation:2})}}return t})();var ZF=["dialog"];function XF(t,n){if(t&1&&(U(0,"video",7),rt(1,"source",13),$()),t&2){let e=b();Be("poster",e.apiUrl+"images/front/"+e.item.image),y(),Be("src",e.movieUrl)}}function JF(t,n){if(t&1&&rt(0,"img",8),t&2){let e=b();Be("src",e.apiUrl+"images/front/"+(e.item.modal_image_src||e.item.image),ve)("alt",e.item.title)}}function eV(t,n){if(t&1&&rt(0,"div",10),t&2){let e=b();Be("innerHTML",e.item.modal_text,fi)}}function tV(t,n){if(t&1&&(U(0,"a",12),p(1),$()),t&2){let e=b();Be("href",e.apiUrl+"downloads/"+e.item.modal_download_1_src,ve),y(),k(e.item.modal_download_1_text||"Download materialet")}}function nV(t,n){if(t&1&&(U(0,"a",12),p(1),$()),t&2){let e=b();Be("href",e.apiUrl+"downloads/"+e.item.modal_download_2_src,ve),y(),k(e.item.modal_download_2_text||"Download printversion")}}function iV(t,n){if(t&1&&(U(0,"a",12),p(1,"Download materialet"),$()),t&2){let e=b();Be("href",e.apiUrl+"downloads/"+e.item.link_download,ve)}}function rV(t,n){if(t&1&&(U(0,"a",12),p(1),$()),t&2){let e=b();Be("href",e.item.modal_button_1_src,ve),y(),k(e.item.modal_button_1_text)}}function oV(t,n){if(t&1&&(U(0,"a",12),p(1),$()),t&2){let e=b();Be("href",e.item.modal_button_2_src,ve),y(),k(e.item.modal_button_2_text)}}var tx=(()=>{class t{constructor(){this.show=!1,this.closeCallback=()=>!1}ngAfterViewInit(){this.show&&this.dialog.nativeElement.showModal()}close(){this.dialog.nativeElement.close(),this.closeCallback()}get movieUrl(){return new URL(this.item.modal_movie_src,this.baseUrl.startsWith("http")?this.baseUrl:"https://www.lefnet.dk/").href}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-detail-modal"]],viewQuery:function(i,r){if(i&1&&hi(ZF,7),i&2){let o;ft(o=pt())&&(r.dialog=o.first)}},inputs:{apiUrl:"apiUrl",baseUrl:"baseUrl",item:"item",show:"show",closeCallback:"closeCallback"},decls:21,vars:9,consts:[["dialog",""],["aria-labelledby","game-dialog-title",1,"game-dialog",3,"cancel"],[1,"kicker"],["id","game-dialog-title"],["type","button","aria-label","Luk vinduet","autofocus","",1,"close-dialog",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","aria-hidden","true","focusable","false",1,"close-icon"],["d","M6 6l12 12M18 6L6 18"],["controls","","playsinline","","preload","none",3,"poster"],[1,"game-image",3,"src","alt"],[1,"dialog-body"],[1,"description",3,"innerHTML"],[1,"downloads"],["target","_blank","rel","noopener",3,"href"],["type","video/mp4",3,"src"]],template:function(i,r){i&1&&(U(0,"dialog",1,0),st("cancel",function(){return r.closeCallback()}),U(2,"header")(3,"div")(4,"p",2),p(5),$(),U(6,"h2",3),p(7),$()(),U(8,"button",4),st("click",function(){return r.close()}),Xe(),U(9,"svg",5),rt(10,"path",6),$()()(),P(11,XF,2,2,"video",7)(12,JF,1,2,"img",8),Et(),U(13,"div",9),P(14,eV,1,1,"div",10),U(15,"div",11),P(16,tV,2,2,"a",12),P(17,nV,2,2,"a",12),P(18,iV,2,1,"a",12),P(19,rV,2,2,"a",12),P(20,oV,2,2,"a",12),$()()()),i&2&&(y(5),k(r.item.id===2?"Filosofien bag spillet":"Et eventyr i Valhel"),y(2),k(r.item.title),y(4),F(r.item.modal_media==="movie"&&r.item.modal_movie_src?11:r.item.modal_image_src||r.item.image?12:-1),y(3),F(r.item.modal_text?.trim()?14:-1),y(2),F(r.item.modal_download_1_src?16:-1),y(),F(r.item.modal_download_2_src?17:-1),y(),F(!r.item.modal_download_1_src&&!r.item.modal_download_2_src&&r.item.link_download?18:-1),y(),F(r.item.modal_button_1_src?19:-1),y(),F(r.item.modal_button_2_src?20:-1))},encapsulation:2})}}return t})();var zs=(()=>{class t extends Ot{constructor(){super()}getPodcastCategories(){let e=this.API_URL+Pe.PODCAST_URL;return this.httpClient.get(e)}getPodcastCategory(e){let i=this.API_URL+Pe.PODCAST_URL+"/"+e;return this.httpClient.get(i)}generatePodcastCategory(e){let i=this.API_URL+Pe.PODCAST_URL+"/generate/"+e;return console.log("==>> Calling : "+i),this.httpClient.get(i)}createPodcastCategory(e){let i=this.API_URL+Pe.PODCAST_URL;return this.httpClient.post(i,e)}deletePodcastCategory(e){let i=this.API_URL+Pe.PODCAST_URL+"/"+e;return this.httpClient.delete(i)}savePodcastCategory(e){let i=this.API_URL+Pe.PODCAST_URL+"/"+e.id;return this.httpClient.put(i,e)}getPodcastItem(e){let i=this.API_URL+Pe.PODCAST_ITEMS_URL+"/"+e;return this.httpClient.get(i)}createPodcastItem(e){let i=this.API_URL+Pe.PODCAST_ITEMS_URL;return this.httpClient.post(i,e)}deletePodcastItem(e){let i=this.API_URL+Pe.PODCAST_ITEMS_URL+"/"+e;return this.httpClient.delete(i)}savePodcastItem(e){let i=this.API_URL+Pe.PODCAST_ITEMS_URL+"/"+e.id;return this.httpClient.put(i,e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Rf=(()=>{class t extends Ot{constructor(){super()}hentFront(){let e=this.API_URL+Pe.FRONT_URL;return this.httpClient.get(e)}hentTopMovies(){let e=this.API_URL+Pe.TOPMOVIES_URL;return this.httpClient.get(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _v=t=>["/podcast",t],sV=(t,n)=>n.folder,nx=(t,n)=>n.id;function aV(t,n){if(t&1&&O(0,"img",64),t&2){let e=b(),i=b();H("src",i._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+e.itunes_image,ve)("alt",e.title+" \u2013 serieplakat")}}function lV(t,n){if(t&1&&(h(0,"p"),p(1),g()),t&2){let e=n.$implicit,i=n.$index;tt("series-lead",i===0),y(),k(e)}}function cV(t,n){if(t&1&&(h(0,"section",18)(1,"a",63),P(2,aV,1,2,"img",64),g(),h(3,"div",65)(4,"p",6),O(5,"span",66),p(6," Lige nu i Valhel "),g(),h(7,"h2",67),p(8),g(),Ce(9,lV,2,3,"p",68,$a),h(11,"a",69)(12,"span",70),p(13,"\u25B6"),g(),p(14," Lyt til serien "),g(),h(15,"a",24),p(16,"Se alle lydserier"),g()()()),t&2){let e=n,i=b();y(),H("routerLink",yn(5,_v,e.lefcastfolder)),De("aria-label","Lyt til "+e.title),y(),F(e.itunes_image?2:-1),y(6),k(e.title),y(),we(i.currentDescription()),y(2),H("routerLink",yn(7,_v,e.lefcastfolder))}}function uV(t,n){if(t&1&&(h(0,"section",19)(1,"h2",67),p(2,"Lige nu i Valhel"),g(),h(3,"p",25),p(4),g(),h(5,"a",24),p(6,"Se alle lydserier"),g()()),t&2){let e=b();y(4),k(e.storiesLoading()?"Henter den aktuelle lydserie \u2026":"Den aktuelle lydserie er ikke tilg\xE6ngelig lige nu.")}}function dV(t,n){if(t&1&&(h(0,"aside",20)(1,"h2"),p(2),g(),h(3,"p"),p(4),g()()),t&2){let e=b();y(2),k(e.trollHeader||"Nyt fra LEF"),y(2),k(e.trollMessage)}}function fV(t,n){t&1&&(h(0,"p",25),p(1,"Henter de nyeste lydserier \u2026"),g())}function pV(t,n){t&1&&(h(0,"p",25),p(1,"Lydserierne kunne ikke hentes lige nu. Pr\xF8v igen senere."),g())}function hV(t,n){t&1&&(h(0,"p"),p(1,"Der er endnu ingen andre udgivne lydserier at vise."),g())}function mV(t,n){if(t&1&&(h(0,"span",73),p(1),g()),t&2){let e=b().$implicit;y(),k(e.genre)}}function gV(t,n){if(t&1&&(h(0,"a",27)(1,"div",71),O(2,"img",72),P(3,mV,2,1,"span",73),g(),h(4,"span",6),p(5,"Dansk fantasy \xB7 Lydserie"),g(),h(6,"h3"),p(7),g()()),t&2){let e=n.$implicit,i=b();H("routerLink",yn(5,_v,e.folder)),y(2),H("src",i._apiUrl+"podcast/lefcast_media/"+e.folder+"/"+e.image,ve)("alt",e.title+" \u2013 serieplakat"),y(),F(e.genre?3:-1),y(4),yt(" ",e.title," ")}}function yV(t,n){t&1&&O(0,"app-lef-anniversary",28),t&2&&H("category",n)("groupByYear",!0)}function vV(t,n){t&1&&O(0,"app-lef-anniversary",29),t&2&&H("category",n)}function _V(t,n){if(t&1){let e=ke();h(0,"div",55)(1,"button",74),X("click",function(){V(e);
84let r=b(),o=Le(152);return j(r.scrollGames(o,-1))}),p(2,"Forrige"),g(),h(3,"button",75),X("click",function(){V(e);let r=b(),o=Le(152);return j(r.scrollGames(o,1))}),p(4,"N\xE6ste"),g()()}}function bV(t,n){t&1&&(h(0,"p",25),p(1,"Henter materialer \u2026"),g())}function EV(t,n){t&1&&(h(0,"p",25),p(1,"Materialerne kunne ikke hentes. Pr\xF8v igen senere."),g())}function CV(t,n){if(t&1&&(h(0,"p"),p(1),g()),t&2){let e=b();y(),k(e.downloadTab()==="products"?"Der er endnu ingen produkter at vise.":"Der er endnu intet materiale klar til download.")}}function wV(t,n){if(t&1){let e=ke();h(0,"button",82),X("click",function(){V(e);let r=b().$implicit,o=b();return j(o.displayModal(r.item))}),p(1),g()}if(t&2){let e=b().$implicit;y(),k(e.title)}}function DV(t,n){if(t&1&&(h(0,"a",79),p(1),g()),t&2){let e=b().$implicit;H("routerLink",e.item.internal_link),y(),k(e.title)}}function SV(t,n){if(t&1&&(h(0,"a",80),p(1),g()),t&2){let e=b().$implicit;H("href",e.item.link,ve),De("target",e.item.link_target||null)("rel",e.item.link_target==="_blank"?"noopener":null),y(),k(e.title)}}function xV(t,n){if(t&1&&(h(0,"a",80),p(1),g()),t&2){let e=b().$implicit,i=b();H("href",i._apiUrl+"downloads/"+e.item.link_download,ve),De("target",e.item.link_target||null)("rel",e.item.link_target==="_blank"?"noopener":null),y(),k(e.title)}}function TV(t,n){if(t&1&&(h(0,"button",81),p(1),g()),t&2){let e=b().$implicit;y(),k(e.title)}}function IV(t,n){if(t&1&&(h(0,"article",60)(1,"div",76),O(2,"img",77),g(),P(3,wV,2,1,"button",78)(4,DV,2,2,"a",79)(5,SV,2,4,"a",80)(6,xV,2,4,"a",80)(7,TV,2,1,"button",81),g()),t&2){let e,i=n.$implicit,r=b();De("aria-label",i.title),y(2),H("src",r._apiUrl+"images/front/"+i.image,ve)("alt",i.title+" \u2013 forside"),y(),F((e=i.item.function)==="functionModalOpen"?3:e==="functionInternalLink"?4:e==="functionExternalLink"?5:e==="functionDirectDownload"?6:7)}}function MV(t,n){if(t&1){let e=ke();h(0,"button",119),X("click",function(){let r=V(e).$implicit;b();let o=Le(3),s=Le(10);return b(2).chooseRadio(""+r.id,s),o.open=!1,j(o.querySelector("summary").focus())}),p(1),g()}if(t&2){let e=n.$implicit,i=b(3);tt("selected",i.selectedRadioTrack()?.id===e.id),De("aria-pressed",i.selectedRadioTrack()?.id===e.id),y(),yt(" ",e.title," ")}}function kV(t,n){t&1&&(Xe(),O(0,"path",107))}function AV(t,n){t&1&&(Xe(),O(0,"path",108))}function NV(t,n){if(t&1){let e=ke();h(0,"button",115),X("click",function(){V(e);let r=b(3);return j(r.skipRadio())}),p(1,"Spring over"),g()}}function RV(t,n){if(t&1&&(h(0,"a",117),p(1," Download nummeret "),g()),t&2){let e=b(3);
84H("href",n,ve)("download",e.selectedRadioTrack()?.mediefil),De("aria-label","Download "+e.selectedRadioTrack()?.title)}}function OV(t,n){t&1&&(h(0,"p",118),p(1,"Musikken kunne ikke afspilles. V\xE6lg et andet nummer, eller pr\xF8v igen."),g())}function LV(t,n){if(t&1){let e=ke();h(0,"p",98),p(1,"V\xE6lg din musik"),g(),h(2,"details",99,1)(4,"summary",100),p(5),g(),h(6,"div",101),Ce(7,MV,2,4,"button",102,nx),g()(),h(9,"audio",103,2),X("error",function(){V(e);let r=b(2);return r.radioError.set(!0),j(r.radioPlaying.set(!1))})("loadedmetadata",function(){V(e);let r=Le(10),o=b(2);return j(o.updateRadioMetadata(r))})("canplay",function(){V(e);let r=Le(10),o=b(2);return j(o.radioReady(r))})("durationchange",function(){V(e);let r=Le(10),o=b(2);return j(o.updateRadioMetadata(r))})("timeupdate",function(){V(e);let r=Le(10),o=b(2);return j(!o.radioNonstop()&&o.radioTime.set(r.currentTime))})("playing",function(){V(e);let r=b(2);return j(r.radioPlaying.set(!0))})("pause",function(){V(e);let r=b(2);return j(r.radioPaused())})("ended",function(){V(e);let r=Le(10),o=b(2);return j(o.advanceRadio(r))}),g(),h(11,"div",104)(12,"button",105),X("click",function(){V(e);let r=Le(10),o=b(2);return j(o.toggleRadio(r))}),Xe(),h(13,"svg",106),P(14,kV,1,0,":svg:path",107)(15,AV,1,0,":svg:path",108),g()(),Et(),h(16,"div",109)(17,"div",110)(18,"span"),p(19),g(),h(20,"span"),p(21),g()(),h(22,"input",111),X("input",function(r){V(e);let o=Le(10),s=b(2);return j(s.seekRadio(o,r.target.value))}),g()(),h(23,"div",112)(24,"label",113),p(25,"Lydstyrke"),g(),h(26,"input",114),X("input",function(r){V(e);let o=Le(10),s=b(2);return j(s.setRadioVolume(o,r.target.value))}),g()()(),h(27,"button",115),X("click",function(){V(e);let r=Le(10),o=b(2);return j(o.toggleNonstop(r))}),p(28),g(),P(29,NV,2,0,"button",116),P(30,RV,2,3,"a",117),P(31,OV,2,0,"p",118)}if(t&2){let e,i=b(2);y(5),k(i.selectedRadioTrack()?.title||"V\xE6lg et nummer"),y(2),we(i.radioTracks()),y(2),H("src",i.radioSource()),y(3),De("aria-label",i.radioPlaying()?"S\xE6t musikken p\xE5 pause":"Afspil musikken"),y(2),F(i.radioPlaying()?14:15),y(5),k(i.radioClock(i.radioTime())),y(2),k(i.radioClock(i.radioDuration())),y(),H("max",i.radioDuration()||1)("value",i.radioTime())("disabled",!i.radioDuration()),De("aria-valuetext",i.radioClock(i.radioTime())+" af "+i.radioClock(i.radioDuration())),y(4),H("value",i.radioVolume()),y(),tt("enabled",i.radioNonstop()),De("aria-pressed",i.radioNonstop()),y(),yt(" ",i.radioNonstop()?"Sluk radioen":"Lad radioen spille"," "),y(),F(i.radioNonstop()?29:-1),y(),F((e=i.radioSource())?30:-1,e),y(),F(i.radioError()?31:-1)}}function PV(t,n){if(t&1&&(h(0,"section",61)(1,"div",22)(2,"div")(3,"p",6),p(4,"Radio fra Valhel"),g(),h(5,"h2",83),p(6,"Ekkonet"),g()()(),h(7,"div",84)(8,"div",85)(9,"span"),p(10,"LEF"),g()(),h(11,"div",86)(12,"div",87),Xe(),h(13,"svg",88)(14,"g",89),O(15,"path",90)(16,"path",91)(17,"path",92),g(),h(18,"text",93),p(19,"MAURITZ"),g(),h(20,"text",94),p(21,"RADIOFABRIK"),g()()(),Et(),h(22,"div",95)(23,"span",96),p(24,"VALHEL \xB7 MUSIK"),g(),h(25,"div",97),O(26,"span"),g(),h(27,"p"),p(28),g()(),P(29,LV,32,18),g()()()),t&2){let e=b();y(8),tt("sounding",e.radioPlaying()),y(18),et("left",e.radioDialPosition(),"%"),y(2),k(e.selectedRadioTrack()?.title||"Ingen musik tilg\xE6ngelig"),y(),F(e.radioTracks().length?29:-1)}}function FV(t,n){if(t&1&&O(0,"app-detail-modal",62),t&2){let e=b();H("item",e.modalItem)("apiUrl",e._apiUrl)("baseUrl",e._baseUrl)("show",e.showModal)("closeCallback",e.toggleModal)}}function VV(t,n){if(t&1){let e=ke();h(0,"app-valhel-map",120),X("dismissed",function(){V(e);let r=b();return j(r.mapOpen.set(!1))}),g()}}var ix=(()=>{class t extends rn{constructor(){super(...arguments),this.anniversary=B(null),this.winterStories=B(null),this.mapOpen=B(!1),this.philosophyItem=B(null),this._apiUrl=void 0,this._baseUrl=void 0,this.frontCategories=[],this.downloadTab=B("scenarios"),this.scenarioDownloads=B([]),this.otherDownloads=B([]),this.products=B([]),this.games=Ae(()=>this.downloadTab()==="scenarios"?this.scenarioDownloads():this.downloadTab()==="products"?this.products():this.otherDownloads()),this.activeDownloadCount=Ae(()=>this.games().length),this.gamesLoading=B(!0),this.gamesFailed=B(!1),this.radioMix=v(vv),this.radioNonstop=this.radioMix.enabled,this.radio=B(null),this.selectedRadioId=B(""),this.radioError=B(!1),this.radioPlaying=B(!1),this.radioAutoPlay=B(!1),this.pendingRadioAutoplay=!1,this.radioDialPosition=Ae(()=>{let e=this.radioTracks(),i=e.findIndex(r=>
84r.id===this.selectedRadioTrack()?.id);return e.length<2?50:5+Math.max(0,i)/(e.length-1)*90}),this.radioTime=B(0),this.radioDuration=B(0),this.radioVolume=B(1),this.radioTracks=Ae(()=>(this.radio()?.podcastitems??[]).filter(e=>e.mediefil&&!e.deleted_at&&!Number(e.private)&&Number(e.active)!==0&&Number.isFinite(Date.parse(e.pub_date))&&Date.parse(e.pub_date)<=Date.now())),this.selectedRadioTrack=Ae(()=>this.radioTracks().find(e=>String(e.id)===this.selectedRadioId())??this.radioTracks()[0]),this.radioSource=Ae(()=>{let e=this.selectedRadioTrack(),i=this.radio();return!e||!i?null:/^https?:\/\//i.test(e.mediefil)?e.mediefil:J.apiUrl+"podcast/lefcast_media/"+[i.lefcastfolder,e.subfolder,e.mediefil].filter(Boolean).map(r=>r.split("/").map(encodeURIComponent).join("/")).join("/")}),this.currentSeries=B(null),this.currentDescription=Ae(()=>this.summarizeDescription(this.currentSeries()?.description||this.currentSeries()?.summary||"")),this.descriptionLimit=257,this.featuredStories=B([]),this.storiesLoading=B(!0),this.storiesFailed=B(!1),this.podcastService=v(zs),this.showModal=!1,this.trollHeader=void 0,this.trollMessage=void 0,this.frontService=v(Rf),this.settingsService=v(Jd),this.changeDetector=v(en),this.document=v(Ee),this.meta=v(WC),this.pageTitle=v(ud),this.toggleModal=()=>(this.showModal=!this.showModal,!0)}scrollGames(e,i){let r=this.document.defaultView?.matchMedia("(prefers-reduced-motion: reduce)").matches;e.scrollBy({left:i*e.clientWidth,behavior:r?"instant":"smooth"})}selectDownloadTab(e,i){this.downloadTab.set(e),i.scrollLeft=0}loadGames(e){let i=e.filter(d=>Number(d.active)!==0&&!d.deleted_at),r=new Set(["scenarier","downloads"]),o=d=>r.has(d.title.trim().toLocaleLowerCase("da")),s=d=>d.title.trim().toLocaleLowerCase("da")==="lef p\xE5 tryk",a=(d,m)=>d.flatMap(f=>f.frontitems??[]).filter(f=>Number(f.active)===1&&!f.deleted_at&&f.image).sort((f,_)=>f.sort_order-_.sort_order||f.id-_.id).map(f=>{let _=[{title:f.modal_download_1_text||m,file:f.modal_download_1_src},{title:f.modal_download_2_text||"Hent printversion",file:f.modal_download_2_src}].filter(E=>!!E.file);return!_.length&&f.link_download&&_.push({title:m,file:f.link_download}),{id:f.id,title:f.title,image:f.image,item:f,downloads:_}}).filter(f=>f.downloads.length>0),l=a(i.filter(o),"Hent spillet"),c=a(i.filter(d=>!o(d)&&!s(d)),"Hent materialet"),u=i.filter(s).flatMap(d=>d.frontitems??[]).filter(d=>Number(d.active)===1&&!d.deleted_at&&d.image).sort((d,m)=>d.sort_order-m.sort_order||d.id-m.id).map(d=>({id:d.id,title:d.title,image:d.image,item:d,downloads:[]}));this.scenarioDownloads.set(l),this.otherDownloads.set(c),this.products.set(u),this.downloadTab.set(l.length?"sce
84narios":c.length?"other":u.length?"products":"other")}toggleNonstop(e){return ne(this,null,function*(){if(this.radioNonstop()){this.radioMix.stop(),this.radioPlaying.set(!1);return}this.pendingRadioAutoplay=!1,this.radioAutoPlay.set(!1),e.pause(),this.radioError.set(!1),yield this.radioMix.start(this.radioTracks().map(i=>({id:String(i.id),url:this.radioTrackUrl(i)})),this.radioVolume(),(i,r)=>{this.selectedRadioId.set(i.id),this.radioPlaying.set(!r.paused),this.radioTime.set(r.currentTime),this.radioDuration.set(Number.isFinite(r.duration)?r.duration:0)},()=>{this.radioPlaying.set(!1),this.radioError.set(!0)},()=>this.radioPlaying.set(!1))})}skipRadio(){return ne(this,null,function*(){yield this.radioMix.skip()})}radioPaused(){this.radioNonstop()||this.radioPlaying.set(!1)}radioTrackUrl(e){return/^https?:\/\//i.test(e.mediefil)?e.mediefil:J.apiUrl+"podcast/lefcast_media/"+[this.radio().lefcastfolder,e.subfolder,e.mediefil].filter(Boolean).map(i=>i.split("/").map(encodeURIComponent).join("/")).join("/")}toggleRadioAutoplay(e){return ne(this,null,function*(){this.radioMix.stop(),this.radioPlaying.set(!1);let i=!this.radioAutoPlay();if(this.radioAutoPlay.set(i),!i){this.pendingRadioAutoplay=!1;return}e.paused&&(yield this.toggleRadio(e))})}radioReady(e){return ne(this,null,function*(){!this.pendingRadioAutoplay||!this.radioAutoPlay()||(this.pendingRadioAutoplay=!1,e.paused&&(yield this.toggleRadio(e)))})}advanceRadio(e){return ne(this,null,function*(){if(this.radioPlaying.set(!1),!this.radioAutoPlay())return;let i=this.radioTracks(),r=i.findIndex(s=>s.id===this.selectedRadioTrack()?.id),o=i[r+1];o&&(this.chooseRadio(String(o.id),e),this.pendingRadioAutoplay=!0)})}toggleRadio(e){return ne(this,null,function*(){if(this.radioNonstop()){this.radioMix.stop(),this.radioPlaying.set(!1);return}if(this.pendingRadioAutoplay=!1,!e.paused){e.pause();return}this.radioError.set(!1);try{yield e.play()}catch(i){i instanceof DOMException&&i.name==="AbortError"||this.radioError.set(!0)}})}chooseRadio(e,i){this.radioMix.stop(),this.pendingRadioAutoplay=!1,i.pause(),this.radioPlaying.set(!1),this.radioTime.set(0),this.radioDuration.set(0),this.radioError.set(!1),this.selectedRadioId.set(e)}updateRadioMetadata(e){this.radioNonstop()||(this.radioDuration.set(Number.isFinite(e.duration)?e.duration:0),this.radioError.set(!1))}seekRadio(e,i){if(this.radioNonstop()){this.radioMix.seek(Number(i));return}this.radioDuration()>0&&(e.currentTime=Math.min(this.radioDuration(),Math.max(0,Number(i))))}setRadioVolume(e,i){let r=Math.min(1,Math.max(0,Number(i)));e.volume=r,this.radioMix.setVolume(r),this.radioVolume.set(r)}radioClock(e){let i=Math.max(0,Math.floor(e||0));return Math.floor(i/60)+":"+String(i%60).padStart(2,"0")}summarizeDescription(e){let i=this.document.createElement("div");i.innerHTML=e.replace(/<\/(?:p|div|li|h[1-6])\s*>|<br\s*\/?>/gi," "),i.querySelectorAll("script, style").forEach(a=>a.remove());let r=(i.textContent??"").replace(/\s+/g," ").trim(),o=[],s=0;for(let{segment:a}of new Intl.Segmenter("da",{granularity:"sentence"}).segment(r)){let l=a.trim();if(!/[.!?…]["'»”’)]*$/.test(l))break;let c=s+(o.length?1:0)+l.length;if(c>this.descriptionLimit)break;o.push(l),s=c}return o.length?o:["Tr\xE6d ind i Valhel. Lyt til serien, og oplev historien."]}selectLatestStories(e){let i=Date.now(),r=new Set(["ALLE PODCASTS","MUSIK","RADIOUDSENDELSE","INTERVIEW","INVERVIEW"]),o=e.filter(a=>!["lef_40","vinterfortaellinger","lef_radio","lef_podcast"].includes(a.lefcastfolder)&&Number(a.active)===1&&!Number(a.private)&&!a.deleted_at&&a.lefcastfolder&&a.itunes_image&&!r.has((a.genre??"").trim().toUpperCase())).map(a=>{let l=(a.podcastitems??[]).filter(c=>!c.deleted_at&&!Number(c.private)&&Number(c.active)!==0&&(!c.itunes_episode_type||c.itunes_episode_type==="full")).map(c=>Date.parse(c.pub_date)).filter(c=>Number.isFinite(c)&&c<=i);return{category:a,premiere:l.length?Math.min(...l):null}}).filter(a=>a.premiere!==null).sort((a,l)=>l.premiere-a.premiere||a.category.id-l.category.id);this.currentSeries.set(o[0]?.category??null);let s=o.slice(1,4).map(({category:a})=>({title:a.title,folder:a.lefcastfolder,image:a.itunes_image,genre:a.genre||""}));this.featuredStories.set(s)}configureSeo(){if(this.restoreSeo)return;let e=this.pageTitle.getTitle(),i="Danske fantasylydserier og rollespil i Valhel | LEF",r="Lyt til danske fantasylydserier fra Valhel. Oplev Retten til riget, find din n\xE6ste podcast, og udforsk rollespillet Levende Eventyr & Fantasi.",o="https://www.lefnet.dk/home";this.pageTitle.setTitle(i);let a=[{name:"description",content:r},{property:"og:title",content:i},{property:"og:description",content:r},{property:"og:type",content:"website"},{property:"og:locale",content:"da_DK"},{property:"og:site_name",content:"Levende Eventyr & Fantasi"},{property:"og:url",content:o},{property:"og:image",content:"https://api.lefnet.dk/podcast/lefcast_media/retten_til_riget/rtr_poster.jpg"},{property:"og:image:alt",content:"Retten til riget \u2013 fantasylydserie fra Valhel"}].map(u=>{let d="name"in u?`name="${u.name}"`:`property="${u.property}"`,m=this.meta.getTag(d),f=m?.content,_=this.meta.updateTag(u,d);return()=>{m?m.content=f??"":_?.remove()}}),l=this.document.createElement("link");l.rel="canonical",l.href=o;let c=this.document.createElement("script");c.type="application/ld+json",c.textContent=JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"Levende Eventyr & Fantasi",alternateName:["LEF","LEFnet"],url:"https://www.lefnet.dk/",inLanguage:"da",description:r}),this.document.head.append(l,c),this.restoreSeo=()=>{this.pageTitle.setTitle(e),a.forEach(u=>u()),l.remove(),c.remove()}}ngOnDestroy(){this.restoreSeo?.(),this.restoreSeo=void 0,super.ngOnDestroy()}ngOnInit(){this.configureSeo(),this.subscriptions(this.podcastService.getPodcastCategories().subscribe({next:e=>{let i=e.podcastCategories??[];this.radio.set(i.find(r=>r.lefcastfolder==="lef_radio"&&Number(r.active)===1&&!Number(r.private)&&!r.deleted_at)??null),this.anniversary.set(i.find(r=>r.lefcastfolder==="lef_40"&&Number(r.active)===1&&!Number(r.private)&&!r.deleted_at)??null),this.winterStories.set(i.find(r=>r.lefcastfolder==="vinterfortaellinger"&&Number(r.active)===1&&!Number(r.private)&&!r.deleted_at)??null),this.selectLatestStories(i),this.storiesLoading.set(!1)},error:()=>{this.storiesFailed.set(!0),this.storiesLoading.set(!1)}})),this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this.subscriptions(this.settingsService.getSettingByKey("troll_message").subscribe({next:e=>{if(this.changeDetector.markForCheck(),e.value){let i=e.value.split("::");i[1]?(this.trollHeader=i[0],this.trollMessage=i[1]):this.trollMessage=i[0]}}})),this.subscriptions(this.frontService.hentFront().subscribe({next:e=>{this.frontCategories=e,this.philosophyItem.set(e.flatMap(i=>i.frontitems??[]).find(i=>Number(i.id)===2&&Number(i.active)===1&&!i.deleted_at)??null),this.loadGames(e),this.gamesLoading.set(!1),this.changeDetector.markForCheck()},error:()=>{this.gamesFailed.set(!0),this.gamesLoading.set(!1)}}))}openPhilosophy(){let e=this.philosophyItem();e&&this.displayModal(e)}displayModal(e){this.modalItem=e,this.toggleModal()}openWindow(e){let i=e.split("|");i[1]===void 0&&(i[1]="1560"),i[2]===void 0&&(i[2]="910"),window.open(i[0],"",`width=${i[1]}, height=${i[2]}`)}switchPage(){let e=document.getElementById("info-full-text");e.style.display==="none"?e.style.display="block":e.style.display="none"}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=ui(t)))(r||t)}})()}static{this.\u0275cmp=fe({type:t,selectors:[["app-front"]],features:[qi([vv]),Je],decls:158,vars:24,consts:[["gameTrack",""],["trackMenu",""],["radioAudio",""],[1,"valhel-home"],["aria-labelledby","valhel-title",1,"valhel-hero"],[1,"hero-copy"],[1,"eyebrow"],["
84id","valhel-title"],[1,"hero-brand"],[1,"hero-intro"],["href","https://pod.link/1762221966","target","_blank","rel","noopener noreferrer","aria-label","Begynd historien her \u2013 abonn\xE9r gratis p\xE5 LEF lydserier i din podcast-app (\xE5bner i en ny fane)",1,"valhel-button"],["width","28","height","28","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.6","aria-hidden","true"],["d","M4 14v-3a8 8 0 0 1 16 0v3"],["x","3","y","12","width","4","height","8","rx","2"],["x","17","y","12","width","4","height","8","rx","2"],[1,"hero-footnote"],["aria-hidden","true",1,"hero-art"],[1,"valhel-content"],["id","lige-nu","aria-labelledby","current-title",1,"current-series","media-copy-layout"],["id","lige-nu","aria-labelledby","current-title"],[1,"valhel-notice"],["aria-labelledby","stories-title",1,"stories"],[1,"section-heading"],["id","stories-title"],["routerLink","/podcast",1,"text-link"],["role","status"],[1,"story-grid"],[1,"story-card",3,"routerLink"],["kicker","Vinterfort\xE6llinger fra Valhel","stamp","","podcastAppUrl","https://pod.link/1654582377",3,"category","groupByYear"],[3,"category"],["id","sponsorer","aria-labelledby","sponsor-title",1,"sponsor-section","media-copy-layout"],[1,"sponsor-emblem"],["src","assets/images/sponsors/lef-sponsor.png","alt","LEF sponsor p\xE5 Patreon","width","640","height","611","loading","lazy"],[1,"sponsor-copy"],["id","sponsor-title"],[1,"sponsor-lead"],[1,"sponsor-benefits"],["href","https://www.patreon.com/cw/u64413595/membership","target","_blank","rel","noopener noreferrer",1,"valhel-button"],[1,"sponsor-thanks"],["aria-labelledby","world-title",1,"behind-stories"],[1,"world-section"],["id","world-title"],[1,"map-feature","media-copy-layout"],[1,"map-feature-image"],["src","assets/images/valhel-map/overview.jpg","alt","Kort over Valhel","width","849","height","1200","loading","lazy","decoding","async"],[1,"map-feature-copy"],["id","map-feature-title"],["type","button","aria-haspopup","dialog",1,"valhel-button",3,"click"],["aria-label","Kom i gang med LEF",1,"explore-grid"],["href","https://www.patreon.com/c/u64413595/shop","target","_blank","rel","noopener noreferrer"],["type","button","aria-haspopup","dialog",1,"map-explore",3,"click","disabled"],[1,"map-box-title"],[1,"map-box-copy"],["id","scenarier","aria-labelledby","games-title","aria-roledescription","karussel",1,"game-carousel"],["id","games-title"],[1,"carousel-controls"],[1,"download-nav"],["role","tablist","aria-label","V\xE6lg downloadkategori",1,"download-tabs"],["type","button","role","tab","aria-controls","game-track",3,"click"],["id","game-track","tabindex","0","role","region",1,"game-track"],["aria-roledescription","slide",1,"game-card"],["aria-labelledby","radio-title",1,"ekkonet-section"],[3,"item","apiUrl","baseUrl","show","closeCallback"],[1,"featured-poster",3,"routerLink"],["fetchpriority","high",3,"src","alt"],[1,"series-copy"],["aria-hidden","true",1,"status-dot"],["id","current-title"],[3,"series-lead"],[1,"valhel-button",3,"routerLink"],["aria-hidden","true"],[1,"story-poster"],["loading","lazy",3,"src","alt"],[1,"story-genre"],["type","button","aria-controls","game-track","aria-label","Vis forrige materiale",3,"click"],["type","button","aria-controls","game-track","aria-label","Vis n\xE6ste materiale",3,"click"],[1,"game-poster"],["loading","lazy","decoding","async",3,"src","alt"],["type","button","aria-haspopup","dialog",1,"valhel-button","game-download"],[1,"valhel-button","game-download",3,"routerLink"],[1,"valhel-button","game-download",3,"href"],["type","button","disabled","",1,"valhel-button","game-download"],["type","button","aria-haspopup","dialog",1,"valhel-button","game-download",3,"click"],["id","radio-title"],[1,"valhel-radio"],["aria-hidden","true",1,"radio-speaker"],[1,"radio-console"],["role","img","aria-label","Mauritz Radio \u2013 producentm\xE6rke",1,"radio-maker"],["viewBox","-8 0 316 88","aria-hidden","true","focusable","false"],["fill","none","stroke","currentColor","stroke-width","1.4"],["transform","translate(-18 0)","d","M16 32h68l12 12-12 12H16M26 40h52M26 48h52"],["transform","translate(18 0)","d","M284 32h-68l-12 12 12 12h68M274 40h-52M274 48h-52"],["d","M102 65h96M114 70h72"],["x","150","y","55","text-anchor","middle",1,"maker-name"],["x","150","y","84","text-anchor","middle",1,"maker-caption"],[1,"radio-display"],[1,"radio-on-air"],["aria-hidden","true",1,"radio-dial"],["id","radio-track-label",1,"radio-menu-label"],[1,"radio-track-menu"],["aria-describedby","radio-track-label"],[1,"radio-track-options"],["type","button",3,"selected"],["hidden","","preload","metadata",3,"error","loadedmetadata","canplay","durationchange","timeupdate","playing","pause","ended","src"],["role","group","aria-label","Betjen Ekkonet",1,"radio-player"],["type","button",1,"radio-play",3,"click"],["viewBox","0 0 24 24","width","24","height","24","fill","currentColor","aria-hidden","true"],["d","M6 4h4v16H6zm8 0h4v16h-4z"],["d","M7 3v18l15-9z"],[1,"radio-timeline"],[1,"radio-times"],["type","range","min","0","step","1","aria-label","Placering i musiknummeret",3,"input","max","value","disabled"],[1,"radio-volume"],["for","radio-volume"],["id","radio-volume","type","range","min","0","max","1","step","0.01",3,"input","value"],["type","button",1,"radio-autoplay",3,"click"],["type","button",1,"radio-autoplay"],["target","_blank","rel","noopener",1,"radio-autoplay","radio-download",3,"href","download"],["role","alert"],["type","button",3,"click"],[3,"dismissed"]],template:function(i,r){if(i&1){let o=ke();h(0,"main",3)(1,"section",4)(2,"div",5)(3,"p",6),p(4,"Danske fantasy lydserier \xB7 Podcast \xB7 Rollespil"),g(),h(5,"h1",7)(6,"span",8),p(7,"LEF \u2013 Levende Eventyr & Fantasi"),g(),O(8,"br"),p(9," Dansk fantasy lydserie "),O(10,"br"),h(11,"em"),p(12,"Velkommen til Valhel"),g()(),h(13,"p",9),p(14,"Lyt gratis til danske fantasy lydserier som podcast fra en verden formet af rollespil. Ingen ved hvordan historien ender, f\xF8r den er fortalt."),g(),h(15,"p",9),p(16,"Du beh\xF8ver hverken kende Valhel eller spille rollespil for at lytte med."),g(),h(17,"a",10),Xe(),h(18,"svg",11),O(19,"path",12)(20,"rect",13)(21,"rect",14),g(),Et(),h(22,"span")(23,"strong"),p(24,"Begynd historien her"),g(),O(25,"br"),h(26,"small"),p(27,"Abonn\xE9r gratis p\xE5 LEF lydserier i din podcast-app"),g()()(),h(28,"p",15),p(29,"Levende Eventyr & Fantasi \xB7 Siden 1986"),g()(),O(30,"div",16),g(),h(31,"div",17),P(32,cV,17,9,"section",18)(33,uV,7,1,"section",19),O(34,"app-story-samples"),P(35,dV,5,2,"aside",20),h(36,"section",21)(37,"div",22)(38,"div")(39,"p",6),p(40,"Find din n\xE6ste fort\xE6lling"),g(),h(41,"h2",23),p(42,"Flere lydserier fra Valhel"),g()(),h(43,"a",24),p(44,"Alle serier"),g()(),P(45,fV,2,0,"p",25)(46,pV,2,0,"p",25)(47,hV,2,0,"p"),h(48,"div",26),Ce(49,gV,8,7,"a",27,sV),g(),P(51,yV,1,2,"app-lef-anniversary",28),P(52,vV,1,1,"app-lef-anniversary",29),g(),h(53,"section",30)(54,"div",31),O(55,"img",32),g(),h(56,"div",33)(57,"p",6),p(58,"Du holder historierne i live"),g(),h(59,"h2",34),p(60," Som sponsor er du "),O(61,"br"),p(62," livsnerven i LEF "),g(),h(63,"p",35),p(64,"Du kan h\xF8re LEF gratis, men det er ikke gratis at producere det."),g(),h(65,"p"),p(66," N\xE5r du st\xF8tter LEF p\xE5 Patreon, g\xF8r du det muligt for mig at skabe og dele nye historier fra Valhel. Bag hver episode ligger tid, arbejde og udgifter. Med din st\xF8tte er du med til at sikre, at s\xE5 meget som muligt fortsat er gratis for alle. "),g(),h(67,"div",36)(68,"h3"),p(69,"Som sponsor f\xE5r du"),g(),h(70,"ul")(71,"li"),p(72,"Eksklusive podcasts i Skattekisten"),g(),h(73,"li"),p(74,"PDF-materialer og downloads fra shoppen"),g(),h(75,"li"),p(76,"Tidlig adgang til nye udgivelser"),g()()(),h(77,"p"),p(78," Du f\xE5r de samme fordele, uanset hvor meget du st\xF8tter med. Du v\xE6lger det bel\xF8b, der passer til dine muligheder. Har du brede skuldre, kan du b\xE6re lidt mere \u2014 men uanset bel\xF8bet g\xF8r du en forskel. "),g(),h(79,"a",37),p(80,"Bliv sponsor p\xE5 Patreon"),g(),h(81,"p",38),p(82,"Tak, fordi du er med til at holde historierne i live."),g()()(),h(83,"section",39)(84,"div",40)(85,"div")(86,"p",6),p(87,"Bag fort\xE6llingerne"),g(),h(88,"h2",41),p(89," Verdenen hedder Valhel. "),O(90,"br"),p(91," Historien bliver stadig fortalt. "),g()(),h(92,"div")(93,"p"),p(94," I 1986 begyndte jeg at fort\xE6lle en historie. Den bliver stadig fortalt. Jeg hedder Jacob Octavius Jarlskov, og sammen med spillerne ved mit bord har jeg gennem \xE5rene givet liv til Valhel. "),g(),h(95,"p"),p(96," Deres valg, dr\xF8mme og fejltagelser har formet verdenen og er blevet til nye fort\xE6llinger. Valhel er pulp fiction, hvor fantasy, manateknologi og bioalkymi m\xF8des, og hvor karakterernes handlinger s\xE6tter spor. "),g(),h(97,"p"),p(98,"I mine fantasy lydserier og podcasts inviterer jeg dig indenfor. Lyt med, eller skab dine egne historier i Valhel ved spillebordet."),g()()(),h(99,"div",42)(100,"div",43),O(101,"img",44),g(),h(102,"div",45)(103,"p",6),p(104,"Find vej i Valhel"),g(),h(105,"h2",46),p(106,"Se Valhelkortet"),g(),h(107,"p"),p(108,"G\xE5 p\xE5 opdagelse i Valhels lande og byer. \xC5bn det interaktive kort, zoom ind, og se verdenen bag fort\xE6llingerne."),g(),h(109,"button",47),X("click",function(){return r.mapOpen.set(!0)}),p(110,"\xC5bn Valhelkortet"),g()()(),h(111,"nav",48)(112,"a",49)(113,"span",6),p(114,"01 / Tag Valhel med hjem"),g(),h(115,"h3"),p(116,"LEF produkter"),g(),h(117,"p"),p(118,"K\xF8b reglerne til LEF og andet materiale som PDF i LEF-butikken. \xD8nsker du materialet p\xE5 tryk, s\xE5 skriv til [email protected]."),g()(),h(119,"button",50),X("click",function(){return r.openPhilosophy()}),h(120,"span",6),p(121,"02 / Filosofien bag spillet"),g(),h(122,"span",51),p(123,"Hvad er LEF?"),g(),h(124,"span",52),p(125,"L\xE6s om rollespillet LEF, filosofien bag og en verden, der formes af spillernes valg. Du finder ogs\xE5 sammenligninger med andre rollespil."),g()()()(),h(126,"section",53)(127,"div",22)(128,"div")(129,"p",6),p(130,"Materiale fra Valhel"),g(),h(131,"h2",54),p(132,"Udforsk og hent fra LEF"),g()(),P(133,_V,5,0,"div",55),g(),h(134,"div",56)(135,"div",57)(136,"button",58),X("click",function(){V(o);let a=Le(152);return j(r.selectDownloadTab("scenarios",a))}),p(137," Scenarier "),h(138,"span"),p(139),g()(),h(140,"button",58),X("click",function(){V(o);let a=Le(152);return j(r.selectDownloadTab("other",a))}),p(141," Andet materiale "),h(142,"span"),p(143),g()(),h(144,"button",58),X("click",function(){V(o);let a=Le(152);return j(r.selectDownloadTab("products",a))}),p(145," LEF p\xE5 tryk "),h(146,"span"),p(147),g()()()(),P(148,bV,2,0,"p",25)(149,EV,2,0,"p",25)(150,CV,2,1,"p"),h(151,"div",59,0),Ce(153,IV,8,4,"article",60,nx),g()(),P(155,PV,30,6,"section",61),g(),P(156,FV,1,5,"app-detail-modal",62),g(),P(157,VV,1,0,"app-valhel-map")}if(i&2){let o,s,a,l;y(32),F((o=r.currentSeries())?32:33,o),y(3),F(r.trollMessage?35:-1),y(10),F(r.storiesLoading()?45:r.storiesFailed()?46:r.featuredStories().length?-1:47),y(4),we(r.featuredStories()),y(2),F((s=r.winterStories())?51:-1,s),y(),F((a=r.anniversary())?52:-1,a),y(67),H("disabled",!r.philosophyItem()),y(14),F(r.activeDownloadCount()>1?133:-1),y(3),tt("active",r.downloadTab()==="scenarios"),De("aria-selected",r.downloadTab()==="scenarios"),y(3),k(r.scenarioDownloads().length),y(),tt("active",r.downloadTab()==="other"),De("aria-selected",r.downloadTab()==="other"),y(3),k(r.otherDownloads().length),y(),tt("active",r.downloadTab()==="products"),De("aria-selected",r.downloadTab()==="products"),y(3),k(r.products().length),y(),F(r.gamesLoading()?148:r.gamesFailed()?149:r.games().length?-1:150),y(3),De("aria-label",r.downloadTab()==="products"?"LEF p\xE5 tryk \u2013 rul vandret for at se flere":"Materialer til download \u2013 rul vandret for at se flere"),y(2),we(r.games()),y(2),F((l=r.radio())?155:-1,l),y(),F(r.showModal?156:-1),y(),F(r.mapOpen()?157:-1)}},dependencies:[Qd,tx,ex,JS,XS],encapsulation:2})}}return t})();var rx=(()=>{class t extends Ot{constructor(){super()}hentCountryNames(){let e=this.API_URL+Pe.NAMES_URL;return this.httpClient.get(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var jV=t=>({display:t});function UV(t,n){if(t&1&&(h(0,"li"),p(1),g()),t&2){let e=n.$implicit;y(),k(e)}}function BV(t,n){if(t&1&&(h(0,"div",7)(1,"div",8),p(2,"male female"),g(),h(3,"ul",9),Ce(4,UV,2,1,"li",null,it),g()()),t&2){let e=b();y(4),we(e.country.female_names)}}function HV(t,n){if(t&1&&(h(0,"li"),p(1),g()),t&2){let e=n.$implicit;y(),k(e)}}
84function $V(t,n){if(t&1&&(h(0,"li"),p(1),g()),t&2){let e=n.$implicit;y(),k(e)}}function zV(t,n){if(t&1&&(h(0,"div",7)(1,"div",8),p(2,"female"),g(),h(3,"ul",10),Ce(4,HV,2,1,"li",null,it),g()(),h(6,"div",11)(7,"div",8),p(8,"male"),g(),h(9,"ul",12),Ce(10,$V,2,1,"li",null,it),g()()),t&2){let e=b();y(4),we(e.country.female_names),y(6),we(e.country.male_names)}}var ox=(()=>{class t{constructor(){this.show=!1,this.closeCallback=()=>!1}ngOnInit(){console.log("==>> NamesModalComponent.ngOnInit() - country : ",this.country)}ngOnDestroy(){console.log("==>> NamesModalComponent.ngOnDestroy() - exiting")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-names-modal"]],inputs:{apiUrl:"apiUrl",country:"country",show:"show",closeCallback:"closeCallback"},decls:11,vars:11,consts:[["id","popoverlay",1,"popoverlay",3,"ngStyle"],[1,"popup"],["type","button","aria-label","Luk vinduet",1,"close",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","aria-hidden","true","focusable","false",1,"close-icon"],["d","M6 6l12 12M18 6L6 18"],[1,"content"],[3,"src","alt"],[1,"female_box"],[1,"names_gender","material-icons"],[2,"list-style-type","none"],[1,"names_female",2,"list-style-type","none"],[1,"male_box"],[1,"names_male",2,"list-style-type","none"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1)(2,"h1"),p(3),g(),h(4,"button",2),X("click",function(){return r.closeCallback()}),Xe(),h(5,"svg",3),O(6,"path",4),g()(),Et(),h(7,"div",5),O(8,"img",6),P(9,BV,6,0,"div",7),P(10,zV,12,0),g()()()),i&2&&(H("ngStyle",yn(9,jV,r.show?"block":"none")),y(3),k(r.country.country),y(5),H("src",Rt("",r.apiUrl,"images/names/",r.country.image),ve)("alt",gn("",r.country.country,"s placering")),y(),F(r.country.unisex?9:-1),y(),F(r.country.unisex?-1:10))},dependencies:[Wi],encapsulation:2,changeDetection:1})}}return t})();function GV(t,n){if(t&1&&(U(0,"div",6),rt(1,"video",7),$()),t&2){let e=b(2);y(),Be("src",e.activeVideoUrl,ve)("autoplay",!0)("muted",!0)}}function qV(t,n){t&1&&(U(0,"div",6),rt(1,"img",8),$())}function WV(t,n){if(t&1&&(U(0,"div",0)(1,"div",1)(2,"table")(3,"caption",2),p(4,"Lefkanalen logo"),$(),U(5,"thead",2)(6,"tr")(7,"th"),p(8,"Lefkanalen logo"),$(),U(9,"th"),p(10,"Sidebeskrivelse"),$()()(),U(11,"tbody")(12,"tr")(13,"td"),rt(14,"img",3),$(),U(15,"td",4),rt(16,"span",5)(17,"br")(18,"h1",5),$()()()()(),P(19,GV,2,3,"div",6),P(20,qV,2,0,"div",6),$()),t&2){let e=b();y(16),Be("innerHTML",e.flavourText,fi),y(2),Be("innerHTML",e.pageTitle,fi),y(),F(e.showMovie&&e.activeVideoUrl?19:-1),y(),F(e.showMovie?-1:20)}}var Nn=(()=>{class t{constructor(){this.flavourText="Levende Eventyr&lt;br&gt;& Fantasi",this.pageTitle=void 0,this.showMovie=!1,this.showHeader=!0,this.headerImage=void 0,this.headerIcon=void 0,this.activeVideo=void 0,this.activeVideoUrl=void 0,this.topmovies=[],this.frontService=v(Rf)}ngOnInit(){this.frontService.hentTopMovies().subscribe({next:e=>{this.topmovies=e.topmovies.map(i=>`video/topmovie/${i}`),this.topmovies.length>0&&(this.activeVideo=this.topmovies[Math.floor(Math.random()*this.topmovies.length)]),J.production?this.activeVideoUrl="https://www.lefnet.dk/"+this.activeVideo:this.activeVideoUrl="http://localhost:4200/assets/"+this.activeVideo},error:e=>{console.error("==>> MovieboxComponent.ngOnInit() - hentTopMovies() - error : ",e)}})}ngAfterViewInit(){if(this.showHeader){let e=document.getElementById("headerIcon");e.src="assets/images/icons/"+this.headerIcon}if(!this.showMovie&&this.showHeader){let e=document.getElementById("headerImage");e.src="assets/images/pageheaders/"+this.headerImage}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-moviebox"]],inputs:{flavourText:"flavourText",pageTitle:"pageTitle",showMovie:"showMovie",showHeader:"showHeader",headerImage:"headerImage",headerIcon:"headerIcon"},decls:1,vars:1,consts:[[1,"moviebox"],[1,"lefover"],[1,"sr-only"],["src","assets/images/icons/lefkanalen_logo_shadow.png","id","headerIcon","alt","lefkanalen"],[1,"lefovertext"],[3,"innerHTML"],[1,"moviescreen"],["id","topvideo","loop","auto","preload","metadata",1,"topvideo","banner",3,"src","auto
84play","muted"],["src","assets/images/pageheaders/rulehead_regler.jpg","id","headerImage","alt","LEF regler"]],template:function(i,r){i&1&&P(0,WV,21,4,"div",0),i&2&&F(r.showHeader?0:-1)},encapsulation:2,changeDetection:1})}}return t})();function KV(t,n){if(t&1){let e=ke();h(0,"a",12),X("click",function(){let r=V(e).$implicit,o=b();return j(o.displayModal(r))}),O(1,"img",13),h(2,"div",14),p(3),g()()}if(t&2){let e=n.$implicit,i=n.$index,r=b();H("id",Rt("",i,"-",e.id)),y(),H("src",Rt("",r._apiUrl,"images/names/",e.image),ve)("alt",gn("",e.country,"s placering")),y(2),k(e.country)}}function YV(t,n){if(t&1&&O(0,"app-names-modal",11),t&2){let e=b();H("country",e.modalItem)("apiUrl",e._apiUrl)("show",e.showModal)("closeCallback",e.toggleModal)}}var sx=(()=>{class t{constructor(){this._apiUrl=void 0,this._baseUrl=void 0,this.showModal=!1,this.namesService=v(rx),this.toggleModal=()=>(this.showModal=!this.showModal,!0)}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this.namesService.hentCountryNames().subscribe(e=>{this.countryNames=e})}displayModal(e){this.modalItem=e,this.toggleModal()}switchPage(){let e=document.getElementById("info-full-text");e.style.display==="none"?e.style.display="block":e.style.display="none"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-names"]],decls:41,vars:8,consts:[[1,"wrapper"],[3,"flavourText","pageTitle","headerIcon","headerImage","showMovie"],[1,"main-container"],[1,"intro-box"],[1,"info-accordion",3,"click","keydown.enter","keydown.space"],["id","info-full-text",1,"info-accordionpanel"],[1,"intro-container"],["src","assets/images/octa.png","alt","Jacob Octavius Jarlskov",2,"width","100px"],[1,"intro-txt"],["id","name-box",1,"box"],[1,"medie1","thumbnail",3,"id"],[3,"country","apiUrl","show","closeCallback"],[1,"medie1","thumbnail",3,"click","id"],[3,"src","alt"],[1,"boxtext"]],template:function(i,r){i&1&&(h(0,"div",0),O(1,"app-moviebox",1),h(2,"div",2)(3,"div",3)(4,"div",4),X("click",function(){return r.switchPage()})("keydown.enter",function(){return r.switchPage()})("keydown.space",function(){return r.switchPage()}),h(5,"p")(6,"b"),p(7,"Levende Eventyr & Fantasi"),g(),p(8," er et dansk rollespil fra 1986 og det er historierne herfra, der udg\xF8r grundlaget for de historier og fort\xE6llinger LEF producerer i form af podcast, youtubefilm, lefklip, skrifter, b\xF8ger og scenarier. "),h(9,"b"),p(10,"L\xE6s mere..."),g()()(),h(11,"div",5)(12,"p"),O(13,"br"),p(14,"Projektet g\xE5r ud p\xE5 at levere de historier, der opst\xE5r gennem vores rollespil og p\xE5 den m\xE5de formidle en moderne dansk eventyrstradition. Til det form\xE5l sikrer en r\xE6kke trofaste rollespillere en konstant udvikling og forandring, mens udvalgte spillere samles p\xE5 kryds og tv\xE6rs af grupperne, til at indspille podcast-historierne. Det mig, "),h(15,"b"),p(16,"Jacob Octavius Jarlskov"),g(),p(17,", der er skaberen af b\xE5de rollespillet og Valhel, som er den verden, der spilles i. Det er undertegnede, som skriver historierne, afvikler dem som mester, klipper optagelserne og designer lyduniverset - det er kort sagt et fuldtidsarbejde. Helt alene er jeg naturligvis ikke, med mig har jeg, udover mine medspillere, de uundv\xE6rlige "),h(18,"b"),p(19,"sponsorer"),g(),p(20,". "),h(21,"b"),p(22,"Sponsorerne"),g(),p(23," er livsnerven i projektet, uden dem ville det store arbejde slet ikke kunne gennemf\xF8res. "),h(24,"b"),p(25,"LEF"),g(),p(26," er et unikt dansk rollespil og eventyr. Husk, du kan ogs\xE5 blive sponsor og f\xE5 fordele og f\xE5 din rolle i historien - vi har brug for dig. "),g(),h(27,"p")(28,"b"),p(29,"Valhel"),g(),p(30," er en rollespilsverden baseret p\xE5 mere end tredive \xE5rs rollespil. P\xE5 den m\xE5de er Valhels udvikling og historie skabt af mere end hundrede spillere gennem 35 \xE5r. Der er s\xE5ledes blevet spillet i Valhel, fra hesten var eneste transportmiddel og m\xF8llen det st\xF8rste mekaniske vidunder, helt frem til den f\xF8rste m\xE5nerejse, bioalkymien, manateknologien og rumteknologien. De mange historier, der spilles i Valhel, bliver s\xE5ledes tilsammen: "),h(31,"b"),p(32,"Den store historie om Valhel."),g()(),h(33,"div",6),O(34,"img",7),h(35,"div",8),p(36,"Jacob Octavius Jarlskov"),g()()()(),h(37,"div",9),Ce(38,KV,4,9,"a",10,it),g(),P(40,YV,1,4,"app-names-modal",11),g()()),i&2&&(y(),H("flavourText","Levende Eventyr<br>& fantasi")("pageTitle","Rollespil \u2022 Navne i Valhel")("headerIcon","lefkanalen_logo_shadow.png")("headerImage","rulehead_navne.jpg")("showMovie",!1),y(10),et("display","none"),y(27),we(r.countryNames),y(2),F(r.showModal?40:-1))},dependencies:[Nn,ox],encapsulation:2,changeDetection:1})}}return t})();
84var Cv=Ff(Cy()),lx=Ff(ax());Cv.default.extend(lx.default);var Of=(()=>{class t{constructor(){this.stop$=new Ie,this.audioObj=new Audio,this.audioEvents=["ended","error","play","playing","pause","timeupdate","canplay","loadedmetadata","loadstart"],this.state={playing:!1,readableCurrentTime:"",readableDuration:"",duration:void 0,currentTime:void 0,canplay:!1,error:!1},this.stateChange=new St(this.state);let e=v($s).register(this.audioObj);v(je).onDestroy(e)}resetState(){this.state={playing:!1,readableCurrentTime:"",readableDuration:"",duration:void 0,currentTime:void 0,canplay:!1,error:!1}}getState(){return this.stateChange.asObservable()}updateStateEvents(e){switch(e.type){case"canplay":this.state.duration=this.audioObj.duration,this.state.readableDuration=this.formatTime(this.state.duration),this.state.canplay=!0;break;case"playing":this.state.playing=!0;break;case"pause":this.state.playing=!1;break;case"timeupdate":this.state.currentTime=this.audioObj.currentTime,this.state.readableCurrentTime=this.formatTime(this.state.currentTime);break;case"error":this.resetState(),this.state.error=!0;break}this.stateChange.next(this.state)}playStream(e){return this.streamObservable(e).pipe(ki(this.stop$))}play(){this.audioObj.play()}pause(){this.audioObj.pause()}stop(){this.stop$.next()}seekTo(e){this.audioObj.currentTime=e}formatTime(e,i="HH:mm:ss"){return Cv.default.unix(e).utc().format(i)}streamObservable(e){return new he(i=>{this.audioObj.src=e,this.audioObj.load(),this.audioObj.play();let r=o=>{this.updateStateEvents(o),i.next(o)};return this.addEvents(this.audioObj,this.audioEvents,r),()=>{this.audioObj.pause(),this.audioObj.currentTime=0,this.removeEvents(this.audioObj,this.audioEvents,r),this.resetState()}})}addEvents(e,i,r){i.forEach(o=>{e.addEventListener(o,r)})}removeEvents(e,i,r){i.forEach(o=>{e.removeEventListener(o,r)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function QV(t,n){if(t&1&&(h(0,"details")(1,"summary"),p(2,"Medvirkende"),g(),O(3,"div",11),g()),t&2){let e=b(2);y(3),H("innerHTML",e.podcastCategory.actors,fi)}}function ZV(t,n){if(t&1&&(h(0,"span",14),p(1),g()),t&2){let e=b().$implicit;y(),k(e.summary)}}function XV(t,n){if(t&1){let e=ke();h(0,"li")(1,"button",12),X("click",function(){let r=V(e),o=r.$implicit,s=r.$index,a=b(2);return j(a.openFile(o,s))}),h(2,"span",13),p(3),g(),h(4,"span")(5,"strong"),p(6),g(),P(7,ZV,2,1,"span",14),g(),h(8,"span",15),p(9),g()()()}if(t&2){let e=n.$implicit,i=n.$index,r=b(2);y(),tt("selected",r.currentFile?.index===i),De("aria-current",r.currentFile?.index===i?"true":null),y(2),k(i+1),y(3),k(e.name),y(),F(e.summary?7:-1),y(2),k(e.itunes_duration)}}function JV(t,n){t&1&&(h(0,"li"),p(1,"Der er endnu ingen episoder tilg\xE6ngelige."),g())}function e2(t,n){if(t&1){let e=ke();h(0,"button",26),X("click",function(){V(e);let r=b(3);return j(r.pause())}),p(1,"\u2161"),g()}}function t2(t,n){if(t&1){let e=ke();h(0,"button",27),X("click",function(){V(e);let r=b(3);return j(r.play())}),p(1,"\u25B6"),g()}}function n2(t,n){t&1&&(h(0,"p",25),p(1,"Episoden kunne ikke afspilles. V\xE6lg en episode for at pr\xF8ve igen."),g())}function i2(t,n){if(t&1){let e=ke();h(0,"section",10)(1,"div",16)(2,"span",5),p(3),g(),h(4,"strong"),p(5),g()(),h(6,"div",17)(7,"button",18),X("click",function(){V(e);let r=b(2);return j(r.previous())}),p(8,"\u276E"),g(),P(9,e2,2,0,"button",19)(10,t2,2,0,"button",20),h(11,"button",21),X("click",function(){V(e);let r=b(2);return j(r.next())}),p(12,"\u276F"),g()(),h(13,"div",22)(14,"span"),p(15),g(),h(16,"div",23)(17,"ngx-slider",24),cs("valueChange",function(r){V(e);let o=b(2);return Ka(o.value,r)||(o.value=r),j(r)}),X("userChangeStart",function(){V(e);let r=b(2);return j(r.onUserChangeStart())})("userChangeEnd",function(r){V(e);let o=b(2);return j(o.onUserChangeEnd(r))}),g()(),h(18,"span"),p(19),g()(),P(20,n2,2,0,"p",25),g()}if(t&2){let e=b(2);y(3),k(e.state?.playing?"Du lytter til":"Klar til afspilning"),y(2),k(e.currentFile?.file?.name),y(2),H("disabled",e.isFirstPlaying),y(2),F(e.state?.playing?9:10),y(2),H("disabled",e.isLastPlaying),y(4),k(e.state?.readableCurrentTime||"00:00"),y(2),ls("value",e.value),H("options",e.options),y(2),k(e.state?.readableDuration||"00:00"),y(),F(e.state?.error?20:-1)}}function r2(t,n){if(t&1&&(h(0,"section",3),O(1,"img",4),h(2,"div")(3,"p",5),p(4),g(),h(5,"h1",6),p(6),g(),h(7,"p",7),p(8),g(),P(9,QV,4,1,"details"),g()(),h(10,"section",8)(11,"p",5),p(12,"Historien, episode for episode"),g(),h(13,"h2",9),p(14,"Lyt til serien"),g(),h(15,"ol"),Ce(16,XV,10,7,"li",null,$a,!1,JV,2,0,"li"),g()(),P(19,i2,21,10,"section",10)),t&2){let e=b();y(),H("src",e.podcastCategory.image_url,ve)("alt",e.podcastCategory.title+" \u2013 serieplakat"),y(3),k(e.podcastCategory.genre||"En fort\xE6lling fra Valhel"),y(2),k(e.podcastCategory.title),y(2),k(e.podcastCategory.description),y(),F(e.podcastCategory.actors?9:-1),y(7),we(e.files),y(3),F(e.files.length?19:-1)}}function o2(t,n){if(t&1&&(h(0,"p",2),p(1),g()),t&2){let e=b();y(),k(e.loadFailed?"Serien kunne ikke hentes. Pr\xF8v igen senere.":"Henter serien \u2026")}}var cx=(()=>{class t{constructor(){this._apiUrl=void 0,this._baseUrl=void 0,this.loadFailed=!1,this.displayCategory=!1,this.podcastCategories=[],this.options={floor:0,ceil:100,step:1,showTicks:!1,hideLimitLabels:!0,showSelectionBar:!0,translate:e=>this.formatTime(e)},this.value=0,this.files=[],this.currentFile={}
84,this.updateValue=!0,this.canPlay=!1,this.podcastService=v(zs),this.route=v(bn),this.router=v(kn),this.audioService=v(Of),this._apiUrl=J.apiUrl,this.state={},this.state=void 0,this.value=0,this.audioService.seekTo(0)}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this.categoryFolder=this.route.snapshot.paramMap.get("id"),this.podcastService.getPodcastCategories().subscribe({next:e=>{e.podcastCategories?.[0]?.podcastitems?.[0]&&console.log("===> First item from API:",e.podcastCategories[0].podcastitems[0]),this.podcastCategories=e.podcastCategories,this.buildPodcastCategoryList(),this.findCategory(this.categoryFolder),this.podcastCategory&&this.configurePlayer()},error:e=>{this.loadFailed=!0}})}configurePlayer(){this.audioService.stop(),this.audioService.seekTo(0),this.files=[],this.value=0,this.state=void 0,this.podcastCategory.image_url=this._apiUrl+"podcast/lefcast_media/"+this.podcastCategory.lefcastfolder+"/"+this.podcastCategory.itunes_image,this.podcastCategory.podcastitems.forEach(i=>{i.pub_date!==void 0&&i.pub_date!==null&&i.pub_date!==""&&this.files.push({url:i.mediefil,name:i.title,artist:i.author,description:i.description,summary:i.summary,itunes_duration:i.itunes_duration})});let e=this.files[0];this.currentFile={index:0,file:e},this.setFirstLastPlaying(),this.subscriptionGetState=this.audioService.getState().subscribe(i=>{this.state=i,i.currentTime!==void 0&&this.updateValue&&(this.value=Math.round(i.currentTime)),this.state.duration!==void 0&&this.options.ceil!==Math.round(this.state.duration)&&this.setNewCeil(Math.round(this.state.duration))})}toggleText(){let e=document.querySelector(".podcast-info"),i=document.querySelector(".show-more");e.classList.toggle("expanded"),e.classList.contains("expanded")?i.textContent="LUK TEKST":i.textContent="L\xC6S MERE"}findCategory(e){let i=this.podcastCategories.find(r=>r.lefcastfolder===e);this.podcastCategory=i,i===void 0&&this.router.navigate(["/podcast"])}formatDanishDate(e){let i=["S\xF8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xF8rdag"],r=["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],o=i[e.getDay()],s=e.getDate(),a=r[e.getMonth()],l=e.getFullYear();return`${o} d. ${s} ${a} ${l}`}buildPodcastCategoryList(){this.podcastCategories.forEach(e=>{let i=null;e.podcastitems.forEach(r=>{let o=this._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+r.mediefil;r.subfolder&&(o=this._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+r.subfolder+"/"+r.mediefil),r.mediefil=o,r.description=(r.description??"").replaceAll(/<[^>]*>/g,"");let s=new Date(r.pub_date);(!i||s<i)&&(i=s)}),i&&(e.first_published=this.formatDanishDate(i))})}selectCategory(e){console.log("===> PodcastHomepageComponent.selectCategory() - podcastCategory : ",e),this.podcastCategory=e,this.podcastCategory.image_url=this._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+e.itunes_image,this.displayCategory=!0,window.scrollTo(0,0)}ngOnDestroy(){console.log("===> PodcastHomepageComponent.ngOnDestroy()"),this.audioService.stop(),this.subscriptionGetState?.unsubscribe(),this.subscriptionPlayStream?.unsubscribe()}onUserChangeStart(){this.updateValue=!1}onUserChangeEnd(e){this.audioService.seekTo(e.value),this.updateValue=!0}setNewCeil(e){let i=C({},this.options);i.ceil=e,this.options=i}playStream(e,i){return ne(this,null,function*(){this.subscriptionPlayStream=this.audioService.playStream(e).subscribe(r=>{r?.type==="canplay"&&(this.canPlay=!0,i||this.audioService.pause())})})}openFile(e,i,r=!0){this.currentFile={index:i,file:e},this.audioService.stop(),this.setFirstLastPlaying(),this.playStream(e.url,r)}setFirstLastPlaying(){this.isFirstPlaying=this.currentFile.index===0,this.isLastPlaying=this.currentFile.index===this.files.length-1}pause(){console.log("===> PodcastHomepageComponent.pause()"),this.audioService.pause()}play(){console.log("===> PodcastHomepageComponent.play() - file : ",this.currentFile.file),this.currentFile?.file&&(!this.subscriptionPlayStream||this.subscriptionPlayStream.closed||this.state?.error?this.openFile(this.currentFile.file,this.currentFile.index):this.audioService.play())}stop(){console.log("===> PodcastHomepageComponent.stop()"),this.audioService.stop(),this.options=void 0}formatTime(e){let i=Math.floor(e/3600),r=e%3600,o=Math.floor(r/60),s=Math.floor(r%60),a=i<10?"0"+i:i,l=o<10?"0"+o:o,c=s<10?"0"+s:s;return i>0?a+":"+l+":"+c:"00:"+l+":"+c}next(){if(!this.isLastPlaying&&this.currentFile.index<this.files.length-1){let e=this.currentFile.index+1,i=this.files[e];this.openFile(i,e)}}previous(){if(!this.isFirstPlaying&&this.currentFile.index>0){let e=this.currentFile.index-1,i=this.files[e];this.openFile(i,e)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-podcast-homepage"]],decls:5,vars:1,consts:[[1,"series-page"],["href","/po
84dcast",1,"back-link"],["role","status"],["aria-labelledby","podcast-title",1,"series-heading","media-copy-layout"],[1,"series-poster",3,"src","alt"],[1,"eyebrow"],["id","podcast-title"],[1,"series-description"],["aria-labelledby","episodes-title",1,"series-episodes"],["id","episodes-title"],["aria-label","Podcastafspiller",1,"audio-dock"],[3,"innerHTML"],["type","button",1,"episode",3,"click"],[1,"episode-number"],[1,"episode-summary"],[1,"episode-duration"],[1,"now-playing"],[1,"transport"],["type","button","aria-label","Forrige episode",3,"click","disabled"],["type","button","aria-label","Pause",1,"play"],["type","button","aria-label","Afspil",1,"play"],["type","button","aria-label","N\xE6ste episode",3,"click","disabled"],[1,"timeline"],[1,"series-slider"],[3,"valueChange","userChangeStart","userChangeEnd","value","options"],["role","alert"],["type","button","aria-label","Pause",1,"play",3,"click"],["type","button","aria-label","Afspil",1,"play",3,"click"]],template:function(i,r){i&1&&(h(0,"main",0)(1,"a",1),p(2,"Alle lydserier"),g(),P(3,r2,20,8)(4,o2,2,1,"p",2),g()),i&2&&(y(3),F(r.podcastCategory?3:4))},dependencies:[ff,By],encapsulation:2,changeDetection:1})}}return t})();var ux=(()=>{class t{constructor(){this.files=[{url:"https://api.lefnet.dk/podcast/lefcast_media/vinterfortaellinger/s04_mp3/vintermorke-spot-1.mp3",name:"Vinterm\xF8rke spot",artist:"LEF"},{url:"https://api.lefnet.dk/podcast/lefcast_media/vinterfortaellinger/mp3/vintemorke-1.mp3",name:"Vinterm\xF8rke 1",artist:"LEF"},{url:"https://api.lefnet.dk/podcast/lefcast_media/vinterfortaellinger/mp3/vintemorke-2.mp3",name:"Vinterm\xF8rke 2",artist:"LEF"},{url:"https://api.lefnet.dk/podcast/lefcast_media/vinterfortaellinger/mp3/vintemorke-3.mp3",name:"Vinterm\xF8rke 3",artist:"LEF"},{url:"https://api.lefnet.dk/podcast/lefcast_media/vinterfortaellinger/mp3/vintemorke-4.mp3",name:"Vinterm\xF8rke 4",artist:"LEF"},{url:"https://api.lefnet.dk/podcast/lefcast_media/vinterfortaellinger/mp3/vintemorke-5.mp3",name:"Vinterm\xF8rke 5",artist:"LEF"},{url:"https://api.lefnet.dk/podcast/lefcast_media/vinterfortaellinger/mp3/vintemorke-6.mp3",name:"Vinterm\xF8rke 6",artist:"LEF"},{url:"https://api.lefnet.dk/podcast/lefcast_media/vinterfortaellinger/mp3/vintemorke-7.mp3",name:"Vinterm\xF8rke 7",artist:"LEF"}]}getFiles(){return ue(this.files)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var s2=(t,n)=>n.id;function a2(t,n){t&1&&(h(0,"p",8),p(1,"Henter lydserier \u2026"),g())}function l2(t,n){t&1&&(h(0,"p",8),p(1,"Lydserierne kunne ikke hentes. Pr\xF8v igen senere."),g())}function c2(t,n){t&1&&(h(0,"p",8),p(1,"Ingen lydserier matcher din 
84s\xF8gning."),g())}function u2(t,n){if(t&1&&(h(0,"span"),p(1),g()),t&2){let e=b(3).$implicit;y(),k(e.genre)}}function d2(t,n){if(t&1&&(h(0,"a",11),O(1,"img",13),P(2,u2,2,1,"span"),g()),t&2){let e=b(2).$implicit,i=b();H("href","/podcast/"+e.lefcastfolder,ve),De("aria-label","Lyt til "+e.title),y(),H("src",i._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+e.itunes_image,ve)("alt",e.title+" \u2013 serieplakat"),y(),F(e.genre?2:-1)}}function f2(t,n){if(t&1&&(h(0,"span"),p(1),g()),t&2){let e=b(3).$implicit;y(),k(e.genre)}}function p2(t,n){if(t&1&&(h(0,"div",12),O(1,"img",13),P(2,f2,2,1,"span"),g()),t&2){let e=b(2).$implicit,i=b();y(),H("src",i._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+e.itunes_image,ve)("alt",e.title+" \u2013 serieplakat"),y(),F(e.genre?2:-1)}}function h2(t,n){if(t&1&&(h(0,"article",10),P(1,d2,3,5,"a",11)(2,p2,3,3,"div",12),h(3,"h2"),p(4),g()()),t&2){let e=b().$implicit;y(),F(e.podcastitems?.length?1:2),y(3),k(e.title)}}function m2(t,n){if(t&1&&P(0,h2,5,2,"article",10),t&2){let e=n.$implicit;F(e.itunes_image?0:-1)}}var dx=(()=>{class t{constructor(){this._apiUrl=void 0,this._baseUrl=void 0,this.loading=!0,this.loadFailed=!1,this.showModal=!1,this.searchText="",this.podcastCategories=[],this.podcastCategoriesFiltered=[],this.displayCategory=!1,this.audioService=v(Of),this.cloudService=v(ux),this.podcastService=v(zs),this.toggleModal=()=>(this.showModal=!this.showModal,!0),this._apiUrl=J.apiUrl}ngOnInit(){console.log("===> PodcastComponent.ngOnInit()"),this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,console.log("===> PodcastComponent.ngOnInit() - _apiUrl",this._apiUrl),console.log("===> PodcastComponent.ngOnInit() - _baseUrl",this._baseUrl),this.podcastService.getPodcastCategories().subscribe({next:e=>{this.podcastCategories=e.podcastCategories.filter(i=>!["lef_podcast","lef_radio","lef_40","vinterfortaellinger"].includes(i.lefcastfolder)),this.buildPodcastCategoryList(),this.loading=!1},error:e=>{this.loading=!1,this.loadFailed=!0,console.log("===> PodcastComponent.ngOnInit() - err",e)}})}ngOnDestroy(){this.quitCategory()}buildPodcastCategoryList(){this.podcastCategories.forEach(e=>{e.podcastitems.forEach(i=>{let r=this._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+i.mediefil;i.subfolder&&(r=this._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+i.subfolder+"/"+i.mediefil),i.mediefil=r,i.description=(i.description??"").replace(/<[^>]*>/g,"")})}),this.podcastCategoriesFiltered=this.podcastCategories}onKeyUpEvent(e){this.textfilter(e.target.value)}textfilter(e){let i=e.toLowerCase();e?this.podcastCategoriesFiltered=this.podcastCategories.filter(r=>{let o=[];return this.configureSearchTargetList(o,r),!!o.find(a=>a.includes(i))}):this.podcastCategoriesFiltered=this.podcastCategories}resetSearch(){this.podcastCategoriesFiltered=this.podcastCategories,this.searchText=""}configureSearchTargetList(e,i){e.push(i.title.toLowerCase()),e.push((i.subtitle??"").toLowerCase()),e.push((i.summary??"").toLowerCase()),e.push((i.description??"").toLowerCase()),e.push((i.itunes_keywords??"").toLowerCase()),e.push((i.actors??"").toLowerCase())}selectCategory(e){console.log("===> PodcastComponent.selectCategory() - podcastCategory : ",e),this.selectedCategory=e,this.selectedCategory.image_url=this._apiUrl+"podcast/lefcast_media/"+e.lefcastfolder+"/"+e.itunes_image,this.displayCategory=!0,window.scrollTo(0,0)}quitCategory(){this.selectedCategory=void 0,this.displayCategory=!1}switchPage(){let e=document.getElementById("info-full-text");e.style.display==="none"?e.style.display="block":e.style.display="none"}displayModal(e){this.modalPodcastCategory=e,this.toggleModal()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-podcast"]],decls:23,vars:2,consts:[[1,"podcast-library"],["href","/home",1,"back-link"],[1,"library-header"],[1,"eyebrow"],[1,"library-search"],["for","podcast-search"],["id","podcast-search","type","search","placeholder","Titel, kategori eller medvirkende \u2026",3,"ngModelChange","ngModel"],["type","button",3,"click"],["role","status"],[1,"library-grid"],[1,"library-card"],[1,"library-poster",3,"href"],[1,"library-poster"],["loading","lazy",3,"src","alt"]],template:function(i,r){i&1&&(h(0,"main",0)(1,"a",1),p(2,"Tilbage til Valhel"),g(),h(3,"header",2)(4,"p",3),p(5,"Levende Eventyr & Fantasi"),g(),h(6,"h1"),p(7,"Find din n\xE6ste historie"),g(),h(8,"p"),p(9,"Danske fantasy lydserier fra Valhel. V\xE6lg en fort\xE6lling, og tr\xE6d ind i en verden formet af rollespil."),g()(),h(10,"div",4)(11,"label",5),p(12,"S\xF8g blandt lydserierne"),g(),h(13,"div")(14,"input",6),jm(),cs("ngModelChange",function(s){return Ka(r.searchText,s)||(r.searchText=s),s}),X("ngModelChange",function(s){return r.textfilter(s)}),g(),h(15,"button",7),X("click",function(){return r.resetSearch()}),p(16,"Nulstil"),g()()(),P(17,a2,2,0,"p",8)(18,l2,2,0,"p",8)(19,c2,2,0,"p",8),h(20,"div",9),Ce(21,m2,1,1,null,null,s2),g()()),i&2&&(y(14),ls("ngModel",r.searchText),Um(),y(3),F(r.loading?17:r.loadFailed?18:r.podcastCategoriesFiltered.length?-1:19),y(4),we(r.podcastCategoriesFiltered))},dependencies:[Ed,vd,bw,Hg],encapsulation:2,changeDetection:1})}}return t})();var Di=(()=>{class t extends Ot{constructor(){super()}hentRegler(){let e=this.API_URL+Pe.REGLER_URL;return this.httpClient.get(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function y2(t,n){if(t&1&&(h(0,"span"),O(1,"img",26),g()),t&2){let e=b().$implicit,i=b(3);y(),H("src",Rt("",i._apiUrl,"images/items/",e.image),ve)("alt",Ya(e.title))}}function v2(t,n){if(t&1&&(h(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18),p(4),g()()(),h(5,"div",19)(6,"div",20),p(7),g(),h(8,"div",21)(9,"div",22),P(10,y2,2,5,"span"),g()(),h(11,"div",23),p(12),g(),O(13,"div",24),h(14,"div",25),p(15),g()()()),t&2){let e=n.$implicit;y(4),yt("",e.price,"\xA7"),y(3),k(e.title),y(3),F(e.image?10:-1),y(2),k(e.effect),y(3),k(e.description)}}function _2(t,n){if(t&1&&(h(0,"div",12)(1,"p"),p(2),g()(),h(3,"p"),p(4),g(),h(5,"div",13)(6,"div",14),Ce(7,v2,16,5,"div",15,it),g()()),t&2){let e=n.$implicit;y(2),k(e.title),y(2),k(e.description),y(3),we(e.items)}}function b2(t,n){if(t&1){let e=ke();h(0,"section",9)(1,"header",10),X("click",function(){let r=V(e).$index,o=b();return j(o.switch(r))})("keydown.enter",function(){let r=V(e).$index,o=b();return j(o.switch(r))})("keydown.space",function(){let r=V(e).$index,o=b();return j(o.switch(r))}),p(2),h(3,"p"),p(4),g()(),h(5,"div",11)(6,"p"),p(7),g(),Ce(8,_2,9,2,null,null,it),g(),O(10,"hr"),g()}if(t&2){let e=n.$implicit,i=n.$index;y(2),yt(" ",e.title," "),y(2),k(e.subtitle),y(),et("display","none"),H("id",gn("itemcategory-",i)),y(2),k(e.description),y(),we(e.itemsubcategories)}}var fx=(()=>{class t extends rn{constructor(){super(),this._apiUrl=void 0,this._baseUrl=void 0,this.ruleService=v(Di),this.sessionService=v(nn)}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this.sessionService.version?this.version=this.sessionService.version:this.ruleService.hentRegler().subscribe(e=>{this.version=e})}switch(e){let i=document.getElementById(`itemcategory-${e}`);i.style.display==="none"?i.style.display="block":i.style.display="none"}switchPage(){let e=document.getElementById("info-full-text");e.style.display==="none"?e.style.display="block":e.style.display="none"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-grej"]],features:[Je],decls:39,vars:7,consts:[[1,"wrapper"],[3,"flavourText","pageTitle","headerIcon","headerImage","showMovie"],[1,"main-container"],[1,"intro-box"],[1,"info-accordion",3,"click","keydown.enter","keydown.space"],["id","info-full-text",1,"info-accordionpanel"],[1,"intro-container"],["src","assets/images/octa.png","alt","Jacob Octavius Jarlskov",2,"width","100px"],[1,"intro-txt"],["id","one-{0{ charindex }}",1,"wrapper","style"],[1,"accordion","special","active",3,"click","keydown.enter","keydown.space"],[3,"id"],[1,"accordionpanel"],[1,"stack"],[1,"grid"],[1,"card","item"],[1,"itemPriceContainer"],[1,"itemPrice"],[1,"itemText"],[1,"cardcontent"],[1,"itemName"],[1,"cardWrapper"],[1,"cardFrame"],[1,"itemEffect"],[1,"itemLine"],[1,"npcText"],[3,"src","alt"]],template:function(i,r){i&1&&(h(0,"div",0),O(1,"app-moviebox",1),h(2,"div",2)(3,"div",3)(4,"div",4),X("click",function(){return r.switchPage()})("keydown.enter",function(){return r.switchPage()})("keydown.space",function(){return r.switchPage()}),h(5,"p")(6,"b"),p(7,"Levende Eventyr & Fantasi"),g(),p(8," er et dansk rollespil fra 1986 og det er historierne herfra, der udg\xF8r grundlaget for de historier og fort\xE6llinger LEF producerer i form af podcast, youtubefilm, lefklip, skrifter, b\xF8ger og scenarier. "),h(9,"b"),p(10,"L\xE6s mere..."),g()()(),h(11,"div",5)(12,"p"),O(13,"br"),p(14,"Projektet g\xE5r ud p\xE5 at levere de historier, der opst\xE5r gennem vores rollespil og p\xE5 den m\xE5de formidle en moderne dansk eventyrstradition. Til det form\xE5l sikrer en r\xE6kke trofaste rollespillere en konstant udvikling og forandring, mens udvalgte spillere samles p\xE5 kryds og tv\xE6rs af grupperne, til at indspille podcast-historierne. Det mig, "),h(15,"b"),p(16,"Jacob Octavius Jarlskov"),g(),p(17,", der er skaberen af b\xE5de rollespillet og Valhel, som er den verden, der spilles i. Det er undertegnede, som skriver historierne, afvikler dem som mester, klipper optagelserne og designer lyduniverset - det er kort sagt et fuldtidsarbejde. Helt alene er jeg naturligvis ikke, med mig har jeg, udover mine medspillere, de uundv\xE6rlige "),h(18,"b"),p(19,"sponsorer"),g(),p(20,". "),h(21,"b"),p(22,"Sponsorerne"),g(),p(23," er livsnerven i projektet, uden dem ville det store arbejde slet ikke kunne gennemf\xF8res. "),h(24,"b"),p(25,"LEF"),g(),p(26," er et unikt dansk rollespil og eventyr. Husk, du kan ogs\xE5 blive sponsor og f\xE5 fordele og f\xE5 din rolle i historien - vi har brug for dig. "),g(),h(27,"p")(28,"b"),p(29,"Valhel"),g(),p(30," er en rollespilsverden baseret p\xE5 mere end tredive \xE5rs rollespil. P\xE5 den m\xE5de er Valhels udvikling og historie skabt af mere end hundrede spillere gennem 35 \xE5r. Der er s\xE5ledes blevet spillet i Valhel, fra hesten var eneste transportmiddel og m\xF8llen det st\xF8rste mekaniske vidunder, helt frem til den f\xF8rste m\xE5nerejse, bioalkymien, manateknologien og rumteknologien. De mange historier, der spilles i Valhel, bliver s\xE5ledes tilsammen: "),h(31,"b"),p(32,"Den store historie om Valhel."),g()(),h(33,"div",6),O(34,"img",7),h(35,"div",8),p(36,"Jacob Octavius Jarlskov"),g()()()(),Ce(37,b2,11,7,"section",9,it),g()()),i&2&&(y(),H("flavourText","Levende Eventyr<br>& fantasi")("pageTitle","Rollespil \u2022 Grej")("headerIcon","grej.svg")("headerImage","rulehead_grej.jpg")("showMovie",!1),y(10),et("display","none"),y(26),we(r.ver
84sion?.itemcategories))},dependencies:[Nn],encapsulation:2,changeDetection:1})}}return t})();function E2(t,n){if(t&1&&(h(0,"div",14)(1,"div",15)(2,"div",16),p(3),g(),h(4,"div",17),p(5),g(),O(6,"div",18),h(7,"div",19),p(8),g()()()),t&2){let e=n.$implicit;y(3),k(e.title),y(2),k(e.effect),y(3),k(e.description)}}function C2(t,n){if(t&1){let e=ke();h(0,"section",9)(1,"header",10),X("click",function(){let r=V(e).$index,o=b();return j(o.switch(r))})("keydown.enter",function(){let r=V(e).$index,o=b();return j(o.switch(r))})("keydown.space",function(){let r=V(e).$index,o=b();return j(o.switch(r))}),p(2),h(3,"p"),p(4),g()(),h(5,"div",11)(6,"p"),p(7),g(),h(8,"div",12)(9,"div",13),Ce(10,E2,9,3,"div",14,it),g()()(),O(12,"hr"),g()}if(t&2){let e=n.$implicit,i=n.$index;y(2),yt(" ",e.title," "),y(2),k(e.subtitle),y(),et("display","none"),H("id",gn("personalityexpertises-",i)),y(2),k(e.description),y(3),we(e.expertises)}}var px=(()=>{class t extends rn{constructor(){super(),this._apiUrl=void 0,this._baseUrl=void 0,this.ruleService=v(Di),this.sessionService=v(nn)}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this.sessionService.version?this.version=this.sessionService.version:this.ruleService.hentRegler().subscribe(e=>{this.version=e})}switch(e){let i=document.getElementById(`personalityexpertises-${e}`);i.style.display==="none"?i.style.display="block":i.style.display="none"}switchPage(){let e=document.getElementById("info-full-text");e.style.display==="none"?e.style.display="block":e.style.display="none"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-personligheder"]],features:[Je],decls:39,vars:7,consts:[[1,"wrapper"],[3,"flavourText","pageTitle","headerIcon","headerImage","showMovie"],[1,"main-container"],[1,"intro-box"],[1,"info-accordion",3,"click","keydown.enter","keydown.space"],["id","info-full-text",1,"info-accordionpanel"],[1,"intro-container"],["src","assets/images/octa.png","alt","Jacob Octavius Jarlskov",2,"width","100px"],[1,"intro-txt"],["id","one-{0{ charindex }}",1,"wrapper","style"],[1,"accordion","special","active",3,"click","keydown.enter","keydown.space"],[1,"accordionpanel",3,"id"],[1,"stack"],[1,"grid"],[1,"card","item"],[1,"cardcontent"],[1,"itemName"],[1,"itemEffect"],[1,"itemLine"],[1,"npcText"]],template:function(i,r){i&1&&(h(0,"div",0),O(1,"app-moviebox",1),h(2,"div",2)(3,"div",3)(4,"div",4),X("click",function(){return r.switchPage()})("keydown.enter",function(){return r.switchPage()})("keydown.space",function(){return r.switchPage()}),h(5,"p")(6,"b"),p(7,"Levende Eventyr & Fantasi"),g(),p(8," er et dansk rollespil fra 1986 og det er historierne herfra, der udg\xF8r grundlaget for de historier og fort\xE6llinger LEF producerer i form af podcast, youtubefilm, lefklip, skrifter, b\xF8ger og scenarier. "),h(9,"b"),p(10,"L\xE6s mere..."),g()()(),h(11,"div",5)(12,"p"),O(13,"br"),p(14,"Projektet g\xE5r ud p\xE5 at levere de historier, der opst\xE5r gennem vores rollespil og p\xE5 den m\xE5de formidle en moderne dansk eventyrstradition. Til det form\xE5l sikrer en r\xE6kke trofaste rollespillere en konstant udvikling og forandring, mens udvalgte spillere samles p\xE5 kryds og tv\xE6rs af grupperne, til at indspille podcast-historierne. Det mig, "),h(15,"b"),p(16,"Jacob Octavius Jarlskov"),g(),p(17,", der er skaberen af b\xE5de rollespillet og Valhel, som er den verden, der spilles i. Det er undertegnede, som skriver historierne, afvikler dem som mester, klipper optagelserne og designer lyduniverset - det er kort sagt et fuldtidsarbejde. Helt alene er jeg naturligvis ikke, med mig har jeg, udover mine medspillere, de uundv\xE6rlige "),h(18,"b"),p(19,"sponsorer"),g(),p(20,". "),h(21,"b"),p(22,"Sponsorerne"),g(),p(23," er livsnerven i projektet, uden dem ville det store arbejde slet ikke kunne gennemf\xF8res. "),h(24,"b"),p(25,"LEF"),g(),p(26," er et unikt dansk rollespil og eventyr. Husk, du kan ogs\xE5 blive sponsor og f\xE5 fordele og f\xE5 din rolle i historien - vi har brug for dig. "),g(),h(27,"p")(28,"b"),p(29,"Valhel"),g(),p(30," er en rollespilsverden baseret p\xE5 mere end tredive \xE5rs rollespil. P\xE5 den m\xE5de er Valhels udvikling og historie skabt af mere end hundrede spillere gennem 35 \xE5r. Der er s\xE5ledes blevet spillet i Valhel, fra hesten var eneste transportmiddel og m\xF8llen det st\xF8rste mekaniske vidunder, helt frem til den f\xF8rste m\xE5nerejse, bioalkymien, manateknologien og rumteknologien. De mange historier, der spilles i Valhel, bliver s\xE5ledes tilsammen: "),h(31,"b"),p(32,"Den store historie om Valhel."),g()(),h(33,"div",6),O(34,"img",7),h(35,"div",8),p(36,"Jacob Octavius Jarlskov"),g()()()(),Ce(37,C2,13,7,"section",9,it),g()()),i&2&&(y(),H("flavourText","Levende Eventyr<br>& fantasi")("pageTitle","Rollespil \u2022 Karakteren")("headerIcon","personlighed.svg")("headerImage","rulehead_karakter.jpg")("showMovie",!1),y(10),et("display","none"),y(26),we(r.ver
84sion?.personalities))},dependencies:[Nn],encapsulation:2,changeDetection:1})}}return t})();function w2(t,n){if(t&1&&(h(0,"div",13)(1,"div",14),p(2),g(),h(3,"p"),p(4),g(),h(5,"span",15),p(6),g()()),t&2){let e=n.$implicit;et("display","block"),y(2),k(e.title),y(2),k(e.subtitle),y(2),k(e.text)}}function D2(t,n){if(t&1){let e=ke();h(0,"section",9)(1,"header",10),X("click",function(){let r=V(e).$index,o=b();return j(o.switch(r))})("keydown.enter",function(){let r=V(e).$index,o=b();return j(o.switch(r))})("keydown.space",function(){let r=V(e).$index,o=b();return j(o.switch(r))}),p(2),h(3,"p"),p(4),g()(),h(5,"div",11),Ce(6,w2,7,5,"div",12,it),g(),O(8,"hr"),g()}if(t&2){let e=n.$implicit,i=n.$index;y(2),yt(" ",e.title," "),y(2),k(e.subtitle),y(),et("display","none"),H("id",gn("chaptersections-",i)),y(),we(e.sections)}}var hx=(()=>{class t extends rn{constructor(){super(),this._apiUrl=void 0,this._baseUrl=void 0,this.ruleService=v(Di),this.sessionService=v(nn)}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this.sessionService.version?this.version=this.sessionService.version:this.ruleService.hentRegler().subscribe(e=>{this.version=e})}switch(e){let i=document.getElementById(`chaptersections-${e}`);i.style.display==="none"?i.style.display="block":i.style.display="none"}switchPage(){let e=document.getElementById("info-full-text");e.style.display==="none"?e.style.display="block":e.style.display="none"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-regler"]],features:[Je],decls:39,vars:7,consts:[[1,"wrapper"],[3,"flavourText","pageTitle","headerIcon","headerImage","showMovie"],[1,"main-container"],[1,"intro-box"],[1,"info-accordion",3,"click","keydown.enter","keydown.space"],["id","info-full-text",1,"info-accordionpanel"],[1,"intro-container"],["src","assets/images/octa.png","alt","Jacob Octavius Jarlskov",2,"width","100px"],[1,"intro-txt"],["id","one-{0{ charindex }}",1,"wrapper","style"],[1,"accordion","active",3,"click","keydown.enter","keydown.space"],[3,"id"],[1,"accordionpanel",3,"display"],[1,"accordionpanel"],[1,"h2alt"],[2,"white-space","pre-wrap"]],template:function(i,r){i&1&&(h(0,"div",0),O(1,"app-moviebox",1),h(2,"div",2)(3,"div",3)(4,"div",4),X("click",function(){return r.switchPage()})("keydown.enter",function(){return r.switchPage()})("keydown.space",function(){return r.switchPage()}),h(5,"p")(6,"b"),p(7,"Levende Eventyr & Fantasi"),g(),p(8," er et dansk rollespil fra 1986 og det er historierne herfra, der udg\xF8r grundlaget for de historier og fort\xE6llinger LEF producerer i form af podcast, youtubefilm, lefklip, skrifter, b\xF8ger og scenarier. "),h(9,"b"),p(10,"L\xE6s mere..."),g()()(),h(11,"div",5)(12,"p"),O(13,"br"),p(14,"Projektet g\xE5r ud p\xE5 at levere de historier, der opst\xE5r gennem vores rollespil og p\xE5 den m\xE5de formidle en moderne dansk eventyrstradition. Til det form\xE5l sikrer en r\xE6kke trofaste rollespillere en konstant udvikling og forandring, mens udvalgte spillere samles p\xE5 kryds og tv\xE6rs af grupperne, til at indspille podcast-historierne. Det mig, "),h(15,"b"),p(16,"Jacob Octavius Jarlskov"),g(),p(17,", der er skaberen af b\xE5de rollespillet og Valhel, som er den verden, der spilles i. Det er undertegnede, som skriver historierne, afvikler dem som mester, klipper optagelserne og designer lyduniverset - det er kort sagt et fuldtidsarbejde. Helt alene er jeg naturligvis ikke, med mig har jeg, udover mine medspillere, de uundv\xE6rlige "),h(18,"b"),p(19,"sponsorer"),g(),p(20,". "),h(21,"b"),p(22,"Sponsorerne"),g(),p(23," er livsnerven i projektet, uden dem ville det store arbejde slet ikke kunne gennemf\xF8res. "),h(24,"b"),p(25,"LEF"),g(),p(26," er et unikt dansk rollespil og eventyr. Husk, du kan ogs\xE5 blive sponsor og f\xE5 fordele og f\xE5 din rolle i historien - vi har brug for dig. "),g(),h(27,"p")(28,"b"),p(29,"Valhel"),g(),p(30," er en rollespilsverden baseret p\xE5 mere end tredive \xE5rs rollespil. P\xE5 den m\xE5de er Valhels udvikling og historie skabt af mere end hundrede spillere gennem 35 \xE5r. Der er s\xE5ledes blevet spillet i Valhel, fra hesten var eneste transportmiddel og m\xF8llen det st\xF8rste mekaniske vidunder, helt frem til den f\xF8rste m\xE5nerejse, bioalkymien, manateknologien og rumteknologien. De mange historier, der spilles i Valhel, bliver s\xE5ledes tilsammen: "),h(31,"b"),p(32,"Den store historie om Valhel."),g()(),h(33,"div",6),O(34,"img",7),h(35,"div",8),p(36,"Jacob Octavius Jarlskov"),g()()()(),Ce(37,D2,9,6,"section",9,it),g()()),i&2&&(y(),H("flavourText","Levende Eventyr<br>& fantasi")("pageTitle","Rollespil \u2022 Regler")("headerIcon","regler.svg")("headerImage","rulehead_regler.jpg")("showMovie",!1),y(10),et("display","none"),y(26),we(r.ver
84sion?.chapters))},dependencies:[Nn],encapsulation:2,changeDetection:1})}}return t})();function S2(t,n){if(t&1&&(h(0,"span"),O(1,"img",22),g()),t&2){let e=b().$implicit,i=b(2);y(),H("src",Rt("",i._apiUrl,"images/roles/",e.image),ve)("alt",Ya(e.title))}}function x2(t,n){if(t&1&&(h(0,"div",14)(1,"div",15)(2,"div",16),p(3),g(),h(4,"div",17)(5,"div",18),P(6,S2,2,5,"span"),g()(),h(7,"div",19),p(8),g(),h(9,"div",19),p(10),g(),O(11,"div",20),h(12,"div",21),p(13),g()()()),t&2){let e=n.$implicit;y(3),k(e.title),y(3),F(e.image?6:-1),y(2),gr("",e.tactic," ",e.life),y(2),k(e.attribute),y(3),k(e.description)}}function T2(t,n){if(t&1){let e=ke();h(0,"section",9)(1,"header",10),X("click",function(){let r=V(e).$index,o=b();return j(o.switch(r))})("keydown.enter",function(){let r=V(e).$index,o=b();return j(o.switch(r))})("keydown.space",function(){let r=V(e).$index,o=b();return j(o.switch(r))}),p(2),h(3,"p"),p(4),g()(),h(5,"div",11)(6,"p"),p(7),g(),h(8,"div",12)(9,"div",13),Ce(10,x2,14,6,"div",14,it),g()()(),O(12,"hr"),g()}if(t&2){let e=n.$implicit,i=n.$index;y(2),yt(" ",e.title," "),y(2),k(e.subtitle),y(),et("display","none"),H("id",gn("roller-",i)),y(2),k(e.description),y(3),we(e.roles)}}var mx=(()=>{class t extends rn{constructor(){super(),this._apiUrl=void 0,this._baseUrl=void 0,this.ruleService=v(Di),this.sessionService=v(nn)}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this.sessionService.version?this.version=this.sessionService.version:this.ruleService.hentRegler().subscribe(e=>{this.version=e})}switch(e){let i=document.getElementById(`roller-${e}`);i.style.display==="none"?i.style.display="block":i.style.display="none"}switchPage(){let e=document.getElementById("info-full-text");e.style.display==="none"?e.style.display="block":e.style.display="none"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-roller"]],features:[Je],decls:39,vars:7,consts:[[1,"wrapper"],[3,"flavourText","pageTitle","headerIcon","headerImage","showMovie"],[1,"main-container"],[1,"intro-box"],[1,"info-accordion",3,"click","keydown.enter","keydown.space"],["id","info-full-text",1,"info-accordionpanel"],[1,"intro-container"],["src","assets/images/octa.png","alt","Jacob Octavius Jarlskov",2,"width","100px"],[1,"intro-txt"],["id","one-{0{ charindex }}",1,"wrapper","style"],[1,"accordion","special","active",3,"click","keydown.enter","keydown.space"],[1,"accordionpanel",3,"id"],[1,"stack"],[1,"grid"],[1,"card","item"],[1,"cardcontent"],[1,"itemName"],[1,"cardWrapper"],[1,"cardFrame"],[1,"itemEffect"],[1,"itemLine"],[1,"npcText"],[3,"src","alt"]],template:function(i,r){i&1&&(h(0,"div",0),O(1,"app-moviebox",1),h(2,"div",2)(3,"div",3)(4,"div",4),X("click",function(){return r.switchPage()})("keydown.enter",function(){return r.switchPage()})("keydown.space",function(){return r.switchPage()}),h(5,"p")(6,"b"),p(7,"Levende Eventyr & Fantasi"),g(),p(8," er et dansk rollespil fra 1986 og det er historierne herfra, der udg\xF8r grundlaget for de historier og fort\xE6llinger LEF producerer i form af podcast, youtubefilm, lefklip, skrifter, b\xF8ger og scenarier. "),h(9,"b"),p(10,"L\xE6s mere..."),g()()(),h(11,"div",5)(12,"p"),O(13,"br"),p(14,"Projektet g\xE5r ud p\xE5 at levere de historier, der opst\xE5r gennem vores rollespil og p\xE5 den m\xE5de formidle en moderne dansk eventyrstradition. Til det form\xE5l sikrer en r\xE6kke trofaste rollespillere en konstant udvikling og forandring, mens udvalgte spillere samles p\xE5 kryds og tv\xE6rs af grupperne, til at indspille podcast-historierne. Det mig, "),h(15,"b"),p(16,"Jacob Octavius Jarlskov"),g(),p(17,", der er skaberen af b\xE5de rollespillet og Valhel, som er den verden, der spilles i. Det er undertegnede, som skriver historierne, afvikler dem som mester, klipper optagelserne og designer lyduniverset - det er kort sagt et fuldtidsarbejde. Helt alene er jeg naturligvis ikke, med mig har jeg, udover mine medspillere, de uundv\xE6rlige "),h(18,"b"),p(19,"sponsorer"),g(),p(20,". "),h(21,"b"),p(22,"Sponsorerne"),g(),p(23," er livsnerven i projektet, uden dem ville det store arbejde slet ikke kunne gennemf\xF8res. "),h(24,"b"),p(25,"LEF"),g(),p(26," er et unikt dansk rollespil og eventyr. Husk, du kan ogs\xE5 blive sponsor og f\xE5 fordele og f\xE5 din rolle i historien - vi har brug for dig. "),g(),h(27,"p")(28,"b"),p(29,"Valhel"),g(),p(30," er en rollespilsverden baseret p\xE5 mere end tredive \xE5rs rollespil. P\xE5 den m\xE5de er Valhels udvikling og historie skabt af mere end hundrede spillere gennem 35 \xE5r. Der er s\xE5ledes blevet spillet i Valhel, fra hesten var eneste transportmiddel og m\xF8llen det st\xF8rste mekaniske vidunder, helt frem til den f\xF8rste m\xE5nerejse, bioalkymien, manateknologien og rumteknologien. De mange historier, der spilles i Valhel, bliver s\xE5ledes tilsammen: "),h(31,"b"),p(32,"Den store historie om Valhel."),g()(),h(33,"div",6),O(34,"img",7),h(35,"div",8),p(36,"Jacob Octavius Jarlskov"),g()()()(),Ce(37,T2,13,7,"section",9,it),g()()),i&2&&(y(),H("flavourText","Levende Eventyr<br>& fantasi")("pageTitle","Rollespil \u2022 Roller")("headerIcon","roller.svg")("headerImage","rulehead_roller.jpg")("showMovie",!1),y(10),et("display","none"),y(26),we(r.ver
84sion?.rolecategories))},dependencies:[Nn],encapsulation:2,changeDetection:1})}}return t})();var gx=(()=>{class t extends Ot{constructor(){super()}hentValhelnyt(){let e=this.API_URL+Pe.VALHELNYT_URL;return this.httpClient.get(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Lf=(()=>{class t{constructor(){this.months=["Nyregn","Midregn","Senregn","Nysol","Midsol","Sensol","Nystorm","Midstorm","Senstorm","Nysne","Midsne","Sensne"]}transform(e){if(e==null||e==="0000-00-00")return"Ingen dato angivet";let i=e.split("-"),r=this.months[parseInt(i[1])-1];return`${parseInt(i[2])} ${r} ${i[0]}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Va({name:"valhelDato",type:t,pure:!0})}}return t})();var I2=t=>({display:t}),yx=(()=>{class t{constructor(){this.show=!1,this.closeCallback=()=>!1,this.document=v(Ee),this.previousBodyOverflow=""}ngOnInit(){this.previousBodyOverflow=this.document.body.style.overflow,this.document.body.style.overflow="hidden"}ngOnDestroy(){this.document.body.style.overflow=this.previousBodyOverflow}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-valhelnyt-modal"]],inputs:{apiUrl:"apiUrl",news:"news",show:"show",closeCallback:"closeCallback"},decls:8,vars:11,consts:[["id","popoverlay",1,"popoverlay","newspaper-overlay",3,"ngStyle"],[1,"popup-avis"],["type","button","aria-label","Luk vinduet","autofocus","",1,"close",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","aria-hidden","true","focusable","false",1,"close-icon"],["d","M6 6l12 12M18 6L6 18"],[1,"content"],[3,"src","alt"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1)(2,"button",2),X("click",function(){return r.closeCallback()}),Xe(),h(3,"svg",3),O(4,"path",4),g()(),Et(),h(5,"div",5),O(6,"img",6),us(7,"valhelDato"),g()()()),i&2&&(H("ngStyle",yn(9,I2,r.show?"block":"none")),y(6),H("src",Rt("",r.apiUrl,"images/valhelnyt/aviser_image/",r.news.image_src),ve)("alt",Rt("",r.news.title," - ",ds(7,7,r.news.valheldato))))},dependencies:[Wi,Lf],encapsulation:2,changeDetection:1})}}return t})();function M2(t,n){if(t&1){let e=ke();h(0,"a",12),X("click",function(){let r=V(e).$implicit,o=b();return j(o.displayModal(r))}),O(1,"img",13),us(2,"valhelDato"),us(3,"valhelDato"),g()}if(t&2){let e=n.$implicit,i=n.$index,r=b();H("id",Rt("",i,"-",e.id)),y(),H("src",Rt("",r._apiUrl,"images/valhelnyt/aviser_thumb/",e.image_src_thumb),ve)("alt",Rt("",e.title," - ",ds(2,12,e.valheldato)))("title",Rt("",e.title," - ",ds(3,14,e.valheldato)))}}function k2(t,n){if(t&1&&O(0,"app-valhelnyt-modal",11),t&2){let e=b();H("news",e.modalItem)("apiUrl",e._apiUrl)("show",e.showModal)("closeCallback",e.toggleModal)}}var vx=(()=>{class t extends rn{constructor(){super(),this._apiUrl=void 0,this._baseUrl=void 0,this.showModal=!1,this.valhelnytService=v(gx),this.toggleModal=()=>(this.showModal=!this.showModal,!0)}ngOnInit(){this._apiUrl=J.apiUrl,this._baseUrl=J.baseUrl,this.valhelnytService.hentValhelnyt().subscribe(e=>{this.valhelnyt=e})}displayModal(e){this.modalItem=e,this.toggleModal()}switchPage(){let e=document.getElementById("info-full-text");e.style.display==="none"?e.style.display="block":e.style.display="none"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["app-valhelnyt"]],features:[Je],decls:41,vars:8,consts:[[1,"wrapper"],[3,"flavourText","pageTitle","headerIcon","headerImage","showMovie"],[1,"main-container"],[1,"intro-box"],[1,"info-accordion",3,"click","keydown.enter","keydown.space"],["id","info-full-text",1,"info-accordionpanel"],[1,"intro-container"],["src","assets/images/octa.png","alt","Jacob Octavius Jarlskov",2,"width","100px"],[1,"intro-txt"],["id","avis-box",1,"box"],[1,"medie1","thumbnail-avis",3,"id"],[3,"news","apiUrl","show","closeCallback"],[1,"medie1","thumbnail-avis",3,"click","id"],[3,"src","alt","title"]],template:function(i,r){i&1&&(h(0,"div",0),O(1,"app-moviebox",1),h(2,"div",2)(3,"div",3)(4,"div",4),X("click",function(){return r.switchPage()})("keydown.enter",function(){return r.switchPage()})("keydown.space",function(){return r.switchPage()}),h(5,"p")(6,"b"),p(7,"Levende Eventyr & Fantasi"),g(),p(8," er et dansk rollespil fra 1986 og det er historierne herfra, der udg\xF8r grundlaget for de historier og fort\xE6llinger LEF producerer i form af podcast, youtubefilm, lefklip, skrifter, b\xF8ger og scenarier. "),h(9,"b"),p(10,"L\xE6s mere..."),g()()(),h(11,"div",5)(12,"p"),O(13,"br"),p(14,"Projektet g\xE5r ud p\xE5 at levere de historier, der opst\xE5r gennem vores rollespil og p\xE5 den m\xE5de formidle en moderne dansk eventyrstradition. Til det form\xE5l sikrer en r\xE6kke trofaste rollespillere en konstant udvikling og forandring, mens udvalgte spillere samles p\xE5 kryds og tv\xE6rs af grupperne, til at indspille podcast-historierne. Det mig, "),h(15,"b"),p(16,"Jacob Octavius Jarlskov"),g(),p(17,", der er skaberen af b\xE5de rollespillet og Valhel, som er den verden, der spilles i. Det er undertegnede, som skriver historierne, afvikler dem som mester, klipper optagelserne og designer lyduniverset - det er kort sagt et fuldtidsarbejde. Helt alene er jeg naturligvis ikke, med mig har jeg, udover mine medspillere, de uundv\xE6rlige "),h(18,"b"),p(19,"sponsorer"),g(),p(20,". "),h(21,"b"),p(22,"Sponsorerne"),g(),p(23," er livsnerven i projektet, uden dem ville det store arbejde slet ikke kunne gennemf\xF8res. "),h(24,"b"),p(25,"LEF"),g(),p(26," er et unikt dansk rollespil og eventyr. Husk, du kan ogs\xE5 blive sponsor og f\xE5 fordele og f\xE5 din rolle i historien - vi har brug for dig. "),g(),h(27,"p")(28,"b"),p(29,"Valhel"),g(),p(30," er en rollespilsverden baseret p\xE5 mere end tredive \xE5rs rollespil. P\xE5 den m\xE5de er Valhels udvikling og historie skabt af mere end hundrede spillere gennem 35 \xE5r. Der er s\xE5ledes blevet spillet i Valhel, fra hesten var eneste transportmiddel og m\xF8llen det st\xF8rste mekaniske vidunder, helt frem til den f\xF8rste m\xE5nerejse, bioalkymien, manateknologien og rumteknologien. De mange historier, der spilles i Valhel, bliver s\xE5ledes tilsammen: "),h(31,"b"),p(32,"Den store historie om Valhel."),g()(),h(33,"div",6),O(34,"img",7),h(35,"div",8),p(36,"Jacob Octavius Jarlskov"),g()()()(),h(37,"div",9),Ce(38,M2,4,16,"a",10,it),P(40,k2,1,4,"app-valhelnyt-modal",11),g()()()),i&2&&(y(),H("flavourText","Levende Eventyr<br>& fantasi")("pageTitle","Rollespil \u2022 Nyheder i Valhel")("headerIcon","lefkanalen_logo_shadow.png")("headerImage","rulehead_nyheder.jpg")("showMovie",!1),y(10),et("display","none"),y(27),we(r.valhelnyt),y(2),F(r.showModal?40:-1))},dependencies:[Nn,yx,Lf],encapsulation:2,changeDetection:1})}}return t})();var To=(()=>{class t{constructor(e,i){this.ruleService=e,this.sessionService=i}resolve(e){return this.sessionService.version?ue(void 0):this.ruleService.hentRegler().pipe(Ne(i=>{this.sessionService.version=i,console.log("==>> VersionResolver.resolve() - version :",this.sessionService.version)}))}static{this.\u0275fac=function(i){return new(i||t)(K(Di),K(nn))}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})();var _x=[{path:"personligheder",component:px,resolve:{version:To}},{path:"regler",component:hx,resolve:{version:To}},{path:"roller",component:mx,resolve:{version:To}},{path:"grej",component:fx,resolve:{version:To}},{path:"names",component:sx},{path:"valhelnyt",component:vx},{path:"home",component:ix},{path:"podcast",component:dx},{path:"podcast/:id",component:cx},{path:"**",redirectTo:"/home",pathMatch:"full"}];var bx=(()=>{class t{constructor(e){this.cookieService=e}intercept(e,i){if(J.production||e.url.includes("api.lefnet.dk")){let r=e.clone({url:e.url.replace("http://","https://")});return i.handle(r)}else return i.handle(e)}static{this.\u0275fac=function(i){return new(i||t)(K(Ei))}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})();var Ex=(()=>{class t{constructor(){}intercept(e,i){let r=!e.url.includes("/api/login");return i.handle(e).pipe(ap(r?1:0),ii(o=>
84{if(e.url.includes("/api/login"))return Po(()=>o);let s="";return o.error instanceof ErrorEvent?s=`Error: ${o.error.message}`:s=this.getServerErrorMessage(o),Po(()=>s)}))}getServerErrorMessage(e){switch(e.status){case 404:return`Not Found: ${e.message}`;case 403:return`Access Denied: ${e.message}`;case 500:return`Internal Server Error: ${e.message}`;default:return`Unknown Server Error: ${e.message}`}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})();var Cx=(()=>{class t{constructor(e,i){this.tokenService=e,this.cookieService=i,this.headerName="X-XSRF-TOKEN"}intercept(e,i){let r=this.tokenService.getToken(),o=e.url.endsWith("api/sanctum/csrf-cookie")||e.url.endsWith("api/login"),s=this.cookieService.get("XSRF-TOKEN");return e=e.clone({withCredentials:!0}),e.headers.set("withCredentials","true"),e.method==="GET"||e.method==="HEAD"||r!==null&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}static{this.\u0275fac=function(i){return new(i||t)(K(sd),K(Ei))}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})();var wx=[{provide:ms,useClass:Cx,multi:!0},{provide:ms,useClass:bx,multi:!0},{provide:ms,useClass:Ex,multi:!0}];var wv={providers:[Pc(_g,Ed,ww,ff),yy(_x,vy({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),_y({onSameUrlNavigation:"reload"})),To,Ei,Gn,wx,xg(Ig(),Tg()),QS(),Py({loader:Gn,markedOptions:{provide:Ly,useValue:{gfm:!0,breaks:!1,pedantic:!1}}})]};J.production&&void 0;vg(KD,Z(C({},wv),{providers:[oC(),...wv.providers]})).catch(t=>console.error(t));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.