@aastrika/ai-elements 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- var Ny=Object.defineProperty,Ay=Object.defineProperties;var Oy=Object.getOwnPropertyDescriptors;var Bd=Object.getOwnPropertySymbols;var ky=Object.prototype.hasOwnProperty,Ry=Object.prototype.propertyIsEnumerable;var Hd=(e,t,n)=>t in e?Ny(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>{for(var n in t||={})ky.call(t,n)&&Hd(e,n,t[n]);if(Bd)for(var n of Bd(t))Ry.call(t,n)&&Hd(e,n,t[n]);return e},U=(e,t)=>Ay(e,Oy(t));var je=null,wi=!1,Mn=1,Py=null,Ee=Symbol("SIGNAL");function P(e){let t=je;return je=e,t}function Mi(){return je}var Tn={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 gr(e){if(wi)throw new Error("");if(je===null)return;je.consumerOnSignalRead(e);let t=je.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=je.recomputing;if(r&&(n=t!==void 0?t.nextProducer:je.producers,n!==void 0&&n.producer===e)){je.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Mn;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===je&&(!r||o.knownValidAtEpoch===Mn))return;let i=mr(je),s={producer:e,consumer:je,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Mn,lastReadVersion:e.version,nextConsumer:void 0};je.producersTail=s,t!==void 0?t.nextProducer=s:je.producers=s,i&&Gd(e,s)}function Ud(){Mn++}function Ti(e){if(!(mr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Mn)){if(!e.producerMustRecompute(e)&&!fo(e)){Ii(e);return}e.producerRecomputeValue(e),Ii(e)}}function tl(e){if(e.consumers===void 0)return;let t=wi;wi=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Fy(r)}}finally{wi=t}}function nl(){return je?.consumerAllowSignalWrites!==!1}function Fy(e){e.dirty=!0,tl(e),e.consumerMarkedDirty?.(e)}function Ii(e){e.dirty=!1,e.lastCleanEpoch=Mn}function Nn(e){return e&&$d(e),P(e)}function $d(e){if(e.producersTail?.knownValidAtEpoch===Mn){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function hr(e,t){P(t),e&&zd(e)}function zd(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(mr(e))do n=rl(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function fo(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ti(n),r!==n.version))return!0}return!1}function An(e){if(mr(e)){let t=e.producers;for(;t!==void 0;)t=rl(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Gd(e,t){let n=e.consumersTail,r=mr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Gd(o.producer,o)}function rl(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!mr(t)){let i=t.producers;for(;i!==void 0;)i=rl(i)}return n}function mr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ni(e){Py?.(e)}function Ai(e,t){return Object.is(e,t)}function Oi(e,t){let n=Object.create(Ly);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ti(n),gr(n),n.value===uo)throw n.error;return n.value};return r[Ee]=n,Ni(n),r}var xi=Symbol("UNSET"),Si=Symbol("COMPUTING"),uo=Symbol("ERRORED"),Ly=U(j({},Tn),{value:xi,dirty:!0,error:null,equal:Ai,kind:"computed",producerMustRecompute(e){return e.value===xi||e.value===Si},producerRecomputeValue(e){if(e.value===Si)throw new Error("");let t=e.value;e.value=Si;let n=Nn(e),r,o=!1;try{r=e.computation(),P(null),o=t!==xi&&t!==uo&&r!==uo&&e.equal(t,r)}catch(i){r=uo,e.error=i}finally{hr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Vy(){throw new Error}var Wd=Vy;function qd(e){Wd(e)}function ol(e){Wd=e}var jy=null;function il(e,t){let n=Object.create(po);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Zd(n);return r[Ee]=n,Ni(n),[r,s=>On(n,s),s=>sl(n,s)]}function Zd(e){return gr(e),e.value}function On(e,t){nl()||qd(e),e.equal(e.value,t)||(e.value=t,By(e))}function sl(e,t){nl()||qd(e),On(e,t(e.value))}var po=U(j({},Tn),{equal:Ai,value:void 0,kind:"signal"});function By(e){e.version++,Ud(),tl(e),jy?.(e)}var al=U(j({},Tn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function ll(e){if(e.dirty=!1,e.version>0&&!fo(e))return;e.version++;let t=Nn(e);try{e.cleanup(),e.fn()}finally{hr(e,t)}}var cl;function ki(){return cl}function At(e){let t=cl;return cl=e,t}var Yd=Symbol("NotFound");function yr(e){return e===Yd||e?.name==="\u0275NotFound"}function Qd(e){let t=P(null);try{return e()}finally{P(t)}}function q(e){return typeof e=="function"}function Ri(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Pi=Ri(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
- ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=n});function go(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var we=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(q(r))try{r()}catch(i){t=i instanceof Pi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Kd(i)}catch(s){t=t??[],s instanceof Pi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Pi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Kd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&go(n,t)}remove(t){let{_finalizers:n}=this;n&&go(n,t),t instanceof e&&t._removeParent(this)}};we.EMPTY=(()=>{let e=new we;return e.closed=!0,e})();var ul=we.EMPTY;function Fi(e){return e instanceof we||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function Kd(e){q(e)?e():e.unsubscribe()}var ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var vr={setTimeout(e,t,...n){let{delegate:r}=vr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=vr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Li(e){vr.setTimeout(()=>{let{onUnhandledError:t}=ht;if(t)t(e);else throw e})}function ho(){}var Jd=dl("C",void 0,void 0);function Xd(e){return dl("E",void 0,e)}function ef(e){return dl("N",e,void 0)}function dl(e,t,n){return{kind:e,value:t,error:n}}var kn=null;function _r(e){if(ht.useDeprecatedSynchronousErrorHandling){let t=!kn;if(t&&(kn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kn;if(kn=null,n)throw r}}else e()}function tf(e){ht.useDeprecatedSynchronousErrorHandling&&kn&&(kn.errorThrown=!0,kn.error=e)}var Rn=class extends we{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Fi(t)&&t.add(this)):this.destination=$y}static create(t,n,r){return new Cr(t,n,r)}next(t){this.isStopped?pl(ef(t),this):this._next(t)}error(t){this.isStopped?pl(Xd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?pl(Jd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Hy=Function.prototype.bind;function fl(e,t){return Hy.call(e,t)}var gl=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Vi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Vi(r)}else Vi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Vi(n)}}},Cr=class extends Rn{constructor(t,n,r){super();let o;if(q(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ht.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&fl(t.next,i),error:t.error&&fl(t.error,i),complete:t.complete&&fl(t.complete,i)}):o=t}this.destination=new gl(o)}};function Vi(e){ht.useDeprecatedSynchronousErrorHandling?tf(e):Li(e)}function Uy(e){throw e}function pl(e,t){let{onStoppedNotification:n}=ht;n&&vr.setTimeout(()=>n(e,t))}var $y={closed:!0,next:ho,error:Uy,complete:ho};var br=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ji(e){return e}function nf(e){return e.length===0?ji:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var Q=class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,r){let o=Gy(t)?t:new Cr(t,n,r);return _r(()=>{let{operator:i,source:s}=this;o.add(i?i.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=rf(n),new n((r,o)=>{let i=new Cr({next:s=>{try{t(s)}catch(a){o(a),i.unsubscribe()}},error:o,complete:r});this.subscribe(i)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[br](){return this}pipe(...t){return nf(t)(this)}toPromise(t){return t=rf(t),new t((n,r)=>{let o;this.subscribe(i=>o=i,i=>r(i),()=>n(o))})}};Q.create=e=>new Q(e);function rf(e){var t;return(t=e??ht.Promise)!==null&&t!==void 0?t:Promise}function zy(e){return e&&q(e.next)&&q(e.error)&&q(e.complete)}function Gy(e){return e&&e instanceof Rn||zy(e)&&Fi(e)}function Wy(e){return q(e?.lift)}function Ae(e){return t=>{if(Wy(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Oe(e,t,n,r,o){return new hl(e,t,n,r,o)}var hl=class extends Rn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var of=Ri(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ke=class extends Q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new Bi(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new of}next(t){_r(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){_r(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){_r(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:r,observers:o}=this;return n||r?ul:(this.currentObservers=null,o.push(t),new we(()=>{this.currentObservers=null,go(o,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:r,isStopped:o}=this;n?t.error(r):o&&t.complete()}asObservable(){let t=new Q;return t.source=this,t}};ke.create=(e,t)=>new Bi(e,t);var Bi=class extends ke{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ul}};var mo=class extends ke{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var ml={now(){return(ml.delegate||Date).now()},delegate:void 0};var Dr=class extends ke{constructor(t=1/0,n=1/0,r=ml){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}};var sf=new Q(e=>e.complete());function af(e){return e&&q(e.schedule)}function yl(e){return e[e.length-1]}function lf(e){return q(yl(e))?e.pop():void 0}function Hi(e){return af(yl(e))?e.pop():void 0}function cf(e,t){return typeof yl(e)=="number"?e.pop():t}function df(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{c(r.next(p))}catch(h){s(h)}}function l(p){try{c(r.throw(p))}catch(h){s(h)}}function c(p){p.done?i(p.value):o(p.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function uf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pn(e){return this instanceof Pn?(this.v=e,this):new Pn(e)}function ff(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(m){return function(_){return Promise.resolve(_).then(m,h)}}function a(m,_){r[m]&&(o[m]=function(x){return new Promise(function(R,F){i.push([m,x,R,F])>1||l(m,x)})},_&&(o[m]=_(o[m])))}function l(m,_){try{c(r[m](_))}catch(x){y(i[0][3],x)}}function c(m){m.value instanceof Pn?Promise.resolve(m.value.v).then(p,h):y(i[0][2],m)}function p(m){l("next",m)}function h(m){l("throw",m)}function y(m,_){m(_),i.shift(),i.length&&l(i[0][0],i[0][1])}}function pf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof uf=="function"?uf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Ui=(e=>e&&typeof e.length=="number"&&typeof e!="function");function $i(e){return q(e?.then)}function zi(e){return q(e[br])}function Gi(e){return Symbol.asyncIterator&&q(e?.[Symbol.asyncIterator])}function Wi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function qy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qi=qy();function Zi(e){return q(e?.[qi])}function Yi(e){return ff(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Pn(n.read());if(o)return yield Pn(void 0);yield yield Pn(r)}}finally{n.releaseLock()}})}function Qi(e){return q(e?.getReader)}function be(e){if(e instanceof Q)return e;if(e!=null){if(zi(e))return Zy(e);if(Ui(e))return Yy(e);if($i(e))return Qy(e);if(Gi(e))return gf(e);if(Zi(e))return Ky(e);if(Qi(e))return Jy(e)}throw Wi(e)}function Zy(e){return new Q(t=>{let n=e[br]();if(q(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yy(e){return new Q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Qy(e){return new Q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Li)})}function Ky(e){return new Q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function gf(e){return new Q(t=>{Xy(e,t).catch(n=>t.error(n))})}function Jy(e){return gf(Yi(e))}function Xy(e,t){var n,r,o,i;return df(this,void 0,void 0,function*(){try{for(n=pf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function it(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ki(e,t=0){return Ae((n,r)=>{n.subscribe(Oe(r,o=>it(r,e,()=>r.next(o),t),()=>it(r,e,()=>r.complete(),t),o=>it(r,e,()=>r.error(o),t)))})}function Ji(e,t=0){return Ae((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function hf(e,t){return be(e).pipe(Ji(t),Ki(t))}function mf(e,t){return be(e).pipe(Ji(t),Ki(t))}function yf(e,t){return new Q(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function vf(e,t){return new Q(n=>{let r;return it(n,t,()=>{r=e[qi](),it(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>q(r?.return)&&r.return()})}function Xi(e,t){if(!e)throw new Error("Iterable cannot be null");return new Q(n=>{it(n,t,()=>{let r=e[Symbol.asyncIterator]();it(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _f(e,t){return Xi(Yi(e),t)}function Cf(e,t){if(e!=null){if(zi(e))return hf(e,t);if(Ui(e))return yf(e,t);if($i(e))return mf(e,t);if(Gi(e))return Xi(e,t);if(Zi(e))return vf(e,t);if(Qi(e))return _f(e,t)}throw Wi(e)}function Gt(e,t){return t?Cf(e,t):be(e)}function vl(...e){let t=Hi(e);return Gt(e,t)}function xe(e,t){return Ae((n,r)=>{let o=0;n.subscribe(Oe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:ev}=Array;function tv(e,t){return ev(t)?e(...t):e(t)}function bf(e){return xe(t=>tv(e,t))}var{isArray:nv}=Array,{getPrototypeOf:rv,prototype:ov,keys:iv}=Object;function Df(e){if(e.length===1){let t=e[0];if(nv(t))return{args:t,keys:null};if(sv(t)){let n=iv(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function sv(e){return e&&typeof e=="object"&&rv(e)===ov}function Ef(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wf(e,t,n,r,o,i,s,a){let l=[],c=0,p=0,h=!1,y=()=>{h&&!l.length&&!c&&t.complete()},m=x=>c<r?_(x):l.push(x),_=x=>{i&&t.next(x),c++;let R=!1;be(n(x,p++)).subscribe(Oe(t,F=>{o?.(F),i?m(F):t.next(F)},()=>{R=!0},void 0,()=>{if(R)try{for(c--;l.length&&c<r;){let F=l.shift();s?it(t,s,()=>_(F)):_(F)}y()}catch(F){t.error(F)}}))};return e.subscribe(Oe(t,m,()=>{h=!0,y()})),()=>{a?.()}}function Er(e,t,n=1/0){return q(t)?Er((r,o)=>xe((i,s)=>t(r,i,o,s))(be(e(r,o))),n):(typeof t=="number"&&(n=t),Ae((r,o)=>wf(r,o,e,n)))}function xf(e=1/0){return Er(ji,e)}function _l(...e){let t=lf(e),{args:n,keys:r}=Df(e),o=new Q(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let p=0;p<s;p++){let h=!1;be(n[p]).subscribe(Oe(i,y=>{h||(h=!0,c--),a[p]=y},()=>l--,void 0,()=>{(!l||!h)&&(c||i.next(r?Ef(r,a):a),i.complete())}))}});return t?o.pipe(bf(t)):o}function Cl(...e){let t=Hi(e),n=cf(e,1/0),r=e;return r.length?r.length===1?be(r[0]):xf(n)(Gt(r,t)):sf}function bl(e,t){return Ae((n,r)=>{let o=0;n.subscribe(Oe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Dl(e,t){return q(t)?Er(e,t,1):Er(e,1)}function El(e){return Ae((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Fn(e,t){return Ae((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Oe(r,l=>{o?.unsubscribe();let c=0,p=i++;be(e(l,p)).subscribe(o=Oe(r,h=>r.next(t?t(l,h,p,c++):h),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function wl(e){return Ae((t,n)=>{be(e).subscribe(Oe(n,()=>n.complete(),ho)),!n.closed&&t.subscribe(n)})}var ss="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",S=class extends Error{code;constructor(t,n){super(dn(t,n)),this.code=t}};function av(e){return`NG0${Math.abs(e)}`}function dn(e,t){return`${av(e)}${t?": "+t:""}`}function oe(e){for(let t in e)if(e[t]===oe)return t;throw Error("")}function Nf(e,t){for(let n in t)Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&(e[n]=t[n])}function as(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(as).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function ls(e,t){return e?t?`${e} ${t}`:e:t||""}var lv=oe({__forward_ref__:oe});function $e(e){return e.__forward_ref__=$e,e}function Se(e){return Ll(e)?e():e}function Ll(e){return typeof e=="function"&&Object.hasOwn(e,lv)&&e.__forward_ref__===$e}function te(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function cs(e){return cv(e,us)}function cv(e,t){return Object.hasOwn(e,t)&&e[t]||null}function uv(e){let t=e?.[us]??null;return t||null}function Sl(e){return e&&Object.hasOwn(e,ts)?e[ts]:null}var us=oe({\u0275prov:oe}),ts=oe({\u0275inj:oe}),O=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=te({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Vl(e){return e&&!!e.\u0275providers}var Do=oe({\u0275cmp:oe}),Eo=oe({\u0275dir:oe}),jl=oe({\u0275pipe:oe});var vo=oe({\u0275fac:oe}),Hn=oe({__NG_ELEMENT_ID__:oe}),Sf=oe({__NG_ENV_ID__:oe});function Qt(e){return Hl(e,"@Component"),e[Do]||null}function Bl(e){return Hl(e,"@Directive"),e[Eo]||null}function Af(e){return Hl(e,"@Pipe"),e[jl]||null}function Hl(e,t){if(e==null)throw new S(-919,!1)}function Kt(e){return typeof e=="string"?e:e==null?"":String(e)}var Of=oe({ngErrorCode:oe}),dv=oe({ngErrorMessage:oe}),fv=oe({ngTokenPath:oe});function Ul(e,t){return kf("",-200,t)}function ds(e,t){throw new S(-201,!1)}function kf(e,t,n){let r=new S(t,e);return r[Of]=t,r[dv]=e,n&&(r[fv]=n),r}function pv(e){return e[Of]}var Il;function Rf(){return Il}function Be(e){let t=Il;return Il=e,t}function $l(e,t,n){let r=cs(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;ds(e,"")}var Un=globalThis;var gv={},Ln=gv,hv="__NG_DI_FLAG__",Ml=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Vn(n)||0;try{return this.injector.get(t,r&8?null:Ln,r)}catch(o){if(yr(o))return o;throw o}}};function mv(e,t=0){let n=ki();if(n===void 0)throw new S(-203,!1);if(n===null)return $l(e,void 0,t);{let r=yv(t),o=n.retrieve(e,r);if(yr(o)){if(r.optional)return null;throw o}return o}}function $(e,t=0){return(Rf()||mv)(Se(e),t)}function b(e,t){return $(e,Vn(t))}function Vn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Tl(e){let t=[];for(let n=0;n<e.length;n++){let r=Se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new S(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],l=vv(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push($(o,i))}else t.push($(r))}return t}function vv(e){return e[hv]}function un(e,t){let n=Object.hasOwn(e,vo);return n?e[vo]:null}function Pf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Ff(e){return e.flat(Number.POSITIVE_INFINITY)}function fs(e,t){e.forEach(n=>Array.isArray(n)?fs(n,t):t(n))}function zl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function wo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Lf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ps(e,t,n){let r=Sr(e,t);return r>=0?e[r|1]=n:(r=~r,Lf(e,r,t,n)),r}function gs(e,t){let n=Sr(e,t);if(n>=0)return e[n|1]}function Sr(e,t){return _v(e,t,1)}function _v(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var fn={},He=[],xo=new O(""),So=new O("",-1),Gl=new O(""),xr=class{get(t,n=Ln){if(n===Ln){let o=kf("",-201);throw o.name="\u0275NotFound",o}return n}};function Ir(e){return{\u0275providers:e}}function Vf(...e){return{\u0275providers:Wl(!0,e),\u0275fromNgModule:!0}}function Wl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return fs(t,s=>{let a=s;ns(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&jf(o,i),n}function jf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ql(o,i=>{t(i,r)})}}function ns(e,t,n,r){if(e=Se(e),!e)return!1;let o=null,i=Sl(e),s=!i&&Qt(e);if(!i&&!s){let l=e.ngModule;if(i=Sl(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)ns(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;fs(i.imports,p=>{ns(p,t,n,r)&&(c||=[],c.push(p))}),c!==void 0&&jf(c,t)}if(!a){let c=un(o)||(()=>new o);t({provide:o,useFactory:c,deps:He},o),t({provide:Gl,useValue:o,multi:!0},o),t({provide:xo,useValue:()=>$(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;ql(l,p=>{t(p,c)})}}else return!1;return o!==e&&e.providers!==void 0}function ql(e,t){for(let n of e)Vl(n)&&(n=n.\u0275providers),Array.isArray(n)?ql(n,t):t(n)}var Cv=oe({provide:String,useValue:oe});function Bf(e){return e!==null&&typeof e=="object"&&Cv in e}function bv(e){return!!(e&&e.useExisting)}function Dv(e){return!!(e&&e.useFactory)}function jn(e){return typeof e=="function"}function Hf(e){return!!e.useClass}var Io=new O(""),es={},If={},xl;function Mr(){return xl===void 0&&(xl=new xr),xl}var Ue=class{},Bn=class extends Ue{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Al(t,s=>this.processProvider(s)),this.records.set(So,wr(void 0,this)),o.has("environment")&&this.records.set(Ue,wr(void 0,this));let i=this.records.get(Io);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gl,He,{self:!0}))}retrieve(t,n){let r=Vn(n)||0;try{return this.get(t,Ln,r)}catch(o){if(yr(o))return o;throw o}}destroy(){yo(this),this._destroyed=!0;let t=P(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),P(t)}}onDestroy(t){return yo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){yo(this);let n=At(this),r=Be(void 0),o;try{return t()}finally{At(n),Be(r)}}get(t,n=Ln,r){if(yo(this),Object.hasOwn(t,Sf))return t[Sf](this);let o=Vn(r),i,s=At(this),a=Be(void 0);try{if(!(o&4)){let c=this.records.get(t);if(c===void 0){let p=Iv(t)&&cs(t);p&&this.injectableDefInScope(p)?c=wr(Nl(t),es):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,o)}let l=o&2?Mr():this.parent;return n=o&8&&n===Ln?null:n,l.get(t,n)}catch(l){let c=pv(l);throw c===-200||c===-201?new S(c,null):l}finally{Be(a),At(s)}}resolveInjectorInitializers(){let t=P(null),n=At(this),r=Be(void 0),o;try{let i=this.get(xo,He,{self:!0});for(let s of i)s()}finally{At(n),Be(r),P(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Se(t);let n=jn(t)?t:Se(t&&t.provide),r=wv(t);if(!jn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=wr(void 0,es,!0),o.factory=()=>Tl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=P(null);try{if(n.value===If)throw Ul("");return n.value===es&&(n.value=If,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Sv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{P(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Se(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Nl(e){let t=cs(e),n=t!==null?t.factory:un(e);if(n!==null)return n;if(e instanceof O)throw new S(-204,!1);if(e instanceof Function)return Ev(e);throw new S(-204,!1)}function Ev(e){if(e.length>0)throw new S(-204,!1);let n=uv(e);return n!==null?()=>n.factory(e):()=>new e}function wv(e){if(Bf(e))return wr(void 0,e.useValue);{let t=Zl(e);return wr(t,es)}}function Zl(e,t,n){let r;if(jn(e)){let o=Se(e);return un(o)||Nl(o)}else if(Bf(e))r=()=>Se(e.useValue);else if(Dv(e))r=()=>e.useFactory(...Tl(e.deps||[]));else if(bv(e))r=(o,i)=>$(Se(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Se(e&&(e.useClass||e.provide));if(xv(e))r=()=>new o(...Tl(e.deps));else return un(o)||Nl(o)}return r}function yo(e){if(e.destroyed)throw new S(-205,!1)}function wr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function xv(e){return!!e.deps}function Sv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Iv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Al(e,t){for(let n of e)Array.isArray(n)?Al(n,t):n&&Vl(n)?Al(n.\u0275providers,t):t(n)}function Tr(e,t){let n;e instanceof Bn?(yo(e),n=e):n=new Ml(e);let r,o=At(n),i=Be(void 0);try{return t()}finally{At(o),Be(i)}}function Uf(){return Rf()!==void 0||ki()!=null}var yt=0,k=1,L=2,ve=3,at=4,We=5,Nr=6,Ar=7,ge=8,Ot=9,vt=10,se=11,Or=12,Yl=13,pn=14,Je=15,gn=16,$n=17,kt=18,Rt=19,Ql=20,Wt=21,hs=22,qt=23,Xe=24,zn=25,Pt=26,me=27,$f=1,Kl=6,Gn=7,Mo=8,Wn=9,fe=10;function Jt(e){return Array.isArray(e)&&typeof e[$f]=="object"}function lt(e){return Array.isArray(e)&&e[$f]===!0}function Jl(e){return(e.flags&4)!==0}function Xt(e){return e.componentOffset>-1}function ms(e){return(e.flags&1)===1}function Ft(e){return!!e.template}function kr(e){return(e[L]&512)!==0}function qn(e){return(e[L]&256)===256}var ys=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ys||{});var Xl="svg",zf="math";function Ie(e){for(;Array.isArray(e);)e=e[yt];return e}function ec(e,t){return Ie(t[e])}function ct(e,t){return Ie(t[e.index])}function vs(e,t){return e.data[t]}function tc(e,t){return e[t]}function nc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ut(e,t){let n=t[e];return Jt(n)?n:n[yt]}function Gf(e){return(e[L]&4)===4}function _s(e){return(e[L]&128)===128}function Wf(e){return lt(e[ve])}function Lt(e,t){return t==null?null:e[t]}function rc(e){e[$n]=0}function Cs(e){e[L]&1024||(e[L]|=1024,_s(e)&&Zn(e))}function qf(e,t){for(;e>0;)t=t[pn],e--;return t}function Rr(e){return!!(e[L]&9216||e[Xe]?.dirty)}function bs(e){e[vt].changeDetectionScheduler?.notify(8),e[L]&64&&(e[L]|=1024),Rr(e)&&Zn(e)}function Zn(e){e[vt].changeDetectionScheduler?.notify(0);let t=Zt(e);for(;t!==null&&!(t[L]&8192||(t[L]|=8192,!_s(t)));)t=Zt(t)}function Ds(e,t){if(qn(e))throw new S(911,!1);e[Wt]===null&&(e[Wt]=[]),e[Wt].push(t)}function Zf(e,t){if(e[Wt]===null)return;let n=e[Wt].indexOf(t);n!==-1&&e[Wt].splice(n,1)}function Zt(e){let t=e[ve];return lt(t)?t[ve]:t}function oc(e){return e[Ar]??=[]}function ic(e){return e.cleanup??=[]}function Yf(e,t,n,r){let o=oc(t);o.push(n),e.firstCreatePass&&ic(e).push(r,o.length-1)}var H={lFrame:lp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ol=!1;function Qf(){return H.lFrame.elementDepthCount}function Kf(){H.lFrame.elementDepthCount++}function sc(){H.lFrame.elementDepthCount--}function Jf(){return H.bindingsEnabled}function Xf(){return H.skipHydrationRootTNode!==null}function ac(e){return H.skipHydrationRootTNode===e}function lc(){H.skipHydrationRootTNode=null}function V(){return H.lFrame.lView}function pe(){return H.lFrame.tView}function I(e){return H.lFrame.contextLView=e,e[ge]}function M(e){return H.lFrame.contextLView=null,e}function Me(){let e=cc();for(;e!==null&&e.type===64;)e=e.parent;return e}function cc(){return H.lFrame.currentTNode}function ep(){let e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Pr(e,t){let n=H.lFrame;n.currentTNode=e,n.isParent=t}function uc(){return H.lFrame.isParent}function tp(){H.lFrame.isParent=!1}function dc(){return Ol}function _o(e){let t=Ol;return Ol=e,t}function Es(){let e=H.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fc(){return H.lFrame.bindingIndex}function np(e){return H.lFrame.bindingIndex=e}function hn(){return H.lFrame.bindingIndex++}function To(e){let t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rp(){return H.lFrame.inI18n}function op(e,t){let n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,ws(t)}function ip(){return H.lFrame.currentDirectiveIndex}function ws(e){H.lFrame.currentDirectiveIndex=e}function sp(e){let t=H.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function pc(){return H.lFrame.currentQueryIndex}function xs(e){H.lFrame.currentQueryIndex=e}function Mv(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[We]:null}function gc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Mv(i),o===null||(i=i[pn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=H.lFrame=ap();return r.currentTNode=t,r.lView=e,!0}function Ss(e){let t=ap(),n=e[k];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ap(){let e=H.lFrame,t=e===null?null:e.child;return t===null?lp(e):t}function lp(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function cp(){let e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var hc=cp;function Is(){let e=cp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function up(e){return(H.lFrame.contextLView=qf(e,H.lFrame.contextLView))[ge]}function _t(){return H.lFrame.selectedIndex}function mn(e){H.lFrame.selectedIndex=e}function Fr(){let e=H.lFrame;return vs(e.tView,e.selectedIndex)}function No(){H.lFrame.currentNamespace=Xl}function Ao(){Tv()}function Tv(){H.lFrame.currentNamespace=null}function mc(){return H.lFrame.currentNamespace}var dp=!0;function Ms(){return dp}function Ts(e){dp=e}function kl(e,t=null,n=null,r){let o=fp(e,t,n,r);return o.resolveInjectorInitializers(),o}function fp(e,t=null,n=null,r,o=new Set){let i=[n||He,Vf(e)],s;return new Bn(i,t||Mr(),s||null,o)}var Pe=class e{static THROW_IF_NOT_FOUND=Ln;static NULL=new xr;static create(t,n){if(Array.isArray(t))return kl({name:""},n,t,"");{let r=t.name??"";return kl({name:r},t.parent,t.providers,r)}}static \u0275prov=te({token:e,providedIn:"any",factory:()=>$(So)});static __NG_ELEMENT_ID__=-1},Fe=new O(""),de=class{static __NG_ELEMENT_ID__=Nv;static __NG_ENV_ID__=t=>t},rs=class extends de{_lView;constructor(t){super(),this._lView=t}get destroyed(){return qn(this._lView)}onDestroy(t){let n=this._lView;return Ds(n,t),()=>Zf(n,t)}};function Nv(){return new rs(V())}var pp=!1,gp=new O(""),Yn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new mo(!1);debugTaskTracker=b(gp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Q(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),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=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Rl=class extends ke{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Uf()&&(this.destroyRef=b(de,{optional:!0})??void 0,this.pendingTasks=b(Yn,{optional:!0})??void 0)}emit(t){let n=P(null);try{super.next(t)}finally{P(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof we&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Re=Rl;function os(...e){}function yc(e){let t,n;function r(){e=os;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function hp(e){return queueMicrotask(()=>e()),()=>{e=os}}var vc="isAngularZone",Co=vc+"_ID",Av=0,De=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Re(!1);onMicrotaskEmpty=new Re(!1);onStable=new Re(!1);onError=new Re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=pp}=t;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)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Rv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(vc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Ov,os,os);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Ov={};function _c(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function kv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){yc(()=>{e.callbackScheduled=!1,Pl(e),e.isCheckStableRunning=!0,_c(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Pl(e)}function Rv(e){let t=()=>{kv(e)},n=Av++;e._inner=e._inner.fork({name:"angular",properties:{[vc]:!0,[Co]:n,[Co+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Pv(l))return r.invokeTask(i,s,a,l);try{return Mf(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Tf(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return Mf(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Fv(l)&&t(),Tf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Pl(e),_c(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Pl(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Mf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tf(e){e._nesting--,_c(e)}var bo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Re;onMicrotaskEmpty=new Re;onStable=new Re;onError=new Re;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Pv(e){return mp(e,"__ignore_ng_zone__")}function Fv(e){return mp(e,"__scheduler_tick__")}function mp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var st=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yn=new O("",{factory:()=>{let e=b(De),t=b(Ue),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(st),n.handleError(r))})}}}),yp={provide:xo,useValue:()=>{let e=b(st,{optional:!0})},multi:!0};function A(e,t){let[n,r,o]=il(e,t?.equal),i=n,s=i[Ee];return i.set=r,i.update=o,i.asReadonly=Cc.bind(i),i}function Cc(){let e=this[Ee];if(e.readonlyFn===void 0){let t=()=>this();t[Ee]=e,e.readonlyFn=t}return e.readonlyFn}var Oo=new O("",{factory:()=>Lv}),Lv="ng";var Ns=new O(""),ko=new O("",{providedIn:"platform",factory:()=>"unknown"});var Ro=new O("",{factory:()=>b(Fe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Po=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Vv}return e})();function Vv(){return new Po(V(),Me())}var mt=class{},Fo=new O("",{factory:()=>!0});var bc=new O(""),As=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>new Fl})}return e})(),Fl=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},is=class{[Ee];constructor(t){this[Ee]=t}destroy(){this[Ee].destroy()}};function Ct(e,t){let n=t?.injector??b(Pe),r=t?.manualCleanup!==!0?n.get(de):null,o,i=n.get(Po,null,{optional:!0}),s=n.get(mt);return i!==null?(o=_p(i.view,s,e),r instanceof rs&&r._lView===i.view&&(r=null)):o=Hv(e,n.get(As),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new is(o)}var vp=U(j({},al),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=_o(!1);try{ll(this)}finally{_o(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=P(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],P(e)}}}),jv=U(j({},vp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(An(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Bv=U(j({},vp),{consumerMarkedDirty(){this.view[L]|=8192,Zn(this.view),this.notifier.notify(13)},destroy(){if(An(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[qt]?.delete(this)}});function _p(e,t,n){let r=Object.create(Bv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Cp(r,n),e[qt]??=new Set,e[qt].add(r),r.consumerMarkedDirty(r),r}function Hv(e,t,n){let r=Object.create(jv);return r.fn=Cp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Cp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Qn(e){return typeof e=="function"&&e[Ee]!==void 0}function Os(e){return Qn(e)&&typeof e.set=="function"}var Lr=(()=>{class e{internalPendingTasks=b(Yn);scheduler=b(mt);errorHandler=b(yn);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})();var ta=Symbol("InputSignalNode#UNSET"),tg=U(j({},po),{transformFn:void 0,applyValueToInputSignal(e,t){On(e,t)}});function Yo(e){return{toString:e}.toString()}var K=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(K||{}),Vs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ng(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var rg=null,or=(()=>{rg=bp;let e=()=>bp;return e.ngInherit=!0,e})();function Jv(){return rg}function bp(e){return e.type.prototype.ngOnChanges&&(e.setInput=e0),Xv}function Xv(){let e=og(this),t=e?.current;if(t){let n=e.previous;if(n===fn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function e0(e,t,n,r,o){let i=this.declaredInputs[r],s=og(e)||t0(e,{previous:fn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Vs(c&&c.currentValue,n,l===fn),ng(e,t,o,n)}var kc="__ngSimpleChanges__";function og(e){return Object.hasOwn(e,kc)&&e[kc]||null}function t0(e,t){return e[kc]=t}var Dp=[];var ne=function(e,t=null,n){for(let r=0;r<Dp.length;r++){let o=Dp[r];o(e,t,n)}};function n0(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Jv()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function r0(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:p}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),p!=null&&(e.destroyHooks??=[]).push(n,p)}}function Rs(e,t,n){ig(e,t,3,n)}function Ps(e,t,n,r){(e[L]&3)===n&&ig(e,t,n,r)}function Dc(e,t){let n=e[L];(n&3)===t&&(n&=16383,n+=1,e[L]=n)}function ig(e,t,n,r){let o=r!==void 0?e[$n]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[$n]+=65536),(a<i||i==-1)&&(o0(e,n,t,l),e[$n]=(e[$n]&4294901760)+l+2),l++}function Ep(e,t){ne(K.LifecycleHookStart,e,t);let n=P(null);try{t.call(e)}finally{P(n),ne(K.LifecycleHookEnd,e,t)}}function o0(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[L]>>14<e[$n]>>16&&(e[L]&3)===t&&(e[L]+=16384,Ep(a,i)):Ep(a,i)}var jr=-1,Xn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function i0(e){return(e.flags&8)!==0}function s0(e){return(e.flags&16)!==0}function a0(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];c0(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function l0(e){return e===3||e===4||e===6}function c0(e){return e.charCodeAt(0)===64}function Br(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?wp(e,n,o,null,t[++r]):wp(e,n,o,null,null))}}return e}function wp(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function sg(e){return e!==jr}function js(e){return e&32767}function u0(e){return e>>16}function Bs(e,t){let n=u0(e),r=t;for(;n>0;)r=r[pn],n--;return r}var Rc=!0;function Hs(e){let t=Rc;return Rc=e,t}var d0=256,ag=d0-1,lg=5,f0=0,Vt={};function p0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,Hn)&&(r=n[Hn]),r==null&&(r=n[Hn]=f0++);let o=r&ag,i=1<<o;t.data[e+(o>>lg)]|=i}function Us(e,t){let n=cg(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,Ec(r.data,e),Ec(t,null),Ec(r.blueprint,null));let o=lu(e,t),i=e.injectorIndex;if(sg(o)){let s=js(o),a=Bs(o,t),l=a[k].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Ec(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function lu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=gg(o),r===null)return jr;if(n++,o=o[pn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return jr}function Pc(e,t,n){p0(e,t,n)}function ug(e,t,n){if(n&8||e!==void 0)return e;ds(t,"NodeInjector")}function dg(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ot],i=Be(void 0);try{return o?o.get(t,r,n&8):$l(t,r,n&8)}finally{Be(i)}}return ug(r,t,n)}function fg(e,t,n,r=0,o){if(e!==null){if(t[L]&2048&&!(r&2)){let s=y0(e,t,n,r,Vt);if(s!==Vt)return s}let i=pg(e,t,n,r,Vt);if(i!==Vt)return i}return dg(t,n,r,o)}function pg(e,t,n,r,o){let i=h0(n);if(typeof i=="function"){if(!gc(t,e,r))return r&1?ug(o,n,r):dg(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ds(n);else return s}finally{hc()}}else if(typeof i=="number"){let s=null,a=cg(e,t),l=jr,c=r&1?t[Je][We]:null;for((a===-1||r&4)&&(l=a===-1?lu(e,t):t[a+8],l===jr||!Sp(r,!1)?a=-1:(s=t[k],a=js(l),t=Bs(l,t)));a!==-1;){let p=t[k];if(xp(i,a,p.data)){let h=g0(a,t,n,s,r,c);if(h!==Vt)return h}l=t[a+8],l!==jr&&Sp(r,t[k].data[a+8]===c)&&xp(i,a,t)?(s=p,a=js(l),t=Bs(l,t)):a=-1}}return o}function g0(e,t,n,r,o,i){let s=t[k],a=s.data[e+8],l=r==null?Xt(a)&&Rc:r!=s&&(a.type&3)!==0,c=o&1&&i===a,p=Fs(a,s,n,l,c);return p!==null?Ho(t,s,p,a,o):Vt}function Fs(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,p=i>>20,h=r?a:a+p,y=o?a+p:c;for(let m=h;m<y;m++){let _=s[m];if(m<l&&n===_||m>=l&&_.type===n)return m}if(o){let m=s[l];if(m&&Ft(m)&&m.type===n)return l}return null}function Ho(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Xn){let a=i;if(a.resolving)throw Ul("");let l=Hs(a.canSeeViewProviders);a.resolving=!0;let c=s[n].type||s[n],p,h=a.injectImpl?Be(a.injectImpl):null,y=gc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&n0(n,s[n],t)}finally{h!==null&&Be(h),Hs(l),a.resolving=!1,hc()}}return i}function h0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Hn)?e[Hn]:void 0;return typeof t=="number"?t>=0?t&ag:m0:t}function xp(e,t,n){let r=1<<e;return!!(n[t+(e>>lg)]&r)}function Sp(e,t){return!(e&2)&&!(e&1&&t)}var vn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fg(this._tNode,this._lView,t,Vn(r),n)}};function m0(){return new vn(Me(),V())}function wt(e){return Yo(()=>{let t=e.prototype.constructor,n=t[vo]||Fc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[vo]||Fc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Fc(e){return Ll(e)?()=>{let t=Fc(Se(e));return t&&t()}:un(e)}function y0(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[L]&2048&&!kr(s);){let a=pg(i,s,n,r|2,Vt);if(a!==Vt)return a;r&=-5;let l=i.parent;if(!l){let c=s[Ql];if(c){let p=c.get(n,Vt,r);if(p!==Vt)return p}l=gg(s),s=s[pn]}i=l}return o}function gg(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[We]:null}function en(e){return{token:e.token,providedIn:e.autoProvided===!1?null:"root",factory:e.factory,value:void 0}}function v0(){return zr(Me(),V())}function zr(e,t){return new xt(ct(e,t))}var xt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=v0}return e})();function _0(e){return e instanceof xt?e.nativeElement:e}function C0(){return this._results[Symbol.iterator]()}var $s=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 ke}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Ff(t);(this._changesDetected=!Pf(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=C0};function hg(e){return(e.flags&128)===128}var cu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(cu||{}),mg=new Map,b0=0;function D0(){return b0++}function E0(e){mg.set(e[Rt],e)}function Lc(e){mg.delete(e[Rt])}var Ip="__ngContext__";function Hr(e,t){Jt(t)?(e[Ip]=t[Rt],E0(t)):e[Ip]=t}function yg(e){return _g(e[Or])}function vg(e){return _g(e[at])}function _g(e){for(;e!==null&&!lt(e);)e=e[at];return e}var Vc;function uu(e){Vc=e}function Cg(){if(Vc!==void 0)return Vc;if(typeof document<"u")return document;throw new S(210,!1)}var bg="r";var Dg="di";var Eg=!1,wg=new O("",{factory:()=>Eg});var Mp=new WeakMap;function w0(e,t){if(e==null||typeof e!="object")return;let n=Mp.get(e);n||(n=new WeakSet,Mp.set(e,n)),n.add(t)}var x0=(e,t,n,r)=>{};function S0(e,t,n,r){x0(e,t,n,r)}function du(e){return(e.flags&32)===32}var I0=()=>null;function xg(e,t,n=!1){return I0(e,t,n)}function Sg(e,t){let n=e.contentQueries;if(n!==null){let r=P(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];xs(i),a.contentQueries(2,t[s],s)}}}finally{P(r)}}}function jc(e,t,n){xs(0);let r=P(null);try{t(e,n)}finally{P(r)}}function Ig(e,t,n){if(Jl(t)){let r=P(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{P(r)}}}var Et=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Et||{});var zs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ss})`}};function Uo(e){return e instanceof zs?e.changingThisBreaksApplicationSecurity:e}function Mg(e,t){let n=Tg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ss})`)}return n===t}function Tg(e){return e instanceof zs&&e.getTypeName()||null}var M0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ng(e){return e=String(e),e.match(M0)?e:"unsafe:"+e}function T0(e,t){return e.createText(t)}function N0(e,t,n){e.setValue(t,n)}function Ag(e,t,n){return e.createElement(t,n)}function Kn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Og(e,t,n){e.appendChild(t,n)}function Tp(e,t,n,r,o){r!==null?Kn(e,t,n,r,o):Og(e,t,n)}function kg(e,t,n,r){e.removeChild(null,t,n,r)}function A0(e,t,n){e.setAttribute(t,"style",n)}function O0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Rg(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&a0(e,t,r),o!==null&&O0(e,t,o),i!==null&&A0(e,t,i)}function na(e){let t=k0();return t?t.sanitize(ys.URL,e)||"":Mg(e,"URL")?Uo(e):Ng(Kt(e))}function k0(){let e=V();return e&&e[vt].sanitizer}function R0(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Pg="ng-template";function P0(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&R0(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(fu(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function fu(e){return e.type===4&&e.value!==Pg}function F0(e,t,n){let r=e.type===4&&!n?Pg:e.value;return t===r}function L0(e,t,n){let r=4,o=e.attrs,i=o!==null?B0(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!bt(r)&&!bt(l))return!1;if(s&&bt(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!F0(e,l,n)||l===""&&t.length===1){if(bt(r))return!1;s=!0}}else if(r&8){if(o===null||!P0(e,o,l,n)){if(bt(r))return!1;s=!0}}else{let c=t[++a],p=V0(l,o,fu(e),n);if(p===-1){if(bt(r))return!1;s=!0;continue}if(c!==""){let h;if(p>i?h="":h=o[p+1].toLowerCase(),r&2&&c!==h){if(bt(r))return!1;s=!0}}}}return bt(r)||s}function bt(e){return(e&1)===0}function V0(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return H0(t,e)}function j0(e,t,n=!1){for(let r=0;r<t.length;r++)if(L0(e,t[r],n))return!0;return!1}function B0(e){for(let t=0;t<e.length;t++){let n=e[t];if(l0(n))return t}return e.length}function H0(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Np(e,t){return e?":not("+t.trim()+")":t}function U0(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!bt(s)&&(t+=Np(i,o),o=""),r=s,i=i||!bt(r);n++}return o!==""&&(t+=Np(i,o)),t}function $0(e){return e.map(U0).join(",")}function z0(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!bt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Te={},jt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(jt||{}),G0;function pu(e,t){return G0(e,t)}var _n=new Set;var RA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Bc=new WeakMap;function Fg(e){return e?e[pn]??e:null}var Vo=new WeakSet;function W0(e,t,n){let r=Bc.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Fg(n);for(let a=r.length-1;a>=0;a--){let{el:l,declarationView:c}=r[a],p=l.parentNode;l===t?(r.splice(a,1),Vo.add(l),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&l===i?(r.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l)):p&&o&&p!==o&&(s===null||c===null||s===c)&&(r.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l))}}function q0(e,t,n){let r=Fg(n),o=Bc.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Bc.set(e,[{el:t,declarationView:r}])}var ra=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ra||{}),tn=new O(""),Ap=new Set;function nn(e){Ap.has(e)||(Ap.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var gu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Lg=[0,1,2,3],Vg=(()=>{class e{ngZone=b(De);scheduler=b(mt);errorHandler=b(st,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){b(tn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ne(K.AfterRenderHooksStart),this.executing=!0;for(let r of Lg)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&ne(K.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[zn]??=[]).push(n),Zn(r),r[L]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(ra.AFTER_NEXT_RENDER,n):n()}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Gs=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[zn];t&&(this.view[zn]=t.filter(n=>n!==this))}};function hu(e,t){let n=t?.injector??b(Pe);return nn("NgAfterNextRender"),Y0(e,n,t,!0)}function Z0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Y0(e,t,n,r){let o=t.get(gu);o.impl??=t.get(Vg);let i=t.get(tn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(de):null,a=t.get(Po,null,{optional:!0}),l=new Gs(o.impl,Z0(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(l),l}var mu=new O("",{factory:()=>{let e=b(Ue),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function jg(e,t,n){let r=e.get(mu);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Q0(e,t){let n=e.get(mu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function K0(e,t){let n=e.get(mu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function J0(e,t){for(let[n,r]of t)jg(e,r.animateFns)}function Op(e,t,n,r){let o=e?.[Pt]?.enter;t!==null&&o&&o.has(n.index)&&J0(r,o)}function kp(e,t,n,r){try{n.get(So)}catch{return r(!1)}let o=e?.[Pt];o?.enter?.has(t.index)&&Q0(n,o.enter.get(t.index).animateFns);let i=X0(e,t,o);if(i.size===0){let s=!1;if(e){let a=[];oa(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&_n.add(e[Rt]),jg(n,()=>e_(e,t,o||void 0,i,r),o||void 0)}function X0(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let l=e[k].data[i].parent;for(;l;){if(l===t){r.set(i,s);break}l=l.parent}}return r}function e_(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let l of a.animateFns){let{promise:c}=l();i.push(c)}n.detachedLeaveAnimationFns=void 0}if(e&&oa(e,t,i),i.length>0){let s=n||e?.[Pt];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),n_(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&_n.delete(e[Rt]),o(!0)})}else e&&_n.delete(e[Rt]),o(!1)}function oa(e,t,n){if(t.type&12){let o=e[t.index];if(lt(o))for(let i=fe;i<o.length;i++){let s=o[i];s[k].type===2&&t_(s,n)}}let r=t.child;for(;r;)oa(e,r,n),r=r.next}function t_(e,t){let n=e[Pt];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s)}let r=e[k].firstChild;for(;r;)oa(e,r,t),r=r.next}function n_(e,t,n){t.then(()=>{e[Pt]?.running===t&&(e[Pt].running=void 0,_n.delete(e[Rt])),n(!0)})}function Vr(e,t,n,r,o,i,s,a){if(o!=null){let l,c=!1;lt(o)?l=o:Jt(o)&&(c=!0,o=o[yt]);let p=Ie(o);e===0&&r!==null?(Op(a,r,i,n),s==null?Og(t,r,p):Kn(t,r,p,s||null,!0)):e===1&&r!==null?(Op(a,r,i,n),Kn(t,r,p,s||null,!0),W0(i,p,a)):e===2?(a?.[Pt]?.leave?.has(i.index)&&q0(i,p,a),Vo.delete(p),kp(a,i,n,h=>{if(Vo.has(p)){Vo.delete(p);return}kg(t,p,c,h)})):e===3&&(Vo.delete(p),kp(a,i,n,()=>{t.destroyNode(p)})),l!=null&&h_(t,e,n,l,i,r,s)}}function r_(e,t){Bg(e,t),t[yt]=null,t[We]=null}function o_(e,t,n,r,o,i){r[yt]=o,r[We]=t,sa(e,r,n,1,o,i)}function Bg(e,t){t[vt].changeDetectionScheduler?.notify(9),sa(e,t,t[se],2,null,null)}function i_(e){let t=e[Or];if(!t)return wc(e[k],e);for(;t;){let n=null;if(Jt(t))n=t[Or];else{let r=t[fe];r&&(n=r)}if(!n){for(;t&&!t[at]&&t!==e;)Jt(t)&&wc(t[k],t),t=t[ve];t===null&&(t=e),Jt(t)&&wc(t[k],t),n=t&&t[at]}t=n}}function yu(e,t){let n=e[Wn],r=n.indexOf(t);n.splice(r,1)}function ia(e,t){if(qn(t))return;let n=t[se];n.destroyNode&&sa(e,t,n,3,null,null),i_(t)}function wc(e,t){if(qn(t))return;let n=P(null);try{t[L]&=-129,t[L]|=256,t[Xe]&&An(t[Xe]),a_(e,t),s_(e,t),t[k].type===1&&t[se].destroy();let r=t[gn];if(r!==null&&lt(t[ve])){r!==t[ve]&&yu(r,t);let o=t[kt];o!==null&&o.detachView(e)}Lc(t)}finally{P(n)}}function s_(e,t){let n=e.cleanup,r=t[Ar];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ar]=null);let o=t[Wt];if(o!==null){t[Wt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[qt];if(i!==null){t[qt]=null;for(let s of i)s.destroy()}}function a_(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Xn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];ne(K.LifecycleHookStart,a,l);try{l.call(a)}finally{ne(K.LifecycleHookEnd,a,l)}}else{ne(K.LifecycleHookStart,o,i);try{i.call(o)}finally{ne(K.LifecycleHookEnd,o,i)}}}}}function l_(e,t,n){if(t===null)throw new S(510,!1);return c_(e,t.parent,n)}function c_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[yt];if(Xt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Et.None||o===Et.Emulated)return null}return ct(r,n)}function u_(e,t,n){return f_(e,t,n)}function d_(e,t,n){return e.type&40?ct(e,n):null}var f_=d_,Rp;function vu(e,t,n,r){let o=l_(e,r,t),i=t[se],s=r.parent||t[We],a=u_(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Tp(i,o,n[l],a,!1);else Tp(i,o,n,a,!1);Rp!==void 0&&Rp(i,r,t,n,o)}function jo(e,t){if(t!==null){let n=t.type;if(n&3)return ct(t,e);if(n&4)return Hc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return jo(e,r);{let o=e[t.index];return lt(o)?Hc(-1,o):Ie(o)}}else{if(n&128)return jo(e,t.next);if(n&32)return pu(t,e)()||Ie(e[t.index]);{let r=Hg(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Zt(e[Je]);return jo(o,r)}else return jo(e,t.next)}}}return null}function Hg(e,t){if(t!==null){let r=e[Je][We],o=t.projection;return r.projection[o]}return null}function Hc(e,t){let n=fe+e+1;if(n<t.length){let r=t[n],o=r[k].firstChild;if(o!==null)return jo(r,o)}return t[Gn]}function _u(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ot];if(n.type===128){n=n.next;continue}let l=r[n.index],c=n.type;if(s&&t===0&&(l&&Hr(Ie(l),r),n.flags|=2),!du(n))if(c&8)_u(e,t,n.child,r,o,i,!1),Vr(t,e,a,o,l,n,i,r);else if(c&32){let p=pu(n,r),h;for(;h=p();)Vr(t,e,a,o,h,n,i,r);Vr(t,e,a,o,l,n,i,r)}else c&16?g_(e,t,r,n,o,i):Vr(t,e,a,o,l,n,i,r);n=s?n.projectionNext:n.next}}function sa(e,t,n,r,o,i){e.type===3?p_(n,r,t,o,i):_u(n,r,e.firstChild,t,o,i,!1)}function p_(e,t,n,r,o){let s=n[k].firstChild,a=s.next,l=Ie(n[s.index]),c=Ie(n[a.index]),p=a.index+1,h=n[p];if(t===1||t===0)r!==null&&(h&&h.hasChildNodes()?Kn(e,r,h,o,!0):(Kn(e,r,l,o,!0),Kn(e,r,c,o,!0)));else if(t===2){if(h||(h=document.createDocumentFragment(),n[p]=h),l&&l.parentNode===h)return;let y=l;for(;y!==null;){let m=y.nextSibling;if(h.appendChild(y),y===c)break;y=m}}}function g_(e,t,n,r,o,i){let s=n[Je],l=s[We].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let p=l[c];Vr(t,e,n[Ot],o,p,r,i,n)}else{let c=l,p=s[ve];hg(r)&&(c.flags|=128),_u(e,t,c,p,o,i,!0)}}function h_(e,t,n,r,o,i,s){let a=r[Gn],l=Ie(r);if(a!==l&&Vr(t,e,n,i,a,o,s),(r[L]&4)===0)for(let c=fe;c<r.length;c++){let p=r[c];sa(p[k],p,e,t,i,a)}}function m_(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:jt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=jt.Important),e.setStyle(n,r,o,i))}}function Cu(e,t,n,r,o,i,s,a,l,c,p){let h=me+r,y=h+o,m=y_(h,y),_=typeof c=="function"?c():c;return m[k]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:y,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 i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:_,incompleteFirstPass:!1,ssrId:p}}function y_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Te);return n}function v_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function bu(e,t,n,r,o,i,s,a,l,c,p){let h=t.blueprint.slice();return h[yt]=o,h[L]=r|4|128|8|64|1024,(c!==null||e&&e[L]&2048)&&(h[L]|=2048),rc(h),h[ve]=h[pn]=e,h[ge]=n,h[vt]=s||e&&e[vt],h[se]=a||e&&e[se],h[Ot]=l||e&&e[Ot]||null,h[We]=i,h[Rt]=D0(),h[Nr]=p,h[Ql]=c,h[Je]=t.type==2?e[Je]:h,h}function __(e,t,n){let r=ct(t,e),o=v_(n),i=e[vt].rendererFactory,s=Du(e,bu(e,o,null,Ug(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ug(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function $g(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Du(e,t){return e[Or]?e[Yl][at]=t:e[Or]=t,e[Yl]=t,t}function f(e=1){zg(pe(),V(),_t()+e,!1)}function zg(e,t,n,r){if(!r)if((t[L]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Rs(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ps(t,i,0,n)}mn(n)}var Qo=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Qo||{});function er(e,t,n,r){let o=P(null);try{let[i,s,a]=e.inputs[n],l=null;(s&Qo.SignalBased)!==0&&(l=t[i][Ee]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,i):ng(t,l,i,r)}finally{P(o)}}function Gg(e,t,n,r,o){let i=_t(),s=r&2;try{mn(-1),s&&t.length>me&&zg(e,t,me,!1);let a=s?K.TemplateUpdateStart:K.TemplateCreateStart;ne(a,o,n),n(r,o)}finally{mn(i);let a=s?K.TemplateUpdateEnd:K.TemplateCreateEnd;ne(a,o,n)}}function Wg(e,t,n){x_(e,t,n),(n.flags&64)===64&&S_(e,t,n)}function Eu(e,t,n=ct){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function C_(e,t,n,r){let i=r.get(wg,Eg)||n===Et.ShadowDom||n===Et.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return b_(s),s}function b_(e){D_(e)}var D_=()=>null;function E_(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function qg(e,t,n,r,o,i){let s=t[k];if(wu(e,s,t,n,r)){Xt(e)&&w_(t,e.index);return}e.type&3&&(n=E_(n)),Zg(e,t,n,r,o,i)}function Zg(e,t,n,r,o,i){if(e.type&3){let s=ct(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function w_(e,t){let n=ut(t,e);n[L]&16||(n[L]|=64)}function x_(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Xt(n)&&__(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Us(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],l=Ho(t,e,s,n);if(Hr(l,t),i!==null&&A_(t,s-r,l,a,n,i),Ft(a)){let c=ut(n.index,t);c[ge]=Ho(t,e,s,n)}}}function S_(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=ip();try{mn(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ws(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&I_(l,c)}}finally{mn(-1),ws(s)}}function I_(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function M_(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];j0(t,i.selectors,!1)&&(r??=[],Ft(i)?r.unshift(i):r.push(i))}return r}function T_(e,t,n,r,o,i){let s=ct(e,t);N_(t[se],s,i,e.value,n,r,o)}function N_(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else{let a=s==null?Kt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function A_(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];er(r,n,l,c)}}function Yg(e,t,n,r,o){let i=me+n,s=t[k],a=o(s,t,e,r,n);t[i]=a,Pr(e,!0);let l=e.type===2;return l?(Rg(t[se],a,e),(Qf()===0||ms(e))&&Hr(a,t),Kf()):Hr(a,t),Ms()&&(!l||!du(e))&&vu(s,t,a,e),e}function Qg(e){let t=e;return uc()?tp():(t=t.parent,Pr(t,!1)),t}function O_(e,t){let n=e[Ot];if(!n)return;let r;try{r=n.get(yn,null)}catch{r=null}r?.(t)}function wu(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],p=s[l+1],h=t.data[c];er(h,n[c],p,o),a=!0}if(i)for(let l of i){let c=n[l],p=t.data[l];er(p,c,r,o),a=!0}return a}function k_(e,t,n,r,o,i){let s=null,a=null,l=null,c=!1,p=e.directiveToIndex.get(r.type);if(typeof p=="number"?s=p:[s,a,l]=p,a!==null&&l!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,o)){let h=e.hostDirectiveInputs[o];for(let y=0;y<h.length;y+=2){let m=h[y];if(m>=a&&m<=l){let _=t.data[m],x=h[y+1];er(_,n[m],x,i),c=!0}else if(m>l)break}}return s!==null&&Object.hasOwn(r.inputs,o)&&(er(r,n[s],o,i),c=!0),c}function R_(e,t){let n=ut(t,e),r=n[k];P_(r,n);let o=n[yt];o!==null&&n[Nr]===null&&(n[Nr]=xg(o,n[Ot])),ne(K.ComponentStart);try{xu(r,n,n[ge])}finally{ne(K.ComponentEnd,n[ge])}}function P_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function xu(e,t,n){Ss(t);try{let r=e.viewQuery;r!==null&&jc(1,r,n);let o=e.template;o!==null&&Gg(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[kt]?.finishViewCreation(e),e.staticContentQueries&&Sg(e,t),e.staticViewQueries&&jc(2,e.viewQuery,n);let i=e.components;i!==null&&F_(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,Is()}}function F_(e,t){for(let n=0;n<t.length;n++)R_(e,t[n])}function aa(e,t,n,r){let o=P(null);try{let i=t.tView,a=e[L]&4096?4096:16,l=bu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[gn]=c;let p=e[kt];return p!==null&&(l[kt]=p.createEmbeddedView(i)),xu(i,l,n),l}finally{P(o)}}function $o(e,t){return!t||t.firstChild===null||hg(e)}function zo(e,t,n,r,o=!1){if(e.type===3){let i=e.firstChild,s=i.next,a=Ie(t[i.index]),l=Ie(t[s.index]),c=a;for(;c!==null&&(r.push(c),c!==l);)c=c.nextSibling;return r}for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];if(i!==null)if(lt(i)){let a=i[Gn];a!==i[yt]&&r.push(Ie(i)),i[L]&4||Kg(i,r),r.push(a)}else r.push(Ie(i));let s=n.type;if(s&8)zo(e,t,n.child,r);else if(s&32){let a=pu(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=Hg(t,n);if(Array.isArray(a))r.push(...a);else{let l=Zt(t[Je]);zo(l[k],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Kg(e,t){for(let n=fe;n<e.length;n++){let r=e[n],o=r[k].firstChild;o!==null&&zo(r[k],r,o,t)}}function Jg(e){if(e[zn]!==null){for(let t of e[zn])t.impl.addSequence(t);e[zn].length=0}}var Xg=[];function L_(e){return e[Xe]??V_(e)}function V_(e){let t=Xg.pop()??Object.create(B_);return t.lView=e,t}function j_(e){e.lView[Xe]!==e&&(e.lView=null,Xg.push(e))}var B_=U(j({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Zn(e.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function H_(e){let t=e[Xe]??Object.create(U_);return t.lView=e,t}var U_=U(j({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Zt(e.lView);for(;t&&!eh(t[k]);)t=Zt(t);t&&Cs(t)},consumerOnSignalRead(){this.lView[Xe]=this}});function eh(e){return e.type!==2}function th(e){if(e[qt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[qt])if(r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()),e[qt]===null))return;t=n&&!!(e[L]&8192)}}var $_=100;function nh(e,t=0){let r=e[vt].rendererFactory,o=!1;o||r.begin?.();try{z_(e,t)}finally{o||r.end?.()}}function z_(e,t){let n=dc();try{_o(!0),Uc(e,t);let r=0;for(;Rr(e);){if(r===$_)throw new S(103,!1);r++,Uc(e,1)}}finally{_o(n)}}function G_(e,t,n,r){if(qn(t))return;let o=t[L],i=!1,s=!1;Ss(t);let a=!0,l=null,c=null;i||(eh(e)?(c=L_(t),l=Nn(c)):Mi()===null?(a=!1,c=H_(t),l=Nn(c)):t[Xe]&&(An(t[Xe]),t[Xe]=null));try{rc(t),np(e.bindingStartIndex),n!==null&&Gg(e,t,n,2,r);let p=(o&3)===3;if(!i)if(p){let m=e.preOrderCheckHooks;m!==null&&Rs(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ps(t,m,0,null),Dc(t,0)}if(s||W_(t),th(t),rh(t,0),e.contentQueries!==null&&Sg(e,t),!i)if(p){let m=e.contentCheckHooks;m!==null&&Rs(t,m)}else{let m=e.contentHooks;m!==null&&Ps(t,m,1),Dc(t,1)}Z_(e,t);let h=e.components;h!==null&&ih(t,h,0);let y=e.viewQuery;if(y!==null&&jc(2,y,r),!i)if(p){let m=e.viewCheckHooks;m!==null&&Rs(t,m)}else{let m=e.viewHooks;m!==null&&Ps(t,m,2),Dc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[hs]){for(let m of t[hs])m();t[hs]=null}i||(Jg(t),t[L]&=-73)}catch(p){throw i||Zn(t),p}finally{c!==null&&(hr(c,l),a&&j_(c)),Is()}}function rh(e,t){for(let n=yg(e);n!==null;n=vg(n))for(let r=fe;r<n.length;r++){let o=n[r];oh(o,t)}}function W_(e){for(let t=yg(e);t!==null;t=vg(t)){if(!(t[L]&2))continue;let n=t[Wn];for(let r=0;r<n.length;r++){let o=n[r];Cs(o)}}}function q_(e,t,n){ne(K.ComponentStart);let r=ut(t,e);try{oh(r,n)}finally{ne(K.ComponentEnd,r[ge])}}function oh(e,t){_s(e)&&Uc(e,t)}function Uc(e,t){let r=e[k],o=e[L],i=e[Xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&fo(i)),s||=!1,i&&(i.dirty=!1),e[L]&=-9217,s)G_(r,e,r.template,e[ge]);else if(o&8192){let a=P(null);try{th(e),rh(e,1);let l=r.components;l!==null&&ih(e,l,1),Jg(e)}finally{P(a)}}}function ih(e,t,n){for(let r=0;r<t.length;r++)q_(e,t[r],n)}function Z_(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)mn(~o);else{let i=o,s=n[++r],a=n[++r];op(s,i);let l=t[i];ne(K.HostBindingsUpdateStart,l);try{a(2,l)}finally{ne(K.HostBindingsUpdateEnd,l)}}}}finally{mn(-1)}}function Su(e,t){let n=dc()?64:1088;for(e[vt].changeDetectionScheduler?.notify(t);e;){e[L]|=n;let r=Zt(e);if(kr(e)&&!r)return e;e=r}return null}function sh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function ah(e,t){let n=fe+t;if(n<e.length)return e[n]}function la(e,t,n,r=!0){let o=t[k];if(Y_(o,t,e,n),r){let s=Hc(n,e),a=t[se],l=a.parentNode(e[Gn]);l!==null&&o_(o,e[We],a,t,l,s)}let i=t[Nr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function lh(e,t){let n=Go(e,t);return n!==void 0&&ia(n[k],n),n}function Go(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n];if(r){let o=r[gn];o!==null&&o!==e&&yu(o,r),t>0&&(e[n-1][at]=r[at]);let i=wo(e,fe+t);r_(r[k],r);let s=i[kt];s!==null&&s.detachView(i[k]),r[ve]=null,r[at]=null,r[L]&=-129}return r}function Y_(e,t,n,r){let o=fe+r,i=n.length;r>0&&(n[o-1][at]=t),r<i-fe?(t[at]=n[o],zl(n,fe+r,t)):(n.push(t),t[at]=null),t[ve]=n;let s=t[gn];s!==null&&n!==s&&ch(s,t);let a=t[kt];a!==null&&a.insertView(e),bs(t),t[L]|=128}function ch(e,t){let n=e[Wn],r=t[ve];if(Jt(r))e[L]|=2;else{let o=r[ve][Je];t[Je]!==o&&(e[L]|=2)}n===null?e[Wn]=[t]:n.push(t)}var Cn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[k];return zo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ge]}set context(t){this._lView[ge]=t}get destroyed(){return qn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ve];if(lt(t)){let n=t[Mo],r=n?n.indexOf(this):-1;r>-1&&(Go(t,r),wo(n,r))}this._attachedToViewContainer=!1}ia(this._lView[k],this._lView)}onDestroy(t){Ds(this._lView,t)}markForCheck(){Su(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){bs(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,nh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=kr(this._lView),n=this._lView[gn];n!==null&&!t&&yu(n,this._lView),Bg(this._lView[k],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=kr(this._lView),r=this._lView[gn];r!==null&&!n&&ch(r,this._lView),bs(this._lView)}};function Iu(e){return Rr(e._lView)||!!(e._lView[L]&64)}function Mu(e){Cs(e._lView)}var Ur=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Q_;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=aa(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Cn(i)}}return e})();function Q_(){return Tu(Me(),V())}function Tu(e,t){return e.type&4?new Ur(t,e,zr(e,t)):null}function ca(e,t,n,r,o){let i=e.data[t];if(i===null)i=K_(e,t,n,r,o),rp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ep();i.injectorIndex=s===null?-1:s.injectorIndex}return Pr(i,!0),i}function K_(e,t,n,r,o){let i=cc(),s=uc(),a=s?i:i&&i.parent,l=e.data[t]=X_(e,a,n,t,r,o);return J_(e,l,i,s),l}function J_(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function X_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Xf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:mc(),attrs:i,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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function eC(e){let t=e[Kl]??[],r=e[ve][se],o=[];for(let i of t)i.data[Dg]!==void 0?o.push(i):tC(i,r);e[Kl]=o}function tC(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[bg];for(;n<o;){let i=r.nextSibling;kg(t,r,!1),r=i,n++}}}var nC=()=>null,rC=()=>null;function $c(e,t){return nC(e,t)}function uh(e,t,n){return rC(e,t,n)}var dh=class{},tr=class{},Bt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>oC()};function oC(){let e=V(),t=Me(),n=ut(t.index,e);return(Jt(n)?n:e)[se]}var fh=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>null})}return e})();function ph(e){return e.debugInfo?.className||e.type.name||null}var Ls={},Ws=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Ls,r);return o!==Ls||n===Ls?o:this.parentInjector.get(t,n,r)}};function Nu(e,t,n){return e[t]=n}function iC(e,t){return e[t]}function et(e,t,n){if(n===Te)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Au(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function sC(e,t,n,r,o){let i=Au(e,t,n,r);return et(e,t+2,o)||i}function Jn(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&w0(o,i);let s=Xt(e)?ut(e.index,t):t;Su(s,5);let a=t[ge],l=Pp(t,a,n,o),c=r.__ngNextListenerFn__;for(;c;)l=Pp(t,a,c,o)&&l,c=c.__ngNextListenerFn__;return l}}function Pp(e,t,n,r){let o=P(null);try{return ne(K.OutputStart,t,n),n(r)!==!1}catch(i){return O_(e,i),!1}finally{ne(K.OutputEnd,t,n),P(o)}}function Ou(e,t,n,r,o,i,s,a){let l=ms(e),c=!1,p=null;if(!r&&l&&(p=lC(t,n,i,e.index)),p!==null){let h=p.__ngLastListenerFn__||p;h.__ngNextListenerFn__=s,p.__ngLastListenerFn__=s,c=!0}else{let h=ct(e,n),y=r?r(h):h;S0(n,y,i,a),r||(a.__ngNativeEl__=h);let m=o.listen(y,i,a);if(!aC(i)){let _=r?x=>r(Ie(x[e.index])):e.index;gh(_,t,n,i,a,m,!1)}}return c}function aC(e){return e.startsWith("animation")||e.startsWith("transition")}function lC(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Ar],l=o[i+2];return a&&a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function gh(e,t,n,r,o,i,s){let a=t.firstCreatePass?ic(t):null,l=oc(n),c=l.length;l.push(o,i),a&&a.push(r,e,c,(c+1)*(s?-1:1))}function Fp(e,t,n,r,o){let i=null,s=null,a=null,l=!1,c=e.directiveToIndex.get(n.type);if(typeof c=="number"?i=c:[i,s,a]=c,s!==null&&a!==null&&e.hostDirectiveOutputs&&Object.hasOwn(e.hostDirectiveOutputs,r)){let p=e.hostDirectiveOutputs[r];for(let h=0;h<p.length;h+=2){let y=p[h];if(y>=s&&y<=a)l=!0,qs(e,t,y,p[h+1],r,o);else if(y>a)break}}return Object.hasOwn(n.outputs,r)&&(l=!0,qs(e,t,i,r,r,o)),l}function qs(e,t,n,r,o,i){let s=t[n],a=t[k],c=a.data[n].outputs[r],h=s[c].subscribe(i);gh(e.index,a,t,o,i,h,!0)}function z(){cC()}function cC(){let e=V(),t=pe(),n=Me();if(t.firstCreatePass&&dC(t,n),n.controlDirectiveIndex===-1)return;nn("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Zs(e,t,n))}function G(){uC()}function uC(){let e=V(),t=pe(),n=Fr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Zs(e,t,n))}var Zs=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return ct(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Fp(this.tNode,this.lView,r,t,Jn(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Fp(this.tNode,this.lView,r,n,Jn(this.tNode,this.lView,t))}listenToDom(t,n){Ou(this.tNode,this.tView,this.lView,void 0,this.lView[se],t,n,Jn(this.tNode,this.lView,n))}setInputOnDirectives(t,n,r){let o=this.tNode.inputs?.[t],i=this.tNode.hostDirectiveInputs?.[t];if(!o&&!i)return!1;let s=!1;if(o)for(let a of o){if(a===this.tNode.controlDirectiveIndex)continue;let l=this.lView[a],c=this.tView.data[a];(!r||r(Vp(l,c,t)))&&(er(c,l,t,n),s=!0)}if(i)for(let a=0;a<i.length;a+=2){let l=i[a];if(l===this.tNode.controlDirectiveIndex)continue;let c=this.lView[l],p=i[a+1],h=this.tView.data[l];(!r||r(Vp(c,h,t)))&&(er(h,c,p,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";k_(this.tNode,this.tView,this.lView,n,r,t)}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===!0}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=!0;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=Lp(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let l=i.inputs[a+1]||i.inputs[a];n[l]=!0}let s=Lp(i.directive);s!==null&&r.push(...s)}}}return n}};function Lp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function Vp(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,o]=t.inputs[n];if((o&Qo.SignalBased)!==0){let s=e[r][Ee];return s.value===ta?void 0:s.value}return e[r]}function dC(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}fC(e,t)}function fC(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(jp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(jp(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let l=i[a];for(let c=0;c<s.length;c+=2){let p=s[c];if(l===p)for(let h of t.directiveToIndex.values()){if(!Array.isArray(h))continue;let[y,m,_]=h;if(l>=m&&l<=_)return t.flags|=o,t.customControlIndex=y,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function jp(e,t){return pC(e,t)&&gC(e,t+"Change")}function pC(e,t){return t in e.inputs}function gC(e,t){return t in e.outputs}var zc=Symbol("BINDING");var ir=new O("");function Ys(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ls(o,a);else if(i==2){let l=a,c=t[++s];r=ls(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function J(e,t=0){let n=V();if(n===null)return $(e,t);let r=Me();return fg(r,n,Se(e),t)}function hC(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,l=null,c=null;for(let p of s)if(p.resolveHostDirectives!==null){[a,l,c]=p.resolveHostDirectives(s);break}vC(e,t,n,a,i,l,c)}i!==null&&r!==null&&mC(n,r,i)}function mC(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new S(-301,!1);r.push(t[o],i)}}function yC(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function vC(e,t,n,r,o,i,s){let a=r.length,l=null;for(let y=0;y<a;y++){let m=r[y];l===null&&Ft(m)&&(l=m,yC(e,n,y)),Pc(Us(n,t),e,m.type)}wC(n,e.data.length,a),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let y=0;y<a;y++){let m=r[y];m.providersResolver&&m.providersResolver(m)}let c=!1,p=!1,h=$g(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let m=r[y];if(n.mergedAttrs=Br(n.mergedAttrs,m.hostAttrs),CC(e,n,t,h,m),EC(h,m,o),s!==null&&s.has(m)){let[x,R]=s.get(m);n.directiveToIndex.set(m.type,[h,x+n.directiveStart,R+n.directiveStart])}else(i===null||!i.has(m))&&n.directiveToIndex.set(m.type,h);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let _=m.type.prototype;!c&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!p&&(_.ngOnChanges||_.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),p=!0),h++}_C(e,n,i)}function _C(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Bp(0,t,o,r),Bp(1,t,o,r),Up(t,r,!1);else{let i=n.get(o);Hp(0,t,i,r),Hp(1,t,i,r),Up(t,r,!0)}}}function Bp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),hh(t,i)}}function Hp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),hh(t,s)}}function hh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Up(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||fu(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&Object.hasOwn(o,l)){let c=o[l];for(let p of c)if(p===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&Object.hasOwn(i,l)){let c=i[l];for(let p=0;p<c.length;p+=2)if(c[p]===t){s??=[],s.push(c[p+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function CC(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=un(o.type,!0)),s=new Xn(i,Ft(o),J,null);e.blueprint[r]=s,n[r]=s,bC(e,t,r,$g(e,n,o.hostVars,Te),o)}function bC(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;DC(s)!=a&&s.push(a),s.push(n,r,i)}}function DC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function EC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ft(t)&&(n[""]=e)}}function wC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function mh(e,t,n,r,o,i,s,a){let l=t[k],c=l.consts,p=Lt(c,s),h=ca(l,e,n,r,p);return i&&hC(l,t,h,Lt(c,a),o),h.mergedAttrs=Br(h.mergedAttrs,h.attrs),h.attrs!==null&&Ys(h,h.attrs,!1),h.mergedAttrs!==null&&Ys(h,h.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,h),h}function yh(e,t){r0(e,t),Jl(t)&&e.queries.elementEnd(t)}function xC(e,t,n,r,o,i){let s=t.consts,a=Lt(s,o),l=ca(t,e,n,r,a);if(l.mergedAttrs=Br(l.mergedAttrs,l.attrs),i!=null){let c=Lt(s,i);l.localNames=[];for(let p=0;p<c.length;p+=2)l.localNames.push(c[p],-1)}return l.attrs!==null&&Ys(l,l.attrs,!1),l.mergedAttrs!==null&&Ys(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}var vh=typeof ShadowRoot<"u",SC=typeof Document<"u";function IC(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Qo.SignalBased)!==0};return o&&(i.transform=o),i})}function MC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function TC(e,t,n){let r=t instanceof Ue?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ws(n,r):n}function NC(e){let t=e.get(tr,null);if(t===null)throw new S(407,!1);let n=e.get(fh,null),r=e.get(mt,null),o=e.get(tn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function AC(e,t,n){let r=_h(e);return Ag(t,r,r==="svg"?Xl:r==="math"?zf:n)}function OC(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new S(905,!1)}function _h(e){return(e.selectors[0][0]||"div").toLowerCase()}var nr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=IC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=MC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=$0(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s,a){ne(K.DynamicComponentStart);let l=P(null);try{let c=this.componentDef,p=TC(c,o||this.ngModule,t),h=NC(p),y=h.tracingService;return y&&y.componentCreate?y.componentCreate(ph(c),()=>this.createComponentRef(h,p,n,r,i,s,a)):this.createComponentRef(h,p,n,r,i,s,a)}finally{P(l)}}createComponentRef(t,n,r,o,i,s,a){let l=this.componentDef,c=kC(o,l,s,i),p=t.rendererFactory.createRenderer(null,l),h=o?C_(p,o,l.encapsulation,n):AC(l,p,a??null);OC(h);let y=n.get(ir,null),m=RC(h,()=>n.get(Fe,null)??Cg());y&&y.addHost(m);let _=s?.some($p)||i?.some(F=>typeof F!="function"&&F.bindings.some($p)),x=bu(null,c,null,512|Ug(l),null,null,t,p,n,null,xg(h,n,!0));y&&vh&&m instanceof ShadowRoot&&Ds(x,()=>{y.removeHost(m)}),x[me]=h,Ss(x);let R=null;try{let F=mh(me,x,2,"#host",()=>c.directiveRegistry,!0,0);Rg(p,h,F),Hr(h,x),Wg(c,x,F),Ig(c,F,x),yh(c,F),r!==void 0&&FC(F,this.ngContentSelectors,r),R=ut(F.index,x),x[ge]=R[ge],xu(c,x,null)}catch(F){throw R!==null&&Lc(R),Lc(x),F}finally{ne(K.DynamicComponentEnd),Is()}return new Qs(this.componentType,x,!!_)}};function kC(e,t,n,r){let o=e?["ng-version","22.1.6"]:z0(t.selectors[0]),i=null,s=null,a=0;if(n)for(let p of n)a+=p[zc].requiredVars,p.create&&(p.targetIdx=0,(i??=[]).push(p)),p.update&&(p.targetIdx=0,(s??=[]).push(p));if(r)for(let p=0;p<r.length;p++){let h=r[p];if(typeof h!="function")for(let y of h.bindings){a+=y[zc].requiredVars;let m=p+1;y.create&&(y.targetIdx=m,(i??=[]).push(y)),y.update&&(y.targetIdx=m,(s??=[]).push(y))}}let l=[t];if(r)for(let p of r){let h=typeof p=="function"?p:p.type,y=Bl(h);l.push(y)}return Cu(0,null,PC(i,s),1,a,l,null,null,null,[o],null)}function RC(e,t){let n=e.getRootNode?.();return SC&&n instanceof Document?n.head:n&&vh&&n instanceof ShadowRoot?n:t().head}function PC(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function $p(e){let t=e[zc].kind;return t==="input"||t==="twoWay"}var Qs=class extends dh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=vs(n[k],me),this.location=zr(this._tNode,n),this.instance=ut(this._tNode.index,n)[ge],this.hostView=this.changeDetectorRef=new Cn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=wu(r,o[k],o,t,n);this.previousInputValues.set(t,n);let s=ut(r.index,o);Su(s,1)}get injector(){return new vn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function FC(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Ko=(()=>{class e{static __NG_ELEMENT_ID__=LC}return e})();function LC(){let e=Me();return Ch(e,V())}var Gc=class e extends Ko{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return zr(this._hostTNode,this._hostLView)}get injector(){return new vn(this._hostTNode,this._hostLView)}get parentInjector(){let t=lu(this._hostTNode,this._hostLView);if(sg(t)){let n=Bs(t,this._hostLView),r=js(t),o=n[k].data[r+8];return new vn(o,n)}else return new vn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-fe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$c(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$o(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let l,c=n||{};l=c.index,r=c.injector,o=c.projectableNodes,i=c.environmentInjector||c.ngModuleRef,s=c.directives,a=c.bindings;let p=new nr(Qt(t)),h=r||this.parentInjector;if(!i&&p.ngModule==null){let F=this.parentInjector.get(Ue,null);F&&(i=F)}let y=Qt(p.componentType??{}),m=$c(this._lContainer,y?.id??null),_=m?.firstChild??null,x=p.create(h,o,_,i,s,a,this._getHostElementNamespace());return this.insertImpl(x.hostView,l,$o(this._hostTNode,m)),x}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[We];return t!==null&&t.type&2&&typeof t.value=="string"&&t.value.toLowerCase()==="foreignobject"?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Wf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[ve],c=new e(l,l[We],l[ve]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return la(s,o,i,r),t.attachToViewContainerRef(),zl(xc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Go(this._lContainer,n);r&&(wo(xc(this._lContainer),n),ia(r[k],r))}detach(t){let n=this._adjustIndex(t,-1),r=Go(this._lContainer,n);return r&&wo(xc(this._lContainer),n)!=null?new Cn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zp(e){return e[Mo]}function xc(e){return e[Mo]||(e[Mo]=[])}function Ch(e,t){let n,r=t[e.index];return lt(r)?n=r:(n=sh(r,t,null,e),t[e.index]=n,Du(t,n)),jC(n,t,e,r),new Gc(n,e,t)}function VC(e,t){let n=e[se],r=n.createComment(""),o=ct(t,e),i=n.parentNode(o);return Kn(n,i,r,n.nextSibling(o),!1),r}var jC=UC,BC=()=>!1;function HC(e,t,n){return BC(e,t,n)}function UC(e,t,n,r){if(e[Gn])return;let o;n.type&8?o=Ie(r):o=VC(t,n),e[Gn]=o}var Wc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},qc=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)ku(t,n).matches!==null&&this.queries[n].setDirty()}},Zc=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=QC(t):this.predicate=t}},Yc=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Qc=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,$C(n,i)),this.matchTNodeWithReadOption(t,n,Fs(n,t,i,!1,!1))}else r===Ur?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Fs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===xt||o===Ko||o===Ur&&n.type&4)this.addMatch(n.index,-2);else{let i=Fs(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function $C(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function zC(e,t){return e.type&11?zr(e,t):e.type&4?Tu(e,t):null}function GC(e,t,n,r){return n===-1?zC(t,e):n===-2?WC(e,t,r):Ho(e,e[k],n,t)}function WC(e,t,n){if(n===xt)return zr(t,e);if(n===Ur)return Tu(t,e);if(n===Ko)return Ch(t,e)}function bh(e,t,n,r){let o=t[kt].queries[r];if(o.matches===null){let i=e.data,s=n.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 p=i[c];a.push(GC(t,p,s[l+1],n.metadata.read))}}o.matches=a}return o.matches}function Kc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=bh(e,t,o,n);for(let a=0;a<i.length;a+=2){let l=i[a];if(l>0)r.push(s[a/2]);else{let c=i[a+1],p=t[-l];for(let h=fe;h<p.length;h++){let y=p[h];y[gn]===y[ve]&&Kc(y[k],y,c,r)}if(p[Wn]!==null){let h=p[Wn];for(let y=0;y<h.length;y++){let m=h[y];Kc(m[k],m,c,r)}}}}}return r}function qC(e,t){return e[kt].queries[t].queryList}function ZC(e,t,n){let r=new $s((n&4)===4);return Yf(e,t,r,r.destroy),(t[kt]??=new qc).queries.push(new Wc(r))-1}function YC(e,t,n){let r=pe();return r.firstCreatePass&&(KC(r,new Zc(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),ZC(r,V(),t)}function QC(e){return e.split(",").map(t=>t.trim())}function KC(e,t,n){e.queries===null&&(e.queries=new Yc),e.queries.track(new Qc(t,n))}function ku(e,t){return e.queries.getByIndex(t)}function JC(e,t){let n=e[k],r=ku(n,t);return r.crossesNgTemplate?Kc(n,e,t,[]):bh(n,e,r,t)}function Gr(e){return!!e&&typeof e.then=="function"}function Ru(e){return!!e&&typeof e.subscribe=="function"}var Wo=class{};var qo=class extends Wo{injector;instance=null;constructor(t){super();let n=new Bn([...t.providers,{provide:Wo,useValue:this}],t.parent||Mr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Dh(e,t,n=null){return new qo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var XC=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Wl(!1,n.type),o=r.length>0?Dh([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=te({token:e,providedIn:"environment",factory:()=>new e($(Ue))})}return e})();function rn(e){return Yo(()=>{let t=Eh(e),n=U(j({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==cu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(XC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Et.Emulated,styles:e.styles||He,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&nn("NgStandalone"),wh(n);let r=e.dependencies;return n.directiveDefs=Gp(r,eb),n.pipeDefs=Gp(r,Af),n.id=rb(n),n})}function eb(e){return Qt(e)||Bl(e)}function bn(e){return Yo(()=>({type:e.type,bootstrap:e.bootstrap||He,declarations:e.declarations||He,imports:e.imports||He,exports:e.exports||He,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function tb(e,t){if(e==null)return fn;let n={};for(let r in e)if(Object.hasOwn(e,r)){let o=e[r],i,s,a,l;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,l=o[3]||null):(i=o,s=o,a=Qo.None,l=null),n[i]=[r,a,l],t[i]=s}return n}function nb(e){if(e==null)return fn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function _e(e){return Yo(()=>{let t=Eh(e);return wh(t),t})}function ua(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Eh(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||fn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||He,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:tb(e.inputs,t),outputs:nb(e.outputs),debugInfo:null}}function wh(e){e.features?.forEach(t=>t(e))}function Gp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function rb(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var xh=new O("");var Pu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=b(xh,{optional:!0})??[];injector=b(Pe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Tr(this.injector,o);if(Gr(i))n.push(i);else if(Ru(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function Fu(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function ob(e){return Object.getPrototypeOf(e.prototype).constructor}function ze(e){let t=ob(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,Do)?t[Do]:void 0,s=Object.hasOwn(t,Eo)?t[Eo]:void 0;if(Ft(e))o=i??s;else{if(i)throw new S(903,!1);o=s}if(o){if(n){r.push(o);let l=e;l.inputs=Sc(e.inputs),l.declaredInputs=Sc(e.declaredInputs),l.outputs=Sc(e.outputs);let c=o.hostBindings;c&&cb(e,c);let p=o.viewQuery,h=o.contentQueries;if(p&&ab(e,p),h&&lb(e,h),ib(e,o),Nf(e.outputs,o.outputs),Ft(o)&&o.data.animation){let y=e.data;y.animation=(y.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let l=0;l<a.length;l++){let c=a[l];c&&c.ngInherit&&c(e),c===ze&&(n=!1)}}t=Object.getPrototypeOf(t)}sb(r)}function ib(e,t){for(let n in t.inputs){if(!Object.hasOwn(t.inputs,n)||Object.hasOwn(e.inputs,n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function sb(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Br(o.hostAttrs,n=Br(n,o.hostAttrs))}}function Sc(e){return e===fn?{}:e===He?[]:e}function ab(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function lb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function cb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ub(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Br(e.mergedAttrs,e.attrs);let p=e.tView=Cu(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),p.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Pr(e,!1);let l=db(n,t,e,r);Ms()&&vu(n,t,l,e),Hr(l,t);let c=sh(l,t,l,e);t[r+me]=c,Du(t,c),HC(c,e,t)}function Ks(e,t,n,r,o,i,s,a,l,c,p){let h=n+me,y;if(t.firstCreatePass){if(y=ca(t,h,4,s||null,a||null),c!=null){let m=Lt(t.consts,c);y.localNames=[];for(let _=0;_<m.length;_+=2)y.localNames.push(m[_],-1)}}else y=t.data[h];return ub(y,e,t,n,r,o,i,l),c!=null&&Eu(e,y,p),y}var db=fb;function fb(e,t,n,r){return Ts(!0),t[se].createComment("")}var Lu=new O("");var Sh=new O("");function Ih(){ol(()=>{let e="";throw new S(600,e)})}var pb=10;var Dn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=b(yn);afterRenderManager=b(gu);zonelessEnabled=b(Fo);rootEffectScheduler=b(As);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ke;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=b(Yn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(xe(n=>!n))}constructor(){b(tn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=b(Ue);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Pe.NULL){return this._injector.get(De).run(()=>{if(ne(K.BootstrapComponentStart),!this._injector.get(Pu).done){let F="";throw new S(405,F)}let a=Qt(n),l=this._injector.get(Wo),c=new nr(a,l);this.componentTypes.push(n);let{hostElement:p,directives:h,bindings:y}=gb(r),m=p||c.selector,_=c.create(o,[],m,l.injector,h,y),x=_.location.nativeElement,R=_.injector.get(Lu,null);return R?.registerApplication(x),_.onDestroy(()=>{this.detachView(_.hostView),Bo(this.components,_),R?.unregisterApplication(x)}),this._loadComponent(_),ne(K.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ne(K.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ra.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw ne(K.ChangeDetectionEnd),new S(101,!1);let n=P(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,P(n),this.afterTick.next(),ne(K.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(tr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<pb;){ne(K.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{ne(K.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Rr(o))continue;let i=r&&!this.zonelessEnabled?0:1;nh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Rr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Bo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(Sh,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Bo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function gb(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Bo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function tt(e,t,n,r){let o=V(),i=hn();if(et(o,i,t)){let s=pe(),a=Fr();T_(a,o,e,t,n,r)}return tt}var Jc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Ic(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function hb(e,t,n,r){let o,i,s=0,a=e.length-1,l=void 0;if(Array.isArray(t)){P(r);let c=t.length-1;for(P(null);s<=a&&s<=c;){let p=e.at(s),h=t[s],y=Ic(s,p,s,h,n);if(y!==0){y<0&&e.updateValue(s,h),s++;continue}let m=e.at(a),_=t[c],x=Ic(a,m,c,_,n);if(x!==0){x<0&&e.updateValue(a,_),a--,c--;continue}let R=n(s,p),F=n(a,m),ce=n(s,h);if(Object.is(ce,F)){let Qe=n(c,_);Object.is(Qe,R)?(e.swap(s,a),e.updateValue(a,_),c--,a--):e.move(a,s),e.updateValue(s,h),s++;continue}if(o??=new Js,i??=qp(e,s,a,n),Xc(e,o,s,ce))e.updateValue(s,h),s++,a++;else if(i.has(ce))o.set(R,e.detach(s)),a--;else{let Qe=e.create(s,t[s]);e.attach(s,Qe),s++,a++}}for(;s<=c;)Wp(e,o,n,s,t[s]),s++}else if(t!=null){P(r);let c=t[Symbol.iterator]();P(null);let p=c.next();for(;!p.done&&s<=a;){let h=e.at(s),y=p.value,m=Ic(s,h,s,y,n);if(m!==0)m<0&&e.updateValue(s,y),s++,p=c.next();else{o??=new Js,i??=qp(e,s,a,n);let _=n(s,y);if(Xc(e,o,s,_))e.updateValue(s,y),s++,a++,p=c.next();else if(!i.has(_))e.attach(s,e.create(s,y)),s++,a++,p=c.next();else{let x=n(s,h);o.set(x,e.detach(s)),a--}}}for(;!p.done;)Wp(e,o,n,e.length,p.value),p=c.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(c=>{e.destroy(c)})}function Xc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Wp(e,t,n,r,o){if(Xc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function qp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Js=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function D(e,t,n,r,o,i,s,a){nn("NgControlFlow");let l=V(),c=pe(),p=Lt(c.consts,i);return Ks(l,c,e,t,n,r,o,p,256,s,a),Vu}function Vu(e,t,n,r,o,i,s,a){nn("NgControlFlow");let l=V(),c=pe(),p=Lt(c.consts,i);return Ks(l,c,e,t,n,r,o,p,512,s,a),Vu}function E(e,t){nn("NgControlFlow");let n=V(),r=hn(),o=n[r]!==Te?n[r]:-1,i=o!==-1?Xs(n,me+o):void 0,s=0;if(et(n,r,e)){let a=P(null);try{if(i!==void 0&&lh(i,s),e!==-1){let l=me+e,c=Xs(n,l),p=ru(n[k],l),h=uh(c,p,n),y=aa(n,p,t,{dehydratedView:h});la(c,y,s,$o(p,h))}}finally{P(a)}}else if(i!==void 0){let a=ah(i,s);a!==void 0&&(a[ge]=t)}}var eu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-fe}};function En(e){return e}function Jo(e,t){return t}var tu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Z(e,t,n,r,o,i,s,a,l,c,p,h,y){nn("NgControlFlow");let m=V(),_=pe(),x=l!==void 0,R=V(),F=a?s.bind(R[Je][ge]):s,ce=new tu(x,F);R[me+e]=ce,Ks(m,_,e+1,t,n,r,o,Lt(_.consts,i),256),x&&Ks(m,_,e+2,l,c,p,h,Lt(_.consts,y),512)}var nu=class extends Jc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-fe}at(t){return this.getLView(t)[ge].$implicit}attach(t,n){let r=n[Nr];this.needsIndexUpdate||=t!==this.length,la(this.lContainer,n,t,$o(this.templateTNode,r)),mb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,yb(this.lContainer,t),vb(this.lContainer,t)}create(t,n){let r=$c(this.lContainer,this.templateTNode.tView.ssrId);return aa(this.hostLView,this.templateTNode,new eu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ia(t[k],t)}updateValue(t,n){this.getLView(t)[ge].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ge].$index=t}getLView(t){return _b(this.lContainer,t)}};function Y(e){let t=P(null),n=_t();try{let r=V(),o=r[k],i=r[n],s=n+1,a=Xs(r,s);if(i.liveCollection===void 0){let c=ru(o,s);i.liveCollection=new nu(a,r,c)}else i.liveCollection.reset();let l=i.liveCollection;if(hb(l,e,i.trackByFn,t),l.updateIndexes(),i.hasEmptyBlock){let c=hn(),p=l.length===0;if(et(r,c,p)){let h=n+2,y=Xs(r,h);if(p){let m=ru(o,h),_=uh(y,m,r),x=aa(r,m,void 0,{dehydratedView:_});la(y,x,0,$o(m,_))}else o.firstUpdatePass&&eC(y),lh(y,0)}}}finally{P(t)}}function Xs(e,t){return e[t]}function mb(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n],o=r?r[Pt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ot];K0(i,o),_n.delete(r[Rt]),o.detachedLeaveAnimationFns=void 0}}function yb(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n],o=r?r[Pt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function vb(e,t){return Go(e,t)}function _b(e,t){return ah(e,t)}function ru(e,t){return vs(e,t)}function w(e,t,n){let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();qg(s,r,e,t,r[se],n)}return w}function ou(e,t,n,r,o){wu(t,e,n,o?"class":"style",r)}function d(e,t,n,r){let o=V(),i=o[k],s=e+me,a=i.firstCreatePass?mh(s,o,2,t,M_,Jf(),n,r):i.data[s];if(Xt(a)){let l=o[vt].tracingService;if(l&&l.componentCreate){let c=i.data[a.directiveStart+a.componentOffset];return l.componentCreate(ph(c),()=>(Zp(e,t,o,a,r),d))}}return Zp(e,t,o,a,r),d}function Zp(e,t,n,r,o){if(Yg(r,n,e,t,Mh),ms(r)){let i=n[k];Wg(i,n,r),Ig(i,r,n)}o!=null&&Eu(n,r)}function u(){let e=pe(),t=Me(),n=Qg(t);return e.firstCreatePass&&yh(e,n),ac(n)&&lc(),sc(),n.classesWithoutHost!=null&&i0(n)&&ou(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&s0(n)&&ou(e,n,V(),n.stylesWithoutHost,!1),u}function Ce(e,t,n,r){return d(e,t,n,r),u(),Ce}function on(e,t,n,r){let o=V(),i=o[k],s=e+me,a=i.firstCreatePass?xC(s,i,2,t,n,r):i.data[s];return Yg(a,o,e,t,Mh),r!=null&&Eu(o,a),on}function wn(){let e=Me(),t=Qg(e);return ac(t)&&lc(),sc(),wn}var Mh=(e,t,n,r,o)=>(Ts(!0),Ag(t[se],r,mc()));function B(){return V()}function da(e,t,n){let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();Zg(s,r,e,t,r[se],n)}return da}var Lo=void 0;function Cb(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var bb=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Lo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Lo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Lo,Lo,Lo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Cb],Mc=Object.create(null);function qe(e){let t=Db(e),n=Yp(t);if(n)return n;let r=t.split("-")[0];if(n=Yp(r),n)return n;if(r==="en")return bb;throw new S(701,!1)}function Yp(e){if(!(e in Mc)){let t=Un.ng&&Un.ng.common&&Un.ng.common.locales&&Un.ng.common.locales[e];return t!==void 0&&(Mc[e]=t),t}return Mc[e]}var he={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function Db(e){return e.toLowerCase().replace(/_/g,"-")}var Xo="en-US";var Eb=Xo;function Th(e){typeof e=="string"&&(Eb=e.toLowerCase().replace(/_/g,"-"))}function N(e,t,n){let r=V(),o=pe(),i=Me();return Nh(o,r,r[se],i,e,t,n),N}function Wr(e,t,n){let r=V(),o=pe(),i=Me();return(i.type&3||n)&&Ou(i,o,r,n,r[se],e,t,Jn(i,r,t)),Wr}function Nh(e,t,n,r,o,i,s){let a=!0,l=null;if((r.type&3||s)&&(l??=Jn(r,t,i),Ou(r,e,t,s,n,o,i,l)&&(a=!1)),a){let c=r.outputs?.[o],p=r.hostDirectiveOutputs?.[o];if(p&&p.length)for(let h=0;h<p.length;h+=2){let y=p[h],m=p[h+1];l??=Jn(r,t,i),qs(r,t,y,m,o,l)}if(c&&c.length)for(let h of c)l??=Jn(r,t,i),qs(r,t,h,o,o,l)}}function v(e=1){return up(e)}function fa(e,t,n){return YC(e,t,n),fa}function ju(e){let t=V(),n=pe(),r=pc();xs(r+1);let o=ku(n,r);if(e.dirty&&Gf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=JC(t,r);e.reset(i,_0),e.notifyOnChanges()}return!0}return!1}function Bu(){return qC(V(),pc())}function ks(e,t){return e<<17|t<<2}function rr(e){return e>>17&32767}function wb(e){return(e&2)==2}function xb(e,t){return e&131071|t<<17}function iu(e){return e|2}function $r(e){return(e&131068)>>2}function Tc(e,t){return e&-131069|t<<2}function Sb(e){return(e&1)===1}function su(e){return e|1}function Ib(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=rr(s),l=$r(s);e[r]=n;let c=!1,p;if(Array.isArray(n)){let h=n;p=h[1],(p===null||Sr(h,p)>0)&&(c=!0)}else p=n;if(o)if(l!==0){let y=rr(e[a+1]);e[r+1]=ks(y,a),y!==0&&(e[y+1]=Tc(e[y+1],r)),e[a+1]=xb(e[a+1],r)}else e[r+1]=ks(a,0),a!==0&&(e[a+1]=Tc(e[a+1],r)),a=r;else e[r+1]=ks(l,0),a===0?a=r:e[l+1]=Tc(e[l+1],r),l=r;c&&(e[r+1]=iu(e[r+1])),Qp(e,p,r,!0),Qp(e,p,r,!1),Mb(t,p,e,r,i),s=ks(a,l),i?t.classBindings=s:t.styleBindings=s}function Mb(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Sr(i,t)>=0&&(n[r+1]=su(n[r+1]))}function Qp(e,t,n,r){let o=e[n+1],i=t===null,s=r?rr(o):$r(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];Tb(l,t)&&(a=!0,e[s+1]=r?su(c):iu(c)),s=r?rr(c):$r(c)}a&&(e[n+1]=r?iu(o):su(o))}function Tb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Sr(e,t)>=0:!1}var Dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Nb(e){return e.substring(Dt.key,Dt.keyEnd)}function Ab(e){return Ob(e),Ah(e,Oh(e,0,Dt.textEnd))}function Ah(e,t){let n=Dt.textEnd;return n===t?-1:(t=Dt.keyEnd=kb(e,Dt.key=t,n),Oh(e,t,n))}function Ob(e){Dt.key=0,Dt.keyEnd=0,Dt.value=0,Dt.valueEnd=0,Dt.textEnd=e.length}function Oh(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function kb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function sn(e,t,n){return kh(e,t,n,!1),sn}function le(e,t){return kh(e,t,null,!0),le}function qr(e){Pb(Hb,Rb,e,!0)}function Rb(e,t){for(let n=Ab(t);n>=0;n=Ah(t,n))ps(e,Nb(t),!0)}function kh(e,t,n,r){let o=V(),i=pe(),s=To(2);if(i.firstUpdatePass&&Ph(i,e,s,r),t!==Te&&et(o,s,t)){let a=i.data[_t()];Fh(i,a,o,o[se],e,o[s+1]=$b(t,n),r,s)}}function Pb(e,t,n,r){let o=pe(),i=To(2);o.firstUpdatePass&&Ph(o,null,i,r);let s=V();if(n!==Te&&et(s,i,n)){let a=o.data[_t()];if(Lh(a,r)&&!Rh(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=ls(l,n||"")),ou(o,a,s,n,r)}else Ub(o,a,s,s[se],s[i+1],s[i+1]=Bb(e,t,n),r,i)}}function Rh(e,t){return t>=e.expandoStartIndex}function Ph(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[_t()],s=Rh(e,n);Lh(i,r)&&t===null&&!s&&(t=!1),t=Fb(o,i,t,r),Ib(o,i,t,n,s,r)}}function Fb(e,t,n,r){let o=sp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Nc(null,e,t,n,r),n=Zo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Nc(o,e,t,n,r),i===null){let l=Lb(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Nc(null,e,t,l[1],r),l=Zo(l,t.attrs,r),Vb(e,t,r,l))}else i=jb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Lb(e,t,n){let r=n?t.classBindings:t.styleBindings;if($r(r)!==0)return e[rr(r)]}function Vb(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[rr(o)]=r}function jb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Zo(r,s,n)}return Zo(r,t.attrs,n)}function Nc(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Zo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Zo(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ps(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Bb(e,t,n){if(n==null||n==="")return He;let r=[],o=Uo(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function Hb(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ps(e,r,n)}function Ub(e,t,n,r,o,i,s,a){o===Te&&(o=He);let l=0,c=0,p=0<o.length?o[0]:null,h=0<i.length?i[0]:null;for(;p!==null||h!==null;){let y=l<o.length?o[l+1]:void 0,m=c<i.length?i[c+1]:void 0,_=null,x;p===h?(l+=2,c+=2,y!==m&&(_=h,x=m)):h===null||p!==null&&p<h?(l+=2,_=p):(c+=2,_=h,x=m),_!==null&&Fh(e,t,n,r,_,x,s,a),p=l<o.length?o[l]:null,h=c<i.length?i[c]:null}}function Fh(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],p=Sb(c)?Kp(l,t,n,o,$r(c),s):void 0;if(!ea(p)){ea(i)||wb(c)&&(i=Kp(l,null,n,o,a,s));let h=ec(_t(),n);m_(r,s,h,o,i)}}function Kp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),p=c?l[1]:l,h=p===null,y=n[o+1];y===Te&&(y=h?He:void 0);let m=h?gs(y,r):p===r?y:void 0;if(c&&!ea(m)&&(m=gs(l,r)),ea(m)&&(a=m,s))return a;let _=e[o+1];o=s?rr(_):$r(_)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=gs(l,r))}return a}function ea(e){return e!==void 0}function $b(e,t){return e==null||e===""||(typeof t=="string"?e=Uo(e)+t:typeof e=="object"&&(e=as(Uo(e)))),e}function Lh(e,t){return(e.flags&(t?8:16))!==0}function g(e,t=""){let n=V(),r=pe(),o=e+me,i=r.firstCreatePass?ca(r,o,1,t,null):r.data[o],s=zb(r,n,i,t);n[o]=s,Ms()&&vu(r,n,s,i),Pr(i,!1)}var zb=(e,t,n,r)=>(Ts(!0),T0(t[se],r));function Vh(e,t,n,r=""){return et(e,hn(),n)?t+Kt(n)+r:Te}function Gb(e,t,n,r,o,i=""){let s=fc(),a=Au(e,s,n,o);return To(2),a?t+Kt(n)+r+Kt(o)+i:Te}function Wb(e,t,n,r,o,i,s,a=""){let l=fc(),c=sC(e,l,n,o,s);return To(3),c?t+Kt(n)+r+Kt(o)+i+Kt(s)+a:Te}function C(e){return T("",e),C}function T(e,t,n){let r=V(),o=Vh(r,e,t,n);return o!==Te&&Hu(r,_t(),o),T}function St(e,t,n,r,o){let i=V(),s=Gb(i,e,t,n,r,o);return s!==Te&&Hu(i,_t(),s),St}function sr(e,t,n,r,o,i,s){let a=V(),l=Wb(a,e,t,n,r,o,i,s);return l!==Te&&Hu(a,_t(),l),sr}function Hu(e,t,n){let r=ec(t,e);N0(e[se],r,n)}function X(e,t,n){Os(t)&&(t=t());let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();qg(s,r,e,t,r[se],n)}return X}function re(e,t){let n=Os(e);return n&&e.set(t),n}function ee(e,t){let n=V(),r=pe(),o=Me();return Nh(r,n,n[se],o,e,t),ee}function Uu(e,t,n=""){return Vh(V(),e,t,n)}function Jp(e,t,n){let r=pe();r.firstCreatePass&&jh(t,r.data,r.blueprint,Ft(e),n)}function jh(e,t,n,r,o){if(e=Se(e),Array.isArray(e))for(let i=0;i<e.length;i++)jh(e[i],t,n,r,o);else{let i=pe(),s=V(),a=Me(),l=jn(e)?e:Se(e.provide),c=Zl(e),p=a.providerIndexes&1048575,h=a.directiveStart,y=a.providerIndexes>>20;if(jn(e)||!e.multi){let m=new Xn(c,o,J,null),_=Oc(l,t,o?p:p+y,h);_===-1?(Pc(Us(a,s),i,l),Ac(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[_]=m,s[_]=m)}else{let m=Oc(l,t,p+y,h),_=Oc(l,t,p,p+y),x=m>=0&&n[m],R=_>=0&&n[_];if(o&&!R||!o&&!x){Pc(Us(a,s),i,l);let F=Yb(o?Zb:qb,n.length,o,r,c,e);!o&&R&&(n[_].providerFactory=F),Ac(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(F),s.push(F)}else{let F=Bh(n[o?_:m],c,!o&&r);Ac(i,e,m>-1?m:_,F)}!o&&r&&R&&n[_].componentProviders++}}}function Ac(e,t,n,r){let o=jn(t),i=Hf(t);if(o||i){let l=(i?Se(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let p=c.indexOf(n);p===-1?c.push(n,[r,l]):c[p+1].push(r,l)}else c.push(n,l)}}}function Bh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Oc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function qb(e,t,n,r,o){return au(this.multi,[])}function Zb(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Ho(r,r[k],this.providerFactory.index,o);s=l.slice(0,a),au(i,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],au(i,s);return s}function au(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Yb(e,t,n,r,o,i){let s=new Xn(e,n,J,null);return s.multi=[],s.index=t,s.componentProviders=0,Bh(s,o,r&&!n),s}function dt(e,t){return n=>{n.providersResolver=(r,o)=>Jp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Jp(r,o?o(t):t,!0))}}function Ne(e,t){let n=Es()+e,r=V();return r[n]===Te?Nu(r,n,t()):iC(r,n)}function Hh(e,t){let n=e[t];return n===Te?void 0:n}function Qb(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Nu(e,s+1,i?r.call(i,o):r(o)):Hh(e,s+1)}function Kb(e,t,n,r,o,i,s){let a=t+n;return Au(e,a,o,i)?Nu(e,a+2,s?r.call(s,o,i):r(o,i)):Hh(e,a+2)}function ft(e,t){let n=pe(),r,o=e+me;n.firstCreatePass?(r=Jb(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=un(r.type,!0)),s,a=Be(J);try{let l=Hs(!1),c=i();return Hs(l),nc(n,V(),o,c),c}finally{Be(a)}}function Jb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ar(e,t,n){let r=e+me,o=V(),i=tc(o,r);return Uh(o,r)?Qb(o,Es(),t,i.transform,n,i):i.transform(n)}function lr(e,t,n,r){let o=e+me,i=V(),s=tc(i,o);return Uh(i,o)?Kb(i,Es(),t,s.transform,n,r,s):s.transform(n,r)}function Uh(e,t){return e[k].data[t].pure}var $h=(()=>{class e{applicationErrorHandler=b(yn);appRef=b(Dn);taskService=b(Yn);ngZone=b(De);zonelessEnabled=b(Fo);tracing=b(tn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new we;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Co):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(bc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){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 r=this.useMicrotaskScheduler?hp:yc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Co+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 n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function $u(){return nn("NgZoneless"),Ir([...zu(),[]])}function zu(){return[{provide:mt,useExisting:$h},{provide:De,useClass:bo},{provide:Fo,useValue:!0}]}function Xb(){return typeof $localize<"u"&&$localize.locale||Xo}var Zr=new O("",{factory:()=>b(Zr,{optional:!0,skipSelf:!0})||Xb()});var pa=class{destroyed=!1;listeners=null;errorHandler=b(st,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=b(de);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new S(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[n]=null):this.listeners.splice(n,1))}}}emit(t){if(this.destroyed){console.warn(dn(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=P(null);try{for(let r of this.listeners)try{r!==null&&r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&eD(this.listeners)),P(n),this.isEmitting=!1}}};function eD(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function W(e,t){return Oi(e,t?.equal)}function Ze(e){return Qd(e)}var zh=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")};function qh(e,t){let n=Object.create(tg);n.value=e,n.transformFn=t?.transform;function r(){if(gr(n),n.value===ta){let o=null;throw new S(-950,o)}return n.value}return r[Ee]=n,r}function xn(e){return new pa}function Gh(e,t){return qh(e,t)}function fD(e){return qh(ta,e)}var nt=(Gh.required=fD,Gh);var pD=1e4;var hL=pD-1e3;var ti=(()=>{class e{static __NG_ELEMENT_ID__=gD}return e})();function gD(e){return hD(Me(),V(),(e&16)===16)}function hD(e,t,n){if(Xt(e)&&!n){let r=ut(e.index,t);return new Cn(r,r)}else if(e.type&175){let r=t[Je];return new Cn(r,t)}return null}var Gu=new O(""),mD=new O("");function ei(e){return!e.moduleRef}function yD(e){let t=ei(e)?e.r3Injector:e.moduleRef.injector,n=t.get(De);return n.run(()=>{ei(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(yn),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),ei(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Gu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Gu);s.add(i),e.moduleRef.onDestroy(()=>{Bo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return _D(r,n,()=>{let i=t.get(Yn),s=i.add(),a=t.get(Pu);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(Zr,Xo);if(Th(l||Xo),!t.get(mD,!0))return ei(e)?t.get(Dn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ei(e)){let p=t.get(Dn);return e.rootComponent!==void 0&&p.bootstrap(e.rootComponent),p}else return vD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var vD;function _D(e,t,n){try{let r=n();return Gr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ga=null;function CD(e=[],t){return Pe.create({name:t,providers:[{provide:Io,useValue:"platform"},{provide:Gu,useValue:new Set([()=>ga=null])},...e]})}function bD(e=[]){if(ga)return ga;let t=CD(e);return ga=t,Ih(),DD(t),t}function DD(e){let t=e.get(Ns,null);Tr(e,()=>{t?.forEach(n=>n())})}function Zh(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;ne(K.BootstrapApplicationStart);try{let i=o?.injector??bD(r),s=[zu(),yp,...n||[]],a=new qo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return yD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{ne(K.BootstrapApplicationEnd)}}function Wu(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Yh(e,t){let n=Qt(e),r=t.elementInjector||Mr();return new nr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function ni(e){let t=Qt(e);if(!t)return null;let n=new nr(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Qh=null;function Mt(){return Qh}function qu(e){Qh??=e}var ri=class{},ma=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:()=>b(Kh),providedIn:"platform"})}return e})();var Kh=(()=>{class e extends ma{_location;_history;_doc=b(Fe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mt().getBaseHref(this._doc)}onPopState(n){let r=Mt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Mt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var Xu=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Xu||{});var Le=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Le||{}),ie=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(ie||{}),Ye=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ye||{}),Ge={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function em(e){return qe(e)[he.LocaleId]}function tm(e,t,n){let r=qe(e),o=[r[he.DayPeriodsFormat],r[he.DayPeriodsStandalone]],i=pt(o,t);return pt(i,n)}function nm(e,t,n){let r=qe(e),o=[r[he.DaysFormat],r[he.DaysStandalone]],i=pt(o,t);return pt(i,n)}function rm(e,t,n){let r=qe(e),o=[r[he.MonthsFormat],r[he.MonthsStandalone]],i=pt(o,t);return pt(i,n)}function om(e,t){let r=qe(e)[he.Eras];return pt(r,t)}function oi(e,t){let n=qe(e);return pt(n[he.DateFormat],t)}function ii(e,t){let n=qe(e);return pt(n[he.TimeFormat],t)}function si(e,t){let r=qe(e)[he.DateTimeFormat];return pt(r,t)}function Ht(e,t){let n=qe(e),r=n[he.NumberSymbols][t];if(typeof r>"u"){if(t===Ge.CurrencyDecimal)return n[he.NumberSymbols][Ge.Decimal];if(t===Ge.CurrencyGroup)return n[he.NumberSymbols][Ge.Group]}return r}function im(e,t){return qe(e)[he.NumberFormats][t]}function sm(e){if(!e[he.ExtraData])throw new S(2303,!1)}function am(e){let t=qe(e);return sm(t),(t[he.ExtraData][2]||[]).map(r=>typeof r=="string"?Zu(r):[Zu(r[0]),Zu(r[1])])}function lm(e,t,n){let r=qe(e);sm(r);let o=[r[he.ExtraData][0],r[he.ExtraData][1]],i=pt(o,t)||[];return pt(i,n)||[]}function pt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new S(2304,!1)}function Zu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var ED=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ya=Object.create(null),wD=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,xD=256;function cm(e,t,n,r){let o=PD(e);SD(t),t=an(n,t)||t;let s=[],a;for(;t;)if(a=wD.exec(t),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;t=p}else{s.push(t);break}let l=o.getTimezoneOffset();r&&(l=dm(r,l),o=RD(o,r));let c="";return s.forEach(p=>{let h=OD(p);c+=h?h(o,n,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function SD(e){if(e.length>xD)throw new S(2300,!1)}function Da(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function an(e,t){let n=em(e);if(ya[n]??=Object.create(null),ya[n][t])return ya[n][t];let r="";switch(t){case"shortDate":r=oi(e,Ye.Short);break;case"mediumDate":r=oi(e,Ye.Medium);break;case"longDate":r=oi(e,Ye.Long);break;case"fullDate":r=oi(e,Ye.Full);break;case"shortTime":r=ii(e,Ye.Short);break;case"mediumTime":r=ii(e,Ye.Medium);break;case"longTime":r=ii(e,Ye.Long);break;case"fullTime":r=ii(e,Ye.Full);break;case"short":let o=an(e,"shortTime"),i=an(e,"shortDate");r=va(si(e,Ye.Short),[o,i]);break;case"medium":let s=an(e,"mediumTime"),a=an(e,"mediumDate");r=va(si(e,Ye.Medium),[s,a]);break;case"long":let l=an(e,"longTime"),c=an(e,"longDate");r=va(si(e,Ye.Long),[l,c]);break;case"full":let p=an(e,"fullTime"),h=an(e,"fullDate");r=va(si(e,Ye.Full),[p,h]);break}return r&&(ya[n][t]=r),r}function va(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Tt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function ID(e,t){return Tt(e,3).substring(0,t)}function ye(e,t,n=0,r=!1,o=!1){return function(i,s){let a=MD(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return ID(a,t);let l=Ht(s,Ge.MinusSign);return Tt(a,t,l,r,o)}}function MD(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new S(2301,!1)}}function ae(e,t,n=Le.Format,r=!1){return function(o,i){return TD(o,i,e,t,n,r)}}function TD(e,t,n,r,o,i){switch(n){case 2:return rm(t,o,r)[e.getMonth()];case 1:return nm(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let c=am(t),p=lm(t,o,r),h=c.findIndex(y=>{if(Array.isArray(y)){let[m,_]=y,x=s>=m.hours&&a>=m.minutes,R=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(x&&R)return!0}else if(x||R)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(h!==-1)return p[h]}return tm(t,o,r)[s<12?0:1];case 3:return om(t,r)[e.getFullYear()<=0?0:1];default:let l=n;throw new S(2302,!1)}}function _a(e){return function(t,n,r){let o=-1*r,i=Ht(n,Ge.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Tt(s,2,i)+Tt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Tt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Tt(s,2,i)+":"+Tt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Tt(s,2,i)+":"+Tt(Math.abs(o%60),2,i);default:throw new S(2310,!1)}}}var ND=0,ba=4;function AD(e){let t=Da(e,ND,1).getDay();return Da(e,0,1+(t<=ba?ba:ba+7)-t)}function um(e){let t=e.getDay(),n=t===0?-3:ba-t;return Da(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Yu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=um(n),s=AD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Tt(o,e,Ht(r,Ge.MinusSign))}}function Ca(e,t=!1){return function(n,r){let i=um(n).getFullYear();return Tt(i,e,Ht(r,Ge.MinusSign),t)}}var Qu=Object.create(null);function OD(e){if(Qu[e])return Qu[e];let t;switch(e){case"G":case"GG":case"GGG":t=ae(3,ie.Abbreviated);break;case"GGGG":t=ae(3,ie.Wide);break;case"GGGGG":t=ae(3,ie.Narrow);break;case"y":t=ye(0,1,0,!1,!0);break;case"yy":t=ye(0,2,0,!0,!0);break;case"yyy":t=ye(0,3,0,!1,!0);break;case"yyyy":t=ye(0,4,0,!1,!0);break;case"Y":t=Ca(1);break;case"YY":t=Ca(2,!0);break;case"YYY":t=Ca(3);break;case"YYYY":t=Ca(4);break;case"M":case"L":t=ye(1,1,1);break;case"MM":case"LL":t=ye(1,2,1);break;case"MMM":t=ae(2,ie.Abbreviated);break;case"MMMM":t=ae(2,ie.Wide);break;case"MMMMM":t=ae(2,ie.Narrow);break;case"LLL":t=ae(2,ie.Abbreviated,Le.Standalone);break;case"LLLL":t=ae(2,ie.Wide,Le.Standalone);break;case"LLLLL":t=ae(2,ie.Narrow,Le.Standalone);break;case"w":t=Yu(1);break;case"ww":t=Yu(2);break;case"W":t=Yu(1,!0);break;case"d":t=ye(2,1);break;case"dd":t=ye(2,2);break;case"c":case"cc":t=ye(7,1);break;case"ccc":t=ae(1,ie.Abbreviated,Le.Standalone);break;case"cccc":t=ae(1,ie.Wide,Le.Standalone);break;case"ccccc":t=ae(1,ie.Narrow,Le.Standalone);break;case"cccccc":t=ae(1,ie.Short,Le.Standalone);break;case"E":case"EE":case"EEE":t=ae(1,ie.Abbreviated);break;case"EEEE":t=ae(1,ie.Wide);break;case"EEEEE":t=ae(1,ie.Narrow);break;case"EEEEEE":t=ae(1,ie.Short);break;case"a":case"aa":case"aaa":t=ae(0,ie.Abbreviated);break;case"aaaa":t=ae(0,ie.Wide);break;case"aaaaa":t=ae(0,ie.Narrow);break;case"b":case"bb":case"bbb":t=ae(0,ie.Abbreviated,Le.Standalone,!0);break;case"bbbb":t=ae(0,ie.Wide,Le.Standalone,!0);break;case"bbbbb":t=ae(0,ie.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":t=ae(0,ie.Abbreviated,Le.Format,!0);break;case"BBBB":t=ae(0,ie.Wide,Le.Format,!0);break;case"BBBBB":t=ae(0,ie.Narrow,Le.Format,!0);break;case"h":t=ye(3,1,-12);break;case"hh":t=ye(3,2,-12);break;case"H":t=ye(3,1);break;case"HH":t=ye(3,2);break;case"m":t=ye(4,1);break;case"mm":t=ye(4,2);break;case"s":t=ye(5,1);break;case"ss":t=ye(5,2);break;case"S":t=ye(6,1);break;case"SS":t=ye(6,2);break;case"SSS":t=ye(6,3);break;case"Z":case"ZZ":case"ZZZ":t=_a(0);break;case"ZZZZZ":t=_a(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=_a(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=_a(2);break;default:return null}return Qu[e]=t,t}function dm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function kD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function RD(e,t,n){let o=e.getTimezoneOffset(),i=dm(t,o);return kD(e,-1*(i-o))}function PD(e){if(Jh(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Da(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(ED))return FD(r)}let t=new Date(e);if(!Jh(t))throw new S(2311,!1);return t}function FD(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,l,c),t}function Jh(e){return e instanceof Date&&!isNaN(e.valueOf())}var LD=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Xh=22,Ea=".",ai="0",VD=";",jD=",",Ku="#";function BD(e,t,n,r,o,i,s=!1){let a="",l=!1;if(!isFinite(e))a=Ht(n,Number.isNaN(e)?Ge.NaN:Ge.Infinity);else{let c=$D(e);s&&(c=UD(c));let p=t.minInt,h=t.minFrac,y=t.maxFrac;if(i){let ce=i.match(LD);if(ce===null)throw new S(2306,!1);let Qe=ce[1],rt=ce[3],Ke=ce[5];Qe!=null&&(p=Ju(Qe)),rt!=null&&(h=Ju(rt)),Ke!=null?y=Ju(Ke):rt!=null&&h>y&&(y=h);let ot=100;if(p>ot||h>ot||y>ot)throw new S(2306,!1)}zD(c,h,y);let m=c.digits,_=c.integerLen,x=c.exponent,R=[];for(l=m.every(ce=>!ce);_<p;_++)m.unshift(0);for(;_<0;_++)m.unshift(0);_>0?R=m.splice(_,m.length):(R=m,m=[0]);let F=[];for(m.length>=t.lgSize&&F.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)F.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&F.unshift(m.join("")),a=F.join(Ht(n,r)),R.length&&(a+=Ht(n,o)+R.join("")),x&&(a+=Ht(n,Ge.Exponential)+"+"+x)}return e<0&&!l?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function fm(e,t,n){let r=im(t,Xu.Decimal),o=HD(r,Ht(t,Ge.MinusSign));return BD(e,o,t,Ge.Group,Ge.Decimal,n)}function HD(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(VD),o=r[0],i=r[1],s=o.indexOf(Ea)!==-1?o.split(Ea):[o.substring(0,o.lastIndexOf(ai)+1),o.substring(o.lastIndexOf(ai)+1)],a=s[0],l=s[1]||"";n.posPre=a.substring(0,a.indexOf(Ku));for(let p=0;p<l.length;p++){let h=l.charAt(p);h===ai?n.minFrac=n.maxFrac=p+1:h===Ku?n.maxFrac=p+1:n.posSuf+=h}let c=a.split(jD);if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,i){let p=o.length-n.posPre.length-n.posSuf.length,h=i.indexOf(Ku);n.negPre=i.substring(0,h).replace(/'/g,""),n.negSuf=i.slice(h+p).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function UD(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function $D(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Ea))>-1&&(t=t.replace(Ea,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===ai;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===ai;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Xh&&(r=r.splice(0,Xh-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function zD(e,t,n){if(t>n)throw new S(2307,!1);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let h=s;h<r.length;h++)r[h]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let h=1;h<s;h++)r[h]=0}if(a>=5)if(s-1<0){for(let h=0;h>s;h--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let l=i!==0,c=t+e.integerLen,p=r.reduceRight(function(h,y,m,_){return y=y+h,_[m]=y<10?y:y-10,l&&(_[m]===0&&m>=c?_.pop():l=!1),y>=10?1:0},0);p&&(r.unshift(p),e.integerLen++)}function Ju(e){let t=parseInt(e);if(isNaN(t))throw new S(2305,!1);return t}function pm(e,t){return new S(2100,!1)}var GD="mediumDate",gm=new O(""),hm=new O(""),ed=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??GD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return cm(n,s,i||this.locale,a)}catch(s){throw pm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(J(Zr,16),J(gm,24),J(hm,24))};static \u0275pipe=ua({name:"date",type:e,pure:!0})}return e})();var li=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,o){if(!WD(n))return null;o||=this._locale;try{let i=qD(n);return fm(i,o,r)}catch(i){throw pm(e,i.message)}}static \u0275fac=function(r){return new(r||e)(J(Zr,16))};static \u0275pipe=ua({name:"number",type:e,pure:!0})}return e})();function WD(e){return!(e==null||e===""||e!==e)}function qD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new S(2309,!1);return e}var Sn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({})}return e})();function ci(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()!==t)continue;let s=i;try{s=decodeURIComponent(i)}catch{}return s.length>1&&s[0]==='"'&&s[s.length-1]==='"'&&(s=s.slice(1,-1)),s}return null}var mm="browser";var ui=class{_doc;constructor(t){this._doc=t}manager},wa=(()=>{class e extends ui{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)($(Fe))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),Ia=new O(""),id=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof wa));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof wa);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new S(-5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)($(Ia),$(De))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),nd="ng-app-id";function ym(e){for(let t of e)t.remove()}function vm(e,t){let n=t.createElement("style");return n.textContent=e,n}function QD(e,t,n,r){let o=e.head?.querySelectorAll(`style[${nd}="${t}"],link[${nd}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(nd),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});return!0}function od(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var sd=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,QD(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,vm);r?.forEach(o=>this.addUsage(o,this.external,od))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(ym(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ym(n);this.hosts.clear()}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,vm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,od(r,this.doc)))}}removeHost(n){this.hosts.delete(n);for(let r of[...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)($(Fe),$(Oo),$(Ro,8),$(ko))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),rd={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"},ad=/%COMP%/g;var Cm="%COMP%",KD=`_nghost-${Cm}`,JD=`_ngcontent-${Cm}`,XD=!0,eE=new O("",{factory:()=>XD}),tE=new O("");function nE(e){return JD.replace(ad,e)}function rE(e){return KD.replace(ad,e)}function bm(e,t){return t.map(n=>n.replace(ad,e))}var ld=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(n,r,o,i,s,a,l=null,c=null,p=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=l,this.tracingService=c,this.cssVarNamespace=p??"",this.defaultRenderer=new di(n,s,a,this.tracingService,this.cssVarNamespace)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Sa?o.applyToHost(n):o instanceof fi&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(r.encapsulation){case Et.Emulated:i=new Sa(l,c,r,this.appId,p,s,a,h,this.cssVarNamespace);break;case Et.ShadowDom:return new xa(l,n,r,s,a,this.nonce,h,this.cssVarNamespace,c);case Et.ExperimentalIsolatedShadowDom:return new xa(l,n,r,s,a,this.nonce,h,this.cssVarNamespace);default:i=new fi(l,c,r,p,s,a,h,this.cssVarNamespace);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)($(id),$(ir),$(Oo),$(eE),$(Fe),$(De),$(Ro),$(tn,8),$(tE,8))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),di=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i=""){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(rd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(_m(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let o=_m(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new S(-5106,!1);o.insertBefore(n,r)}}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new S(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=rd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=rd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){let i=n.startsWith("--");i&&(n=n.replace("%NS%",this.cssVarNamespace)),i||o&(jt.DashCase|jt.Important)?t.style.setProperty(n,r,o&jt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){let o=n.startsWith("--");o&&(n=n.replace("%NS%",this.cssVarNamespace)),o||r&jt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Mt().getGlobalEventTarget(this.doc,t),!t))throw new S(-5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function _m(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var xa=class extends di{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,l,c){super(t,o,i,a,l),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let p=r.styles;p=bm(r.id,p).map(y=>y.replace(/%NS%/g,l));for(let y of p){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=y,this.shadowRoot.appendChild(m)}let h=r.getExternalStyles?.();if(h)for(let y of h){let m=od(y,o);s&&m.setAttribute("nonce",s),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},fi=class extends di{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,l,c){super(t,i,s,a,l),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let p=r.styles,h=c?bm(c,p):p;this.styles=h.map(y=>y.replace(/%NS%/g,l)),this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&_n.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Sa=class extends fi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,l,c){let p=o+"-"+r.id;super(t,n,r,i,s,a,l,c,p),this.contentAttr=nE(p),this.hostAttr=rE(p)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ma=class e extends ri{supportsDOMEvents=!0;static makeCurrent(){qu(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=oE();return n==null?null:iE(n)}resetBaseElement(){pi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ci(document.cookie,t)}},pi=null;function oE(){return pi=pi||document.head.querySelector("base"),pi?pi.getAttribute("href"):null}function iE(e){return new URL(e,document.baseURI).pathname}var Dm=["alt","control","meta","shift"],sE={"\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"},aE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Em=(()=>{class e extends ui{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Dm.forEach(c=>{let p=r.indexOf(c);p>-1&&(r.splice(p,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=sE[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Dm.forEach(s=>{if(s!==o){let a=aE[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)($(Fe))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})();async function cd(e,t){return Zh(lE(e,t))}function lE(e,t){return{platformRef:t?.platformRef,appProviders:[...pE,...e?.providers??[]],platformProviders:fE}}function cE(){Ma.makeCurrent()}function uE(){return new st}function dE(){return uu(document),document}var fE=[{provide:ko,useValue:mm},{provide:Ns,useValue:cE,multi:!0},{provide:Fe,useFactory:dE}];var pE=[{provide:Io,useValue:"root"},{provide:st,useFactory:uE},{provide:Ia,useClass:wa,multi:!0},{provide:Ia,useClass:Em,multi:!0},ld,{provide:ir,useClass:sd},{provide:sd,useExisting:ir},id,{provide:tr,useExisting:ld},[]];var cn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
- `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[n,r]of t.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,t.normalizedNames.get(n))}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=t.op==="a"?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(l=>s.indexOf(l)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Na=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Aa=class{encodeKey(t){return wm(t)}encodeValue(t){return wm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function gE(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var hE=/%(\d[a-f0-9])/gi,mE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wm(e){return encodeURIComponent(e).replace(hE,(t,n)=>mE[n]??t)}function Ta(e){return`${e}`}var ln=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Aa,t.fromString){if(t.fromObject)throw new S(2805,!1);this.map=gE(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Ta):[Ta(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(Ta(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(Ta(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};function yE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function xm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Sm(e){return typeof Blob<"u"&&e instanceof Blob}function Im(e){return typeof FormData<"u"&&e instanceof FormData}function vE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ud="Content-Type",Mm="Accept",Am="text/plain",Om="application/json",_E=`${Om}, ${Am}, */*`,Yr=class e{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(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(yE(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new S(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new cn,this.context??=new Na,!this.params)this.params=new ln,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n,l="",c=n.indexOf("#");c!==-1&&(l=n.substring(c),a=n.substring(0,c));let p=a.indexOf("?"),h=p===-1?"?":p<a.length-1?"&":"";this.urlWithParams=a+h+s+l}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||xm(this.body)||Sm(this.body)||Im(this.body)||vE(this.body)?this.body:this.body instanceof ln?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||Im(this.body)?null:Sm(this.body)?this.body.type||null:xm(this.body)?null:typeof this.body=="string"?Am:this.body instanceof ln?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Om:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,l=t.mode||this.mode,c=t.redirect||this.redirect,p=t.credentials||this.credentials,h=t.referrer??this.referrer,y=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,_=t.transferCache??this.transferCache,x=t.timeout??this.timeout,R=t.body!==void 0?t.body:this.body,F=t.withCredentials??this.withCredentials,ce=t.reportProgress??this.reportProgress,Qe=t.reportUploadProgress??this.reportUploadProgress,rt=t.reportDownloadProgress??this.reportDownloadProgress,Ke=t.headers||this.headers,ot=t.params||this.params,zt=t.context??this.context;return t.setHeaders!==void 0&&(Ke=Object.keys(t.setHeaders).reduce((Ve,Nt)=>Ve.set(Nt,t.setHeaders[Nt]),Ke)),t.setParams&&(ot=Object.keys(t.setParams).reduce((Ve,Nt)=>Ve.set(Nt,t.setParams[Nt]),ot)),new e(n,r,R,{params:ot,headers:Ke,context:zt,reportProgress:ce,reportUploadProgress:Qe,reportDownloadProgress:rt,responseType:o,withCredentials:F,transferCache:_,keepalive:i,cache:a,priority:s,timeout:x,mode:l,redirect:c,credentials:p,referrer:h,integrity:y,referrerPolicy:m})}},ur=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(ur||{}),Qr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new cn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Oa=class e extends Qr{constructor(t={}){super(t)}type=ur.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},gi=class e extends Qr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=ur.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},cr=class extends Qr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},CE=200;var bE=/^\)\]\}',?\n/,sj=1024*1024,km=new O("",{factory:()=>null}),Kr=(()=>{class e{fetchImpl=b(fd,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=b(De);destroyRef=b(de);maxResponseSize=b(km);handle(n){return new Q(r=>{let o=new AbortController,i=!1,s={next:l=>{l.type===ur.Response&&(i=!0),r.next(l)},error:l=>{i=!0,r.error(l)},complete:()=>{i=!0,r.complete()}};this.doRequest(n,o.signal,s).then(pd,l=>s.error(new cr({error:l})));let a;return n.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{a!==void 0&&clearTimeout(a),!i&&!o.signal.aborted&&o.abort()}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let R=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,j({signal:r},i)));DE(R),o.next({type:ur.Sent}),s=await R}catch(R){o.error(new cr({error:R,status:R.status??0,statusText:R.statusText,url:n.urlWithParams,headers:R.headers}));return}let a=new cn(s.headers),l=s.statusText,c=s.url||n.urlWithParams,p=s.status,h=null,y=n.reportProgress||n.reportDownloadProgress;if(y&&o.next(new Oa({headers:a,status:p,statusText:l,url:c})),s.body){let R=s.headers.get(ud)??"",F=s.headers.get("content-length"),ce=F!==null?Number(F):NaN;this.maxResponseSize!==null&&Number.isFinite(ce)&&ce>this.maxResponseSize&&(await s.body.cancel(),Tm(this.maxResponseSize));let Qe=[],rt=s.body.getReader(),Ke=0,ot,zt,Ve=typeof Zone<"u"&&Zone.current,Nt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await rt.cancel(),Nt=!0;break}let{done:Xa,value:el}=await rt.read();if(Xa)break;if(Qe.push(el),Ke+=el.length,this.maxResponseSize!==null&&Ke>this.maxResponseSize&&(await rt.cancel(),Tm(this.maxResponseSize)),y){zt=n.responseType==="text"?(zt??"")+(ot??=Nm(R)).decode(el,{stream:!0}):void 0;let jd=()=>o.next({type:ur.DownloadProgress,total:Number.isFinite(ce)?ce:void 0,loaded:Ke,partialText:zt});Ve?Ve.run(jd):jd()}}}),Nt){o.complete();return}let Ty=this.concatChunks(Qe,Ke);try{h=this.parseBody(n,Ty,R,p)}catch(Xa){o.error(new cr({error:Xa,headers:new cn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}p===0&&(p=h?CE:0);let m=p>=200&&p<300,_=s.redirected,x=s.type;m?(o.next(new gi({body:h,headers:a,status:p,statusText:l,url:c,redirected:_,responseType:x})),o.complete()):o.error(new cr({error:h,headers:a,status:p,statusText:l,url:c,redirected:_,responseType:x}))}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(bE,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case"text":return Nm(o).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new S(2824,!1);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(Mm)||(r[Mm]=_E),!n.headers.has(ud)){let i=n.detectContentTypeHeader();i!==null&&(r[ud]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})(),fd=class{};function pd(){}function DE(e){e.then(pd,pd)}function Tm(e){throw new S(-2825,!1)}var EE=/charset=\s*["']?([^;"'\s]+)["']?/i;function Nm(e){let t=e.match(EE);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var wE=new O("",{factory:()=>!0}),xE="XSRF-TOKEN",SE=new O("",{factory:()=>xE}),IE="X-XSRF-TOKEN",ME=new O("",{factory:()=>IE}),TE=(()=>{class e{cookieName=b(SE);doc=b(Fe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ci(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})(),Rm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(TE),o},providedIn:"root"})}return e})();function Pm(e,t){if(!b(wE)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=b(ma).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=b(Rm).getToken(),r=b(ME);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function NE(e,t){return t(e)}function AE(e,t,n){return(r,o)=>Tr(n,()=>t(r,i=>e(i,o)))}var gd=new O("",{factory:()=>[Pm]}),Fm=new O(""),Lm=new O("",{factory:()=>!0});var Ra=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(Kr),o},providedIn:"root"})}return e})();var ka=(()=>{class e{backend;injector;chain=null;pendingTasks=b(Lr);contributeToStability=b(Lm);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let o=this.injector.get(Pa,null,{skipSelf:!0}),i=o!==null&&this.backend===o,s=this.injector.get(Fm,[],i?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(gd),...s]));this.chain=a.reduceRight((l,c)=>AE(l,c,this.injector),NE)}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Ze(()=>r(n,i=>this.backend.handle(i))).pipe(El(o))}else return Ze(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)($(Ra),$(Ue))};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pa=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(ka),o},providedIn:"root"})}return e})();function dd(e,t){return j({body:t},e)}var Fa=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Yr)i=n;else{let l;o.headers instanceof cn?l=o.headers:l=new cn(o.headers);let c;o.params&&(o.params instanceof ln?c=o.params:c=new ln({fromObject:o.params})),i=new Yr(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=vl(i).pipe(Dl(l=>this.handler.handle(l)));if(n instanceof Yr||o.observe==="events")return s;let a=s.pipe(bl(l=>l instanceof gi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(xe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new S(2806,!1);return l.body}));case"blob":return a.pipe(xe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new S(2807,!1);return l.body}));case"text":return a.pipe(xe(l=>{if(l.body!==null&&typeof l.body!="string")throw new S(2808,!1);return l.body}));default:return a.pipe(xe(l=>l.body))}case"response":return a;default:throw new S(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ln().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,dd(o,r))}post(n,r,o={}){return this.request("POST",n,dd(o,r))}put(n,r,o={}){return this.request("PUT",n,dd(o,r))}static \u0275fac=function(r){return new(r||e)($(Pa))};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var La=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e[e.Xhr=7]="Xhr",e})(La||{});function Vm(e,t){return{\u0275kind:e,\u0275providers:t}}function hd(...e){let t=[Fa,Kr,ka,{provide:Pa,useExisting:ka},{provide:Ra,useFactory:()=>b(Kr)},{provide:gd,useValue:Pm,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Ir(t)}function md(e){return Vm(La.Interceptors,e.map(t=>({provide:gd,useValue:t,multi:!0})))}function yd(){return Vm(La.Fetch,[Kr,{provide:Ra,useExisting:Kr}])}var jm={apiBase:""},Jr=jm,Bm=!1;function OE(){if(!Bm)throw new Error(`Aastrika: configure() was never called. A host must supply at least apiBase:
1
+ var Ov=Object.defineProperty,Av=Object.defineProperties;var Pv=Object.getOwnPropertyDescriptors;var Uu=Object.getOwnPropertySymbols;var Rv=Object.prototype.hasOwnProperty,Fv=Object.prototype.propertyIsEnumerable;var $u=(e,t,n)=>t in e?Ov(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||={})Rv.call(t,n)&&$u(e,n,t[n]);if(Uu)for(var n of Uu(t))Fv.call(t,n)&&$u(e,n,t[n]);return e},z=(e,t)=>Av(e,Pv(t));var He=null,wo=!1,Nn=1,Lv=null,xe=Symbol("SIGNAL");function F(e){let t=He;return He=e,t}function To(){return He}var Tn={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 mr(e){if(wo)throw new Error("");if(He===null)return;He.consumerOnSignalRead(e);let t=He.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=He.recomputing;if(r&&(n=t!==void 0?t.nextProducer:He.producers,n!==void 0&&n.producer===e)){He.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Nn;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===He&&(!r||i.knownValidAtEpoch===Nn))return;let o=yr(He),s={producer:e,consumer:He,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Nn,lastReadVersion:e.version,nextConsumer:void 0};He.producersTail=s,t!==void 0?t.nextProducer=s:He.producers=s,o&&qu(e,s)}function zu(){Nn++}function ko(e){if(!(yr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Nn)){if(!e.producerMustRecompute(e)&&!pi(e)){No(e);return}e.producerRecomputeValue(e),No(e)}}function rc(e){if(e.consumers===void 0)return;let t=wo;wo=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Vv(r)}}finally{wo=t}}function ic(){return He?.consumerAllowSignalWrites!==!1}function Vv(e){e.dirty=!0,rc(e),e.consumerMarkedDirty?.(e)}function No(e){e.dirty=!1,e.lastCleanEpoch=Nn}function kn(e){return e&&Gu(e),F(e)}function Gu(e){if(e.producersTail?.knownValidAtEpoch===Nn){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function vr(e,t){F(t),e&&Wu(e)}function Wu(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(yr(e))do n=oc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function pi(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(ko(n),r!==n.version))return!0}return!1}function On(e){if(yr(e)){let t=e.producers;for(;t!==void 0;)t=oc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function qu(e,t){let n=e.consumersTail,r=yr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let i=e.producers;i!==void 0;i=i.nextProducer)qu(i.producer,i)}function oc(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:t.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!yr(t)){let o=t.producers;for(;o!==void 0;)o=oc(o)}return n}function yr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Oo(e){Lv?.(e)}function Ao(e,t){return Object.is(e,t)}function Po(e,t){let n=Object.create(jv);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ko(n),mr(n),n.value===fi)throw n.error;return n.value};return r[xe]=n,Oo(n),r}var Mo=Symbol("UNSET"),Io=Symbol("COMPUTING"),fi=Symbol("ERRORED"),jv=z(B({},Tn),{value:Mo,dirty:!0,error:null,equal:Ao,kind:"computed",producerMustRecompute(e){return e.value===Mo||e.value===Io},producerRecomputeValue(e){if(e.value===Io)throw new Error("");let t=e.value;e.value=Io;let n=kn(e),r,i=!1;try{r=e.computation(),F(null),i=t!==Mo&&t!==fi&&r!==fi&&e.equal(t,r)}catch(o){r=fi,e.error=o}finally{vr(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Bv(){throw new Error}var Zu=Bv;function Yu(e){Zu(e)}function sc(e){Zu=e}var Hv=null;function ac(e,t){let n=Object.create(gi);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Qu(n);return r[xe]=n,Oo(n),[r,s=>An(n,s),s=>cc(n,s)]}function Qu(e){return mr(e),e.value}function An(e,t){ic()||Yu(e),e.equal(e.value,t)||(e.value=t,Uv(e))}function cc(e,t){ic()||Yu(e),An(e,t(e.value))}var gi=z(B({},Tn),{equal:Ao,value:void 0,kind:"signal"});function Uv(e){e.version++,zu(),rc(e),Hv?.(e)}var lc=z(B({},Tn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function dc(e){if(e.dirty=!1,e.version>0&&!pi(e))return;e.version++;let t=kn(e);try{e.cleanup(),e.fn()}finally{vr(e,t)}}var uc;function Ro(){return uc}function Rt(e){let t=uc;return uc=e,t}var Ku=Symbol("NotFound");function _r(e){return e===Ku||e?.name==="\u0275NotFound"}function Ju(e){let t=F(null);try{return e()}finally{F(t)}}function Z(e){return typeof e=="function"}function Fo(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Lo=Fo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function hi(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Se=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(Z(r))try{r()}catch(o){t=o instanceof Lo?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Xu(o)}catch(s){t=t??[],s instanceof Lo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Lo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Xu(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&hi(n,t)}remove(t){let{_finalizers:n}=this;n&&hi(n,t),t instanceof e&&t._removeParent(this)}};Se.EMPTY=(()=>{let e=new Se;return e.closed=!0,e})();var fc=Se.EMPTY;function Vo(e){return e instanceof Se||e&&"closed"in e&&Z(e.remove)&&Z(e.add)&&Z(e.unsubscribe)}function Xu(e){Z(e)?e():e.unsubscribe()}var _t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Cr={setTimeout(e,t,...n){let{delegate:r}=Cr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Cr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function jo(e){Cr.setTimeout(()=>{let{onUnhandledError:t}=_t;if(t)t(e);else throw e})}function mi(){}var ef=pc("C",void 0,void 0);function tf(e){return pc("E",void 0,e)}function nf(e){return pc("N",e,void 0)}function pc(e,t,n){return{kind:e,value:t,error:n}}var Pn=null;function br(e){if(_t.useDeprecatedSynchronousErrorHandling){let t=!Pn;if(t&&(Pn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Pn;if(Pn=null,n)throw r}}else e()}function rf(e){_t.useDeprecatedSynchronousErrorHandling&&Pn&&(Pn.errorThrown=!0,Pn.error=e)}var Rn=class extends Se{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Vo(t)&&t.add(this)):this.destination=Gv}static create(t,n,r){return new Dr(t,n,r)}next(t){this.isStopped?hc(nf(t),this):this._next(t)}error(t){this.isStopped?hc(tf(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?hc(ef,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},$v=Function.prototype.bind;function gc(e,t){return $v.call(e,t)}var mc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Bo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Bo(r)}else Bo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Bo(n)}}},Dr=class extends Rn{constructor(t,n,r){super();let i;if(Z(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&_t.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&gc(t.next,o),error:t.error&&gc(t.error,o),complete:t.complete&&gc(t.complete,o)}):i=t}this.destination=new mc(i)}};function Bo(e){_t.useDeprecatedSynchronousErrorHandling?rf(e):jo(e)}function zv(e){throw e}function hc(e,t){let{onStoppedNotification:n}=_t;n&&Cr.setTimeout(()=>n(e,t))}var Gv={closed:!0,next:mi,error:zv,complete:mi};var Er=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ho(e){return e}function of(e){return e.length===0?Ho:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var K=class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,r){let i=qv(t)?t:new Dr(t,n,r);return br(()=>{let{operator:o,source:s}=this;i.add(o?o.call(i,s):s?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=sf(n),new n((r,i)=>{let o=new Dr({next:s=>{try{t(s)}catch(a){i(a),o.unsubscribe()}},error:i,complete:r});this.subscribe(o)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[Er](){return this}pipe(...t){return of(t)(this)}toPromise(t){return t=sf(t),new t((n,r)=>{let i;this.subscribe(o=>i=o,o=>r(o),()=>n(i))})}};K.create=e=>new K(e);function sf(e){var t;return(t=e??_t.Promise)!==null&&t!==void 0?t:Promise}function Wv(e){return e&&Z(e.next)&&Z(e.error)&&Z(e.complete)}function qv(e){return e&&e instanceof Rn||Wv(e)&&Vo(e)}function Zv(e){return Z(e?.lift)}function Ae(e){return t=>{if(Zv(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pe(e,t,n,r,i){return new vc(e,t,n,r,i)}var vc=class extends Rn{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var af=Fo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Re=class extends K{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new Uo(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new af}next(t){br(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){br(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){br(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:r,observers:i}=this;return n||r?fc:(this.currentObservers=null,i.push(t),new Se(()=>{this.currentObservers=null,hi(i,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:r,isStopped:i}=this;n?t.error(r):i&&t.complete()}asObservable(){let t=new K;return t.source=this,t}};Re.create=(e,t)=>new Uo(e,t);var Uo=class extends Re{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:fc}};var vi=class extends Re{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var yc={now(){return(yc.delegate||Date).now()},delegate:void 0};var xr=class extends Re{constructor(t=1/0,n=1/0,r=yc){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!t.closed;s+=r?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var cf=new K(e=>e.complete());function lf(e){return e&&Z(e.schedule)}function _c(e){return e[e.length-1]}function df(e){return Z(_c(e))?e.pop():void 0}function $o(e){return lf(_c(e))?e.pop():void 0}function uf(e,t){return typeof _c(e)=="number"?e.pop():t}function pf(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(p){try{l(r.next(p))}catch(h){s(h)}}function c(p){try{l(r.throw(p))}catch(h){s(h)}}function l(p){p.done?o(p.value):i(p.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function ff(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fn(e){return this instanceof Fn?(this.v=e,this):new Fn(e)}function gf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(m){return function(_){return Promise.resolve(_).then(m,h)}}function a(m,_){r[m]&&(i[m]=function(S){return new Promise(function(R,L){o.push([m,S,R,L])>1||c(m,S)})},_&&(i[m]=_(i[m])))}function c(m,_){try{l(r[m](_))}catch(S){v(o[0][3],S)}}function l(m){m.value instanceof Fn?Promise.resolve(m.value.v).then(p,h):v(o[0][2],m)}function p(m){c("next",m)}function h(m){c("throw",m)}function v(m,_){m(_),o.shift(),o.length&&c(o[0][0],o[0][1])}}function hf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ff=="function"?ff(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var zo=(e=>e&&typeof e.length=="number"&&typeof e!="function");function Go(e){return Z(e?.then)}function Wo(e){return Z(e[Er])}function qo(e){return Symbol.asyncIterator&&Z(e?.[Symbol.asyncIterator])}function Zo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Yv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yo=Yv();function Qo(e){return Z(e?.[Yo])}function Ko(e){return gf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Fn(n.read());if(i)return yield Fn(void 0);yield yield Fn(r)}}finally{n.releaseLock()}})}function Jo(e){return Z(e?.getReader)}function De(e){if(e instanceof K)return e;if(e!=null){if(Wo(e))return Qv(e);if(zo(e))return Kv(e);if(Go(e))return Jv(e);if(qo(e))return mf(e);if(Qo(e))return Xv(e);if(Jo(e))return ey(e)}throw Zo(e)}function Qv(e){return new K(t=>{let n=e[Er]();if(Z(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Kv(e){return new K(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Jv(e){return new K(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,jo)})}function Xv(e){return new K(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function mf(e){return new K(t=>{ty(e,t).catch(n=>t.error(n))})}function ey(e){return mf(Ko(e))}function ty(e,t){var n,r,i,o;return pf(this,void 0,void 0,function*(){try{for(n=hf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function at(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Xo(e,t=0){return Ae((n,r)=>{n.subscribe(Pe(r,i=>at(r,e,()=>r.next(i),t),()=>at(r,e,()=>r.complete(),t),i=>at(r,e,()=>r.error(i),t)))})}function es(e,t=0){return Ae((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function vf(e,t){return De(e).pipe(es(t),Xo(t))}function yf(e,t){return De(e).pipe(es(t),Xo(t))}function _f(e,t){return new K(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Cf(e,t){return new K(n=>{let r;return at(n,t,()=>{r=e[Yo](),at(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>Z(r?.return)&&r.return()})}function ts(e,t){if(!e)throw new Error("Iterable cannot be null");return new K(n=>{at(n,t,()=>{let r=e[Symbol.asyncIterator]();at(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function bf(e,t){return ts(Ko(e),t)}function Df(e,t){if(e!=null){if(Wo(e))return vf(e,t);if(zo(e))return _f(e,t);if(Go(e))return yf(e,t);if(qo(e))return ts(e,t);if(Qo(e))return Cf(e,t);if(Jo(e))return bf(e,t)}throw Zo(e)}function Yt(e,t){return t?Df(e,t):De(e)}function Cc(...e){let t=$o(e);return Yt(e,t)}function we(e,t){return Ae((n,r)=>{let i=0;n.subscribe(Pe(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:ny}=Array;function ry(e,t){return ny(t)?e(...t):e(t)}function Ef(e){return we(t=>ry(e,t))}var{isArray:iy}=Array,{getPrototypeOf:oy,prototype:sy,keys:ay}=Object;function xf(e){if(e.length===1){let t=e[0];if(iy(t))return{args:t,keys:null};if(cy(t)){let n=ay(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function cy(e){return e&&typeof e=="object"&&oy(e)===sy}function Sf(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function wf(e,t,n,r,i,o,s,a){let c=[],l=0,p=0,h=!1,v=()=>{h&&!c.length&&!l&&t.complete()},m=S=>l<r?_(S):c.push(S),_=S=>{o&&t.next(S),l++;let R=!1;De(n(S,p++)).subscribe(Pe(t,L=>{i?.(L),o?m(L):t.next(L)},()=>{R=!0},void 0,()=>{if(R)try{for(l--;c.length&&l<r;){let L=c.shift();s?at(t,s,()=>_(L)):_(L)}v()}catch(L){t.error(L)}}))};return e.subscribe(Pe(t,m,()=>{h=!0,v()})),()=>{a?.()}}function Sr(e,t,n=1/0){return Z(t)?Sr((r,i)=>we((o,s)=>t(r,o,i,s))(De(e(r,i))),n):(typeof t=="number"&&(n=t),Ae((r,i)=>wf(r,i,e,n)))}function Mf(e=1/0){return Sr(Ho,e)}function bc(...e){let t=df(e),{args:n,keys:r}=xf(e),i=new K(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let p=0;p<s;p++){let h=!1;De(n[p]).subscribe(Pe(o,v=>{h||(h=!0,l--),a[p]=v},()=>c--,void 0,()=>{(!c||!h)&&(l||o.next(r?Sf(r,a):a),o.complete())}))}});return t?i.pipe(Ef(t)):i}function Dc(...e){let t=$o(e),n=uf(e,1/0),r=e;return r.length?r.length===1?De(r[0]):Mf(n)(Yt(r,t)):cf}function Ec(e,t){return Ae((n,r)=>{let i=0;n.subscribe(Pe(r,o=>e.call(t,o,i++)&&r.next(o)))})}function xc(e,t){return Z(t)?Sr(e,t,1):Sr(e,1)}function Sc(e){return Ae((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ln(e,t){return Ae((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(Pe(r,c=>{i?.unsubscribe();let l=0,p=o++;De(e(c,p)).subscribe(i=Pe(r,h=>r.next(t?t(c,h,p,l++):h),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function wc(e){return Ae((t,n)=>{De(e).subscribe(Pe(n,()=>n.complete(),mi)),!n.closed&&t.subscribe(n)})}var cs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",w=class extends Error{code;constructor(t,n){super(fn(t,n)),this.code=t}};function ly(e){return`NG0${Math.abs(e)}`}function fn(e,t){return`${ly(e)}${t?": "+t:""}`}function se(e){for(let t in e)if(e[t]===se)return t;throw Error("")}function Of(e,t){for(let n in t)Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&(e[n]=t[n])}function ls(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ls).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function ds(e,t){return e?t?`${e} ${t}`:e:t||""}var dy=se({__forward_ref__:se});function Ge(e){return e.__forward_ref__=Ge,e}function Me(e){return jc(e)?e():e}function jc(e){return typeof e=="function"&&Object.hasOwn(e,dy)&&e.__forward_ref__===Ge}function ne(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Xt(e){return{providers:e.providers||[],imports:e.imports||[]}}function us(e){return uy(e,fs)}function uy(e,t){return Object.hasOwn(e,t)&&e[t]||null}function fy(e){let t=e?.[fs]??null;return t||null}function Ic(e){return e&&Object.hasOwn(e,rs)?e[rs]:null}var fs=se({\u0275prov:se}),rs=se({\u0275inj:se}),A=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=ne({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bc(e){return e&&!!e.\u0275providers}var Ei=se({\u0275cmp:se}),xi=se({\u0275dir:se}),Hc=se({\u0275pipe:se});var _i=se({\u0275fac:se}),Un=se({__NG_ELEMENT_ID__:se}),If=se({__NG_ENV_ID__:se});function en(e){return $c(e,"@Component"),e[Ei]||null}function Uc(e){return $c(e,"@Directive"),e[xi]||null}function Af(e){return $c(e,"@Pipe"),e[Hc]||null}function $c(e,t){if(e==null)throw new w(-919,!1)}function tn(e){return typeof e=="string"?e:e==null?"":String(e)}var Pf=se({ngErrorCode:se}),py=se({ngErrorMessage:se}),gy=se({ngTokenPath:se});function zc(e,t){return Rf("",-200,t)}function ps(e,t){throw new w(-201,!1)}function Rf(e,t,n){let r=new w(t,e);return r[Pf]=t,r[py]=e,n&&(r[gy]=n),r}function hy(e){return e[Pf]}var Nc;function Ff(){return Nc}function Ue(e){let t=Nc;return Nc=e,t}function Gc(e,t,n){let r=us(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;ps(e,"")}var $n=globalThis;var my={},Vn=my,vy="__NG_DI_FLAG__",Tc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=jn(n)||0;try{return this.injector.get(t,r&8?null:Vn,r)}catch(i){if(_r(i))return i;throw i}}};function yy(e,t=0){let n=Ro();if(n===void 0)throw new w(-203,!1);if(n===null)return Gc(e,void 0,t);{let r=_y(t),i=n.retrieve(e,r);if(_r(i)){if(r.optional)return null;throw i}return i}}function G(e,t=0){return(Ff()||yy)(Me(e),t)}function x(e,t){return G(e,jn(t))}function jn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function _y(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function kc(e){let t=[];for(let n=0;n<e.length;n++){let r=Me(e[n]);if(Array.isArray(r)){if(r.length===0)throw new w(900,!1);let i,o=0;for(let s=0;s<r.length;s++){let a=r[s],c=Cy(a);typeof c=="number"?c===-1?i=a.token:o|=c:i=a}t.push(G(i,o))}else t.push(G(r))}return t}function Cy(e){return e[vy]}function un(e,t){let n=Object.hasOwn(e,_i);return n?e[_i]:null}function Lf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function Vf(e){return e.flat(Number.POSITIVE_INFINITY)}function gs(e,t){e.forEach(n=>Array.isArray(n)?gs(n,t):t(n))}function Wc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Si(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function jf(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function hs(e,t,n){let r=Ir(e,t);return r>=0?e[r|1]=n:(r=~r,jf(e,r,t,n)),r}function ms(e,t){let n=Ir(e,t);if(n>=0)return e[n|1]}function Ir(e,t){return by(e,t,1)}function by(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var pn={},$e=[],wi=new A(""),Mi=new A("",-1),qc=new A(""),Mr=class{get(t,n=Vn){if(n===Vn){let i=Rf("",-201);throw i.name="\u0275NotFound",i}return n}};function Nr(e){return{\u0275providers:e}}function Bf(...e){return{\u0275providers:Zc(!0,e),\u0275fromNgModule:!0}}function Zc(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return gs(t,s=>{let a=s;is(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Hf(i,o),n}function Hf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];Yc(i,o=>{t(o,r)})}}function is(e,t,n,r){if(e=Me(e),!e)return!1;let i=null,o=Ic(e),s=!o&&en(e);if(!o&&!s){let c=e.ngModule;if(o=Ic(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)is(l,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;gs(o.imports,p=>{is(p,t,n,r)&&(l||=[],l.push(p))}),l!==void 0&&Hf(l,t)}if(!a){let l=un(i)||(()=>new i);t({provide:i,useFactory:l,deps:$e},i),t({provide:qc,useValue:i,multi:!0},i),t({provide:wi,useValue:()=>G(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=e;Yc(c,p=>{t(p,l)})}}else return!1;return i!==e&&e.providers!==void 0}function Yc(e,t){for(let n of e)Bc(n)&&(n=n.\u0275providers),Array.isArray(n)?Yc(n,t):t(n)}var Dy=se({provide:String,useValue:se});function Uf(e){return e!==null&&typeof e=="object"&&Dy in e}function Ey(e){return!!(e&&e.useExisting)}function xy(e){return!!(e&&e.useFactory)}function Bn(e){return typeof e=="function"}function $f(e){return!!e.useClass}var Ii=new A(""),ns={},Nf={},Mc;function Tr(){return Mc===void 0&&(Mc=new Mr),Mc}var ze=class{},Hn=class extends ze{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,Ac(t,s=>this.processProvider(s)),this.records.set(Mi,wr(void 0,this)),i.has("environment")&&this.records.set(ze,wr(void 0,this));let o=this.records.get(Ii);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(qc,$e,{self:!0}))}retrieve(t,n){let r=jn(n)||0;try{return this.get(t,Vn,r)}catch(i){if(_r(i))return i;throw i}}destroy(){yi(this),this._destroyed=!0;let t=F(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),F(t)}}onDestroy(t){return yi(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){yi(this);let n=Rt(this),r=Ue(void 0),i;try{return t()}finally{Rt(n),Ue(r)}}get(t,n=Vn,r){if(yi(this),Object.hasOwn(t,If))return t[If](this);let i=jn(r),o,s=Rt(this),a=Ue(void 0);try{if(!(i&4)){let l=this.records.get(t);if(l===void 0){let p=Ny(t)&&us(t);p&&this.injectableDefInScope(p)?l=wr(Oc(t),ns):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,i)}let c=i&2?Tr():this.parent;return n=i&8&&n===Vn?null:n,c.get(t,n)}catch(c){let l=hy(c);throw l===-200||l===-201?new w(l,null):c}finally{Ue(a),Rt(s)}}resolveInjectorInitializers(){let t=F(null),n=Rt(this),r=Ue(void 0),i;try{let o=this.get(wi,$e,{self:!0});for(let s of o)s()}finally{Rt(n),Ue(r),F(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Me(t);let n=Bn(t)?t:Me(t&&t.provide),r=wy(t);if(!Bn(t)&&t.multi===!0){let i=this.records.get(n);i||(i=wr(void 0,ns,!0),i.factory=()=>kc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let i=F(null);try{if(n.value===Nf)throw zc("");return n.value===ns&&(n.value=Nf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Iy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{F(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Me(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Oc(e){let t=us(e),n=t!==null?t.factory:un(e);if(n!==null)return n;if(e instanceof A)throw new w(-204,!1);if(e instanceof Function)return Sy(e);throw new w(-204,!1)}function Sy(e){if(e.length>0)throw new w(-204,!1);let n=fy(e);return n!==null?()=>n.factory(e):()=>new e}function wy(e){if(Uf(e))return wr(void 0,e.useValue);{let t=Qc(e);return wr(t,ns)}}function Qc(e,t,n){let r;if(Bn(e)){let i=Me(e);return un(i)||Oc(i)}else if(Uf(e))r=()=>Me(e.useValue);else if(xy(e))r=()=>e.useFactory(...kc(e.deps||[]));else if(Ey(e))r=(i,o)=>G(Me(e.useExisting),o!==void 0&&o&8?8:void 0);else{let i=Me(e&&(e.useClass||e.provide));if(My(e))r=()=>new i(...kc(e.deps));else return un(i)||Oc(i)}return r}function yi(e){if(e.destroyed)throw new w(-205,!1)}function wr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function My(e){return!!e.deps}function Iy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Ny(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Ac(e,t){for(let n of e)Array.isArray(n)?Ac(n,t):n&&Bc(n)?Ac(n.\u0275providers,t):t(n)}function kr(e,t){let n;e instanceof Hn?(yi(e),n=e):n=new Tc(e);let r,i=Rt(n),o=Ue(void 0);try{return t()}finally{Rt(i),Ue(o)}}function zf(){return Ff()!==void 0||Ro()!=null}var bt=0,P=1,V=2,_e=3,lt=4,Ze=5,Or=6,Ar=7,he=8,Ft=9,Dt=10,ce=11,Pr=12,Kc=13,gn=14,et=15,hn=16,zn=17,Lt=18,Vt=19,Jc=20,Qt=21,vs=22,Kt=23,tt=24,Gn=25,jt=26,ve=27,Gf=1,Xc=6,Wn=7,Ni=8,qn=9,pe=10;function nn(e){return Array.isArray(e)&&typeof e[Gf]=="object"}function dt(e){return Array.isArray(e)&&e[Gf]===!0}function el(e){return(e.flags&4)!==0}function rn(e){return e.componentOffset>-1}function ys(e){return(e.flags&1)===1}function Bt(e){return!!e.template}function Rr(e){return(e[V]&512)!==0}function Zn(e){return(e[V]&256)===256}var _s=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(_s||{});var tl="svg",Wf="math";function Ie(e){for(;Array.isArray(e);)e=e[bt];return e}function nl(e,t){return Ie(t[e])}function ut(e,t){return Ie(t[e.index])}function Cs(e,t){return e.data[t]}function rl(e,t){return e[t]}function il(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ft(e,t){let n=t[e];return nn(n)?n:n[bt]}function qf(e){return(e[V]&4)===4}function bs(e){return(e[V]&128)===128}function Zf(e){return dt(e[_e])}function Ht(e,t){return t==null?null:e[t]}function ol(e){e[zn]=0}function Ds(e){e[V]&1024||(e[V]|=1024,bs(e)&&Yn(e))}function Yf(e,t){for(;e>0;)t=t[gn],e--;return t}function Fr(e){return!!(e[V]&9216||e[tt]?.dirty)}function Es(e){e[Dt].changeDetectionScheduler?.notify(8),e[V]&64&&(e[V]|=1024),Fr(e)&&Yn(e)}function Yn(e){e[Dt].changeDetectionScheduler?.notify(0);let t=Jt(e);for(;t!==null&&!(t[V]&8192||(t[V]|=8192,!bs(t)));)t=Jt(t)}function xs(e,t){if(Zn(e))throw new w(911,!1);e[Qt]===null&&(e[Qt]=[]),e[Qt].push(t)}function Qf(e,t){if(e[Qt]===null)return;let n=e[Qt].indexOf(t);n!==-1&&e[Qt].splice(n,1)}function Jt(e){let t=e[_e];return dt(t)?t[_e]:t}function sl(e){return e[Ar]??=[]}function al(e){return e.cleanup??=[]}function Kf(e,t,n,r){let i=sl(t);i.push(n),e.firstCreatePass&&al(e).push(r,i.length-1)}var U={lFrame:dp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Pc=!1;function Jf(){return U.lFrame.elementDepthCount}function Xf(){U.lFrame.elementDepthCount++}function cl(){U.lFrame.elementDepthCount--}function ep(){return U.bindingsEnabled}function tp(){return U.skipHydrationRootTNode!==null}function ll(e){return U.skipHydrationRootTNode===e}function dl(){U.skipHydrationRootTNode=null}function j(){return U.lFrame.lView}function ge(){return U.lFrame.tView}function M(e){return U.lFrame.contextLView=e,e[he]}function I(e){return U.lFrame.contextLView=null,e}function Ne(){let e=ul();for(;e!==null&&e.type===64;)e=e.parent;return e}function ul(){return U.lFrame.currentTNode}function np(){let e=U.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Lr(e,t){let n=U.lFrame;n.currentTNode=e,n.isParent=t}function fl(){return U.lFrame.isParent}function rp(){U.lFrame.isParent=!1}function pl(){return Pc}function Ci(e){let t=Pc;return Pc=e,t}function Ss(){let e=U.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function gl(){return U.lFrame.bindingIndex}function ip(e){return U.lFrame.bindingIndex=e}function mn(){return U.lFrame.bindingIndex++}function Ti(e){let t=U.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function op(){return U.lFrame.inI18n}function sp(e,t){let n=U.lFrame;n.bindingIndex=n.bindingRootIndex=e,ws(t)}function ap(){return U.lFrame.currentDirectiveIndex}function ws(e){U.lFrame.currentDirectiveIndex=e}function cp(e){let t=U.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function hl(){return U.lFrame.currentQueryIndex}function Ms(e){U.lFrame.currentQueryIndex=e}function Ty(e){let t=e[P];return t.type===2?t.declTNode:t.type===1?e[Ze]:null}function ml(e,t,n){if(n&4){let i=t,o=e;for(;i=i.parent,i===null&&!(n&1);)if(i=Ty(o),i===null||(o=o[gn],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=U.lFrame=lp();return r.currentTNode=t,r.lView=e,!0}function Is(e){let t=lp(),n=e[P];U.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function lp(){let e=U.lFrame,t=e===null?null:e.child;return t===null?dp(e):t}function dp(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function up(){let e=U.lFrame;return U.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vl=up;function Ns(){let e=up();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function fp(e){return(U.lFrame.contextLView=Yf(e,U.lFrame.contextLView))[he]}function Et(){return U.lFrame.selectedIndex}function vn(e){U.lFrame.selectedIndex=e}function Vr(){let e=U.lFrame;return Cs(e.tView,e.selectedIndex)}function Qn(){U.lFrame.currentNamespace=tl}function ki(){ky()}function ky(){U.lFrame.currentNamespace=null}function yl(){return U.lFrame.currentNamespace}var pp=!0;function Ts(){return pp}function ks(e){pp=e}function Rc(e,t=null,n=null,r){let i=gp(e,t,n,r);return i.resolveInjectorInitializers(),i}function gp(e,t=null,n=null,r,i=new Set){let o=[n||$e,Bf(e)],s;return new Hn(o,t||Tr(),s||null,i)}var Le=class e{static THROW_IF_NOT_FOUND=Vn;static NULL=new Mr;static create(t,n){if(Array.isArray(t))return Rc({name:""},n,t,"");{let r=t.name??"";return Rc({name:r},t.parent,t.providers,r)}}static \u0275prov=ne({token:e,providedIn:"any",factory:()=>G(Mi)});static __NG_ELEMENT_ID__=-1},Ve=new A(""),fe=class{static __NG_ELEMENT_ID__=Oy;static __NG_ENV_ID__=t=>t},os=class extends fe{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Zn(this._lView)}onDestroy(t){let n=this._lView;return xs(n,t),()=>Qf(n,t)}};function Oy(){return new os(j())}var hp=!1,mp=new A(""),Kn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new vi(!1);debugTaskTracker=x(mp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new K(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),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=ne({token:e,providedIn:"root",factory:()=>new e})}return e})(),Fc=class extends Re{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,zf()&&(this.destroyRef=x(fe,{optional:!0})??void 0,this.pendingTasks=x(Kn,{optional:!0})??void 0)}emit(t){let n=F(null);try{super.next(t)}finally{F(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof Se&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Fe=Fc;function ss(...e){}function _l(e){let t,n;function r(){e=ss;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function vp(e){return queueMicrotask(()=>e()),()=>{e=ss}}var Cl="isAngularZone",bi=Cl+"_ID",Ay=0,Ee=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Fe(!1);onMicrotaskEmpty=new Fe(!1);onStable=new Fe(!1);onError=new Fe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=hp}=t;if(typeof Zone>"u")throw new w(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)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,Fy(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Cl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,Py,ss,ss);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Py={};function bl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ry(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){_l(()=>{e.callbackScheduled=!1,Lc(e),e.isCheckStableRunning=!0,bl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Lc(e)}function Fy(e){let t=()=>{Ry(e)},n=Ay++;e._inner=e._inner.fork({name:"angular",properties:{[Cl]:!0,[bi]:n,[bi+n]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(Ly(c))return r.invokeTask(o,s,a,c);try{return Tf(e),r.invokeTask(o,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),kf(e)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return Tf(e),r.invoke(o,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Vy(c)&&t(),kf(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Lc(e),bl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Lc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Tf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function kf(e){e._nesting--,bl(e)}var Di=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Fe;onMicrotaskEmpty=new Fe;onStable=new Fe;onError=new Fe;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function Ly(e){return yp(e,"__ignore_ng_zone__")}function Vy(e){return yp(e,"__scheduler_tick__")}function yp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var ct=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yn=new A("",{factory:()=>{let e=x(Ee),t=x(ze),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(ct),n.handleError(r))})}}}),_p={provide:wi,useValue:()=>{let e=x(ct,{optional:!0})},multi:!0};function k(e,t){let[n,r,i]=ac(e,t?.equal),o=n,s=o[xe];return o.set=r,o.update=i,o.asReadonly=Dl.bind(o),o}function Dl(){let e=this[xe];if(e.readonlyFn===void 0){let t=()=>this();t[xe]=e,e.readonlyFn=t}return e.readonlyFn}var Oi=new A("",{factory:()=>jy}),jy="ng";var Os=new A(""),Ai=new A("",{providedIn:"platform",factory:()=>"unknown"});var Pi=new A("",{factory:()=>x(Ve).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Ri=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=By}return e})();function By(){return new Ri(j(),Ne())}var Ct=class{},Fi=new A("",{factory:()=>!0});var El=new A(""),As=(()=>{class e{static \u0275prov=ne({token:e,providedIn:"root",factory:()=>new Vc})}return e})(),Vc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},as=class{[xe];constructor(t){this[xe]=t}destroy(){this[xe].destroy()}};function xt(e,t){let n=t?.injector??x(Le),r=t?.manualCleanup!==!0?n.get(fe):null,i,o=n.get(Ri,null,{optional:!0}),s=n.get(Ct);return o!==null?(i=bp(o.view,s,e),r instanceof os&&r._lView===o.view&&(r=null)):i=$y(e,n.get(As),s),i.injector=n,r!==null&&(i.onDestroyFns=[r.onDestroy(()=>i.destroy())]),new as(i)}var Cp=z(B({},lc),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Ci(!1);try{dc(this)}finally{Ci(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=F(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],F(e)}}}),Hy=z(B({},Cp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(On(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Uy=z(B({},Cp),{consumerMarkedDirty(){this.view[V]|=8192,Yn(this.view),this.notifier.notify(13)},destroy(){if(On(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Kt]?.delete(this)}});function bp(e,t,n){let r=Object.create(Uy);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Dp(r,n),e[Kt]??=new Set,e[Kt].add(r),r.consumerMarkedDirty(r),r}function $y(e,t,n){let r=Object.create(Hy);return r.fn=Dp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Dp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Jn(e){return typeof e=="function"&&e[xe]!==void 0}function Ps(e){return Jn(e)&&typeof e.set=="function"}var jr=(()=>{class e{internalPendingTasks=x(Kn);scheduler=x(Ct);errorHandler=x(yn);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(i){this.errorHandler(i),r()}}static \u0275prov=ne({token:e,providedIn:"root",factory:()=>new e})}return e})();var ra=Symbol("InputSignalNode#UNSET"),rg=z(B({},gi),{transformFn:void 0,applyValueToInputSignal(e,t){An(e,t)}});function Yi(e){return{toString:e}.toString()}var J=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(J||{}),Bs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ig(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var og=null,sr=(()=>{og=Ep;let e=()=>Ep;return e.ngInherit=!0,e})();function e0(){return og}function Ep(e){return e.type.prototype.ngOnChanges&&(e.setInput=n0),t0}function t0(){let e=sg(this),t=e?.current;if(t){let n=e.previous;if(n===pn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function n0(e,t,n,r,i){let o=this.declaredInputs[r],s=sg(e)||r0(e,{previous:pn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new Bs(l&&l.currentValue,n,c===pn),ig(e,t,i,n)}var Rl="__ngSimpleChanges__";function sg(e){return Object.hasOwn(e,Rl)&&e[Rl]||null}function r0(e,t){return e[Rl]=t}var xp=[];var re=function(e,t=null,n){for(let r=0;r<xp.length;r++){let i=xp[r];i(e,t,n)}};function i0(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=e0()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function o0(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:p}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),p!=null&&(e.destroyHooks??=[]).push(n,p)}}function Fs(e,t,n){ag(e,t,3,n)}function Ls(e,t,n,r){(e[V]&3)===n&&ag(e,t,n,r)}function xl(e,t){let n=e[V];(n&3)===t&&(n&=16383,n+=1,e[V]=n)}function ag(e,t,n,r){let i=r!==void 0?e[zn]&65535:0,o=r??-1,s=t.length-1,a=0;for(let c=i;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[zn]+=65536),(a<o||o==-1)&&(s0(e,n,t,c),e[zn]=(e[zn]&4294901760)+c+2),c++}function Sp(e,t){re(J.LifecycleHookStart,e,t);let n=F(null);try{t.call(e)}finally{F(n),re(J.LifecycleHookEnd,e,t)}}function s0(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[V]>>14<e[zn]>>16&&(e[V]&3)===t&&(e[V]+=16384,Sp(a,o)):Sp(a,o)}var Hr=-1,tr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,i){this.factory=t,this.name=i,this.canSeeViewProviders=n,this.injectImpl=r}};function a0(e){return(e.flags&8)!==0}function c0(e){return(e.flags&16)!==0}function l0(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];u0(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function d0(e){return e===3||e===4||e===6}function u0(e){return e.charCodeAt(0)===64}function Ur(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?wp(e,n,i,null,t[++r]):wp(e,n,i,null,null))}}return e}function wp(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){i!==null&&(e[o+1]=i);return}o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),i!==null&&e.splice(o++,0,i)}function cg(e){return e!==Hr}function Hs(e){return e&32767}function f0(e){return e>>16}function Us(e,t){let n=f0(e),r=t;for(;n>0;)r=r[gn],n--;return r}var Fl=!0;function $s(e){let t=Fl;return Fl=e,t}var p0=256,lg=p0-1,dg=5,g0=0,Ut={};function h0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,Un)&&(r=n[Un]),r==null&&(r=n[Un]=g0++);let i=r&lg,o=1<<i;t.data[e+(i>>dg)]|=o}function zs(e,t){let n=ug(e,t);if(n!==-1)return n;let r=t[P];r.firstCreatePass&&(e.injectorIndex=t.length,Sl(r.data,e),Sl(t,null),Sl(r.blueprint,null));let i=dd(e,t),o=e.injectorIndex;if(cg(i)){let s=Hs(i),a=Us(i,t),c=a[P].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|c[s+l]}return t[o+8]=i,o}function Sl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ug(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function dd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=mg(i),r===null)return Hr;if(n++,i=i[gn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Hr}function Ll(e,t,n){h0(e,t,n)}function fg(e,t,n){if(n&8||e!==void 0)return e;ps(t,"NodeInjector")}function pg(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[Ft],o=Ue(void 0);try{return i?i.get(t,r,n&8):Gc(t,r,n&8)}finally{Ue(o)}}return fg(r,t,n)}function gg(e,t,n,r=0,i){if(e!==null){if(t[V]&2048&&!(r&2)){let s=_0(e,t,n,r,Ut);if(s!==Ut)return s}let o=hg(e,t,n,r,Ut);if(o!==Ut)return o}return pg(t,n,r,i)}function hg(e,t,n,r,i){let o=v0(n);if(typeof o=="function"){if(!ml(t,e,r))return r&1?fg(i,n,r):pg(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&8))ps(n);else return s}finally{vl()}}else if(typeof o=="number"){let s=null,a=ug(e,t),c=Hr,l=r&1?t[et][Ze]:null;for((a===-1||r&4)&&(c=a===-1?dd(e,t):t[a+8],c===Hr||!Ip(r,!1)?a=-1:(s=t[P],a=Hs(c),t=Us(c,t)));a!==-1;){let p=t[P];if(Mp(o,a,p.data)){let h=m0(a,t,n,s,r,l);if(h!==Ut)return h}c=t[a+8],c!==Hr&&Ip(r,t[P].data[a+8]===l)&&Mp(o,a,t)?(s=p,a=Hs(c),t=Us(c,t)):a=-1}}return i}function m0(e,t,n,r,i,o){let s=t[P],a=s.data[e+8],c=r==null?rn(a)&&Fl:r!=s&&(a.type&3)!==0,l=i&1&&o===a,p=Vs(a,s,n,c,l);return p!==null?Hi(t,s,p,a,i):Ut}function Vs(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,c=e.directiveStart,l=e.directiveEnd,p=o>>20,h=r?a:a+p,v=i?a+p:l;for(let m=h;m<v;m++){let _=s[m];if(m<c&&n===_||m>=c&&_.type===n)return m}if(i){let m=s[c];if(m&&Bt(m)&&m.type===n)return c}return null}function Hi(e,t,n,r,i){let o=e[n],s=t.data;if(o instanceof tr){let a=o;if(a.resolving)throw zc("");let c=$s(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],p,h=a.injectImpl?Ue(a.injectImpl):null,v=ml(e,r,0);try{o=e[n]=a.factory(void 0,i,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&i0(n,s[n],t)}finally{h!==null&&Ue(h),$s(c),a.resolving=!1,vl()}}return o}function v0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Un)?e[Un]:void 0;return typeof t=="number"?t>=0?t&lg:y0:t}function Mp(e,t,n){let r=1<<e;return!!(n[t+(e>>dg)]&r)}function Ip(e,t){return!(e&2)&&!(e&1&&t)}var _n=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return gg(this._tNode,this._lView,t,jn(r),n)}};function y0(){return new _n(Ne(),j())}function It(e){return Yi(()=>{let t=e.prototype.constructor,n=t[_i]||Vl(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[_i]||Vl(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Vl(e){return jc(e)?()=>{let t=Vl(Me(e));return t&&t()}:un(e)}function _0(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[V]&2048&&!Rr(s);){let a=hg(o,s,n,r|2,Ut);if(a!==Ut)return a;r&=-5;let c=o.parent;if(!c){let l=s[Jc];if(l){let p=l.get(n,Ut,r);if(p!==Ut)return p}c=mg(s),s=s[gn]}o=c}return i}function mg(e){let t=e[P],n=t.type;return n===2?t.declTNode:n===1?e[Ze]:null}function on(e){return{token:e.token,providedIn:e.autoProvided===!1?null:"root",factory:e.factory,value:void 0}}function C0(){return Wr(Ne(),j())}function Wr(e,t){return new Nt(ut(e,t))}var Nt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=C0}return e})();function b0(e){return e instanceof Nt?e.nativeElement:e}function D0(){return this._results[Symbol.iterator]()}var Gs=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 Re}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Vf(t);(this._changesDetected=!Lf(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=D0};function vg(e){return(e.flags&128)===128}var ud=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(ud||{}),yg=new Map,E0=0;function x0(){return E0++}function S0(e){yg.set(e[Vt],e)}function jl(e){yg.delete(e[Vt])}var Np="__ngContext__";function $r(e,t){nn(t)?(e[Np]=t[Vt],S0(t)):e[Np]=t}function _g(e){return bg(e[Pr])}function Cg(e){return bg(e[lt])}function bg(e){for(;e!==null&&!dt(e);)e=e[lt];return e}var Bl;function fd(e){Bl=e}function Dg(){if(Bl!==void 0)return Bl;if(typeof document<"u")return document;throw new w(210,!1)}var Eg="r";var xg="di";var Sg=!1,wg=new A("",{factory:()=>Sg});var Tp=new WeakMap;function w0(e,t){if(e==null||typeof e!="object")return;let n=Tp.get(e);n||(n=new WeakSet,Tp.set(e,n)),n.add(t)}var M0=(e,t,n,r)=>{};function I0(e,t,n,r){M0(e,t,n,r)}function pd(e){return(e.flags&32)===32}var N0=()=>null;function Mg(e,t,n=!1){return N0(e,t,n)}function Ig(e,t){let n=e.contentQueries;if(n!==null){let r=F(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];Ms(o),a.contentQueries(2,t[s],s)}}}finally{F(r)}}}function Hl(e,t,n){Ms(0);let r=F(null);try{t(e,n)}finally{F(r)}}function Ng(e,t,n){if(el(t)){let r=F(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{F(r)}}}var Mt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Mt||{});var Ws=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cs})`}};function Ui(e){return e instanceof Ws?e.changingThisBreaksApplicationSecurity:e}function Tg(e,t){let n=kg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${cs})`)}return n===t}function kg(e){return e instanceof Ws&&e.getTypeName()||null}var T0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Og(e){return e=String(e),e.match(T0)?e:"unsafe:"+e}function k0(e,t){return e.createText(t)}function O0(e,t,n){e.setValue(t,n)}function Ag(e,t,n){return e.createElement(t,n)}function Xn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Pg(e,t,n){e.appendChild(t,n)}function kp(e,t,n,r,i){r!==null?Xn(e,t,n,r,i):Pg(e,t,n)}function Rg(e,t,n,r){e.removeChild(null,t,n,r)}function A0(e,t,n){e.setAttribute(t,"style",n)}function P0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Fg(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&l0(e,t,r),i!==null&&P0(e,t,i),o!==null&&A0(e,t,o)}function ia(e){let t=R0();return t?t.sanitize(_s.URL,e)||"":Tg(e,"URL")?Ui(e):Og(tn(e))}function R0(){let e=j();return e&&e[Dt].sanitizer}function F0(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Lg="ng-template";function L0(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&F0(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(gd(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function gd(e){return e.type===4&&e.value!==Lg}function V0(e,t,n){let r=e.type===4&&!n?Lg:e.value;return t===r}function j0(e,t,n){let r=4,i=e.attrs,o=i!==null?U0(i):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!St(r)&&!St(c))return!1;if(s&&St(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!V0(e,c,n)||c===""&&t.length===1){if(St(r))return!1;s=!0}}else if(r&8){if(i===null||!L0(e,i,c,n)){if(St(r))return!1;s=!0}}else{let l=t[++a],p=B0(c,i,gd(e),n);if(p===-1){if(St(r))return!1;s=!0;continue}if(l!==""){let h;if(p>o?h="":h=i[p+1].toLowerCase(),r&2&&l!==h){if(St(r))return!1;s=!0}}}}return St(r)||s}function St(e){return(e&1)===0}function B0(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return $0(t,e)}function H0(e,t,n=!1){for(let r=0;r<t.length;r++)if(j0(e,t[r],n))return!0;return!1}function U0(e){for(let t=0;t<e.length;t++){let n=e[t];if(d0(n))return t}return e.length}function $0(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Op(e,t){return e?":not("+t.trim()+")":t}function z0(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!St(s)&&(t+=Op(o,i),i=""),r=s,o=o||!St(r);n++}return i!==""&&(t+=Op(o,i)),t}function G0(e){return e.map(z0).join(",")}function W0(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!St(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var Te={},$t=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})($t||{}),q0;function hd(e,t){return q0(e,t)}var Cn=new Set;var Kk=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Ul=new WeakMap;function Vg(e){return e?e[gn]??e:null}var Vi=new WeakSet;function Z0(e,t,n){let r=Ul.get(e);if(!r||r.length===0)return;let i=t.parentNode,o=t.previousSibling,s=Vg(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],p=c.parentNode;c===t?(r.splice(a,1),Vi.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):o&&c===o?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):p&&i&&p!==i&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function Y0(e,t,n){let r=Vg(n),i=Ul.get(e);i?i.some(o=>o.el===t)||i.push({el:t,declarationView:r}):Ul.set(e,[{el:t,declarationView:r}])}var oa=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(oa||{}),sn=new A(""),Ap=new Set;function an(e){Ap.has(e)||(Ap.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var md=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=ne({token:e,providedIn:"root",factory:()=>new e})}return e})(),jg=[0,1,2,3],Bg=(()=>{class e{ngZone=x(Ee);scheduler=x(Ct);errorHandler=x(ct,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){x(sn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&re(J.AfterRenderHooksStart),this.executing=!0;for(let r of jg)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&re(J.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[Gn]??=[]).push(n),Yn(r),r[V]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(oa.AFTER_NEXT_RENDER,n):n()}static \u0275prov=ne({token:e,providedIn:"root",factory:()=>new e})}return e})(),qs=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,i,o,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=i,this.snapshot=s,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Gn];t&&(this.view[Gn]=t.filter(n=>n!==this))}};function vd(e,t){let n=t?.injector??x(Le);return an("NgAfterNextRender"),K0(e,n,t,!0)}function Q0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function K0(e,t,n,r){let i=t.get(md);i.impl??=t.get(Bg);let o=t.get(sn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(fe):null,a=t.get(Ri,null,{optional:!0}),c=new qs(i.impl,Q0(e),a?.view,r,s,o?.snapshot(null));return i.impl.register(c),c}var yd=new A("",{factory:()=>{let e=x(ze),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Hg(e,t,n){let r=e.get(yd);if(Array.isArray(t))for(let i of t)r.queue.add(i),n?.detachedLeaveAnimationFns?.push(i);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function J0(e,t){let n=e.get(yd);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function X0(e,t){let n=e.get(yd);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function e_(e,t){for(let[n,r]of t)Hg(e,r.animateFns)}function Pp(e,t,n,r){let i=e?.[jt]?.enter;t!==null&&i&&i.has(n.index)&&e_(r,i)}function Rp(e,t,n,r){try{n.get(Mi)}catch{return r(!1)}let i=e?.[jt];i?.enter?.has(t.index)&&J0(n,i.enter.get(t.index).animateFns);let o=t_(e,t,i);if(o.size===0){let s=!1;if(e){let a=[];sa(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&Cn.add(e[Vt]),Hg(n,()=>n_(e,t,i||void 0,o,r),i||void 0)}function t_(e,t,n){let r=new Map,i=n?.leave;if(i&&i.has(t.index)&&r.set(t.index,i.get(t.index)),e&&i)for(let[o,s]of i){if(r.has(o))continue;let c=e[P].data[o].parent;for(;c;){if(c===t){r.set(o,s);break}c=c.parent}}return r}function n_(e,t,n,r,i){let o=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();o.push(l)}n.detachedLeaveAnimationFns=void 0}if(e&&sa(e,t,o),o.length>0){let s=n||e?.[jt];if(s){let a=s.running;a&&o.push(a),s.running=Promise.allSettled(o),i_(e,s.running,i)}else Promise.allSettled(o).then(()=>{e&&Cn.delete(e[Vt]),i(!0)})}else e&&Cn.delete(e[Vt]),i(!1)}function sa(e,t,n){if(t.type&12){let i=e[t.index];if(dt(i))for(let o=pe;o<i.length;o++){let s=i[o];s[P].type===2&&r_(s,n)}}let r=t.child;for(;r;)sa(e,r,n),r=r.next}function r_(e,t){let n=e[jt];if(n&&n.leave)for(let i of n.leave.values())for(let o of i.animateFns){let{promise:s}=o();t.push(s)}let r=e[P].firstChild;for(;r;)sa(e,r,t),r=r.next}function i_(e,t,n){t.then(()=>{e[jt]?.running===t&&(e[jt].running=void 0,Cn.delete(e[Vt])),n(!0)})}function Br(e,t,n,r,i,o,s,a){if(i!=null){let c,l=!1;dt(i)?c=i:nn(i)&&(l=!0,i=i[bt]);let p=Ie(i);e===0&&r!==null?(Pp(a,r,o,n),s==null?Pg(t,r,p):Xn(t,r,p,s||null,!0)):e===1&&r!==null?(Pp(a,r,o,n),Xn(t,r,p,s||null,!0),Z0(o,p,a)):e===2?(a?.[jt]?.leave?.has(o.index)&&Y0(o,p,a),Vi.delete(p),Rp(a,o,n,h=>{if(Vi.has(p)){Vi.delete(p);return}Rg(t,p,l,h)})):e===3&&(Vi.delete(p),Rp(a,o,n,()=>{t.destroyNode(p)})),c!=null&&v_(t,e,n,c,o,r,s)}}function o_(e,t){Ug(e,t),t[bt]=null,t[Ze]=null}function s_(e,t,n,r,i,o){r[bt]=i,r[Ze]=t,ca(e,r,n,1,i,o)}function Ug(e,t){t[Dt].changeDetectionScheduler?.notify(9),ca(e,t,t[ce],2,null,null)}function a_(e){let t=e[Pr];if(!t)return wl(e[P],e);for(;t;){let n=null;if(nn(t))n=t[Pr];else{let r=t[pe];r&&(n=r)}if(!n){for(;t&&!t[lt]&&t!==e;)nn(t)&&wl(t[P],t),t=t[_e];t===null&&(t=e),nn(t)&&wl(t[P],t),n=t&&t[lt]}t=n}}function _d(e,t){let n=e[qn],r=n.indexOf(t);n.splice(r,1)}function aa(e,t){if(Zn(t))return;let n=t[ce];n.destroyNode&&ca(e,t,n,3,null,null),a_(t)}function wl(e,t){if(Zn(t))return;let n=F(null);try{t[V]&=-129,t[V]|=256,t[tt]&&On(t[tt]),l_(e,t),c_(e,t),t[P].type===1&&t[ce].destroy();let r=t[hn];if(r!==null&&dt(t[_e])){r!==t[_e]&&_d(r,t);let i=t[Lt];i!==null&&i.detachView(e)}jl(t)}finally{F(n)}}function c_(e,t){let n=e.cleanup,r=t[Ar];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ar]=null);let i=t[Qt];if(i!==null){t[Qt]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[Kt];if(o!==null){t[Kt]=null;for(let s of o)s.destroy()}}function l_(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof tr)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],c=o[s+1];re(J.LifecycleHookStart,a,c);try{c.call(a)}finally{re(J.LifecycleHookEnd,a,c)}}else{re(J.LifecycleHookStart,i,o);try{o.call(i)}finally{re(J.LifecycleHookEnd,i,o)}}}}}function d_(e,t,n){if(t===null)throw new w(510,!1);return u_(e,t.parent,n)}function u_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[bt];if(rn(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Mt.None||i===Mt.Emulated)return null}return ut(r,n)}function f_(e,t,n){return g_(e,t,n)}function p_(e,t,n){return e.type&40?ut(e,n):null}var g_=p_,Fp;function Cd(e,t,n,r){let i=d_(e,r,t),o=t[ce],s=r.parent||t[Ze],a=f_(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)kp(o,i,n[c],a,!1);else kp(o,i,n,a,!1);Fp!==void 0&&Fp(o,r,t,n,i)}function ji(e,t){if(t!==null){let n=t.type;if(n&3)return ut(t,e);if(n&4)return $l(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ji(e,r);{let i=e[t.index];return dt(i)?$l(-1,i):Ie(i)}}else{if(n&128)return ji(e,t.next);if(n&32)return hd(t,e)()||Ie(e[t.index]);{let r=$g(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Jt(e[et]);return ji(i,r)}else return ji(e,t.next)}}}return null}function $g(e,t){if(t!==null){let r=e[et][Ze],i=t.projection;return r.projection[i]}return null}function $l(e,t){let n=pe+e+1;if(n<t.length){let r=t[n],i=r[P].firstChild;if(i!==null)return ji(r,i)}return t[Wn]}function bd(e,t,n,r,i,o,s){for(;n!=null;){let a=r[Ft];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&$r(Ie(c),r),n.flags|=2),!pd(n))if(l&8)bd(e,t,n.child,r,i,o,!1),Br(t,e,a,i,c,n,o,r);else if(l&32){let p=hd(n,r),h;for(;h=p();)Br(t,e,a,i,h,n,o,r);Br(t,e,a,i,c,n,o,r)}else l&16?m_(e,t,r,n,i,o):Br(t,e,a,i,c,n,o,r);n=s?n.projectionNext:n.next}}function ca(e,t,n,r,i,o){e.type===3?h_(n,r,t,i,o):bd(n,r,e.firstChild,t,i,o,!1)}function h_(e,t,n,r,i){let s=n[P].firstChild,a=s.next,c=Ie(n[s.index]),l=Ie(n[a.index]),p=a.index+1,h=n[p];if(t===1||t===0)r!==null&&(h&&h.hasChildNodes()?Xn(e,r,h,i,!0):(Xn(e,r,c,i,!0),Xn(e,r,l,i,!0)));else if(t===2){if(h||(h=document.createDocumentFragment(),n[p]=h),c&&c.parentNode===h)return;let v=c;for(;v!==null;){let m=v.nextSibling;if(h.appendChild(v),v===l)break;v=m}}}function m_(e,t,n,r,i,o){let s=n[et],c=s[Ze].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let p=c[l];Br(t,e,n[Ft],i,p,r,o,n)}else{let l=c,p=s[_e];vg(r)&&(l.flags|=128),bd(e,t,l,p,i,o,!0)}}function v_(e,t,n,r,i,o,s){let a=r[Wn],c=Ie(r);if(a!==c&&Br(t,e,n,o,a,i,s),(r[V]&4)===0)for(let l=pe;l<r.length;l++){let p=r[l];ca(p[P],p,e,t,o,a)}}function y_(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:$t.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=$t.Important),e.setStyle(n,r,i,o))}}function Dd(e,t,n,r,i,o,s,a,c,l,p){let h=ve+r,v=h+i,m=__(h,v),_=typeof l=="function"?l():l;return m[P]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:v,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:c,consts:_,incompleteFirstPass:!1,ssrId:p}}function __(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Te);return n}function C_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Dd(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ed(e,t,n,r,i,o,s,a,c,l,p){let h=t.blueprint.slice();return h[bt]=i,h[V]=r|4|128|8|64|1024,(l!==null||e&&e[V]&2048)&&(h[V]|=2048),ol(h),h[_e]=h[gn]=e,h[he]=n,h[Dt]=s||e&&e[Dt],h[ce]=a||e&&e[ce],h[Ft]=c||e&&e[Ft]||null,h[Ze]=o,h[Vt]=x0(),h[Or]=p,h[Jc]=l,h[et]=t.type==2?e[et]:h,h}function b_(e,t,n){let r=ut(t,e),i=C_(n),o=e[Dt].rendererFactory,s=xd(e,Ed(e,i,null,zg(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function zg(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Gg(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function xd(e,t){return e[Pr]?e[Kc][lt]=t:e[Pr]=t,e[Kc]=t,t}function f(e=1){Wg(ge(),j(),Et()+e,!1)}function Wg(e,t,n,r){if(!r)if((t[V]&3)===3){let o=e.preOrderCheckHooks;o!==null&&Fs(t,o,n)}else{let o=e.preOrderHooks;o!==null&&Ls(t,o,0,n)}vn(n)}var Qi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Qi||{});function nr(e,t,n,r){let i=F(null);try{let[o,s,a]=e.inputs[n],c=null;(s&Qi.SignalBased)!==0&&(c=t[o][xe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,o):ig(t,c,o,r)}finally{F(i)}}function qg(e,t,n,r,i){let o=Et(),s=r&2;try{vn(-1),s&&t.length>ve&&Wg(e,t,ve,!1);let a=s?J.TemplateUpdateStart:J.TemplateCreateStart;re(a,i,n),n(r,i)}finally{vn(o);let a=s?J.TemplateUpdateEnd:J.TemplateCreateEnd;re(a,i,n)}}function Zg(e,t,n){M_(e,t,n),(n.flags&64)===64&&I_(e,t,n)}function Sd(e,t,n=ut){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function D_(e,t,n,r){let o=r.get(wg,Sg)||n===Mt.ShadowDom||n===Mt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,o);return E_(s),s}function E_(e){x_(e)}var x_=()=>null;function S_(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Yg(e,t,n,r,i,o){let s=t[P];if(wd(e,s,t,n,r)){rn(e)&&w_(t,e.index);return}e.type&3&&(n=S_(n)),Qg(e,t,n,r,i,o)}function Qg(e,t,n,r,i,o){if(e.type&3){let s=ut(e,t);r=o!=null?o(r,e.value||"",n):r,i.setProperty(s,n,r)}else e.type&12}function w_(e,t){let n=ft(t,e);n[V]&16||(n[V]|=64)}function M_(e,t,n){let r=n.directiveStart,i=n.directiveEnd;rn(n)&&b_(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||zs(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],c=Hi(t,e,s,n);if($r(c,t),o!==null&&A_(t,s-r,c,a,n,o),Bt(a)){let l=ft(n.index,t);l[he]=Hi(t,e,s,n)}}}function I_(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=ap();try{vn(o);for(let a=r;a<i;a++){let c=e.data[a],l=t[a];ws(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&N_(c,l)}}finally{vn(-1),ws(s)}}function N_(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function T_(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];H0(t,o.selectors,!1)&&(r??=[],Bt(o)?r.unshift(o):r.push(o))}return r}function k_(e,t,n,r,i,o){let s=ut(e,t);O_(t[ce],s,o,e.value,n,r,i)}function O_(e,t,n,r,i,o,s){if(o==null)s?.(o,r||"",i),e.removeAttribute(t,i,n);else{let a=s==null?tn(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function A_(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];nr(r,n,c,l)}}function Kg(e,t,n,r,i){let o=ve+n,s=t[P],a=i(s,t,e,r,n);t[o]=a,Lr(e,!0);let c=e.type===2;return c?(Fg(t[ce],a,e),(Jf()===0||ys(e))&&$r(a,t),Xf()):$r(a,t),Ts()&&(!c||!pd(e))&&Cd(s,t,a,e),e}function Jg(e){let t=e;return fl()?rp():(t=t.parent,Lr(t,!1)),t}function P_(e,t){let n=e[Ft];if(!n)return;let r;try{r=n.get(yn,null)}catch{r=null}r?.(t)}function wd(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],p=s[c+1],h=t.data[l];nr(h,n[l],p,i),a=!0}if(o)for(let c of o){let l=n[c],p=t.data[c];nr(p,l,r,i),a=!0}return a}function R_(e,t,n,r,i,o){let s=null,a=null,c=null,l=!1,p=e.directiveToIndex.get(r.type);if(typeof p=="number"?s=p:[s,a,c]=p,a!==null&&c!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,i)){let h=e.hostDirectiveInputs[i];for(let v=0;v<h.length;v+=2){let m=h[v];if(m>=a&&m<=c){let _=t.data[m],S=h[v+1];nr(_,n[m],S,o),l=!0}else if(m>c)break}}return s!==null&&Object.hasOwn(r.inputs,i)&&(nr(r,n[s],i,o),l=!0),l}function F_(e,t){let n=ft(t,e),r=n[P];L_(r,n);let i=n[bt];i!==null&&n[Or]===null&&(n[Or]=Mg(i,n[Ft])),re(J.ComponentStart);try{Md(r,n,n[he])}finally{re(J.ComponentEnd,n[he])}}function L_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Md(e,t,n){Is(t);try{let r=e.viewQuery;r!==null&&Hl(1,r,n);let i=e.template;i!==null&&qg(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Lt]?.finishViewCreation(e),e.staticContentQueries&&Ig(e,t),e.staticViewQueries&&Hl(2,e.viewQuery,n);let o=e.components;o!==null&&V_(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[V]&=-5,Ns()}}function V_(e,t){for(let n=0;n<t.length;n++)F_(e,t[n])}function la(e,t,n,r){let i=F(null);try{let o=t.tView,a=e[V]&4096?4096:16,c=Ed(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[hn]=l;let p=e[Lt];return p!==null&&(c[Lt]=p.createEmbeddedView(o)),Md(o,c,n),c}finally{F(i)}}function $i(e,t){return!t||t.firstChild===null||vg(e)}function zi(e,t,n,r,i=!1){if(e.type===3){let o=e.firstChild,s=o.next,a=Ie(t[o.index]),c=Ie(t[s.index]),l=a;for(;l!==null&&(r.push(l),l!==c);)l=l.nextSibling;return r}for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];if(o!==null)if(dt(o)){let a=o[Wn];a!==o[bt]&&r.push(Ie(o)),o[V]&4||Xg(o,r),r.push(a)}else r.push(Ie(o));let s=n.type;if(s&8)zi(e,t,n.child,r);else if(s&32){let a=hd(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=$g(t,n);if(Array.isArray(a))r.push(...a);else{let c=Jt(t[et]);zi(c[P],c,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Xg(e,t){for(let n=pe;n<e.length;n++){let r=e[n],i=r[P].firstChild;i!==null&&zi(r[P],r,i,t)}}function eh(e){if(e[Gn]!==null){for(let t of e[Gn])t.impl.addSequence(t);e[Gn].length=0}}var th=[];function j_(e){return e[tt]??B_(e)}function B_(e){let t=th.pop()??Object.create(U_);return t.lView=e,t}function H_(e){e.lView[tt]!==e&&(e.lView=null,th.push(e))}var U_=z(B({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Yn(e.lView)},consumerOnSignalRead(){this.lView[tt]=this}});function $_(e){let t=e[tt]??Object.create(z_);return t.lView=e,t}var z_=z(B({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Jt(e.lView);for(;t&&!nh(t[P]);)t=Jt(t);t&&Ds(t)},consumerOnSignalRead(){this.lView[tt]=this}});function nh(e){return e.type!==2}function rh(e){if(e[Kt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Kt])if(r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()),e[Kt]===null))return;t=n&&!!(e[V]&8192)}}var G_=100;function ih(e,t=0){let r=e[Dt].rendererFactory,i=!1;i||r.begin?.();try{W_(e,t)}finally{i||r.end?.()}}function W_(e,t){let n=pl();try{Ci(!0),zl(e,t);let r=0;for(;Fr(e);){if(r===G_)throw new w(103,!1);r++,zl(e,1)}}finally{Ci(n)}}function q_(e,t,n,r){if(Zn(t))return;let i=t[V],o=!1,s=!1;Is(t);let a=!0,c=null,l=null;o||(nh(e)?(l=j_(t),c=kn(l)):To()===null?(a=!1,l=$_(t),c=kn(l)):t[tt]&&(On(t[tt]),t[tt]=null));try{ol(t),ip(e.bindingStartIndex),n!==null&&qg(e,t,n,2,r);let p=(i&3)===3;if(!o)if(p){let m=e.preOrderCheckHooks;m!==null&&Fs(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ls(t,m,0,null),xl(t,0)}if(s||Z_(t),rh(t),oh(t,0),e.contentQueries!==null&&Ig(e,t),!o)if(p){let m=e.contentCheckHooks;m!==null&&Fs(t,m)}else{let m=e.contentHooks;m!==null&&Ls(t,m,1),xl(t,1)}Q_(e,t);let h=e.components;h!==null&&ah(t,h,0);let v=e.viewQuery;if(v!==null&&Hl(2,v,r),!o)if(p){let m=e.viewCheckHooks;m!==null&&Fs(t,m)}else{let m=e.viewHooks;m!==null&&Ls(t,m,2),xl(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[vs]){for(let m of t[vs])m();t[vs]=null}o||(eh(t),t[V]&=-73)}catch(p){throw o||Yn(t),p}finally{l!==null&&(vr(l,c),a&&H_(l)),Ns()}}function oh(e,t){for(let n=_g(e);n!==null;n=Cg(n))for(let r=pe;r<n.length;r++){let i=n[r];sh(i,t)}}function Z_(e){for(let t=_g(e);t!==null;t=Cg(t)){if(!(t[V]&2))continue;let n=t[qn];for(let r=0;r<n.length;r++){let i=n[r];Ds(i)}}}function Y_(e,t,n){re(J.ComponentStart);let r=ft(t,e);try{sh(r,n)}finally{re(J.ComponentEnd,r[he])}}function sh(e,t){bs(e)&&zl(e,t)}function zl(e,t){let r=e[P],i=e[V],o=e[tt],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&pi(o)),s||=!1,o&&(o.dirty=!1),e[V]&=-9217,s)q_(r,e,r.template,e[he]);else if(i&8192){let a=F(null);try{rh(e),oh(e,1);let c=r.components;c!==null&&ah(e,c,1),eh(e)}finally{F(a)}}}function ah(e,t,n){for(let r=0;r<t.length;r++)Y_(e,t[r],n)}function Q_(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)vn(~i);else{let o=i,s=n[++r],a=n[++r];sp(s,o);let c=t[o];re(J.HostBindingsUpdateStart,c);try{a(2,c)}finally{re(J.HostBindingsUpdateEnd,c)}}}}finally{vn(-1)}}function Id(e,t){let n=pl()?64:1088;for(e[Dt].changeDetectionScheduler?.notify(t);e;){e[V]|=n;let r=Jt(e);if(Rr(e)&&!r)return e;e=r}return null}function ch(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function lh(e,t){let n=pe+t;if(n<e.length)return e[n]}function da(e,t,n,r=!0){let i=t[P];if(K_(i,t,e,n),r){let s=$l(n,e),a=t[ce],c=a.parentNode(e[Wn]);c!==null&&s_(i,e[Ze],a,t,c,s)}let o=t[Or];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function dh(e,t){let n=Gi(e,t);return n!==void 0&&aa(n[P],n),n}function Gi(e,t){if(e.length<=pe)return;let n=pe+t,r=e[n];if(r){let i=r[hn];i!==null&&i!==e&&_d(i,r),t>0&&(e[n-1][lt]=r[lt]);let o=Si(e,pe+t);o_(r[P],r);let s=o[Lt];s!==null&&s.detachView(o[P]),r[_e]=null,r[lt]=null,r[V]&=-129}return r}function K_(e,t,n,r){let i=pe+r,o=n.length;r>0&&(n[i-1][lt]=t),r<o-pe?(t[lt]=n[i],Wc(n,pe+r,t)):(n.push(t),t[lt]=null),t[_e]=n;let s=t[hn];s!==null&&n!==s&&uh(s,t);let a=t[Lt];a!==null&&a.insertView(e),Es(t),t[V]|=128}function uh(e,t){let n=e[qn],r=t[_e];if(nn(r))e[V]|=2;else{let i=r[_e][et];t[et]!==i&&(e[V]|=2)}n===null?e[qn]=[t]:n.push(t)}var bn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[P];return zi(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[he]}set context(t){this._lView[he]=t}get destroyed(){return Zn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[_e];if(dt(t)){let n=t[Ni],r=n?n.indexOf(this):-1;r>-1&&(Gi(t,r),Si(n,r))}this._attachedToViewContainer=!1}aa(this._lView[P],this._lView)}onDestroy(t){xs(this._lView,t)}markForCheck(){Id(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[V]&=-129}reattach(){Es(this._lView),this._lView[V]|=128}detectChanges(){this._lView[V]|=1024,ih(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Rr(this._lView),n=this._lView[hn];n!==null&&!t&&_d(n,this._lView),Ug(this._lView[P],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t;let n=Rr(this._lView),r=this._lView[hn];r!==null&&!n&&uh(r,this._lView),Es(this._lView)}};function Nd(e){return Fr(e._lView)||!!(e._lView[V]&64)}function Td(e){Ds(e._lView)}var zr=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=J_;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let o=la(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new bn(o)}}return e})();function J_(){return kd(Ne(),j())}function kd(e,t){return e.type&4?new zr(t,e,Wr(e,t)):null}function ua(e,t,n,r,i){let o=e.data[t];if(o===null)o=X_(e,t,n,r,i),op()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=np();o.injectorIndex=s===null?-1:s.injectorIndex}return Lr(o,!0),o}function X_(e,t,n,r,i){let o=ul(),s=fl(),a=s?o:o&&o.parent,c=e.data[t]=tC(e,a,n,t,r,i);return eC(e,c,o,s),c}function eC(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function tC(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return tp()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,namespace:yl(),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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function nC(e){let t=e[Xc]??[],r=e[_e][ce],i=[];for(let o of t)o.data[xg]!==void 0?i.push(o):rC(o,r);e[Xc]=i}function rC(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[Eg];for(;n<i;){let o=r.nextSibling;Rg(t,r,!1),r=o,n++}}}var iC=()=>null,oC=()=>null;function Gl(e,t){return iC(e,t)}function fh(e,t,n){return oC(e,t,n)}var ph=class{},rr=class{},zt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>sC()};function sC(){let e=j(),t=Ne(),n=ft(t.index,e);return(nn(n)?n:e)[ce]}var gh=(()=>{class e{static \u0275prov=ne({token:e,providedIn:"root",factory:()=>null})}return e})();function hh(e){return e.debugInfo?.className||e.type.name||null}var js={},Zs=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let i=this.injector.get(t,js,r);return i!==js||n===js?i:this.parentInjector.get(t,n,r)}};function Od(e,t,n){return e[t]=n}function aC(e,t){return e[t]}function nt(e,t,n){if(n===Te)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Ad(e,t,n,r){let i=nt(e,t,n);return nt(e,t+1,r)||i}function cC(e,t,n,r,i){let o=Ad(e,t,n,r);return nt(e,t+2,i)||o}function er(e,t,n){return function r(i){let o=r.__ngNativeEl__;o!==void 0&&w0(i,o);let s=rn(e)?ft(e.index,t):t;Id(s,5);let a=t[he],c=Lp(t,a,n,i),l=r.__ngNextListenerFn__;for(;l;)c=Lp(t,a,l,i)&&c,l=l.__ngNextListenerFn__;return c}}function Lp(e,t,n,r){let i=F(null);try{return re(J.OutputStart,t,n),n(r)!==!1}catch(o){return P_(e,o),!1}finally{re(J.OutputEnd,t,n),F(i)}}function Pd(e,t,n,r,i,o,s,a){let c=ys(e),l=!1,p=null;if(!r&&c&&(p=dC(t,n,o,e.index)),p!==null){let h=p.__ngLastListenerFn__||p;h.__ngNextListenerFn__=s,p.__ngLastListenerFn__=s,l=!0}else{let h=ut(e,n),v=r?r(h):h;I0(n,v,o,a),r||(a.__ngNativeEl__=h);let m=i.listen(v,o,a);if(!lC(o)){let _=r?S=>r(Ie(S[e.index])):e.index;mh(_,t,n,o,a,m,!1)}}return l}function lC(e){return e.startsWith("animation")||e.startsWith("transition")}function dC(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[Ar],c=i[o+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function mh(e,t,n,r,i,o,s){let a=t.firstCreatePass?al(t):null,c=sl(n),l=c.length;c.push(i,o),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function Vp(e,t,n,r,i){let o=null,s=null,a=null,c=!1,l=e.directiveToIndex.get(n.type);if(typeof l=="number"?o=l:[o,s,a]=l,s!==null&&a!==null&&e.hostDirectiveOutputs&&Object.hasOwn(e.hostDirectiveOutputs,r)){let p=e.hostDirectiveOutputs[r];for(let h=0;h<p.length;h+=2){let v=p[h];if(v>=s&&v<=a)c=!0,Ys(e,t,v,p[h+1],r,i);else if(v>a)break}}return Object.hasOwn(n.outputs,r)&&(c=!0,Ys(e,t,o,r,r,i)),c}function Ys(e,t,n,r,i,o){let s=t[n],a=t[P],l=a.data[n].outputs[r],h=s[l].subscribe(o);mh(e.index,a,t,i,o,h,!0)}function W(){uC()}function uC(){let e=j(),t=ge(),n=Ne();if(t.firstCreatePass&&pC(t,n),n.controlDirectiveIndex===-1)return;an("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Qs(e,t,n))}function q(){fC()}function fC(){let e=j(),t=ge(),n=Vr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,i=e[n.controlDirectiveIndex];r.update(i,new Qs(e,t,n))}var Qs=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return ut(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Vp(this.tNode,this.lView,r,t,er(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Vp(this.tNode,this.lView,r,n,er(this.tNode,this.lView,t))}listenToDom(t,n){Pd(this.tNode,this.tView,this.lView,void 0,this.lView[ce],t,n,er(this.tNode,this.lView,n))}setInputOnDirectives(t,n,r){let i=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!i&&!o)return!1;let s=!1;if(i)for(let a of i){if(a===this.tNode.controlDirectiveIndex)continue;let c=this.lView[a],l=this.tView.data[a];(!r||r(Bp(c,l,t)))&&(nr(l,c,t,n),s=!0)}if(o)for(let a=0;a<o.length;a+=2){let c=o[a];if(c===this.tNode.controlDirectiveIndex)continue;let l=this.lView[c],p=o[a+1],h=this.tView.data[c];(!r||r(Bp(l,h,t)))&&(nr(h,l,p,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";R_(this.tNode,this.tView,this.lView,n,r,t)}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===!0}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=!0;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let i=r.shift();if(typeof i!="function"){for(let s in i.inputs)n[i.inputs[s]]=!0;let o=jp(i.directive);o!==null&&r.push(...o);continue}for(let o of i()){if(typeof o=="function")continue;if(o.inputs)for(let a=0;a<o.inputs.length;a+=2){let c=o.inputs[a+1]||o.inputs[a];n[c]=!0}let s=jp(o.directive);s!==null&&r.push(...s)}}}return n}};function jp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function Bp(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,i]=t.inputs[n];if((i&Qi.SignalBased)!==0){let s=e[r][xe];return s.value===ra?void 0:s.value}return e[r]}function pC(e,t,n){for(let i=t.directiveStart;i<t.directiveEnd;i++)if(e.data[i].controlDef){t.controlDirectiveIndex=i;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}gC(e,t)}function gC(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Hp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Hp(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,i)=>{let o=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!o||!s)return!1;for(let a=0;a<o.length;a+=2){let c=o[a];for(let l=0;l<s.length;l+=2){let p=s[l];if(c===p)for(let h of t.directiveToIndex.values()){if(!Array.isArray(h))continue;let[v,m,_]=h;if(c>=m&&c<=_)return t.flags|=i,t.customControlIndex=v,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function Hp(e,t){return hC(e,t)&&mC(e,t+"Change")}function hC(e,t){return t in e.inputs}function mC(e,t){return t in e.outputs}var Wl=Symbol("BINDING");var ar=new A("");function Ks(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=ds(i,a);else if(o==2){let c=a,l=t[++s];r=ds(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function X(e,t=0){let n=j();if(n===null)return G(e,t);let r=Ne();return gg(r,n,Me(e),t)}function vC(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a=s,c=null,l=null;for(let p of s)if(p.resolveHostDirectives!==null){[a,c,l]=p.resolveHostDirectives(s);break}CC(e,t,n,a,o,c,l)}o!==null&&r!==null&&yC(n,r,o)}function yC(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new w(-301,!1);r.push(t[i],o)}}function _C(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function CC(e,t,n,r,i,o,s){let a=r.length,c=null;for(let v=0;v<a;v++){let m=r[v];c===null&&Bt(m)&&(c=m,_C(e,n,v)),Ll(zs(n,t),e,m.type)}wC(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let v=0;v<a;v++){let m=r[v];m.providersResolver&&m.providersResolver(m)}let l=!1,p=!1,h=Gg(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let v=0;v<a;v++){let m=r[v];if(n.mergedAttrs=Ur(n.mergedAttrs,m.hostAttrs),DC(e,n,t,h,m),SC(h,m,i),s!==null&&s.has(m)){let[S,R]=s.get(m);n.directiveToIndex.set(m.type,[h,S+n.directiveStart,R+n.directiveStart])}else(o===null||!o.has(m))&&n.directiveToIndex.set(m.type,h);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let _=m.type.prototype;!l&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!p&&(_.ngOnChanges||_.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),p=!0),h++}bC(e,n,o)}function bC(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Up(0,t,i,r),Up(1,t,i,r),zp(t,r,!1);else{let o=n.get(i);$p(0,t,o,r),$p(1,t,o,r),zp(t,r,!0)}}}function Up(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(Object.hasOwn(i,o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),vh(t,o)}}function $p(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(Object.hasOwn(i,o)){let s=i[o],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),vh(t,s)}}function vh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function zp(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||gd(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&Object.hasOwn(i,c)){let l=i[c];for(let p of l)if(p===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&Object.hasOwn(o,c)){let l=o[c];for(let p=0;p<l.length;p+=2)if(l[p]===t){s??=[],s.push(l[p+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function DC(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=un(i.type,!0)),s=new tr(o,Bt(i),X,null);e.blueprint[r]=s,n[r]=s,EC(e,t,r,Gg(e,n,i.hostVars,Te),i)}function EC(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;xC(s)!=a&&s.push(a),s.push(n,r,o)}}function xC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function SC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Bt(t)&&(n[""]=e)}}function wC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function yh(e,t,n,r,i,o,s,a){let c=t[P],l=c.consts,p=Ht(l,s),h=ua(c,e,n,r,p);return o&&vC(c,t,h,Ht(l,a),i),h.mergedAttrs=Ur(h.mergedAttrs,h.attrs),h.attrs!==null&&Ks(h,h.attrs,!1),h.mergedAttrs!==null&&Ks(h,h.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,h),h}function _h(e,t){o0(e,t),el(t)&&e.queries.elementEnd(t)}function MC(e,t,n,r,i,o){let s=t.consts,a=Ht(s,i),c=ua(t,e,n,r,a);if(c.mergedAttrs=Ur(c.mergedAttrs,c.attrs),o!=null){let l=Ht(s,o);c.localNames=[];for(let p=0;p<l.length;p+=2)c.localNames.push(l[p],-1)}return c.attrs!==null&&Ks(c,c.attrs,!1),c.mergedAttrs!==null&&Ks(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}var Ch=typeof ShadowRoot<"u",IC=typeof Document<"u";function NC(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&Qi.SignalBased)!==0};return i&&(o.transform=i),o})}function TC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function kC(e,t,n){let r=t instanceof ze?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Zs(n,r):n}function OC(e){let t=e.get(rr,null);if(t===null)throw new w(407,!1);let n=e.get(gh,null),r=e.get(Ct,null),i=e.get(sn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:i}}function AC(e,t,n){let r=bh(e);return Ag(t,r,r==="svg"?tl:r==="math"?Wf:n)}function PC(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new w(905,!1)}function bh(e){return(e.selectors[0][0]||"div").toLowerCase()}var ir=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=NC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=TC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=G0(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,i,o,s,a){re(J.DynamicComponentStart);let c=F(null);try{let l=this.componentDef,p=kC(l,i||this.ngModule,t),h=OC(p),v=h.tracingService;return v&&v.componentCreate?v.componentCreate(hh(l),()=>this.createComponentRef(h,p,n,r,o,s,a)):this.createComponentRef(h,p,n,r,o,s,a)}finally{F(c)}}createComponentRef(t,n,r,i,o,s,a){let c=this.componentDef,l=RC(i,c,s,o),p=t.rendererFactory.createRenderer(null,c),h=i?D_(p,i,c.encapsulation,n):AC(c,p,a??null);PC(h);let v=n.get(ar,null),m=FC(h,()=>n.get(Ve,null)??Dg());v&&v.addHost(m);let _=s?.some(Gp)||o?.some(L=>typeof L!="function"&&L.bindings.some(Gp)),S=Ed(null,l,null,512|zg(c),null,null,t,p,n,null,Mg(h,n,!0));v&&Ch&&m instanceof ShadowRoot&&xs(S,()=>{v.removeHost(m)}),S[ve]=h,Is(S);let R=null;try{let L=yh(ve,S,2,"#host",()=>l.directiveRegistry,!0,0);Fg(p,h,L),$r(h,S),Zg(l,S,L),Ng(l,L,S),_h(l,L),r!==void 0&&VC(L,this.ngContentSelectors,r),R=ft(L.index,S),S[he]=R[he],Md(l,S,null)}catch(L){throw R!==null&&jl(R),jl(S),L}finally{re(J.DynamicComponentEnd),Ns()}return new Js(this.componentType,S,!!_)}};function RC(e,t,n,r){let i=e?["ng-version","22.1.6"]:W0(t.selectors[0]),o=null,s=null,a=0;if(n)for(let p of n)a+=p[Wl].requiredVars,p.create&&(p.targetIdx=0,(o??=[]).push(p)),p.update&&(p.targetIdx=0,(s??=[]).push(p));if(r)for(let p=0;p<r.length;p++){let h=r[p];if(typeof h!="function")for(let v of h.bindings){a+=v[Wl].requiredVars;let m=p+1;v.create&&(v.targetIdx=m,(o??=[]).push(v)),v.update&&(v.targetIdx=m,(s??=[]).push(v))}}let c=[t];if(r)for(let p of r){let h=typeof p=="function"?p:p.type,v=Uc(h);c.push(v)}return Dd(0,null,LC(o,s),1,a,c,null,null,null,[i],null)}function FC(e,t){let n=e.getRootNode?.();return IC&&n instanceof Document?n.head:n&&Ch&&n instanceof ShadowRoot?n:t().head}function LC(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Gp(e){let t=e[Wl].kind;return t==="input"||t==="twoWay"}var Js=class extends ph{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Cs(n[P],ve),this.location=Wr(this._tNode,n),this.instance=ft(this._tNode.index,n)[he],this.hostView=this.changeDetectorRef=new bn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView,o=wd(r,i[P],i,t,n);this.previousInputValues.set(t,n);let s=ft(r.index,i);Id(s,1)}get injector(){return new _n(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function VC(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Ki=(()=>{class e{static __NG_ELEMENT_ID__=jC}return e})();function jC(){let e=Ne();return Dh(e,j())}var ql=class e extends Ki{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Wr(this._hostTNode,this._hostLView)}get injector(){return new _n(this._hostTNode,this._hostLView)}get parentInjector(){let t=dd(this._hostTNode,this._hostLView);if(cg(t)){let n=Us(t,this._hostLView),r=Hs(t),i=n[P].data[r+8];return new _n(i,n)}else return new _n(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Wp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-pe}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Gl(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,$i(this._hostTNode,s)),a}createComponent(t,n,r,i,o,s,a){let c,l=n||{};c=l.index,r=l.injector,i=l.projectableNodes,o=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let p=new ir(en(t)),h=r||this.parentInjector;if(!o&&p.ngModule==null){let L=this.parentInjector.get(ze,null);L&&(o=L)}let v=en(p.componentType??{}),m=Gl(this._lContainer,v?.id??null),_=m?.firstChild??null,S=p.create(h,i,_,o,s,a,this._getHostElementNamespace());return this.insertImpl(S.hostView,c,$i(this._hostTNode,m)),S}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[Ze];return t!==null&&t.type&2&&typeof t.value=="string"&&t.value.toLowerCase()==="foreignobject"?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(Zf(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[_e],l=new e(c,c[Ze],c[_e]);l.detach(l.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return da(s,i,o,r),t.attachToViewContainerRef(),Wc(Ml(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Wp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Gi(this._lContainer,n);r&&(Si(Ml(this._lContainer),n),aa(r[P],r))}detach(t){let n=this._adjustIndex(t,-1),r=Gi(this._lContainer,n);return r&&Si(Ml(this._lContainer),n)!=null?new bn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Wp(e){return e[Ni]}function Ml(e){return e[Ni]||(e[Ni]=[])}function Dh(e,t){let n,r=t[e.index];return dt(r)?n=r:(n=ch(r,t,null,e),t[e.index]=n,xd(t,n)),HC(n,t,e,r),new ql(n,e,t)}function BC(e,t){let n=e[ce],r=n.createComment(""),i=ut(t,e),o=n.parentNode(i);return Xn(n,o,r,n.nextSibling(i),!1),r}var HC=zC,UC=()=>!1;function $C(e,t,n){return UC(e,t,n)}function zC(e,t,n,r){if(e[Wn])return;let i;n.type&8?i=Ie(r):i=BC(t,n),e[Wn]=i}var Zl=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Yl=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new e(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Rd(t,n).matches!==null&&this.queries[n].setDirty()}},Ql=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=JC(t):this.predicate=t}},Kl=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Jl=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,GC(n,o)),this.matchTNodeWithReadOption(t,n,Vs(n,t,o,!1,!1))}else r===zr?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Vs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Nt||i===Ki||i===zr&&n.type&4)this.addMatch(n.index,-2);else{let o=Vs(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function GC(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function WC(e,t){return e.type&11?Wr(e,t):e.type&4?kd(e,t):null}function qC(e,t,n,r){return n===-1?WC(t,e):n===-2?ZC(e,t,r):Hi(e,e[P],n,t)}function ZC(e,t,n){if(n===Nt)return Wr(t,e);if(n===zr)return kd(t,e);if(n===Ki)return Dh(t,e)}function Eh(e,t,n,r){let i=t[Lt].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let p=o[l];a.push(qC(t,p,s[c+1],n.metadata.read))}}i.matches=a}return i.matches}function Xl(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=Eh(e,t,i,n);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)r.push(s[a/2]);else{let l=o[a+1],p=t[-c];for(let h=pe;h<p.length;h++){let v=p[h];v[hn]===v[_e]&&Xl(v[P],v,l,r)}if(p[qn]!==null){let h=p[qn];for(let v=0;v<h.length;v++){let m=h[v];Xl(m[P],m,l,r)}}}}}return r}function YC(e,t){return e[Lt].queries[t].queryList}function QC(e,t,n){let r=new Gs((n&4)===4);return Kf(e,t,r,r.destroy),(t[Lt]??=new Yl).queries.push(new Zl(r))-1}function KC(e,t,n){let r=ge();return r.firstCreatePass&&(XC(r,new Ql(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),QC(r,j(),t)}function JC(e){return e.split(",").map(t=>t.trim())}function XC(e,t,n){e.queries===null&&(e.queries=new Kl),e.queries.track(new Jl(t,n))}function Rd(e,t){return e.queries.getByIndex(t)}function eb(e,t){let n=e[P],r=Rd(n,t);return r.crossesNgTemplate?Xl(n,e,t,[]):Eh(n,e,r,t)}function qr(e){return!!e&&typeof e.then=="function"}function Fd(e){return!!e&&typeof e.subscribe=="function"}var Wi=class{};var qi=class extends Wi{injector;instance=null;constructor(t){super();let n=new Hn([...t.providers,{provide:Wi,useValue:this}],t.parent||Tr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function xh(e,t,n=null){return new qi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var tb=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Zc(!1,n.type),i=r.length>0?xh([r],this._injector,""):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=ne({token:e,providedIn:"environment",factory:()=>new e(G(ze))})}return e})();function Tt(e){return Yi(()=>{let t=Sh(e),n=z(B({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==ud.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(tb).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Mt.Emulated,styles:e.styles||$e,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&an("NgStandalone"),wh(n);let r=e.dependencies;return n.directiveDefs=qp(r,nb),n.pipeDefs=qp(r,Af),n.id=ob(n),n})}function nb(e){return en(e)||Uc(e)}function Dn(e){return Yi(()=>({type:e.type,bootstrap:e.bootstrap||$e,declarations:e.declarations||$e,imports:e.imports||$e,exports:e.exports||$e,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function rb(e,t){if(e==null)return pn;let n={};for(let r in e)if(Object.hasOwn(e,r)){let i=e[r],o,s,a,c;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,c=i[3]||null):(o=i,s=i,a=Qi.None,c=null),n[o]=[r,a,c],t[o]=s}return n}function ib(e){if(e==null)return pn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function Ce(e){return Yi(()=>{let t=Sh(e);return wh(t),t})}function fa(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Sh(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||pn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||$e,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:rb(e.inputs,t),outputs:ib(e.outputs),debugInfo:null}}function wh(e){e.features?.forEach(t=>t(e))}function qp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let o=t(i);o!==null&&r.push(o)}return r}:null}function ob(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let o of r.join("|"))t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var Mh=new A("");var Ld=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=x(Mh,{optional:!0})??[];injector=x(Le);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=kr(this.injector,i);if(qr(o))n.push(o);else if(Fd(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=on({token:e,factory:e.\u0275fac})}return e})();function Vd(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function sb(e){return Object.getPrototypeOf(e.prototype).constructor}function We(e){let t=sb(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let i,o=Object.hasOwn(t,Ei)?t[Ei]:void 0,s=Object.hasOwn(t,xi)?t[xi]:void 0;if(Bt(e))i=o??s;else{if(o)throw new w(903,!1);i=s}if(i){if(n){r.push(i);let c=e;c.inputs=Il(e.inputs),c.declaredInputs=Il(e.declaredInputs),c.outputs=Il(e.outputs);let l=i.hostBindings;l&&ub(e,l);let p=i.viewQuery,h=i.contentQueries;if(p&&lb(e,p),h&&db(e,h),ab(e,i),Of(e.outputs,i.outputs),Bt(i)&&i.data.animation){let v=e.data;v.animation=(v.animation||[]).concat(i.data.animation)}}let a=i.features;if(a)for(let c=0;c<a.length;c++){let l=a[c];l&&l.ngInherit&&l(e),l===We&&(n=!1)}}t=Object.getPrototypeOf(t)}cb(r)}function ab(e,t){for(let n in t.inputs){if(!Object.hasOwn(t.inputs,n)||Object.hasOwn(e.inputs,n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function cb(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ur(i.hostAttrs,n=Ur(n,i.hostAttrs))}}function Il(e){return e===pn?{}:e===$e?[]:e}function lb(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function db(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function ub(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function fb(e,t,n,r,i,o,s,a){if(n.firstCreatePass){e.mergedAttrs=Ur(e.mergedAttrs,e.attrs);let p=e.tView=Dd(2,e,i,o,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),p.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Lr(e,!1);let c=pb(n,t,e,r);Ts()&&Cd(n,t,c,e),$r(c,t);let l=ch(c,t,c,e);t[r+ve]=l,xd(t,l),$C(l,e,t)}function Xs(e,t,n,r,i,o,s,a,c,l,p){let h=n+ve,v;if(t.firstCreatePass){if(v=ua(t,h,4,s||null,a||null),l!=null){let m=Ht(t.consts,l);v.localNames=[];for(let _=0;_<m.length;_+=2)v.localNames.push(m[_],-1)}}else v=t.data[h];return fb(v,e,t,n,r,i,o,c),l!=null&&Sd(e,v,p),v}var pb=gb;function gb(e,t,n,r){return ks(!0),t[ce].createComment("")}var jd=new A("");var Ih=new A("");function Nh(){sc(()=>{let e="";throw new w(600,e)})}var hb=10;var En=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=x(yn);afterRenderManager=x(md);zonelessEnabled=x(Fi);rootEffectScheduler=x(As);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Re;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=x(Kn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(we(n=>!n))}constructor(){x(sn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=x(ze);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=Le.NULL){return this._injector.get(Ee).run(()=>{if(re(J.BootstrapComponentStart),!this._injector.get(Ld).done){let L="";throw new w(405,L)}let a=en(n),c=this._injector.get(Wi),l=new ir(a,c);this.componentTypes.push(n);let{hostElement:p,directives:h,bindings:v}=mb(r),m=p||l.selector,_=l.create(i,[],m,c.injector,h,v),S=_.location.nativeElement,R=_.injector.get(jd,null);return R?.registerApplication(S),_.onDestroy(()=>{this.detachView(_.hostView),Bi(this.components,_),R?.unregisterApplication(S)}),this._loadComponent(_),re(J.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){re(J.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(oa.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw re(J.ChangeDetectionEnd),new w(101,!1);let n=F(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,F(n),this.afterTick.next(),re(J.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(rr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<hb;){re(J.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{re(J.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!r&&!Fr(i))continue;let o=r&&!this.zonelessEnabled?0:1;ih(i,o),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Fr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Bi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(n),this._injector.get(Ih,[]).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Bi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=on({token:e,factory:e.\u0275fac})}return e})();function mb(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Bi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ke(e,t,n,r){let i=j(),o=mn();if(nt(i,o,t)){let s=ge(),a=Vr();k_(a,i,e,t,n,r)}return ke}var ed=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}};function Nl(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function vb(e,t,n,r){let i,o,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){F(r);let l=t.length-1;for(F(null);s<=a&&s<=l;){let p=e.at(s),h=t[s],v=Nl(s,p,s,h,n);if(v!==0){v<0&&e.updateValue(s,h),s++;continue}let m=e.at(a),_=t[l],S=Nl(a,m,l,_,n);if(S!==0){S<0&&e.updateValue(a,_),a--,l--;continue}let R=n(s,p),L=n(a,m),de=n(s,h);if(Object.is(de,L)){let Je=n(l,_);Object.is(Je,R)?(e.swap(s,a),e.updateValue(a,_),l--,a--):e.move(a,s),e.updateValue(s,h),s++;continue}if(i??=new ea,o??=Yp(e,s,a,n),td(e,i,s,de))e.updateValue(s,h),s++,a++;else if(o.has(de))i.set(R,e.detach(s)),a--;else{let Je=e.create(s,t[s]);e.attach(s,Je),s++,a++}}for(;s<=l;)Zp(e,i,n,s,t[s]),s++}else if(t!=null){F(r);let l=t[Symbol.iterator]();F(null);let p=l.next();for(;!p.done&&s<=a;){let h=e.at(s),v=p.value,m=Nl(s,h,s,v,n);if(m!==0)m<0&&e.updateValue(s,v),s++,p=l.next();else{i??=new ea,o??=Yp(e,s,a,n);let _=n(s,v);if(td(e,i,s,_))e.updateValue(s,v),s++,a++,p=l.next();else if(!o.has(_))e.attach(s,e.create(s,v)),s++,a++,p=l.next();else{let S=n(s,h);i.set(S,e.detach(s)),a--}}}for(;!p.done;)Zp(e,i,n,e.length,p.value),p=l.next()}for(;s<=a;)e.destroy(e.detach(a--));i?.forEach(l=>{e.destroy(l)})}function td(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Zp(e,t,n,r,i){if(td(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function Yp(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var ea=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}};function C(e,t,n,r,i,o,s,a){an("NgControlFlow");let c=j(),l=ge(),p=Ht(l.consts,o);return Xs(c,l,e,t,n,r,i,p,256,s,a),Bd}function Bd(e,t,n,r,i,o,s,a){an("NgControlFlow");let c=j(),l=ge(),p=Ht(l.consts,o);return Xs(c,l,e,t,n,r,i,p,512,s,a),Bd}function b(e,t){an("NgControlFlow");let n=j(),r=mn(),i=n[r]!==Te?n[r]:-1,o=i!==-1?ta(n,ve+i):void 0,s=0;if(nt(n,r,e)){let a=F(null);try{if(o!==void 0&&dh(o,s),e!==-1){let c=ve+e,l=ta(n,c),p=od(n[P],c),h=fh(l,p,n),v=la(n,p,t,{dehydratedView:h});da(l,v,s,$i(p,h))}}finally{F(a)}}else if(o!==void 0){let a=lh(o,s);a!==void 0&&(a[he]=t)}}var nd=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-pe}};function xn(e){return e}function Ji(e,t){return t}var rd=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Y(e,t,n,r,i,o,s,a,c,l,p,h,v){an("NgControlFlow");let m=j(),_=ge(),S=c!==void 0,R=j(),L=a?s.bind(R[et][he]):s,de=new rd(S,L);R[ve+e]=de,Xs(m,_,e+1,t,n,r,i,Ht(_.consts,o),256),S&&Xs(m,_,e+2,c,l,p,h,Ht(_.consts,v),512)}var id=class extends ed{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-pe}at(t){return this.getLView(t)[he].$implicit}attach(t,n){let r=n[Or];this.needsIndexUpdate||=t!==this.length,da(this.lContainer,n,t,$i(this.templateTNode,r)),yb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,_b(this.lContainer,t),Cb(this.lContainer,t)}create(t,n){let r=Gl(this.lContainer,this.templateTNode.tView.ssrId);return la(this.hostLView,this.templateTNode,new nd(this.lContainer,n,t),{dehydratedView:r})}destroy(t){aa(t[P],t)}updateValue(t,n){this.getLView(t)[he].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[he].$index=t}getLView(t){return bb(this.lContainer,t)}};function Q(e){let t=F(null),n=Et();try{let r=j(),i=r[P],o=r[n],s=n+1,a=ta(r,s);if(o.liveCollection===void 0){let l=od(i,s);o.liveCollection=new id(a,r,l)}else o.liveCollection.reset();let c=o.liveCollection;if(vb(c,e,o.trackByFn,t),c.updateIndexes(),o.hasEmptyBlock){let l=mn(),p=c.length===0;if(nt(r,l,p)){let h=n+2,v=ta(r,h);if(p){let m=od(i,h),_=fh(v,m,r),S=la(r,m,void 0,{dehydratedView:_});da(v,S,0,$i(m,_))}else i.firstUpdatePass&&nC(v),dh(v,0)}}}finally{F(t)}}function ta(e,t){return e[t]}function yb(e,t){if(e.length<=pe)return;let n=pe+t,r=e[n],i=r?r[jt]:void 0;if(r&&i&&i.detachedLeaveAnimationFns&&i.detachedLeaveAnimationFns.length>0){let o=r[Ft];X0(o,i),Cn.delete(r[Vt]),i.detachedLeaveAnimationFns=void 0}}function _b(e,t){if(e.length<=pe)return;let n=pe+t,r=e[n],i=r?r[jt]:void 0;i&&i.leave&&i.leave.size>0&&(i.detachedLeaveAnimationFns=[])}function Cb(e,t){return Gi(e,t)}function bb(e,t){return lh(e,t)}function od(e,t){return Cs(e,t)}function E(e,t,n){let r=j(),i=mn();if(nt(r,i,t)){let o=ge(),s=Vr();Yg(s,r,e,t,r[ce],n)}return E}function sd(e,t,n,r,i){wd(t,e,n,i?"class":"style",r)}function u(e,t,n,r){let i=j(),o=i[P],s=e+ve,a=o.firstCreatePass?yh(s,i,2,t,T_,ep(),n,r):o.data[s];if(rn(a)){let c=i[Dt].tracingService;if(c&&c.componentCreate){let l=o.data[a.directiveStart+a.componentOffset];return c.componentCreate(hh(l),()=>(Qp(e,t,i,a,r),u))}}return Qp(e,t,i,a,r),u}function Qp(e,t,n,r,i){if(Kg(r,n,e,t,Th),ys(r)){let o=n[P];Zg(o,n,r),Ng(o,r,n)}i!=null&&Sd(n,r)}function d(){let e=ge(),t=Ne(),n=Jg(t);return e.firstCreatePass&&_h(e,n),ll(n)&&dl(),cl(),n.classesWithoutHost!=null&&a0(n)&&sd(e,n,j(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&c0(n)&&sd(e,n,j(),n.stylesWithoutHost,!1),d}function O(e,t,n,r){return u(e,t,n,r),d(),O}function pt(e,t,n,r){let i=j(),o=i[P],s=e+ve,a=o.firstCreatePass?MC(s,o,2,t,n,r):o.data[s];return Kg(a,i,e,t,Th),r!=null&&Sd(i,a),pt}function kt(){let e=Ne(),t=Jg(e);return ll(t)&&dl(),cl(),kt}function pa(e,t,n,r){return pt(e,t,n,r),kt(),pa}var Th=(e,t,n,r,i)=>(ks(!0),Ag(t[ce],r,yl()));function H(){return j()}function ga(e,t,n){let r=j(),i=mn();if(nt(r,i,t)){let o=ge(),s=Vr();Qg(s,r,e,t,r[ce],n)}return ga}var Li=void 0;function Db(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Eb=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Li,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Li,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Li,Li,Li],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Db],Tl=Object.create(null);function Ye(e){let t=xb(e),n=Kp(t);if(n)return n;let r=t.split("-")[0];if(n=Kp(r),n)return n;if(r==="en")return Eb;throw new w(701,!1)}function Kp(e){if(!(e in Tl)){let t=$n.ng&&$n.ng.common&&$n.ng.common.locales&&$n.ng.common.locales[e];return t!==void 0&&(Tl[e]=t),t}return Tl[e]}var me={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function xb(e){return e.toLowerCase().replace(/_/g,"-")}var Xi="en-US";var Sb=Xi;function kh(e){typeof e=="string"&&(Sb=e.toLowerCase().replace(/_/g,"-"))}function N(e,t,n){let r=j(),i=ge(),o=Ne();return Oh(i,r,r[ce],o,e,t,n),N}function Zr(e,t,n){let r=j(),i=ge(),o=Ne();return(o.type&3||n)&&Pd(o,i,r,n,r[ce],e,t,er(o,r,t)),Zr}function Oh(e,t,n,r,i,o,s){let a=!0,c=null;if((r.type&3||s)&&(c??=er(r,t,o),Pd(r,e,t,s,n,i,o,c)&&(a=!1)),a){let l=r.outputs?.[i],p=r.hostDirectiveOutputs?.[i];if(p&&p.length)for(let h=0;h<p.length;h+=2){let v=p[h],m=p[h+1];c??=er(r,t,o),Ys(r,t,v,m,i,c)}if(l&&l.length)for(let h of l)c??=er(r,t,o),Ys(r,t,h,i,i,c)}}function y(e=1){return fp(e)}function ha(e,t,n){return KC(e,t,n),ha}function Hd(e){let t=j(),n=ge(),r=hl();Ms(r+1);let i=Rd(n,r);if(e.dirty&&qf(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=eb(t,r);e.reset(o,b0),e.notifyOnChanges()}return!0}return!1}function Ud(){return YC(j(),hl())}function Rs(e,t){return e<<17|t<<2}function or(e){return e>>17&32767}function wb(e){return(e&2)==2}function Mb(e,t){return e&131071|t<<17}function ad(e){return e|2}function Gr(e){return(e&131068)>>2}function kl(e,t){return e&-131069|t<<2}function Ib(e){return(e&1)===1}function cd(e){return e|1}function Nb(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=or(s),c=Gr(s);e[r]=n;let l=!1,p;if(Array.isArray(n)){let h=n;p=h[1],(p===null||Ir(h,p)>0)&&(l=!0)}else p=n;if(i)if(c!==0){let v=or(e[a+1]);e[r+1]=Rs(v,a),v!==0&&(e[v+1]=kl(e[v+1],r)),e[a+1]=Mb(e[a+1],r)}else e[r+1]=Rs(a,0),a!==0&&(e[a+1]=kl(e[a+1],r)),a=r;else e[r+1]=Rs(c,0),a===0?a=r:e[c+1]=kl(e[c+1],r),c=r;l&&(e[r+1]=ad(e[r+1])),Jp(e,p,r,!0),Jp(e,p,r,!1),Tb(t,p,e,r,o),s=Rs(a,c),o?t.classBindings=s:t.styleBindings=s}function Tb(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Ir(o,t)>=0&&(n[r+1]=cd(n[r+1]))}function Jp(e,t,n,r){let i=e[n+1],o=t===null,s=r?or(i):Gr(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],l=e[s+1];kb(c,t)&&(a=!0,e[s+1]=r?cd(l):ad(l)),s=r?or(l):Gr(l)}a&&(e[n+1]=r?ad(i):cd(i))}function kb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ir(e,t)>=0:!1}var wt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ob(e){return e.substring(wt.key,wt.keyEnd)}function Ab(e){return Pb(e),Ah(e,Ph(e,0,wt.textEnd))}function Ah(e,t){let n=wt.textEnd;return n===t?-1:(t=wt.keyEnd=Rb(e,wt.key=t,n),Ph(e,t,n))}function Pb(e){wt.key=0,wt.keyEnd=0,wt.value=0,wt.valueEnd=0,wt.textEnd=e.length}function Ph(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Rb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function rt(e,t,n){return Rh(e,t,n,!1),rt}function oe(e,t){return Rh(e,t,null,!0),oe}function Yr(e){Lb($b,Fb,e,!0)}function Fb(e,t){for(let n=Ab(t);n>=0;n=Ah(t,n))hs(e,Ob(t),!0)}function Rh(e,t,n,r){let i=j(),o=ge(),s=Ti(2);if(o.firstUpdatePass&&Lh(o,e,s,r),t!==Te&&nt(i,s,t)){let a=o.data[Et()];Vh(o,a,i,i[ce],e,i[s+1]=Gb(t,n),r,s)}}function Lb(e,t,n,r){let i=ge(),o=Ti(2);i.firstUpdatePass&&Lh(i,null,o,r);let s=j();if(n!==Te&&nt(s,o,n)){let a=i.data[Et()];if(jh(a,r)&&!Fh(i,o)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=ds(c,n||"")),sd(i,a,s,n,r)}else zb(i,a,s,s[ce],s[o+1],s[o+1]=Ub(e,t,n),r,o)}}function Fh(e,t){return t>=e.expandoStartIndex}function Lh(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[Et()],s=Fh(e,n);jh(o,r)&&t===null&&!s&&(t=!1),t=Vb(i,o,t,r),Nb(i,o,t,n,s,r)}}function Vb(e,t,n,r){let i=cp(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ol(null,e,t,n,r),n=Zi(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Ol(i,e,t,n,r),o===null){let c=jb(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ol(null,e,t,c[1],r),c=Zi(c,t.attrs,r),Bb(e,t,r,c))}else o=Hb(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function jb(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Gr(r)!==0)return e[or(r)]}function Bb(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[or(i)]=r}function Hb(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Zi(r,s,n)}return Zi(r,t.attrs,n)}function Ol(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=Zi(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Zi(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),hs(e,s,n?!0:t[++o]))}return e===void 0?null:e}function Ub(e,t,n){if(n==null||n==="")return $e;let r=[],i=Ui(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if(i instanceof Set)for(let o of i)e(r,o,!0);else if(typeof i=="object")for(let o in i)Object.hasOwn(i,o)&&e(r,o,i[o]);else typeof i=="string"&&t(r,i);return r}function $b(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&hs(e,r,n)}function zb(e,t,n,r,i,o,s,a){i===Te&&(i=$e);let c=0,l=0,p=0<i.length?i[0]:null,h=0<o.length?o[0]:null;for(;p!==null||h!==null;){let v=c<i.length?i[c+1]:void 0,m=l<o.length?o[l+1]:void 0,_=null,S;p===h?(c+=2,l+=2,v!==m&&(_=h,S=m)):h===null||p!==null&&p<h?(c+=2,_=p):(l+=2,_=h,S=m),_!==null&&Vh(e,t,n,r,_,S,s,a),p=c<i.length?i[c]:null,h=l<o.length?o[l]:null}}function Vh(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],p=Ib(l)?Xp(c,t,n,i,Gr(l),s):void 0;if(!na(p)){na(o)||wb(l)&&(o=Xp(c,null,n,i,a,s));let h=nl(Et(),n);y_(r,s,h,i,o)}}function Xp(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let c=e[i],l=Array.isArray(c),p=l?c[1]:c,h=p===null,v=n[i+1];v===Te&&(v=h?$e:void 0);let m=h?ms(v,r):p===r?v:void 0;if(l&&!na(m)&&(m=ms(c,r)),na(m)&&(a=m,s))return a;let _=e[i+1];i=s?or(_):Gr(_)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=ms(c,r))}return a}function na(e){return e!==void 0}function Gb(e,t){return e==null||e===""||(typeof t=="string"?e=Ui(e)+t:typeof e=="object"&&(e=ls(Ui(e)))),e}function jh(e,t){return(e.flags&(t?8:16))!==0}function g(e,t=""){let n=j(),r=ge(),i=e+ve,o=r.firstCreatePass?ua(r,i,1,t,null):r.data[i],s=Wb(r,n,o,t);n[i]=s,Ts()&&Cd(r,n,s,o),Lr(o,!1)}var Wb=(e,t,n,r)=>(ks(!0),k0(t[ce],r));function Bh(e,t,n,r=""){return nt(e,mn(),n)?t+tn(n)+r:Te}function qb(e,t,n,r,i,o=""){let s=gl(),a=Ad(e,s,n,i);return Ti(2),a?t+tn(n)+r+tn(i)+o:Te}function Zb(e,t,n,r,i,o,s,a=""){let c=gl(),l=cC(e,c,n,i,s);return Ti(3),l?t+tn(n)+r+tn(i)+o+tn(s)+a:Te}function D(e){return T("",e),D}function T(e,t,n){let r=j(),i=Bh(r,e,t,n);return i!==Te&&$d(r,Et(),i),T}function it(e,t,n,r,i){let o=j(),s=qb(o,e,t,n,r,i);return s!==Te&&$d(o,Et(),s),it}function cr(e,t,n,r,i,o,s){let a=j(),c=Zb(a,e,t,n,r,i,o,s);return c!==Te&&$d(a,Et(),c),cr}function $d(e,t,n){let r=nl(t,e);O0(e[ce],r,n)}function ee(e,t,n){Ps(t)&&(t=t());let r=j(),i=mn();if(nt(r,i,t)){let o=ge(),s=Vr();Yg(s,r,e,t,r[ce],n)}return ee}function ie(e,t){let n=Ps(e);return n&&e.set(t),n}function te(e,t){let n=j(),r=ge(),i=Ne();return Oh(r,n,n[ce],i,e,t),te}function zd(e,t,n=""){return Bh(j(),e,t,n)}function eg(e,t,n){let r=ge();r.firstCreatePass&&Hh(t,r.data,r.blueprint,Bt(e),n)}function Hh(e,t,n,r,i){if(e=Me(e),Array.isArray(e))for(let o=0;o<e.length;o++)Hh(e[o],t,n,r,i);else{let o=ge(),s=j(),a=Ne(),c=Bn(e)?e:Me(e.provide),l=Qc(e),p=a.providerIndexes&1048575,h=a.directiveStart,v=a.providerIndexes>>20;if(Bn(e)||!e.multi){let m=new tr(l,i,X,null),_=Pl(c,t,i?p:p+v,h);_===-1?(Ll(zs(a,s),o,c),Al(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[_]=m,s[_]=m)}else{let m=Pl(c,t,p+v,h),_=Pl(c,t,p,p+v),S=m>=0&&n[m],R=_>=0&&n[_];if(i&&!R||!i&&!S){Ll(zs(a,s),o,c);let L=Kb(i?Qb:Yb,n.length,i,r,l,e);!i&&R&&(n[_].providerFactory=L),Al(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(L),s.push(L)}else{let L=Uh(n[i?_:m],l,!i&&r);Al(o,e,m>-1?m:_,L)}!i&&r&&R&&n[_].componentProviders++}}}function Al(e,t,n,r){let i=Bn(t),o=$f(t);if(i||o){let c=(o?Me(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let p=l.indexOf(n);p===-1?l.push(n,[r,c]):l[p+1].push(r,c)}else l.push(n,c)}}}function Uh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Pl(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Yb(e,t,n,r,i){return ld(this.multi,[])}function Qb(e,t,n,r,i){let o=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Hi(r,r[P],this.providerFactory.index,i);s=c.slice(0,a),ld(o,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],ld(o,s);return s}function ld(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Kb(e,t,n,r,i,o){let s=new tr(e,n,X,null);return s.multi=[],s.index=t,s.componentProviders=0,Uh(s,i,r&&!n),s}function gt(e,t){return n=>{n.providersResolver=(r,i)=>eg(r,i?i(e):e,!1),t&&(n.viewProvidersResolver=(r,i)=>eg(r,i?i(t):t,!0))}}function Oe(e,t){let n=Ss()+e,r=j();return r[n]===Te?Od(r,n,t()):aC(r,n)}function $h(e,t){let n=e[t];return n===Te?void 0:n}function Jb(e,t,n,r,i,o){let s=t+n;return nt(e,s,i)?Od(e,s+1,o?r.call(o,i):r(i)):$h(e,s+1)}function Xb(e,t,n,r,i,o,s){let a=t+n;return Ad(e,a,i,o)?Od(e,a+2,s?r.call(s,i,o):r(i,o)):$h(e,a+2)}function ht(e,t){let n=ge(),r,i=e+ve;n.firstCreatePass?(r=eD(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=un(r.type,!0)),s,a=Ue(X);try{let c=$s(!1),l=o();return $s(c),il(n,j(),i,l),l}finally{Ue(a)}}function eD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function lr(e,t,n){let r=e+ve,i=j(),o=rl(i,r);return zh(i,r)?Jb(i,Ss(),t,o.transform,n,o):o.transform(n)}function dr(e,t,n,r){let i=e+ve,o=j(),s=rl(o,i);return zh(o,i)?Xb(o,Ss(),t,s.transform,n,r,s):s.transform(n,r)}function zh(e,t){return e[P].data[t].pure}var Gh=(()=>{class e{applicationErrorHandler=x(yn);appRef=x(En);taskService=x(Kn);ngZone=x(Ee);zonelessEnabled=x(Fi);tracing=x(sn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Se;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(bi):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(x(El,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){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 r=this.useMicrotaskScheduler?vp:_l;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(bi+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 n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=on({token:e,factory:e.\u0275fac})}return e})();function Gd(){return an("NgZoneless"),Nr([...Wd(),[]])}function Wd(){return[{provide:Ct,useExisting:Gh},{provide:Ee,useClass:Di},{provide:Fi,useValue:!0}]}function tD(){return typeof $localize<"u"&&$localize.locale||Xi}var Qr=new A("",{factory:()=>x(Qr,{optional:!0,skipSelf:!0})||tD()});var ma=class{destroyed=!1;listeners=null;errorHandler=x(ct,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=x(fe);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new w(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[n]=null):this.listeners.splice(n,1))}}}emit(t){if(this.destroyed){console.warn(fn(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=F(null);try{for(let r of this.listeners)try{r!==null&&r(t)}catch(i){this.errorHandler?.handleError(i)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&nD(this.listeners)),F(n),this.isEmitting=!1}}};function nD(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function $(e,t){return Po(e,t?.equal)}function Qe(e){return Ju(e)}var Wh=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")};function Yh(e,t){let n=Object.create(rg);n.value=e,n.transformFn=t?.transform;function r(){if(mr(n),n.value===ra){let i=null;throw new w(-950,i)}return n.value}return r[xe]=n,r}function Sn(e){return new ma}function qh(e,t){return Yh(e,t)}function gD(e){return Yh(ra,e)}var be=(qh.required=gD,qh);var hD=1e4;var kL=hD-1e3;var no=(()=>{class e{static __NG_ELEMENT_ID__=mD}return e})();function mD(e){return vD(Ne(),j(),(e&16)===16)}function vD(e,t,n){if(rn(e)&&!n){let r=ft(e.index,t);return new bn(r,r)}else if(e.type&175){let r=t[et];return new bn(r,t)}return null}var qd=new A(""),yD=new A("");function eo(e){return!e.moduleRef}function _D(e){let t=eo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ee);return n.run(()=>{eo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(yn),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),eo(e)){let o=()=>t.destroy(),s=e.platformInjector.get(qd);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(qd);s.add(o),e.moduleRef.onDestroy(()=>{Bi(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return bD(r,n,()=>{let o=t.get(Kn),s=o.add(),a=t.get(Ld);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Qr,Xi);if(kh(c||Xi),!t.get(yD,!0))return eo(e)?t.get(En):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(eo(e)){let p=t.get(En);return e.rootComponent!==void 0&&p.bootstrap(e.rootComponent),p}else return CD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{o.remove(s)})})})}var CD;function bD(e,t,n){try{let r=n();return qr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var va=null;function DD(e=[],t){return Le.create({name:t,providers:[{provide:Ii,useValue:"platform"},{provide:qd,useValue:new Set([()=>va=null])},...e]})}function ED(e=[]){if(va)return va;let t=DD(e);return va=t,Nh(),xD(t),t}function xD(e){let t=e.get(Os,null);kr(e,()=>{t?.forEach(n=>n())})}function Qh(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:i}=e;re(J.BootstrapApplicationStart);try{let o=i?.injector??ED(r),s=[Wd(),_p,...n||[]],a=new qi({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1});return _D({r3Injector:a.injector,platformInjector:o,rootComponent:t})}catch(o){return Promise.reject(o)}finally{re(J.BootstrapApplicationEnd)}}function Zd(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Kh(e,t){let n=en(e),r=t.elementInjector||Tr();return new ir(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function ro(e){let t=en(e);if(!t)return null;let n=new ir(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Jh=null;function Ot(){return Jh}function Yd(e){Jh??=e}var io=class{},ya=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ne({token:e,factory:()=>x(Xh),providedIn:"platform"})}return e})();var Xh=(()=>{class e extends ya{_location;_history;_doc=x(Ve);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ot().getBaseHref(this._doc)}onPopState(n){let r=Ot().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Ot().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ne({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var tu=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(tu||{});var je=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(je||{}),ae=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(ae||{}),Ke=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ke||{}),qe={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function nm(e){return Ye(e)[me.LocaleId]}function rm(e,t,n){let r=Ye(e),i=[r[me.DayPeriodsFormat],r[me.DayPeriodsStandalone]],o=vt(i,t);return vt(o,n)}function im(e,t,n){let r=Ye(e),i=[r[me.DaysFormat],r[me.DaysStandalone]],o=vt(i,t);return vt(o,n)}function om(e,t,n){let r=Ye(e),i=[r[me.MonthsFormat],r[me.MonthsStandalone]],o=vt(i,t);return vt(o,n)}function sm(e,t){let r=Ye(e)[me.Eras];return vt(r,t)}function oo(e,t){let n=Ye(e);return vt(n[me.DateFormat],t)}function so(e,t){let n=Ye(e);return vt(n[me.TimeFormat],t)}function ao(e,t){let r=Ye(e)[me.DateTimeFormat];return vt(r,t)}function Gt(e,t){let n=Ye(e),r=n[me.NumberSymbols][t];if(typeof r>"u"){if(t===qe.CurrencyDecimal)return n[me.NumberSymbols][qe.Decimal];if(t===qe.CurrencyGroup)return n[me.NumberSymbols][qe.Group]}return r}function am(e,t){return Ye(e)[me.NumberFormats][t]}function cm(e){if(!e[me.ExtraData])throw new w(2303,!1)}function lm(e){let t=Ye(e);return cm(t),(t[me.ExtraData][2]||[]).map(r=>typeof r=="string"?Qd(r):[Qd(r[0]),Qd(r[1])])}function dm(e,t,n){let r=Ye(e);cm(r);let i=[r[me.ExtraData][0],r[me.ExtraData][1]],o=vt(i,t)||[];return vt(o,n)||[]}function vt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new w(2304,!1)}function Qd(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var SD=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_a=Object.create(null),wD=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,MD=256;function um(e,t,n,r){let i=LD(e);ID(t),t=cn(n,t)||t;let s=[],a;for(;t;)if(a=wD.exec(t),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;t=p}else{s.push(t);break}let c=i.getTimezoneOffset();r&&(c=pm(r,c),i=FD(i,r));let l="";return s.forEach(p=>{let h=PD(p);l+=h?h(i,n,c):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function ID(e){if(e.length>MD)throw new w(2300,!1)}function xa(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function cn(e,t){let n=nm(e);if(_a[n]??=Object.create(null),_a[n][t])return _a[n][t];let r="";switch(t){case"shortDate":r=oo(e,Ke.Short);break;case"mediumDate":r=oo(e,Ke.Medium);break;case"longDate":r=oo(e,Ke.Long);break;case"fullDate":r=oo(e,Ke.Full);break;case"shortTime":r=so(e,Ke.Short);break;case"mediumTime":r=so(e,Ke.Medium);break;case"longTime":r=so(e,Ke.Long);break;case"fullTime":r=so(e,Ke.Full);break;case"short":let i=cn(e,"shortTime"),o=cn(e,"shortDate");r=Ca(ao(e,Ke.Short),[i,o]);break;case"medium":let s=cn(e,"mediumTime"),a=cn(e,"mediumDate");r=Ca(ao(e,Ke.Medium),[s,a]);break;case"long":let c=cn(e,"longTime"),l=cn(e,"longDate");r=Ca(ao(e,Ke.Long),[c,l]);break;case"full":let p=cn(e,"fullTime"),h=cn(e,"fullDate");r=Ca(ao(e,Ke.Full),[p,h]);break}return r&&(_a[n][t]=r),r}function Ca(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function At(e,t,n="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),o+s}function ND(e,t){return At(e,3).substring(0,t)}function ye(e,t,n=0,r=!1,i=!1){return function(o,s){let a=TD(e,o);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return ND(a,t);let c=Gt(s,qe.MinusSign);return At(a,t,c,r,i)}}function TD(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new w(2301,!1)}}function le(e,t,n=je.Format,r=!1){return function(i,o){return kD(i,o,e,t,n,r)}}function kD(e,t,n,r,i,o){switch(n){case 2:return om(t,i,r)[e.getMonth()];case 1:return im(t,i,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(o){let l=lm(t),p=dm(t,i,r),h=l.findIndex(v=>{if(Array.isArray(v)){let[m,_]=v,S=s>=m.hours&&a>=m.minutes,R=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(S&&R)return!0}else if(S||R)return!0}else if(v.hours===s&&v.minutes===a)return!0;return!1});if(h!==-1)return p[h]}return rm(t,i,r)[s<12?0:1];case 3:return sm(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new w(2302,!1)}}function ba(e){return function(t,n,r){let i=-1*r,o=Gt(n,qe.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+At(s,2,o)+At(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+At(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+At(s,2,o)+":"+At(Math.abs(i%60),2,o);case 3:return r===0?"Z":(i>=0?"+":"")+At(s,2,o)+":"+At(Math.abs(i%60),2,o);default:throw new w(2310,!1)}}}var OD=0,Ea=4;function AD(e){let t=xa(e,OD,1).getDay();return xa(e,0,1+(t<=Ea?Ea:Ea+7)-t)}function fm(e){let t=e.getDay(),n=t===0?-3:Ea-t;return xa(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Kd(e,t=!1){return function(n,r){let i;if(t){let o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{let o=fm(n),s=AD(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return At(i,e,Gt(r,qe.MinusSign))}}function Da(e,t=!1){return function(n,r){let o=fm(n).getFullYear();return At(o,e,Gt(r,qe.MinusSign),t)}}var Jd=Object.create(null);function PD(e){if(Jd[e])return Jd[e];let t;switch(e){case"G":case"GG":case"GGG":t=le(3,ae.Abbreviated);break;case"GGGG":t=le(3,ae.Wide);break;case"GGGGG":t=le(3,ae.Narrow);break;case"y":t=ye(0,1,0,!1,!0);break;case"yy":t=ye(0,2,0,!0,!0);break;case"yyy":t=ye(0,3,0,!1,!0);break;case"yyyy":t=ye(0,4,0,!1,!0);break;case"Y":t=Da(1);break;case"YY":t=Da(2,!0);break;case"YYY":t=Da(3);break;case"YYYY":t=Da(4);break;case"M":case"L":t=ye(1,1,1);break;case"MM":case"LL":t=ye(1,2,1);break;case"MMM":t=le(2,ae.Abbreviated);break;case"MMMM":t=le(2,ae.Wide);break;case"MMMMM":t=le(2,ae.Narrow);break;case"LLL":t=le(2,ae.Abbreviated,je.Standalone);break;case"LLLL":t=le(2,ae.Wide,je.Standalone);break;case"LLLLL":t=le(2,ae.Narrow,je.Standalone);break;case"w":t=Kd(1);break;case"ww":t=Kd(2);break;case"W":t=Kd(1,!0);break;case"d":t=ye(2,1);break;case"dd":t=ye(2,2);break;case"c":case"cc":t=ye(7,1);break;case"ccc":t=le(1,ae.Abbreviated,je.Standalone);break;case"cccc":t=le(1,ae.Wide,je.Standalone);break;case"ccccc":t=le(1,ae.Narrow,je.Standalone);break;case"cccccc":t=le(1,ae.Short,je.Standalone);break;case"E":case"EE":case"EEE":t=le(1,ae.Abbreviated);break;case"EEEE":t=le(1,ae.Wide);break;case"EEEEE":t=le(1,ae.Narrow);break;case"EEEEEE":t=le(1,ae.Short);break;case"a":case"aa":case"aaa":t=le(0,ae.Abbreviated);break;case"aaaa":t=le(0,ae.Wide);break;case"aaaaa":t=le(0,ae.Narrow);break;case"b":case"bb":case"bbb":t=le(0,ae.Abbreviated,je.Standalone,!0);break;case"bbbb":t=le(0,ae.Wide,je.Standalone,!0);break;case"bbbbb":t=le(0,ae.Narrow,je.Standalone,!0);break;case"B":case"BB":case"BBB":t=le(0,ae.Abbreviated,je.Format,!0);break;case"BBBB":t=le(0,ae.Wide,je.Format,!0);break;case"BBBBB":t=le(0,ae.Narrow,je.Format,!0);break;case"h":t=ye(3,1,-12);break;case"hh":t=ye(3,2,-12);break;case"H":t=ye(3,1);break;case"HH":t=ye(3,2);break;case"m":t=ye(4,1);break;case"mm":t=ye(4,2);break;case"s":t=ye(5,1);break;case"ss":t=ye(5,2);break;case"S":t=ye(6,1);break;case"SS":t=ye(6,2);break;case"SSS":t=ye(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ba(0);break;case"ZZZZZ":t=ba(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ba(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ba(2);break;default:return null}return Jd[e]=t,t}function pm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function RD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function FD(e,t,n){let i=e.getTimezoneOffset(),o=pm(t,i);return RD(e,-1*(o-i))}function LD(e){if(em(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(a=>+a);return xa(i,o-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(SD))return VD(r)}let t=new Date(e);if(!em(t))throw new w(2311,!1);return t}function VD(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(t,s,a,c,l),t}function em(e){return e instanceof Date&&!isNaN(e.valueOf())}var jD=/^(\d+)?\.((\d+)(-(\d+))?)?$/,tm=22,Sa=".",co="0",BD=";",HD=",",Xd="#";function UD(e,t,n,r,i,o,s=!1){let a="",c=!1;if(!isFinite(e))a=Gt(n,Number.isNaN(e)?qe.NaN:qe.Infinity);else{let l=GD(e);s&&(l=zD(l));let p=t.minInt,h=t.minFrac,v=t.maxFrac;if(o){let de=o.match(jD);if(de===null)throw new w(2306,!1);let Je=de[1],ot=de[3],Xe=de[5];Je!=null&&(p=eu(Je)),ot!=null&&(h=eu(ot)),Xe!=null?v=eu(Xe):ot!=null&&h>v&&(v=h);let st=100;if(p>st||h>st||v>st)throw new w(2306,!1)}WD(l,h,v);let m=l.digits,_=l.integerLen,S=l.exponent,R=[];for(c=m.every(de=>!de);_<p;_++)m.unshift(0);for(;_<0;_++)m.unshift(0);_>0?R=m.splice(_,m.length):(R=m,m=[0]);let L=[];for(m.length>=t.lgSize&&L.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)L.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&L.unshift(m.join("")),a=L.join(Gt(n,r)),R.length&&(a+=Gt(n,i)+R.join("")),S&&(a+=Gt(n,qe.Exponential)+"+"+S)}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function gm(e,t,n){let r=am(t,tu.Decimal),i=$D(r,Gt(t,qe.MinusSign));return UD(e,i,t,qe.Group,qe.Decimal,n)}function $D(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(BD),i=r[0],o=r[1],s=i.indexOf(Sa)!==-1?i.split(Sa):[i.substring(0,i.lastIndexOf(co)+1),i.substring(i.lastIndexOf(co)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Xd));for(let p=0;p<c.length;p++){let h=c.charAt(p);h===co?n.minFrac=n.maxFrac=p+1:h===Xd?n.maxFrac=p+1:n.posSuf+=h}let l=a.split(HD);if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,o){let p=i.length-n.posPre.length-n.posSuf.length,h=o.indexOf(Xd);n.negPre=o.substring(0,h).replace(/'/g,""),n.negSuf=o.slice(h+p).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function zD(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function GD(e){let t=Math.abs(e)+"",n=0,r,i,o,s,a;for((i=t.indexOf(Sa))>-1&&(t=t.replace(Sa,"")),(o=t.search(/e/i))>0?(i<0&&(i=o),i+=+t.slice(o+1),t=t.substring(0,o)):i<0&&(i=t.length),o=0;t.charAt(o)===co;o++);if(o===(a=t.length))r=[0],i=1;else{for(a--;t.charAt(a)===co;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(t.charAt(o))}return i>tm&&(r=r.splice(0,tm-1),n=i-1,i=1),{digits:r,exponent:n,integerLen:i}}function WD(e,t,n){if(t>n)throw new w(2307,!1);let r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let h=s;h<r.length;h++)r[h]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let h=1;h<s;h++)r[h]=0}if(a>=5)if(s-1<0){for(let h=0;h>s;h--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let c=o!==0,l=t+e.integerLen,p=r.reduceRight(function(h,v,m,_){return v=v+h,_[m]=v<10?v:v-10,c&&(_[m]===0&&m>=l?_.pop():c=!1),v>=10?1:0},0);p&&(r.unshift(p),e.integerLen++)}function eu(e){let t=parseInt(e);if(isNaN(t))throw new w(2305,!1);return t}function hm(e,t){return new w(2100,!1)}var qD="mediumDate",mm=new A(""),vm=new A(""),nu=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,o){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??qD,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return um(n,s,o||this.locale,a)}catch(s){throw hm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(X(Qr,16),X(mm,24),X(vm,24))};static \u0275pipe=fa({name:"date",type:e,pure:!0})}return e})();var lo=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,i){if(!ZD(n))return null;i||=this._locale;try{let o=YD(n);return gm(o,i,r)}catch(o){throw hm(e,o.message)}}static \u0275fac=function(r){return new(r||e)(X(Qr,16))};static \u0275pipe=fa({name:"number",type:e,pure:!0})}return e})();function ZD(e){return!(e==null||e===""||e!==e)}function YD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new w(2309,!1);return e}var wn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Dn({type:e});static \u0275inj=Xt({})}return e})();function uo(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()!==t)continue;let s=o;try{s=decodeURIComponent(o)}catch{}return s.length>1&&s[0]==='"'&&s[s.length-1]==='"'&&(s=s.slice(1,-1)),s}return null}var ym="browser";var fo=class{_doc;constructor(t){this._doc=t}manager},wa=(()=>{class e extends fo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||e)(G(Ve))};static \u0275prov=ne({token:e,factory:e.\u0275fac})}return e})(),Na=new A(""),au=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let i=n.filter(s=>!(s instanceof wa));this._plugins=i.slice().reverse();let o=n.find(s=>s instanceof wa);o&&this._plugins.push(o)}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new w(-5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(G(Na),G(Ee))};static \u0275prov=ne({token:e,factory:e.\u0275fac})}return e})(),iu="ng-app-id";function _m(e){for(let t of e)t.remove()}function Cm(e,t){let n=t.createElement("style");return n.textContent=e,n}function JD(e,t,n,r){let i=e.head?.querySelectorAll(`style[${iu}="${t}"],link[${iu}="${t}"]`);if(!i||i.length===0)return!1;for(let o of i)o.removeAttribute(iu),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]});return!0}function su(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var cu=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,JD(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,Cm);r?.forEach(i=>this.addUsage(i,this.external,su))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(_m(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])_m(n);this.hosts.clear()}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,Cm(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,su(r,this.doc)))}}removeHost(n){this.hosts.delete(n);for(let r of[...this.inline.values(),...this.external.values()]){let i=[];for(let o of r.elements)o.parentNode===n?o.remove():i.push(o);r.elements=i}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(G(Ve),G(Oi),G(Pi,8),G(Ai))};static \u0275prov=ne({token:e,factory:e.\u0275fac})}return e})(),ou={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"},lu=/%COMP%/g;var Dm="%COMP%",XD=`_nghost-${Dm}`,eE=`_ngcontent-${Dm}`,tE=!0,nE=new A("",{factory:()=>tE}),rE=new A("");function iE(e){return eE.replace(lu,e)}function oE(e){return XD.replace(lu,e)}function Em(e,t){return t.map(n=>n.replace(lu,e))}var du=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(n,r,i,o,s,a,c=null,l=null,p=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.cssVarNamespace=p??"",this.defaultRenderer=new po(n,s,a,this.tracingService,this.cssVarNamespace)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof Ia?i.applyToHost(n):i instanceof go&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(r.encapsulation){case Mt.Emulated:o=new Ia(c,l,r,this.appId,p,s,a,h,this.cssVarNamespace);break;case Mt.ShadowDom:return new Ma(c,n,r,s,a,this.nonce,h,this.cssVarNamespace,l);case Mt.ExperimentalIsolatedShadowDom:return new Ma(c,n,r,s,a,this.nonce,h,this.cssVarNamespace);default:o=new go(c,l,r,p,s,a,h,this.cssVarNamespace);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(G(au),G(ar),G(Oi),G(nE),G(Ve),G(Ee),G(Pi),G(sn,8),G(rE,8))};static \u0275prov=ne({token:e,factory:e.\u0275fac})}return e})(),po=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,i,o=""){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=i,this.cssVarNamespace=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(ou[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(bm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let i=bm(t)?t.content:t;if(r!=null&&r.parentNode!==i)throw new w(-5106,!1);i.insertBefore(n,r)}}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new w(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=ou[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=ou[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){let o=n.startsWith("--");o&&(n=n.replace("%NS%",this.cssVarNamespace)),o||i&($t.DashCase|$t.Important)?t.style.setProperty(n,r,i&$t.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){let i=n.startsWith("--");i&&(n=n.replace("%NS%",this.cssVarNamespace)),i||r&$t.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,i){if(typeof t=="string"&&(t=Ot().getGlobalEventTarget(this.doc,t),!t))throw new w(-5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,n,o)),this.eventManager.addEventListener(t,n,o,i)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function bm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ma=class extends po{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,i,o,s,a,c,l){super(t,i,o,a,c),this.hostEl=n,this.sharedStylesHost=l,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let p=r.styles;p=Em(r.id,p).map(v=>v.replace(/%NS%/g,c));for(let v of p){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=v,this.shadowRoot.appendChild(m)}let h=r.getExternalStyles?.();if(h)for(let v of h){let m=su(v,i);s&&m.setAttribute("nonce",s),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},go=class extends po{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,i,o,s,a,c,l){super(t,o,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i;let p=r.styles,h=l?Em(l,p):p;this.styles=h.map(v=>v.replace(/%NS%/g,c)),this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Cn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ia=class extends go{contentAttr;hostAttr;constructor(t,n,r,i,o,s,a,c,l){let p=i+"-"+r.id;super(t,n,r,o,s,a,c,l,p),this.contentAttr=iE(p),this.hostAttr=oE(p)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ta=class e extends io{supportsDOMEvents=!0;static makeCurrent(){Yd(new e)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=sE();return n==null?null:aE(n)}resetBaseElement(){ho=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return uo(document.cookie,t)}},ho=null;function sE(){return ho=ho||document.head.querySelector("base"),ho?ho.getAttribute("href"):null}function aE(e){return new URL(e,document.baseURI).pathname}var xm=["alt","control","meta","shift"],cE={"\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"},lE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Sm=(()=>{class e extends fo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ot().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),xm.forEach(l=>{let p=r.indexOf(l);p>-1&&(r.splice(p,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=cE[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),xm.forEach(s=>{if(s!==i){let a=lE[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(G(Ve))};static \u0275prov=ne({token:e,factory:e.\u0275fac})}return e})();async function uu(e,t){return Qh(dE(e,t))}function dE(e,t){return{platformRef:t?.platformRef,appProviders:[...hE,...e?.providers??[]],platformProviders:gE}}function uE(){Ta.makeCurrent()}function fE(){return new ct}function pE(){return fd(document),document}var gE=[{provide:Ai,useValue:ym},{provide:Os,useValue:uE,multi:!0},{provide:Ve,useFactory:pE}];var hE=[{provide:Ii,useValue:"root"},{provide:ct,useFactory:fE},{provide:Na,useClass:wa,multi:!0},{provide:Na,useClass:Sm,multi:!0},du,{provide:ar,useClass:cu},{provide:cu,useExisting:ar},au,{provide:rr,useExisting:du},[]];var dn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=n.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[n,r]of t.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,t.normalizedNames.get(n))}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=t.op==="a"?(this.headers.get(n)||[]).slice():[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(o===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(o)?o:[o],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Oa=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Aa=class{encodeKey(t){return wm(t)}encodeValue(t){return wm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function mE(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var vE=/%(\d[a-f0-9])/gi,yE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wm(e){return encodeURIComponent(e).replace(vE,(t,n)=>yE[n]??t)}function ka(e){return`${e}`}var ln=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Aa,t.fromString){if(t.fromObject)throw new w(2805,!1);this.map=mE(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(ka):[ka(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(ka(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),i=r.indexOf(ka(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};function _E(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Mm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Im(e){return typeof Blob<"u"&&e instanceof Blob}function Nm(e){return typeof FormData<"u"&&e instanceof FormData}function CE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var fu="Content-Type",Tm="Accept",Am="text/plain",Pm="application/json",bE=`${Pm}, ${Am}, */*`,Kr=class e{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(t,n,r,i){this.url=n,this.method=t.toUpperCase();let o;if(_E(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,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 w(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 dn,this.context??=new Oa,!this.params)this.params=new ln,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n,c="",l=n.indexOf("#");l!==-1&&(c=n.substring(l),a=n.substring(0,l));let p=a.indexOf("?"),h=p===-1?"?":p<a.length-1?"&":"";this.urlWithParams=a+h+s+c}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Mm(this.body)||Im(this.body)||Nm(this.body)||CE(this.body)?this.body:this.body instanceof ln?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||Nm(this.body)?null:Im(this.body)?this.body.type||null:Mm(this.body)?null:typeof this.body=="string"?Am:this.body instanceof ln?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Pm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,p=t.credentials||this.credentials,h=t.referrer??this.referrer,v=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,_=t.transferCache??this.transferCache,S=t.timeout??this.timeout,R=t.body!==void 0?t.body:this.body,L=t.withCredentials??this.withCredentials,de=t.reportProgress??this.reportProgress,Je=t.reportUploadProgress??this.reportUploadProgress,ot=t.reportDownloadProgress??this.reportDownloadProgress,Xe=t.headers||this.headers,st=t.params||this.params,Zt=t.context??this.context;return t.setHeaders!==void 0&&(Xe=Object.keys(t.setHeaders).reduce((Be,Pt)=>Be.set(Pt,t.setHeaders[Pt]),Xe)),t.setParams&&(st=Object.keys(t.setParams).reduce((Be,Pt)=>Be.set(Pt,t.setParams[Pt]),st)),new e(n,r,R,{params:st,headers:Xe,context:Zt,reportProgress:de,reportUploadProgress:Je,reportDownloadProgress:ot,responseType:i,withCredentials:L,transferCache:_,keepalive:o,cache:a,priority:s,timeout:S,mode:c,redirect:l,credentials:p,referrer:h,integrity:v,referrerPolicy:m})}},fr=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(fr||{}),Jr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new dn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Pa=class e extends Jr{constructor(t={}){super(t)}type=fr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},mo=class e extends Jr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=fr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},ur=class extends Jr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},DE=200;var EE=/^\)\]\}',?\n/,Dj=1024*1024,Rm=new A("",{factory:()=>null}),Xr=(()=>{class e{fetchImpl=x(gu,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=x(Ee);destroyRef=x(fe);maxResponseSize=x(Rm);handle(n){return new K(r=>{let i=new AbortController,o=!1,s={next:c=>{c.type===fr.Response&&(o=!0),r.next(c)},error:c=>{o=!0,r.error(c)},complete:()=>{o=!0,r.complete()}};this.doRequest(n,i.signal,s).then(hu,c=>s.error(new ur({error:c})));let a;return n.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{i.signal.aborted||i.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{a!==void 0&&clearTimeout(a),!o&&!i.signal.aborted&&i.abort()}})}async doRequest(n,r,i){let o=this.createRequestInit(n),s;try{let R=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,B({signal:r},o)));xE(R),i.next({type:fr.Sent}),s=await R}catch(R){i.error(new ur({error:R,status:R.status??0,statusText:R.statusText,url:n.urlWithParams,headers:R.headers}));return}let a=new dn(s.headers),c=s.statusText,l=s.url||n.urlWithParams,p=s.status,h=null,v=n.reportProgress||n.reportDownloadProgress;if(v&&i.next(new Pa({headers:a,status:p,statusText:c,url:l})),s.body){let R=s.headers.get(fu)??"",L=s.headers.get("content-length"),de=L!==null?Number(L):NaN;this.maxResponseSize!==null&&Number.isFinite(de)&&de>this.maxResponseSize&&(await s.body.cancel(),km(this.maxResponseSize));let Je=[],ot=s.body.getReader(),Xe=0,st,Zt,Be=typeof Zone<"u"&&Zone.current,Pt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await ot.cancel(),Pt=!0;break}let{done:tc,value:nc}=await ot.read();if(tc)break;if(Je.push(nc),Xe+=nc.length,this.maxResponseSize!==null&&Xe>this.maxResponseSize&&(await ot.cancel(),km(this.maxResponseSize)),v){Zt=n.responseType==="text"?(Zt??"")+(st??=Om(R)).decode(nc,{stream:!0}):void 0;let Hu=()=>i.next({type:fr.DownloadProgress,total:Number.isFinite(de)?de:void 0,loaded:Xe,partialText:Zt});Be?Be.run(Hu):Hu()}}}),Pt){i.complete();return}let kv=this.concatChunks(Je,Xe);try{h=this.parseBody(n,kv,R,p)}catch(tc){i.error(new ur({error:tc,headers:new dn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}p===0&&(p=h?DE:0);let m=p>=200&&p<300,_=s.redirected,S=s.type;m?(i.next(new mo({body:h,headers:a,status:p,statusText:c,url:l,redirected:_,responseType:S})),i.complete()):i.error(new ur({error:h,headers:a,status:p,statusText:c,url:l,redirected:_,responseType:S}))}parseBody(n,r,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(EE,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(o<200||o>=300)return s;throw a}case"text":return Om(i).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new w(2824,!1);let r={},i;if(i=n.credentials,n.withCredentials&&(i="include"),n.headers.forEach((o,s)=>r[o]=s.join(",")),n.headers.has(Tm)||(r[Tm]=bE),!n.headers.has(fu)){let o=n.detectContentTypeHeader();o!==null&&(r[fu]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:i,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let i=new Uint8Array(r),o=0;for(let s of n)i.set(s,o),o+=s.length;return i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=on({token:e,factory:e.\u0275fac})}return e})(),gu=class{};function hu(){}function xE(e){e.then(hu,hu)}function km(e){throw new w(-2825,!1)}var SE=/charset=\s*["']?([^;"'\s]+)["']?/i;function Om(e){let t=e.match(SE);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var wE=new A("",{factory:()=>!0}),ME="XSRF-TOKEN",IE=new A("",{factory:()=>ME}),NE="X-XSRF-TOKEN",TE=new A("",{factory:()=>NE}),kE=(()=>{class e{cookieName=x(IE);doc=x(Ve);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=uo(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=on({token:e,factory:e.\u0275fac})}return e})(),Fm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=ne({token:e,factory:function(r){let i=null;return r?i=new(r||e):i=G(kE),i},providedIn:"root"})}return e})();function Lm(e,t){if(!x(wE)||e.method==="GET"||e.method==="HEAD")return t(e);try{let i=x(ya).href,{origin:o}=new URL(i),{origin:s}=new URL(e.url,o);if(o!==s)return t(e)}catch{return t(e)}let n=x(Fm).getToken(),r=x(TE);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function OE(e,t){return t(e)}function AE(e,t,n){return(r,i)=>kr(n,()=>t(r,o=>e(o,i)))}var mu=new A("",{factory:()=>[Lm]}),Vm=new A(""),jm=new A("",{factory:()=>!0});var Fa=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=ne({token:e,factory:function(r){let i=null;return r?i=new(r||e):i=G(Xr),i},providedIn:"root"})}return e})();var Ra=(()=>{class e{backend;injector;chain=null;pendingTasks=x(jr);contributeToStability=x(jm);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let i=this.injector.get(La,null,{skipSelf:!0}),o=i!==null&&this.backend===i,s=this.injector.get(Vm,[],o?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(mu),...s]));this.chain=a.reduceRight((c,l)=>AE(c,l,this.injector),OE)}let r=this.chain;if(this.contributeToStability){let i=this.pendingTasks.add();return Qe(()=>r(n,o=>this.backend.handle(o))).pipe(Sc(i))}else return Qe(()=>r(n,i=>this.backend.handle(i)))}static \u0275fac=function(r){return new(r||e)(G(Fa),G(ze))};static \u0275prov=ne({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),La=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=ne({token:e,factory:function(r){let i=null;return r?i=new(r||e):i=G(Ra),i},providedIn:"root"})}return e})();function pu(e,t){return B({body:t},e)}var Va=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Kr)o=n;else{let c;i.headers instanceof dn?c=i.headers:c=new dn(i.headers);let l;i.params&&(i.params instanceof ln?l=i.params:l=new ln({fromObject:i.params})),o=new Kr(n,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,reportUploadProgress:i.reportUploadProgress,reportDownloadProgress:i.reportDownloadProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,timeout:i.timeout})}let s=Cc(o).pipe(xc(c=>this.handler.handle(c)));if(n instanceof Kr||i.observe==="events")return s;let a=s.pipe(Ec(c=>c instanceof mo));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(we(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new w(2806,!1);return c.body}));case"blob":return a.pipe(we(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new w(2807,!1);return c.body}));case"text":return a.pipe(we(c=>{if(c.body!==null&&typeof c.body!="string")throw new w(2808,!1);return c.body}));default:return a.pipe(we(c=>c.body))}case"response":return a;default:throw new w(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ln().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,pu(i,r))}post(n,r,i={}){return this.request("POST",n,pu(i,r))}put(n,r,i={}){return this.request("PUT",n,pu(i,r))}static \u0275fac=function(r){return new(r||e)(G(La))};static \u0275prov=ne({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ja=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e[e.Xhr=7]="Xhr",e})(ja||{});function Bm(e,t){return{\u0275kind:e,\u0275providers:t}}function vu(...e){let t=[Va,Xr,Ra,{provide:La,useExisting:Ra},{provide:Fa,useFactory:()=>x(Xr)},{provide:mu,useValue:Lm,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Nr(t)}function yu(e){return Bm(ja.Interceptors,e.map(t=>({provide:mu,useValue:t,multi:!0})))}function _u(){return Bm(ja.Fetch,[Xr,{provide:Fa,useExisting:Xr}])}var Hm={apiBase:""},ei=Hm,Um=!1;function PE(){if(!Um)throw new Error(`Aastrika: configure() was never called. A host must supply at least apiBase:
6
6
 
7
7
  import { configure } from '@aastrika/ai-elements';
8
8
  configure({ apiBase: 'https://api.example.org/ai-studio' });
9
9
 
10
- Use an empty apiBase only when the service is same-origin.`)}function Hm(e){if(typeof e?.apiBase!="string")throw new Error(`Aastrika: configure() needs an apiBase string, received ${typeof e?.apiBase}. Pass an empty string for same-origin.`);Jr=j(j({},jm),e),Bm=!0}function Um(){return Jr}var $m={get apiBase(){return OE(),Jr.apiBase},get getAuthHeaders(){return Jr.getAuthHeaders},get creator(){return Jr.creator},get onError(){return Jr.onError}};var Xr=new O("AASTRIKA_CONFIG");var Ut=class e{http=b(Fa);config=b(Xr);base=this.config.apiBase;studio=`${this.base}/v1/studio`;assessment=`${this.base}/v1/quiz`;usage=`${this.base}/v1/usage`;auth=`${this.base}/auth`;currentUser=A(null);creator(){return this.config.creator?.()??this.currentUser()?.username??null}me(){return this.http.get(`${this.auth}/me`)}login(t,n){return this.http.post(`${this.auth}/login`,{username:t,password:n})}logout(){return this.http.post(`${this.auth}/logout`,{})}voices(){return this.http.get(`${this.studio}/list-voices`)}uploadDoc(t){let n=new FormData;return n.append("file",t),n.append("kind","document"),this.http.post(`${this.studio}/upload`,n)}planEdits(t){return this.http.post(`${this.studio}/generate-plan`,t)}plan(t){return this.http.post(`${this.studio}/generate-plan`,t)}uploadReference(t){let n=new FormData;return n.append("file",t),n.append("kind","reference-video"),this.http.post(`${this.studio}/upload`,n)}uploadImage(t){let n=new FormData;return n.append("file",t),n.append("kind","image"),this.http.post(`${this.studio}/upload`,n)}reviseplan(t,n){return this.http.patch(`${this.studio}/revise-plan/${t}`,n)}generateVideo(t,n={}){return this.http.post(`${this.studio}/generate-video/${t}`,n)}studioJobs(){return this.http.get(`${this.studio}/list-videos`)}job(t){return this.http.get(`${this.studio}/get-video/${t}`)}downloadVideoUrl(t){return this.http.get(`${this.studio}/download-video/${t}?as=url`)}downloadVideoHref(t){return`${this.studio}/download-video/${t}`}deleteVideo(t){return this.http.delete(`${this.studio}/delete-video/${t}`)}languages(){return this.http.get(`${this.assessment}/languages`)}assessmentJobs(){return this.http.get(`${this.assessment}/list`)}generateAssessment(t){return this.http.post(`${this.assessment}/generate`,t)}assessmentJob(t){return this.http.get(`${this.assessment}/${t}`)}readSources(t,n,r){let o=new FormData;for(let i of t)o.append("files",i);return n.trim()&&o.append("links",n),r&&o.append("language",r),this.http.post(`${this.assessment}/upload`,o)}saveAssessment(t,n){return this.http.patch(`${this.assessment}/update/${t}`,{assessment:n})}exportUrl(t,n="xlsx",r){return this.http.get(`${this.assessment}/export/${t}${zm(n,r)}&as=url`)}exportHref(t,n="xlsx",r){return`${this.assessment}/export/${t}${zm(n,r)}`}deleteQuiz(t){return this.http.delete(`${this.assessment}/delete/${t}`)}usageReport(t={}){let n=Object.fromEntries(Object.entries(t).filter(([,r])=>r!=null&&r!==""));return this.http.post(`${this.usage}/get-report`,n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})};function vd(e){return e.video===!0}function zm(e,t){let n=new URLSearchParams({format:e});return t&&n.set("language",t),`?${n}`}var Gm=(e,t)=>{let n=b(Xr),r=b(Ut).creator(),o=i=>!r||!i.body||typeof i.body!="object"||i.body instanceof FormData||Array.isArray(i.body)||"creator"in i.body?i:i.clone({body:U(j({},i.body),{creator:r})});if(!n.getAuthHeaders){let i=o(e);return t(i)}return Gt(Promise.resolve(n.getAuthHeaders())).pipe(Fn(i=>t(o(e).clone({setHeaders:i}))))};var kE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function RE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function PE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var _d;function FE(e,t){if(!_d){let n=Element.prototype;_d=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?_d.call(e,t):!1}function LE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[RE(r)]=[n,o]}),t}function VE(e,t){return ni(e).inputs}function jE(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],l=BE(a,t,o);l!==-1&&r[l].push(a)}return r}function BE(e,t,n){let r=n;return PE(e)&&t.some((o,i)=>o!=="*"&&FE(e,o)?(r=i,!0):!1),r}var HE=10,Cd=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=ni(t);for(let n of this.componentMirror.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new bd(this.component,t,this.inputMap)}},bd=class{component;injector;inputMap;eventEmitters=new Dr(1);events=this.eventEmitters.pipe(Fn(t=>Cl(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.component=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(De),this.appRef=this.injector.get(Dn),this.cdScheduler=n.get(mt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=kE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},HE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),Iu(this.componentRef.hostView)&&(Mu(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Pe.create({providers:[],parent:this.injector}),r=jE(t,ni(this.component).ngContentSelectors);this.componentRef=Yh(this.component,{environmentInjector:this.injector,elementInjector:n,hostElement:t,projectableNodes:r}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=ni(this.component).outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new Q(s=>{let a=i.subscribe(l=>s.next({name:o,value:l}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Dd=class extends HTMLElement{ngElementEventsSubscription=null};function Wm(e,t){let n=VE(e),r=t.strategyFactory||new Cd(e),o=LE(n);class i extends Dd{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:c})=>{if(!Object.hasOwn(this,l))return;let p=this[l];delete this[l],a.setInputValue(l,p,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,p){let[h,y]=o[a];this.ngElementStrategy.setInputValue(h,c,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a,isSignal:l})=>{Object.defineProperty(i.prototype,s,{get(){let c=this.ngElementStrategy.getInputValue(s);return l&&Qn(c)?c():c},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}function qm(e,t){return typeof customElements>"u"||customElements.get(e.tag)?!1:(customElements.define(e.tag,Wm(e.component,{injector:t})),!0)}function eo(e){e||(e=b(de));let t=new Q(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(wl(t))}var ry=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(J(Bt),J(xt))};static \u0275dir=_e({type:e})}return e})(),Ci=(()=>{class e extends ry{static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,features:[ze]})}return e})(),oo=new O(""),UE={provide:oo,useExisting:$e(()=>Td),multi:!0},Td=(()=>{class e extends Ci{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[dt([UE]),ze]})}return e})(),$E={provide:oo,useExisting:$e(()=>In),multi:!0};function zE(){let e=Mt()?Mt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var GE=new O(""),In=(()=>{class e extends ry{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!zE())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(J(Bt),J(xt),J(GE,8))};static \u0275dir=_e({type:e,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(r,o){r&1&&N("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[dt([$E]),ze]})}return e})();function Nd(e){return e==null||Ad(e)===0}function Ad(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var bi=new O(""),WE=new O(""),qE=/^(?=.{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])?)*$/,Ed=class{static min(t){return oy(t)}static max(t){return iy(t)}static required(t){return sy(t)}static requiredTrue(t){return ZE(t)}static email(t){return YE(t)}static minLength(t){return QE(t)}static maxLength(t){return ay(t)}static pattern(t){return KE(t)}static nullValidator(t){return ja()}static compose(t){return py(t)}static composeAsync(t){return hy(t)}};function oy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function iy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function sy(e){return Nd(e.value)?{required:!0}:null}function ZE(e){return e.value===!0?null:{required:!0}}function YE(e){return Nd(e.value)||qE.test(e.value)?null:{email:!0}}function QE(e){return t=>{let n=t.value?.length??Ad(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function ay(e){return t=>{let n=t.value?.length??Ad(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function KE(e){if(!e)return ja;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Nd(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function ja(e){return null}function ly(e){return e!=null}function cy(e){return Gr(e)?Gt(e):e}function uy(e){let t={};return e.forEach(n=>{t=n!=null?j(j({},t),n):t}),Object.keys(t).length===0?null:t}function dy(e,t){return t.map(n=>n(e))}function JE(e){return!e.validate}function fy(e){return e.map(t=>JE(t)?t:n=>t.validate(n))}function py(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){return uy(dy(n,t))}}function gy(e){return e!=null?py(fy(e)):null}function hy(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){let r=dy(n,t).map(cy);return _l(r).pipe(xe(uy))}}function my(e){return e!=null?hy(fy(e)):null}function Zm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function XE(e){return e._rawValidators}function ew(e){return e._rawAsyncValidators}function wd(e){return e?Array.isArray(e)?e:[e]:[]}function Ba(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ym(e,t){let n=wd(t);return wd(e).forEach(o=>{Ba(n,o)||n.push(o)}),n}function Qm(e,t){return wd(t).filter(n=>!Ba(e,n))}var Ha=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(t){this._rawValidators=t||[],this._composedValidatorFn=gy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=my(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control?.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},xd=class extends Ha{name;get formDirective(){return null}get path(){return null}};var hi="VALID",Va="INVALID",to="PENDING",mi="DISABLED",dr=class{},Ua=class extends dr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},yi=class extends dr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},vi=class extends dr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},no=class extends dr{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var _i=class extends dr{source;constructor(t){super(),this.source=t}};function tw(e){return($a(e)?e.validators:e)||null}function nw(e){return Array.isArray(e)?gy(e):e||null}function rw(e,t){return($a(t)?t.asyncValidators:e)||null}function ow(e){return Array.isArray(e)?my(e):e||null}function $a(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Sd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=A(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ze(this.statusReactive)}set status(t){Ze(()=>this.statusReactive.set(t))}_status=W(()=>this.statusReactive());statusReactive=A(void 0);get valid(){return this.status===hi}get invalid(){return this.status===Va}get pending(){return this.status===to}get disabled(){return this.status===mi}get enabled(){return this.status!==mi}errors;get pristine(){return Ze(this.pristineReactive)}set pristine(t){Ze(()=>this.pristineReactive.set(t))}_pristine=W(()=>this.pristineReactive());pristineReactive=A(!0);get dirty(){return!this.pristine}get touched(){return Ze(this.touchedReactive)}set touched(t){Ze(()=>this.touchedReactive.set(t))}_touched=W(()=>this.touchedReactive());touchedReactive=A(!1);get untouched(){return!this.touched}_events=new ke;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ym(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ym(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Qm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Qm(t,this._rawAsyncValidators))}hasValidator(t){return Ba(this._rawValidators,t)}hasAsyncValidator(t){return Ba(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(U(j({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new vi(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new vi(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(U(j({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new yi(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new yi(!0,r))}markAsPending(t={}){this.status=to;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new no(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(U(j({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=mi,this.errors=null,this._forEachChild(o=>{o.disable(U(j({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ua(this.value,r)),this._events.next(new no(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(j({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=hi,this._forEachChild(r=>{r.enable(U(j({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(U(j({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},n),this._parent?._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hi||this.status===to)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ua(this.value,n)),this._events.next(new no(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(U(j({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?mi:hi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=to,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=cy(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r?.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new no(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?mi:this.errors?Va:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(to)?to:this._anyControlsHaveStatus(Va)?Va:hi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,t.onlySelf||this._parent?._updatePristine(t,n),o&&this._events.next(new yi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new vi(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){$a(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=nw(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=ow(this._rawAsyncValidators)}_updateHasRequiredValidator(){Ze(()=>this._hasRequired.set(this.hasValidator(Ed.required)))}};function iw(e){return e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"}function sw(e,t,n,r){switch(n){case"name":e.setAttribute(t,n,r);break;case"disabled":case"readonly":case"required":r?e.setAttribute(t,n,""):e.removeAttribute(t,n);break;case"max":case"min":case"minLength":case"maxLength":r!==void 0?e.setAttribute(t,n,r.toString()):e.removeAttribute(t,n);break}}var Id=class{kind;context;control;message;constructor({kind:t,context:n,control:r}){this.kind=t,this.context=n,this.control=r}};function aw(e){return typeof e=="number"?e:parseInt(e,10)}function yy(e){return typeof e=="number"?e:parseFloat(e)}var za=(()=>{class e{_validator=ja;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):ja,this._onChange?.()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=_e({type:e,features:[or]})}return e})(),lw={provide:bi,useExisting:$e(()=>Od),multi:!0},Od=(()=>{class e extends za{max;inputName="max";normalizeInput=n=>yy(n);createValidator=n=>iy(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tt("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[dt([lw]),ze]})}return e})(),cw={provide:bi,useExisting:$e(()=>kd),multi:!0},kd=(()=>{class e extends za{min;inputName="min";normalizeInput=n=>yy(n);createValidator=n=>oy(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tt("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[dt([cw]),ze]})}return e})(),uw={provide:bi,useExisting:$e(()=>vy),multi:!0};var vy=(()=>{class e extends za{required;inputName="required";normalizeInput=Wu;createValidator=n=>sy;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&tt("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[dt([uw]),ze]})}return e})();var dw={provide:bi,useExisting:$e(()=>Rd),multi:!0},Rd=(()=>{class e extends za{maxlength;inputName="maxlength";normalizeInput=n=>aw(n);createValidator=n=>ay(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[dt([dw]),ze]})}return e})();var fw=new O(""),_y=new O("",{factory:()=>Pd}),Pd="always";function pw(e,t){return[...t.path,e]}function Km(e,t,n=Pd){hw(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),mw(e,t),vw(e,t),yw(e,t),gw(e,t)}function Jm(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function gw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function hw(e,t){let n=XE(e);t.validator!==null?e.setValidators(Zm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=ew(e);t.asyncValidator!==null?e.setAsyncValidators(Zm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Jm(t._rawValidators,o),Jm(t._rawAsyncValidators,o)}function mw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Cy(e,t)})}function yw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Cy(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Cy(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function vw(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function _w(e,t){if(!Object.hasOwn(e,"model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Cw(e){return Object.getPrototypeOf(e.constructor)===Ci}function bw(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===In?n=i:Cw(i)?r=i:o=i}),o||r||n||null}var Dw={provide:fw,useFactory:()=>{let e=b(ro,{self:!0});return{setParseErrors:t=>{e.setParseErrorSource(t)},set onReset(t){e.onReset=t}}}},ro=class extends Ha{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(n=>{n instanceof _i&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=bw(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,n,r){super(),this.injector=t,this.renderer=n,this.rawValueAccessors=r,this.injector?.get(de)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(ti);if(!this.control||!t)return;let n=t.markForCheck.bind(t);this.subscription=new we,this.subscription.add(this.control.valueChanges.subscribe(n)),this.subscription.add(this.control.statusChanges.subscribe(n)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof _i&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=!0,t.listenToCustomControlModel(o=>{this.control?.setValue(o,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(o)}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=iw(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(o=>o instanceof vy))}ngControlUpdate(t,n){if(!this.isCustomControlBased)return;let r=this.control,o=this.customControlBindings;Object.is(o.value,r.value)||(o.value=r.value,t.setCustomControlModelInput(r.value)),this.bindControlProperty(t,o,"touched",r.touched),this.bindControlProperty(t,o,"dirty",r.dirty),this.bindControlProperty(t,o,"valid",r.valid),this.bindControlProperty(t,o,"invalid",r.invalid),this.bindControlProperty(t,o,"pending",r.pending),this.bindControlProperty(t,o,"disabled",r.disabled),this.shouldBindRequired&&this.bindControlProperty(t,o,"required",this.isRequired);let i=r.errors;if(o.errors!==i){o.errors=i;let s=this._convertErrors(i);t.setInputOnDirectives("errors",s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(t,n,r,o){if(n[r]===o)return;n[r]=o;let i=t.setInputOnDirectives(r,o);this.isNativeFormElement&&!i&&(r==="disabled"||r==="required")&&this.renderer&&sw(this.renderer,t.nativeElement,r,o)}_convertErrors(t){if(t===null)return[];let n=this.control;return Object.entries(t).map(([r,o])=>new Id({context:o,kind:r,control:n}))}setParseErrorSource(t){if(t===void 0)return;let n=null,r=W(()=>{let o=t();return o.length===0?null:o.reduce((i,s)=>(i[s.kind]=s,i),{})});this.parseErrorsValidator=(()=>n).bind(this),Ct(()=>{n=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:!1}))}},Md=class{_cd;constructor(t){this._cd=t}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 io=(()=>{class e extends Md{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(J(ro,2))};static \u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&le("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ze]})}return e})();function Xm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ey(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Ew=class extends Sd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(tw(n),rw(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$a(n)&&(n.nonNullable||n.initialValueIsDefault)&&(ey(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){Ze(()=>{this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)})}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new _i(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Xm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Xm(this._onDisabledChange,t)}_forEachChild(t){}_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(t){ey(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var ww={provide:ro,useExisting:$e(()=>fr)},ty=Promise.resolve(),fr=(()=>{class e extends ro{_changeDetectorRef;callSetDisabledState;control=new Ew;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Re;constructor(n,r,o,i,s,a,l,c){super(l,c,i),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnChanges(n){if(this._registered,this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),_w(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(n){super.ngControlCreate(n)}\u0275ngControlUpdate(n){super.ngControlUpdate(n,!1)}get shouldBindRequired(){return!1}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_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,Km(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(n){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Km(this.control,this,n))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ty.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Wu(r);ty.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?pw(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(J(xd,9),J(bi,10),J(WE,10),J(oo,10),J(ti,8),J(_y,8),J(Pe,8),J(Bt,8))};static \u0275dir=_e({type:e,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:[dt([ww,Dw]),ze,or,Fu(null)]})}return e})();var xw={provide:oo,useExisting:$e(()=>Fd),multi:!0},Fd=(()=>{class e extends Ci{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[dt([xw]),ze]})}return e})();var Sw={provide:oo,useExisting:$e(()=>so),multi:!0};function by(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Iw(e){return e.split(":")[0]}var so=(()=>{class e extends Ci{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=b(Dn).injector;destroyRef=b(de);cdr=b(ti);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,hu({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=by(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=Iw(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[dt([Sw]),ze]})}return e})(),Ga=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(by(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select?._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||e)(J(xt),J(Bt),J(so,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Mw={provide:oo,useExisting:$e(()=>Dy),multi:!0};function ny(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Tw(e){return e.split(":")[0]}var Dy=(()=>{class e extends Ci{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s)>-1)}}else r=o=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let l=s[a],c=this._getOptionValue(l.value);o.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=Tw(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[dt([Mw]),ze]})}return e})(),Wa=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(ny(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(ny(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(J(xt),J(Bt),J(Dy,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var Nw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({})}return e})();var ao=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:_y,useValue:n.callSetDisabledState??Pd}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({imports:[Nw]})}return e})();var Aw=["dlg"];function Ow(e,t){if(e&1&&(on(0,"p",3),g(1),wn()),e&2){let n=v();f(),C(n.subject)}}var lo=class e{open=!1;title="Are you sure?";subject="";message="This cannot be undone.";confirmLabel="Delete";busy=!1;confirmed=new Re;cancelled=new Re;dlg;ngOnChanges(){queueMicrotask(()=>{let t=this.dlg?.nativeElement;t&&(this.open&&!t.open?t.showModal():!this.open&&t.open&&t.close())})}onEscape(t){t.preventDefault(),this.busy||this.cancelled.emit()}onBackdrop(t){t.target===this.dlg?.nativeElement&&!this.busy&&this.cancelled.emit()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-confirm-dialog"]],viewQuery:function(n,r){if(n&1&&fa(Aw,5),n&2){let o;ju(o=Bu())&&(r.dlg=o.first)}},inputs:{open:"open",title:"title",subject:"subject",message:"message",confirmLabel:"confirmLabel",busy:"busy"},outputs:{confirmed:"confirmed",cancelled:"cancelled"},features:[or],decls:12,vars:5,consts:[["dlg",""],["aria-labelledby","aa-confirm-title",1,"dialog",3,"cancel","click"],["id","aa-confirm-title",1,"title"],[1,"subject"],[1,"body"],[1,"actions"],["type","button","autofocus","",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","danger",3,"click","disabled"]],template:function(n,r){n&1&&(on(0,"dialog",1,0),Wr("cancel",function(i){return r.onEscape(i)})("click",function(i){return r.onBackdrop(i)}),on(2,"h3",2),g(3),wn(),D(4,Ow,2,1,"p",3),on(5,"p",4),g(6),wn(),on(7,"div",5)(8,"button",6),Wr("click",function(){return r.cancelled.emit()}),g(9,"Cancel"),wn(),on(10,"button",7),Wr("click",function(){return r.confirmed.emit()}),g(11),wn()()()),n&2&&(f(3),C(r.title),f(),E(r.subject?4:-1),f(2),C(r.message),f(4),da("disabled",r.busy),f(),T(" ",r.busy?"Deleting\u2026":r.confirmLabel," "))},styles:[".dialog[_ngcontent-%COMP%]{margin:auto;padding:22px 24px;width:calc(100% - 40px);max-width:440px;background:var(--%NS%aastrika-surface, #fff);color:var(--%NS%aastrika-ink, #1A1A1A);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:12px;box-shadow:0 18px 48px #17141038}.dialog[_ngcontent-%COMP%]::backdrop{background:#17141073}.title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:16px;font-weight:650}.subject[_ngcontent-%COMP%]{margin:0 0 10px;padding:9px 11px;background:var(--%NS%aastrika-surface-2, #faf8f5);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:7px;font-size:13px;overflow-wrap:anywhere}.body[_ngcontent-%COMP%]{margin:0 0 18px;font-size:13px;color:var(--%NS%aastrika-muted, #6b6257)}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end}.danger[_ngcontent-%COMP%]{background:#b42318;border-color:#b42318;color:#fff}.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#98200f}.danger[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}"]})};function Ey(e){if(!e||typeof e!="object")return;let t=e.error;if(!t||typeof t!="object")return;let n=t.error;return n&&typeof n=="object"?n:void 0}function wy(e){let t=e?.status;return typeof t=="number"?t:void 0}function kw(e){return Ey(e)?.code}function Rw(e,t={},n="Request failed"){let r=wy(e);if(r!==void 0&&t[r])return t[r];let o=Ey(e)?.message;return typeof o=="string"&&o.trim()?o:r===void 0?`${n}.`:`${n} (${r}).`}function ue(e,t,n={},r="Request failed"){let o=Rw(e,n,r),i=Um().onError;if(i)try{i({feature:t,message:o,status:wy(e),code:kw(e)})}catch{}return o}function qa(e){let t=A(null),n=A(!1);return{pending:t.asReadonly(),open:W(()=>t()!==null),busy:n.asReadonly(),ask(r){r!=null&&t.set(r)},cancel(){n()||t.set(null)},confirm(){let r=t();r===null||n()||(n.set(!0),e.request(r).subscribe({next:()=>{n.set(!1),t.set(null),e.onDeleted(r)},error:o=>{n.set(!1),t.set(null),e.onError(ue(o,e.feature,e.byStatus??{},e.fallback??"Could not delete it"))}}))}}}function pr({lookup:e,fallbackHref:t,onError:n,feature:r}){e.subscribe({next:({url:o})=>{window.open(o??t,"_blank","noopener")},error:o=>n(ue(o,r,{},"Could not open the file"))})}var Za=[{id:"queued",label:"Waiting to start",detail:"Your video is in the queue.",icon:"\u23F3"},{id:"narration",label:"Recording narration",detail:"Turning the script into a voice, scene by scene.",icon:"\u{1F399}\uFE0F"},{id:"illustration",label:"Drawing scenes",detail:"Illustrating each scene to match the narration.",icon:"\u{1F3A8}"},{id:"assembly",label:"Putting it together",detail:"Joining the pictures and the voice into one video.",icon:"\u{1F3AC}"},{id:"checking",label:"Final check",detail:"Looking for cut-off faces and text in the wrong place.",icon:"\u{1F50D}"}];function Di(e,t){return e.filter(n=>t.test(n.message)).length}function xy(e,t){let n=e?.log??[],o=n.map(Ve=>Ve.message).join(`
11
- `),i=e?.progress,s=Number.isFinite(i)?Math.max(0,Math.min(100,i)):0,a=e?.status==="done",l=e?.status==="failed",c=a?100:l?s:Math.min(s,99),p=e?.status==="failed",h=e?.status==="done",y=[],m=Di(n,/narration FAILED/),_=Di(n,/image FAILED|visual FAILED|NOT FOUND/),x=Di(n,/restyle failed/);m&&y.push(`${m} scene${m>1?"s":""} has no narration`),_&&y.push(`${_} scene${_>1?"s":""} has a plain background instead of a picture`),x&&y.push(`${x} of your images could not be redrawn, so they appear as you uploaded them`);let R=Ve=>Za.find(Nt=>Nt.id===Ve)??Za[0];if(p)return{stage:{id:"failed",label:"Could not finish",detail:"",icon:"\u2717"},percent:c,counter:"",headline:e?.error||"Something went wrong while making the video.",warnings:y,etaSeconds:null,done:!1,failed:!0};if(h)return{stage:{id:"done",label:"Ready",detail:"",icon:"\u2713"},percent:100,counter:"",headline:"Your video is ready to watch.",warnings:y,etaSeconds:null,done:!0,failed:!1};let F=Ve=>t?Math.min(Ve,t):Ve,ce=F(Di(n,/narration ✓/)),Qe=F(Di(n,/image ✓|visual ✓|= your image|= your uploaded image|= slide page/));if(/^QC:/m.test(o))return{stage:R("checking"),percent:c,counter:"",headline:"Almost there \u2014 checking the finished video.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(/Rendering (video|edited video)/.test(o))return{stage:R("assembly"),percent:c,counter:"",headline:"Joining everything into one video. This is the longest step.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};let rt=/Voiceover:/.test(o),Ke=/Edit plan:/.test(o),ot=/Illustrations:|Visuals:/.test(o);if(Ke)return{stage:R("illustration"),percent:c,counter:"",headline:"Applying your edits to the video.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(rt&&ce<t)return{stage:R("narration"),percent:c,counter:t?`${ce} of ${t} scenes`:"",headline:ot?"Recording the narration and drawing the scenes.":"Recording the narration.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(ot){let Ve=/Visuals: using/.test(o);return{stage:R("illustration"),percent:c,counter:t?`${Qe} of ${t} scenes`:"",headline:Ve?"Preparing your slides as the video's pictures.":"Drawing the pictures for each scene.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1}}if(rt)return{stage:R("narration"),percent:c,counter:t?`${ce} of ${t} scenes`:"",headline:"Recording the narration.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};let zt=e?.queuePosition??0;return{stage:R("queued"),percent:c,counter:"",headline:zt>0?`Waiting for ${zt} video${zt>1?"s":""} ahead of yours to finish.`:"Starting \u2014 this takes a few minutes.",warnings:y,etaSeconds:null,done:!1,failed:!1}}function co(e,t){if(t<5||e.length<2)return null;let n=new Date(e[0].t).getTime(),o=(Date.now()-n)/1e3;if(!Number.isFinite(o)||o<=0)return null;let i=o/(t/100);return Math.max(5,Math.round(i-o))}function Sy(e){if(e===null)return"";if(e<45)return"less than a minute left";let t=Math.round(e/60);if(t<60)return`about ${t} minute${t>1?"s":""} left`;let n=Math.round(t/60);return`about ${n} hour${n>1?"s":""} left`}var $t=()=>({standalone:!0}),gt=(e,t)=>t.id;function Pw(e,t){if(e&1&&(d(0,"div",3),g(1),u()),e&2){let n=v();f(),C(n.error())}}function Fw(e,t){e&1&&g(0," \xB7 MP4, MOV, WEBM ")}function Lw(e,t){if(e&1){let n=B();d(0,"label",9)(1,"input",25),N("change",function(o){I(n);let i=v();return M(i.onFile(o))}),u(),d(2,"span",26),g(3),u(),d(4,"span",27),g(5,"PDF, DOCX, TXT, MD, SRT"),D(6,Fw,1,0),u()()}if(e&2){let n=v();f(),w("accept",n.acceptedFiles()),f(2),C(n.uploading()?"Reading\u2026":"Choose a file"),f(3),E(n.editMode()==="on"?6:-1)}}function Vw(e,t){e&1&&g(0," \xB7 transcribed ")}function jw(e,t){if(e&1&&(d(0,"p",31),g(1),u()),e&2){let n=v();f(),T(" \u26A0 ",n.transcriptionError||"The narration could not be transcribed."," You can still edit from the scene images, but the plan will be working from pictures alone \u2014 say what you want in the instruction below. ")}}function Bw(e,t){if(e&1){let n=B();d(0,"div",10)(1,"div")(2,"div",28),g(3),u(),d(4,"div",29),g(5),ft(6,"number"),D(7,Vw,1,0),u()(),d(8,"button",30),N("click",function(){I(n);let o=v(2);return M(o.reset())}),g(9,"Replace"),u()(),D(10,jw,2,1,"p",31),d(11,"p",32),g(12,"Editing an existing video \u2014 describe the changes below."),u()}if(e&2){let n=t;f(3),T("\u{1F3AC} ",n.filename),f(2),St(" ",lr(6,5,n.durationSec,"1.0-0"),"s \xB7 ",n.segments.length," segments"),f(2),E(n.transcribed?7:-1),f(3),E(n.transcribed?-1:10)}}function Hw(e,t){if(e&1&&D(0,Bw,13,8),e&2){let n,r=v();E((n=r.sourceVideo())?0:-1,n)}}function Uw(e,t){if(e&1&&g(0),e&2){let n=v(2);T(" \xB7 ",n.doc().pages," slide pages ")}}function $w(e,t){if(e&1){let n=B();d(0,"div",10)(1,"div")(2,"div",28),g(3),u(),d(4,"div",29),g(5),ft(6,"number"),D(7,Uw,1,1),u()(),d(8,"button",30),N("click",function(){I(n);let o=v();return M(o.reset())}),g(9,"Replace"),u()()}if(e&2){let n=v();f(3),C(n.doc().filename),f(2),T(" ",ar(6,3,n.doc().chars)," characters"),f(2),E(n.hasSlides()?7:-1)}}function zw(e,t){e&1&&(d(0,"p",11),g(1,"Pick a visual style \u2014 the AI builds the whole video in that look. Everything else is optional."),u())}function Gw(e,t){if(e&1){let n=B();d(0,"button",33),N("click",function(){let o=I(n).$implicit,i=v();return M(i.videoType=o.id)}),d(1,"b"),g(2),u(),d(3,"span"),g(4),u()()}if(e&2){let n=t.$implicit,r=v();le("sel",r.videoType===n.id),w("disabled",!r.doc()),f(2),St("",n.icon," ",n.name),f(2),C(n.desc)}}function Ww(e,t){if(e&1){let n=B();d(0,"label",34),g(1,"Describe the edits"),u(),d(2,"textarea",35),ee("ngModelChange",function(o){I(n);let i=v();return re(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();f(2),X("ngModel",n.brief),G()}}function qw(e,t){if(e&1){let n=B();d(0,"label",34),g(1,"Creative brief (optional) \u2014 how it should look & feel"),u(),d(2,"textarea",36),ee("ngModelChange",function(o){I(n);let i=v();return re(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();f(2),X("ngModel",n.brief),w("disabled",!n.doc()),G()}}function Zw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Yw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit,r=v();w("value",n.id),f(),C(r.voiceLabel(n))}}function Qw(e,t){if(e&1){let n=B();d(0,"label",39)(1,"input",58),ee("ngModelChange",function(o){I(n);let i=v(2);return re(i.useSourceSlides,o)||(i.useSourceSlides=o),M(o)}),u(),z(),d(2,"span"),g(3,"\u{1F4C4} Use my uploaded slides as the visuals \u2014 "),d(4,"b"),g(5,"no new images will be generated"),u()()()}if(e&2){let n=v(2);f(),X("ngModel",n.useSourceSlides),w("disabled",!n.doc()),G()}}function Kw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Jw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Xw(e,t){if(e&1&&(d(0,"div",52),g(1),u()),e&2){let n=v(2);f(),C(n.refName())}}function ex(e,t){if(e&1){let n=B();d(0,"div",57)(1,"span",59),g(2),u(),d(3,"input",60),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.note,o)||(i.note=o),M(o)}),u(),z(),d(4,"button",61),N("click",function(){let o=I(n).$implicit,i=v(2);return M(i.removeImage(o.id))}),g(5,"\xD7"),u()()}if(e&2){let n=t.$implicit;f(2),C(n.name),f(),X("ngModel",n.note),w("ngModelOptions",Ne(3,$t)),G()}}function tx(e,t){if(e&1){let n=B();d(0,"div",22)(1,"div",37),g(2,"Optional \u2014 refine the look or add references"),u(),d(3,"div",38),D(4,Qw,6,2,"label",39),d(5,"div",14)(6,"div")(7,"label",40),g(8,"Aspect ratio"),u(),d(9,"select",41),ee("ngModelChange",function(o){I(n);let i=v();return re(i.aspectRatio,o)||(i.aspectRatio=o),M(o)}),Z(10,Kw,2,2,"option",18,gt),u(),z(),u(),d(12,"div")(13,"label",42),g(14,"Depth"),u(),d(15,"select",43),ee("ngModelChange",function(o){I(n);let i=v();return re(i.depth,o)||(i.depth=o),M(o)}),Z(16,Jw,2,2,"option",18,gt),u(),z(),u()(),d(18,"div",44)(19,"div")(20,"span",45),g(21,"\u{1F39E}\uFE0F Reference video \u2014 the AI copies its look, pacing & style"),u(),d(22,"label",46),No(),d(23,"svg",47),Ce(24,"path",48)(25,"path",49)(26,"path",50),u(),Ao(),d(27,"span"),g(28,"Choose a video"),u(),d(29,"input",51),N("change",function(o){I(n);let i=v();return M(i.onRefVideo(o))}),u()(),D(30,Xw,2,1,"div",52),u(),d(31,"div")(32,"span",45),g(33,"\u{1F5BC}\uFE0F Images/diagrams to include (multiple)"),u(),d(34,"label",46),No(),d(35,"svg",47),Ce(36,"rect",53)(37,"circle",54)(38,"path",55),u(),Ao(),d(39,"span"),g(40,"Choose images"),u(),d(41,"input",56),N("change",function(o){I(n);let i=v();return M(i.onUserImages(o))}),u()(),Z(42,ex,6,4,"div",57,gt),u()()()()}if(e&2){let n=v();f(4),E(n.hasSlides()?4:-1),f(5),X("ngModel",n.aspectRatio),w("disabled",!n.doc()),G(),f(),Y(n.aspects),f(5),X("ngModel",n.depth),w("disabled",!n.doc()),G(),f(),Y(n.depths),f(6),le("disabled",!n.doc()),f(7),w("disabled",!n.doc()),f(),E(n.refName()?30:-1),f(4),le("disabled",!n.doc()),f(7),w("disabled",!n.doc()),f(),Y(n.userImages())}}function nx(e,t){if(e&1&&(d(0,"span",66),g(1),u()),e&2){let n=v();f(),T("",n.costEstimate.kept," kept")}}function rx(e,t){if(e&1&&(d(0,"span",66),g(1),u()),e&2){let n=v();f(),T("",n.costEstimate.cuts," cut")}}function ox(e,t){if(e&1&&(d(0,"p",67)(1,"i"),g(2),u()()),e&2){let n=v();f(2),C(n.plan.notes)}}function ix(e,t){e&1&&Ce(0,"img",79),e&2&&w("src",t,na)}function sx(e,t){if(e&1&&g(0),e&2){let n=v().$implicit;sr(" \xB7 source ",n.srcId," (",n.startSec,"s\u2013",n.endSec,"s) ")}}function ax(e,t){e&1&&g(0," \xB7 new ")}function lx(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function cx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Narration"),u(),d(2,"textarea",83),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.narration,o)||(i.narration=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;f(2),X("ngModel",n.narration),w("ngModelOptions",Ne(2,$t)),G()}}function ux(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Visual / image prompt"),u(),d(2,"textarea",84),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.imagePrompt,o)||(i.imagePrompt=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;f(2),X("ngModel",n.imagePrompt),w("ngModelOptions",Ne(2,$t)),G()}}function dx(e,t){e&1&&(d(0,"p",81),g(1,"Kept exactly as it is \u2014 no cost."),u())}function fx(e,t){if(e&1){let n=B();d(0,"div",76)(1,"div",77)(2,"span",78),D(3,ix,1,1,"img",79),g(4),D(5,sx,1,3)(6,ax,1,0),u(),d(7,"select",80),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.action,o)||(i.action=o),M(o)}),Z(8,lx,2,2,"option",18,gt),u(),z(),u(),D(10,cx,3,3),D(11,ux,3,3),D(12,dx,2,0,"p",81),u()}if(e&2){let n,r=t.$implicit,o=t.$index,i=v(2);le("cut",r.action==="cut"),f(3),E((n=i.keyframe(r))?3:-1,n),f(),T(" Segment ",o+1),f(),E(r.srcId?5:6),f(2),X("ngModel",r.action),w("ngModelOptions",Ne(10,$t)),G(),f(),Y(i.actionsFor(r)),f(2),E(r.action!=="keep"&&r.action!=="cut"?10:-1),f(),E(r.action==="replace"||r.action==="new"?11:-1),f(),E(r.action==="keep"?12:-1)}}function px(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review the edits"),u(),d(6,"span",62),g(7,"\u2014 change any action, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),g(11),u(),d(12,"div",65)(13,"span",66),g(14),u(),D(15,nx,2,1,"span",66),D(16,rx,2,1,"span",66),u(),D(17,ox,3,1,"p",67),u(),d(18,"div",68)(19,"div",69),g(20),u(),d(21,"div",70),g(22,"estimated"),u(),d(23,"div",71),g(24),ft(25,"number"),u()()(),Z(26,fx,13,11,"div",72,En),d(28,"div",73)(29,"button",74),N("click",function(){I(n);let o=v();return M(o.produceEdits())}),g(30),u(),d(31,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),g(32,"\u21BB Re-plan the edits"),u()()()}if(e&2){let n=t,r=v();f(11),C(n.plan.title),f(3),T("",n.plan.segments.length," segments"),f(),E(n.costEstimate.kept?15:-1),f(),E(n.costEstimate.cuts?16:-1),f(),E(n.plan.notes?17:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),St(" ",n.costEstimate.images," images \xB7 ",ar(25,11,n.costEstimate.ttsChars)," VO chars "),f(2),Y(n.plan.segments),f(3),w("disabled",r.producing()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),f(),w("disabled",r.planning()||r.producing())}}function gx(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v();f(),St("\u{1F399}\uFE0F ",n.plan.voice.gender,", ",n.plan.voice.feel," voice")}}function hx(e,t){e&1&&(d(0,"span"),g(1,"\u{1F39E}\uFE0F styled after your reference video"),u())}function mx(e,t){e&1&&(d(0,"span"),g(1,"\u{1F4C4} using your slides"),u())}function yx(e,t){if(e&1&&(d(0,"p",67)(1,"i"),g(2),u()()),e&2){let n=v();f(2),C(n.plan.voice.rationale)}}function vx(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.restyles," restyled ")}}function _x(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.userImages-(n.costEstimate.restyles||0)," of yours ($0) ")}}function Cx(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.sourcePages," slides ($0) ")}}function bx(e,t){if(e&1&&(d(0,"span",100),g(1,"Visual"),u(),d(2,"div",81),g(3),u()),e&2){let n=v().$implicit;f(3),T("\u{1F4C4} Your slide, page ",n.visual.sourcePage," (used as-is, $0)")}}function Dx(e,t){if(e&1){let n=B();d(0,"span",100),g(1,"Visual \u2014 your uploaded image"),u(),d(2,"div",101)(3,"b",102),g(4),u(),d(5,"select",103),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.visual.treatment,o)||(i.visual.treatment=o),M(o)}),d(6,"option",104),g(7,"Use as-is (exact, $0 \u2014 full image shown, never cropped)"),u(),d(8,"option",105),g(9,"Redraw in video style via Gemini (~$0.04 \u2014 blends in; labels may shift, QC checks it)"),u()(),z(),d(10,"button",106),N("click",function(){I(n);let o=v().$implicit,i=v(2);return M(i.detachImage(o))}),g(11,"\u2715 detach"),u()()}if(e&2){let n=v().$implicit,r=v(2);f(4),C(r.imageName(n.visual.userImageId)),f(),X("ngModel",n.visual.treatment),w("ngModelOptions",Ne(3,$t)),G()}}function Ex(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.name)}}function wx(e,t){if(e&1){let n=B();d(0,"select",109),N("ngModelChange",function(o){I(n);let i=v(2).$implicit,s=v(2);return M(s.attachImage(i,o))}),d(1,"option",21),g(2,"\u2026or use one of your uploaded images here"),u(),Z(3,Ex,2,2,"option",18,gt),u(),z()}if(e&2){let n=v(4);w("ngModel","")("ngModelOptions",Ne(2,$t)),G(),f(3),Y(n.userImages())}}function xx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Visual / image prompt"),u(),d(2,"textarea",107),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.visual.imagePrompt,o)||(i.visual.imagePrompt=o),M(o)}),u(),z(),D(3,wx,5,3,"select",108)}if(e&2){let n=v().$implicit,r=v(2);f(2),X("ngModel",n.visual.imagePrompt),w("ngModelOptions",Ne(3,$t)),G(),f(),E(r.userImages().length?3:-1)}}function Sx(e,t){if(e&1){let n=B();d(0,"div",76)(1,"div",77)(2,"span"),g(3),u(),d(4,"span",66),g(5),u()(),d(6,"span",82),g(7,"Narration"),u(),d(8,"textarea",97),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.narration,o)||(i.narration=o),M(o)}),u(),z(),d(9,"span",82),g(10,"Key points on screen \u2014 one per line"),u(),d(11,"textarea",98),N("ngModelChange",function(o){let i=I(n).$implicit,s=v(2);return M(s.setKeyPoints(i,o))}),u(),z(),d(12,"span",82),g(13,"Title overlay (optional)"),u(),d(14,"input",99),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.titleOverlay,o)||(i.titleOverlay=o),M(o)}),u(),z(),D(15,bx,4,1)(16,Dx,12,4)(17,xx,4,4),u()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);f(3),St("Scene ",r+1," \xB7 ",n.purpose),f(2),T("~",n.durationHintSec,"s"),f(3),X("ngModel",n.narration),w("ngModelOptions",Ne(10,$t)),G(),f(3),w("ngModel",o.keyPointsText(n))("ngModelOptions",Ne(11,$t)),G(),f(3),X("ngModel",n.titleOverlay),w("ngModelOptions",Ne(12,$t)),G(),f(),E(n.visual.sourcePage?15:n.visual.userImageId?16:17)}}function Ix(e,t){e&1&&(d(0,"p",88),g(1,"Enter a content name to produce the video."),u())}function Mx(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit,r=v(2);w("value",n.id),f(),C(r.voiceLabel(n))}}function Tx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review the scene plan"),u(),d(6,"span",62),g(7,"\u2014 check it, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),g(11),u(),d(12,"div",65)(13,"span",66),g(14),u(),d(15,"span",66),g(16),u(),d(17,"span",66),g(18),u(),d(19,"span",66),g(20),u(),D(21,gx,2,2,"span"),D(22,hx,2,0,"span"),D(23,mx,2,0,"span"),u(),D(24,yx,3,1,"p",67),u(),d(25,"div",68)(26,"div",69),g(27),u(),d(28,"div",70),g(29,"estimated"),u(),d(30,"div",71),g(31),D(32,vx,1,1),D(33,_x,1,1),D(34,Cx,1,1),g(35),ft(36,"number"),u()()(),Z(37,Sx,18,13,"div",76,gt),d(39,"label",85),g(40,"Content name "),d(41,"span",86),g(42,"*"),u(),g(43," \u2014 names the finished video (edit if needed)"),u(),d(44,"input",87),N("ngModelChange",function(o){I(n);let i=v();return M(i.contentName.set(o))}),u(),z(),D(45,Ix,2,0,"p",88),d(46,"div",73)(47,"button",74),N("click",function(){I(n);let o=v();return M(o.produce())}),g(48),u(),d(49,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),g(50,"\u21BB Regenerate plan"),u()(),d(51,"div",89)(52,"label",90),g(53,"Not happy with something? Describe the change \u2014 the plan will be revised and only affected scenes regenerated (cached scenes are free)"),u(),d(54,"textarea",91),N("ngModelChange",function(o){I(n);let i=v();return M(i.feedback.set(o))}),u(),z(),d(55,"div",92)(56,"div",93)(57,"label",94),g(58,"Change voice (optional)"),u(),d(59,"select",95),ee("ngModelChange",function(o){I(n);let i=v();return re(i.fbVoice,o)||(i.fbVoice=o),M(o)}),d(60,"option",21),g(61,"Keep current voice"),u(),Z(62,Mx,2,2,"option",18,gt),u(),z(),u(),d(64,"button",75),N("click",function(){I(n);let o=v();return M(o.revise())}),g(65),u()()(),d(66,"p",96),g(67," Production is not triggered from this screen yet, so nothing is billed for rendering. Voiceover and images are generated when you produce the video. "),u()()}if(e&2){let n=t,r=v();f(11),C(n.plan.title),f(3),T("",n.plan.scenes.length," scenes"),f(2),T("~",n.plan.estimatedDurationSec,"s"),f(2),C(n.plan.videoType),f(2),C(n.plan.aspectRatio||r.aspectRatio),f(),E(n.plan.voice?.gender?21:-1),f(),E(r.styleGuide()?22:-1),f(),E(n.plan.usesSourceSlides?23:-1),f(),E(n.plan.voice?.rationale?24:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),T(" ",n.costEstimate.images," new images"),f(),E(n.costEstimate.restyles?32:-1),f(),E(n.costEstimate.userImages?33:-1),f(),E(n.costEstimate.sourcePages?34:-1),f(),T(" \xB7 ",ar(36,26,n.costEstimate.ttsChars)," VO chars "),f(2),Y(n.plan.scenes),f(7),le("invalid",!r.contentName().trim()),w("ngModel",r.contentName()),G(),f(),E(r.contentName().trim()?-1:45),f(2),w("disabled",r.producing()||!r.contentName().trim()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),f(),w("disabled",r.planning()||r.producing()),f(5),w("ngModel",r.feedback()),G(),f(5),X("ngModel",r.fbVoice),G(),f(3),Y(r.voices()),f(2),w("disabled",!r.feedback().trim()||r.revising()),f(),T(" ",r.revising()?"Revising\u2026":"\u21BB Regenerate plan with this feedback"," ")}}function Nx(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v();f(),C(n.counter)}}function Ax(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v(3);f(),C(n.eta())}}function Ox(e,t){e&1&&(d(0,"span",117),g(1,"You can leave this page \u2014 it keeps going."),u())}function kx(e,t){if(e&1&&(d(0,"span",127),g(1),u()),e&2){let n=v().$implicit;f(),C(n.detail)}}function Rx(e,t){if(e&1&&(d(0,"li")(1,"span",124),g(2),u(),d(3,"div",125)(4,"span",126),g(5),u(),D(6,kx,2,1,"span",127),u()()),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=v(4);qr("prod-step-"+i.stageState(r)),le("is-last",r===o-1),f(2),T(" ",i.stageState(r)==="done"?"\u2713":i.stageState(r)==="active"?n.icon:r+1," "),f(3),C(n.label),f(),E(i.stageState(r)==="active"?6:-1)}}function Px(e,t){if(e&1&&(d(0,"ol",118),Z(1,Rx,7,7,"li",123,gt),u()),e&2){let n=v(3);f(),Y(n.stages)}}function Fx(e,t){if(e&1&&(d(0,"div"),g(1),u()),e&2){let n=t.$implicit;f(),T("\u26A0 ",n)}}function Lx(e,t){if(e&1&&(d(0,"div",119),Z(1,Fx,2,1,"div",null,Jo),d(3,"span",117),g(4,"The video will still be made."),u()()),e&2){let n=v();f(),Y(n.warnings)}}function Vx(e,t){if(e&1&&(d(0,"div",120),g(1),u()),e&2){let n=v();f(),C(n.headline)}}function jx(e,t){if(e&1&&(d(0,"pre",122),g(1),u()),e&2){let n=v(3);f(),C(n.job()?n.logText(n.job()):"Starting\u2026")}}function Bx(e,t){if(e&1){let n=B();d(0,"div",110)(1,"span",111),g(2),u(),d(3,"div",112)(4,"strong"),g(5),u(),d(6,"span",113),g(7),u()(),d(8,"span",114),g(9),u()(),d(10,"div",115),Ce(11,"i"),u(),d(12,"div",116),D(13,Nx,2,1,"span"),D(14,Ax,2,1,"span"),D(15,Ox,2,0,"span",117),u(),D(16,Px,3,0,"ol",118),D(17,Lx,5,0,"div",119),D(18,Vx,2,1,"div",120),d(19,"button",121),N("click",function(){I(n);let o=v(2);return M(o.showLog.set(!o.showLog()))}),g(20),u(),D(21,jx,2,1,"pre",122)}if(e&2){let n=t,r=v(2);le("is-failed",n.failed)("is-done",n.done),f(),le("spin",!n.done&&!n.failed),f(),C(n.stage.icon),f(3),C(n.stage.label),f(2),C(n.headline),f(2),T("",n.percent,"%"),f(),le("is-working",!n.done&&!n.failed),tt("aria-valuenow",n.percent),f(),sn("width",n.percent,"%"),f(2),E(n.counter?13:-1),f(),E(r.eta()?14:-1),f(),E(!n.done&&!n.failed?15:-1),f(),E(n.failed?-1:16),f(),E(n.warnings.length?17:-1),f(),E(n.failed?18:-1),f(2),T(" ",r.showLog()?"Hide":"Show"," technical log "),f(),E(r.showLog()?21:-1)}}function Hx(e,t){if(e&1&&(d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"4"),u(),d(4,"h2",8),g(5,"Production"),u()(),D(6,Bx,22,23),u()),e&2){let n,r=v();f(6),E((n=r.progress())?6:-1,n)}}function Ux(e,t){if(e&1&&g(0),e&2){let n=v(3);T(" (auto-fixed: ",n.autoFixed.join(", "),") ")}}function $x(e,t){if(e&1&&(d(0,"p",131),g(1," \u2705 "),d(2,"b"),g(3,"Visual QC passed"),u(),g(4," \u2014 framing, cropping and text placement checked on every scene"),D(5,Ux,1,1),u()),e&2){let n=v(2);f(5),E(n.autoFixed?.length?5:-1)}}function zx(e,t){if(e&1&&g(0),e&2){let n=t.$implicit;sr(" ",n.type," (",n.severity,") \u2014 ",n.note,"; ")}}function Gx(e,t){if(e&1&&(d(0,"li")(1,"b"),g(2),u(),g(3,": "),Z(4,zx,1,3,null,null,En),u()),e&2){let n=t.$implicit;f(2),C(n.id),f(2),Y(n.issues)}}function Wx(e,t){if(e&1&&(d(0,"div",132)(1,"p"),g(2,"\u26A0\uFE0F "),d(3,"b"),g(4,"Visual QC found issues"),u(),g(5," \u2014 use the feedback box above to fix them:"),u(),d(6,"ul"),Z(7,Gx,6,1,"li",null,gt),u()()),e&2){let n=v(4);f(7),Y(n.qcIssues())}}function qx(e,t){if(e&1&&D(0,$x,6,1,"p",131)(1,Wx,9,0,"div",132),e&2){let n=v();E(n.pass?0:1)}}function Zx(e,t){e&1&&D(0,qx,2,1),e&2&&E(t.skipped?-1:0)}function Yx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"5"),u(),d(4,"h2",8),g(5,"Your video"),u()(),D(6,Zx,1,1),Ce(7,"video",128),d(8,"div",73)(9,"button",129),N("click",function(){I(n);let o=v();return M(o.download())}),g(10,"\u2B07 Download MP4"),u(),d(11,"button",130),N("click",function(){I(n);let o=v();return M(o.deleteVideo.ask(o.job()))}),g(12," \u{1F5D1} Delete video "),u()(),d(13,"p",96),g(14," Two ways to refine: edit the scene plan above (change narration, key points, image prompts \u2014 only edited scenes regenerate), or describe the change in the feedback box and let the director revise the plan for you. "),u()()}if(e&2){let n,r=v();f(6),E((n=r.job()?.qc)?6:-1,n),f(),w("src",r.playbackSrc(),na),f(4),w("disabled",r.deleteVideo.busy())}}var Ya=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}doc=A(null);editMode=nt("off");defaultLanguage=nt(void 0);defaultAspectRatio=nt(void 0);defaultDepth=nt(void 0);defaultVoice=nt(void 0);planReady=xn();videoStarted=xn();videoReady=xn();sourceVideo=A(null);editPlan=A(null);uploading=A(!1);planning=A(!1);revising=A(!1);result=A(null);error=A("");voices=A([]);styleGuide=A("");refName=A("");userImages=A([]);videoType="watercolor";contentName=A("");brief="";useSourceSlides=!1;language="hi";aspectRatio="16:9";depth="standard";voicePref="";producing=A(!1);job=A(null);pollTimer=null;seeded=!1;feedback=A("");fbVoice="";videoTypes=[{id:"slides",icon:"\u{1F4CA}",name:"Slides + voiceover",desc:"Clean slides with animated key-point text, infographics and illustrations, synced to narration."},{id:"watercolor",icon:"\u{1F3A8}",name:"Watercolor illustrations",desc:"Full-screen watercolor scenes (Indian rural healthcare setting) with key points appearing over them."},{id:"roleplay",icon:"\u{1F5E3}\uFE0F",name:"Animated roleplay",desc:"2D cel-animation dialogue between characters (e.g. ANM & beneficiary), lip-synced, contrast-pair format."},{id:"translation",icon:"\u{1F310}",name:"Translate existing video",desc:"Re-voice an existing video in another language; optionally translate on-screen text too."}];languages=[{id:"hi",label:"Hindi"},{id:"en",label:"English"},{id:"kn",label:"Kannada"},{id:"te",label:"Telugu"}];aspects=[{id:"16:9",label:"16:9 (landscape)"},{id:"9:16",label:"9:16 (vertical)"}];depths=[{id:"brief",label:"Brief \u2014 tight summary (45\u201390s)"},{id:"standard",label:"Standard \u2014 faithful coverage"},{id:"indepth",label:"In-depth \u2014 more slides, fuller explanations"}];hasSlides=W(()=>(this.doc()?.pages??0)>0);isEditMode=W(()=>this.sourceVideo()!==null);hasSource=W(()=>this.doc()!==null||this.sourceVideo()!==null);editActions=[{id:"keep",label:"\u2714 Keep as-is"},{id:"revoice",label:"\u{1F399}\uFE0F Re-voice (new narration)"},{id:"replace",label:"\u{1F5BC}\uFE0F Replace visual + narration"},{id:"new",label:"\u2795 New scene"},{id:"cut",label:"\u2702\uFE0F Cut (remove)"}];constructor(){Ct(()=>{let t=this.defaultLanguage(),n=this.defaultAspectRatio(),r=this.defaultDepth(),o=this.defaultVoice();this.seeded||(t&&(this.language=t),n&&(this.aspectRatio=n),r&&(this.depth=r),o&&(this.voicePref=o),(t||n||r||o)&&(this.seeded=!0))}),this.api.voices().pipe(this.untilGone).subscribe({next:t=>this.voices.set(t),error:t=>{ue(t,"content-studio")}})}voiceLabel(t){let n=t.lang==="en"?"Indian English":"Hindi";return`${t.name} \u2014 ${t.gender}, ${t.feel} (${n}${t.provider==="sarvam"?" \xB7 Sarvam":""})`}onFile(t){let n=t.target.files?.[0];n&&(this.error.set(""),this.uploading.set(!0),this.api.uploadDoc(n).pipe(this.untilGone).subscribe({next:r=>{vd(r)&&this.editMode()==="off"?(this.sourceVideo.set(null),this.doc.set(null),this.error.set("Editing an existing video is not available here. Upload a document \u2014 PDF, DOCX, TXT, MD or SRT \u2014 to make a new video instead.")):vd(r)?(this.sourceVideo.set(r),this.doc.set(null)):(this.doc.set(r),this.sourceVideo.set(null)),this.uploading.set(!1)},error:r=>{this.error.set(ue(r,"content-studio")),this.uploading.set(!1)}}))}onRefVideo(t){let n=t.target.files?.[0];n&&(this.refName.set(`Analysing ${n.name}\u2026`),this.api.uploadReference(n).pipe(this.untilGone).subscribe({next:r=>{this.styleGuide.set(r.styleGuide),this.refName.set(`${n.name} \u2014 style captured`)},error:r=>this.refName.set(ue(r,"content-studio"))}))}onUserImages(t){let n=Array.from(t.target.files??[]);for(let r of n)this.api.uploadImage(r).pipe(this.untilGone).subscribe({next:o=>this.userImages.update(i=>[...i,{id:o.id,name:o.name||r.name,note:""}]),error:o=>this.error.set(ue(o,"content-studio"))})}removeImage(t){this.userImages.update(n=>n.filter(r=>r.id!==t))}DEFAULT_BRIEF="faithful, warm instructional video";makePlan(){if(this.isEditMode())return this.makeEditPlan();let t=this.doc();t&&(this.error.set(""),this.planning.set(!0),this.result.set(null),this.api.plan({docText:t.text,userPrompt:this.brief.trim()||this.DEFAULT_BRIEF,videoType:this.videoType,language:this.language,filename:t.filename,depth:this.depth,aspectRatio:this.aspectRatio,voicePref:this.voicePref||void 0,pages:t.pages,sourceId:t.sourceId,useSourceSlides:this.useSourceSlides,userImages:this.userImages(),styleGuide:this.styleGuide()||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1),this.planReady.emit({jobId:n.jobId,title:n.plan?.title??"",sceneCount:n.plan?.scenes?.length??0,estimatedUsd:n.costEstimate?.totalUsd??null})},error:n=>{this.error.set(ue(n,"content-studio")),this.planning.set(!1)}}))}makeEditPlan(){let t=this.sourceVideo();!t||!this.brief.trim()||(this.error.set(""),this.planning.set(!0),this.editPlan.set(null),this.api.planEdits({videoType:"videoedit",userPrompt:this.brief,language:this.language,filename:t.filename,voicePref:this.voicePref||void 0,videoMeta:{sourceId:t.sourceId,segments:t.segments}}).pipe(this.untilGone).subscribe({next:n=>{this.editPlan.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1)},error:n=>{this.error.set(ue(n,"content-studio")),this.planning.set(!1)}}))}acceptedFiles=W(()=>this.editMode()==="on"?".pdf,.docx,.txt,.md,.srt,.mp4,.mov,.m4v,.webm":".pdf,.docx,.txt,.md,.srt");keyframe(t){return this.sourceVideo()?.segments.find(n=>n.id===t.srcId)?.keyframeUrl??null}actionsFor(t){return t.srcId?this.editActions:this.editActions.filter(n=>n.id!=="keep")}produceEdits(){let t=this.editPlan();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.pollFrom(t.jobId)},error:n=>{this.error.set(ue(n,"content-studio")),this.producing.set(!1)}}))}revise(){let t=this.result();!t||!this.feedback().trim()||(this.error.set(""),this.revising.set(!0),this.api.reviseplan(t.jobId,{feedback:this.feedback(),voicePref:this.fbVoice||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.feedback.set(""),this.revising.set(!1)},error:n=>{this.error.set(ue(n,"content-studio")),this.revising.set(!1)}}))}keyPointsText(t){return(t.onScreenText||[]).join(`
10
+ Use an empty apiBase only when the service is same-origin.`)}function $m(e){if(typeof e?.apiBase!="string")throw new Error(`Aastrika: configure() needs an apiBase string, received ${typeof e?.apiBase}. Pass an empty string for same-origin.`);ei=B(B({},Hm),e),Um=!0}function zm(){return ei}var Gm={get apiBase(){return PE(),ei.apiBase},get getAuthHeaders(){return ei.getAuthHeaders},get creator(){return ei.creator},get onError(){return ei.onError}};var ti=new A("AASTRIKA_CONFIG");var Wt=class e{http=x(Va);config=x(ti);base=this.config.apiBase;studio=`${this.base}/v1/studio`;assessment=`${this.base}/v1/quiz`;usage=`${this.base}/v1/usage`;auth=`${this.base}/auth`;currentUser=k(null);creator(){return this.config.creator?.()??this.currentUser()?.username??null}me(){return this.http.get(`${this.auth}/me`)}login(t,n){return this.http.post(`${this.auth}/login`,{username:t,password:n})}logout(){return this.http.post(`${this.auth}/logout`,{})}voices(){return this.http.get(`${this.studio}/list-voices`)}uploadDoc(t){let n=new FormData;return n.append("file",t),n.append("kind","document"),this.http.post(`${this.studio}/upload`,n)}planEdits(t){return this.http.post(`${this.studio}/generate-plan`,t)}plan(t){return this.http.post(`${this.studio}/generate-plan`,t)}uploadReference(t){let n=new FormData;return n.append("file",t),n.append("kind","reference-video"),this.http.post(`${this.studio}/upload`,n)}uploadImage(t){let n=new FormData;return n.append("file",t),n.append("kind","image"),this.http.post(`${this.studio}/upload`,n)}reviseplan(t,n){return this.http.patch(`${this.studio}/revise-plan/${t}`,n)}generateVideo(t,n={}){return this.http.post(`${this.studio}/generate-video/${t}`,n)}studioJobs(){return this.http.get(`${this.studio}/list-videos`)}job(t){return this.http.get(`${this.studio}/get-video/${t}`)}downloadVideoUrl(t){return this.http.get(`${this.studio}/download-video/${t}?as=url`)}downloadVideoHref(t){return`${this.studio}/download-video/${t}`}deleteVideo(t){return this.http.delete(`${this.studio}/delete-video/${t}`)}languages(){return this.http.get(`${this.assessment}/languages`)}assessmentJobs(){return this.http.get(`${this.assessment}/list`)}generateAssessment(t){return this.http.post(`${this.assessment}/generate`,t)}assessmentJob(t){return this.http.get(`${this.assessment}/${t}`)}readSources(t,n,r){let i=new FormData;for(let o of t)i.append("files",o);return n.trim()&&i.append("links",n),r&&i.append("language",r),this.http.post(`${this.assessment}/upload`,i)}saveAssessment(t,n){return this.http.patch(`${this.assessment}/update/${t}`,{assessment:n})}exportUrl(t,n="xlsx",r){return this.http.get(`${this.assessment}/export/${t}${Wm(n,r)}&as=url`)}exportHref(t,n="xlsx",r){return`${this.assessment}/export/${t}${Wm(n,r)}`}deleteQuiz(t){return this.http.delete(`${this.assessment}/delete/${t}`)}usageReport(t={}){let n=Object.fromEntries(Object.entries(t).filter(([,r])=>r!=null&&r!==""));return this.http.post(`${this.usage}/get-report`,n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ne({token:e,factory:e.\u0275fac,providedIn:"root"})};function Cu(e){return e.video===!0}function Wm(e,t){let n=new URLSearchParams({format:e});return t&&n.set("language",t),`?${n}`}var qm=(e,t)=>{let n=x(ti),r=x(Wt).creator(),i=o=>!r||!o.body||typeof o.body!="object"||o.body instanceof FormData||Array.isArray(o.body)||"creator"in o.body?o:o.clone({body:z(B({},o.body),{creator:r})});if(!n.getAuthHeaders){let o=i(e);return t(o)}return Yt(Promise.resolve(n.getAuthHeaders())).pipe(Ln(o=>t(i(e).clone({setHeaders:o}))))};var RE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function FE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function LE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var bu;function VE(e,t){if(!bu){let n=Element.prototype;bu=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?bu.call(e,t):!1}function jE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[FE(r)]=[n,i]}),t}function BE(e,t){return ro(e).inputs}function HE(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],c=UE(a,t,i);c!==-1&&r[c].push(a)}return r}function UE(e,t,n){let r=n;return LE(e)&&t.some((i,o)=>i!=="*"&&VE(e,i)?(r=o,!0):!1),r}var $E=10,Du=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=ro(t);for(let n of this.componentMirror.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new Eu(this.component,t,this.inputMap)}},Eu=class{component;injector;inputMap;eventEmitters=new xr(1);events=this.eventEmitters.pipe(Ln(t=>Dc(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.component=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(Ee),this.appRef=this.injector.get(En),this.cdScheduler=n.get(Ct),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=RE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},$E))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),Nd(this.componentRef.hostView)&&(Td(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Le.create({providers:[],parent:this.injector}),r=HE(t,ro(this.component).ngContentSelectors);this.componentRef=Kh(this.component,{environmentInjector:this.injector,elementInjector:n,hostElement:t,projectableNodes:r}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=ro(this.component).outputs.map(({propName:r,templateName:i})=>{let o=t.instance[r];return new K(s=>{let a=o.subscribe(c=>s.next({name:i,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},xu=class extends HTMLElement{ngElementEventsSubscription=null};function Zm(e,t){let n=BE(e),r=t.strategyFactory||new Du(e),i=jE(n);class o extends xu{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:l})=>{if(!Object.hasOwn(this,c))return;let p=this[c];delete this[c],a.setInputValue(c,p,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,p){let[h,v]=i[a];this.ngElementStrategy.setInputValue(h,l,v)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a,isSignal:c})=>{Object.defineProperty(o.prototype,s,{get(){let l=this.ngElementStrategy.getInputValue(s);return c&&Jn(l)?l():l},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}function Ym(e,t){return typeof customElements>"u"||customElements.get(e.tag)?!1:(customElements.define(e.tag,Zm(e.component,{injector:t})),!0)}function ni(e){e||(e=x(fe));let t=new K(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(wc(t))}var ov=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(X(zt),X(Nt))};static \u0275dir=Ce({type:e})}return e})(),Do=(()=>{class e extends ov{static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,features:[We]})}return e})(),si=new A(""),zE={provide:si,useExisting:Ge(()=>ku),multi:!0},ku=(()=>{class e extends Do{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,i){r&1&&N("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[gt([zE]),We]})}return e})(),GE={provide:si,useExisting:Ge(()=>Mn),multi:!0};function WE(){let e=Ot()?Ot().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var qE=new A(""),Mn=(()=>{class e extends ov{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!WE())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(X(zt),X(Nt),X(qE,8))};static \u0275dir=Ce({type:e,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(r,i){r&1&&N("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[gt([GE]),We]})}return e})();function Ou(e){return e==null||Au(e)===0}function Au(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Eo=new A(""),ZE=new A(""),YE=/^(?=.{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])?)*$/,Su=class{static min(t){return sv(t)}static max(t){return av(t)}static required(t){return cv(t)}static requiredTrue(t){return QE(t)}static email(t){return KE(t)}static minLength(t){return JE(t)}static maxLength(t){return lv(t)}static pattern(t){return XE(t)}static nullValidator(t){return Ha()}static compose(t){return hv(t)}static composeAsync(t){return vv(t)}};function sv(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function av(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function cv(e){return Ou(e.value)?{required:!0}:null}function QE(e){return e.value===!0?null:{required:!0}}function KE(e){return Ou(e.value)||YE.test(e.value)?null:{email:!0}}function JE(e){return t=>{let n=t.value?.length??Au(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function lv(e){return t=>{let n=t.value?.length??Au(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function XE(e){if(!e)return Ha;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Ou(r.value))return null;let i=r.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function Ha(e){return null}function dv(e){return e!=null}function uv(e){return qr(e)?Yt(e):e}function fv(e){let t={};return e.forEach(n=>{t=n!=null?B(B({},t),n):t}),Object.keys(t).length===0?null:t}function pv(e,t){return t.map(n=>n(e))}function ex(e){return!e.validate}function gv(e){return e.map(t=>ex(t)?t:n=>t.validate(n))}function hv(e){if(!e)return null;let t=e.filter(dv);return t.length==0?null:function(n){return fv(pv(n,t))}}function mv(e){return e!=null?hv(gv(e)):null}function vv(e){if(!e)return null;let t=e.filter(dv);return t.length==0?null:function(n){let r=pv(n,t).map(uv);return bc(r).pipe(we(fv))}}function yv(e){return e!=null?vv(gv(e)):null}function Qm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function tx(e){return e._rawValidators}function nx(e){return e._rawAsyncValidators}function wu(e){return e?Array.isArray(e)?e:[e]:[]}function Ua(e,t){return Array.isArray(e)?e.includes(t):e===t}function Km(e,t){let n=wu(t);return wu(e).forEach(i=>{Ua(n,i)||n.push(i)}),n}function Jm(e,t){return wu(t).filter(n=>!Ua(e,n))}var $a=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(t){this._rawValidators=t||[],this._composedValidatorFn=mv(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=yv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control?.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Mu=class extends $a{name;get formDirective(){return null}get path(){return null}};var vo="VALID",Ba="INVALID",ri="PENDING",yo="DISABLED",pr=class{},za=class extends pr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},_o=class extends pr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Co=class extends pr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},ii=class extends pr{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var bo=class extends pr{source;constructor(t){super(),this.source=t}};function rx(e){return(Ga(e)?e.validators:e)||null}function ix(e){return Array.isArray(e)?mv(e):e||null}function ox(e,t){return(Ga(t)?t.asyncValidators:e)||null}function sx(e){return Array.isArray(e)?yv(e):e||null}function Ga(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Iu=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=k(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Qe(this.statusReactive)}set status(t){Qe(()=>this.statusReactive.set(t))}_status=$(()=>this.statusReactive());statusReactive=k(void 0);get valid(){return this.status===vo}get invalid(){return this.status===Ba}get pending(){return this.status===ri}get disabled(){return this.status===yo}get enabled(){return this.status!==yo}errors;get pristine(){return Qe(this.pristineReactive)}set pristine(t){Qe(()=>this.pristineReactive.set(t))}_pristine=$(()=>this.pristineReactive());pristineReactive=k(!0);get dirty(){return!this.pristine}get touched(){return Qe(this.touchedReactive)}set touched(t){Qe(()=>this.touchedReactive.set(t))}_touched=$(()=>this.touchedReactive());touchedReactive=k(!1);get untouched(){return!this.touched}_events=new Re;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Km(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Km(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Jm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Jm(t,this._rawAsyncValidators))}hasValidator(t){return Ua(this._rawValidators,t)}hasAsyncValidator(t){return Ua(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(z(B({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Co(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Co(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(z(B({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new _o(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new _o(!0,r))}markAsPending(t={}){this.status=ri;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ii(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(z(B({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=yo,this.errors=null,this._forEachChild(i=>{i.disable(z(B({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new za(this.value,r)),this._events.next(new ii(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(z(B({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=vo,this._forEachChild(r=>{r.enable(z(B({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(z(B({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},n),this._parent?._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vo||this.status===ri)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new za(this.value,n)),this._events.next(new ii(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(z(B({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yo:vo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=ri,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=uv(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r?.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new ii(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Fe,this.statusChanges=new Fe}_calculateStatus(){return this._allControlsDisabled()?yo:this.errors?Ba:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ri)?ri:this._anyControlsHaveStatus(Ba)?Ba:vo}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,t.onlySelf||this._parent?._updatePristine(t,n),i&&this._events.next(new _o(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Co(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ga(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=ix(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=sx(this._rawAsyncValidators)}_updateHasRequiredValidator(){Qe(()=>this._hasRequired.set(this.hasValidator(Su.required)))}};function ax(e){return e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"}function cx(e,t,n,r){switch(n){case"name":e.setAttribute(t,n,r);break;case"disabled":case"readonly":case"required":r?e.setAttribute(t,n,""):e.removeAttribute(t,n);break;case"max":case"min":case"minLength":case"maxLength":r!==void 0?e.setAttribute(t,n,r.toString()):e.removeAttribute(t,n);break}}var Nu=class{kind;context;control;message;constructor({kind:t,context:n,control:r}){this.kind=t,this.context=n,this.control=r}};function lx(e){return typeof e=="number"?e:parseInt(e,10)}function _v(e){return typeof e=="number"?e:parseFloat(e)}var Wa=(()=>{class e{_validator=Ha;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Ha,this._onChange?.()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ce({type:e,features:[sr]})}return e})(),dx={provide:Eo,useExisting:Ge(()=>Pu),multi:!0},Pu=(()=>{class e extends Wa{max;inputName="max";normalizeInput=n=>_v(n);createValidator=n=>av(n);static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,i){r&2&&ke("max",i._enabled?i.max:null)},inputs:{max:"max"},standalone:!1,features:[gt([dx]),We]})}return e})(),ux={provide:Eo,useExisting:Ge(()=>Ru),multi:!0},Ru=(()=>{class e extends Wa{min;inputName="min";normalizeInput=n=>_v(n);createValidator=n=>sv(n);static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,i){r&2&&ke("min",i._enabled?i.min:null)},inputs:{min:"min"},standalone:!1,features:[gt([ux]),We]})}return e})(),fx={provide:Eo,useExisting:Ge(()=>Cv),multi:!0};var Cv=(()=>{class e extends Wa{required;inputName="required";normalizeInput=Zd;createValidator=n=>cv;enabled(n){return n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,i){r&2&&ke("required",i._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[gt([fx]),We]})}return e})();var px={provide:Eo,useExisting:Ge(()=>Fu),multi:!0},Fu=(()=>{class e extends Wa{maxlength;inputName="maxlength";normalizeInput=n=>lx(n);createValidator=n=>lv(n);static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){r&2&&ke("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[gt([px]),We]})}return e})();var gx=new A(""),bv=new A("",{factory:()=>Lu}),Lu="always";function hx(e,t){return[...t.path,e]}function Xm(e,t,n=Lu){vx(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),yx(e,t),Cx(e,t),_x(e,t),mx(e,t)}function ev(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function mx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function vx(e,t){let n=tx(e);t.validator!==null?e.setValidators(Qm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=nx(e);t.asyncValidator!==null?e.setAsyncValidators(Qm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();ev(t._rawValidators,i),ev(t._rawAsyncValidators,i)}function yx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Dv(e,t)})}function _x(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Dv(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Dv(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Cx(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function bx(e,t){if(!Object.hasOwn(e,"model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Dx(e){return Object.getPrototypeOf(e.constructor)===Do}function Ex(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===Mn?n=o:Dx(o)?r=o:i=o}),i||r||n||null}var xx={provide:gx,useFactory:()=>{let e=x(oi,{self:!0});return{setParseErrors:t=>{e.setParseErrorSource(t)},set onReset(t){e.onReset=t}}}},oi=class extends $a{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(n=>{n instanceof bo&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=Ex(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,n,r){super(),this.injector=t,this.renderer=n,this.rawValueAccessors=r,this.injector?.get(fe)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(no);if(!this.control||!t)return;let n=t.markForCheck.bind(t);this.subscription=new Se,this.subscription.add(this.control.valueChanges.subscribe(n)),this.subscription.add(this.control.statusChanges.subscribe(n)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof bo&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=!0,t.listenToCustomControlModel(i=>{this.control?.setValue(i,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(i)}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=ax(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(i=>i instanceof Cv))}ngControlUpdate(t,n){if(!this.isCustomControlBased)return;let r=this.control,i=this.customControlBindings;Object.is(i.value,r.value)||(i.value=r.value,t.setCustomControlModelInput(r.value)),this.bindControlProperty(t,i,"touched",r.touched),this.bindControlProperty(t,i,"dirty",r.dirty),this.bindControlProperty(t,i,"valid",r.valid),this.bindControlProperty(t,i,"invalid",r.invalid),this.bindControlProperty(t,i,"pending",r.pending),this.bindControlProperty(t,i,"disabled",r.disabled),this.shouldBindRequired&&this.bindControlProperty(t,i,"required",this.isRequired);let o=r.errors;if(i.errors!==o){i.errors=o;let s=this._convertErrors(o);t.setInputOnDirectives("errors",s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(t,n,r,i){if(n[r]===i)return;n[r]=i;let o=t.setInputOnDirectives(r,i);this.isNativeFormElement&&!o&&(r==="disabled"||r==="required")&&this.renderer&&cx(this.renderer,t.nativeElement,r,i)}_convertErrors(t){if(t===null)return[];let n=this.control;return Object.entries(t).map(([r,i])=>new Nu({context:i,kind:r,control:n}))}setParseErrorSource(t){if(t===void 0)return;let n=null,r=$(()=>{let i=t();return i.length===0?null:i.reduce((o,s)=>(o[s.kind]=s,o),{})});this.parseErrorsValidator=(()=>n).bind(this),xt(()=>{n=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:!1}))}},Tu=class{_cd;constructor(t){this._cd=t}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 ai=(()=>{class e extends Tu{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(X(oi,2))};static \u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&oe("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[We]})}return e})();function tv(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function nv(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Sx=class extends Iu{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(rx(n),ox(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ga(n)&&(n.nonNullable||n.initialValueIsDefault)&&(nv(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){Qe(()=>{this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)})}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new bo(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){tv(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){tv(this._onDisabledChange,t)}_forEachChild(t){}_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(t){nv(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var wx={provide:oi,useExisting:Ge(()=>gr)},rv=Promise.resolve(),gr=(()=>{class e extends oi{_changeDetectorRef;callSetDisabledState;control=new Sx;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Fe;constructor(n,r,i,o,s,a,c,l){super(c,l,o),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(i)}ngOnChanges(n){if(this._registered,this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),bx(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(n){super.ngControlCreate(n)}\u0275ngControlUpdate(n){super.ngControlUpdate(n,!1)}get shouldBindRequired(){return!1}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_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,Xm(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(n){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Xm(this.control,this,n))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){rv.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Zd(r);rv.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?hx(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(X(Mu,9),X(Eo,10),X(ZE,10),X(si,10),X(no,8),X(bv,8),X(Le,8),X(zt,8))};static \u0275dir=Ce({type:e,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:[gt([wx,xx]),We,sr,Vd(null)]})}return e})();var Mx={provide:si,useExisting:Ge(()=>Vu),multi:!0},Vu=(()=>{class e extends Do{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,i){r&1&&N("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},standalone:!1,features:[gt([Mx]),We]})}return e})();var Ix={provide:si,useExisting:Ge(()=>ci),multi:!0};function Ev(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Nx(e){return e.split(":")[0]}var ci=(()=>{class e extends Do{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=x(En).injector;destroyRef=x(fe);cdr=x(no);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,vd({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),i=Ev(r,n);this.setProperty("value",i)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=Nx(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(r,i){r&1&&N("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[gt([Ix]),We]})}return e})(),qa=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Ev(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select?._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||e)(X(Nt),X(zt),X(ci,9))};static \u0275dir=Ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Tx={provide:si,useExisting:Ge(()=>xv),multi:!0};function iv(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function kx(e){return e.split(":")[0]}var xv=(()=>{class e extends Do{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let i=n.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s)>-1)}}else r=i=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let i=[],o=r.selectedOptions;if(o!==void 0){let s=o;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);i.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);i.push(l)}}}this.value=i,n(i)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=kx(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=It(e)))(i||e)}})();static \u0275dir=Ce({type:e,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,i){r&1&&N("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[gt([Tx]),We]})}return e})(),Za=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(iv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(iv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(X(Nt),X(zt),X(xv,9))};static \u0275dir=Ce({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var Ox=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Dn({type:e});static \u0275inj=Xt({})}return e})();var li=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:bv,useValue:n.callSetDisabledState??Lu}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Dn({type:e});static \u0275inj=Xt({imports:[Ox]})}return e})();var Ax=["dlg"];function Px(e,t){if(e&1&&(pt(0,"p",3),g(1),kt()),e&2){let n=y();f(),D(n.subject)}}var di=class e{open=!1;title="Are you sure?";subject="";message="This cannot be undone.";confirmLabel="Delete";busy=!1;confirmed=new Fe;cancelled=new Fe;dlg;ngOnChanges(){queueMicrotask(()=>{let t=this.dlg?.nativeElement;t&&(this.open&&!t.open?t.showModal():!this.open&&t.open&&t.close())})}onEscape(t){t.preventDefault(),this.busy||this.cancelled.emit()}onBackdrop(t){t.target===this.dlg?.nativeElement&&!this.busy&&this.cancelled.emit()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Tt({type:e,selectors:[["aa-confirm-dialog"]],viewQuery:function(n,r){if(n&1&&ha(Ax,5),n&2){let i;Hd(i=Ud())&&(r.dlg=i.first)}},inputs:{open:"open",title:"title",subject:"subject",message:"message",confirmLabel:"confirmLabel",busy:"busy"},outputs:{confirmed:"confirmed",cancelled:"cancelled"},features:[sr],decls:12,vars:5,consts:[["dlg",""],["aria-labelledby","aa-confirm-title",1,"dialog",3,"cancel","click"],["id","aa-confirm-title",1,"title"],[1,"subject"],[1,"body"],[1,"actions"],["type","button","autofocus","",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","danger",3,"click","disabled"]],template:function(n,r){n&1&&(pt(0,"dialog",1,0),Zr("cancel",function(o){return r.onEscape(o)})("click",function(o){return r.onBackdrop(o)}),pt(2,"h3",2),g(3),kt(),C(4,Px,2,1,"p",3),pt(5,"p",4),g(6),kt(),pt(7,"div",5)(8,"button",6),Zr("click",function(){return r.cancelled.emit()}),g(9,"Cancel"),kt(),pt(10,"button",7),Zr("click",function(){return r.confirmed.emit()}),g(11),kt()()()),n&2&&(f(3),D(r.title),f(),b(r.subject?4:-1),f(2),D(r.message),f(4),ga("disabled",r.busy),f(),T(" ",r.busy?"Deleting\u2026":r.confirmLabel," "))},styles:[".dialog[_ngcontent-%COMP%]{margin:auto;padding:22px 24px;width:calc(100% - 40px);max-width:440px;background:var(--%NS%aastrika-surface, #fff);color:var(--%NS%aastrika-ink, #1A1A1A);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:12px;box-shadow:0 18px 48px #17141038}.dialog[_ngcontent-%COMP%]::backdrop{background:#17141073}.title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:16px;font-weight:650}.subject[_ngcontent-%COMP%]{margin:0 0 10px;padding:9px 11px;background:var(--%NS%aastrika-surface-2, #faf8f5);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:7px;font-size:13px;overflow-wrap:anywhere}.body[_ngcontent-%COMP%]{margin:0 0 18px;font-size:13px;color:var(--%NS%aastrika-muted, #6b6257)}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end}.danger[_ngcontent-%COMP%]{background:#b42318;border-color:#b42318;color:#fff}.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#98200f}.danger[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}"]})};function Sv(e){if(!e||typeof e!="object")return;let t=e.error;if(!t||typeof t!="object")return;let n=t.error;return n&&typeof n=="object"?n:void 0}function wv(e){let t=e?.status;return typeof t=="number"?t:void 0}function Rx(e){return Sv(e)?.code}function Fx(e,t={},n="Request failed"){let r=wv(e);if(r!==void 0&&t[r])return t[r];let i=Sv(e)?.message;return typeof i=="string"&&i.trim()?i:r===void 0?`${n}.`:`${n} (${r}).`}function ue(e,t,n={},r="Request failed"){let i=Fx(e,n,r),o=zm().onError;if(o)try{o({feature:t,message:i,status:wv(e),code:Rx(e)})}catch{}return i}function Ya(e){let t=k(null),n=k(!1);return{pending:t.asReadonly(),open:$(()=>t()!==null),busy:n.asReadonly(),ask(r){r!=null&&t.set(r)},cancel(){n()||t.set(null)},confirm(){let r=t();r===null||n()||(n.set(!0),e.request(r).subscribe({next:()=>{n.set(!1),t.set(null),e.onDeleted(r)},error:i=>{n.set(!1),t.set(null),e.onError(ue(i,e.feature,e.byStatus??{},e.fallback??"Could not delete it"))}}))}}}function hr({lookup:e,fallbackHref:t,onError:n,feature:r}){e.subscribe({next:({url:i})=>{window.open(i??t,"_blank","noopener")},error:i=>n(ue(i,r,{},"Could not open the file"))})}var Qa=[{id:"queued",label:"Waiting to start",detail:"Your video is in the queue.",icon:"\u23F3"},{id:"narration",label:"Recording narration",detail:"Turning the script into a voice, scene by scene.",icon:"\u{1F399}\uFE0F"},{id:"illustration",label:"Drawing scenes",detail:"Illustrating each scene to match the narration.",icon:"\u{1F3A8}"},{id:"assembly",label:"Putting it together",detail:"Joining the pictures and the voice into one video.",icon:"\u{1F3AC}"},{id:"checking",label:"Final check",detail:"Looking for cut-off faces and text in the wrong place.",icon:"\u{1F50D}"}];function xo(e,t){return e.filter(n=>t.test(n.message)).length}function Mv(e,t){let n=e?.log??[],i=n.map(Be=>Be.message).join(`
11
+ `),o=e?.progress,s=Number.isFinite(o)?Math.max(0,Math.min(100,o)):0,a=e?.status==="done",c=e?.status==="failed",l=a?100:c?s:Math.min(s,99),p=e?.status==="failed",h=e?.status==="done",v=[],m=xo(n,/narration FAILED/),_=xo(n,/image FAILED|visual FAILED|NOT FOUND/),S=xo(n,/restyle failed/);m&&v.push(`${m} scene${m>1?"s":""} has no narration`),_&&v.push(`${_} scene${_>1?"s":""} has a plain background instead of a picture`),S&&v.push(`${S} of your images could not be redrawn, so they appear as you uploaded them`);let R=Be=>Qa.find(Pt=>Pt.id===Be)??Qa[0];if(p)return{stage:{id:"failed",label:"Could not finish",detail:"",icon:"\u2717"},percent:l,counter:"",headline:e?.error||"Something went wrong while making the video.",warnings:v,etaSeconds:null,done:!1,failed:!0};if(h)return{stage:{id:"done",label:"Ready",detail:"",icon:"\u2713"},percent:100,counter:"",headline:"Your video is ready to watch.",warnings:v,etaSeconds:null,done:!0,failed:!1};let L=Be=>t?Math.min(Be,t):Be,de=L(xo(n,/narration ✓/)),Je=L(xo(n,/image ✓|visual ✓|= your image|= your uploaded image|= slide page/));if(/^QC:/m.test(i))return{stage:R("checking"),percent:l,counter:"",headline:"Almost there \u2014 checking the finished video.",warnings:v,etaSeconds:ui(n,l),done:!1,failed:!1};if(/Rendering (video|edited video)/.test(i))return{stage:R("assembly"),percent:l,counter:"",headline:"Joining everything into one video. This is the longest step.",warnings:v,etaSeconds:ui(n,l),done:!1,failed:!1};let ot=/Voiceover:/.test(i),Xe=/Edit plan:/.test(i),st=/Illustrations:|Visuals:/.test(i);if(Xe)return{stage:R("illustration"),percent:l,counter:"",headline:"Applying your edits to the video.",warnings:v,etaSeconds:ui(n,l),done:!1,failed:!1};if(ot&&de<t)return{stage:R("narration"),percent:l,counter:t?`${de} of ${t} scenes`:"",headline:st?"Recording the narration and drawing the scenes.":"Recording the narration.",warnings:v,etaSeconds:ui(n,l),done:!1,failed:!1};if(st){let Be=/Visuals: using/.test(i);return{stage:R("illustration"),percent:l,counter:t?`${Je} of ${t} scenes`:"",headline:Be?"Preparing your slides as the video's pictures.":"Drawing the pictures for each scene.",warnings:v,etaSeconds:ui(n,l),done:!1,failed:!1}}if(ot)return{stage:R("narration"),percent:l,counter:t?`${de} of ${t} scenes`:"",headline:"Recording the narration.",warnings:v,etaSeconds:ui(n,l),done:!1,failed:!1};let Zt=e?.queuePosition??0;return{stage:R("queued"),percent:l,counter:"",headline:Zt>0?`Waiting for ${Zt} video${Zt>1?"s":""} ahead of yours to finish.`:"Starting \u2014 this takes a few minutes.",warnings:v,etaSeconds:null,done:!1,failed:!1}}function ui(e,t){if(t<5||e.length<2)return null;let n=new Date(e[0].t).getTime(),i=(Date.now()-n)/1e3;if(!Number.isFinite(i)||i<=0)return null;let o=i/(t/100);return Math.max(5,Math.round(o-i))}function Iv(e){if(e===null)return"";if(e<45)return"less than a minute left";let t=Math.round(e/60);if(t<60)return`about ${t} minute${t>1?"s":""} left`;let n=Math.round(t/60);return`about ${n} hour${n>1?"s":""} left`}var Lx={paperclip:"M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48",film:"M3 3h18v18H3zM7 3v18M17 3v18M3 7.5h4M3 12h18M3 16.5h4M17 7.5h4M17 16.5h4",image:"M3 3h18v18H3zM8.5 10a1.5 1.5 0 100-3 1.5 1.5 0 000 3M21 15l-5-5L5 21",document:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8zM14 2v6h6M16 13H8M16 17H8M10 9H8",mic:"M12 2a3 3 0 00-3 3v7a3 3 0 006 0V5a3 3 0 00-3-3zM19 10v2a7 7 0 01-14 0v-2M12 19v3",download:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M7 10l5 5 5-5M12 15V3",trash:"M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2M19 6l-1 14a2 2 0 01-2 2H8a2 2 0 01-2-2L5 6M10 11v6M14 11v6",refresh:"M23 4v6h-6M1 20v-6h6M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15",play:"M5 3l14 9-14 9V3z",close:"M18 6L6 18M6 6l12 12",check:"M20 6L9 17l-5-5",alert:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0zM12 9v4M12 17h.01",sparkle:"M12 3l1.9 5.5L19.5 10l-5.6 1.5L12 17l-1.9-5.5L4.5 10l5.6-1.5L12 3z",scan:"M3 7V5a2 2 0 012-2h2M17 3h2a2 2 0 012 2v2M21 17v2a2 2 0 01-2 2h-2M7 21H5a2 2 0 01-2-2v-2M3 12h18",upload:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"},In=class e{name=be.required();size=be(16);d=$(()=>Lx[this.name()]??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Tt({type:e,selectors:[["aa-icon"]],inputs:{name:[1,"name"],size:[1,"size"]},decls:2,vars:3,consts:[["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","1.75","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true","focusable","false"]],template:function(n,r){n&1&&(Qn(),pt(0,"svg",0),pa(1,"path"),kt()),n&2&&(ke("width",r.size())("height",r.size()),f(),ke("d",r.d()))},styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center;justify-content:center}svg[_ngcontent-%COMP%]{display:block;vertical-align:-.125em;flex:none}"]})};var qt=()=>({standalone:!0}),yt=(e,t)=>t.id;function Vx(e,t){e&1&&(u(0,"p",27),g(1,"AI Studio"),d(),u(2,"h1",28),g(3,"Turn a document into a training video"),d())}function jx(e,t){if(e&1&&(u(0,"div",1),g(1),d()),e&2){let n=y();f(),D(n.error())}}function Bx(e,t){e&1&&O(0,"span",23)}function Hx(e,t){e&1&&O(0,"aa-icon",32),e&2&&E("size",22)}function Ux(e,t){e&1&&g(0," \xB7 MP4, MOV, WEBM ")}function $x(e,t){if(e&1){let n=H();u(0,"label",29)(1,"input",30),N("change",function(i){M(n);let o=y();return I(o.onFile(i))}),d(),u(2,"span",31),C(3,Bx,1,0,"span",23)(4,Hx,1,1,"aa-icon",32),d(),u(5,"span",33)(6,"span",34),g(7),d(),u(8,"span",35),g(9,"PDF, DOCX, TXT, MD, SRT"),C(10,Ux,1,0),d()()()}if(e&2){let n=y();oe("is-reading",n.uploading()),f(),E("accept",n.acceptedFiles())("disabled",n.uploading()),f(2),b(n.uploading()?3:4),f(4),D(n.uploading()?"Reading your document\u2026":"Choose a file"),f(3),b(n.editMode()==="on"?10:-1)}}function zx(e,t){e&1&&g(0," \xB7 transcribed ")}function Gx(e,t){if(e&1&&(u(0,"p",41),O(1,"aa-icon",43),g(2),d()),e&2){let n=y();f(2),T("",n.transcriptionError||"The narration could not be transcribed."," You can still edit from the scene images, but the plan will be working from pictures alone \u2014 say what you want in the instruction below. ")}}function Wx(e,t){if(e&1){let n=H();u(0,"div",36)(1,"div")(2,"div",37),O(3,"aa-icon",38),g(4),d(),u(5,"div",39),g(6),ht(7,"number"),C(8,zx,1,0),d()(),u(9,"button",40),N("click",function(){M(n);let i=y(2);return I(i.reset())}),g(10,"Replace"),d()(),C(11,Gx,3,1,"p",41),u(12,"p",42),g(13,"Editing an existing video \u2014 describe the changes below."),d()}if(e&2){let n=t;f(4),D(n.filename),f(2),it(" ",dr(7,5,n.durationSec,"1.0-0"),"s \xB7 ",n.segments.length," segments"),f(2),b(n.transcribed?8:-1),f(3),b(n.transcribed?-1:11)}}function qx(e,t){if(e&1&&C(0,Wx,14,8),e&2){let n,r=y();b((n=r.sourceVideo())?0:-1,n)}}function Zx(e,t){if(e&1&&g(0),e&2){let n=y(2);T(" \xB7 ",n.doc().pages," slide pages ")}}function Yx(e,t){if(e&1){let n=H();u(0,"div",8)(1,"span",44),O(2,"aa-icon",45),d(),u(3,"div",46)(4,"div",37),g(5),d(),u(6,"div",39),g(7),ht(8,"number"),C(9,Zx,1,1),d()(),u(10,"button",40),N("click",function(){M(n);let i=y();return I(i.reset())}),g(11,"Replace"),d()()}if(e&2){let n=y();f(2),E("size",18),f(3),D(n.doc().filename),f(2),T(" ",lr(8,4,n.doc().chars)," characters"),f(2),b(n.hasSlides()?9:-1)}}function Qx(e,t){e&1&&(u(0,"p",9),g(1,"Pick a visual style \u2014 the AI builds the whole video in that look. Everything else is optional."),d())}function Kx(e,t){if(e&1){let n=H();u(0,"button",47),N("click",function(){let i=M(n).$implicit,o=y();return I(o.videoType=i.id)}),u(1,"b"),g(2),d(),u(3,"span"),g(4),d()()}if(e&2){let n=t.$implicit,r=y();oe("sel",r.videoType===n.id),E("disabled",!r.doc()||r.busy()),f(2),it("",n.icon," ",n.name),f(2),D(n.desc)}}function Jx(e,t){if(e&1){let n=H();u(0,"label",48),g(1,"Describe the edits"),d(),u(2,"textarea",49),te("ngModelChange",function(i){M(n);let o=y();return ie(o.brief,i)||(o.brief=i),I(i)}),d(),W()}if(e&2){let n=y();f(2),ee("ngModel",n.brief),q()}}function Xx(e,t){if(e&1){let n=H();u(0,"label",48),g(1,"Creative brief (optional) \u2014 how it should look & feel"),d(),u(2,"textarea",50),te("ngModelChange",function(i){M(n);let o=y();return ie(o.brief,i)||(o.brief=i),I(i)}),d(),W()}if(e&2){let n=y();f(2),ee("ngModel",n.brief),E("disabled",!n.doc()||n.busy()),q()}}function eS(e,t){if(e&1&&(u(0,"option",16),g(1),d()),e&2){let n=t.$implicit;E("value",n.id),f(),D(n.label)}}function tS(e,t){if(e&1&&(u(0,"option",16),g(1),d()),e&2){let n=t.$implicit,r=y();E("value",n.id),f(),D(r.voiceLabel(n))}}function nS(e,t){if(e&1){let n=H();u(0,"label",53)(1,"input",73),te("ngModelChange",function(i){M(n);let o=y(2);return ie(o.useSourceSlides,i)||(o.useSourceSlides=i),I(i)}),d(),W(),u(2,"span"),O(3,"aa-icon",74),g(4,"Use my uploaded slides as the visuals \u2014 "),u(5,"b"),g(6,"no new images will be generated"),d()()()}if(e&2){let n=y(2);f(),ee("ngModel",n.useSourceSlides),E("disabled",!n.doc()||n.busy()),q()}}function rS(e,t){if(e&1&&(u(0,"option",16),g(1),d()),e&2){let n=t.$implicit;E("value",n.id),f(),D(n.label)}}function iS(e,t){if(e&1&&(u(0,"option",16),g(1),d()),e&2){let n=t.$implicit;E("value",n.id),f(),D(n.label)}}function oS(e,t){if(e&1&&(u(0,"div",66),g(1),d()),e&2){let n=y(2);f(),D(n.refName())}}function sS(e,t){if(e&1){let n=H();u(0,"div",72)(1,"span",75),g(2),d(),u(3,"input",76),te("ngModelChange",function(i){let o=M(n).$implicit;return ie(o.note,i)||(o.note=i),I(i)}),d(),W(),u(4,"button",77),N("click",function(){let i=M(n).$implicit,o=y(2);return I(o.removeImage(i.id))}),g(5,"\xD7"),d()()}if(e&2){let n=t.$implicit;f(2),D(n.name),f(),ee("ngModel",n.note),E("ngModelOptions",Oe(3,qt)),q()}}function aS(e,t){if(e&1){let n=H();u(0,"div",20)(1,"div",51),g(2,"Optional \u2014 refine the look or add references"),d(),u(3,"div",52),C(4,nS,7,2,"label",53),u(5,"div",12)(6,"div")(7,"label",54),g(8,"Aspect ratio"),d(),u(9,"select",55),te("ngModelChange",function(i){M(n);let o=y();return ie(o.aspectRatio,i)||(o.aspectRatio=i),I(i)}),Y(10,rS,2,2,"option",16,yt),d(),W(),d(),u(12,"div")(13,"label",56),g(14,"Depth"),d(),u(15,"select",57),te("ngModelChange",function(i){M(n);let o=y();return ie(o.depth,i)||(o.depth=i),I(i)}),Y(16,iS,2,2,"option",16,yt),d(),W(),d()(),u(18,"div",58)(19,"div")(20,"span",59),O(21,"aa-icon",38),g(22,"Reference video \u2014 the AI copies its look, pacing & style"),d(),u(23,"label",60),Qn(),u(24,"svg",61),O(25,"path",62)(26,"path",63)(27,"path",64),d(),ki(),u(28,"span"),g(29,"Choose a video"),d(),u(30,"input",65),N("change",function(i){M(n);let o=y();return I(o.onRefVideo(i))}),d()(),C(31,oS,2,1,"div",66),d(),u(32,"div")(33,"span",59),O(34,"aa-icon",67),g(35,"Images/diagrams to include (multiple)"),d(),u(36,"label",60),Qn(),u(37,"svg",61),O(38,"rect",68)(39,"circle",69)(40,"path",70),d(),ki(),u(41,"span"),g(42,"Choose images"),d(),u(43,"input",71),N("change",function(i){M(n);let o=y();return I(o.onUserImages(i))}),d()(),Y(44,sS,6,4,"div",72,yt),d()()()()}if(e&2){let n=y();f(4),b(n.hasSlides()?4:-1),f(5),ee("ngModel",n.aspectRatio),E("disabled",!n.doc()||n.busy()),q(),f(),Q(n.aspects),f(5),ee("ngModel",n.depth),E("disabled",!n.doc()||n.busy()),q(),f(),Q(n.depths),f(7),oe("disabled",!n.doc()||n.busy()),f(7),E("disabled",!n.doc()||n.busy()),f(),b(n.refName()?31:-1),f(5),oe("disabled",!n.doc()||n.busy()),f(7),E("disabled",!n.doc()||n.busy()),f(),Q(n.userImages())}}function cS(e,t){e&1&&O(0,"span",23)}function lS(e,t){e&1&&O(0,"aa-icon",24)}function dS(e,t){if(e&1&&(u(0,"span",25)(1,"span",78),O(2,"span",23),g(3),u(4,"span",79),g(5),d()(),u(6,"span",80),O(7,"span",81),d()()),e&2){let n=y();f(3),T("",n.planStage()," "),f(2),T("",n.planElapsed(),"s"),f(2),rt("width",n.planPct(),"%")}}function uS(e,t){if(e&1&&(u(0,"span",86),g(1),d()),e&2){let n=y();f(),T("",n.costEstimate.kept," kept")}}function fS(e,t){if(e&1&&(u(0,"span",86),g(1),d()),e&2){let n=y();f(),T("",n.costEstimate.cuts," cut")}}function pS(e,t){if(e&1&&(u(0,"p",87)(1,"i"),g(2),d()()),e&2){let n=y();f(2),D(n.plan.notes)}}function gS(e,t){e&1&&O(0,"img",99),e&2&&E("src",t,ia)}function hS(e,t){if(e&1&&g(0),e&2){let n=y().$implicit;cr(" \xB7 source ",n.srcId," (",n.startSec,"s\u2013",n.endSec,"s) ")}}function mS(e,t){e&1&&g(0," \xB7 new ")}function vS(e,t){if(e&1&&(u(0,"option",16),g(1),d()),e&2){let n=t.$implicit;E("value",n.id),f(),D(n.label)}}function yS(e,t){if(e&1){let n=H();u(0,"span",102),g(1,"Narration"),d(),u(2,"textarea",103),te("ngModelChange",function(i){M(n);let o=y().$implicit;return ie(o.narration,i)||(o.narration=i),I(i)}),d(),W()}if(e&2){let n=y().$implicit;f(2),ee("ngModel",n.narration),E("ngModelOptions",Oe(2,qt)),q()}}function _S(e,t){if(e&1){let n=H();u(0,"span",102),g(1,"Visual / image prompt"),d(),u(2,"textarea",104),te("ngModelChange",function(i){M(n);let o=y().$implicit;return ie(o.imagePrompt,i)||(o.imagePrompt=i),I(i)}),d(),W()}if(e&2){let n=y().$implicit;f(2),ee("ngModel",n.imagePrompt),E("ngModelOptions",Oe(2,qt)),q()}}function CS(e,t){e&1&&(u(0,"p",101),g(1,"Kept exactly as it is \u2014 no cost."),d())}function bS(e,t){if(e&1){let n=H();u(0,"div",96)(1,"div",97)(2,"span",98),C(3,gS,1,1,"img",99),g(4),C(5,hS,1,3)(6,mS,1,0),d(),u(7,"select",100),te("ngModelChange",function(i){let o=M(n).$implicit;return ie(o.action,i)||(o.action=i),I(i)}),Y(8,vS,2,2,"option",16,yt),d(),W(),d(),C(10,yS,3,3),C(11,_S,3,3),C(12,CS,2,0,"p",101),d()}if(e&2){let n,r=t.$implicit,i=t.$index,o=y(2);oe("cut",r.action==="cut"),f(3),b((n=o.keyframe(r))?3:-1,n),f(),T(" Segment ",i+1),f(),b(r.srcId?5:6),f(2),ee("ngModel",r.action),E("ngModelOptions",Oe(10,qt)),q(),f(),Q(o.actionsFor(r)),f(2),b(r.action!=="keep"&&r.action!=="cut"?10:-1),f(),b(r.action==="replace"||r.action==="new"?11:-1),f(),b(r.action==="keep"?12:-1)}}function DS(e,t){if(e&1){let n=H();u(0,"section",3)(1,"div",4)(2,"span",5),g(3,"3"),d(),u(4,"h2",6),g(5,"Review the edits"),d(),u(6,"span",82),g(7,"\u2014 change any action, then produce"),d()(),u(8,"div",83)(9,"div")(10,"div",84),g(11),d(),u(12,"div",85)(13,"span",86),g(14),d(),C(15,uS,2,1,"span",86),C(16,fS,2,1,"span",86),d(),C(17,pS,3,1,"p",87),d(),u(18,"div",88)(19,"div",89),g(20),d(),u(21,"div",90),g(22,"estimated"),d(),u(23,"div",91),g(24),ht(25,"number"),d()()(),Y(26,bS,13,11,"div",92,xn),u(28,"div",93)(29,"button",22),N("click",function(){M(n);let i=y();return I(i.produceEdits())}),g(30),d(),u(31,"button",94),N("click",function(){M(n);let i=y();return I(i.makePlan())}),O(32,"aa-icon",95),g(33,"Re-plan the edits"),d()()()}if(e&2){let n=t,r=y();f(11),D(n.plan.title),f(3),T("",n.plan.segments.length," segments"),f(),b(n.costEstimate.kept?15:-1),f(),b(n.costEstimate.cuts?16:-1),f(),b(n.plan.notes?17:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),it(" ",n.costEstimate.images," images \xB7 ",lr(25,11,n.costEstimate.ttsChars)," VO chars "),f(2),Q(n.plan.segments),f(3),E("disabled",r.producing()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"Regenerate video":"\u2713 Confirm & produce video"," "),f(),E("disabled",r.planning()||r.producing())}}function ES(e,t){if(e&1&&(u(0,"span"),O(1,"aa-icon",117),g(2),d()),e&2){let n=y();f(2),it("",n.plan.voice.gender,", ",n.plan.voice.feel," voice")}}function xS(e,t){e&1&&(u(0,"span"),O(1,"aa-icon",38),g(2,"styled after your reference video"),d())}function SS(e,t){e&1&&(u(0,"span"),O(1,"aa-icon",74),g(2,"using your slides"),d())}function wS(e,t){if(e&1&&(u(0,"p",87)(1,"i"),g(2),d()()),e&2){let n=y();f(2),D(n.plan.voice.rationale)}}function MS(e,t){if(e&1&&g(0),e&2){let n=y();T(" + ",n.costEstimate.restyles," restyled ")}}function IS(e,t){if(e&1&&g(0),e&2){let n=y();T(" + ",n.costEstimate.userImages-(n.costEstimate.restyles||0)," of yours ($0) ")}}function NS(e,t){if(e&1&&g(0),e&2){let n=y();T(" + ",n.costEstimate.sourcePages," slides ($0) ")}}function TS(e,t){if(e&1&&(u(0,"span",121),g(1,"Visual"),d(),u(2,"div",101),O(3,"aa-icon",74),g(4),d()),e&2){let n=y().$implicit;f(4),T("Your slide, page ",n.visual.sourcePage," (used as-is, $0)")}}function kS(e,t){if(e&1){let n=H();u(0,"span",121),g(1,"Visual \u2014 your uploaded image"),d(),u(2,"div",122)(3,"b",123),g(4),d(),u(5,"select",124),te("ngModelChange",function(i){M(n);let o=y().$implicit;return ie(o.visual.treatment,i)||(o.visual.treatment=i),I(i)}),u(6,"option",125),g(7,"Use as-is (exact, $0 \u2014 full image shown, never cropped)"),d(),u(8,"option",126),g(9,"Redraw in video style via Gemini (~$0.04 \u2014 blends in; labels may shift, QC checks it)"),d()(),W(),u(10,"button",127),N("click",function(){M(n);let i=y().$implicit,o=y(2);return I(o.detachImage(i))}),O(11,"aa-icon",128),g(12,"Detach"),d()()}if(e&2){let n=y().$implicit,r=y(2);f(4),D(r.imageName(n.visual.userImageId)),f(),ee("ngModel",n.visual.treatment),E("ngModelOptions",Oe(3,qt)),q()}}function OS(e,t){if(e&1&&(u(0,"option",16),g(1),d()),e&2){let n=t.$implicit;E("value",n.id),f(),D(n.name)}}function AS(e,t){if(e&1){let n=H();u(0,"select",131),N("ngModelChange",function(i){M(n);let o=y(2).$implicit,s=y(2);return I(s.attachImage(o,i))}),u(1,"option",19),g(2,"\u2026or use one of your uploaded images here"),d(),Y(3,OS,2,2,"option",16,yt),d(),W()}if(e&2){let n=y(4);E("ngModel","")("ngModelOptions",Oe(2,qt)),q(),f(3),Q(n.userImages())}}function PS(e,t){if(e&1){let n=H();u(0,"span",102),g(1,"Visual / image prompt"),d(),u(2,"textarea",129),te("ngModelChange",function(i){M(n);let o=y().$implicit;return ie(o.visual.imagePrompt,i)||(o.visual.imagePrompt=i),I(i)}),d(),W(),C(3,AS,5,3,"select",130)}if(e&2){let n=y().$implicit,r=y(2);f(2),ee("ngModel",n.visual.imagePrompt),E("ngModelOptions",Oe(3,qt)),q(),f(),b(r.userImages().length?3:-1)}}function RS(e,t){if(e&1){let n=H();u(0,"div",96)(1,"div",97)(2,"span"),g(3),d(),u(4,"span",86),g(5),d()(),u(6,"span",102),g(7,"Narration"),d(),u(8,"textarea",118),te("ngModelChange",function(i){let o=M(n).$implicit;return ie(o.narration,i)||(o.narration=i),I(i)}),d(),W(),u(9,"span",102),g(10,"Key points on screen \u2014 one per line"),d(),u(11,"textarea",119),N("ngModelChange",function(i){let o=M(n).$implicit,s=y(2);return I(s.setKeyPoints(o,i))}),d(),W(),u(12,"span",102),g(13,"Title overlay (optional)"),d(),u(14,"input",120),te("ngModelChange",function(i){let o=M(n).$implicit;return ie(o.titleOverlay,i)||(o.titleOverlay=i),I(i)}),d(),W(),C(15,TS,5,1)(16,kS,13,4)(17,PS,4,4),d()}if(e&2){let n=t.$implicit,r=t.$index,i=y(2);f(3),it("Scene ",r+1," \xB7 ",n.purpose),f(2),T("~",n.durationHintSec,"s"),f(3),ee("ngModel",n.narration),E("ngModelOptions",Oe(10,qt)),q(),f(3),E("ngModel",i.keyPointsText(n))("ngModelOptions",Oe(11,qt)),q(),f(3),ee("ngModel",n.titleOverlay),E("ngModelOptions",Oe(12,qt)),q(),f(),b(n.visual.sourcePage?15:n.visual.userImageId?16:17)}}function FS(e,t){e&1&&(u(0,"p",108),g(1,"Enter a content name to produce the video."),d())}function LS(e,t){if(e&1&&(u(0,"option",16),g(1),d()),e&2){let n=t.$implicit,r=y(2);E("value",n.id),f(),D(r.voiceLabel(n))}}function VS(e,t){e&1&&O(0,"aa-icon",95)}function jS(e,t){if(e&1){let n=H();u(0,"section",3)(1,"div",4)(2,"span",5),g(3,"3"),d(),u(4,"h2",6),g(5,"Review the scene plan"),d(),u(6,"span",82),g(7,"\u2014 check it, then produce"),d()(),u(8,"div",83)(9,"div")(10,"div",84),g(11),d(),u(12,"div",85)(13,"span",86),g(14),d(),u(15,"span",86),g(16),d(),u(17,"span",86),g(18),d(),u(19,"span",86),g(20),d(),C(21,ES,3,2,"span"),C(22,xS,3,0,"span"),C(23,SS,3,0,"span"),d(),C(24,wS,3,1,"p",87),d(),u(25,"div",88)(26,"div",89),g(27),d(),u(28,"div",90),g(29,"estimated"),d(),u(30,"div",91),g(31),C(32,MS,1,1),C(33,IS,1,1),C(34,NS,1,1),g(35),ht(36,"number"),d()()(),Y(37,RS,18,13,"div",96,yt),u(39,"label",105),g(40,"Content name "),u(41,"span",106),g(42,"*"),d(),g(43," \u2014 names the finished video (edit if needed)"),d(),u(44,"input",107),N("ngModelChange",function(i){M(n);let o=y();return I(o.contentName.set(i))}),d(),W(),C(45,FS,2,0,"p",108),u(46,"div",93)(47,"button",22),N("click",function(){M(n);let i=y();return I(i.produce())}),g(48),d(),u(49,"button",94),N("click",function(){M(n);let i=y();return I(i.makePlan())}),O(50,"aa-icon",95),g(51,"Regenerate plan"),d()(),u(52,"div",109)(53,"label",110),g(54,"Not happy with something? Describe the change \u2014 the plan will be revised and only affected scenes regenerated (cached scenes are free)"),d(),u(55,"textarea",111),N("ngModelChange",function(i){M(n);let o=y();return I(o.feedback.set(i))}),d(),W(),u(56,"div",112)(57,"div",113)(58,"label",114),g(59,"Change voice (optional)"),d(),u(60,"select",115),te("ngModelChange",function(i){M(n);let o=y();return ie(o.fbVoice,i)||(o.fbVoice=i),I(i)}),u(61,"option",19),g(62,"Keep current voice"),d(),Y(63,LS,2,2,"option",16,yt),d(),W(),d(),u(65,"button",94),N("click",function(){M(n);let i=y();return I(i.revise())}),C(66,VS,1,0,"aa-icon",95),g(67),d()()(),u(68,"p",116),g(69," Production is not triggered from this screen yet, so nothing is billed for rendering. Voiceover and images are generated when you produce the video. "),d()()}if(e&2){let n=t,r=y();f(11),D(n.plan.title),f(3),T("",n.plan.scenes.length," scenes"),f(2),T("~",n.plan.estimatedDurationSec,"s"),f(2),D(n.plan.videoType),f(2),D(n.plan.aspectRatio||r.aspectRatio),f(),b(n.plan.voice?.gender?21:-1),f(),b(r.styleGuide()?22:-1),f(),b(n.plan.usesSourceSlides?23:-1),f(),b(n.plan.voice?.rationale?24:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),T(" ",n.costEstimate.images," new images"),f(),b(n.costEstimate.restyles?32:-1),f(),b(n.costEstimate.userImages?33:-1),f(),b(n.costEstimate.sourcePages?34:-1),f(),T(" \xB7 ",lr(36,27,n.costEstimate.ttsChars)," VO chars "),f(2),Q(n.plan.scenes),f(7),oe("invalid",!r.contentName().trim()),E("ngModel",r.contentName()),q(),f(),b(r.contentName().trim()?-1:45),f(2),E("disabled",r.producing()||!r.contentName().trim()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"Regenerate video":"\u2713 Confirm & produce video"," "),f(),E("disabled",r.planning()||r.producing()),f(6),E("ngModel",r.feedback()),q(),f(5),ee("ngModel",r.fbVoice),q(),f(3),Q(r.voices()),f(2),E("disabled",!r.feedback().trim()||r.revising()),f(),b(r.revising()?-1:66),f(),T(" ",r.revising()?"Revising\u2026":"Regenerate plan with this feedback"," ")}}function BS(e,t){if(e&1&&(u(0,"span"),g(1),d()),e&2){let n=y();f(),D(n.counter)}}function HS(e,t){if(e&1&&(u(0,"span"),g(1),d()),e&2){let n=y(3);f(),D(n.eta())}}function US(e,t){e&1&&(u(0,"span",139),g(1,"You can leave this page \u2014 it keeps going."),d())}function $S(e,t){if(e&1&&(u(0,"span",149),g(1),d()),e&2){let n=y().$implicit;f(),D(n.detail)}}function zS(e,t){if(e&1&&(u(0,"li")(1,"span",146),g(2),d(),u(3,"div",147)(4,"span",148),g(5),d(),C(6,$S,2,1,"span",149),d()()),e&2){let n=t.$implicit,r=t.$index,i=t.$count,o=y(4);Yr("prod-step-"+o.stageState(r)),oe("is-last",r===i-1),f(2),T(" ",o.stageState(r)==="done"?"\u2713":o.stageState(r)==="active"?n.icon:r+1," "),f(3),D(n.label),f(),b(o.stageState(r)==="active"?6:-1)}}function GS(e,t){if(e&1&&(u(0,"ol",140),Y(1,zS,7,7,"li",145,yt),d()),e&2){let n=y(3);f(),Q(n.stages)}}function WS(e,t){if(e&1&&(u(0,"div"),O(1,"aa-icon",43),g(2),d()),e&2){let n=t.$implicit;f(2),D(n)}}function qS(e,t){if(e&1&&(u(0,"div",141),Y(1,WS,3,1,"div",null,Ji),u(3,"span",139),g(4,"The video will still be made."),d()()),e&2){let n=y();f(),Q(n.warnings)}}function ZS(e,t){if(e&1&&(u(0,"div",142),g(1),d()),e&2){let n=y();f(),D(n.headline)}}function YS(e,t){if(e&1&&(u(0,"pre",144),g(1),d()),e&2){let n=y(3);f(),D(n.job()?n.logText(n.job()):"Starting\u2026")}}function QS(e,t){if(e&1){let n=H();u(0,"div",132)(1,"span",133),g(2),d(),u(3,"div",134)(4,"strong"),g(5),d(),u(6,"span",135),g(7),d()(),u(8,"span",136),g(9),d()(),u(10,"div",137),O(11,"i"),d(),u(12,"div",138),C(13,BS,2,1,"span"),C(14,HS,2,1,"span"),C(15,US,2,0,"span",139),d(),C(16,GS,3,0,"ol",140),C(17,qS,5,0,"div",141),C(18,ZS,2,1,"div",142),u(19,"button",143),N("click",function(){M(n);let i=y(2);return I(i.showLog.set(!i.showLog()))}),g(20),d(),C(21,YS,2,1,"pre",144)}if(e&2){let n=t,r=y(2);oe("is-failed",n.failed)("is-done",n.done),f(),oe("spin",!n.done&&!n.failed),f(),D(n.stage.icon),f(3),D(n.stage.label),f(2),D(n.headline),f(2),T("",n.percent,"%"),f(),oe("is-working",!n.done&&!n.failed),ke("aria-valuenow",n.percent),f(),rt("width",n.percent,"%"),f(2),b(n.counter?13:-1),f(),b(r.eta()?14:-1),f(),b(!n.done&&!n.failed?15:-1),f(),b(n.failed?-1:16),f(),b(n.warnings.length?17:-1),f(),b(n.failed?18:-1),f(2),T(" ",r.showLog()?"Hide":"Show"," technical log "),f(),b(r.showLog()?21:-1)}}function KS(e,t){if(e&1&&(u(0,"section",3)(1,"div",4)(2,"span",5),g(3,"4"),d(),u(4,"h2",6),g(5,"Production"),d()(),C(6,QS,22,23),d()),e&2){let n,r=y();f(6),b((n=r.progress())?6:-1,n)}}function JS(e,t){if(e&1&&g(0),e&2){let n=y(3);T(" (auto-fixed: ",n.autoFixed.join(", "),") ")}}function XS(e,t){if(e&1&&(u(0,"p",155),O(1,"aa-icon",157),u(2,"b"),g(3,"Visual QC passed"),d(),g(4," \u2014 framing, cropping and text placement checked on every scene"),C(5,JS,1,1),d()),e&2){let n=y(2);f(5),b(n.autoFixed?.length?5:-1)}}function ew(e,t){if(e&1&&g(0),e&2){let n=t.$implicit;cr(" ",n.type," (",n.severity,") \u2014 ",n.note,"; ")}}function tw(e,t){if(e&1&&(u(0,"li")(1,"b"),g(2),d(),g(3,": "),Y(4,ew,1,3,null,null,xn),d()),e&2){let n=t.$implicit;f(2),D(n.id),f(2),Q(n.issues)}}function nw(e,t){if(e&1&&(u(0,"div",156)(1,"p"),O(2,"aa-icon",43),u(3,"b"),g(4,"Visual QC found issues"),d(),g(5," \u2014 use the feedback box above to fix them:"),d(),u(6,"ul"),Y(7,tw,6,1,"li",null,yt),d()()),e&2){let n=y(4);f(7),Q(n.qcIssues())}}function rw(e,t){if(e&1&&C(0,XS,6,1,"p",155)(1,nw,9,0,"div",156),e&2){let n=y();b(n.pass?0:1)}}function iw(e,t){e&1&&C(0,rw,2,1),e&2&&b(t.skipped?-1:0)}function ow(e,t){if(e&1){let n=H();u(0,"section",3)(1,"div",4)(2,"span",5),g(3,"5"),d(),u(4,"h2",6),g(5,"Your video"),d()(),C(6,iw,1,1),O(7,"video",150),u(8,"div",93)(9,"button",151),N("click",function(){M(n);let i=y();return I(i.download())}),O(10,"aa-icon",152),g(11,"Download MP4"),d(),u(12,"button",153),N("click",function(){M(n);let i=y();return I(i.deleteVideo.ask(i.job()))}),O(13,"aa-icon",154),g(14,"Delete video "),d()(),u(15,"p",116),g(16," Two ways to refine: edit the scene plan above (change narration, key points, image prompts \u2014 only edited scenes regenerate), or describe the change in the feedback box and let the director revise the plan for you. "),d()()}if(e&2){let n,r=y();f(6),b((n=r.job()?.qc)?6:-1,n),f(),E("src",r.playbackSrc(),ia),f(5),E("disabled",r.deleteVideo.busy())}}var Ka=class e{api=x(Wt);destroyRef=x(fe);get untilGone(){return t=>t.pipe(ni(this.destroyRef))}doc=k(null);heading=be("on");editMode=be("off");defaultLanguage=be(void 0);defaultAspectRatio=be(void 0);defaultDepth=be(void 0);defaultVoice=be(void 0);planReady=Sn();videoStarted=Sn();videoReady=Sn();sourceVideo=k(null);editPlan=k(null);uploading=k(!1);planning=k(!1);revising=k(!1);result=k(null);error=k("");voices=k([]);styleGuide=k("");refName=k("");userImages=k([]);videoType="watercolor";contentName=k("");brief="";useSourceSlides=!1;language="hi";aspectRatio="16:9";depth="standard";voicePref="";producing=k(!1);busy=$(()=>this.planning()||this.producing()||this.revising());job=k(null);pollTimer=null;seeded=!1;feedback=k("");fbVoice="";videoTypes=[{id:"slides",icon:"\u{1F4CA}",name:"Slides + voiceover",desc:"Clean slides with animated key-point text, infographics and illustrations, synced to narration."},{id:"watercolor",icon:"\u{1F3A8}",name:"Watercolor illustrations",desc:"Full-screen watercolor scenes (Indian rural healthcare setting) with key points appearing over them."},{id:"roleplay",icon:"\u{1F5E3}\uFE0F",name:"Animated roleplay",desc:"2D cel-animation dialogue between characters (e.g. ANM & beneficiary), lip-synced, contrast-pair format."},{id:"translation",icon:"\u{1F310}",name:"Translate existing video",desc:"Re-voice an existing video in another language; optionally translate on-screen text too."}];languages=[{id:"hi",label:"Hindi"},{id:"en",label:"English"},{id:"kn",label:"Kannada"},{id:"te",label:"Telugu"}];aspects=[{id:"16:9",label:"16:9 (landscape)"},{id:"9:16",label:"9:16 (vertical)"}];depths=[{id:"brief",label:"Brief \u2014 tight summary (45\u201390s)"},{id:"standard",label:"Standard \u2014 faithful coverage"},{id:"indepth",label:"In-depth \u2014 more slides, fuller explanations"}];hasSlides=$(()=>(this.doc()?.pages??0)>0);isEditMode=$(()=>this.sourceVideo()!==null);hasSource=$(()=>this.doc()!==null||this.sourceVideo()!==null);editActions=[{id:"keep",label:"\u2714 Keep as-is"},{id:"revoice",label:"\u{1F399}\uFE0F Re-voice (new narration)"},{id:"replace",label:"\u{1F5BC}\uFE0F Replace visual + narration"},{id:"new",label:"\u2795 New scene"},{id:"cut",label:"\u2702\uFE0F Cut (remove)"}];constructor(){xt(()=>{let t=this.defaultLanguage(),n=this.defaultAspectRatio(),r=this.defaultDepth(),i=this.defaultVoice();this.seeded||(t&&(this.language=t),n&&(this.aspectRatio=n),r&&(this.depth=r),i&&(this.voicePref=i),(t||n||r||i)&&(this.seeded=!0))}),this.api.voices().pipe(this.untilGone).subscribe({next:t=>this.voices.set(t),error:t=>{ue(t,"content-studio")}})}voiceLabel(t){let n=t.lang==="en"?"Indian English":"Hindi";return`${t.name} \u2014 ${t.gender}, ${t.feel} (${n}${t.provider==="sarvam"?" \xB7 Sarvam":""})`}onFile(t){let n=t.target.files?.[0];n&&(this.error.set(""),this.uploading.set(!0),this.api.uploadDoc(n).pipe(this.untilGone).subscribe({next:r=>{Cu(r)&&this.editMode()==="off"?(this.sourceVideo.set(null),this.doc.set(null),this.error.set("Editing an existing video is not available here. Upload a document \u2014 PDF, DOCX, TXT, MD or SRT \u2014 to make a new video instead.")):Cu(r)?(this.sourceVideo.set(r),this.doc.set(null)):(this.doc.set(r),this.sourceVideo.set(null)),this.uploading.set(!1)},error:r=>{this.error.set(ue(r,"content-studio")),this.uploading.set(!1)}}))}onRefVideo(t){let n=t.target.files?.[0];n&&(this.refName.set(`Analysing ${n.name}\u2026`),this.api.uploadReference(n).pipe(this.untilGone).subscribe({next:r=>{this.styleGuide.set(r.styleGuide),this.refName.set(`${n.name} \u2014 style captured`)},error:r=>this.refName.set(ue(r,"content-studio"))}))}onUserImages(t){let n=Array.from(t.target.files??[]);for(let r of n)this.api.uploadImage(r).pipe(this.untilGone).subscribe({next:i=>this.userImages.update(o=>[...o,{id:i.id,name:i.name||r.name,note:""}]),error:i=>this.error.set(ue(i,"content-studio"))})}removeImage(t){this.userImages.update(n=>n.filter(r=>r.id!==t))}DEFAULT_BRIEF="faithful, warm instructional video";makePlan(){if(this.isEditMode())return this.makeEditPlan();let t=this.doc();t&&(this.error.set(""),this.planning.set(!0),this.startPlanTicker(),this.result.set(null),this.api.plan({docText:t.text,userPrompt:this.brief.trim()||this.DEFAULT_BRIEF,videoType:this.videoType,language:this.language,filename:t.filename,depth:this.depth,aspectRatio:this.aspectRatio,voicePref:this.voicePref||void 0,pages:t.pages,sourceId:t.sourceId,useSourceSlides:this.useSourceSlides,userImages:this.userImages(),styleGuide:this.styleGuide()||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1),this.stopPlanTicker(),this.planReady.emit({jobId:n.jobId,title:n.plan?.title??"",sceneCount:n.plan?.scenes?.length??0,estimatedUsd:n.costEstimate?.totalUsd??null})},error:n=>{this.error.set(ue(n,"content-studio")),this.planning.set(!1),this.stopPlanTicker()}}))}makeEditPlan(){let t=this.sourceVideo();!t||!this.brief.trim()||(this.error.set(""),this.planning.set(!0),this.startPlanTicker(),this.editPlan.set(null),this.api.planEdits({videoType:"videoedit",userPrompt:this.brief,language:this.language,filename:t.filename,voicePref:this.voicePref||void 0,videoMeta:{sourceId:t.sourceId,segments:t.segments}}).pipe(this.untilGone).subscribe({next:n=>{this.editPlan.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1),this.stopPlanTicker()},error:n=>{this.error.set(ue(n,"content-studio")),this.planning.set(!1),this.stopPlanTicker()}}))}acceptedFiles=$(()=>this.editMode()==="on"?".pdf,.docx,.txt,.md,.srt,.mp4,.mov,.m4v,.webm":".pdf,.docx,.txt,.md,.srt");keyframe(t){return this.sourceVideo()?.segments.find(n=>n.id===t.srcId)?.keyframeUrl??null}actionsFor(t){return t.srcId?this.editActions:this.editActions.filter(n=>n.id!=="keep")}produceEdits(){let t=this.editPlan();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.pollFrom(t.jobId)},error:n=>{this.error.set(ue(n,"content-studio")),this.producing.set(!1)}}))}revise(){let t=this.result();!t||!this.feedback().trim()||(this.error.set(""),this.revising.set(!0),this.api.reviseplan(t.jobId,{feedback:this.feedback(),voicePref:this.fbVoice||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.feedback.set(""),this.revising.set(!1)},error:n=>{this.error.set(ue(n,"content-studio")),this.revising.set(!1)}}))}keyPointsText(t){return(t.onScreenText||[]).join(`
12
12
  `)}setKeyPoints(t,n){t.onScreenText=n.split(`
13
- `).map(r=>r.trim()).filter(Boolean)}attachImage(t,n){n&&(t.visual=U(j({},t.visual),{userImageId:n,treatment:"asis",imagePrompt:void 0}))}detachImage(t){t.visual=U(j({},t.visual),{userImageId:void 0,treatment:void 0,imagePrompt:""})}imageName(t){return this.userImages().find(n=>n.id===t)?.name??t??""}reset(){this.doc.set(null),this.sourceVideo.set(null),this.editPlan.set(null),this.result.set(null),this.error.set(""),this.brief="",this.userImages.set([]),this.styleGuide.set(""),this.refName.set("")}produce(){let t=this.result();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.poll()},error:n=>{this.error.set(ue(n,"content-studio")),this.producing.set(!1)}}))}poll(){let t=this.result()?.jobId??this.editPlan()?.jobId;t&&this.pollFrom(t)}pollFrom(t){let n=this.result();this.api.job(t).pipe(this.untilGone).subscribe({next:r=>{this.job.set(r),r.status==="done"&&r.video?(this.producing.set(!1),r.plan&&n&&this.result.set(U(j({},n),{plan:r.plan})),this.videoReady.emit({jobId:t,videoUrl:r.videoUrl??r.video??""})):r.status==="failed"?this.producing.set(!1):this.pollTimer=setTimeout(()=>this.pollFrom(t),2500)},error:r=>{this.error.set(ue(r,"content-studio")),this.producing.set(!1)}})}ngOnDestroy(){this.pollTimer&&clearTimeout(this.pollTimer)}stages=Za;progress=W(()=>xy(this.job(),this.job()?.plan?.scenes?.length??0));eta=W(()=>Sy(this.progress().etaSeconds));stageState(t){let n=this.progress();if(n.done)return"done";let r=this.stages.findIndex(o=>o.id===n.stage.id);return r<0?"todo":t<r?"done":t===r?"active":"todo"}showLog=A(!1);logText(t){return(t.log||[]).map(n=>`${String(n.t).slice(11,19)} ${n.message}`).join(`
14
- `)}hasVideo=W(()=>this.job()?.status==="done"&&!!this.job()?.video);playbackSrc=W(()=>{let t=this.job();return t?.videoUrl??t?.video??null});download(){let t=this.job();t&&pr({feature:"content-studio",lookup:this.api.downloadVideoUrl(t.id),fallbackHref:this.api.downloadVideoHref(t.id),onError:n=>this.error.set(n)})}deleteVideo=qa({feature:"content-studio",request:t=>this.api.deleteVideo(t.id),onDeleted:()=>{this.job.set(null),this.result.set(null),this.editPlan.set(null)},onError:t=>this.error.set(t),fallback:"Could not delete the video"});qcIssues(){return(this.job()?.qc?.scenes||[]).filter(t=>t.issues?.length)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-content-studio"]],inputs:{editMode:[1,"editMode"],defaultLanguage:[1,"defaultLanguage"],defaultAspectRatio:[1,"defaultAspectRatio"],defaultDepth:[1,"defaultDepth"],defaultVoice:[1,"defaultVoice"]},outputs:{planReady:"planReady",videoStarted:"videoStarted",videoReady:"videoReady"},decls:52,vars:22,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"drop"],[1,"picked"],[1,"step-sub"],[1,"types",3,"hidden"],["type","button",1,"type",3,"sel","disabled"],[1,"cols"],[1,"side"],["for","lang",1,"label"],["id","lang",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"value"],["for","voice",1,"label","mt"],["id","voice",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[1,"opt-group"],[1,"btn","mt-lg",3,"click","disabled"],["title","Delete video?","message","This removes the video and its stored files permanently. This cannot be undone.","confirmLabel","Delete video",3,"confirmed","cancelled","open","subject","busy"],["type","file","hidden","",3,"change","accept"],[1,"drop-main"],[1,"drop-sub"],[1,"picked-name"],[1,"picked-meta","mono"],[1,"btn","btn-ghost",3,"click"],[1,"mode-warn"],[1,"mode-note"],["type","button",1,"type",3,"click","disabled"],["for","brief",1,"label"],["id","brief","rows","3","placeholder",'e.g. change the title to "\u2026", re-voice segment 3 to also mention the MCP card, replace the intro visual with a watercolor scene, cut the WhatsApp part',1,"field",3,"ngModelChange","ngModel"],["id","brief","rows","3","placeholder","e.g. 90-second Hindi refresher on the 5 key counselling points; warm female voice; show the ANM at a VHND session; end with a recap slide",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"opt-head"],[1,"more-body"],[1,"check"],["for","aspect",1,"label"],["id","aspect",1,"field",3,"ngModelChange","ngModel","disabled"],["for","depth",1,"label"],["id","depth",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"extras"],["aria-hidden","true",1,"label"],[1,"file-btn"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12 15V3"],["d","m7 8 5-5 5 5"],["d","M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"],["type","file","hidden","","aria-label","Reference video the AI copies its look, pacing and style from","accept","video/mp4,video/quicktime,video/webm",3,"change","disabled"],[1,"hint","ok"],["x","3","y","3","width","18","height","18","rx","2"],["cx","9","cy","9","r","1.5"],["d","m21 15-4-4L7 21"],["type","file","hidden","","multiple","","accept","image/png,image/jpeg,image/webp",3,"change","disabled"],[1,"img-row"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"img-name"],["placeholder","where should this be used?",1,"field","img-note",3,"ngModelChange","ngModel","ngModelOptions"],["type","button",1,"x",3,"click"],[1,"step-note"],[1,"plan-head"],[1,"plan-title"],[1,"meta-line"],[1,"mono"],[1,"voice-why"],[1,"cost"],[1,"cost-n","mono"],[1,"cost-l"],[1,"cost-b","mono"],[1,"scene",3,"cut"],[1,"produce-row"],[1,"btn",3,"click","disabled"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"scene"],[1,"sh"],[1,"seg-head"],["alt","",1,"kf",3,"src"],[1,"field","act-sel",3,"ngModelChange","ngModel","ngModelOptions"],[1,"visual-note"],["aria-hidden","true",1,"lbl"],["rows","2","aria-label","Narration",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["rows","2","aria-label","Visual or image prompt",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["for","contentName",1,"label"],[1,"req"],["id","contentName","maxlength","200","placeholder","e.g. Danger Signs in Pregnancy \u2014 Module 3",1,"field",3,"ngModelChange","ngModel"],[1,"req-hint"],[1,"revise"],["for","fb",1,"label"],["id","fb","rows","2","placeholder","e.g. scene 3's narration is too fast, split it in two; use a male training voice; the heading on scene 5 should be centred",1,"field",3,"ngModelChange","ngModel"],[1,"revise-row"],[1,"revise-voice"],["for","fbv",1,"label"],["id","fbv",1,"field",3,"ngModelChange","ngModel"],[1,"muted","note"],["aria-label","Narration","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Key points on screen one per line","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Title overlay optional",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"lbl"],[1,"visual-row"],[1,"img-title"],["aria-label","How to treat your uploaded image",1,"field","treat",3,"ngModelChange","ngModel","ngModelOptions"],["value","asis"],["value","restyle"],["type","button",1,"btn","btn-ghost","tiny",3,"click"],["aria-label","Visual image prompt","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"field","attach",3,"ngModel","ngModelOptions"],[1,"field","attach",3,"ngModelChange","ngModel","ngModelOptions"],["role","status","aria-live","polite",1,"prod-now"],[1,"prod-icon"],[1,"prod-text"],[1,"prod-line"],[1,"prod-pct","mono"],["role","progressbar","aria-label","Video render progress","aria-valuemin","0","aria-valuemax","100",1,"bar"],[1,"prod-meta"],[1,"muted"],[1,"prod-steps"],[1,"prod-warn"],[1,"err-box","card-pad"],["type","button",1,"log-toggle",3,"click"],[1,"log"],[3,"class","is-last"],[1,"prod-step-node"],[1,"prod-step-body"],[1,"prod-step-name"],[1,"prod-step-detail"],["controls","",1,"player",3,"src"],["type","button",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],[1,"qc","ok"],[1,"qc","bad"]],template:function(n,r){if(n&1&&(d(0,"p",0),g(1,"AI Studio"),u(),d(2,"h1",1),g(3,"Turn a document into a training video"),u(),d(4,"p",2),g(5,"Upload the source material, describe how the video should look and feel, then review the scene plan and its cost before anything is produced."),u(),D(6,Pw,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),g(11,"1"),u(),d(12,"h2",8),g(13,"Source material"),u()(),D(14,Lw,7,3,"label",9)(15,Hw,1,1)(16,$w,10,5,"div",10),u(),d(17,"section",5)(18,"div",6)(19,"span",7),g(20,"2"),u(),d(21,"h2",8),g(22),u()(),D(23,zw,2,0,"p",11),d(24,"div",12),Z(25,Gw,5,6,"button",13,gt),u(),d(27,"div",14)(28,"div"),D(29,Ww,3,1)(30,qw,3,2),u(),d(31,"div",15)(32,"label",16),g(33,"Language"),u(),d(34,"select",17),ee("ngModelChange",function(i){return re(r.language,i)||(r.language=i),i}),Z(35,Zw,2,2,"option",18,gt),u(),z(),d(37,"label",19),g(38,"Voice"),u(),d(39,"select",20),ee("ngModelChange",function(i){return re(r.voicePref,i)||(r.voicePref=i),i}),d(40,"option",21),g(41,"Auto \u2014 director picks & explains"),u(),Z(42,Yw,2,2,"option",18,gt),u(),z(),u()(),D(44,tx,44,12,"div",22),d(45,"button",23),N("click",function(){return r.makePlan()}),g(46),u()(),D(47,px,33,13,"section",5),D(48,Tx,68,28,"section",5),D(49,Hx,7,1,"section",5),D(50,Yx,15,3,"section",5),u(),d(51,"aa-confirm-dialog",24),N("confirmed",function(){return r.deleteVideo.confirm()})("cancelled",function(){return r.deleteVideo.cancel()}),u()),n&2){let o,i;f(6),E(r.error()?6:-1),f(8),E(r.doc()?r.isEditMode()?15:16:14),f(3),le("dim",!r.hasSource()),f(5),C(r.isEditMode()?"What should be changed?":"How should the video look?"),f(),E(r.isEditMode()?-1:23),f(),w("hidden",r.isEditMode()),f(),Y(r.videoTypes),f(4),E(r.isEditMode()?29:30),f(5),X("ngModel",r.language),w("disabled",!r.hasSource()),G(),f(),Y(r.languages),f(4),X("ngModel",r.voicePref),w("disabled",!r.hasSource()),G(),f(3),Y(r.voices()),f(2),E(r.isEditMode()?-1:44),f(),w("disabled",!r.hasSource()||r.planning()||r.isEditMode()&&!r.brief.trim()),f(),T(" ",r.planning()?"Planning\u2026":r.isEditMode()?"Plan the edits":"Generate scene plan"," "),f(),E((o=r.editPlan())?47:-1,o),f(),E((i=r.result())?48:-1,i),f(),E(r.job()||r.producing()?49:-1),f(),E(r.hasVideo()?50:-1),f(),w("open",r.deleteVideo.open())("subject",r.contentName()||r.job()?.plan?.title||"")("busy",r.deleteVideo.busy())}},dependencies:[Sn,ao,Ga,Wa,In,Td,so,io,Rd,fr,lo,li],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}','.bar[_ngcontent-%COMP%]{height:8px;background:var(--%NS%aastrika-surface-2);border-radius:999px;overflow:hidden;margin-bottom:14px}.bar[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%;background:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%);transition:width .4s ease}.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%),repeating-linear-gradient(115deg,#ffffff47 0 12px,#fff0 12px 26px);background-size:100% 100%,200% 100%;animation:_ngcontent-%COMP%_bar-stripe 1.5s linear infinite}@keyframes _ngcontent-%COMP%_bar-stripe{to{background-position:0 0,-200% 0}}@media(prefers-reduced-motion:reduce){.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{animation:none}}.prod-now[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:14px;background:var(--%NS%aastrika-cream-soft);border:1px solid var(--%NS%aastrika-gold-soft);border-radius:10px}.prod-now.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg, rgba(47,107,79,.07));border-color:#2f6b4f4d}.prod-now.is-failed[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);border-color:#9a3b2e4d}.prod-icon[_ngcontent-%COMP%]{font-size:22px;line-height:1;flex:none}.prod-icon.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_prod-pulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_prod-pulse{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.prod-icon.spin[_ngcontent-%COMP%]{animation:none}}.prod-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.prod-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14.5px}.prod-line[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted)}.prod-pct[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:var(--%NS%aastrika-gold-deep);flex:none;font-variant-numeric:tabular-nums}.prod-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--%NS%aastrika-muted);margin-bottom:16px}.prod-steps[_ngcontent-%COMP%]{list-style:none;margin:0 0 16px;padding:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:26px 1fr;gap:12px;padding:0 0 16px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]{padding-bottom:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:12px;top:26px;bottom:2px;width:2px;background:var(--%NS%aastrika-line-2);border-radius:1px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]:before{display:none}.prod-step-done[_ngcontent-%COMP%]:before{background:var(--%NS%aastrika-ok-fg, #2F6B4F);opacity:.45}.prod-step-node[_ngcontent-%COMP%]{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--%NS%aastrika-surface);border:2px solid var(--%NS%aastrika-line-2);color:var(--%NS%aastrika-muted)}.prod-step-done[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-fg, #2F6B4F);border-color:var(--%NS%aastrika-ok-fg, #2F6B4F);color:#fff}.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:var(--%NS%aastrika-gold-deep);font-size:13px;animation:_ngcontent-%COMP%_node-ring 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_node-ring{0%,to{box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}50%{box-shadow:0 0 0 7px #d4b05338}}@media(prefers-reduced-motion:reduce){.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 4px var(--%NS%aastrika-gold-soft)}}.prod-step-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;padding-top:3px}.prod-step-name[_ngcontent-%COMP%]{font-size:13px}.prod-step-todo[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);opacity:.65}.prod-step-done[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.prod-step-active[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink);font-weight:600}.prod-step-detail[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.prod-warn[_ngcontent-%COMP%]{padding:11px 14px;margin-bottom:14px;border-radius:8px;background:var(--%NS%aastrika-warn-bg);border:1px solid rgba(180,120,0,.28);font-size:13px;display:grid;gap:3px}.log-toggle[_ngcontent-%COMP%]{background:none;border:0;padding:4px 0;font:inherit;font-size:12.5px;color:var(--%NS%aastrika-gold-deep);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.log-toggle[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-ink)}',".opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.plan-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.plan-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.cost[_ngcontent-%COMP%]{text-align:right}.cost-n[_ngcontent-%COMP%]{font-size:22px;font-weight:700;color:var(--%NS%aastrika-gold-deep)}.cost-l[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.scene[_ngcontent-%COMP%]{display:grid;grid-template-columns:46px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--%NS%aastrika-line)}@media(max-width:700px){.opts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.types[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:22px}.type[_ngcontent-%COMP%]{text-align:left;padding:14px 16px;border-radius:var(--%NS%aastrika-r);border:1.5px solid var(--%NS%aastrika-line);background:var(--%NS%aastrika-surface);cursor:pointer;display:grid;gap:4px}.type[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2)}.type.sel[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.type[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:13.5px}.type[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted);line-height:1.45}.type[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:stretch}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;flex-direction:column}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child textarea[_ngcontent-%COMP%]{flex:1 1 auto;min-height:120px}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%]{margin-top:14px}.check[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-size:13px;cursor:pointer}.check[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:auto;margin-top:2px}.extras[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;align-items:start}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{min-height:2.4em}.hint[_ngcontent-%COMP%]{font-size:12px;margin-top:5px}.img-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:7px}.img-name[_ngcontent-%COMP%]{font-size:12px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.img-note[_ngcontent-%COMP%]{flex:1;padding:6px 9px;font-size:12px}.x[_ngcontent-%COMP%]{border:0;background:none;color:var(--%NS%aastrika-muted);font-size:17px;cursor:pointer;line-height:1}.x[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-err-fg)}.cost-b[_ngcontent-%COMP%]{font-size:10.5px;color:var(--%NS%aastrika-muted);margin-top:3px}.keys[_ngcontent-%COMP%]{margin:7px 0 0;padding-left:18px;font-size:12.5px;color:var(--%NS%aastrika-ink-2)}.keys[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:2px}.revise[_ngcontent-%COMP%]{margin-top:22px;padding-top:18px;border-top:1px solid var(--%NS%aastrika-line)}.revise-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:14px;margin-top:12px}.revise-voice[_ngcontent-%COMP%]{max-width:280px;flex:1}@media(max-width:900px){.types[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%], .extras[_ngcontent-%COMP%]{grid-template-columns:1fr}.revise-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.scene[_ngcontent-%COMP%]{display:block;padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.sh[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:600;color:var(--%NS%aastrika-gold-deep);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}.sh[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:var(--%NS%aastrika-muted);font-weight:400;text-transform:none;letter-spacing:0}.lbl[_ngcontent-%COMP%]{display:block;font-size:11px;color:var(--%NS%aastrika-muted);margin:10px 0 4px}.scene[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{font-size:13px}.visual-note[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-ok-fg);background:var(--%NS%aastrika-ok-bg);padding:8px 11px;border-radius:8px}.visual-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.img-title[_ngcontent-%COMP%]{font-size:13px}.treat[_ngcontent-%COMP%]{flex:1;min-width:240px;font-size:12px}.attach[_ngcontent-%COMP%]{margin-top:6px;font-size:12px}.tiny[_ngcontent-%COMP%]{padding:5px 11px;font-size:12px}.meta-line[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--%NS%aastrika-muted);margin-top:3px}.voice-why[_ngcontent-%COMP%]{margin:6px 0 0;font-size:12px;color:var(--%NS%aastrika-muted);max-width:52ch}.produce-row[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.produce-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.log[_ngcontent-%COMP%]{background:#3b3330;color:#f1e2c6;font-family:var(--%NS%aastrika-mono);font-size:12px;border-radius:10px;padding:14px;max-height:260px;overflow-y:auto;white-space:pre-wrap;margin:0}.qc[_ngcontent-%COMP%]{font-size:13px;margin:0 0 14px}.qc.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.qc.bad[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);padding:12px 14px;border-radius:10px}.qc.bad[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 6px}.qc.bad[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:20px}.player[_ngcontent-%COMP%]{width:100%;border-radius:var(--%NS%aastrika-r);background:#000;display:block}.mode-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-gold-deep);margin:12px 0 0}.mode-warn[_ngcontent-%COMP%]{font-size:12.5px;line-height:1.5;margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid rgba(180,120,0,.35);background:#ffc40014}.seg-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;text-transform:none;letter-spacing:0;font-weight:600}.kf[_ngcontent-%COMP%]{width:88px;height:50px;object-fit:cover;border-radius:6px;border:1px solid var(--%NS%aastrika-line)}.act-sel[_ngcontent-%COMP%]{max-width:250px;font-size:12px;padding:6px 10px}.scene.cut[_ngcontent-%COMP%]{opacity:.55}.scene.cut[_ngcontent-%COMP%] .kf[_ngcontent-%COMP%]{filter:grayscale(1)}.req[_ngcontent-%COMP%]{color:#c0392b;font-weight:700}.field.invalid[_ngcontent-%COMP%]{border-color:#c0392b}.req-hint[_ngcontent-%COMP%]{color:#c0392b;font-size:.82rem;margin:.25rem 0 0}.step-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted, #6b6b63);margin:.1rem 0 1rem;font-size:.9rem}.more-body[_ngcontent-%COMP%]{padding-top:.5rem}.opt-group[_ngcontent-%COMP%]{margin-top:1rem;padding:.9rem 1rem;border:1px dashed rgba(0,0,0,.14);border-radius:10px;background:#00000004}.opt-head[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;letter-spacing:.02em;color:var(--%NS%aastrika-muted, #6b6b63);margin-bottom:.5rem}.file-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--%NS%aastrika-line, rgba(0,0,0,.14));border-radius:8px;cursor:pointer;font-size:.85rem;color:var(--%NS%aastrika-muted, #5a5a52);background:#fff;transition:border-color .15s,background .15s}.file-btn[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold, #a5872f);background:#00000005}.file-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;flex:none}.file-btn.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}"],changeDetection:1})};function Iy(e){let t=e.everyMs??2500,n=null,r=()=>{n&&clearTimeout(n),n=null},o=i=>{e.fetch(i).subscribe({next:s=>{e.onTick?.(s),s.status==="done"?(r(),e.onDone(s)):s.status==="failed"?(r(),e.onFailed(s.error??"It did not finish. Please try again.",s)):n=setTimeout(()=>o(i),t)},error:s=>{r(),e.onFailed(s instanceof Error?s.message:String(s))}})};return{start(i){r(),o(i)},stop:r}}var Ka=()=>({standalone:!0}),Ei=(e,t)=>t.id,Vd=(e,t)=>t.code;function Qx(e,t){if(e&1&&(d(0,"div",3),g(1),u()),e&2){let n=v();f(),C(n.error())}}function Kx(e,t){if(e&1&&(d(0,"div",16),g(1),u()),e&2){let n=v();f(),T("",n.files().length," file(s) selected")}}function Jx(e,t){if(e&1&&(d(0,"span",46),g(1),u()),e&2){let n=v().$implicit;f(),C(n.error)}}function Xx(e,t){if(e&1&&(d(0,"span",47),g(1),ft(2,"number"),u()),e&2){let n=v().$implicit;f(),T("",ar(2,1,n.chars)," chars")}}function eS(e,t){if(e&1){let n=B();d(0,"li")(1,"input",44),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleSource(o))}),u(),d(2,"span",45),g(3),u(),D(4,Jx,2,1,"span",46)(5,Xx,3,3,"span",47),u()}if(e&2){let n=t.$implicit,r=v(2);le("bad",n.error)("off",!n.error&&!n.checked),f(),w("checked",n.checked)("disabled",!!n.error||r.busy()),f(2),C(n.name),f(),E(n.error?4:5)}}function tS(e,t){if(e&1&&(d(0,"ul",18),Z(1,eS,6,8,"li",43,En),u()),e&2){let n=v();f(),Y(n.sources())}}function nS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),T("\u{1F3AC} ",n.plan?.title||n.filename||n.id)}}function rS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.code),f(),C(n.name)}}function oS(e,t){if(e&1&&(d(0,"option",33),g(1),u()),e&2){let n=t.$implicit;w("ngValue",n),f(),C(n)}}function iS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function sS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function aS(e,t){if(e&1){let n=B();d(0,"label",50)(1,"input",51),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleLanguage(o.code))}),u(),g(2),u()}if(e&2){let n=t.$implicit,r=v(2);le("on",r.translateInto().has(n.code)),f(),w("checked",r.translateInto().has(n.code))("disabled",r.generating()),f(),T(" ",n.name," ")}}function lS(e,t){if(e&1&&(d(0,"fieldset",38)(1,"legend"),g(2,"Also generate in \u2014 the "),d(3,"strong"),g(4,"same"),u(),g(5," questions, translated (optional)"),u(),d(6,"div",48),Z(7,aS,3,5,"label",49,Vd),u(),d(9,"p",42),g(10," Same question order, same options, same answer key in every language \u2014 you review each language on its own tab, and nothing needs translating afterwards. "),u()()),e&2){let n=v();f(7),Y(n.secondaryChoices())}}function cS(e,t){if(e&1&&(d(0,"span",41)(1,"span",52),Ce(2,"span",53),g(3),d(4,"span",54),g(5),u()(),d(6,"span",55),Ce(7,"span",56),u()()),e&2){let n=v();f(3),T("",n.stage()," "),f(2),T("",n.elapsed(),"s"),f(2),sn("width",n.progressPct(),"%")}}function uS(e,t){if(e&1&&(d(0,"span",42),g(1),u()),e&2){let n=v();f(),C(n.plannedSummary())}}function dS(e,t){e&1&&g(0," \xB7 all languages")}function fS(e,t){if(e&1&&g(0),e&2){let n=v(2);T(" \xB7 ",n.viewedLanguageName())}}function pS(e,t){if(e&1&&(d(0,"div",64),g(1),u()),e&2){let n=v();f(),T("Quality check corrected ",n.qcFixed," question(s) before showing them.")}}function gS(e,t){if(e&1&&(d(0,"div",65)(1,"strong"),g(2),u(),g(3),u()),e&2){let n=v(2);f(2),C(n.failedLanguageNames()),f(),T(" could not be completed this time. Your questions are safe \u2014 try generating again to add ",n.failedLanguageNames(),". ")}}function hS(e,t){e&1&&(d(0,"p",66),g(1," Excel gives you one file with a sheet per language. CSV gives you one language \u2014 whichever tab you are reading. "),u())}function mS(e,t){if(e&1&&(d(0,"div",65),g(1),u()),e&2){let n=v(2);f(),T(" You have changed the questions, so the other languages still show the earlier wording. Generate again to update them, or download ",n.languageName(n.language())," on its own. ")}}function yS(e,t){if(e&1){let n=B();d(0,"button",70),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.viewing.set(o.code))}),g(1),u()}if(e&2){let n=t.$implicit,r=v(3);le("on",r.viewing()===n.code),tt("aria-selected",r.viewing()===n.code),f(),C(n.name)}}function vS(e,t){if(e&1&&(d(0,"div",67),Z(1,yS,2,4,"button",69,Vd),u()),e&2){let n=v(2);f(),Y(n.resultLanguages())}}function _S(e,t){if(e&1){let n=B();d(0,"label",84),Ce(1,"input",85),d(2,"span",86),g(3),u(),d(4,"input",87),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(3);return M(a.editTranslatedOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v().$implicit,i=v(3);le("correct",r===o.correctIndex),f(),w("title",Uu("the correct answer is set on the ",i.languageName(i.language())," tab"))("checked",r===o.correctIndex),f(2),C("ABCDEF"[r]),f(),w("value",n)}}function CS(e,t){if(e&1){let n=B();d(0,"textarea",88),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(4);return M(o.touched())}),u(),z(),d(1,"p",89),g(2),u()}if(e&2){let n=v().$implicit;X("ngModel",n.explanation),w("ngModelOptions",Ne(3,Ka)),G(),f(2),T("Source: ",n.sourceRef)}}function bS(e,t){if(e&1){let n=B();d(0,"div",72)(1,"div",75)(2,"span",76),g(3),u(),d(4,"div",77)(5,"textarea",78),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(6,"div",79),Z(7,_S,5,7,"label",80,En),u(),d(9,"div",81)(10,"span",82),g(11),u(),d(12,"span",82),g(13),u(),d(14,"button",83),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggle(o.id))}),g(15),u()(),D(16,CS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(3);f(3),C(r+1),f(2),X("ngModel",n.question),w("ngModelOptions",Ne(7,Ka)),G(),f(2),Y(n.options),f(4),C(n.difficulty),f(2),C(n.bloom),f(2),T(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),E(o.revealed()[n.id]?16:-1)}}function DS(e,t){if(e&1){let n=B();d(0,"p",71),g(1," Reword anything on this tab. "),d(2,"strong"),g(3,"The correct answer is shared by every language"),u(),g(4),u(),Z(5,bS,17,8,"div",72,Ei),d(7,"div",73)(8,"button",74),N("click",function(){I(n);let o=v(2);return M(o.save())}),g(9),u()()}if(e&2){let n=v(2);f(4),T(" \u2014 tick it on the ",n.languageName(n.language())," tab and it changes here too. "),f(),Y(n.viewedQuestions()),f(3),w("disabled",n.saving()),f(),T(" ",n.saving()?"Saving\u2026":n.saved()?"\u2713 Saved":"Save edits"," ")}}function ES(e,t){if(e&1){let n=B();d(0,"label",84)(1,"input",92),N("change",function(){let o=I(n).$index,i=v().$implicit,s=v(3);return M(s.markCorrect(i,o))}),u(),d(2,"span",86),g(3),u(),d(4,"input",87),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(3);return M(a.editOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(),i=o.$implicit,s=o.$index;le("correct",r===i.correctIndex),f(),w("name","correct-"+s)("checked",r===i.correctIndex),f(2),C("ABCDEF"[r]),f(),w("value",n)}}function wS(e,t){if(e&1){let n=B();d(0,"textarea",88),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(4);return M(o.touched())}),u(),z(),d(1,"p",89),g(2),u()}if(e&2){let n=v().$implicit;X("ngModel",n.explanation),w("ngModelOptions",Ne(3,Ka)),G(),f(2),T("Source: ",n.sourceRef)}}function xS(e,t){if(e&1){let n=B();d(0,"div",90)(1,"div",75)(2,"span",76),g(3),u(),d(4,"div",77)(5,"textarea",78),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(6,"div",79),Z(7,ES,5,6,"label",80,En),u(),d(9,"div",81)(10,"span",82),g(11),u(),d(12,"span",82),g(13),u(),d(14,"button",83),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggle(o.id))}),g(15),u()(),D(16,wS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(3);f(3),C(r+1),f(2),X("ngModel",n.question),w("ngModelOptions",Ne(7,Ka)),G(),f(2),Y(n.options),f(4),C(n.difficulty),f(2),C(n.bloom),f(2),T(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),E(o.revealed()[n.id]?16:-1)}}function SS(e,t){if(e&1){let n=B();Z(0,xS,17,8,"div",90,Ei),d(2,"div",73)(3,"button",74),N("click",function(){I(n);let o=v(2);return M(o.save())}),g(4),u(),d(5,"span",91),g(6,"Save before downloading so the export matches what you see."),u()()}if(e&2){let n=v(),r=v();Y(n.assessment.questions),f(3),w("disabled",r.saving()),f(),T(" ",r.saving()?"Saving\u2026":r.saved()?"\u2713 Saved":"Save edits"," ")}}function IS(e,t){e&1&&g(0," Every language is a sheet of its own in the same workbook. ")}function MS(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review questions"),u(),d(6,"span",57),g(7,"\u2014 edit anything, tick the correct option, then download"),u()(),d(8,"div",58)(9,"div")(10,"div",59),g(11),u(),d(12,"div",60),g(13),u()(),d(14,"div",61)(15,"button",62),N("click",function(){I(n);let o=v();return M(o.export("xlsx"))}),g(16," \u2B07 Excel"),D(17,dS,1,0),u(),d(18,"button",63),N("click",function(){I(n);let o=v();return M(o.export("csv"))}),g(19," \u2B07 CSV"),D(20,fS,1,1),u()()(),D(21,pS,2,1,"div",64),D(22,gS,4,2,"div",65),D(23,hS,2,0,"p",66),D(24,mS,2,1,"div",65),D(25,vS,3,0,"div",67),D(26,DS,10,3),D(27,SS,7,2),d(28,"p",68),g(29," Format: Question \xB7 Option 1\u2026N \xB7 Correct Answer. The Excel file has a second sheet with difficulty, Bloom's level, source reference and explanations. "),D(30,IS,1,0),u()()}if(e&2){let n=t,r=v();f(11),C(r.viewedTitle()),f(2),T("",r.viewedQuestions().length," questions"),f(4),E(r.hasTranslations()?17:-1),f(3),E(r.hasTranslations()?20:-1),f(),E(n.qcFixed?21:-1),f(),E(n.failedLanguages?.length?22:-1),f(),E(r.hasTranslations()?23:-1),f(),E(r.translationsStale()?24:-1),f(),E(r.resultLanguages().length>1?25:-1),f(),E(r.viewing()?26:-1),f(),E(r.viewing()?-1:27),f(3),E(r.resultLanguages().length>1?30:-1)}}var Qa=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}files=A([]);sources=A([]);reading=A(!1);generating=A(!1);result=A(null);error=A("");revealed=A({});languages=A([]);pastVideos=A([]);defaultLanguage=nt(void 0);defaultQuestionCount=nt(void 0);defaultDifficulty=nt(void 0);defaultTranslateInto=nt(void 0);assessmentReady=xn();seeded=!1;translateInto=A(new Set);busy=W(()=>this.generating()||this.reading());viewing=A("");stage=A("");serverProgress=A(null);elapsed=A(0);progressPct=W(()=>{let t=this.activeSecondaries().length?75:35,n=Math.min(95,Math.round(this.elapsed()/t*100)),r=this.serverProgress();return r===null?n:Math.min(99,Math.max(r,n))});stageTimers=[];runStages(){this.stopStages();let t=this.activeSecondaries().map(o=>this.languageName(o)),n=t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`,r=[[0,"Reading your material\u2026"],[4e3,"Writing your questions\u2026"],[22e3,"Checking each question against your material\u2026"]];t.length?(r.push([34e3,`Translating into ${n}\u2026`]),r.push([52e3,`Checking the ${n} wording\u2026`]),r.push([7e4,"Re-translating anything that came back wrong\u2026"]),r.push([95e3,"Almost there \u2014 finishing the last language\u2026"])):r.push([34e3,"Almost there\u2026"]);for(let[o,i]of r)this.stageTimers.push(setTimeout(()=>{this.generating()&&(this.stage.set(i),this.elapsed.update(s=>s))},o));this.stage.set(r[0][1]),this.elapsed.set(0),this.stageTimers.push(setInterval(()=>{this.generating()&&this.elapsed.update(o=>o+1)},1e3))}stopStages(){for(let t of this.stageTimers)clearTimeout(t),clearInterval(t);this.stageTimers=[],this.stage.set("")}links="";brief="";sourceJobId="";language=A("hi");numQuestions=10;numOptions=4;difficulty="mixed";bloom="mixed";optionCounts=[2,3,4,5,6];difficulties=[{id:"mixed",label:"Mixed (30% easy \xB7 45% medium \xB7 25% hard)"},{id:"easy",label:"Easy \u2014 direct recall"},{id:"medium",label:"Medium \u2014 comprehension"},{id:"hard",label:"Hard \u2014 close distractors"}];blooms=[{id:"mixed",label:"Mixed (remember \xB7 understand \xB7 apply)"},{id:"apply",label:"Application-oriented \u2014 field scenarios"},{id:"understand",label:"Understanding \u2014 explain why"},{id:"remember",label:"Recall \u2014 facts & definitions"}];constructor(){this.destroyRef.onDestroy(()=>{this.stopStages(),this.poll.stop()}),Ct(()=>{let t=this.defaultLanguage(),n=this.defaultQuestionCount(),r=this.defaultDifficulty(),o=this.defaultTranslateInto();this.seeded||(t&&this.language.set(t),n&&(this.numQuestions=n),r&&(this.difficulty=r),o&&this.translateInto.set(new Set(o.split(",").map(i=>i.trim()).filter(Boolean))),(t||n||r||o)&&(this.seeded=!0))}),this.api.languages().pipe(this.untilGone).subscribe({next:t=>{let n=Object.entries(t).map(([r,o])=>({code:r,name:o}));this.languages.set(n)},error:t=>{ue(t,"assessment"),this.languages.set([{code:"hi",name:"Hindi"},{code:"en",name:"English"}])}}),this.api.studioJobs().pipe(this.untilGone).subscribe({next:t=>this.pastVideos.set(t.filter(n=>n.plan)),error:t=>{ue(t,"assessment")}})}chooseFiles(t){this.files.set(Array.from(t.target.files??[]))}readSources(){!this.files().length&&!this.links.trim()||(this.error.set(""),this.reading.set(!0),this.api.readSources(this.files(),this.links,this.language()).pipe(this.untilGone).subscribe({next:t=>{let n=(t.sources||[]).map(r=>U(j({},r),{checked:!r.error}));this.sources.update(r=>[...r,...n]),this.reading.set(!1)},error:t=>{this.error.set(ue(t,"assessment")),this.reading.set(!1)}}))}get readySources(){return this.sources().filter(t=>!t.error&&t.checked)}toggleSource(t){t.error||(t.checked=!t.checked,this.sources.update(n=>[...n]))}generate(){!this.readySources.length&&!this.sourceJobId||(this.error.set(""),this.generating.set(!0),this.result.set(null),this.viewing.set(""),this.translationsStale.set(!1),this.serverProgress.set(null),this.runStages(),this.api.generateAssessment({language:this.language(),numQuestions:Number(this.numQuestions),numOptions:Number(this.numOptions),difficulty:this.difficulty,bloom:this.bloom,userPrompt:this.brief||void 0,translateInto:this.activeSecondaries(),sourceIds:this.readySources.map(t=>t.id).filter(Boolean),sourceJobId:this.sourceJobId||void 0}).pipe(this.untilGone).subscribe({next:({jobId:t})=>this.poll.start(t),error:t=>this.finishWith(ue(t,"assessment"))}))}poll=Iy({fetch:t=>this.api.assessmentJob(t).pipe(this.untilGone),onTick:t=>{typeof t.progress=="number"&&this.serverProgress.set(t.progress)},onDone:t=>{let n=t.assessment;this.result.set({jobId:t.id,assessment:n,failedLanguages:t.settings?.failedLanguages}),this.finishWith(""),this.assessmentReady.emit({jobId:t.id,questionCount:n?.questions?.length??0,language:this.language(),languages:Object.keys(n?.translations??{})})},onFailed:t=>this.finishWith(t)});finishWith(t){t&&this.error.set(t),this.generating.set(!1),this.stopStages()}toggle(t){this.revealed.update(n=>U(j({},n),{[t]:!n[t]}))}secondaryChoices=W(()=>this.languages().filter(t=>t.code!==this.language()));activeSecondaries=W(()=>[...this.translateInto()].filter(t=>t!==this.language()));toggleLanguage(t){this.translateInto.update(n=>{let r=new Set(n);return r.delete(t)||r.add(t),r})}plannedSummary=W(()=>{let t=this.activeSecondaries().map(r=>this.languageName(r));return t.length?`Also in ${t.length===1?t[0]:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`} \u2014 takes a little longer`:""});resultLanguages=W(()=>{let t=this.result()?.assessment?.translations??{};return[{code:"",name:this.languageName(this.language())},...Object.keys(t).map(n=>({code:n,name:this.languageName(n)}))]});viewedTitle=W(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.title:t?.title)??""});viewedQuestions=W(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.questions:t?.questions)??[]});failedLanguageNames=W(()=>{let t=(this.result()?.failedLanguages??[]).map(n=>this.languageName(n.language));return t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`});viewedLanguageName=W(()=>this.languageName(this.viewing()||this.language()));languageName(t){return this.languages().find(n=>n.code===t)?.name??t}saving=A(!1);saved=A(!1);markCorrect(t,n){t.correctIndex=n;for(let r of Object.values(this.result()?.assessment?.translations??{})){let o=r.questions.find(i=>i.id===t.id);o&&(o.correctIndex=n)}this.saved.set(!1)}editOption(t,n,r){t.options[n]=r,this.touched()}editTranslatedOption(t,n,r){t.options[n]=r,this.saved.set(!1)}touched(){this.saved.set(!1),!this.viewing()&&this.hasTranslations()&&this.translationsStale.set(!0)}hasTranslations=W(()=>Object.keys(this.result()?.assessment?.translations??{}).length>0);translationsStale=A(!1);save(){let t=this.result();t&&(this.saving.set(!0),this.api.saveAssessment(t.jobId,t.assessment).pipe(this.untilGone).subscribe({next:()=>{this.saving.set(!1),this.saved.set(!0)},error:n=>{this.error.set(ue(n,"assessment")),this.saving.set(!1)}}))}export(t,n=t==="csv"?this.viewing():""){let r=this.result();r&&pr({feature:"assessment",lookup:this.api.exportUrl(r.jobId,t,n||void 0),fallbackHref:this.api.exportHref(r.jobId,t,n||void 0),onError:o=>this.error.set(o)})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-assessment"]],inputs:{defaultLanguage:[1,"defaultLanguage"],defaultQuestionCount:[1,"defaultQuestionCount"],defaultDifficulty:[1,"defaultDifficulty"],defaultTranslateInto:[1,"defaultTranslateInto"]},outputs:{assessmentReady:"assessmentReady"},decls:81,vars:31,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"step-lead"],[1,"src-cols"],["rows","3","placeholder",`Paste links here, one per line \u2014 Google Drive file/folder links, S3 links
13
+ `).map(r=>r.trim()).filter(Boolean)}attachImage(t,n){n&&(t.visual=z(B({},t.visual),{userImageId:n,treatment:"asis",imagePrompt:void 0}))}detachImage(t){t.visual=z(B({},t.visual),{userImageId:void 0,treatment:void 0,imagePrompt:""})}imageName(t){return this.userImages().find(n=>n.id===t)?.name??t??""}reset(){this.doc.set(null),this.sourceVideo.set(null),this.editPlan.set(null),this.result.set(null),this.error.set(""),this.brief="",this.userImages.set([]),this.styleGuide.set(""),this.refName.set("")}produce(){let t=this.result();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.poll()},error:n=>{this.error.set(ue(n,"content-studio")),this.producing.set(!1)}}))}poll(){let t=this.result()?.jobId??this.editPlan()?.jobId;t&&this.pollFrom(t)}pollFrom(t){let n=this.result();this.api.job(t).pipe(this.untilGone).subscribe({next:r=>{this.job.set(r),r.status==="done"&&r.video?(this.producing.set(!1),r.plan&&n&&this.result.set(z(B({},n),{plan:r.plan})),this.videoReady.emit({jobId:t,videoUrl:r.videoUrl??r.video??""})):r.status==="failed"?this.producing.set(!1):this.pollTimer=setTimeout(()=>this.pollFrom(t),2500)},error:r=>{this.error.set(ue(r,"content-studio")),this.producing.set(!1)}})}ngOnDestroy(){this.pollTimer&&clearTimeout(this.pollTimer),this.stopPlanTicker()}planStage=k("");planElapsed=k(0);planTimers=[];planPct=$(()=>{let t=this.planElapsed();return Math.min(96,Math.round(100*(1-Math.exp(-t/22))))});startPlanTicker(){this.stopPlanTicker();let t=[[0,"Reading your material\u2026"],[6,"Working out the story\u2026"],[16,"Writing the scenes\u2026"],[30,"Choosing the visuals\u2026"],[45,"Almost there\u2026"]];for(let[n,r]of t.slice(1))this.planTimers.push(setTimeout(()=>{this.planning()&&this.planStage.set(r)},n*1e3));this.planStage.set(t[0][1]),this.planElapsed.set(0),this.planTimers.push(setInterval(()=>{this.planning()&&this.planElapsed.update(n=>n+1)},1e3))}stopPlanTicker(){for(let t of this.planTimers)clearTimeout(t),clearInterval(t);this.planTimers=[]}stages=Qa;progress=$(()=>Mv(this.job(),this.job()?.plan?.scenes?.length??0));eta=$(()=>Iv(this.progress().etaSeconds));stageState(t){let n=this.progress();if(n.done)return"done";let r=this.stages.findIndex(i=>i.id===n.stage.id);return r<0?"todo":t<r?"done":t===r?"active":"todo"}showLog=k(!1);logText(t){return(t.log||[]).map(n=>`${String(n.t).slice(11,19)} ${n.message}`).join(`
14
+ `)}hasVideo=$(()=>this.job()?.status==="done"&&!!this.job()?.video);playbackSrc=$(()=>{let t=this.job();return t?.videoUrl??t?.video??null});download(){let t=this.job();t&&hr({feature:"content-studio",lookup:this.api.downloadVideoUrl(t.id),fallbackHref:this.api.downloadVideoHref(t.id),onError:n=>this.error.set(n)})}deleteVideo=Ya({feature:"content-studio",request:t=>this.api.deleteVideo(t.id),onDeleted:()=>{this.job.set(null),this.result.set(null),this.editPlan.set(null)},onError:t=>this.error.set(t),fallback:"Could not delete the video"});qcIssues(){return(this.job()?.qc?.scenes||[]).filter(t=>t.issues?.length)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Tt({type:e,selectors:[["aa-content-studio"]],inputs:{heading:[1,"heading"],editMode:[1,"editMode"],defaultLanguage:[1,"defaultLanguage"],defaultAspectRatio:[1,"defaultAspectRatio"],defaultDepth:[1,"defaultDepth"],defaultVoice:[1,"defaultVoice"]},outputs:{planReady:"planReady",videoStarted:"videoStarted",videoReady:"videoReady"},decls:53,vars:27,consts:[[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"drop",3,"is-reading"],[1,"picked","aa-enter"],[1,"step-sub"],[1,"types",3,"hidden"],["type","button",1,"type","card","is-interactive",3,"sel","disabled"],[1,"cols"],[1,"side"],["for","lang",1,"label"],["id","lang",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"value"],["for","voice",1,"label","mt"],["id","voice",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[1,"opt-group"],[1,"plan-row","mt-lg"],[1,"btn",3,"click","disabled"],[1,"aa-spinner"],["name","sparkle"],[1,"progress"],["title","Delete video?","message","This removes the video and its stored files permanently. This cannot be undone.","confirmLabel","Delete video",3,"confirmed","cancelled","open","subject","busy"],[1,"eyebrow"],[1,"page-title"],[1,"drop"],["type","file","hidden","",3,"change","accept","disabled"],[1,"drop-icon"],["name","upload",3,"size"],[1,"drop-text"],[1,"drop-main"],[1,"drop-sub"],[1,"picked"],[1,"picked-name"],["name","film"],[1,"picked-meta","mono"],[1,"btn","btn-ghost",3,"click"],[1,"mode-warn"],[1,"mode-note"],["name","alert"],[1,"picked-badge"],["name","document",3,"size"],[1,"picked-text"],["type","button",1,"type","card","is-interactive",3,"click","disabled"],["for","brief",1,"label"],["id","brief","rows","3","placeholder",'e.g. change the title to "\u2026", re-voice segment 3 to also mention the MCP card, replace the intro visual with a watercolor scene, cut the WhatsApp part',1,"field",3,"ngModelChange","ngModel"],["id","brief","rows","3","placeholder","e.g. 90-second Hindi refresher on the 5 key counselling points; warm female voice; show the ANM at a VHND session; end with a recap slide",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"opt-head"],[1,"more-body"],[1,"check"],["for","aspect",1,"label"],["id","aspect",1,"field",3,"ngModelChange","ngModel","disabled"],["for","depth",1,"label"],["id","depth",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"extras"],["aria-hidden","true",1,"label"],[1,"file-btn"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12 15V3"],["d","m7 8 5-5 5 5"],["d","M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"],["type","file","hidden","","aria-label","Reference video the AI copies its look, pacing and style from","accept","video/mp4,video/quicktime,video/webm",3,"change","disabled"],[1,"hint","ok"],["name","image"],["x","3","y","3","width","18","height","18","rx","2"],["cx","9","cy","9","r","1.5"],["d","m21 15-4-4L7 21"],["type","file","hidden","","multiple","","accept","image/png,image/jpeg,image/webp",3,"change","disabled"],[1,"img-row"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],["name","document"],[1,"img-name"],["placeholder","where should this be used?",1,"field","img-note",3,"ngModelChange","ngModel","ngModelOptions"],["type","button",1,"x",3,"click"],[1,"progress-line"],[1,"mono","progress-time"],[1,"progress-track"],[1,"progress-fill"],[1,"step-note"],[1,"plan-head"],[1,"plan-title"],[1,"meta-line"],[1,"mono"],[1,"voice-why"],[1,"cost"],[1,"cost-n","mono"],[1,"cost-l"],[1,"cost-b","mono"],[1,"scene",3,"cut"],[1,"produce-row"],[1,"btn","btn-ghost",3,"click","disabled"],["name","refresh"],[1,"scene"],[1,"sh"],[1,"seg-head"],["alt","",1,"kf",3,"src"],[1,"field","act-sel",3,"ngModelChange","ngModel","ngModelOptions"],[1,"visual-note"],["aria-hidden","true",1,"lbl"],["rows","2","aria-label","Narration",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["rows","2","aria-label","Visual or image prompt",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["for","contentName",1,"label"],[1,"req"],["id","contentName","maxlength","200","placeholder","e.g. Danger Signs in Pregnancy \u2014 Module 3",1,"field",3,"ngModelChange","ngModel"],[1,"req-hint"],[1,"revise"],["for","fb",1,"label"],["id","fb","rows","2","placeholder","e.g. scene 3's narration is too fast, split it in two; use a male training voice; the heading on scene 5 should be centred",1,"field",3,"ngModelChange","ngModel"],[1,"revise-row"],[1,"revise-voice"],["for","fbv",1,"label"],["id","fbv",1,"field",3,"ngModelChange","ngModel"],[1,"muted","note"],["name","mic"],["aria-label","Narration","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Key points on screen one per line","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Title overlay optional",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"lbl"],[1,"visual-row"],[1,"img-title"],["aria-label","How to treat your uploaded image",1,"field","treat",3,"ngModelChange","ngModel","ngModelOptions"],["value","asis"],["value","restyle"],["type","button",1,"btn","btn-ghost","tiny",3,"click"],["name","close"],["aria-label","Visual image prompt","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"field","attach",3,"ngModel","ngModelOptions"],[1,"field","attach",3,"ngModelChange","ngModel","ngModelOptions"],["role","status","aria-live","polite",1,"prod-now"],[1,"prod-icon"],[1,"prod-text"],[1,"prod-line"],[1,"prod-pct","mono"],["role","progressbar","aria-label","Video render progress","aria-valuemin","0","aria-valuemax","100",1,"bar"],[1,"prod-meta"],[1,"muted"],[1,"prod-steps"],[1,"prod-warn"],[1,"err-box","card-pad"],["type","button",1,"log-toggle",3,"click"],[1,"log"],[3,"class","is-last"],[1,"prod-step-node"],[1,"prod-step-body"],[1,"prod-step-name"],[1,"prod-step-detail"],["controls","",1,"player",3,"src"],["type","button",1,"btn","btn-ghost",3,"click"],["name","download"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],["name","trash"],[1,"qc","ok"],[1,"qc","bad"],["name","check"]],template:function(n,r){if(n&1&&(C(0,Vx,4,0),u(1,"p",0),g(2,"Upload the source material, describe how the video should look and feel, then review the scene plan and its cost before anything is produced."),d(),C(3,jx,2,1,"div",1),u(4,"div",2)(5,"section",3)(6,"div",4)(7,"span",5),g(8,"1"),d(),u(9,"h2",6),g(10,"Source material"),d()(),C(11,$x,11,7,"label",7)(12,qx,1,1)(13,Yx,12,6,"div",8),d(),u(14,"section",3)(15,"div",4)(16,"span",5),g(17,"2"),d(),u(18,"h2",6),g(19),d()(),C(20,Qx,2,0,"p",9),u(21,"div",10),Y(22,Kx,5,6,"button",11,yt),d(),u(24,"div",12)(25,"div"),C(26,Jx,3,1)(27,Xx,3,2),d(),u(28,"div",13)(29,"label",14),g(30,"Language"),d(),u(31,"select",15),te("ngModelChange",function(o){return ie(r.language,o)||(r.language=o),o}),Y(32,eS,2,2,"option",16,yt),d(),W(),u(34,"label",17),g(35,"Voice"),d(),u(36,"select",18),te("ngModelChange",function(o){return ie(r.voicePref,o)||(r.voicePref=o),o}),u(37,"option",19),g(38,"Auto \u2014 director picks & explains"),d(),Y(39,tS,2,2,"option",16,yt),d(),W(),d()(),C(41,aS,46,12,"div",20),u(42,"div",21)(43,"button",22),N("click",function(){return r.makePlan()}),C(44,cS,1,0,"span",23)(45,lS,1,0,"aa-icon",24),g(46),d(),C(47,dS,8,4,"span",25),d()(),C(48,DS,34,13,"section",3),C(49,jS,70,29,"section",3),C(50,KS,7,1,"section",3),C(51,ow,17,3,"section",3),d(),u(52,"aa-confirm-dialog",26),N("confirmed",function(){return r.deleteVideo.confirm()})("cancelled",function(){return r.deleteVideo.cancel()}),d()),n&2){let i,o;b(r.heading()==="on"?0:-1),f(3),b(r.error()?3:-1),f(8),b(r.doc()?r.isEditMode()?12:13:11),f(3),oe("dim",!r.hasSource()),f(5),D(r.isEditMode()?"What should be changed?":"How should the video look?"),f(),b(r.isEditMode()?-1:20),f(),E("hidden",r.isEditMode()),f(),Q(r.videoTypes),f(4),b(r.isEditMode()?26:27),f(5),ee("ngModel",r.language),E("disabled",!r.hasSource()||r.busy()),q(),f(),Q(r.languages),f(4),ee("ngModel",r.voicePref),E("disabled",!r.hasSource()||r.busy()),q(),f(3),Q(r.voices()),f(2),b(r.isEditMode()?-1:41),f(2),oe("is-running",r.planning()),E("disabled",!r.hasSource()||r.planning()||r.isEditMode()&&!r.brief.trim()),f(),b(r.planning()?44:45),f(2),T(" ",r.planning()?"Planning\u2026":r.isEditMode()?"Plan the edits":"Generate scene plan"," "),f(),b(r.planning()?47:-1),f(),b((i=r.editPlan())?48:-1,i),f(),b((o=r.result())?49:-1,o),f(),b(r.job()||r.producing()?50:-1),f(),b(r.hasVideo()?51:-1),f(),E("open",r.deleteVideo.open())("subject",r.contentName()||r.job()?.plan?.title||"")("busy",r.deleteVideo.busy())}},dependencies:[wn,li,qa,Za,Mn,ku,ci,ai,Fu,gr,di,In,lo],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #E0F2FE;--%NS%aastrika-cream-soft: #F0F7FF;--%NS%aastrika-bg: #F4F7FC;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #F8FAFC;--%NS%aastrika-ink: #0F172A;--%NS%aastrika-ink-2: #475569;--%NS%aastrika-muted: #94A3B8;--%NS%aastrika-primary: #0EA5E9;--%NS%aastrika-primary-soft: #E0F2FE;--%NS%aastrika-primary-deep: #0369A1;--%NS%aastrika-on-primary: #FFFFFF;--%NS%aastrika-gold: var(--%NS%aastrika-primary);--%NS%aastrika-gold-soft: var(--%NS%aastrika-primary-soft);--%NS%aastrika-gold-deep: var(--%NS%aastrika-primary-deep);--%NS%aastrika-line: #E2E8F0;--%NS%aastrika-line-2: #CBD5E1;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FEF6E7;--%NS%aastrika-warn-fg: #8F6206;--%NS%aastrika-warn-line: #F2D9A0;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-danger: #B42318;--%NS%aastrika-danger-line: #F2B8B0;--%NS%aastrika-danger-bg: #FEF3F2;--%NS%aastrika-console-bg: #0F172A;--%NS%aastrika-console-fg: #CBD5E1;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-text-xs: 12px;--%NS%aastrika-text-sm: 14px;--%NS%aastrika-text-md: 16px;--%NS%aastrika-text-lg: 20px;--%NS%aastrika-text-xl: 25px;--%NS%aastrika-text-2xl: 32px;--%NS%aastrika-space-1: 4px;--%NS%aastrika-space-2: 8px;--%NS%aastrika-space-3: 12px;--%NS%aastrika-space-4: 16px;--%NS%aastrika-space-6: 24px;--%NS%aastrika-space-8: 32px;--%NS%aastrika-space-12: 48px;--%NS%aastrika-ease: cubic-bezier(.22, 1, .36, 1);--%NS%aastrika-fast: .15s;--%NS%aastrika-slow: .32s;--%NS%aastrika-shadow-lift: 0 2px 4px rgba(26,26,26,.04), 0 12px 32px rgba(26,26,26,.07);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}[_nghost-%COMP%]{display:block;font-family:var(--%NS%aastrika-font);color:var(--%NS%aastrika-ink)}[_nghost-%COMP%] button[_ngcontent-%COMP%], [_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] select[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{font:inherit}[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] select[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink)}[_nghost-%COMP%] input[_ngcontent-%COMP%]:disabled, [_nghost-%COMP%] select[_ngcontent-%COMP%]:disabled, [_nghost-%COMP%] textarea[_ngcontent-%COMP%]:disabled{color:var(--%NS%aastrika-ink-2);-webkit-text-fill-color:var(--%NS%aastrika-ink-2);opacity:1}.eyebrow[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:var(--%NS%aastrika-text-xs);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-primary-deep);margin-bottom:var(--%NS%aastrika-space-3)}.eyebrow[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;max-width:220px;background:linear-gradient(to right,color-mix(in srgb,var(--%NS%aastrika-primary) 35%,transparent),transparent)}.page-title[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-2xl);line-height:1.12;letter-spacing:-.02em;font-weight:700;margin-bottom:12px;text-wrap:balance;max-width:30ch}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink-2);font-size:var(--%NS%aastrika-text-md);line-height:1.5;margin-bottom:30px;max-width:58ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:18px;box-shadow:inset 0 1px #ffffffe6,0 1px 2px #0f172a0a,0 8px 24px -12px #0f172a1a}.card-pad[_ngcontent-%COMP%]{padding:var(--%NS%aastrika-space-6) var(--%NS%aastrika-space-6)}.label[_ngcontent-%COMP%]{display:block;font-size:var(--%NS%aastrika-text-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:12px;outline:none;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.field[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2)}.field[_ngcontent-%COMP%]:focus{background:var(--%NS%aastrika-surface);border-color:var(--%NS%aastrika-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--%NS%aastrika-primary) 14%,transparent),0 2px 8px -2px color-mix(in srgb,var(--%NS%aastrika-primary) 22%,transparent)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:12px;border:1px solid transparent;box-shadow:inset 0 1px #ffffff38,0 1px 2px color-mix(in srgb,var(--%NS%aastrika-primary) 30%,transparent),0 6px 16px -6px color-mix(in srgb,var(--%NS%aastrika-primary) 45%,transparent);background:var(--%NS%aastrika-primary);color:var(--%NS%aastrika-on-primary);font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{background:color-mix(in srgb,var(--%NS%aastrika-primary) 8%,var(--%NS%aastrika-surface));color:color-mix(in srgb,var(--%NS%aastrika-primary-deep) 70%,var(--%NS%aastrika-muted));border-color:color-mix(in srgb,var(--%NS%aastrika-primary) 22%,transparent);box-shadow:none;cursor:not-allowed}.btn[_ngcontent-%COMP%]:disabled aa-icon[_ngcontent-%COMP%]{opacity:.75}.btn-lg[_ngcontent-%COMP%]{padding:13px 26px;font-size:var(--%NS%aastrika-text-sm);letter-spacing:.01em}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:var(--%NS%aastrika-text-xs);font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:var(--%NS%aastrika-max-width, 1100px)}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-primary-deep);box-shadow:inset 0 0 0 1.5px var(--%NS%aastrika-primary-soft);display:grid;place-items:center;font-size:var(--%NS%aastrika-text-xs);font-weight:700;font-variant-numeric:tabular-nums;transition:box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.step-n.is-active[_ngcontent-%COMP%]{background:var(--%NS%aastrika-primary-soft);box-shadow:inset 0 0 0 1.5px var(--%NS%aastrika-primary),0 0 0 4px color-mix(in srgb,var(--%NS%aastrika-primary) 12%,transparent)}.step-n.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-primary);color:var(--%NS%aastrika-on-primary);box-shadow:none}.step-t[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-md);font-weight:650;letter-spacing:-.01em;color:var(--%NS%aastrika-ink)}.card[_ngcontent-%COMP%] > .step-h[_ngcontent-%COMP%]{position:relative}.card[_ngcontent-%COMP%] > .step-h[_ngcontent-%COMP%]:before{content:"";position:absolute;left:13.5px;top:34px;width:1px;height:calc(100% + var(--%NS%aastrika-space-6));background:linear-gradient(to bottom,var(--%NS%aastrika-primary-soft),transparent);pointer-events:none}.card[_ngcontent-%COMP%]:last-of-type > .step-h[_ngcontent-%COMP%]:before{display:none}.step-note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--%NS%aastrika-ink) 2%,var(--%NS%aastrika-surface));box-shadow:none}.dim[_ngcontent-%COMP%] .step-t[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink-2)}.dim[_ngcontent-%COMP%] .card[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] .drop[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{opacity:.78}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:var(--%NS%aastrika-space-4);padding:var(--%NS%aastrika-space-4) var(--%NS%aastrika-space-6);border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:14px;cursor:pointer;background:var(--%NS%aastrika-surface-2);transition:border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-primary);background:var(--%NS%aastrika-cream-soft)}.drop[_ngcontent-%COMP%]{justify-content:flex-start;padding-left:var(--%NS%aastrika-space-6);min-height:78px}.drop.is-over[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-primary);border-style:solid;background:var(--%NS%aastrika-primary-soft);box-shadow:0 0 0 4px color-mix(in srgb,var(--%NS%aastrika-primary) 12%,transparent)}.drop-sub[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.card.is-interactive[_ngcontent-%COMP%]{transition:transform var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.card.is-interactive[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:var(--%NS%aastrika-shadow-lift);border-color:var(--%NS%aastrika-line-2)}.is-selected[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-primary)!important;box-shadow:inset 0 0 0 1px var(--%NS%aastrika-primary),var(--%NS%aastrika-shadow-lift)}@keyframes _ngcontent-%COMP%_aa-shimmer{to{background-position:200% 0}}.is-working[_ngcontent-%COMP%]{background-image:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--%NS%aastrika-primary) 9%,transparent) 50%,transparent 70%);background-size:200% 100%;animation:_ngcontent-%COMP%_aa-shimmer 1.8s linear infinite}@keyframes _ngcontent-%COMP%_aa-rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.aa-enter[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_aa-rise var(--%NS%aastrika-slow) var(--%NS%aastrika-ease) both}.label[_ngcontent-%COMP%]:has(aa-icon), .btn[_ngcontent-%COMP%]:has(aa-icon), .warn-note[_ngcontent-%COMP%]:has(aa-icon), .qc-note[_ngcontent-%COMP%]:has(aa-icon), .visual-note[_ngcontent-%COMP%]:has(aa-icon), .picked-name[_ngcontent-%COMP%]:has(aa-icon), .act-btn[_ngcontent-%COMP%]:has(aa-icon){display:inline-flex;align-items:center;gap:var(--%NS%aastrika-space-2)}.label[_ngcontent-%COMP%]:has(aa-icon){display:flex}.btn[_ngcontent-%COMP%]:focus-visible, .field[_ngcontent-%COMP%]:focus-visible, .card.is-interactive[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%aastrika-primary);outline-offset:2px}.btn[_ngcontent-%COMP%]{transition:background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),transform var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.btn[_ngcontent-%COMP%]:not(:disabled):active{transform:translateY(1px)}@media(prefers-reduced-motion:reduce){.is-working[_ngcontent-%COMP%]{animation:none;background-image:none}.aa-enter[_ngcontent-%COMP%]{animation:none}.card.is-interactive[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]{transition:none}.card.is-interactive[_ngcontent-%COMP%]:hover, .btn[_ngcontent-%COMP%]:not(:disabled):active{transform:none}}@keyframes _ngcontent-%COMP%_aa-breathe{0%,to{box-shadow:0 0 0 1px var(--%NS%aastrika-primary-soft),0 0 color-mix(in srgb,var(--%NS%aastrika-primary) 18%,transparent)}50%{box-shadow:0 0 0 1px color-mix(in srgb,var(--%NS%aastrika-primary) 45%,transparent),0 0 0 10px color-mix(in srgb,var(--%NS%aastrika-primary) 6%,transparent)}}.is-thinking[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_aa-breathe 2.4s var(--%NS%aastrika-ease) infinite;border-color:transparent!important}.card.is-interactive[_ngcontent-%COMP%]{position:relative;overflow:hidden}.card.is-interactive[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--%NS%aastrika-primary) 35%,color-mix(in srgb,var(--%NS%aastrika-primary) 55%,#fff) 50%,var(--%NS%aastrika-primary) 65%,transparent);opacity:0;transition:opacity var(--%NS%aastrika-fast) var(--%NS%aastrika-ease);pointer-events:none}.card.is-interactive[_ngcontent-%COMP%]:hover:after, .card.is-interactive[_ngcontent-%COMP%]:focus-visible:after{opacity:1}.card.is-selected[_ngcontent-%COMP%]:after{opacity:1}@media(prefers-reduced-motion:reduce){.is-thinking[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 1px var(--%NS%aastrika-primary)}.card.is-interactive[_ngcontent-%COMP%]:after{transition:none}}[_nghost-%COMP%]{background-image:radial-gradient(60rem 40rem at 88% -10%,color-mix(in srgb,var(--%NS%aastrika-primary) 7%,transparent),transparent 60%),radial-gradient(50rem 35rem at -8% 108%,color-mix(in srgb,var(--%NS%aastrika-primary) 5%,transparent),transparent 60%);background-attachment:fixed;background-repeat:no-repeat}@keyframes _ngcontent-%COMP%_aa-spin-arc{to{transform:rotate(360deg)}}.aa-spinner[_ngcontent-%COMP%]{display:inline-block;flex:none;width:1em;height:1em;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,currentColor 300deg,transparent 360deg);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 2px));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 2px));animation:_ngcontent-%COMP%_aa-spin-arc .8s linear infinite;opacity:.9}.btn[_ngcontent-%COMP%] .aa-spinner[_ngcontent-%COMP%]{width:1.05em;height:1.05em}@media(prefers-reduced-motion:reduce){.aa-spinner[_ngcontent-%COMP%]{animation:none;background:conic-gradient(from 0deg,currentColor 0deg 360deg);opacity:.35}}','.bar[_ngcontent-%COMP%]{height:8px;background:var(--%NS%aastrika-surface-2);border-radius:999px;overflow:hidden;margin-bottom:14px}.bar[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%;background:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%);transition:width .4s ease}.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%),repeating-linear-gradient(115deg,#ffffff47 0 12px,#fff0 12px 26px);background-size:100% 100%,200% 100%;animation:_ngcontent-%COMP%_bar-stripe 1.5s linear infinite}@keyframes _ngcontent-%COMP%_bar-stripe{to{background-position:0 0,-200% 0}}@media(prefers-reduced-motion:reduce){.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{animation:none}}.prod-now[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:14px;background:var(--%NS%aastrika-cream-soft);border:1px solid var(--%NS%aastrika-gold-soft);border-radius:10px}.prod-now.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg, rgba(47,107,79,.07));border-color:#2f6b4f4d}.prod-now.is-failed[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);border-color:#9a3b2e4d}.prod-icon[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-lg);line-height:1;flex:none}.prod-icon.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_prod-pulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_prod-pulse{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.prod-icon.spin[_ngcontent-%COMP%]{animation:none}}.prod-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.prod-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm)}.prod-line[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm);color:var(--%NS%aastrika-muted)}.prod-pct[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-lg);font-weight:700;color:var(--%NS%aastrika-gold-deep);flex:none;font-variant-numeric:tabular-nums}.prod-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);margin-bottom:16px}.prod-steps[_ngcontent-%COMP%]{list-style:none;margin:0 0 16px;padding:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:26px 1fr;gap:12px;padding:0 0 16px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]{padding-bottom:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:12px;top:26px;bottom:2px;width:2px;background:var(--%NS%aastrika-line-2);border-radius:1px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]:before{display:none}.prod-step-done[_ngcontent-%COMP%]:before{background:var(--%NS%aastrika-ok-fg, #2F6B4F);opacity:.45}.prod-step-node[_ngcontent-%COMP%]{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:var(--%NS%aastrika-text-xs);font-weight:700;background:var(--%NS%aastrika-surface);border:2px solid var(--%NS%aastrika-line-2);color:var(--%NS%aastrika-muted)}.prod-step-done[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-fg, #2F6B4F);border-color:var(--%NS%aastrika-ok-fg, #2F6B4F);color:#fff}.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:var(--%NS%aastrika-gold-deep);font-size:var(--%NS%aastrika-text-sm);animation:_ngcontent-%COMP%_node-ring 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_node-ring{0%,to{box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}50%{box-shadow:0 0 0 7px #d4b05338}}@media(prefers-reduced-motion:reduce){.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 4px var(--%NS%aastrika-gold-soft)}}.prod-step-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;padding-top:3px}.prod-step-name[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm)}.prod-step-todo[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);opacity:.65}.prod-step-done[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.prod-step-active[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink);font-weight:600}.prod-step-detail[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.prod-warn[_ngcontent-%COMP%]{padding:11px 14px;margin-bottom:14px;border-radius:8px;background:var(--%NS%aastrika-warn-bg);border:1px solid color-mix(in srgb,var(--%NS%aastrika-warn-fg) 28%,transparent);font-size:var(--%NS%aastrika-text-sm);display:grid;gap:3px}.log-toggle[_ngcontent-%COMP%]{background:none;border:0;padding:4px 0;font:inherit;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-gold-deep);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.log-toggle[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-ink)}',".plan-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.plan-title[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-md);font-weight:700}.cost[_ngcontent-%COMP%]{text-align:right}.cost-n[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-lg);font-weight:700;color:var(--%NS%aastrika-primary-deep);font-variant-numeric:tabular-nums;letter-spacing:-.02em}.cost-l[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.scene[_ngcontent-%COMP%]{display:grid;grid-template-columns:46px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.types[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px;margin-bottom:22px}.type[_ngcontent-%COMP%]{text-align:left;padding:14px 16px;border-radius:var(--%NS%aastrika-r);border:1.5px solid var(--%NS%aastrika-line);background:var(--%NS%aastrika-surface);cursor:pointer;display:grid;gap:4px}.type[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2);transform:translateY(-2px);box-shadow:0 8px 20px -10px #0f172a2e}.type[_ngcontent-%COMP%]:active:not(:disabled){transform:translateY(0)}.type.sel[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-primary);background:var(--%NS%aastrika-primary-soft);box-shadow:0 6px 16px -10px color-mix(in srgb,var(--%NS%aastrika-primary) 50%,transparent)}.type[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm);color:var(--%NS%aastrika-ink)}.type[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-ink-2);line-height:1.45}.type[_ngcontent-%COMP%]:disabled{cursor:not-allowed;background:color-mix(in srgb,var(--%NS%aastrika-ink) 2%,var(--%NS%aastrika-surface));border-color:var(--%NS%aastrika-line)}.type[_ngcontent-%COMP%]:disabled b[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink-2)}.type[_ngcontent-%COMP%]:disabled span[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:stretch}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;flex-direction:column}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child textarea[_ngcontent-%COMP%]{flex:1 1 auto;min-height:120px}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%]{margin-top:14px}.check[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-size:var(--%NS%aastrika-text-sm);cursor:pointer}.check[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:auto;margin-top:2px}.extras[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;align-items:start}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{min-height:2.4em}.hint[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);margin-top:5px}.img-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:7px}.img-name[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.img-note[_ngcontent-%COMP%]{flex:1;padding:6px 9px;font-size:var(--%NS%aastrika-text-xs)}.x[_ngcontent-%COMP%]{border:0;background:none;color:var(--%NS%aastrika-muted);font-size:var(--%NS%aastrika-text-md);cursor:pointer;line-height:1}.x[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-err-fg)}.cost-b[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);margin-top:3px}.keys[_ngcontent-%COMP%]{margin:7px 0 0;padding-left:18px;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-ink-2)}.keys[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:2px}.revise[_ngcontent-%COMP%]{margin-top:22px;padding-top:18px;border-top:1px solid var(--%NS%aastrika-line)}.revise-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:14px;margin-top:12px}.revise-voice[_ngcontent-%COMP%]{max-width:280px;flex:1}@media(max-width:900px){.cols[_ngcontent-%COMP%], .extras[_ngcontent-%COMP%]{grid-template-columns:1fr}.revise-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.scene[_ngcontent-%COMP%]{display:block;padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.sh[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;font-size:var(--%NS%aastrika-text-xs);font-weight:600;color:var(--%NS%aastrika-gold-deep);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}.sh[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:var(--%NS%aastrika-muted);font-weight:400;text-transform:none;letter-spacing:0}.lbl[_ngcontent-%COMP%]{display:block;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);margin:10px 0 4px}.scene[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm)}.visual-note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm);color:var(--%NS%aastrika-ok-fg);background:var(--%NS%aastrika-ok-bg);padding:8px 11px;border-radius:8px}.visual-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.img-title[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm)}.treat[_ngcontent-%COMP%]{flex:1;min-width:240px;font-size:var(--%NS%aastrika-text-xs)}.attach[_ngcontent-%COMP%]{margin-top:6px;font-size:var(--%NS%aastrika-text-xs)}.tiny[_ngcontent-%COMP%]{padding:5px 11px;font-size:var(--%NS%aastrika-text-xs)}.meta-line[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);margin-top:3px}.voice-why[_ngcontent-%COMP%]{margin:6px 0 0;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);max-width:52ch}.produce-row[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.produce-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:var(--%NS%aastrika-danger);border-color:var(--%NS%aastrika-danger-line)}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-danger-bg)}.log[_ngcontent-%COMP%]{background:var(--%NS%aastrika-console-bg);color:var(--%NS%aastrika-console-fg);font-family:var(--%NS%aastrika-mono);font-size:var(--%NS%aastrika-text-xs);border-radius:10px;padding:14px;max-height:260px;overflow-y:auto;white-space:pre-wrap;margin:0}.qc[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm);margin:0 0 14px}.qc.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.qc.bad[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);padding:12px 14px;border-radius:10px}.qc.bad[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 6px}.qc.bad[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:20px}.player[_ngcontent-%COMP%]{width:100%;border-radius:var(--%NS%aastrika-r);background:#000;display:block}.mode-note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-gold-deep);margin:12px 0 0}.mode-warn[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);line-height:1.5;margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid rgba(180,120,0,.35);background:#ffc40014}.seg-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;text-transform:none;letter-spacing:0;font-weight:600}.kf[_ngcontent-%COMP%]{width:88px;height:50px;object-fit:cover;border-radius:6px;border:1px solid var(--%NS%aastrika-line)}.act-sel[_ngcontent-%COMP%]{max-width:250px;font-size:var(--%NS%aastrika-text-xs);padding:6px 10px}.scene.cut[_ngcontent-%COMP%]{opacity:.55}.scene.cut[_ngcontent-%COMP%] .kf[_ngcontent-%COMP%]{filter:grayscale(1)}.req[_ngcontent-%COMP%]{color:var(--%NS%aastrika-danger);font-weight:700}.field.invalid[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-danger)}.req-hint[_ngcontent-%COMP%]{color:var(--%NS%aastrika-danger);font-size:.82rem;margin:.25rem 0 0}.step-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);margin:.1rem 0 1rem;font-size:.9rem}.more-body[_ngcontent-%COMP%]{padding-top:.5rem}.opt-group[_ngcontent-%COMP%]{margin-top:1rem;padding:.9rem 1rem;border:1px dashed rgba(0,0,0,.14);border-radius:10px;background:#00000004}.opt-head[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;letter-spacing:.02em;color:var(--%NS%aastrika-muted);margin-bottom:.5rem}.file-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--%NS%aastrika-line);border-radius:8px;cursor:pointer;font-size:.85rem;color:var(--%NS%aastrika-muted);background:#fff;transition:border-color .15s,background .15s}.file-btn[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-primary);background:#00000005}.file-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;flex:none}.file-btn.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.btn[_ngcontent-%COMP%]:disabled.is-running{background:var(--%NS%aastrika-primary);color:var(--%NS%aastrika-on-primary)}.drop-icon[_ngcontent-%COMP%]{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:14px;background:var(--%NS%aastrika-primary-soft);color:var(--%NS%aastrika-primary-deep);transition:transform var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.drop[_ngcontent-%COMP%]:hover .drop-icon[_ngcontent-%COMP%]{transform:scale(1.06)}.drop.is-reading[_ngcontent-%COMP%]{cursor:progress;border-style:solid;border-color:var(--%NS%aastrika-primary);background:var(--%NS%aastrika-primary-soft)}.drop.is-reading[_ngcontent-%COMP%] .drop-icon[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--%NS%aastrika-space-3);padding:var(--%NS%aastrika-space-3) var(--%NS%aastrika-space-4);border:1px solid var(--%NS%aastrika-line);border-radius:14px;background:var(--%NS%aastrika-surface-2)}.picked-text[_ngcontent-%COMP%]{flex:1;min-width:0}.picked-name[_ngcontent-%COMP%]{font-weight:600;overflow-wrap:anywhere}.picked-badge[_ngcontent-%COMP%]{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:var(--%NS%aastrika-primary-soft);color:var(--%NS%aastrika-primary-deep)}.picked[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{flex:none}.plan-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--%NS%aastrika-space-4);flex-wrap:wrap}.plan-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{flex:none}.plan-row[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{flex:1 1 280px;max-width:460px}"],changeDetection:1})};function Nv(e){let t=e.everyMs??2500,n=null,r=()=>{n&&clearTimeout(n),n=null},i=o=>{e.fetch(o).subscribe({next:s=>{e.onTick?.(s),s.status==="done"?(r(),e.onDone(s)):s.status==="failed"?(r(),e.onFailed(s.error??"It did not finish. Please try again.",s)):n=setTimeout(()=>i(o),t)},error:s=>{r(),e.onFailed(s instanceof Error?s.message:String(s))}})};return{start(o){r(),i(o)},stop:r}}var Xa=()=>({standalone:!0}),So=(e,t)=>t.id,Bu=(e,t)=>t.code;function sw(e,t){e&1&&(u(0,"p",46),g(1,"Assessment"),d(),u(2,"h1",47),g(3,"Create an assessment from your training material"),d())}function aw(e,t){if(e&1&&(u(0,"div",1),g(1),d()),e&2){let n=y();f(),D(n.error())}}function cw(e,t){if(e&1&&(u(0,"span",14),g(1),d()),e&2){let n=y();f(),it("",n.files().length," file",n.files().length===1?"":"s"," attached")}}function lw(e,t){e&1&&O(0,"span",16)}function dw(e,t){e&1&&O(0,"aa-icon",17)}function uw(e,t){if(e&1&&(u(0,"span",52),g(1),d()),e&2){let n=y().$implicit;f(),D(n.error)}}function fw(e,t){if(e&1&&(u(0,"span",53),g(1),ht(2,"number"),d()),e&2){let n=y().$implicit;f(),T("",lr(2,1,n.chars)," chars")}}function pw(e,t){if(e&1){let n=H();u(0,"li",49)(1,"input",50),N("change",function(){let i=M(n).$implicit,o=y(2);return I(o.toggleSource(i))}),d(),u(2,"span",51),g(3),d(),C(4,uw,2,1,"span",52)(5,fw,3,3,"span",53),d()}if(e&2){let n=t.$implicit,r=t.$index,i=y(2);rt("animation-delay",r*40+"ms"),oe("bad",n.error)("off",!n.error&&!n.checked),f(),E("checked",n.checked)("disabled",!!n.error||i.busy()),f(2),D(n.name),f(),b(n.error?4:5)}}function gw(e,t){if(e&1&&(u(0,"ul",20),Y(1,pw,6,10,"li",48,xn),d()),e&2){let n=y();f(),Q(n.sources())}}function hw(e,t){if(e&1&&(u(0,"option",27),g(1),d()),e&2){let n=t.$implicit;E("value",n.id),f(),D(n.plan?.title||n.filename||n.id)}}function mw(e,t){if(e&1&&(u(0,"option",27),g(1),d()),e&2){let n=t.$implicit;E("value",n.code),f(),D(n.name)}}function vw(e,t){if(e&1&&(u(0,"option",35),g(1),d()),e&2){let n=t.$implicit;E("ngValue",n),f(),D(n)}}function yw(e,t){if(e&1&&(u(0,"option",27),g(1),d()),e&2){let n=t.$implicit;E("value",n.id),f(),D(n.label)}}function _w(e,t){if(e&1&&(u(0,"option",27),g(1),d()),e&2){let n=t.$implicit;E("value",n.id),f(),D(n.label)}}function Cw(e,t){if(e&1){let n=H();u(0,"label",56)(1,"input",57),N("change",function(){let i=M(n).$implicit,o=y(2);return I(o.toggleLanguage(i.code))}),d(),g(2),d()}if(e&2){let n=t.$implicit,r=y(2);oe("on",r.translateInto().has(n.code)),f(),E("checked",r.translateInto().has(n.code))("disabled",r.generating()),f(),T(" ",n.name," ")}}function bw(e,t){if(e&1&&(u(0,"fieldset",40)(1,"legend"),g(2,"Also generate in \u2014 the "),u(3,"strong"),g(4,"same"),d(),g(5," questions, translated (optional)"),d(),u(6,"div",54),Y(7,Cw,3,5,"label",55,Bu),d(),u(9,"p",45),g(10," Same question order, same options, same answer key in every language \u2014 you review each language on its own tab, and nothing needs translating afterwards. "),d()()),e&2){let n=y();f(7),Q(n.secondaryChoices())}}function Dw(e,t){e&1&&O(0,"span",16)}function Ew(e,t){e&1&&O(0,"aa-icon",43)}function xw(e,t){if(e&1&&(u(0,"span",44)(1,"span",58),O(2,"span",59),g(3),u(4,"span",60),g(5),d()(),u(6,"span",61),O(7,"span",62),d()()),e&2){let n=y();f(3),T("",n.stage()," "),f(2),T("",n.elapsed(),"s"),f(2),rt("width",n.progressPct(),"%")}}function Sw(e,t){if(e&1&&(u(0,"span",45),g(1),d()),e&2){let n=y();f(),D(n.plannedSummary())}}function ww(e,t){e&1&&g(0," \xB7 all languages")}function Mw(e,t){if(e&1&&g(0),e&2){let n=y(2);T(" \xB7 ",n.viewedLanguageName())}}function Iw(e,t){if(e&1&&(u(0,"div",71),g(1),d()),e&2){let n=y();f(),T("Quality check corrected ",n.qcFixed," question(s) before showing them.")}}function Nw(e,t){if(e&1&&(u(0,"div",72)(1,"strong"),g(2),d(),g(3),d()),e&2){let n=y(2);f(2),D(n.failedLanguageNames()),f(),T(" could not be completed this time. Your questions are safe \u2014 try generating again to add ",n.failedLanguageNames(),". ")}}function Tw(e,t){e&1&&(u(0,"p",73),g(1," Excel gives you one file with a sheet per language. CSV gives you one language \u2014 whichever tab you are reading. "),d())}function kw(e,t){if(e&1&&(u(0,"div",72),g(1),d()),e&2){let n=y(2);f(),T(" You have changed the questions, so the other languages still show the earlier wording. Generate again to update them, or download ",n.languageName(n.language())," on its own. ")}}function Ow(e,t){if(e&1){let n=H();u(0,"button",77),N("click",function(){let i=M(n).$implicit,o=y(3);return I(o.viewing.set(i.code))}),g(1),d()}if(e&2){let n=t.$implicit,r=y(3);oe("on",r.viewing()===n.code),ke("aria-selected",r.viewing()===n.code),f(),D(n.name)}}function Aw(e,t){if(e&1&&(u(0,"div",74),Y(1,Ow,2,4,"button",76,Bu),d()),e&2){let n=y(2);f(),Q(n.resultLanguages())}}function Pw(e,t){if(e&1){let n=H();u(0,"label",91),O(1,"input",92),u(2,"span",93),g(3),d(),u(4,"input",94),N("input",function(i){let o=M(n).$index,s=y().$implicit,a=y(3);return I(a.editTranslatedOption(s,o,i.target.value))}),d()()}if(e&2){let n=t.$implicit,r=t.$index,i=y().$implicit,o=y(3);oe("correct",r===i.correctIndex),f(),E("title",zd("the correct answer is set on the ",o.languageName(o.language())," tab"))("checked",r===i.correctIndex),f(2),D("ABCDEF"[r]),f(),E("value",n)}}function Rw(e,t){if(e&1){let n=H();u(0,"textarea",95),te("ngModelChange",function(i){M(n);let o=y().$implicit;return ie(o.explanation,i)||(o.explanation=i),I(i)}),N("ngModelChange",function(){M(n);let i=y(4);return I(i.touched())}),d(),W(),u(1,"p",96),g(2),d()}if(e&2){let n=y().$implicit;ee("ngModel",n.explanation),E("ngModelOptions",Oe(3,Xa)),q(),f(2),T("Source: ",n.sourceRef)}}function Fw(e,t){if(e&1){let n=H();u(0,"div",79)(1,"div",82)(2,"span",83),g(3),d(),u(4,"div",84)(5,"textarea",85),te("ngModelChange",function(i){let o=M(n).$implicit;return ie(o.question,i)||(o.question=i),I(i)}),N("ngModelChange",function(){M(n);let i=y(3);return I(i.touched())}),d(),W(),u(6,"div",86),Y(7,Pw,5,7,"label",87,xn),d(),u(9,"div",88)(10,"span",89),g(11),d(),u(12,"span",89),g(13),d(),u(14,"button",90),N("click",function(){let i=M(n).$implicit,o=y(3);return I(o.toggle(i.id))}),g(15),d()(),C(16,Rw,3,4),d()()()}if(e&2){let n=t.$implicit,r=t.$index,i=y(3);f(3),D(r+1),f(2),ee("ngModel",n.question),E("ngModelOptions",Oe(7,Xa)),q(),f(2),Q(n.options),f(4),D(n.difficulty),f(2),D(n.bloom),f(2),T(" ",i.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),b(i.revealed()[n.id]?16:-1)}}function Lw(e,t){if(e&1){let n=H();u(0,"p",78),g(1," Reword anything on this tab. "),u(2,"strong"),g(3,"The correct answer is shared by every language"),d(),g(4),d(),Y(5,Fw,17,8,"div",79,So),u(7,"div",80)(8,"button",81),N("click",function(){M(n);let i=y(2);return I(i.save())}),g(9),d()()}if(e&2){let n=y(2);f(4),T(" \u2014 tick it on the ",n.languageName(n.language())," tab and it changes here too. "),f(),Q(n.viewedQuestions()),f(3),E("disabled",n.saving()),f(),T(" ",n.saving()?"Saving\u2026":n.saved()?"Saved":"Save edits"," ")}}function Vw(e,t){if(e&1){let n=H();u(0,"label",91)(1,"input",100),N("change",function(){let i=M(n).$index,o=y().$implicit,s=y(3);return I(s.markCorrect(o,i))}),d(),u(2,"span",93),g(3),d(),u(4,"input",94),N("input",function(i){let o=M(n).$index,s=y().$implicit,a=y(3);return I(a.editOption(s,o,i.target.value))}),d()()}if(e&2){let n=t.$implicit,r=t.$index,i=y(),o=i.$implicit,s=i.$index;oe("correct",r===o.correctIndex),f(),E("name","correct-"+s)("checked",r===o.correctIndex),f(2),D("ABCDEF"[r]),f(),E("value",n)}}function jw(e,t){if(e&1){let n=H();u(0,"textarea",95),te("ngModelChange",function(i){M(n);let o=y().$implicit;return ie(o.explanation,i)||(o.explanation=i),I(i)}),N("ngModelChange",function(){M(n);let i=y(4);return I(i.touched())}),d(),W(),u(1,"p",96),g(2),d()}if(e&2){let n=y().$implicit;ee("ngModel",n.explanation),E("ngModelOptions",Oe(3,Xa)),q(),f(2),T("Source: ",n.sourceRef)}}function Bw(e,t){if(e&1){let n=H();u(0,"div",99)(1,"div",82)(2,"span",83),g(3),d(),u(4,"div",84)(5,"textarea",85),te("ngModelChange",function(i){let o=M(n).$implicit;return ie(o.question,i)||(o.question=i),I(i)}),N("ngModelChange",function(){M(n);let i=y(3);return I(i.touched())}),d(),W(),u(6,"div",86),Y(7,Vw,5,6,"label",87,xn),d(),u(9,"div",88)(10,"span",89),g(11),d(),u(12,"span",89),g(13),d(),u(14,"button",90),N("click",function(){let i=M(n).$implicit,o=y(3);return I(o.toggle(i.id))}),g(15),d()(),C(16,jw,3,4),d()()()}if(e&2){let n=t.$implicit,r=t.$index,i=y(3);rt("animation-delay",r*45+"ms"),f(3),D(r+1),f(2),ee("ngModel",n.question),E("ngModelOptions",Oe(9,Xa)),q(),f(2),Q(n.options),f(4),D(n.difficulty),f(2),D(n.bloom),f(2),T(" ",i.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),b(i.revealed()[n.id]?16:-1)}}function Hw(e,t){if(e&1){let n=H();Y(0,Bw,17,10,"div",97,So),u(2,"div",80)(3,"button",81),N("click",function(){M(n);let i=y(2);return I(i.save())}),g(4),d(),u(5,"span",98),g(6,"Save before downloading so the export matches what you see."),d()()}if(e&2){let n=y(),r=y();Q(n.assessment.questions),f(3),E("disabled",r.saving()),f(),T(" ",r.saving()?"Saving\u2026":r.saved()?"Saved":"Save edits"," ")}}function Uw(e,t){e&1&&g(0," Every language is a sheet of its own in the same workbook. ")}function $w(e,t){if(e&1){let n=H();u(0,"section",3)(1,"div",4)(2,"span",5),g(3,"3"),d(),u(4,"h2",6),g(5,"Review questions"),d(),u(6,"span",63),g(7,"\u2014 edit anything, tick the correct option, then download"),d()(),u(8,"div",64)(9,"div")(10,"div",65),g(11),d(),u(12,"div",66),g(13),d()(),u(14,"div",67)(15,"button",68),N("click",function(){M(n);let i=y();return I(i.export("xlsx"))}),O(16,"aa-icon",69),g(17,"Excel"),C(18,ww,1,0),d(),u(19,"button",70),N("click",function(){M(n);let i=y();return I(i.export("csv"))}),O(20,"aa-icon",69),g(21,"CSV"),C(22,Mw,1,1),d()()(),C(23,Iw,2,1,"div",71),C(24,Nw,4,2,"div",72),C(25,Tw,2,0,"p",73),C(26,kw,2,1,"div",72),C(27,Aw,3,0,"div",74),C(28,Lw,10,3),C(29,Hw,7,2),u(30,"p",75),g(31," Format: Question \xB7 Option 1\u2026N \xB7 Correct Answer. The Excel file has a second sheet with difficulty, Bloom's level, source reference and explanations. "),C(32,Uw,1,0),d()()}if(e&2){let n=t,r=y();f(11),D(r.viewedTitle()),f(2),T("",r.viewedQuestions().length," questions"),f(5),b(r.hasTranslations()?18:-1),f(4),b(r.hasTranslations()?22:-1),f(),b(n.qcFixed?23:-1),f(),b(n.failedLanguages?.length?24:-1),f(),b(r.hasTranslations()?25:-1),f(),b(r.translationsStale()?26:-1),f(),b(r.resultLanguages().length>1?27:-1),f(),b(r.viewing()?28:-1),f(),b(r.viewing()?-1:29),f(3),b(r.resultLanguages().length>1?32:-1)}}var Ja=class e{api=x(Wt);destroyRef=x(fe);get untilGone(){return t=>t.pipe(ni(this.destroyRef))}files=k([]);sources=k([]);reading=k(!1);generating=k(!1);result=k(null);error=k("");revealed=k({});languages=k([]);pastVideos=k([]);heading=be("on");defaultLanguage=be(void 0);defaultQuestionCount=be(void 0);defaultDifficulty=be(void 0);defaultTranslateInto=be(void 0);assessmentReady=Sn();seeded=!1;translateInto=k(new Set);busy=$(()=>this.generating()||this.reading());viewing=k("");stage=k("");serverProgress=k(null);elapsed=k(0);progressPct=$(()=>{let t=this.activeSecondaries().length?75:35,n=Math.min(95,Math.round(this.elapsed()/t*100)),r=this.serverProgress();return r===null?n:Math.min(99,Math.max(r,n))});stageTimers=[];runStages(){this.stopStages();let t=this.activeSecondaries().map(i=>this.languageName(i)),n=t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`,r=[[0,"Reading your material\u2026"],[4e3,"Writing your questions\u2026"],[22e3,"Checking each question against your material\u2026"]];t.length?(r.push([34e3,`Translating into ${n}\u2026`]),r.push([52e3,`Checking the ${n} wording\u2026`]),r.push([7e4,"Re-translating anything that came back wrong\u2026"]),r.push([95e3,"Almost there \u2014 finishing the last language\u2026"])):r.push([34e3,"Almost there\u2026"]);for(let[i,o]of r)this.stageTimers.push(setTimeout(()=>{this.generating()&&(this.stage.set(o),this.elapsed.update(s=>s))},i));this.stage.set(r[0][1]),this.elapsed.set(0),this.stageTimers.push(setInterval(()=>{this.generating()&&this.elapsed.update(i=>i+1)},1e3))}stopStages(){for(let t of this.stageTimers)clearTimeout(t),clearInterval(t);this.stageTimers=[],this.stage.set("")}links="";brief="";sourceJobId="";language=k("hi");numQuestions=10;numOptions=4;difficulty="mixed";bloom="mixed";optionCounts=[2,3,4,5,6];difficulties=[{id:"mixed",label:"Mixed (30% easy \xB7 45% medium \xB7 25% hard)"},{id:"easy",label:"Easy \u2014 direct recall"},{id:"medium",label:"Medium \u2014 comprehension"},{id:"hard",label:"Hard \u2014 close distractors"}];blooms=[{id:"mixed",label:"Mixed (remember \xB7 understand \xB7 apply)"},{id:"apply",label:"Application-oriented \u2014 field scenarios"},{id:"understand",label:"Understanding \u2014 explain why"},{id:"remember",label:"Recall \u2014 facts & definitions"}];constructor(){this.destroyRef.onDestroy(()=>{this.stopStages(),this.poll.stop()}),xt(()=>{let t=this.defaultLanguage(),n=this.defaultQuestionCount(),r=this.defaultDifficulty(),i=this.defaultTranslateInto();this.seeded||(t&&this.language.set(t),n&&(this.numQuestions=n),r&&(this.difficulty=r),i&&this.translateInto.set(new Set(i.split(",").map(o=>o.trim()).filter(Boolean))),(t||n||r||i)&&(this.seeded=!0))}),this.api.languages().pipe(this.untilGone).subscribe({next:t=>{let n=Object.entries(t).map(([r,i])=>({code:r,name:i}));this.languages.set(n)},error:t=>{ue(t,"assessment"),this.languages.set([{code:"hi",name:"Hindi"},{code:"en",name:"English"}])}}),this.api.studioJobs().pipe(this.untilGone).subscribe({next:t=>this.pastVideos.set(t.filter(n=>n.plan)),error:t=>{ue(t,"assessment")}})}chooseFiles(t){this.files.set(Array.from(t.target.files??[]))}readSources(){!this.files().length&&!this.links.trim()||(this.error.set(""),this.reading.set(!0),this.api.readSources(this.files(),this.links,this.language()).pipe(this.untilGone).subscribe({next:t=>{let n=(t.sources||[]).map(r=>z(B({},r),{checked:!r.error}));this.sources.update(r=>[...r,...n]),this.reading.set(!1)},error:t=>{this.error.set(ue(t,"assessment")),this.reading.set(!1)}}))}get readySources(){return this.sources().filter(t=>!t.error&&t.checked)}toggleSource(t){t.error||(t.checked=!t.checked,this.sources.update(n=>[...n]))}generate(){!this.readySources.length&&!this.sourceJobId||(this.error.set(""),this.generating.set(!0),this.result.set(null),this.viewing.set(""),this.translationsStale.set(!1),this.serverProgress.set(null),this.runStages(),this.api.generateAssessment({language:this.language(),numQuestions:Number(this.numQuestions),numOptions:Number(this.numOptions),difficulty:this.difficulty,bloom:this.bloom,userPrompt:this.brief||void 0,translateInto:this.activeSecondaries(),sourceIds:this.readySources.map(t=>t.id).filter(Boolean),sourceJobId:this.sourceJobId||void 0}).pipe(this.untilGone).subscribe({next:({jobId:t})=>this.poll.start(t),error:t=>this.finishWith(ue(t,"assessment"))}))}poll=Nv({fetch:t=>this.api.assessmentJob(t).pipe(this.untilGone),onTick:t=>{typeof t.progress=="number"&&this.serverProgress.set(t.progress)},onDone:t=>{let n=t.assessment;this.result.set({jobId:t.id,assessment:n,failedLanguages:t.settings?.failedLanguages}),this.finishWith(""),this.assessmentReady.emit({jobId:t.id,questionCount:n?.questions?.length??0,language:this.language(),languages:Object.keys(n?.translations??{})})},onFailed:t=>this.finishWith(t)});finishWith(t){t&&this.error.set(t),this.generating.set(!1),this.stopStages()}toggle(t){this.revealed.update(n=>z(B({},n),{[t]:!n[t]}))}secondaryChoices=$(()=>this.languages().filter(t=>t.code!==this.language()));activeSecondaries=$(()=>[...this.translateInto()].filter(t=>t!==this.language()));toggleLanguage(t){this.translateInto.update(n=>{let r=new Set(n);return r.delete(t)||r.add(t),r})}plannedSummary=$(()=>{let t=this.activeSecondaries().map(r=>this.languageName(r));return t.length?`Also in ${t.length===1?t[0]:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`} \u2014 takes a little longer`:""});resultLanguages=$(()=>{let t=this.result()?.assessment?.translations??{};return[{code:"",name:this.languageName(this.language())},...Object.keys(t).map(n=>({code:n,name:this.languageName(n)}))]});viewedTitle=$(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.title:t?.title)??""});viewedQuestions=$(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.questions:t?.questions)??[]});failedLanguageNames=$(()=>{let t=(this.result()?.failedLanguages??[]).map(n=>this.languageName(n.language));return t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`});viewedLanguageName=$(()=>this.languageName(this.viewing()||this.language()));languageName(t){return this.languages().find(n=>n.code===t)?.name??t}saving=k(!1);saved=k(!1);markCorrect(t,n){t.correctIndex=n;for(let r of Object.values(this.result()?.assessment?.translations??{})){let i=r.questions.find(o=>o.id===t.id);i&&(i.correctIndex=n)}this.saved.set(!1)}editOption(t,n,r){t.options[n]=r,this.touched()}editTranslatedOption(t,n,r){t.options[n]=r,this.saved.set(!1)}touched(){this.saved.set(!1),!this.viewing()&&this.hasTranslations()&&this.translationsStale.set(!0)}hasTranslations=$(()=>Object.keys(this.result()?.assessment?.translations??{}).length>0);translationsStale=k(!1);save(){let t=this.result();t&&(this.saving.set(!0),this.api.saveAssessment(t.jobId,t.assessment).pipe(this.untilGone).subscribe({next:()=>{this.saving.set(!1),this.saved.set(!0)},error:n=>{this.error.set(ue(n,"assessment")),this.saving.set(!1)}}))}export(t,n=t==="csv"?this.viewing():""){let r=this.result();r&&hr({feature:"assessment",lookup:this.api.exportUrl(r.jobId,t,n||void 0),fallbackHref:this.api.exportHref(r.jobId,t,n||void 0),onError:i=>this.error.set(i)})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Tt({type:e,selectors:[["aa-assessment"]],inputs:{heading:[1,"heading"],defaultLanguage:[1,"defaultLanguage"],defaultQuestionCount:[1,"defaultQuestionCount"],defaultDifficulty:[1,"defaultDifficulty"],defaultTranslateInto:[1,"defaultTranslateInto"]},outputs:{assessmentReady:"assessmentReady"},decls:83,vars:38,consts:[[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"step-lead"],[1,"composer"],["rows","3","placeholder",`Paste links here, one per line \u2014 Google Drive file/folder links, S3 links
15
15
  https://drive.google.com/file/d/\u2026
16
- https://bucket.s3.ap-south-1.amazonaws.com/\u2026`,1,"field",3,"ngModelChange","ngModel","disabled"],[1,"warn-note"],[1,"src-side"],[1,"btn","btn-ghost","pick"],["type","file","hidden","","multiple","","accept",".pdf,.docx,.txt,.md,.srt,.csv,.mp4,.mov,.mkv,.webm,.m4v,.mp3,.m4a,.wav,.aac",3,"change","disabled"],[1,"hint","ok"],[1,"btn","full",3,"click","disabled"],[1,"src-list"],[1,"cols"],["for","ab",1,"label"],["id","ab","rows","3","placeholder","e.g. focus on danger signs and referral decisions; use field-scenario questions with named beneficiaries",1,"field",3,"ngModelChange","ngModel","disabled"],["for","asrc",1,"label","mt"],["id","asrc",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"side"],["for","alang",1,"label"],["id","alang",1,"field",3,"ngModelChange","ngModel","disabled"],["for","acount",1,"label","mt"],["id","acount","type","number","min","1","max","60",1,"field",3,"ngModelChange","ngModel","disabled"],["for","aopts",1,"label","mt"],["id","aopts",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"ngValue"],["for","adiff",1,"label","mt"],["id","adiff",1,"field",3,"ngModelChange","ngModel","disabled"],["for","abloom",1,"label","mt"],["id","abloom",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"langs","mt-lg"],[1,"gen-row","mt-lg"],[1,"btn",3,"click","disabled"],[1,"progress"],[1,"hint"],[3,"bad","off"],["type","checkbox","title","include this source",3,"change","checked","disabled"],[1,"src-name"],[1,"chip","err"],[1,"mono","muted"],[1,"lang-chips"],[1,"lang-chip",3,"on"],[1,"lang-chip"],["type","checkbox",3,"change","checked","disabled"],[1,"progress-line"],[1,"spin"],[1,"mono","progress-time"],[1,"progress-track"],[1,"progress-fill"],[1,"step-note"],[1,"q-head"],[1,"q-title"],[1,"muted","mono"],[1,"exports"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-ghost",3,"click"],[1,"qc-note"],[1,"qc-note","warn"],[1,"hint","export-note"],["role","tablist",1,"lang-tabs"],[1,"muted","note"],["type","button","role","tab",1,"lang-tab",3,"on"],["type","button","role","tab",1,"lang-tab",3,"click"],[1,"hint","lang-note"],[1,"q","q-locked"],[1,"save-row"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"q-top"],[1,"q-n","mono"],[1,"q-body"],["rows","2",1,"field","q-text-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-opts"],[1,"opt",3,"correct"],[1,"q-foot"],[1,"tag"],[1,"reveal",3,"click"],[1,"opt"],["type","radio","disabled","",3,"checked","title"],[1,"q-letter","mono"],[1,"opt-text",3,"input","value"],["rows","2",1,"field","q-exp-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-src","mono"],[1,"q"],[1,"muted","save-hint"],["type","radio","title","mark as correct",3,"change","name","checked"]],template:function(n,r){if(n&1&&(d(0,"p",0),g(1,"Assessment"),u(),d(2,"h1",1),g(3,"Create a assessment from your training material"),u(),d(4,"p",2),g(5,"Upload documents or paste links, and get multiple-choice questions you can review, translate and download."),u(),D(6,Qx,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),g(11,"1"),u(),d(12,"h2",8),g(13,"Your material"),u()(),d(14,"p",9),g(15,"Add files (PDF, Word, text, video or audio) and links \u2014 any mix. Videos and audio are written out for you."),u(),d(16,"div",10)(17,"div")(18,"textarea",11),ee("ngModelChange",function(i){return re(r.links,i)||(r.links=i),i}),u(),z(),d(19,"div",12),g(20," \u26A0 Drive links must be shared as "),d(21,"b"),g(22,'"Anyone with the link \u2013 Viewer"'),u(),g(23," \u2014 private links can't be read. "),u()(),d(24,"div",13)(25,"label",14)(26,"input",15),N("change",function(i){return r.chooseFiles(i)}),u(),g(27," \u{1F4CE} Choose files\u2026 "),u(),D(28,Kx,2,1,"div",16),d(29,"button",17),N("click",function(){return r.readSources()}),g(30),u()()(),D(31,tS,3,0,"ul",18),u(),d(32,"section",5)(33,"div",6)(34,"span",7),g(35,"2"),u(),d(36,"h2",8),g(37,"Settings"),u()(),d(38,"div",19)(39,"div")(40,"label",20),g(41,"Instructions (optional) \u2014 focus areas, style, anything specific"),u(),d(42,"textarea",21),ee("ngModelChange",function(i){return re(r.brief,i)||(r.brief=i),i}),u(),z(),d(43,"label",22),g(44,"Also include a past video's script (optional)"),u(),d(45,"select",23),ee("ngModelChange",function(i){return re(r.sourceJobId,i)||(r.sourceJobId=i),i}),d(46,"option",24),g(47,"\u2014 no \u2014"),u(),Z(48,nS,2,2,"option",25,Ei),u(),z(),u(),d(50,"div",26)(51,"label",27),g(52,"Language"),u(),d(53,"select",28),N("ngModelChange",function(i){return r.language.set(i)}),Z(54,rS,2,2,"option",25,Vd),u(),z(),d(56,"label",29),g(57,"Number of questions"),u(),d(58,"input",30),ee("ngModelChange",function(i){return re(r.numQuestions,i)||(r.numQuestions=i),i}),u(),z(),d(59,"label",31),g(60,"Options per question"),u(),d(61,"select",32),ee("ngModelChange",function(i){return re(r.numOptions,i)||(r.numOptions=i),i}),Z(62,oS,2,2,"option",33,Jo),u(),z(),d(64,"label",34),g(65,"Difficulty"),u(),d(66,"select",35),ee("ngModelChange",function(i){return re(r.difficulty,i)||(r.difficulty=i),i}),Z(67,iS,2,2,"option",25,Ei),u(),z(),d(69,"label",36),g(70,"Bloom's level"),u(),d(71,"select",37),ee("ngModelChange",function(i){return re(r.bloom,i)||(r.bloom=i),i}),Z(72,sS,2,2,"option",25,Ei),u(),z(),u()(),D(74,lS,11,0,"fieldset",38),d(75,"div",39)(76,"button",40),N("click",function(){return r.generate()}),g(77),u(),D(78,cS,8,4,"span",41)(79,uS,2,1,"span",42),u()(),D(80,MS,31,12,"section",5),u()),n&2){let o;f(6),E(r.error()?6:-1),f(12),X("ngModel",r.links),w("disabled",r.busy()),G(),f(7),le("is-disabled",r.busy()),f(),w("disabled",r.busy()),f(2),E(r.files().length?28:-1),f(),w("disabled",r.busy()||!r.files().length&&!r.links.trim()),f(),T(" ",r.reading()?"Reading\u2026":"Read sources"," "),f(),E(r.sources().length?31:-1),f(),le("dim",!r.readySources.length&&!r.sourceJobId),f(10),X("ngModel",r.brief),w("disabled",r.generating()),G(),f(3),X("ngModel",r.sourceJobId),w("disabled",r.generating()),G(),f(3),Y(r.pastVideos()),f(5),w("ngModel",r.language())("disabled",r.generating()),G(),f(),Y(r.languages()),f(4),X("ngModel",r.numQuestions),w("disabled",r.generating()),G(),f(3),X("ngModel",r.numOptions),w("disabled",r.generating()),G(),f(),Y(r.optionCounts),f(4),X("ngModel",r.difficulty),w("disabled",r.generating()),G(),f(),Y(r.difficulties),f(4),X("ngModel",r.bloom),w("disabled",r.generating()),G(),f(),Y(r.blooms),f(2),E(r.secondaryChoices().length?74:-1),f(2),w("disabled",r.generating()||!r.readySources.length&&!r.sourceJobId),f(),T(" ",r.generating()?"Generating\u2026":"Generate questions"," "),f(),E(r.generating()?78:r.translateInto().size?79:-1),f(2),E((o=r.result())?80:-1,o)}},dependencies:[Sn,ao,Ga,Wa,In,Fd,so,io,kd,Od,fr,li],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}',".opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.q-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.q-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.exports[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none;padding:8px 14px}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.q[_ngcontent-%COMP%]{padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.q[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.q-top[_ngcontent-%COMP%]{display:grid;grid-template-columns:30px 1fr;gap:12px}.q-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:12px;padding-top:2px}.q-text[_ngcontent-%COMP%]{margin:0 0 10px;font-weight:500}.q-opts[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:5px}.q-opts[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:10px;padding:7px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.q-letter[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%] .q-letter[_ngcontent-%COMP%]{color:inherit}.q-foot[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.tag[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--%NS%aastrika-muted);background:var(--%NS%aastrika-surface-2);padding:3px 8px;border-radius:999px}.reveal[_ngcontent-%COMP%]{margin-left:auto;background:none;border:0;color:var(--%NS%aastrika-gold-deep);font-size:12.5px;font-weight:600;cursor:pointer}.reveal[_ngcontent-%COMP%]:hover{text-decoration:underline}.q-exp[_ngcontent-%COMP%]{margin:10px 0 0;font-size:13px;color:var(--%NS%aastrika-ink-2)}.q-src[_ngcontent-%COMP%]{margin:4px 0 0;font-size:11.5px;color:var(--%NS%aastrika-muted)}@media(max-width:760px){.opts[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.step-lead[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted);margin:-8px 0 14px}.src-cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 220px;gap:16px;align-items:start}.src-side[_ngcontent-%COMP%]{display:grid;gap:8px}.pick[_ngcontent-%COMP%]{justify-content:center;cursor:pointer}.full[_ngcontent-%COMP%]{width:100%;justify-content:center}.warn-note[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:8px 11px;border-radius:8px;margin-top:8px}.hint[_ngcontent-%COMP%]{font-size:12px}.src-list[_ngcontent-%COMP%]{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:13px;padding:8px 11px;background:var(--%NS%aastrika-surface-2);border-radius:8px}.src-list[_ngcontent-%COMP%] li.bad[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg)}.src-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%], .mt[_ngcontent-%COMP%]{margin-top:14px}.qc-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:9px 12px;border-radius:8px;margin:14px 0 4px}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}@media(max-width:900px){.src-cols[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%]{grid-template-columns:1fr}}.q-text-edit[_ngcontent-%COMP%]{font-weight:500;margin-bottom:8px}.opt[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:6px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px;cursor:pointer}.opt.correct[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.opt[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold);cursor:pointer}.opt-text[_ngcontent-%COMP%]{flex:1;border:0;background:none;padding:2px 0;font:inherit;color:inherit;outline:none}.opt-text[_ngcontent-%COMP%]:focus{border-bottom:1px solid var(--%NS%aastrika-gold)}.q-exp-edit[_ngcontent-%COMP%]{margin-top:10px;font-size:13px}.save-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--%NS%aastrika-line)}.save-hint[_ngcontent-%COMP%]{font-size:12.5px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold)}.src-list[_ngcontent-%COMP%] li.off[_ngcontent-%COMP%]{opacity:.5}.langs[_ngcontent-%COMP%]{border:1px solid var(--%NS%aastrika-line);border-radius:10px;padding:14px 16px;margin-top:18px;background:var(--%NS%aastrika-surface-2)}.langs[_ngcontent-%COMP%] legend[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);padding:0 6px}.lang-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.lang-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--%NS%aastrika-line);border-radius:999px;background:var(--%NS%aastrika-surface);font-size:13px;line-height:1;color:var(--%NS%aastrika-fg);cursor:pointer;transition:border-color .12s,background .12s;-webkit-user-select:none;user-select:none}.lang-chip[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold)}.lang-chip[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0;cursor:pointer;accent-color:var(--%NS%aastrika-gold-deep)}.lang-chip.on[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);font-weight:600}.lang-chip[_ngcontent-%COMP%]:has(input:disabled){opacity:.5;cursor:default}.lang-chip[_ngcontent-%COMP%]:focus-within{outline:2px solid var(--%NS%aastrika-gold);outline-offset:2px}.langs[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{margin:10px 0 0}.ml[_ngcontent-%COMP%]{margin-left:12px}.lang-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--%NS%aastrika-line);margin:18px 0 14px}.lang-tab[_ngcontent-%COMP%]{padding:9px 16px;border:0;border-bottom:2px solid transparent;background:none;cursor:pointer;font:inherit;font-size:13.5px;color:var(--%NS%aastrika-muted)}.lang-tab[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-fg)}.lang-tab.on[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);border-bottom-color:var(--%NS%aastrika-gold);font-weight:600}.lang-tab[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%aastrika-gold);outline-offset:-2px}.q-locked[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{cursor:default}.q-locked[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:disabled{opacity:.45}.qc-note.warn[_ngcontent-%COMP%]{border-left-color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg)}.spin[_ngcontent-%COMP%]{display:inline-block;width:11px;height:11px;margin-right:7px;vertical-align:-1px;border:2px solid var(--%NS%aastrika-line);border-top-color:var(--%NS%aastrika-gold);border-radius:50%;animation:_ngcontent-%COMP%_aa-spin .7s linear infinite}@keyframes _ngcontent-%COMP%_aa-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin[_ngcontent-%COMP%]{animation:none;border-top-color:var(--%NS%aastrika-line)}}.field[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.pick.is-disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.export-note[_ngcontent-%COMP%]{margin:10px 0 0}.lang-note[_ngcontent-%COMP%]{margin:0 0 16px;padding:10px 14px;border-radius:8px;background:var(--%NS%aastrika-surface-2)}.progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:9px;flex:1 1 280px;max-width:460px;padding:13px 16px;border:1px solid var(--%NS%aastrika-gold-soft);border-radius:12px;background:color-mix(in srgb,var(--%NS%aastrika-gold-soft) 30%,var(--%NS%aastrika-surface))}.progress-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--%NS%aastrika-gold-deep)}.progress-time[_ngcontent-%COMP%]{margin-left:auto;font-size:12.5px;font-weight:500;color:var(--%NS%aastrika-gold-deep);opacity:.7}.progress-track[_ngcontent-%COMP%]{height:6px;border-radius:999px;background:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 13%,transparent);overflow:hidden}.progress-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:999px;background:var(--%NS%aastrika-gold-deep);transition:width .9s linear}.progress[_ngcontent-%COMP%] .spin[_ngcontent-%COMP%]{width:13px;height:13px;margin:0;flex:none;border-width:2px;border-color:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 22%,transparent);border-top-color:var(--%NS%aastrika-gold-deep)}.gen-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.gen-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{flex:none}.btn[_ngcontent-%COMP%]:disabled{opacity:.92}@media(prefers-reduced-motion:reduce){.progress-fill[_ngcontent-%COMP%]{transition:none}}"],changeDetection:1})};var TS=(e,t)=>t.creator,My=(e,t)=>t.id;function NS(e,t){e&1&&(d(0,"p",3),g(1,"Loading\u2026"),u())}function AS(e,t){if(e&1&&(d(0,"div",4)(1,"p",3),g(2),u()()),e&2){let n=v();f(2),C(n.error())}}function OS(e,t){if(e&1){let n=B();d(0,"div",6),g(1," Showing: "),d(2,"b"),g(3),u(),d(4,"a",25),N("click",function(o){return I(n),v(3).clearFilter(),M(o.preventDefault())}),g(5,"\u2715 all users"),u()()}if(e&2){let n=v(3);f(3),C(n.selectedCreator())}}function kS(e,t){if(e&1){let n=B();d(0,"tr",26),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggleCreator(o.creator))}),d(1,"td")(2,"b"),g(3),u()(),d(4,"td",27),g(5),u(),d(6,"td",27),g(7),u(),d(8,"td",27),g(9),u(),d(10,"td",27),g(11),u(),d(12,"td",27)(13,"b"),g(14),u()(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",28),g(19),u()()}if(e&2){let n=t.$implicit,r=v(3);le("sel",r.selectedCreator()===n.creator),f(3),C(n.creator),f(2),C(n.videos),f(2),C(n.quizzes),f(2),T("$",n.videoSpendUsd),f(2),T("$",n.quizSpendUsd),f(3),T("$",n.spendUsd),f(2),C(n.lastActive?lr(17,10,n.lastActive,"d MMM yyyy"):"\u2014"),f(3),C(r.selectedCreator()===n.creator?"\u2713 selected":"view activity \u2192")}}function RS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No activity recorded yet."),u()())}function PS(e,t){e&1&&(d(0,"span",3),g(1," est."),u())}function FS(e,t){if(e&1){let n=B();d(0,"button",33),N("click",function(){I(n);let o=v().$implicit,i=v(3);return M(i.watch(o.id))}),g(1,"\u25B6 view"),u()}}function LS(e,t){if(e&1){let n=B();d(0,"tr")(1,"td"),g(2),u(),d(3,"td"),g(4),u(),d(5,"td"),g(6),u(),d(7,"td")(8,"span"),g(9),u()(),d(10,"td",27),g(11),u(),d(12,"td",27),g(13),D(14,PS,2,0,"span",3),u(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",30),D(19,FS,2,0,"button",31),d(20,"button",32),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),g(21," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);f(2),C(n.title),f(2),C(n.creator),f(2),C(n.videoType),f(2),qr(r.pill(n.status)),f(),C(n.status),f(2),C(n.feedbackRounds||""),f(2),T("$",n.costUsd),f(),E(n.costEstimated?14:-1),f(2),C(n.createdAt?lr(17,12,n.createdAt,"d MMM yyyy"):"\u2014"),f(3),E(n.video?19:-1),f(),w("title","Delete "+n.title)}}function VS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No videos for this user."),u()())}function jS(e,t){e&1&&(d(0,"span",3),g(1," est."),u())}function BS(e,t){if(e&1){let n=B();d(0,"tr")(1,"td"),g(2),u(),d(3,"td"),g(4),u(),d(5,"td",27),g(6),u(),d(7,"td"),g(8),u(),d(9,"td")(10,"span"),g(11),u()(),d(12,"td",27),g(13),D(14,jS,2,0,"span",3),u(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",30)(19,"button",34),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.export(o.id))}),g(20,"\u2B07 export"),u(),d(21,"button",32),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),g(22," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);f(2),C(n.title),f(2),C(n.creator),f(2),C(n.questions),f(2),C(r.languagesOf(n)),f(2),qr(r.pill(n.status)),f(),C(n.status),f(2),T("$",n.costUsd),f(),E(n.costEstimated?14:-1),f(2),C(n.createdAt?lr(17,11,n.createdAt,"d MMM yyyy"):"\u2014"),f(5),w("title","Delete "+n.title)}}function HS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No assessments yet."),u()())}function US(e,t){if(e&1&&(d(0,"p",24),g(1),u()),e&2){let n=v();f(),sr(" Showing the ",n.items.length," most recent of ",n.page.total," items. Totals above cover all ",n.page.total,". ")}}function $S(e,t){if(e&1){let n=B();D(0,OS,6,1,"div",6),d(1,"div",7)(2,"div",8)(3,"span",9),g(4),u(),d(5,"span",10),g(6,"Videos"),u()(),d(7,"div",8)(8,"span",9),g(9),u(),d(10,"span",10),g(11,"Completed"),u()(),d(12,"div",8)(13,"span",9),g(14),u(),d(15,"span",10),g(16,"Assessments"),u()(),d(17,"div",8)(18,"span",9),g(19),u(),d(20,"span",10),g(21,"People"),u()(),d(22,"div",11)(23,"span",9),g(24),u(),d(25,"span",10),g(26,"Estimated spend"),u()()(),d(27,"div",12)(28,"h2",13),g(29,"Where the money went"),u(),d(30,"div",14),Ce(31,"i",15)(32,"i",16),u(),d(33,"div",17)(34,"span"),Ce(35,"i",18),g(36),u(),d(37,"span"),Ce(38,"i",19),g(39),u()()(),d(40,"div",12)(41,"h2",13),g(42,"Users"),u(),d(43,"input",20),N("ngModelChange",function(o){I(n);let i=v(2);return M(i.search.set(o))}),u(),z(),d(44,"div",21)(45,"table")(46,"thead")(47,"tr")(48,"th"),g(49,"User"),u(),d(50,"th",22),g(51,"Videos"),u(),d(52,"th",22),g(53,"Assessments"),u(),d(54,"th",22),g(55,"Video spend"),u(),d(56,"th",22),g(57,"Assessment spend"),u(),d(58,"th",22),g(59,"Total spend"),u(),d(60,"th"),g(61,"Last active"),u(),Ce(62,"th"),u()(),d(63,"tbody"),Z(64,kS,20,13,"tr",23,TS,!1,RS,3,0,"tr"),u()()()(),d(67,"div",12)(68,"h2",13),g(69,"Videos"),u(),d(70,"div",21)(71,"table")(72,"thead")(73,"tr")(74,"th"),g(75,"Title"),u(),d(76,"th"),g(77,"Creator"),u(),d(78,"th"),g(79,"Type"),u(),d(80,"th"),g(81,"Status"),u(),d(82,"th",22),g(83,"Feedback rounds"),u(),d(84,"th",22),g(85,"Cost (USD)"),u(),d(86,"th"),g(87,"Date"),u(),Ce(88,"th"),u()(),d(89,"tbody"),Z(90,LS,22,15,"tr",null,My,!1,VS,3,0,"tr"),u()()()(),d(93,"div",12)(94,"h2",13),g(95,"Assessments"),u(),d(96,"div",21)(97,"table")(98,"thead")(99,"tr")(100,"th"),g(101,"Title"),u(),d(102,"th"),g(103,"Creator"),u(),d(104,"th",22),g(105,"Questions"),u(),d(106,"th"),g(107,"Language"),u(),d(108,"th"),g(109,"Status"),u(),d(110,"th",22),g(111,"Cost (USD)"),u(),d(112,"th"),g(113,"Date"),u(),Ce(114,"th"),u()(),d(115,"tbody"),Z(116,BS,23,14,"tr",null,My,!1,HS,3,0,"tr"),u()()()(),D(119,US,2,3,"p",24)}if(e&2){let n=t,r=v(2);E(r.selectedCreator()?0:-1),f(4),C(n.totals.videos),f(5),C(n.totals.videosDone),f(5),C(n.totals.quizzes),f(5),C(n.totals.creators),f(5),T("$",n.totals.spendUsd),f(6),tt("aria-label","Videos "+r.split().video+"%, assessments "+r.split().assess+"%"),f(),sn("width",r.split().video,"%"),w("title","Videos: $"+n.totals.videoSpendUsd),f(),sn("width",r.split().assess,"%"),w("title","Assessments: $"+n.totals.quizSpendUsd),f(4),St(" Videos $",n.totals.videoSpendUsd," (",r.split().video,"%)"),f(3),St(" Assessments $",n.totals.quizSpendUsd," (",r.split().assess,"%)"),f(4),w("ngModel",r.search()),G(),f(21),Y(r.creators()),f(26),Y(r.videos()),f(26),Y(r.assessments()),f(3),E(r.truncated()?119:-1)}}function zS(e,t){if(e&1&&D(0,$S,120,22),e&2){let n,r=v();E((n=r.report())?0:-1,n)}}var Ja=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}static PAGE_SIZE=500;constructor(){Ct(()=>{let t=this.creatorFilter();t&&!this.seeded&&(this.selectedCreator.set(t),this.seeded=!0)})}seeded=!1;creatorFilter=nt(void 0);reportLoaded=xn();report=A(null);error=A("");loading=A(!0);search=A("");selectedCreator=A(null);ngOnInit(){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:t=>{this.report.set(t),this.loading.set(!1),this.reportLoaded.emit({videos:t.totals.videos,assessments:t.totals.quizzes,users:t.totals.creators,spendUsd:t.totals.spendUsd})},error:t=>{this.error.set(ue(t,"reports",{401:"Please sign in to view usage."},"Could not load usage")),this.loading.set(!1)}})}truncated=W(()=>{let t=this.report();return t?t.page.total>t.items.length:!1});creators=W(()=>{let t=this.search().toLowerCase();return(this.report()?.creators??[]).filter(n=>n.creator.toLowerCase().includes(t))});ofType(t){let n=this.selectedCreator();return(this.report()?.items??[]).filter(r=>r.type===t&&(!n||r.creator===n))}videos=W(()=>this.ofType("video"));assessments=W(()=>this.ofType("assessment"));split=W(()=>{let t=this.report()?.totals;return!t||!t.spendUsd?{video:0,assess:0}:{video:Math.round(t.videoSpendUsd/t.spendUsd*100),assess:Math.round(t.quizSpendUsd/t.spendUsd*100)}});toggleCreator(t){this.selectedCreator.update(n=>n===t?null:t)}clearFilter(){this.selectedCreator.set(null)}export(t){pr({feature:"reports",lookup:this.api.exportUrl(t),fallbackHref:this.api.exportHref(t),onError:n=>this.error.set(n)})}watch(t){pr({feature:"reports",lookup:this.api.job(t).pipe(xe(n=>({url:n.videoUrl??n.video??null,filename:""}))),fallbackHref:this.api.downloadVideoHref(t),onError:n=>this.error.set(n)})}deleteItem=qa({feature:"reports",request:t=>t.type==="video"?this.api.deleteVideo(t.id):this.api.deleteQuiz(t.id),onDeleted:()=>this.refresh(()=>{}),onError:t=>this.error.set(t),fallback:"Could not delete it",byStatus:{403:"You do not have permission to delete that."}});deleteLabel=W(()=>this.deleteItem.pending()?.type==="video"?"Delete video":"Delete quiz");deleteMessage=W(()=>{let t=this.deleteItem.pending();return t?`This removes the ${t.type==="video"?"video":"quiz"} and its stored files permanently. This cannot be undone.`:""});refresh(t){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:n=>{this.report.set(n),this.error.set(""),t()},error:n=>{this.error.set(ue(n,"reports",{},"Deleted, but the page could not refresh")),t()}})}pill(t){return t==="done"?"chip":t==="failed"||t==="error"?"chip err":"chip warn"}languagesOf(t){return[t.language,...t.translations??[]].filter(Boolean).join(", ")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-reports"]],inputs:{creatorFilter:[1,"creatorFilter"]},outputs:{reportLoaded:"reportLoaded"},decls:10,vars:7,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],[1,"muted"],["role","alert",1,"card","card-pad"],[3,"confirmed","cancelled","open","title","subject","message","confirmLabel","busy"],[1,"filter-bar"],[1,"tiles"],[1,"card","tile"],[1,"tile-n","mono"],[1,"tile-l"],[1,"card","tile","accent"],[1,"card","card-pad","panel"],[1,"section-h"],["role","img",1,"split"],[1,"seg-v",3,"title"],[1,"seg-a",3,"title"],[1,"legend"],[1,"dot","v"],[1,"dot","a"],["placeholder","Search user\u2026",1,"field","search",3,"ngModelChange","ngModel"],[1,"tw"],[1,"num"],[1,"clickable",3,"sel"],[1,"sources","mono"],["href","#",3,"click"],[1,"clickable",3,"click"],[1,"num","mono"],[1,"act"],["colspan","8",1,"muted"],[1,"row-actions"],["type","button","title","View video",1,"act-btn"],["type","button",1,"act-btn","danger",3,"click","title"],["type","button","title","View video",1,"act-btn",3,"click"],["type","button","title","Download as Excel",1,"act-btn",3,"click"]],template:function(n,r){n&1&&(d(0,"p",0),g(1,"Usage"),u(),d(2,"h1",1),g(3,"Usage & spend"),u(),d(4,"p",2),g(5,"Aggregated across Studio and Assessment. Spend is estimated from provider rates, not billed amounts."),u(),D(6,NS,2,0,"p",3)(7,AS,3,1,"div",4)(8,zS,1,1),d(9,"aa-confirm-dialog",5),N("confirmed",function(){return r.deleteItem.confirm()})("cancelled",function(){return r.deleteItem.cancel()}),u()),n&2&&(f(6),E(r.loading()?6:r.error()?7:8),f(3),w("open",r.deleteItem.open())("title",r.deleteLabel()+"?")("subject",r.deleteItem.pending()?.title??"")("message",r.deleteMessage())("confirmLabel",r.deleteLabel())("busy",r.deleteItem.busy()))},dependencies:[Sn,ao,In,io,fr,lo,ed],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}',".tiles[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:22px}.tile[_ngcontent-%COMP%]{padding:20px 22px;display:flex;flex-direction:column;gap:4px}.tile-n[_ngcontent-%COMP%]{font-size:26px;font-weight:700;line-height:1.1}.tile-l[_ngcontent-%COMP%]{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.tile.accent[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:transparent}.tile.accent[_ngcontent-%COMP%] .tile-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep)}.section-h[_ngcontent-%COMP%]{font-size:15px;margin-bottom:14px}.tw[_ngcontent-%COMP%]{overflow-x:auto}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13.5px}th[_ngcontent-%COMP%]{text-align:left;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);font-weight:600;padding:9px 14px;border-bottom:1px solid var(--%NS%aastrika-line);white-space:nowrap}td[_ngcontent-%COMP%]{padding:11px 14px;border-bottom:1px solid var(--%NS%aastrika-line)}tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}.num[_ngcontent-%COMP%]{text-align:right}.panel[_ngcontent-%COMP%]{margin-bottom:18px}.filter-bar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;background:var(--%NS%aastrika-gold-soft);border:1.5px solid var(--%NS%aastrika-gold);border-radius:999px;padding:6px 16px;font-size:13px;color:var(--%NS%aastrika-gold-deep)}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);text-decoration:none}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.split[_ngcontent-%COMP%]{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--%NS%aastrika-surface-2)}.split[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%}.seg-v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.seg-a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.legend[_ngcontent-%COMP%]{display:flex;gap:20px;margin-top:10px;font-size:12.5px;color:var(--%NS%aastrika-muted)}.dot[_ngcontent-%COMP%]{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.dot.v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.dot.a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.search[_ngcontent-%COMP%]{max-width:320px;margin-bottom:12px}tr.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.clickable[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface-2)}tr.sel[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft)}.act[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-gold-deep);white-space:nowrap}.sources[_ngcontent-%COMP%]{font-size:11.5px;color:var(--%NS%aastrika-muted);margin-top:4px}.row-actions[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;white-space:nowrap}.act-btn[_ngcontent-%COMP%]{font:inherit;font-size:12px;line-height:1;padding:5px 9px;border:1px solid var(--%NS%aastrika-line-2);border-radius:6px;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);text-decoration:none;cursor:pointer}.act-btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.act-btn.danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.act-btn.danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.act-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:1})};var GS=[{tag:"aastrika-content-studio",component:Ya},{tag:"aastrika-assessment",component:Qa},{tag:"aastrika-reports",component:Ja}],Z3=typeof document>"u"?Promise.resolve(null):cd({providers:[$u(),hd(yd(),md([Gm])),{provide:Xr,useValue:$m}]}).then(e=>{for(let t of GS)qm(t,e.injector);return e});export{Hm as configure,Z3 as ready};
16
+ https://bucket.s3.ap-south-1.amazonaws.com/\u2026`,1,"composer__input",3,"ngModelChange","ngModel","disabled"],[1,"composer__bar"],[1,"btn","btn-ghost","btn-attach","pick"],["type","file","hidden","","multiple","","accept",".pdf,.docx,.txt,.md,.srt,.csv,.mp4,.mov,.mkv,.webm,.m4v,.mp3,.m4a,.wav,.aac",3,"change","disabled"],["name","paperclip"],[1,"attached"],[1,"btn","composer__go",3,"click","disabled"],[1,"aa-spinner"],["name","scan"],[1,"warn-note"],["name","alert"],[1,"src-list"],[1,"cols"],["for","ab",1,"label"],["id","ab","rows","3","placeholder","e.g. focus on danger signs and referral decisions; use field-scenario questions with named beneficiaries",1,"field",3,"ngModelChange","ngModel","disabled"],["for","asrc",1,"label","mt"],["id","asrc",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"side"],["for","alang",1,"label"],["id","alang",1,"field",3,"ngModelChange","ngModel","disabled"],["for","acount",1,"label","mt"],["id","acount","type","number","min","1","max","60",1,"field",3,"ngModelChange","ngModel","disabled"],["for","aopts",1,"label","mt"],["id","aopts",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"ngValue"],["for","adiff",1,"label","mt"],["id","adiff",1,"field",3,"ngModelChange","ngModel","disabled"],["for","abloom",1,"label","mt"],["id","abloom",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"langs","mt-lg"],[1,"gen-row","mt-lg"],[1,"btn",3,"click","disabled"],["name","sparkle"],[1,"progress"],[1,"hint"],[1,"eyebrow"],[1,"page-title"],[1,"aa-enter",3,"animation-delay","bad","off"],[1,"aa-enter"],["type","checkbox","title","include this source",3,"change","checked","disabled"],[1,"src-name"],[1,"chip","err"],[1,"mono","muted"],[1,"lang-chips"],[1,"lang-chip",3,"on"],[1,"lang-chip"],["type","checkbox",3,"change","checked","disabled"],[1,"progress-line"],[1,"spin"],[1,"mono","progress-time"],[1,"progress-track"],[1,"progress-fill"],[1,"step-note"],[1,"q-head"],[1,"q-title"],[1,"muted","mono"],[1,"exports"],["type","button",1,"btn",3,"click"],["name","download"],["type","button",1,"btn","btn-ghost",3,"click"],[1,"qc-note"],[1,"qc-note","warn"],[1,"hint","export-note"],["role","tablist",1,"lang-tabs"],[1,"muted","note"],["type","button","role","tab",1,"lang-tab",3,"on"],["type","button","role","tab",1,"lang-tab",3,"click"],[1,"hint","lang-note"],[1,"q","q-locked"],[1,"save-row"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"q-top"],[1,"q-n","mono"],[1,"q-body"],["rows","2",1,"field","q-text-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-opts"],[1,"opt",3,"correct"],[1,"q-foot"],[1,"tag"],[1,"reveal",3,"click"],[1,"opt"],["type","radio","disabled","",3,"checked","title"],[1,"q-letter","mono"],[1,"opt-text",3,"input","value"],["rows","2",1,"field","q-exp-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-src","mono"],[1,"q","aa-enter",3,"animation-delay"],[1,"muted","save-hint"],[1,"q","aa-enter"],["type","radio","title","mark as correct",3,"change","name","checked"]],template:function(n,r){if(n&1&&(C(0,sw,4,0),u(1,"p",0),g(2,"Upload documents or paste links, and get multiple-choice questions you can review, translate and download."),d(),C(3,aw,2,1,"div",1),u(4,"div",2)(5,"section",3)(6,"div",4)(7,"span",5),g(8,"1"),d(),u(9,"h2",6),g(10,"Your material"),d()(),u(11,"p",7),g(12,"Add files (PDF, Word, text, video or audio) and links \u2014 any mix. Videos and audio are written out for you."),d(),u(13,"div",8)(14,"textarea",9),te("ngModelChange",function(o){return ie(r.links,o)||(r.links=o),o}),d(),W(),u(15,"div",10)(16,"label",11)(17,"input",12),N("change",function(o){return r.chooseFiles(o)}),d(),O(18,"aa-icon",13),g(19,"Choose files\u2026 "),d(),C(20,cw,2,2,"span",14),u(21,"button",15),N("click",function(){return r.readSources()}),C(22,lw,1,0,"span",16)(23,dw,1,0,"aa-icon",17),g(24),d()()(),u(25,"div",18),O(26,"aa-icon",19),g(27,"Drive links must be shared as "),u(28,"b"),g(29,'"Anyone with the link \u2013 Viewer"'),d(),g(30," \u2014 private links can't be read. "),d(),C(31,gw,3,0,"ul",20),d(),u(32,"section",3)(33,"div",4)(34,"span",5),g(35,"2"),d(),u(36,"h2",6),g(37,"Settings"),d()(),u(38,"div",21)(39,"div")(40,"label",22),g(41,"Instructions (optional) \u2014 focus areas, style, anything specific"),d(),u(42,"textarea",23),te("ngModelChange",function(o){return ie(r.brief,o)||(r.brief=o),o}),d(),W(),u(43,"label",24),g(44,"Also include a past video's script (optional)"),d(),u(45,"select",25),te("ngModelChange",function(o){return ie(r.sourceJobId,o)||(r.sourceJobId=o),o}),u(46,"option",26),g(47,"\u2014 no \u2014"),d(),Y(48,hw,2,2,"option",27,So),d(),W(),d(),u(50,"div",28)(51,"label",29),g(52,"Language"),d(),u(53,"select",30),N("ngModelChange",function(o){return r.language.set(o)}),Y(54,mw,2,2,"option",27,Bu),d(),W(),u(56,"label",31),g(57,"Number of questions"),d(),u(58,"input",32),te("ngModelChange",function(o){return ie(r.numQuestions,o)||(r.numQuestions=o),o}),d(),W(),u(59,"label",33),g(60,"Options per question"),d(),u(61,"select",34),te("ngModelChange",function(o){return ie(r.numOptions,o)||(r.numOptions=o),o}),Y(62,vw,2,2,"option",35,Ji),d(),W(),u(64,"label",36),g(65,"Difficulty"),d(),u(66,"select",37),te("ngModelChange",function(o){return ie(r.difficulty,o)||(r.difficulty=o),o}),Y(67,yw,2,2,"option",27,So),d(),W(),u(69,"label",38),g(70,"Bloom's level"),d(),u(71,"select",39),te("ngModelChange",function(o){return ie(r.bloom,o)||(r.bloom=o),o}),Y(72,_w,2,2,"option",27,So),d(),W(),d()(),C(74,bw,11,0,"fieldset",40),u(75,"div",41)(76,"button",42),N("click",function(){return r.generate()}),C(77,Dw,1,0,"span",16)(78,Ew,1,0,"aa-icon",43),g(79),d(),C(80,xw,8,4,"span",44)(81,Sw,2,1,"span",45),d()(),C(82,$w,33,12,"section",3),d()),n&2){let i;b(r.heading()==="on"?0:-1),f(3),b(r.error()?3:-1),f(10),oe("is-disabled",r.busy()),f(),ee("ngModel",r.links),E("disabled",r.busy()),q(),f(2),oe("is-disabled",r.busy()),f(),E("disabled",r.busy()),f(3),b(r.files().length?20:-1),f(),E("disabled",r.busy()||!r.files().length&&!r.links.trim()),f(),b(r.reading()?22:23),f(2),T(" ",r.reading()?"Reading\u2026":"Read sources"," "),f(7),b(r.sources().length?31:-1),f(),oe("dim",!r.readySources.length&&!r.sourceJobId),f(10),ee("ngModel",r.brief),E("disabled",r.generating()),q(),f(3),ee("ngModel",r.sourceJobId),E("disabled",r.generating()),q(),f(3),Q(r.pastVideos()),f(5),E("ngModel",r.language())("disabled",r.generating()),q(),f(),Q(r.languages()),f(4),ee("ngModel",r.numQuestions),E("disabled",r.generating()),q(),f(3),ee("ngModel",r.numOptions),E("disabled",r.generating()),q(),f(),Q(r.optionCounts),f(4),ee("ngModel",r.difficulty),E("disabled",r.generating()),q(),f(),Q(r.difficulties),f(4),ee("ngModel",r.bloom),E("disabled",r.generating()),q(),f(),Q(r.blooms),f(2),b(r.secondaryChoices().length?74:-1),f(2),oe("is-running",r.generating()),E("disabled",r.generating()||!r.readySources.length&&!r.sourceJobId),f(),b(r.generating()?77:78),f(2),T(" ",r.generating()?"Generating\u2026":"Generate questions"," "),f(),b(r.generating()?80:r.translateInto().size?81:-1),f(2),b((i=r.result())?82:-1,i)}},dependencies:[wn,li,qa,Za,Mn,Vu,ci,ai,Ru,Pu,gr,In,lo],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #E0F2FE;--%NS%aastrika-cream-soft: #F0F7FF;--%NS%aastrika-bg: #F4F7FC;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #F8FAFC;--%NS%aastrika-ink: #0F172A;--%NS%aastrika-ink-2: #475569;--%NS%aastrika-muted: #94A3B8;--%NS%aastrika-primary: #0EA5E9;--%NS%aastrika-primary-soft: #E0F2FE;--%NS%aastrika-primary-deep: #0369A1;--%NS%aastrika-on-primary: #FFFFFF;--%NS%aastrika-gold: var(--%NS%aastrika-primary);--%NS%aastrika-gold-soft: var(--%NS%aastrika-primary-soft);--%NS%aastrika-gold-deep: var(--%NS%aastrika-primary-deep);--%NS%aastrika-line: #E2E8F0;--%NS%aastrika-line-2: #CBD5E1;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FEF6E7;--%NS%aastrika-warn-fg: #8F6206;--%NS%aastrika-warn-line: #F2D9A0;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-danger: #B42318;--%NS%aastrika-danger-line: #F2B8B0;--%NS%aastrika-danger-bg: #FEF3F2;--%NS%aastrika-console-bg: #0F172A;--%NS%aastrika-console-fg: #CBD5E1;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-text-xs: 12px;--%NS%aastrika-text-sm: 14px;--%NS%aastrika-text-md: 16px;--%NS%aastrika-text-lg: 20px;--%NS%aastrika-text-xl: 25px;--%NS%aastrika-text-2xl: 32px;--%NS%aastrika-space-1: 4px;--%NS%aastrika-space-2: 8px;--%NS%aastrika-space-3: 12px;--%NS%aastrika-space-4: 16px;--%NS%aastrika-space-6: 24px;--%NS%aastrika-space-8: 32px;--%NS%aastrika-space-12: 48px;--%NS%aastrika-ease: cubic-bezier(.22, 1, .36, 1);--%NS%aastrika-fast: .15s;--%NS%aastrika-slow: .32s;--%NS%aastrika-shadow-lift: 0 2px 4px rgba(26,26,26,.04), 0 12px 32px rgba(26,26,26,.07);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}[_nghost-%COMP%]{display:block;font-family:var(--%NS%aastrika-font);color:var(--%NS%aastrika-ink)}[_nghost-%COMP%] button[_ngcontent-%COMP%], [_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] select[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{font:inherit}[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] select[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink)}[_nghost-%COMP%] input[_ngcontent-%COMP%]:disabled, [_nghost-%COMP%] select[_ngcontent-%COMP%]:disabled, [_nghost-%COMP%] textarea[_ngcontent-%COMP%]:disabled{color:var(--%NS%aastrika-ink-2);-webkit-text-fill-color:var(--%NS%aastrika-ink-2);opacity:1}.eyebrow[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:var(--%NS%aastrika-text-xs);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-primary-deep);margin-bottom:var(--%NS%aastrika-space-3)}.eyebrow[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;max-width:220px;background:linear-gradient(to right,color-mix(in srgb,var(--%NS%aastrika-primary) 35%,transparent),transparent)}.page-title[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-2xl);line-height:1.12;letter-spacing:-.02em;font-weight:700;margin-bottom:12px;text-wrap:balance;max-width:30ch}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink-2);font-size:var(--%NS%aastrika-text-md);line-height:1.5;margin-bottom:30px;max-width:58ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:18px;box-shadow:inset 0 1px #ffffffe6,0 1px 2px #0f172a0a,0 8px 24px -12px #0f172a1a}.card-pad[_ngcontent-%COMP%]{padding:var(--%NS%aastrika-space-6) var(--%NS%aastrika-space-6)}.label[_ngcontent-%COMP%]{display:block;font-size:var(--%NS%aastrika-text-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:12px;outline:none;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.field[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2)}.field[_ngcontent-%COMP%]:focus{background:var(--%NS%aastrika-surface);border-color:var(--%NS%aastrika-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--%NS%aastrika-primary) 14%,transparent),0 2px 8px -2px color-mix(in srgb,var(--%NS%aastrika-primary) 22%,transparent)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:12px;border:1px solid transparent;box-shadow:inset 0 1px #ffffff38,0 1px 2px color-mix(in srgb,var(--%NS%aastrika-primary) 30%,transparent),0 6px 16px -6px color-mix(in srgb,var(--%NS%aastrika-primary) 45%,transparent);background:var(--%NS%aastrika-primary);color:var(--%NS%aastrika-on-primary);font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{background:color-mix(in srgb,var(--%NS%aastrika-primary) 8%,var(--%NS%aastrika-surface));color:color-mix(in srgb,var(--%NS%aastrika-primary-deep) 70%,var(--%NS%aastrika-muted));border-color:color-mix(in srgb,var(--%NS%aastrika-primary) 22%,transparent);box-shadow:none;cursor:not-allowed}.btn[_ngcontent-%COMP%]:disabled aa-icon[_ngcontent-%COMP%]{opacity:.75}.btn-lg[_ngcontent-%COMP%]{padding:13px 26px;font-size:var(--%NS%aastrika-text-sm);letter-spacing:.01em}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:var(--%NS%aastrika-text-xs);font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:var(--%NS%aastrika-max-width, 1100px)}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-primary-deep);box-shadow:inset 0 0 0 1.5px var(--%NS%aastrika-primary-soft);display:grid;place-items:center;font-size:var(--%NS%aastrika-text-xs);font-weight:700;font-variant-numeric:tabular-nums;transition:box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.step-n.is-active[_ngcontent-%COMP%]{background:var(--%NS%aastrika-primary-soft);box-shadow:inset 0 0 0 1.5px var(--%NS%aastrika-primary),0 0 0 4px color-mix(in srgb,var(--%NS%aastrika-primary) 12%,transparent)}.step-n.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-primary);color:var(--%NS%aastrika-on-primary);box-shadow:none}.step-t[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-md);font-weight:650;letter-spacing:-.01em;color:var(--%NS%aastrika-ink)}.card[_ngcontent-%COMP%] > .step-h[_ngcontent-%COMP%]{position:relative}.card[_ngcontent-%COMP%] > .step-h[_ngcontent-%COMP%]:before{content:"";position:absolute;left:13.5px;top:34px;width:1px;height:calc(100% + var(--%NS%aastrika-space-6));background:linear-gradient(to bottom,var(--%NS%aastrika-primary-soft),transparent);pointer-events:none}.card[_ngcontent-%COMP%]:last-of-type > .step-h[_ngcontent-%COMP%]:before{display:none}.step-note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--%NS%aastrika-ink) 2%,var(--%NS%aastrika-surface));box-shadow:none}.dim[_ngcontent-%COMP%] .step-t[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink-2)}.dim[_ngcontent-%COMP%] .card[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] .drop[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{opacity:.78}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:var(--%NS%aastrika-space-4);padding:var(--%NS%aastrika-space-4) var(--%NS%aastrika-space-6);border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:14px;cursor:pointer;background:var(--%NS%aastrika-surface-2);transition:border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-primary);background:var(--%NS%aastrika-cream-soft)}.drop[_ngcontent-%COMP%]{justify-content:flex-start;padding-left:var(--%NS%aastrika-space-6);min-height:78px}.drop.is-over[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-primary);border-style:solid;background:var(--%NS%aastrika-primary-soft);box-shadow:0 0 0 4px color-mix(in srgb,var(--%NS%aastrika-primary) 12%,transparent)}.drop-sub[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.card.is-interactive[_ngcontent-%COMP%]{transition:transform var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.card.is-interactive[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:var(--%NS%aastrika-shadow-lift);border-color:var(--%NS%aastrika-line-2)}.is-selected[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-primary)!important;box-shadow:inset 0 0 0 1px var(--%NS%aastrika-primary),var(--%NS%aastrika-shadow-lift)}@keyframes _ngcontent-%COMP%_aa-shimmer{to{background-position:200% 0}}.is-working[_ngcontent-%COMP%]{background-image:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--%NS%aastrika-primary) 9%,transparent) 50%,transparent 70%);background-size:200% 100%;animation:_ngcontent-%COMP%_aa-shimmer 1.8s linear infinite}@keyframes _ngcontent-%COMP%_aa-rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.aa-enter[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_aa-rise var(--%NS%aastrika-slow) var(--%NS%aastrika-ease) both}.label[_ngcontent-%COMP%]:has(aa-icon), .btn[_ngcontent-%COMP%]:has(aa-icon), .warn-note[_ngcontent-%COMP%]:has(aa-icon), .qc-note[_ngcontent-%COMP%]:has(aa-icon), .visual-note[_ngcontent-%COMP%]:has(aa-icon), .picked-name[_ngcontent-%COMP%]:has(aa-icon), .act-btn[_ngcontent-%COMP%]:has(aa-icon){display:inline-flex;align-items:center;gap:var(--%NS%aastrika-space-2)}.label[_ngcontent-%COMP%]:has(aa-icon){display:flex}.btn[_ngcontent-%COMP%]:focus-visible, .field[_ngcontent-%COMP%]:focus-visible, .card.is-interactive[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%aastrika-primary);outline-offset:2px}.btn[_ngcontent-%COMP%]{transition:background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),transform var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.btn[_ngcontent-%COMP%]:not(:disabled):active{transform:translateY(1px)}@media(prefers-reduced-motion:reduce){.is-working[_ngcontent-%COMP%]{animation:none;background-image:none}.aa-enter[_ngcontent-%COMP%]{animation:none}.card.is-interactive[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]{transition:none}.card.is-interactive[_ngcontent-%COMP%]:hover, .btn[_ngcontent-%COMP%]:not(:disabled):active{transform:none}}@keyframes _ngcontent-%COMP%_aa-breathe{0%,to{box-shadow:0 0 0 1px var(--%NS%aastrika-primary-soft),0 0 color-mix(in srgb,var(--%NS%aastrika-primary) 18%,transparent)}50%{box-shadow:0 0 0 1px color-mix(in srgb,var(--%NS%aastrika-primary) 45%,transparent),0 0 0 10px color-mix(in srgb,var(--%NS%aastrika-primary) 6%,transparent)}}.is-thinking[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_aa-breathe 2.4s var(--%NS%aastrika-ease) infinite;border-color:transparent!important}.card.is-interactive[_ngcontent-%COMP%]{position:relative;overflow:hidden}.card.is-interactive[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--%NS%aastrika-primary) 35%,color-mix(in srgb,var(--%NS%aastrika-primary) 55%,#fff) 50%,var(--%NS%aastrika-primary) 65%,transparent);opacity:0;transition:opacity var(--%NS%aastrika-fast) var(--%NS%aastrika-ease);pointer-events:none}.card.is-interactive[_ngcontent-%COMP%]:hover:after, .card.is-interactive[_ngcontent-%COMP%]:focus-visible:after{opacity:1}.card.is-selected[_ngcontent-%COMP%]:after{opacity:1}@media(prefers-reduced-motion:reduce){.is-thinking[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 1px var(--%NS%aastrika-primary)}.card.is-interactive[_ngcontent-%COMP%]:after{transition:none}}[_nghost-%COMP%]{background-image:radial-gradient(60rem 40rem at 88% -10%,color-mix(in srgb,var(--%NS%aastrika-primary) 7%,transparent),transparent 60%),radial-gradient(50rem 35rem at -8% 108%,color-mix(in srgb,var(--%NS%aastrika-primary) 5%,transparent),transparent 60%);background-attachment:fixed;background-repeat:no-repeat}@keyframes _ngcontent-%COMP%_aa-spin-arc{to{transform:rotate(360deg)}}.aa-spinner[_ngcontent-%COMP%]{display:inline-block;flex:none;width:1em;height:1em;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,currentColor 300deg,transparent 360deg);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 2px));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 2px));animation:_ngcontent-%COMP%_aa-spin-arc .8s linear infinite;opacity:.9}.btn[_ngcontent-%COMP%] .aa-spinner[_ngcontent-%COMP%]{width:1.05em;height:1.05em}@media(prefers-reduced-motion:reduce){.aa-spinner[_ngcontent-%COMP%]{animation:none;background:conic-gradient(from 0deg,currentColor 0deg 360deg);opacity:.35}}',".q-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.q-title[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-md);font-weight:700}.exports[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none;padding:8px 14px}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:var(--%NS%aastrika-danger);border-color:var(--%NS%aastrika-danger-line)}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-danger-bg)}.q[_ngcontent-%COMP%]{padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.q[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.q-top[_ngcontent-%COMP%]{display:grid;grid-template-columns:30px 1fr;gap:12px}.q-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:var(--%NS%aastrika-text-xs);padding-top:2px}.q-text[_ngcontent-%COMP%]{margin:0 0 10px;font-weight:500}.q-opts[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:5px}.q-opts[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:10px;padding:7px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:var(--%NS%aastrika-text-sm)}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.q-letter[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%] .q-letter[_ngcontent-%COMP%]{color:inherit}.q-foot[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.tag[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--%NS%aastrika-muted);background:var(--%NS%aastrika-surface-2);padding:3px 8px;border-radius:999px}.reveal[_ngcontent-%COMP%]{margin-left:auto;background:none;border:0;color:var(--%NS%aastrika-gold-deep);font-size:var(--%NS%aastrika-text-xs);font-weight:600;cursor:pointer}.reveal[_ngcontent-%COMP%]:hover{text-decoration:underline}.q-exp[_ngcontent-%COMP%]{margin:10px 0 0;font-size:var(--%NS%aastrika-text-sm);color:var(--%NS%aastrika-ink-2)}.q-src[_ngcontent-%COMP%]{margin:4px 0 0;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.step-lead[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm);color:var(--%NS%aastrika-muted);margin:-8px 0 14px}.composer[_ngcontent-%COMP%]{border:1px solid var(--%NS%aastrika-line-2);border-radius:12px;background:var(--%NS%aastrika-surface);overflow:hidden;transition:border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.composer[_ngcontent-%COMP%]:focus-within{border-color:var(--%NS%aastrika-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--%NS%aastrika-primary) 12%,transparent)}.composer.is-disabled[_ngcontent-%COMP%]{opacity:.7}.composer__input[_ngcontent-%COMP%]{display:block;width:100%;border:0;background:none;padding:13px 15px;font:inherit;color:var(--%NS%aastrika-ink);resize:vertical;outline:none}.composer__bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 10px 9px 11px;border-top:1px solid var(--%NS%aastrika-line);background:var(--%NS%aastrika-surface-2)}.btn-attach[_ngcontent-%COMP%]{padding:7px 12px;font-size:var(--%NS%aastrika-text-xs);border-radius:8px}.attached[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-primary-deep);font-weight:600}.composer__go[_ngcontent-%COMP%]{margin-left:auto}.pick[_ngcontent-%COMP%]{cursor:pointer}@media(max-width:560px){.composer__go[_ngcontent-%COMP%]{margin-left:0;width:100%;justify-content:center}}.warn-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:8px 11px;border-radius:8px;margin-top:10px}.hint[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs)}.src-list[_ngcontent-%COMP%]{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:var(--%NS%aastrika-text-sm);padding:8px 11px;background:var(--%NS%aastrika-surface-2);border-radius:8px}.src-list[_ngcontent-%COMP%] li.bad[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg)}.src-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:22px 30px;align-items:start}@media(min-width:1100px){.side[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content minmax(150px,1fr);align-items:center;gap:12px 16px}.side[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{margin-bottom:0}.side[_ngcontent-%COMP%] > .label.mt[_ngcontent-%COMP%]{margin-top:0}}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%], .mt[_ngcontent-%COMP%]{margin-top:14px}.qc-note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:9px 12px;border-radius:8px;margin:14px 0 4px}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}@media(max-width:900px){.cols[_ngcontent-%COMP%]{grid-template-columns:1fr}}.q-text-edit[_ngcontent-%COMP%]{font-weight:500;margin-bottom:8px}.opt[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:6px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:var(--%NS%aastrika-text-sm);cursor:pointer}.opt.correct[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.opt[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold);cursor:pointer}.opt-text[_ngcontent-%COMP%]{flex:1;border:0;background:none;padding:2px 0;font:inherit;color:inherit;outline:none}.opt-text[_ngcontent-%COMP%]:focus{border-bottom:1px solid var(--%NS%aastrika-gold)}.q-exp-edit[_ngcontent-%COMP%]{margin-top:10px;font-size:var(--%NS%aastrika-text-sm)}.save-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--%NS%aastrika-line)}.save-hint[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs)}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold)}.src-list[_ngcontent-%COMP%] li.off[_ngcontent-%COMP%]{opacity:.5}.langs[_ngcontent-%COMP%]{border:1px solid var(--%NS%aastrika-line);border-radius:10px;padding:14px 16px;margin-top:18px;background:var(--%NS%aastrika-surface-2)}.langs[_ngcontent-%COMP%] legend[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);padding:0 6px}.lang-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.lang-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--%NS%aastrika-line);border-radius:999px;background:var(--%NS%aastrika-surface);font-size:var(--%NS%aastrika-text-sm);line-height:1;color:var(--%NS%aastrika-fg);cursor:pointer;transition:border-color .12s,background .12s;-webkit-user-select:none;user-select:none}.lang-chip[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold)}.lang-chip[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0;cursor:pointer;accent-color:var(--%NS%aastrika-gold-deep)}.lang-chip.on[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);font-weight:600}.lang-chip[_ngcontent-%COMP%]:has(input:disabled){opacity:.5;cursor:default}.lang-chip[_ngcontent-%COMP%]:focus-within{outline:2px solid var(--%NS%aastrika-gold);outline-offset:2px}.langs[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{margin:10px 0 0}.ml[_ngcontent-%COMP%]{margin-left:12px}.lang-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--%NS%aastrika-line);margin:18px 0 14px}.lang-tab[_ngcontent-%COMP%]{padding:9px 16px;border:0;border-bottom:2px solid transparent;background:none;cursor:pointer;font:inherit;font-size:var(--%NS%aastrika-text-sm);color:var(--%NS%aastrika-muted)}.lang-tab[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-fg)}.lang-tab.on[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);border-bottom-color:var(--%NS%aastrika-gold);font-weight:600}.lang-tab[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%aastrika-gold);outline-offset:-2px}.q-locked[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{cursor:default}.q-locked[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:disabled{opacity:.45}.qc-note.warn[_ngcontent-%COMP%]{border-left-color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg)}.spin[_ngcontent-%COMP%]{display:inline-block;width:11px;height:11px;margin-right:7px;vertical-align:-1px;border:2px solid var(--%NS%aastrika-line);border-top-color:var(--%NS%aastrika-gold);border-radius:50%;animation:_ngcontent-%COMP%_aa-spin .7s linear infinite}@keyframes _ngcontent-%COMP%_aa-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin[_ngcontent-%COMP%]{animation:none;border-top-color:var(--%NS%aastrika-line)}}.field[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.pick.is-disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.export-note[_ngcontent-%COMP%]{margin:10px 0 0}.lang-note[_ngcontent-%COMP%]{margin:0 0 16px;padding:10px 14px;border-radius:8px;background:var(--%NS%aastrika-surface-2)}.progress[_ngcontent-%COMP%]{animation:aa-breathe 2.4s var(--%NS%aastrika-ease) infinite;display:flex;flex-direction:column;gap:9px;flex:1 1 280px;max-width:460px;padding:13px 16px;border:1px solid var(--%NS%aastrika-gold-soft);border-radius:12px;background:color-mix(in srgb,var(--%NS%aastrika-gold-soft) 30%,var(--%NS%aastrika-surface))}.progress-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:var(--%NS%aastrika-text-sm);font-weight:600;color:var(--%NS%aastrika-gold-deep)}.progress-time[_ngcontent-%COMP%]{margin-left:auto;font-size:var(--%NS%aastrika-text-xs);font-weight:500;color:var(--%NS%aastrika-gold-deep);opacity:.7}.progress-track[_ngcontent-%COMP%]{height:6px;border-radius:999px;background:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 13%,transparent);overflow:hidden}.progress-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,transparent,color-mix(in srgb,#fff 45%,transparent),transparent) 0 0 / 40% 100% no-repeat,var(--%NS%aastrika-primary-deep);animation:_ngcontent-%COMP%_aa-scan 1.6s var(--%NS%aastrika-ease) infinite;transition:width .9s linear}@keyframes _ngcontent-%COMP%_aa-scan{to{background-position:250% 0}}@media(prefers-reduced-motion:reduce){.progress-fill[_ngcontent-%COMP%]{animation:none;background:var(--%NS%aastrika-primary-deep)}}.progress[_ngcontent-%COMP%] .spin[_ngcontent-%COMP%]{width:13px;height:13px;margin:0;flex:none;border-width:2px;border-color:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 22%,transparent);border-top-color:var(--%NS%aastrika-gold-deep)}.gen-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.gen-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{flex:none}.btn[_ngcontent-%COMP%]:disabled.is-running{background:var(--%NS%aastrika-primary);color:var(--%NS%aastrika-on-primary)}@media(prefers-reduced-motion:reduce){.progress-fill[_ngcontent-%COMP%]{transition:none}}"],changeDetection:1})};var zw=(e,t)=>t.creator,Tv=(e,t)=>t.id;function Gw(e,t){e&1&&(u(0,"p",4),g(1,"Usage"),d(),u(2,"h1",5),g(3,"Usage & spend"),d())}function Ww(e,t){e&1&&(u(0,"p",1),g(1,"Loading\u2026"),d())}function qw(e,t){if(e&1&&(u(0,"div",2)(1,"p",1),g(2),d()()),e&2){let n=y();f(2),D(n.error())}}function Zw(e,t){if(e&1){let n=H();u(0,"div",6),g(1," Showing: "),u(2,"b"),g(3),d(),u(4,"a",26),N("click",function(i){return M(n),y(3).clearFilter(),I(i.preventDefault())}),O(5,"aa-icon",27),g(6,"All users"),d()()}if(e&2){let n=y(3);f(3),D(n.selectedCreator())}}function Yw(e,t){if(e&1&&(u(0,"span",11),O(1,"span",28),d()),e&2){let n=y();ke("aria-label",n.totals.videosDone+" of "+n.totals.videos+" finished"),f(),rt("width",n.totals.videosDone/n.totals.videos*100,"%")}}function Qw(e,t){if(e&1){let n=H();u(0,"tr",29),N("click",function(){let i=M(n).$implicit,o=y(3);return I(o.toggleCreator(i.creator))}),u(1,"td")(2,"b"),g(3),d()(),u(4,"td",30),g(5),d(),u(6,"td",30),g(7),d(),u(8,"td",30),g(9),d(),u(10,"td",30),g(11),d(),u(12,"td",30)(13,"b"),g(14),d()(),u(15,"td",1),g(16),ht(17,"date"),d(),u(18,"td",31),g(19),d()()}if(e&2){let n=t.$implicit,r=y(3);oe("sel",r.selectedCreator()===n.creator),f(3),D(n.creator),f(2),D(n.videos),f(2),D(n.quizzes),f(2),T("$",n.videoSpendUsd),f(2),T("$",n.quizSpendUsd),f(3),T("$",n.spendUsd),f(2),D(n.lastActive?dr(17,10,n.lastActive,"d MMM yyyy"):"\u2014"),f(3),D(r.selectedCreator()===n.creator?"selected":"view activity \u2192")}}function Kw(e,t){e&1&&(u(0,"tr")(1,"td",32),g(2,"No activity recorded yet."),d()())}function Jw(e,t){e&1&&(u(0,"span",1),g(1," est."),d())}function Xw(e,t){if(e&1){let n=H();u(0,"button",37),N("click",function(){M(n);let i=y().$implicit,o=y(3);return I(o.watch(i.id))}),O(1,"aa-icon",38),g(2,"View"),d()}}function eM(e,t){if(e&1){let n=H();u(0,"tr")(1,"td"),g(2),d(),u(3,"td"),g(4),d(),u(5,"td"),g(6),d(),u(7,"td")(8,"span"),g(9),d()(),u(10,"td",30),g(11),d(),u(12,"td",30),g(13),C(14,Jw,2,0,"span",1),d(),u(15,"td",1),g(16),ht(17,"date"),d(),u(18,"td",33),C(19,Xw,3,0,"button",34),u(20,"button",35),N("click",function(){let i=M(n).$implicit,o=y(3);return I(o.deleteItem.ask(i))}),O(21,"aa-icon",36),g(22,"Delete "),d()()()}if(e&2){let n=t.$implicit,r=y(3);f(2),D(n.title),f(2),D(n.creator),f(2),D(n.videoType),f(2),Yr(r.pill(n.status)),f(),D(n.status),f(2),D(n.feedbackRounds||""),f(2),T("$",n.costUsd),f(),b(n.costEstimated?14:-1),f(2),D(n.createdAt?dr(17,12,n.createdAt,"d MMM yyyy"):"\u2014"),f(3),b(n.video?19:-1),f(),E("title","Delete "+n.title)}}function tM(e,t){e&1&&(u(0,"tr")(1,"td",32),g(2,"No videos for this user."),d()())}function nM(e,t){e&1&&(u(0,"span",1),g(1," est."),d())}function rM(e,t){if(e&1){let n=H();u(0,"tr")(1,"td"),g(2),d(),u(3,"td"),g(4),d(),u(5,"td",30),g(6),d(),u(7,"td"),g(8),d(),u(9,"td")(10,"span"),g(11),d()(),u(12,"td",30),g(13),C(14,nM,2,0,"span",1),d(),u(15,"td",1),g(16),ht(17,"date"),d(),u(18,"td",33)(19,"button",39),N("click",function(){let i=M(n).$implicit,o=y(3);return I(o.export(i.id))}),O(20,"aa-icon",40),g(21,"Export"),d(),u(22,"button",35),N("click",function(){let i=M(n).$implicit,o=y(3);return I(o.deleteItem.ask(i))}),O(23,"aa-icon",36),g(24,"Delete "),d()()()}if(e&2){let n=t.$implicit,r=y(3);f(2),D(n.title),f(2),D(n.creator),f(2),D(n.questions),f(2),D(r.languagesOf(n)),f(2),Yr(r.pill(n.status)),f(),D(n.status),f(2),T("$",n.costUsd),f(),b(n.costEstimated?14:-1),f(2),D(n.createdAt?dr(17,11,n.createdAt,"d MMM yyyy"):"\u2014"),f(6),E("title","Delete "+n.title)}}function iM(e,t){e&1&&(u(0,"tr")(1,"td",32),g(2,"No assessments yet."),d()())}function oM(e,t){if(e&1&&(u(0,"p",25),g(1),d()),e&2){let n=y();f(),cr(" Showing the ",n.items.length," most recent of ",n.page.total," items. Totals above cover all ",n.page.total,". ")}}function sM(e,t){if(e&1){let n=H();C(0,Zw,7,1,"div",6),u(1,"div",7)(2,"div",8)(3,"span",9),g(4),d(),u(5,"span",10),g(6,"Videos"),d()(),u(7,"div",8)(8,"span",9),g(9),d(),u(10,"span",10),g(11,"Completed"),d(),C(12,Yw,2,3,"span",11),d(),u(13,"div",8)(14,"span",9),g(15),d(),u(16,"span",10),g(17,"Assessments"),d()(),u(18,"div",8)(19,"span",9),g(20),d(),u(21,"span",10),g(22,"People"),d()(),u(23,"div",12)(24,"span",9),g(25),d(),u(26,"span",10),g(27,"Estimated spend"),d()()(),u(28,"div",13)(29,"h2",14),g(30,"Where the money went"),d(),u(31,"div",15),O(32,"i",16)(33,"i",17),d(),u(34,"div",18)(35,"span"),O(36,"i",19),g(37),d(),u(38,"span"),O(39,"i",20),g(40),d()()(),u(41,"div",13)(42,"h2",14),g(43,"Users"),d(),u(44,"input",21),N("ngModelChange",function(i){M(n);let o=y(2);return I(o.search.set(i))}),d(),W(),u(45,"div",22)(46,"table")(47,"thead")(48,"tr")(49,"th"),g(50,"User"),d(),u(51,"th",23),g(52,"Videos"),d(),u(53,"th",23),g(54,"Assessments"),d(),u(55,"th",23),g(56,"Video spend"),d(),u(57,"th",23),g(58,"Assessment spend"),d(),u(59,"th",23),g(60,"Total spend"),d(),u(61,"th"),g(62,"Last active"),d(),O(63,"th"),d()(),u(64,"tbody"),Y(65,Qw,20,13,"tr",24,zw,!1,Kw,3,0,"tr"),d()()()(),u(68,"div",13)(69,"h2",14),g(70,"Videos"),d(),u(71,"div",22)(72,"table")(73,"thead")(74,"tr")(75,"th"),g(76,"Title"),d(),u(77,"th"),g(78,"Creator"),d(),u(79,"th"),g(80,"Type"),d(),u(81,"th"),g(82,"Status"),d(),u(83,"th",23),g(84,"Feedback rounds"),d(),u(85,"th",23),g(86,"Cost (USD)"),d(),u(87,"th"),g(88,"Date"),d(),O(89,"th"),d()(),u(90,"tbody"),Y(91,eM,23,15,"tr",null,Tv,!1,tM,3,0,"tr"),d()()()(),u(94,"div",13)(95,"h2",14),g(96,"Assessments"),d(),u(97,"div",22)(98,"table")(99,"thead")(100,"tr")(101,"th"),g(102,"Title"),d(),u(103,"th"),g(104,"Creator"),d(),u(105,"th",23),g(106,"Questions"),d(),u(107,"th"),g(108,"Language"),d(),u(109,"th"),g(110,"Status"),d(),u(111,"th",23),g(112,"Cost (USD)"),d(),u(113,"th"),g(114,"Date"),d(),O(115,"th"),d()(),u(116,"tbody"),Y(117,rM,25,14,"tr",null,Tv,!1,iM,3,0,"tr"),d()()()(),C(120,oM,2,3,"p",25)}if(e&2){let n=t,r=y(2);b(r.selectedCreator()?0:-1),f(4),D(n.totals.videos),f(5),D(n.totals.videosDone),f(3),b(n.totals.videos?12:-1),f(3),D(n.totals.quizzes),f(5),D(n.totals.creators),f(5),T("$",n.totals.spendUsd),f(6),ke("aria-label","Videos "+r.split().video+"%, assessments "+r.split().assess+"%"),f(),rt("width",r.split().video,"%"),E("title","Videos: $"+n.totals.videoSpendUsd),f(),rt("width",r.split().assess,"%"),E("title","Assessments: $"+n.totals.quizSpendUsd),f(4),it(" Videos $",n.totals.videoSpendUsd," (",r.split().video,"%)"),f(3),it(" Assessments $",n.totals.quizSpendUsd," (",r.split().assess,"%)"),f(4),E("ngModel",r.search()),q(),f(21),Q(r.creators()),f(26),Q(r.videos()),f(26),Q(r.assessments()),f(3),b(r.truncated()?120:-1)}}function aM(e,t){if(e&1&&C(0,sM,121,23),e&2){let n,r=y();b((n=r.report())?0:-1,n)}}var ec=class e{api=x(Wt);destroyRef=x(fe);get untilGone(){return t=>t.pipe(ni(this.destroyRef))}static PAGE_SIZE=500;constructor(){xt(()=>{let t=this.creatorFilter()?.trim();t&&!this.seeded&&(this.selectedCreator.set(t),this.seeded=!0)})}seeded=!1;heading=be("on");creatorFilter=be(void 0);reportLoaded=Sn();report=k(null);error=k("");loading=k(!0);search=k("");selectedCreator=k(null);ngOnInit(){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:t=>{this.report.set(t),this.loading.set(!1),this.reportLoaded.emit({videos:t.totals.videos,assessments:t.totals.quizzes,users:t.totals.creators,spendUsd:t.totals.spendUsd})},error:t=>{this.error.set(ue(t,"reports",{401:"Please sign in to view usage."},"Could not load usage")),this.loading.set(!1)}})}truncated=$(()=>{let t=this.report();return t?t.page.total>t.items.length:!1});creators=$(()=>{let t=this.search().toLowerCase();return(this.report()?.creators??[]).filter(n=>n.creator.toLowerCase().includes(t))});ofType(t){let n=this.selectedCreator();return(this.report()?.items??[]).filter(r=>r.type===t&&(!n||r.creator===n))}videos=$(()=>this.ofType("video"));assessments=$(()=>this.ofType("assessment"));split=$(()=>{let t=this.report()?.totals;return!t||!t.spendUsd?{video:0,assess:0}:{video:Math.round(t.videoSpendUsd/t.spendUsd*100),assess:Math.round(t.quizSpendUsd/t.spendUsd*100)}});toggleCreator(t){this.selectedCreator.update(n=>n===t?null:t)}clearFilter(){this.selectedCreator.set(null)}export(t){hr({feature:"reports",lookup:this.api.exportUrl(t),fallbackHref:this.api.exportHref(t),onError:n=>this.error.set(n)})}watch(t){hr({feature:"reports",lookup:this.api.job(t).pipe(we(n=>({url:n.videoUrl??n.video??null,filename:""}))),fallbackHref:this.api.downloadVideoHref(t),onError:n=>this.error.set(n)})}deleteItem=Ya({feature:"reports",request:t=>t.type==="video"?this.api.deleteVideo(t.id):this.api.deleteQuiz(t.id),onDeleted:()=>this.refresh(()=>{}),onError:t=>this.error.set(t),fallback:"Could not delete it",byStatus:{403:"You do not have permission to delete that."}});deleteLabel=$(()=>this.deleteItem.pending()?.type==="video"?"Delete video":"Delete quiz");deleteMessage=$(()=>{let t=this.deleteItem.pending();return t?`This removes the ${t.type==="video"?"video":"quiz"} and its stored files permanently. This cannot be undone.`:""});refresh(t){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:n=>{this.report.set(n),this.error.set(""),t()},error:n=>{this.error.set(ue(n,"reports",{},"Deleted, but the page could not refresh")),t()}})}pill(t){return t==="done"?"chip":t==="failed"||t==="error"?"chip err":"chip warn"}languagesOf(t){return[t.language,...t.translations??[]].filter(Boolean).join(", ")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Tt({type:e,selectors:[["aa-reports"]],inputs:{heading:[1,"heading"],creatorFilter:[1,"creatorFilter"]},outputs:{reportLoaded:"reportLoaded"},decls:7,vars:8,consts:[[1,"page-sub"],[1,"muted"],["role","alert",1,"card","card-pad"],[3,"confirmed","cancelled","open","title","subject","message","confirmLabel","busy"],[1,"eyebrow"],[1,"page-title"],[1,"filter-bar"],[1,"tiles"],[1,"card","tile","is-interactive"],[1,"tile-n","mono"],[1,"tile-l"],[1,"tile-meter"],[1,"card","tile","accent","is-interactive"],[1,"card","card-pad","panel"],[1,"section-h"],["role","img",1,"split"],[1,"seg-v",3,"title"],[1,"seg-a",3,"title"],[1,"legend"],[1,"dot","v"],[1,"dot","a"],["placeholder","Search user\u2026",1,"field","search",3,"ngModelChange","ngModel"],[1,"tw"],[1,"num"],[1,"clickable",3,"sel"],[1,"sources","mono"],["href","#",3,"click"],["name","close"],[1,"tile-meter-fill"],[1,"clickable",3,"click"],[1,"num","mono"],[1,"act"],["colspan","8",1,"muted"],[1,"row-actions"],["type","button","title","View video",1,"act-btn"],["type","button",1,"act-btn","danger",3,"click","title"],["name","trash"],["type","button","title","View video",1,"act-btn",3,"click"],["name","play"],["type","button","title","Download as Excel",1,"act-btn",3,"click"],["name","download"]],template:function(n,r){n&1&&(C(0,Gw,4,0),u(1,"p",0),g(2,"Aggregated across Studio and Assessment. Spend is estimated from provider rates, not billed amounts."),d(),C(3,Ww,2,0,"p",1)(4,qw,3,1,"div",2)(5,aM,1,1),u(6,"aa-confirm-dialog",3),N("confirmed",function(){return r.deleteItem.confirm()})("cancelled",function(){return r.deleteItem.cancel()}),d()),n&2&&(b(r.heading()==="on"?0:-1),f(3),b(r.loading()?3:r.error()?4:5),f(3),E("open",r.deleteItem.open())("title",r.deleteLabel()+"?")("subject",r.deleteItem.pending()?.title??"")("message",r.deleteMessage())("confirmLabel",r.deleteLabel())("busy",r.deleteItem.busy()))},dependencies:[wn,li,Mn,ai,gr,di,In,nu],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #E0F2FE;--%NS%aastrika-cream-soft: #F0F7FF;--%NS%aastrika-bg: #F4F7FC;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #F8FAFC;--%NS%aastrika-ink: #0F172A;--%NS%aastrika-ink-2: #475569;--%NS%aastrika-muted: #94A3B8;--%NS%aastrika-primary: #0EA5E9;--%NS%aastrika-primary-soft: #E0F2FE;--%NS%aastrika-primary-deep: #0369A1;--%NS%aastrika-on-primary: #FFFFFF;--%NS%aastrika-gold: var(--%NS%aastrika-primary);--%NS%aastrika-gold-soft: var(--%NS%aastrika-primary-soft);--%NS%aastrika-gold-deep: var(--%NS%aastrika-primary-deep);--%NS%aastrika-line: #E2E8F0;--%NS%aastrika-line-2: #CBD5E1;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FEF6E7;--%NS%aastrika-warn-fg: #8F6206;--%NS%aastrika-warn-line: #F2D9A0;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-danger: #B42318;--%NS%aastrika-danger-line: #F2B8B0;--%NS%aastrika-danger-bg: #FEF3F2;--%NS%aastrika-console-bg: #0F172A;--%NS%aastrika-console-fg: #CBD5E1;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-text-xs: 12px;--%NS%aastrika-text-sm: 14px;--%NS%aastrika-text-md: 16px;--%NS%aastrika-text-lg: 20px;--%NS%aastrika-text-xl: 25px;--%NS%aastrika-text-2xl: 32px;--%NS%aastrika-space-1: 4px;--%NS%aastrika-space-2: 8px;--%NS%aastrika-space-3: 12px;--%NS%aastrika-space-4: 16px;--%NS%aastrika-space-6: 24px;--%NS%aastrika-space-8: 32px;--%NS%aastrika-space-12: 48px;--%NS%aastrika-ease: cubic-bezier(.22, 1, .36, 1);--%NS%aastrika-fast: .15s;--%NS%aastrika-slow: .32s;--%NS%aastrika-shadow-lift: 0 2px 4px rgba(26,26,26,.04), 0 12px 32px rgba(26,26,26,.07);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}[_nghost-%COMP%]{display:block;font-family:var(--%NS%aastrika-font);color:var(--%NS%aastrika-ink)}[_nghost-%COMP%] button[_ngcontent-%COMP%], [_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] select[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{font:inherit}[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] select[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink)}[_nghost-%COMP%] input[_ngcontent-%COMP%]:disabled, [_nghost-%COMP%] select[_ngcontent-%COMP%]:disabled, [_nghost-%COMP%] textarea[_ngcontent-%COMP%]:disabled{color:var(--%NS%aastrika-ink-2);-webkit-text-fill-color:var(--%NS%aastrika-ink-2);opacity:1}.eyebrow[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:var(--%NS%aastrika-text-xs);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-primary-deep);margin-bottom:var(--%NS%aastrika-space-3)}.eyebrow[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;max-width:220px;background:linear-gradient(to right,color-mix(in srgb,var(--%NS%aastrika-primary) 35%,transparent),transparent)}.page-title[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-2xl);line-height:1.12;letter-spacing:-.02em;font-weight:700;margin-bottom:12px;text-wrap:balance;max-width:30ch}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink-2);font-size:var(--%NS%aastrika-text-md);line-height:1.5;margin-bottom:30px;max-width:58ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:18px;box-shadow:inset 0 1px #ffffffe6,0 1px 2px #0f172a0a,0 8px 24px -12px #0f172a1a}.card-pad[_ngcontent-%COMP%]{padding:var(--%NS%aastrika-space-6) var(--%NS%aastrika-space-6)}.label[_ngcontent-%COMP%]{display:block;font-size:var(--%NS%aastrika-text-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:12px;outline:none;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.field[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2)}.field[_ngcontent-%COMP%]:focus{background:var(--%NS%aastrika-surface);border-color:var(--%NS%aastrika-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--%NS%aastrika-primary) 14%,transparent),0 2px 8px -2px color-mix(in srgb,var(--%NS%aastrika-primary) 22%,transparent)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:12px;border:1px solid transparent;box-shadow:inset 0 1px #ffffff38,0 1px 2px color-mix(in srgb,var(--%NS%aastrika-primary) 30%,transparent),0 6px 16px -6px color-mix(in srgb,var(--%NS%aastrika-primary) 45%,transparent);background:var(--%NS%aastrika-primary);color:var(--%NS%aastrika-on-primary);font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{background:color-mix(in srgb,var(--%NS%aastrika-primary) 8%,var(--%NS%aastrika-surface));color:color-mix(in srgb,var(--%NS%aastrika-primary-deep) 70%,var(--%NS%aastrika-muted));border-color:color-mix(in srgb,var(--%NS%aastrika-primary) 22%,transparent);box-shadow:none;cursor:not-allowed}.btn[_ngcontent-%COMP%]:disabled aa-icon[_ngcontent-%COMP%]{opacity:.75}.btn-lg[_ngcontent-%COMP%]{padding:13px 26px;font-size:var(--%NS%aastrika-text-sm);letter-spacing:.01em}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:var(--%NS%aastrika-text-xs);font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:var(--%NS%aastrika-max-width, 1100px)}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-primary-deep);box-shadow:inset 0 0 0 1.5px var(--%NS%aastrika-primary-soft);display:grid;place-items:center;font-size:var(--%NS%aastrika-text-xs);font-weight:700;font-variant-numeric:tabular-nums;transition:box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.step-n.is-active[_ngcontent-%COMP%]{background:var(--%NS%aastrika-primary-soft);box-shadow:inset 0 0 0 1.5px var(--%NS%aastrika-primary),0 0 0 4px color-mix(in srgb,var(--%NS%aastrika-primary) 12%,transparent)}.step-n.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-primary);color:var(--%NS%aastrika-on-primary);box-shadow:none}.step-t[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-md);font-weight:650;letter-spacing:-.01em;color:var(--%NS%aastrika-ink)}.card[_ngcontent-%COMP%] > .step-h[_ngcontent-%COMP%]{position:relative}.card[_ngcontent-%COMP%] > .step-h[_ngcontent-%COMP%]:before{content:"";position:absolute;left:13.5px;top:34px;width:1px;height:calc(100% + var(--%NS%aastrika-space-6));background:linear-gradient(to bottom,var(--%NS%aastrika-primary-soft),transparent);pointer-events:none}.card[_ngcontent-%COMP%]:last-of-type > .step-h[_ngcontent-%COMP%]:before{display:none}.step-note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--%NS%aastrika-ink) 2%,var(--%NS%aastrika-surface));box-shadow:none}.dim[_ngcontent-%COMP%] .step-t[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink-2)}.dim[_ngcontent-%COMP%] .card[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] .drop[_ngcontent-%COMP%], .dim[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{opacity:.78}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:var(--%NS%aastrika-space-4);padding:var(--%NS%aastrika-space-4) var(--%NS%aastrika-space-6);border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:14px;cursor:pointer;background:var(--%NS%aastrika-surface-2);transition:border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-primary);background:var(--%NS%aastrika-cream-soft)}.drop[_ngcontent-%COMP%]{justify-content:flex-start;padding-left:var(--%NS%aastrika-space-6);min-height:78px}.drop.is-over[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-primary);border-style:solid;background:var(--%NS%aastrika-primary-soft);box-shadow:0 0 0 4px color-mix(in srgb,var(--%NS%aastrika-primary) 12%,transparent)}.drop-sub[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.card.is-interactive[_ngcontent-%COMP%]{transition:transform var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),border-color var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.card.is-interactive[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:var(--%NS%aastrika-shadow-lift);border-color:var(--%NS%aastrika-line-2)}.is-selected[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-primary)!important;box-shadow:inset 0 0 0 1px var(--%NS%aastrika-primary),var(--%NS%aastrika-shadow-lift)}@keyframes _ngcontent-%COMP%_aa-shimmer{to{background-position:200% 0}}.is-working[_ngcontent-%COMP%]{background-image:linear-gradient(100deg,transparent 30%,color-mix(in srgb,var(--%NS%aastrika-primary) 9%,transparent) 50%,transparent 70%);background-size:200% 100%;animation:_ngcontent-%COMP%_aa-shimmer 1.8s linear infinite}@keyframes _ngcontent-%COMP%_aa-rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.aa-enter[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_aa-rise var(--%NS%aastrika-slow) var(--%NS%aastrika-ease) both}.label[_ngcontent-%COMP%]:has(aa-icon), .btn[_ngcontent-%COMP%]:has(aa-icon), .warn-note[_ngcontent-%COMP%]:has(aa-icon), .qc-note[_ngcontent-%COMP%]:has(aa-icon), .visual-note[_ngcontent-%COMP%]:has(aa-icon), .picked-name[_ngcontent-%COMP%]:has(aa-icon), .act-btn[_ngcontent-%COMP%]:has(aa-icon){display:inline-flex;align-items:center;gap:var(--%NS%aastrika-space-2)}.label[_ngcontent-%COMP%]:has(aa-icon){display:flex}.btn[_ngcontent-%COMP%]:focus-visible, .field[_ngcontent-%COMP%]:focus-visible, .card.is-interactive[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%aastrika-primary);outline-offset:2px}.btn[_ngcontent-%COMP%]{transition:background var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),transform var(--%NS%aastrika-fast) var(--%NS%aastrika-ease),box-shadow var(--%NS%aastrika-fast) var(--%NS%aastrika-ease)}.btn[_ngcontent-%COMP%]:not(:disabled):active{transform:translateY(1px)}@media(prefers-reduced-motion:reduce){.is-working[_ngcontent-%COMP%]{animation:none;background-image:none}.aa-enter[_ngcontent-%COMP%]{animation:none}.card.is-interactive[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]{transition:none}.card.is-interactive[_ngcontent-%COMP%]:hover, .btn[_ngcontent-%COMP%]:not(:disabled):active{transform:none}}@keyframes _ngcontent-%COMP%_aa-breathe{0%,to{box-shadow:0 0 0 1px var(--%NS%aastrika-primary-soft),0 0 color-mix(in srgb,var(--%NS%aastrika-primary) 18%,transparent)}50%{box-shadow:0 0 0 1px color-mix(in srgb,var(--%NS%aastrika-primary) 45%,transparent),0 0 0 10px color-mix(in srgb,var(--%NS%aastrika-primary) 6%,transparent)}}.is-thinking[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_aa-breathe 2.4s var(--%NS%aastrika-ease) infinite;border-color:transparent!important}.card.is-interactive[_ngcontent-%COMP%]{position:relative;overflow:hidden}.card.is-interactive[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--%NS%aastrika-primary) 35%,color-mix(in srgb,var(--%NS%aastrika-primary) 55%,#fff) 50%,var(--%NS%aastrika-primary) 65%,transparent);opacity:0;transition:opacity var(--%NS%aastrika-fast) var(--%NS%aastrika-ease);pointer-events:none}.card.is-interactive[_ngcontent-%COMP%]:hover:after, .card.is-interactive[_ngcontent-%COMP%]:focus-visible:after{opacity:1}.card.is-selected[_ngcontent-%COMP%]:after{opacity:1}@media(prefers-reduced-motion:reduce){.is-thinking[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 1px var(--%NS%aastrika-primary)}.card.is-interactive[_ngcontent-%COMP%]:after{transition:none}}[_nghost-%COMP%]{background-image:radial-gradient(60rem 40rem at 88% -10%,color-mix(in srgb,var(--%NS%aastrika-primary) 7%,transparent),transparent 60%),radial-gradient(50rem 35rem at -8% 108%,color-mix(in srgb,var(--%NS%aastrika-primary) 5%,transparent),transparent 60%);background-attachment:fixed;background-repeat:no-repeat}@keyframes _ngcontent-%COMP%_aa-spin-arc{to{transform:rotate(360deg)}}.aa-spinner[_ngcontent-%COMP%]{display:inline-block;flex:none;width:1em;height:1em;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,currentColor 300deg,transparent 360deg);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 2px));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 2px));animation:_ngcontent-%COMP%_aa-spin-arc .8s linear infinite;opacity:.9}.btn[_ngcontent-%COMP%] .aa-spinner[_ngcontent-%COMP%]{width:1.05em;height:1.05em}@media(prefers-reduced-motion:reduce){.aa-spinner[_ngcontent-%COMP%]{animation:none;background:conic-gradient(from 0deg,currentColor 0deg 360deg);opacity:.35}}',".tiles[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:22px}.tile[_ngcontent-%COMP%]{padding:20px 22px;display:flex;flex-direction:column;gap:4px}.tile-n[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xl);font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.tile-l[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.tile.accent[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:transparent}.tile.accent[_ngcontent-%COMP%] .tile-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep)}.section-h[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-sm);margin-bottom:14px}.tw[_ngcontent-%COMP%]{overflow-x:auto}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:var(--%NS%aastrika-text-sm);table-layout:fixed}td[_ngcontent-%COMP%]:first-child{overflow-wrap:anywhere}th[_ngcontent-%COMP%]:last-child, td[_ngcontent-%COMP%]:last-child{width:220px;white-space:normal}th[_ngcontent-%COMP%]{text-align:left;font-size:var(--%NS%aastrika-text-xs);letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);font-weight:600;padding:9px 14px;border-bottom:1px solid var(--%NS%aastrika-line);white-space:nowrap}td[_ngcontent-%COMP%]{padding:11px 14px;border-bottom:1px solid var(--%NS%aastrika-line);vertical-align:middle}tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}.num[_ngcontent-%COMP%]{text-align:right}.panel[_ngcontent-%COMP%]{margin-bottom:18px}.filter-bar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;background:var(--%NS%aastrika-gold-soft);border:1.5px solid var(--%NS%aastrika-gold);border-radius:999px;padding:6px 16px;font-size:var(--%NS%aastrika-text-sm);color:var(--%NS%aastrika-gold-deep)}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);text-decoration:none}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.split[_ngcontent-%COMP%]{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--%NS%aastrika-surface-2)}.split[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%}.seg-v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.seg-a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.legend[_ngcontent-%COMP%]{display:flex;gap:20px;margin-top:10px;font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted)}.dot[_ngcontent-%COMP%]{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.dot.v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.dot.a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.search[_ngcontent-%COMP%]{max-width:320px;margin-bottom:12px}tr.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.clickable[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface-2)}tr.sel[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft)}.act[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-primary-deep)}.sources[_ngcontent-%COMP%]{font-size:var(--%NS%aastrika-text-xs);color:var(--%NS%aastrika-muted);margin-top:4px}.row-actions[_ngcontent-%COMP%]{text-align:right;white-space:normal}.row-actions[_ngcontent-%COMP%] .act-btn[_ngcontent-%COMP%] + .act-btn[_ngcontent-%COMP%]{margin-left:6px}.act-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;vertical-align:middle;font:inherit;font-size:var(--%NS%aastrika-text-xs);line-height:1;padding:5px 9px;border:1px solid var(--%NS%aastrika-line-2);border-radius:6px;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);text-decoration:none;cursor:pointer}.act-btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.act-btn.danger[_ngcontent-%COMP%]{color:var(--%NS%aastrika-danger);border-color:var(--%NS%aastrika-danger-line)}.act-btn.danger[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-danger-bg)}.act-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.tile-meter[_ngcontent-%COMP%]{display:block;height:3px;margin-top:var(--%NS%aastrika-space-2);border-radius:999px;background:color-mix(in srgb,var(--%NS%aastrika-ink) 8%,transparent);overflow:hidden}.tile-meter-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:999px;background:var(--%NS%aastrika-primary);animation:_ngcontent-%COMP%_aa-meter var(--%NS%aastrika-slow) var(--%NS%aastrika-ease) both;transition:width var(--%NS%aastrika-slow) var(--%NS%aastrika-ease)}@keyframes _ngcontent-%COMP%_aa-meter{0%{transform:scaleX(0);transform-origin:left}}@media(prefers-reduced-motion:reduce){.tile-meter-fill[_ngcontent-%COMP%]{animation:none;transition:none}}"],changeDetection:1})};var cM=[{tag:"aastrika-content-studio",component:Ka},{tag:"aastrika-assessment",component:Ja},{tag:"aastrika-reports",component:ec}],v8=typeof document>"u"?Promise.resolve(null):uu({providers:[Gd(),vu(_u(),yu([qm])),{provide:ti,useValue:Gm}]}).then(e=>{for(let t of cM)Ym(t,e.injector);return e});export{$m as configure,v8 as ready};