charon-color-picker 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +8 -0
- package/package.json +97 -0
- package/styles.css +1 -0
package/main.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var Nd=Object.create;var vo=Object.defineProperty,kd=Object.defineProperties,Rd=Object.getOwnPropertyDescriptor,Od=Object.getOwnPropertyDescriptors,Pd=Object.getOwnPropertyNames,oa=Object.getOwnPropertySymbols,Fd=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty,Ld=Object.prototype.propertyIsEnumerable;var ia=(e,n,t)=>n in e?vo(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,J=(e,n)=>{for(var t in n||={})sa.call(n,t)&&ia(e,t,n[t]);if(oa)for(var t of oa(n))Ld.call(n,t)&&ia(e,t,n[t]);return e},fe=(e,n)=>kd(e,Od(n));var Vd=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var jd=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Pd(n))!sa.call(e,o)&&o!==t&&vo(e,o,{get:()=>n[o],enumerable:!(r=Rd(n,o))||r.enumerable});return e};var Bd=(e,n,t)=>(t=e!=null?Nd(Fd(e)):{},jd(n||!e||!e.__esModule?vo(t,"default",{value:e,enumerable:!0}):t,e));var rd=Vd(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.ERROR_CUSTOM_PROPERTY=void 0;co.ERROR_CUSTOM_PROPERTY="custom"});var yo=null;var aa=1,qt=Symbol("SIGNAL");function N(e){let n=yo;return yo=e,n}function Co(){return yo}var wo={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ca(e){if(!(Mo(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===aa)){if(!e.producerMustRecompute(e)&&!Io(e)){Do(e);return}e.producerRecomputeValue(e),Do(e)}}function Do(e){e.dirty=!1,e.lastCleanEpoch=aa}function Eo(e){return e&&(e.nextProducerIndex=0),N(e)}function la(e,n){if(N(n),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Mo(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)_o(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Io(e){xo(e);for(let n=0;n<e.producerNode.length;n++){let t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(ca(t),r!==t.version))return!0}return!1}function bo(e){if(xo(e),Mo(e))for(let n=0;n<e.producerNode.length;n++)_o(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function _o(e,n){if(Hd(e),e.liveConsumerNode.length===1&&Ud(e))for(let r=0;r<e.producerNode.length;r++)_o(e.producerNode[r],e.producerIndexOfThis[r]);let t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[n],o=e.liveConsumerNode[n];xo(o),o.producerIndexOfThis[r]=n}}function Mo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function xo(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Hd(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ud(e){return e.producerNode!==void 0}function zd(){throw new Error}var qd=zd;function So(e){qd=e}var To;function $t(){return To}function Te(e){let n=To;return To=e,n}var _n=Symbol("NotFound");function k(e){return typeof e=="function"}function Mn(e){let t=e(r=>{Error.call(r),r.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var xn=Mn(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
|
|
2
|
+
${t.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=t});function Ke(e,n){if(e){let t=e.indexOf(n);0<=t&&e.splice(t,1)}}var G=class e{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let i of t)i.remove(this);else t.remove(this);let{initialTeardown:r}=this;if(k(r))try{r()}catch(i){n=i instanceof xn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ua(i)}catch(s){n=n??[],s instanceof xn?n=[...n,...s.errors]:n.push(s)}}if(n)throw new xn(n)}}add(n){var t;if(n&&n!==this)if(this.closed)ua(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}}_hasParent(n){let{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){let{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Ke(t,n)}remove(n){let{_finalizers:t}=this;t&&Ke(t,n),n instanceof e&&n._removeParent(this)}};G.EMPTY=(()=>{let e=new G;return e.closed=!0,e})();var Ao=G.EMPTY;function Sn(e){return e instanceof G||e&&"closed"in e&&k(e.remove)&&k(e.add)&&k(e.unsubscribe)}function ua(e){k(e)?e():e.unsubscribe()}var pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var vt={setTimeout(e,n,...t){let{delegate:r}=vt;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){let{delegate:n}=vt;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Tn(e){vt.setTimeout(()=>{let{onUnhandledError:n}=pe;if(n)n(e);else throw e})}function No(){}var da=ko("C",void 0,void 0);function fa(e){return ko("E",void 0,e)}function pa(e){return ko("N",e,void 0)}function ko(e,n,t){return{kind:e,value:n,error:t}}var Qe=null;function yt(e){if(pe.useDeprecatedSynchronousErrorHandling){let n=!Qe;if(n&&(Qe={errorThrown:!1,error:null}),e(),n){let{errorThrown:t,error:r}=Qe;if(Qe=null,t)throw r}}else e()}function ha(e){pe.useDeprecatedSynchronousErrorHandling&&Qe&&(Qe.errorThrown=!0,Qe.error=e)}var Xe=class extends G{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Sn(n)&&n.add(this)):this.destination=rf}static create(n,t,r){return new Dt(n,t,r)}next(n){this.isStopped?Oo(pa(n),this):this._next(n)}error(n){this.isStopped?Oo(fa(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Oo(da,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},tf=Function.prototype.bind;function Ro(e,n){return tf.call(e,n)}var Po=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){An(r)}}error(n){let{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){An(r)}else An(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){An(t)}}},Dt=class extends Xe{constructor(n,t,r){super();let o;if(k(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&pe.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Ro(n.next,i),error:n.error&&Ro(n.error,i),complete:n.complete&&Ro(n.complete,i)}):o=n}this.destination=new Po(o)}};function An(e){pe.useDeprecatedSynchronousErrorHandling?ha(e):Tn(e)}function nf(e){throw e}function Oo(e,n){let{onStoppedNotification:t}=pe;t&&vt.setTimeout(()=>t(e,n))}var rf={closed:!0,next:No,error:nf,complete:No};var Ct=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Nn(e){return e}function ga(e){return e.length===0?Nn:e.length===1?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}var z=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){let r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){let i=sf(t)?t:new Dt(t,r,o);return yt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return r=ma(r),new r((o,i)=>{let s=new Dt({next:a=>{try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)}[Ct](){return this}pipe(...t){return ga(t)(this)}toPromise(t){return t=ma(t),new t((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function ma(e){var n;return(n=e??pe.Promise)!==null&&n!==void 0?n:Promise}function of(e){return e&&k(e.next)&&k(e.error)&&k(e.complete)}function sf(e){return e&&e instanceof Xe||of(e)&&Sn(e)}function af(e){return k(e?.lift)}function ee(e){return n=>{if(af(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ae(e,n,t,r,o){return new Fo(e,n,t,r,o)}var Fo=class extends Xe{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};var va=Mn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ee=(()=>{class e extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let r=new kn(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new va}next(t){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(t)}})}error(t){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){yt(()=>{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:r,isStopped:o,observers:i}=this;return r||o?Ao:(this.currentObservers=null,i.push(t),new G(()=>{this.currentObservers=null,Ke(i,t)}))}_checkFinalizedStatuses(t){let{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){let t=new z;return t.source=this,t}}return e.create=(n,t)=>new kn(n,t),e})(),kn=class extends Ee{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.next)===null||r===void 0||r.call(t,n)}error(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.error)===null||r===void 0||r.call(t,n)}complete(){var n,t;(t=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||t===void 0||t.call(n)}_subscribe(n){var t,r;return(r=(t=this.source)===null||t===void 0?void 0:t.subscribe(n))!==null&&r!==void 0?r:Ao}};var Wt=class extends Ee{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){let{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var Gt={now(){return(Gt.delegate||Date).now()},delegate:void 0};var Zt=class extends Ee{constructor(n=1/0,t=1/0,r=Gt){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){let{isStopped:t,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;t||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!n.closed;s+=r?1:2)n.next(i[s]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){let{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=t.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Rn=class extends G{constructor(n,t){super()}schedule(n,t=0){return this}};var Yt={setInterval(e,n,...t){let{delegate:r}=Yt;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){let{delegate:n}=Yt;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};var On=class extends Rn{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Yt.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return t;t!=null&&Yt.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(n,t);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r=!1,o;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Ke(r,this),n!=null&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}};var wt=class e{constructor(n,t=e.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}};wt.now=Gt.now;var Pn=class extends wt{constructor(n,t=wt.now){super(n,t),this.actions=[],this._active=!1}flush(n){let{actions:t}=this;if(this._active){t.push(n);return}let r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}};var ya=new Pn(On);var Da=new z(e=>e.complete());function Ca(e){return e&&k(e.schedule)}function wa(e){return e[e.length-1]}function Et(e){return Ca(wa(e))?e.pop():void 0}function Ea(e,n){return typeof wa(e)=="number"?e.pop():n}function ba(e,n,t,r){function o(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,n||[])).next())})}function Ia(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Je(e){return this instanceof Je?(this.v=e,this):new Je(e)}function _a(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(e,n||[]),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(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(M){return new Promise(function(W,F){i.push([f,M,W,F])>1||c(f,M)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(M){p(i[0][3],M)}}function l(f){f.value instanceof Je?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ma(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Ia=="function"?Ia(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Fn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ln(e){return k(e?.then)}function Vn(e){return k(e[Ct])}function jn(e){return Symbol.asyncIterator&&k(e?.[Symbol.asyncIterator])}function Bn(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 cf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Hn=cf();function Un(e){return k(e?.[Hn])}function zn(e){return _a(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:r,done:o}=yield Je(t.read());if(o)return yield Je(void 0);yield yield Je(r)}}finally{t.releaseLock()}})}function qn(e){return k(e?.getReader)}function te(e){if(e instanceof z)return e;if(e!=null){if(Vn(e))return lf(e);if(Fn(e))return uf(e);if(Ln(e))return df(e);if(jn(e))return xa(e);if(Un(e))return ff(e);if(qn(e))return pf(e)}throw Bn(e)}function lf(e){return new z(n=>{let t=e[Ct]();if(k(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function uf(e){return new z(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function df(e){return new z(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Tn)})}function ff(e){return new z(n=>{for(let t of e)if(n.next(t),n.closed)return;n.complete()})}function xa(e){return new z(n=>{hf(e,n).catch(t=>n.error(t))})}function pf(e){return xa(zn(e))}function hf(e,n){var t,r,o,i;return ba(this,void 0,void 0,function*(){try{for(t=Ma(e);r=yield t.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})}function ce(e,n,t,r=0,o=!1){let i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function $n(e,n=0){return ee((t,r)=>{t.subscribe(ae(r,o=>ce(r,e,()=>r.next(o),n),()=>ce(r,e,()=>r.complete(),n),o=>ce(r,e,()=>r.error(o),n)))})}function Wn(e,n=0){return ee((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function Sa(e,n){return te(e).pipe(Wn(n),$n(n))}function Ta(e,n){return te(e).pipe(Wn(n),$n(n))}function Aa(e,n){return new z(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function Na(e,n){return new z(t=>{let r;return ce(t,n,()=>{r=e[Hn](),ce(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){t.error(s);return}i?t.complete():t.next(o)},0,!0)}),()=>k(r?.return)&&r.return()})}function Gn(e,n){if(!e)throw new Error("Iterable cannot be null");return new z(t=>{ce(t,n,()=>{let r=e[Symbol.asyncIterator]();ce(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function ka(e,n){return Gn(zn(e),n)}function Ra(e,n){if(e!=null){if(Vn(e))return Sa(e,n);if(Fn(e))return Aa(e,n);if(Ln(e))return Ta(e,n);if(jn(e))return Gn(e,n);if(Un(e))return Na(e,n);if(qn(e))return ka(e,n)}throw Bn(e)}function ze(e,n){return n?Ra(e,n):te(e)}function Kt(e,n){return ee((t,r)=>{let o=0;t.subscribe(ae(r,i=>{r.next(e.call(n,i,o++))}))})}function Oa(e,n,t,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&n.complete()},f=M=>l<r?h(M):c.push(M),h=M=>{i&&n.next(M),l++;let W=!1;te(t(M,u++)).subscribe(ae(n,F=>{o?.(F),i?f(F):n.next(F)},()=>{W=!0},void 0,()=>{if(W)try{for(l--;c.length&&l<r;){let F=c.shift();s?ce(n,s,()=>h(F)):h(F)}p()}catch(F){n.error(F)}}))};return e.subscribe(ae(n,f,()=>{d=!0,p()})),()=>{a?.()}}function Lo(e,n,t=1/0){return k(n)?Lo((r,o)=>Kt((i,s)=>n(r,i,o,s))(te(e(r,o))),t):(typeof n=="number"&&(t=n),ee((r,o)=>Oa(r,o,e,t)))}function Zn(e=1/0){return Lo(Nn,e)}function Pa(){return Zn(1)}function Vo(...e){return Pa()(ze(e,Et(e)))}function jo(...e){let n=Et(e),t=Ea(e,1/0),r=e;return r.length?r.length===1?te(r[0]):Zn(t)(ze(r,n)):Da}function Bo(e,n=ya){return ee((t,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+e,u=n.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}t.subscribe(ae(r,l=>{i=l,s=n.now(),o||(o=n.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Ho(...e){let n=Et(e);return ee((t,r)=>{(n?Vo(e,t,n):Vo(e,t)).subscribe(r)})}function Uo(e,n){return ee((t,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();t.subscribe(ae(r,c=>{o?.unsubscribe();let l=0,u=i++;te(e(c,u)).subscribe(o=ae(r,d=>r.next(n?n(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var gf="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",I=class extends Error{code;constructor(n,t){super(vf(n,t)),this.code=n}};function mf(e){return`NG0${Math.abs(e)}`}function vf(e,n){return`${mf(e)}${n?": "+n:""}`}function Sr(e){return{toString:e}.toString()}var Yn="__parameters__";function yf(e){return function(...t){if(e){let r=e(...t);for(let o in r)this[o]=r[o]}}}function Ec(e,n,t){return Sr(()=>{let r=yf(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Yn)?c[Yn]:Object.defineProperty(c,Yn,{value:[]})[Yn];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Oe=globalThis;function O(e){for(let n in e)if(e[n]===O)return n;throw Error("Could not find renamed property on target object.")}function ne(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ne).join(", ")}]`;if(e==null)return""+e;let n=e.overriddenName||e.name;if(n)return`${n}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(`
|
|
4
|
+
`);return r>=0?t.slice(0,r):t}function ei(e,n){return e?n?`${e} ${n}`:e:n||""}var Df=O({__forward_ref__:O});function Ic(e){return e.__forward_ref__=Ic,e.toString=function(){return ne(this())},e}function me(e){return Cf(e)?e():e}function Cf(e){return typeof e=="function"&&e.hasOwnProperty(Df)&&e.__forward_ref__===Ic}function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function $i(e){return Fa(e,bc)||Fa(e,_c)}function Fa(e,n){return e.hasOwnProperty(n)?e[n]:null}function wf(e){let n=e&&(e[bc]||e[_c]);return n||null}function La(e){return e&&(e.hasOwnProperty(Va)||e.hasOwnProperty(Ef))?e[Va]:null}var bc=O({\u0275prov:O}),Va=O({\u0275inj:O}),_c=O({ngInjectableDef:O}),Ef=O({ngInjectorDef:O}),T=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=P({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Mc(e){return e&&!!e.\u0275providers}var If=O({\u0275cmp:O}),bf=O({\u0275dir:O}),_f=O({\u0275pipe:O}),Mf=O({\u0275mod:O}),ja=O({\u0275fac:O}),en=O({__NG_ELEMENT_ID__:O}),Ba=O({__NG_ENV_ID__:O});function xc(e){return typeof e=="string"?e:e==null?"":String(e)}function xf(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():xc(e)}function Sc(e,n){throw new I(-200,e)}function Wi(e,n){throw new I(-201,!1)}var S=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(S||{}),ti;function Tc(){return ti}function le(e){let n=ti;return ti=e,n}function Ac(e,n,t){let r=$i(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(t&S.Optional)return null;if(n!==void 0)return n;Wi(e,"Injector")}var Sf={},et=Sf,ni="__NG_DI_FLAG__",rr=class{injector;constructor(n){this.injector=n}retrieve(n,t){let r=t;return this.injector.get(n,r.optional?_n:et,r)}},or="ngTempTokenPath",Tf="ngTokenPath",Af=/\n/gm,Nf="\u0275",Ha="__source";function kf(e,n=S.Default){if($t()===void 0)throw new I(-203,!1);if($t()===null)return Ac(e,void 0,n);{let t=$t(),r;return t instanceof rr?r=t.injector:r=t,r.get(e,n&S.Optional?null:void 0,n)}}function A(e,n=S.Default){return(Tc()||kf)(me(e),n)}function R(e,n=S.Default){return A(e,Tr(n))}function Tr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ri(e){let n=[];for(let t=0;t<e.length;t++){let r=me(e[t]);if(Array.isArray(r)){if(r.length===0)throw new I(900,!1);let o,i=S.Default;for(let s=0;s<r.length;s++){let a=r[s],c=Rf(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}n.push(A(o,i))}else n.push(A(r))}return n}function Nc(e,n){return e[ni]=n,e.prototype[ni]=n,e}function Rf(e){return e[ni]}function Of(e,n,t,r){let o=e[or];throw n[Ha]&&o.unshift(n[Ha]),e.message=Pf(`
|
|
5
|
+
`+e.message,o,t,r),e[Tf]=o,e[or]=null,e}function Pf(e,n,t,r=null){e=e&&e.charAt(0)===`
|
|
6
|
+
`&&e.charAt(1)==Nf?e.slice(2):e;let o=ne(n);if(Array.isArray(n))o=n.map(ne).join(" -> ");else if(typeof n=="object"){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ne(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(Af,`
|
|
7
|
+
`)}`}var Ff=Nc(Ec("Optional"),8);var Lf=Nc(Ec("SkipSelf"),4);function nn(e,n){let t=e.hasOwnProperty(ja);return t?e[ja]:null}function Vf(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=n[r];if(t&&(o=t(o),i=t(i)),i!==o)return!1}return!0}function jf(e){return e.flat(Number.POSITIVE_INFINITY)}function Gi(e,n){e.forEach(t=>Array.isArray(t)?Gi(t,n):n(t))}function kc(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function ir(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Bf(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(o===1)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;){let i=o-2;e[o]=e[i],o--}e[n]=t,e[n+1]=r}}function Ar(e,n,t){let r=dn(e,n);return r>=0?e[r|1]=t:(r=~r,Bf(e,r,n,t)),r}function zo(e,n){let t=dn(e,n);if(t>=0)return e[t|1]}function dn(e,n){return Hf(e,n,1)}function Hf(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<t];if(n===s)return i<<t;s>n?o=i:r=i+1}return~(o<<t)}var xt={},oe=[],sr=new T(""),Rc=new T("",-1),Oc=new T(""),ar=class{get(n,t=et){if(t===et){let r=new Error(`NullInjectorError: No provider for ${ne(n)}!`);throw r.name="NullInjectorError",r}return t}};function Uf(e,n){let t=e[Mf]||null;if(!t&&n===!0)throw new Error(`Type ${ne(e)} does not have '\u0275mod' property.`);return t}function rn(e){return e[If]||null}function zf(e){return e[bf]||null}function qf(e){return e[_f]||null}function $f(e){return{\u0275providers:e}}function Wf(...e){return{\u0275providers:Pc(!0,e),\u0275fromNgModule:!0}}function Pc(e,...n){let t=[],r=new Set,o,i=s=>{t.push(s)};return Gi(n,s=>{let a=s;oi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Fc(o,i),t}function Fc(e,n){for(let t=0;t<e.length;t++){let{ngModule:r,providers:o}=e[t];Zi(o,i=>{n(i,r)})}}function oi(e,n,t,r){if(e=me(e),!e)return!1;let o=null,i=La(e),s=!i&&rn(e);if(!i&&!s){let c=e.ngModule;if(i=La(c),i)o=c;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 c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)oi(l,n,t,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Gi(i.imports,u=>{oi(u,n,t,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Fc(l,n)}if(!a){let l=nn(o)||(()=>new o);n({provide:o,useFactory:l,deps:oe},o),n({provide:Oc,useValue:o,multi:!0},o),n({provide:sr,useValue:()=>A(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Zi(c,u=>{n(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Zi(e,n){for(let t of e)Mc(t)&&(t=t.\u0275providers),Array.isArray(t)?Zi(t,n):n(t)}var Gf=O({provide:String,useValue:O});function Lc(e){return e!==null&&typeof e=="object"&&Gf in e}function Zf(e){return!!(e&&e.useExisting)}function Yf(e){return!!(e&&e.useFactory)}function ii(e){return typeof e=="function"}var Nr=new T(""),Xn={},Ua={},qo;function Yi(){return qo===void 0&&(qo=new ar),qo}var $e=class{},on=class extends $e{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,ai(n,s=>this.processProvider(s)),this.records.set(Rc,It(void 0,this)),o.has("environment")&&this.records.set($e,It(void 0,this));let i=this.records.get(Nr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Oc,oe,S.Self))}retrieve(n,t){let r=t;return this.get(n,r.optional?_n:et,r)}destroy(){Xt(this),this._destroyed=!0;let n=N(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),N(n)}}onDestroy(n){return Xt(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Xt(this);let t=Te(this),r=le(void 0),o;try{return n()}finally{Te(t),le(r)}}get(n,t=et,r=S.Default){if(Xt(this),n.hasOwnProperty(Ba))return n[Ba](this);r=Tr(r);let o,i=Te(this),s=le(void 0);try{if(!(r&S.SkipSelf)){let c=this.records.get(n);if(c===void 0){let l=tp(n)&&$i(n);l&&this.injectableDefInScope(l)?c=It(si(n),Xn):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c)}let a=r&S.Self?Yi():this.parent;return t=r&S.Optional&&t===et?null:t,a.get(n,t)}catch(a){if(a.name==="NullInjectorError"){if((a[or]=a[or]||[]).unshift(ne(n)),i)throw a;return Of(a,n,"R3InjectorError",this.source)}else throw a}finally{le(s),Te(i)}}resolveInjectorInitializers(){let n=N(null),t=Te(this),r=le(void 0),o;try{let i=this.get(sr,oe,S.Self);for(let s of i)s()}finally{Te(t),le(r),N(n)}}toString(){let n=[],t=this.records;for(let r of t.keys())n.push(ne(r));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=me(n);let t=ii(n)?n:me(n&&n.provide),r=Qf(n);if(!ii(n)&&n.multi===!0){let o=this.records.get(t);o||(o=It(void 0,Xn,!0),o.factory=()=>ri(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){let r=N(null);try{return t.value===Ua?Sc(ne(n)):t.value===Xn&&(t.value=Ua,t.value=t.factory()),typeof t.value=="object"&&t.value&&ep(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{N(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let t=me(n.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){let t=this._onDestroyHooks.indexOf(n);t!==-1&&this._onDestroyHooks.splice(t,1)}};function si(e){let n=$i(e),t=n!==null?n.factory:nn(e);if(t!==null)return t;if(e instanceof T)throw new I(204,!1);if(e instanceof Function)return Kf(e);throw new I(204,!1)}function Kf(e){if(e.length>0)throw new I(204,!1);let t=wf(e);return t!==null?()=>t.factory(e):()=>new e}function Qf(e){if(Lc(e))return It(void 0,e.useValue);{let n=Xf(e);return It(n,Xn)}}function Xf(e,n,t){let r;if(ii(e)){let o=me(e);return nn(o)||si(o)}else if(Lc(e))r=()=>me(e.useValue);else if(Yf(e))r=()=>e.useFactory(...ri(e.deps||[]));else if(Zf(e))r=()=>A(me(e.useExisting));else{let o=me(e&&(e.useClass||e.provide));if(Jf(e))r=()=>new o(...ri(e.deps));else return nn(o)||si(o)}return r}function Xt(e){if(e.destroyed)throw new I(205,!1)}function It(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Jf(e){return!!e.deps}function ep(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function tp(e){return typeof e=="function"||typeof e=="object"&&e instanceof T}function ai(e,n){for(let t of e)Array.isArray(t)?ai(t,n):t&&Mc(t)?ai(t.\u0275providers,n):n(t)}function Vc(e,n){let t;e instanceof on?(Xt(e),t=e):t=new rr(e);let r,o=Te(t),i=le(void 0);try{return n()}finally{Te(o),le(i)}}function np(){return Tc()!==void 0||$t()!=null}function rp(e){let n=Oe.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function op(e){return typeof e=="function"}var Fe=0,x=1,E=2,Q=3,ve=4,De=5,cr=6,lr=7,re=8,St=9,We=10,Y=11,sn=12,za=13,Ot=14,be=15,rt=16,bt=17,Ae=18,kr=19,jc=20,qe=21,$o=22,ur=23,ue=24,Wo=25,ye=26,Bc=1;var ot=7,dr=8,Tt=9,ie=10;function tt(e){return Array.isArray(e)&&typeof e[Bc]=="object"}function Le(e){return Array.isArray(e)&&e[Bc]===!0}function Ki(e){return(e.flags&4)!==0}function Pt(e){return e.componentOffset>-1}function Rr(e){return(e.flags&1)===1}function lt(e){return!!e.template}function fr(e){return(e[E]&512)!==0}function fn(e){return(e[E]&256)===256}var ci=class{previousValue;currentValue;firstChange;constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}};function Hc(e,n,t,r){n!==null?n.applyValueToInputSignal(n,r):e[t]=r}var Or=(()=>{let e=()=>Uc;return e.ngInherit=!0,e})();function Uc(e){return e.type.prototype.ngOnChanges&&(e.setInput=sp),ip}function ip(){let e=qc(this),n=e?.current;if(n){let t=e.previous;if(t===xt)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function sp(e,n,t,r,o){let i=this.declaredInputs[r],s=qc(e)||ap(e,{previous:xt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new ci(l&&l.currentValue,t,c===xt),Hc(e,n,o,t)}var zc="__ngSimpleChanges__";function qc(e){return e[zc]||null}function ap(e,n){return e[zc]=n}var qa=null;var j=function(e,n=null,t){qa?.(e,n,t)},$c="svg",cp="math";function _e(e){for(;Array.isArray(e);)e=e[Fe];return e}function Wc(e,n){return _e(n[e])}function Ve(e,n){return _e(n[e.index])}function Gc(e,n){return e.data[n]}function lp(e,n){return e[n]}function Ne(e,n){let t=n[e];return tt(t)?t:t[Fe]}function up(e){return(e[E]&4)===4}function Qi(e){return(e[E]&128)===128}function dp(e){return Le(e[Q])}function At(e,n){return n==null?null:e[n]}function Zc(e){e[bt]=0}function Xi(e){e[E]&1024||(e[E]|=1024,Qi(e)&&Pr(e))}function fp(e,n){for(;e>0;)n=n[Ot],e--;return n}function pn(e){return!!(e[E]&9216||e[ue]?.dirty)}function li(e){e[We].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),pn(e)&&Pr(e)}function Pr(e){e[We].changeDetectionScheduler?.notify(0);let n=it(e);for(;n!==null&&!(n[E]&8192||(n[E]|=8192,!Qi(n)));)n=it(n)}function Yc(e,n){if(fn(e))throw new I(911,!1);e[qe]===null&&(e[qe]=[]),e[qe].push(n)}function pp(e,n){if(e[qe]===null)return;let t=e[qe].indexOf(n);t!==-1&&e[qe].splice(t,1)}function it(e){let n=e[Q];return Le(n)?n[Q]:n}function Ji(e){return e[lr]??=[]}function es(e){return e.cleanup??=[]}function hp(e,n,t,r){let o=Ji(n);o.push(t),e.firstCreatePass&&es(e).push(r,o.length-1)}var b={lFrame:ol(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ui=!1;function gp(){return b.lFrame.elementDepthCount}function mp(){b.lFrame.elementDepthCount++}function vp(){b.lFrame.elementDepthCount--}function ts(){return b.bindingsEnabled}function yp(){return b.skipHydrationRootTNode!==null}function Dp(e){return b.skipHydrationRootTNode===e}function Cp(){b.skipHydrationRootTNode=null}function B(){return b.lFrame.lView}function se(){return b.lFrame.tView}function y(e){return b.lFrame.contextLView=e,e[re]}function D(e){return b.lFrame.contextLView=null,e}function Se(){let e=Kc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Kc(){return b.lFrame.currentTNode}function wp(){let e=b.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function ut(e,n){let t=b.lFrame;t.currentTNode=e,t.isParent=n}function ns(){return b.lFrame.isParent}function Qc(){b.lFrame.isParent=!1}function Ep(){return b.lFrame.contextLView}function Xc(){return ui}function $a(e){let n=ui;return ui=e,n}function Ip(e){return b.lFrame.bindingIndex=e}function Jc(){return b.lFrame.bindingIndex++}function el(e){let n=b.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function bp(){return b.lFrame.inI18n}function _p(e,n){let t=b.lFrame;t.bindingIndex=t.bindingRootIndex=e,di(n)}function Mp(){return b.lFrame.currentDirectiveIndex}function di(e){b.lFrame.currentDirectiveIndex=e}function xp(e){let n=b.lFrame.currentDirectiveIndex;return n===-1?null:e[n]}function tl(){return b.lFrame.currentQueryIndex}function rs(e){b.lFrame.currentQueryIndex=e}function Sp(e){let n=e[x];return n.type===2?n.declTNode:n.type===1?e[De]:null}function nl(e,n,t){if(t&S.SkipSelf){let o=n,i=e;for(;o=o.parent,o===null&&!(t&S.Host);)if(o=Sp(i),o===null||(i=i[Ot],o.type&10))break;if(o===null)return!1;n=o,e=i}let r=b.lFrame=rl();return r.currentTNode=n,r.lView=e,!0}function os(e){let n=rl(),t=e[x];b.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function rl(){let e=b.lFrame,n=e===null?null:e.child;return n===null?ol(e):n}function ol(e){let n={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=n),n}function il(){let e=b.lFrame;return b.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var sl=il;function is(){let e=il();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 Tp(e){return(b.lFrame.contextLView=fp(e,b.lFrame.contextLView))[re]}function dt(){return b.lFrame.selectedIndex}function st(e){b.lFrame.selectedIndex=e}function Ap(){let e=b.lFrame;return Gc(e.tView,e.selectedIndex)}function al(){b.lFrame.currentNamespace=$c}function Np(){return b.lFrame.currentNamespace}var cl=!0;function Fr(){return cl}function Lr(e){cl=e}function kp(e,n,t){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){let s=Uc(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}function ss(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){let i=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-t,s),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),c&&(e.viewHooks??=[]).push(-t,c),l&&((e.viewHooks??=[]).push(t,l),(e.viewCheckHooks??=[]).push(t,l)),u!=null&&(e.destroyHooks??=[]).push(t,u)}}function Jn(e,n,t){ll(e,n,3,t)}function er(e,n,t,r){(e[E]&3)===t&&ll(e,n,t,r)}function Go(e,n){let t=e[E];(t&3)===n&&(t&=16383,t+=1,e[E]=t)}function ll(e,n,t,r){let o=r!==void 0?e[bt]&65535:0,i=r??-1,s=n.length-1,a=0;for(let c=o;c<s;c++)if(typeof n[c+1]=="number"){if(a=n[c],r!=null&&a>=r)break}else n[c]<0&&(e[bt]+=65536),(a<i||i==-1)&&(Rp(e,t,n,c),e[bt]=(e[bt]&4294901760)+c+2),c++}function Wa(e,n){j(4,e,n);let t=N(null);try{n.call(e)}finally{N(t),j(5,e,n)}}function Rp(e,n,t,r){let o=t[r]<0,i=t[r+1],s=o?-t[r]:t[r],a=e[s];o?e[E]>>14<e[bt]>>16&&(e[E]&3)===n&&(e[E]+=16384,Wa(a,i)):Wa(a,i)}var Mt=-1,an=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,t,r){this.factory=n,this.canSeeViewProviders=t,this.injectImpl=r}};function Op(e){return(e.flags&8)!==0}function Pp(e){return(e.flags&16)!==0}function Fp(e,n,t){let r=0;for(;r<t.length;){let o=t[r];if(typeof o=="number"){if(o!==0)break;r++;let i=t[r++],s=t[r++],a=t[r++];e.setAttribute(n,s,a,i)}else{let i=o,s=t[++r];Vp(i)?e.setProperty(n,i,s):e.setAttribute(n,i,s),r++}}return r}function Lp(e){return e===3||e===4||e===6}function Vp(e){return e.charCodeAt(0)===64}function Vr(e,n){if(!(n===null||n.length===0))if(e===null||e.length===0)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){let o=n[r];typeof o=="number"?t=o:t===0||(t===-1||t===2?Ga(e,t,o,null,n[++r]):Ga(e,t,o,null,null))}}return e}function Ga(e,n,t,r,o){let i=0,s=e.length;if(n===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===n){s=-1;break}else if(a>n){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===t){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,n),i=s+1),e.splice(i++,0,t),o!==null&&e.splice(i++,0,o)}function ul(e){return e!==Mt}function pr(e){return e&32767}function jp(e){return e>>16}function hr(e,n){let t=jp(e),r=n;for(;t>0;)r=r[Ot],t--;return r}var fi=!0;function Za(e){let n=fi;return fi=e,n}var Bp=256,dl=Bp-1,fl=5,Hp=0,Ie={};function Up(e,n,t){let r;typeof t=="string"?r=t.charCodeAt(0)||0:t.hasOwnProperty(en)&&(r=t[en]),r==null&&(r=t[en]=Hp++);let o=r&dl,i=1<<o;n.data[e+(o>>fl)]|=i}function pl(e,n){let t=hl(e,n);if(t!==-1)return t;let r=n[x];r.firstCreatePass&&(e.injectorIndex=n.length,Zo(r.data,e),Zo(n,null),Zo(r.blueprint,null));let o=as(e,n),i=e.injectorIndex;if(ul(o)){let s=pr(o),a=hr(o,n),c=a[x].data;for(let l=0;l<8;l++)n[i+l]=a[s+l]|c[s+l]}return n[i+8]=o,i}function Zo(e,n){e.push(0,0,0,0,0,0,0,0,n)}function hl(e,n){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||n[e.injectorIndex+8]===null?-1:e.injectorIndex}function as(e,n){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;o!==null;){if(r=Dl(o),r===null)return Mt;if(t++,o=o[Ot],r.injectorIndex!==-1)return r.injectorIndex|t<<16}return Mt}function zp(e,n,t){Up(e,n,t)}function gl(e,n,t){if(t&S.Optional||e!==void 0)return e;Wi(n,"NodeInjector")}function ml(e,n,t,r){if(t&S.Optional&&r===void 0&&(r=null),(t&(S.Self|S.Host))===0){let o=e[St],i=le(void 0);try{return o?o.get(n,r,t&S.Optional):Ac(n,r,t&S.Optional)}finally{le(i)}}return gl(r,n,t)}function vl(e,n,t,r=S.Default,o){if(e!==null){if(n[E]&2048&&!(r&S.Self)){let s=Gp(e,n,t,r,Ie);if(s!==Ie)return s}let i=yl(e,n,t,r,Ie);if(i!==Ie)return i}return ml(n,t,r,o)}function yl(e,n,t,r,o){let i=$p(t);if(typeof i=="function"){if(!nl(n,e,r))return r&S.Host?gl(o,t,r):ml(n,t,r,o);try{let s;if(s=i(r),s==null&&!(r&S.Optional))Wi(t);else return s}finally{sl()}}else if(typeof i=="number"){let s=null,a=hl(e,n),c=Mt,l=r&S.Host?n[be][De]:null;for((a===-1||r&S.SkipSelf)&&(c=a===-1?as(e,n):n[a+8],c===Mt||!Ka(r,!1)?a=-1:(s=n[x],a=pr(c),n=hr(c,n)));a!==-1;){let u=n[x];if(Ya(i,a,u.data)){let d=qp(a,n,t,s,r,l);if(d!==Ie)return d}c=n[a+8],c!==Mt&&Ka(r,n[x].data[a+8]===l)&&Ya(i,a,n)?(s=u,a=pr(c),n=hr(c,n)):a=-1}}return o}function qp(e,n,t,r,o,i){let s=n[x],a=s.data[e+8],c=r==null?Pt(a)&&fi:r!=s&&(a.type&3)!==0,l=o&S.Host&&i===a,u=tr(a,s,t,c,l);return u!==null?gr(n,s,u,a):Ie}function tr(e,n,t,r,o){let i=e.providerIndexes,s=n.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let h=s[f];if(f<c&&t===h||f>=c&&h.type===t)return f}if(o){let f=s[c];if(f&<(f)&&f.type===t)return c}return null}function gr(e,n,t,r){let o=e[t],i=n.data;if(o instanceof an){let s=o;s.resolving&&Sc(xf(i[t]));let a=Za(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?le(s.injectImpl):null,u=nl(e,r,S.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&kp(t,i[t],n)}finally{l!==null&&le(l),Za(a),s.resolving=!1,sl()}}return o}function $p(e){if(typeof e=="string")return e.charCodeAt(0)||0;let n=e.hasOwnProperty(en)?e[en]:void 0;return typeof n=="number"?n>=0?n&dl:Wp:n}function Ya(e,n,t){let r=1<<e;return!!(t[n+(e>>fl)]&r)}function Ka(e,n){return!(e&S.Self)&&!(e&S.Host&&n)}var nt=class{_tNode;_lView;constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return vl(this._tNode,this._lView,n,Tr(r),t)}};function Wp(){return new nt(Se(),B())}function Gp(e,n,t,r,o){let i=e,s=n;for(;i!==null&&s!==null&&s[E]&2048&&!fr(s);){let a=yl(i,s,t,r|S.Self,Ie);if(a!==Ie)return a;let c=i.parent;if(!c){let l=s[jc];if(l){let u=l.get(t,Ie,r);if(u!==Ie)return u}c=Dl(s),s=s[Ot]}i=c}return o}function Dl(e){let n=e[x],t=n.type;return t===2?n.declTNode:t===1?e[De]:null}function Qa(e,n=null,t=null,r){let o=Cl(e,n,t,r);return o.resolveInjectorInitializers(),o}function Cl(e,n=null,t=null,r,o=new Set){let i=[t||oe,Wf(e)];return r=r||(typeof e=="object"?void 0:ne(e)),new on(i,n||Yi(),r||null,o)}var K=class e{static THROW_IF_NOT_FOUND=et;static NULL=new ar;static create(n,t){if(Array.isArray(n))return Qa({name:""},t,n,"");{let r=n.name??"";return Qa({name:r},n.parent,n.providers,r)}}static \u0275prov=P({token:e,providedIn:"any",factory:()=>A(Rc)});static __NG_ELEMENT_ID__=-1};var Zp=new T("");Zp.__NG_ELEMENT_ID__=e=>{let n=Se();if(n===null)throw new I(204,!1);if(n.type&2)return n.value;if(e&S.Optional)return null;throw new I(204,!1)};var wl=!1,El=(()=>{class e{static __NG_ELEMENT_ID__=Yp;static __NG_ENV_ID__=t=>t}return e})(),pi=class extends El{_lView;constructor(n){super(),this._lView=n}onDestroy(n){return Yc(this._lView,n),()=>pp(this._lView,n)}};function Yp(){return new pi(B())}var Ge=class{},cs=new T("",{providedIn:"root",factory:()=>!1});var Il=new T(""),ls=new T(""),jr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Wt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=P({token:e,providedIn:"root",factory:()=>new e})}return e})();var hi=class extends Ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,np()&&(this.destroyRef=R(El,{optional:!0})??void 0,this.pendingTasks=R(jr,{optional:!0})??void 0)}emit(n){let t=N(null);try{super.next(n)}finally{N(t)}}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&typeof n=="object"){let c=n;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}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 n instanceof G&&n.add(a),a}wrapInTimeout(n){return t=>{let r=this.pendingTasks?.add();setTimeout(()=>{n(t),r!==void 0&&this.pendingTasks?.remove(r)})}}},L=hi;function mr(...e){}function bl(e){let n,t;function r(){e=mr;try{t!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(t),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Xa(e){return queueMicrotask(()=>e()),()=>{e=mr}}var us="isAngularZone",vr=us+"_ID",Kp=0,V=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new L(!1);onMicrotaskEmpty=new L(!1);onStable=new L(!1);onError=new L(!1);constructor(n){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=wl}=n;if(typeof Zone>"u")throw new I(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)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Jp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(us)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new I(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,Qp,mr,mr);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}},Qp={};function ds(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 Xp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function n(){bl(()=>{e.callbackScheduled=!1,gi(e),e.isCheckStableRunning=!0,ds(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),gi(e)}function Jp(e){let n=()=>{Xp(e)},t=Kp++;e._inner=e._inner.fork({name:"angular",properties:{[us]:!0,[vr]:t,[vr+t]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(eh(c))return r.invokeTask(i,s,a,c);try{return Ja(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&n(),ec(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Ja(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!th(c)&&n(),ec(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,gi(e),ds(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 gi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ja(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ec(e){e._nesting--,ds(e)}var cn=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new L;onMicrotaskEmpty=new L;onStable=new L;onError=new L;run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}};function eh(e){return _l(e,"__ignore_ng_zone__")}function th(e){return _l(e,"__scheduler_tick__")}function _l(e,n){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[n]===!0}function nh(e="zone.js",n){return e==="noop"?new cn:e==="zone.js"?new V(n):e}var ke=class{_console=console;handleError(n){this._console.error("ERROR",n)}},rh=new T("",{providedIn:"root",factory:()=>{let e=R(V),n=R(ke);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function oh(){return Ft(Se(),B())}function Ft(e,n){return new je(Ve(e,n))}var je=(()=>{class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=oh}return e})();function ih(e){return e instanceof je?e.nativeElement:e}function sh(){return this._results[Symbol.iterator]()}var mi=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 Ee}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;let r=jf(n);(this._changesDetected=!Vf(this._results,r,t))&&(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(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=sh};function Ml(e){return(e.flags&128)===128}var xl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(xl||{}),Sl=new Map,ah=0;function ch(){return ah++}function lh(e){Sl.set(e[kr],e)}function vi(e){Sl.delete(e[kr])}var tc="__ngContext__";function Lt(e,n){tt(n)?(e[tc]=n[kr],lh(n)):e[tc]=n}function Tl(e){return Nl(e[sn])}function Al(e){return Nl(e[ve])}function Nl(e){for(;e!==null&&!Le(e);)e=e[ve];return e}var yi;function kl(e){yi=e}function uh(){if(yi!==void 0)return yi;if(typeof document<"u")return document;throw new I(210,!1)}var fs=new T("",{providedIn:"root",factory:()=>dh}),dh="ng",ps=new T(""),ft=new T("",{providedIn:"platform",factory:()=>"unknown"});var hs=new T("",{providedIn:"root",factory:()=>uh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var fh="h",ph="b";var Rl=!1,hh=new T("",{providedIn:"root",factory:()=>Rl});var Ol=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Ol||{}),Br=new T(""),nc=new Set;function Pl(e){nc.has(e)||(nc.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var gh=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=P({token:e,providedIn:"root",factory:()=>new e})}return e})();var mh=()=>null;function Fl(e,n,t=!1){return mh(e,n,t)}function Ll(e,n){let t=e.contentQueries;if(t!==null){let r=N(null);try{for(let o=0;o<t.length;o+=2){let i=t[o],s=t[o+1];if(s!==-1){let a=e.data[s];rs(i),a.contentQueries(2,n[s],s)}}}finally{N(r)}}}function Di(e,n,t){rs(0);let r=N(null);try{n(e,t)}finally{N(r)}}function gs(e,n,t){if(Ki(n)){let r=N(null);try{let o=n.directiveStart,i=n.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=t[s];a.contentQueries(1,c,s)}}}finally{N(r)}}}var Me=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Me||{});var Ci=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${gf})`}};function Vl(e){return e instanceof Ci?e.changingThisBreaksApplicationSecurity:e}var vh=/^>|^->|<!--|-->|--!>|<!-$/g,yh=/(<|>)/g,Dh="\u200B$1\u200B";function Ch(e){return e.replace(vh,n=>n.replace(yh,Dh))}function ms(e){return e.ownerDocument}function wh(e){return e instanceof Function?e():e}function Eh(e,n,t){let r=e.length;for(;;){let o=e.indexOf(n,t);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=n.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}t=o+1}}var jl="ng-template";function Ih(e,n,t,r){let o=0;if(r){for(;o<n.length&&typeof n[o]=="string";o+=2)if(n[o]==="class"&&Eh(n[o+1].toLowerCase(),t,0)!==-1)return!0}else if(vs(e))return!1;if(o=n.indexOf(1,o),o>-1){let i;for(;++o<n.length&&typeof(i=n[o])=="string";)if(i.toLowerCase()===t)return!0}return!1}function vs(e){return e.type===4&&e.value!==jl}function bh(e,n,t){let r=e.type===4&&!t?jl:e.value;return n===r}function _h(e,n,t){let r=4,o=e.attrs,i=o!==null?Sh(o):0,s=!1;for(let a=0;a<n.length;a++){let c=n[a];if(typeof c=="number"){if(!s&&!he(r)&&!he(c))return!1;if(s&&he(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!bh(e,c,t)||c===""&&n.length===1){if(he(r))return!1;s=!0}}else if(r&8){if(o===null||!Ih(e,o,c,t)){if(he(r))return!1;s=!0}}else{let l=n[++a],u=Mh(c,o,vs(e),t);if(u===-1){if(he(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(he(r))return!1;s=!0}}}}return he(r)||s}function he(e){return(e&1)===0}function Mh(e,n,t,r){if(n===null)return-1;let o=0;if(r||!t){let i=!1;for(;o<n.length;){let s=n[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=n[++o];for(;typeof a=="string";)a=n[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Th(n,e)}function xh(e,n,t=!1){for(let r=0;r<n.length;r++)if(_h(e,n[r],t))return!0;return!1}function Sh(e){for(let n=0;n<e.length;n++){let t=e[n];if(Lp(t))return n}return e.length}function Th(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){let r=e[t];if(typeof r=="number")return-1;if(r===n)return t;t++}return-1}function rc(e,n){return e?":not("+n.trim()+")":n}function Ah(e){let n=e[0],t=1,r=2,o="",i=!1;for(;t<e.length;){let s=e[t];if(typeof s=="string")if(r&2){let a=e[++t];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!he(s)&&(n+=rc(i,o),o=""),r=s,i=i||!he(r);t++}return o!==""&&(n+=rc(i,o)),n}function Nh(e){return e.map(Ah).join(",")}function kh(e){let n=[],t=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&n.push(i,e[++r]):o===8&&t.push(i);else{if(!he(o))break;o=i}r++}return t.length&&n.push(1,...t),n}var Ze={};function Rh(e,n){return e.createText(n)}function Oh(e,n,t){e.setValue(n,t)}function Ph(e,n){return e.createComment(Ch(n))}function Bl(e,n,t){return e.createElement(n,t)}function yr(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Hl(e,n,t){e.appendChild(n,t)}function oc(e,n,t,r,o){r!==null?yr(e,n,t,r,o):Hl(e,n,t)}function Fh(e,n,t){e.removeChild(null,n,t)}function Lh(e,n,t){e.setAttribute(n,"style",t)}function Vh(e,n,t){t===""?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function Ul(e,n,t){let{mergedAttrs:r,classes:o,styles:i}=t;r!==null&&Fp(e,n,r),o!==null&&Vh(e,n,o),i!==null&&Lh(e,n,i)}function ys(e,n,t,r,o,i,s,a,c,l,u){let d=ye+r,p=d+o,f=jh(d,p),h=typeof l=="function"?l():l;return f[x]={type:e,blueprint:f,template:t,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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:c,consts:h,incompleteFirstPass:!1,ssrId:u}}function jh(e,n){let t=[];for(let r=0;r<n;r++)t.push(r<e?null:Ze);return t}function Bh(e){let n=e.tView;return n===null||n.incompleteFirstPass?e.tView=ys(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function Ds(e,n,t,r,o,i,s,a,c,l,u){let d=n.blueprint.slice();return d[Fe]=o,d[E]=r|4|128|8|64|1024,(l!==null||e&&e[E]&2048)&&(d[E]|=2048),Zc(d),d[Q]=d[Ot]=e,d[re]=t,d[We]=s||e&&e[We],d[Y]=a||e&&e[Y],d[St]=c||e&&e[St]||null,d[De]=i,d[kr]=ch(),d[cr]=u,d[jc]=l,d[be]=n.type==2?e[be]:d,d}function Hh(e,n,t){let r=Ve(n,e),o=Bh(t),i=e[We].rendererFactory,s=Cs(e,Ds(e,o,null,zl(t),r,n,null,i.createRenderer(r,t),null,null,null));return e[n.index]=s}function zl(e){let n=16;return e.signals?n=4096:e.onPush&&(n=64),n}function ql(e,n,t,r){if(t===0)return-1;let o=n.length;for(let i=0;i<t;i++)n.push(r),e.blueprint.push(r),e.data.push(null);return o}function Cs(e,n){return e[sn]?e[za][ve]=n:e[sn]=n,e[za]=n,n}function C(e=1){$l(se(),B(),dt()+e,!1)}function $l(e,n,t,r){if(!r)if((n[E]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Jn(n,i,t)}else{let i=e.preOrderHooks;i!==null&&er(n,i,0,t)}st(t)}var Hr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Hr||{});function wi(e,n,t,r){let o=N(null);try{let[i,s,a]=e.inputs[t],c=null;(s&Hr.SignalBased)!==0&&(c=n[i][qt]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(n,r)),e.setInput!==null?e.setInput(n,c,r,t,i):Hc(n,c,i,r)}finally{N(o)}}function Wl(e,n,t,r,o){let i=dt(),s=r&2;try{st(-1),s&&n.length>ye&&$l(e,n,ye,!1),j(s?2:0,o),t(r,o)}finally{st(i),j(s?3:1,o)}}function Ur(e,n,t){Zh(e,n,t),(t.flags&64)===64&&Yh(e,n,t)}function ws(e,n,t=Ve){let r=n.localNames;if(r!==null){let o=n.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?t(n,e):e[s];e[o++]=a}}}function Uh(e,n,t,r){let i=r.get(hh,Rl)||t===Me.ShadowDom,s=e.selectRootElement(n,i);return zh(s),s}function zh(e){qh(e)}var qh=()=>null;function $h(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Wh(e,n,t,r,o,i,s,a){if(!a&&Is(n,e,t,r,o)){Pt(n)&&Gh(t,n.index);return}if(n.type&3){let c=Ve(n,t);r=$h(r),o=s!=null?s(o,n.value||"",r):o,i.setProperty(c,r,o)}else n.type&12}function Gh(e,n){let t=Ne(n,e);t[E]&16||(t[E]|=64)}function Zh(e,n,t){let r=t.directiveStart,o=t.directiveEnd;Pt(t)&&Hh(n,t,e.data[r+t.componentOffset]),e.firstCreatePass||pl(t,n);let i=t.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=gr(n,e,s,t);if(Lt(c,n),i!==null&&Qh(n,s-r,c,a,t,i),lt(a)){let l=Ne(t.index,n);l[re]=gr(n,e,s,t)}}}function Yh(e,n,t){let r=t.directiveStart,o=t.directiveEnd,i=t.index,s=Mp();try{st(i);for(let a=r;a<o;a++){let c=e.data[a],l=n[a];di(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Kh(c,l)}}finally{st(-1),di(s)}}function Kh(e,n){e.hostBindings!==null&&e.hostBindings(1,n)}function Es(e,n){let t=e.directiveRegistry,r=null;if(t)for(let o=0;o<t.length;o++){let i=t[o];xh(n,i.selectors,!1)&&(r??=[],lt(i)?r.unshift(i):r.push(i))}return r}function Qh(e,n,t,r,o,i){let s=i[n];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];wi(r,t,c,l)}}function Xh(e,n){let t=e[St],r=t?t.get(ke,null):null;r&&r.handleError(n)}function Is(e,n,t,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=n.data[l];wi(d,t[l],u,o),a=!0}if(i)for(let c of i){let l=t[c],u=n.data[c];wi(u,l,r,o),a=!0}return a}function Jh(e,n){let t=Ne(n,e),r=t[x];eg(r,t);let o=t[Fe];o!==null&&t[cr]===null&&(t[cr]=Fl(o,t[St])),j(18),bs(r,t,t[re]),j(19,t[re])}function eg(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}function bs(e,n,t){os(n);try{let r=e.viewQuery;r!==null&&Di(1,r,t);let o=e.template;o!==null&&Wl(e,n,o,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Ae]?.finishViewCreation(e),e.staticContentQueries&&Ll(e,n),e.staticViewQueries&&Di(2,e.viewQuery,t);let i=e.components;i!==null&&tg(n,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[E]&=-5,is()}}function tg(e,n){for(let t=0;t<n.length;t++)Jh(e,n[t])}function ng(e,n,t,r){let o=N(null);try{let i=n.tView,a=e[E]&4096?4096:16,c=Ds(e,i,t,a,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[n.index];c[rt]=l;let u=e[Ae];return u!==null&&(c[Ae]=u.createEmbeddedView(i)),bs(i,c,t),c}finally{N(o)}}function ic(e,n){return!n||n.firstChild===null||Ml(e)}var rg;function _s(e,n){return rg(e,n)}var Re=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Re||{});function Gl(e){return(e.flags&32)===32}function _t(e,n,t,r,o){if(r!=null){let i,s=!1;Le(r)?i=r:tt(r)&&(s=!0,r=r[Fe]);let a=_e(r);e===0&&t!==null?o==null?Hl(n,t,a):yr(n,t,a,o||null,!0):e===1&&t!==null?yr(n,t,a,o||null,!0):e===2?Fh(n,a,s):e===3&&n.destroyNode(a),i!=null&&gg(n,e,i,t,o)}}function og(e,n){Zl(e,n),n[Fe]=null,n[De]=null}function ig(e,n,t,r,o,i){r[Fe]=o,r[De]=n,qr(e,r,t,1,o,i)}function Zl(e,n){n[We].changeDetectionScheduler?.notify(9),qr(e,n,n[Y],2,null,null)}function sg(e){let n=e[sn];if(!n)return Yo(e[x],e);for(;n;){let t=null;if(tt(n))t=n[sn];else{let r=n[ie];r&&(t=r)}if(!t){for(;n&&!n[ve]&&n!==e;)tt(n)&&Yo(n[x],n),n=n[Q];n===null&&(n=e),tt(n)&&Yo(n[x],n),t=n&&n[ve]}n=t}}function Ms(e,n){let t=e[Tt],r=t.indexOf(n);t.splice(r,1)}function Yl(e,n){if(fn(n))return;let t=n[Y];t.destroyNode&&qr(e,n,t,3,null,null),sg(n)}function Yo(e,n){if(fn(n))return;let t=N(null);try{n[E]&=-129,n[E]|=256,n[ue]&&bo(n[ue]),cg(e,n),ag(e,n),n[x].type===1&&n[Y].destroy();let r=n[rt];if(r!==null&&Le(n[Q])){r!==n[Q]&&Ms(r,n);let o=n[Ae];o!==null&&o.detachView(e)}vi(n)}finally{N(t)}}function ag(e,n){let t=e.cleanup,r=n[lr];if(t!==null)for(let s=0;s<t.length-1;s+=2)if(typeof t[s]=="string"){let a=t[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[t[s+1]];t[s].call(a)}r!==null&&(n[lr]=null);let o=n[qe];if(o!==null){n[qe]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=n[ur];if(i!==null){n[ur]=null;for(let s of i)s.destroy()}}function cg(e,n){let t;if(e!=null&&(t=e.destroyHooks)!=null)for(let r=0;r<t.length;r+=2){let o=n[t[r]];if(!(o instanceof an)){let i=t[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];j(4,a,c);try{c.call(a)}finally{j(5,a,c)}}else{j(4,o,i);try{i.call(o)}finally{j(5,o,i)}}}}}function lg(e,n,t){return ug(e,n.parent,t)}function ug(e,n,t){let r=n;for(;r!==null&&r.type&168;)n=r,r=n.parent;if(r===null)return t[Fe];if(Pt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Me.None||o===Me.Emulated)return null}return Ve(r,t)}function dg(e,n,t){return pg(e,n,t)}function fg(e,n,t){return e.type&40?Ve(e,t):null}var pg=fg,sc;function zr(e,n,t,r){let o=lg(e,r,n),i=n[Y],s=r.parent||n[De],a=dg(s,r,n);if(o!=null)if(Array.isArray(t))for(let c=0;c<t.length;c++)oc(i,o,t[c],a,!1);else oc(i,o,t,a,!1);sc!==void 0&&sc(i,r,n,t,o)}function Jt(e,n){if(n!==null){let t=n.type;if(t&3)return Ve(n,e);if(t&4)return Ei(-1,e[n.index]);if(t&8){let r=n.child;if(r!==null)return Jt(e,r);{let o=e[n.index];return Le(o)?Ei(-1,o):_e(o)}}else{if(t&128)return Jt(e,n.next);if(t&32)return _s(n,e)()||_e(e[n.index]);{let r=Kl(e,n);if(r!==null){if(Array.isArray(r))return r[0];let o=it(e[be]);return Jt(o,r)}else return Jt(e,n.next)}}}return null}function Kl(e,n){if(n!==null){let r=e[be][De],o=n.projection;return r.projection[o]}return null}function Ei(e,n){let t=ie+e+1;if(t<n.length){let r=n[t],o=r[x].firstChild;if(o!==null)return Jt(r,o)}return n[ot]}function xs(e,n,t,r,o,i,s){for(;t!=null;){if(t.type===128){t=t.next;continue}let a=r[t.index],c=t.type;if(s&&n===0&&(a&&Lt(_e(a),r),t.flags|=2),!Gl(t))if(c&8)xs(e,n,t.child,r,o,i,!1),_t(n,e,o,a,i);else if(c&32){let l=_s(t,r),u;for(;u=l();)_t(n,e,o,u,i);_t(n,e,o,a,i)}else c&16?hg(e,n,r,t,o,i):_t(n,e,o,a,i);t=s?t.projectionNext:t.next}}function qr(e,n,t,r,o,i){xs(t,r,e.firstChild,n,o,i,!1)}function hg(e,n,t,r,o,i){let s=t[be],c=s[De].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];_t(n,e,o,u,i)}else{let l=c,u=s[Q];Ml(r)&&(l.flags|=128),xs(e,n,l,u,o,i,!0)}}function gg(e,n,t,r,o){let i=t[ot],s=_e(t);i!==s&&_t(n,e,r,i,o);for(let a=ie;a<t.length;a++){let c=t[a];qr(c[x],c,e,n,r,i)}}function mg(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=r.indexOf("-")===-1?void 0:Re.DashCase;o==null?e.removeStyle(t,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Re.Important),e.setStyle(t,r,o,i))}}function Dr(e,n,t,r,o=!1){for(;t!==null;){if(t.type===128){t=o?t.projectionNext:t.next;continue}let i=n[t.index];i!==null&&r.push(_e(i)),Le(i)&&vg(i,r);let s=t.type;if(s&8)Dr(e,n,t.child,r);else if(s&32){let a=_s(t,n),c;for(;c=a();)r.push(c)}else if(s&16){let a=Kl(n,t);if(Array.isArray(a))r.push(...a);else{let c=it(n[be]);Dr(c[x],c,a,r,!0)}}t=o?t.projectionNext:t.next}return r}function vg(e,n){for(let t=ie;t<e.length;t++){let r=e[t],o=r[x].firstChild;o!==null&&Dr(r[x],r,o,n)}e[ot]!==e[Fe]&&n.push(e[ot])}function Ql(e){if(e[Wo]!==null){for(let n of e[Wo])n.impl.addSequence(n);e[Wo].length=0}}var Xl=[];function yg(e){return e[ue]??Dg(e)}function Dg(e){let n=Xl.pop()??Object.create(wg);return n.lView=e,n}function Cg(e){e.lView[ue]!==e&&(e.lView=null,Xl.push(e))}var wg=fe(J({},wo),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Pr(e.lView)},consumerOnSignalRead(){this.lView[ue]=this}});function Eg(e){let n=e[ue]??Object.create(Ig);return n.lView=e,n}var Ig=fe(J({},wo),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let n=it(e.lView);for(;n&&!Jl(n[x]);)n=it(n);n&&Xi(n)},consumerOnSignalRead(){this.lView[ue]=this}});function Jl(e){return e.type!==2}function eu(e){if(e[ur]===null)return;let n=!0;for(;n;){let t=!1;for(let r of e[ur])r.dirty&&(t=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=t&&!!(e[E]&8192)}}var bg=100;function tu(e,n=!0,t=0){let o=e[We].rendererFactory,i=!1;i||o.begin?.();try{_g(e,t)}catch(s){throw n&&Xh(e,s),s}finally{i||o.end?.()}}function _g(e,n){let t=Xc();try{$a(!0),Ii(e,n);let r=0;for(;pn(e);){if(r===bg)throw new I(103,!1);r++,Ii(e,1)}}finally{$a(t)}}function Mg(e,n,t,r){if(fn(n))return;let o=n[E],i=!1,s=!1;os(n);let a=!0,c=null,l=null;i||(Jl(e)?(l=yg(n),c=Eo(l)):Co()===null?(a=!1,l=Eg(n),c=Eo(l)):n[ue]&&(bo(n[ue]),n[ue]=null));try{Zc(n),Ip(e.bindingStartIndex),t!==null&&Wl(e,n,t,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Jn(n,f,null)}else{let f=e.preOrderHooks;f!==null&&er(n,f,0,null),Go(n,0)}if(s||xg(n),eu(n),nu(n,0),e.contentQueries!==null&&Ll(e,n),!i)if(u){let f=e.contentCheckHooks;f!==null&&Jn(n,f)}else{let f=e.contentHooks;f!==null&&er(n,f,1),Go(n,1)}Tg(e,n);let d=e.components;d!==null&&ou(n,d,0);let p=e.viewQuery;if(p!==null&&Di(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Jn(n,f)}else{let f=e.viewHooks;f!==null&&er(n,f,2),Go(n,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),n[$o]){for(let f of n[$o])f();n[$o]=null}i||(Ql(n),n[E]&=-73)}catch(u){throw i||Pr(n),u}finally{l!==null&&(la(l,c),a&&Cg(l)),is()}}function nu(e,n){for(let t=Tl(e);t!==null;t=Al(t))for(let r=ie;r<t.length;r++){let o=t[r];ru(o,n)}}function xg(e){for(let n=Tl(e);n!==null;n=Al(n)){if(!(n[E]&2))continue;let t=n[Tt];for(let r=0;r<t.length;r++){let o=t[r];Xi(o)}}}function Sg(e,n,t){j(18);let r=Ne(n,e);ru(r,t),j(19,r[re])}function ru(e,n){Qi(e)&&Ii(e,n)}function Ii(e,n){let r=e[x],o=e[E],i=e[ue],s=!!(n===0&&o&16);if(s||=!!(o&64&&n===0),s||=!!(o&1024),s||=!!(i?.dirty&&Io(i)),s||=!1,i&&(i.dirty=!1),e[E]&=-9217,s)Mg(r,e,r.template,e[re]);else if(o&8192){eu(e),nu(e,1);let a=r.components;a!==null&&ou(e,a,1),Ql(e)}}function ou(e,n,t){for(let r=0;r<n.length;r++)Sg(e,n[r],t)}function Tg(e,n){let t=e.hostBindingOpCodes;if(t!==null)try{for(let r=0;r<t.length;r++){let o=t[r];if(o<0)st(~o);else{let i=o,s=t[++r],a=t[++r];_p(s,i);let c=n[i];j(24,c),a(2,c),j(25,c)}}}finally{st(-1)}}function Ss(e,n){let t=Xc()?64:1088;for(e[We].changeDetectionScheduler?.notify(n);e;){e[E]|=t;let r=it(e);if(fr(e)&&!r)return e;e=r}return null}function iu(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function Ag(e,n,t,r=!0){let o=n[x];if(Ng(o,n,e,t),r){let s=Ei(t,e),a=n[Y],c=a.parentNode(e[ot]);c!==null&&ig(o,e[De],a,n,c,s)}let i=n[cr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function bi(e,n){if(e.length<=ie)return;let t=ie+n,r=e[t];if(r){let o=r[rt];o!==null&&o!==e&&Ms(o,r),n>0&&(e[t-1][ve]=r[ve]);let i=ir(e,ie+n);og(r[x],r);let s=i[Ae];s!==null&&s.detachView(i[x]),r[Q]=null,r[ve]=null,r[E]&=-129}return r}function Ng(e,n,t,r){let o=ie+r,i=t.length;r>0&&(t[o-1][ve]=n),r<i-ie?(n[ve]=t[o],kc(t,ie+r,n)):(t.push(n),n[ve]=null),n[Q]=t;let s=n[rt];s!==null&&t!==s&&su(s,n);let a=n[Ae];a!==null&&a.insertView(e),li(n),n[E]|=128}function su(e,n){let t=e[Tt],r=n[Q];if(tt(r))e[E]|=2;else{let o=r[Q][be];n[be]!==o&&(e[E]|=2)}t===null?e[Tt]=[n]:t.push(n)}var ln=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let n=this._lView,t=n[x];return Dr(t,n,t.firstChild,[])}constructor(n,t,r=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=r}get context(){return this._lView[re]}set context(n){this._lView[re]=n}get destroyed(){return fn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[Q];if(Le(n)){let t=n[dr],r=t?t.indexOf(this):-1;r>-1&&(bi(n,r),ir(t,r))}this._attachedToViewContainer=!1}Yl(this._lView[x],this._lView)}onDestroy(n){Yc(this._lView,n)}markForCheck(){Ss(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){li(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,tu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=fr(this._lView),t=this._lView[rt];t!==null&&!n&&Ms(t,this._lView),Zl(this._lView[x],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=n;let t=fr(this._lView),r=this._lView[rt];r!==null&&!t&&su(r,this._lView),li(this._lView)}};function au(e){return pn(e._lView)||!!(e._lView[E]&64)}function cu(e){Xi(e._cdRefInjectingView||e._lView)}var at=(()=>{class e{static __NG_ELEMENT_ID__=Og}return e})(),kg=at,Rg=class extends kg{_declarationLView;_declarationTContainer;elementRef;constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){let o=ng(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new ln(o)}};function Og(){return Ts(Se(),B())}function Ts(e,n){return e.type&4?new Rg(n,e,Ft(e,n)):null}function $r(e,n,t,r,o){let i=e.data[n];if(i===null)i=Pg(e,n,t,r,o),bp()&&(i.flags|=32);else if(i.type&64){i.type=t,i.value=r,i.attrs=o;let s=wp();i.injectorIndex=s===null?-1:s.injectorIndex}return ut(i,!0),i}function Pg(e,n,t,r,o){let i=Kc(),s=ns(),a=s?i:i&&i.parent,c=e.data[n]=Lg(e,a,t,n,r,o);return Fg(e,c,i,s),c}function Fg(e,n,t,r){e.firstChild===null&&(e.firstChild=n),t!==null&&(r?t.child==null&&n.parent!==null&&(t.child=n):t.next===null&&(t.next=n,n.prev=t))}function Lg(e,n,t,r,o,i){let s=n?n.injectorIndex:-1,a=0;return yp()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,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:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var y0=new RegExp(`^(\\d+)*(${ph}|${fh})*(.*)`);var Vg=()=>null;function ac(e,n){return Vg(e,n)}var jg=class{},lu=class{},_i=class{resolveComponentFactory(n){throw Error(`No component factory found for ${ne(n)}.`)}},pt=class{static NULL=new _i},Nt=class{};var Bg=(()=>{class e{static \u0275prov=P({token:e,providedIn:"root",factory:()=>null})}return e})();var Ko={},Mi=class{injector;parentInjector;constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Tr(r);let o=this.injector.get(n,Ko,r);return o!==Ko||t===Ko?o:this.parentInjector.get(n,t,r)}};function xi(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(n!==null)for(let s=0;s<n.length;s++){let a=n[s];if(typeof a=="number")i=a;else if(i==1)o=ei(o,a);else if(i==2){let c=a,l=n[++s];r=ei(r,c+": "+l+";")}}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=o:e.classesWithoutHost=o}function H(e,n=S.Default){let t=B();if(t===null)return A(e,n);let r=Se();return vl(r,t,me(e),n)}function As(e,n,t,r,o){let i=r===null?null:{"":-1},s=o(e,t);if(s!==null){let a,c=null,l=null,u=Ug(s);u===null?a=s:[a,c,l]=u,$g(e,n,t,a,i,c,l)}i!==null&&r!==null&&Hg(t,r,i)}function Hg(e,n,t){let r=e.localNames=[];for(let o=0;o<n.length;o+=2){let i=t[n[o+1]];if(i==null)throw new I(-301,!1);r.push(n[o],i)}}function Ug(e){let n=null,t=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&<(a)&&(n=a),a.findHostDirectiveDefs!==null){t=!0;break}}if(!t)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,zg(s,r,i,o)),s===n&&(r??=[],r.push(s));return r!==null?(r.push(...n===null?e:e.slice(1)),[r,o,i]):null}function zg(e,n,t,r){let o=n.length;e.findHostDirectiveDefs(e,n,r),t.set(e,[o,n.length-1])}function qg(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function $g(e,n,t,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&<(f)&&(c=!0,qg(e,t,p)),zp(pl(t,n),e,f.type)}Qg(t,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=ql(e,n,a,null);a>0&&(t.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(t.mergedAttrs=Vr(t.mergedAttrs,f.hostAttrs),Gg(e,t,n,d,f),Kg(d,f,o),s!==null&&s.has(f)){let[M,W]=s.get(f);t.directiveToIndex.set(f.type,[d,M+t.directiveStart,W+t.directiveStart])}else(i===null||!i.has(f))&&t.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(t.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(t.flags|=64);let h=f.type.prototype;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),l=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),u=!0),d++}Wg(e,t,i)}function Wg(e,n,t){for(let r=n.directiveStart;r<n.directiveEnd;r++){let o=e.data[r];if(t===null||!t.has(o))cc(0,n,o,r),cc(1,n,o,r),uc(n,r,!1);else{let i=t.get(o);lc(0,n,i,r),lc(1,n,i,r),uc(n,r,!0)}}}function cc(e,n,t,r){let o=e===0?t.inputs:t.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=n.inputs??={}:s=n.outputs??={},s[i]??=[],s[i].push(r),uu(n,i)}}function lc(e,n,t,r){let o=e===0?t.inputs:t.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=n.hostDirectiveInputs??={}:a=n.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),uu(n,s)}}function uu(e,n){n==="class"?e.flags|=8:n==="style"&&(e.flags|=16)}function uc(e,n,t){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!t&&o===null||t&&i===null||vs(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(!t&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===n){s??=[],s.push(c,r[a+1]);break}}else if(t&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===n){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Gg(e,n,t,r,o){e.data[r]=o;let i=o.factory||(o.factory=nn(o.type,!0)),s=new an(i,lt(o),H);e.blueprint[r]=s,t[r]=s,Zg(e,n,r,ql(e,t,o.hostVars,Ze),o)}function Zg(e,n,t,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~n.index;Yg(s)!=a&&s.push(a),s.push(t,r,i)}}function Yg(e){let n=e.length;for(;n>0;){let t=e[--n];if(typeof t=="number"&&t<0)return t}return 0}function Kg(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;lt(n)&&(t[""]=e)}}function Qg(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}function du(e,n,t,r,o,i,s,a){let c=n.consts,l=At(c,s),u=$r(n,e,2,r,l);return i&&As(n,t,u,At(c,a),o),u.mergedAttrs=Vr(u.mergedAttrs,u.attrs),u.attrs!==null&&xi(u,u.attrs,!1),u.mergedAttrs!==null&&xi(u,u.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,u),u}function fu(e,n){ss(e,n),Ki(n)&&e.queries.elementEnd(n)}var Cr=class extends pt{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let t=rn(n);return new wr(t,this.ngModule)}};function Xg(e){return Object.keys(e).map(n=>{let[t,r,o]=e[n],i={propName:t,templateName:n,isSignal:(r&Hr.SignalBased)!==0};return o&&(i.transform=o),i})}function Jg(e){return Object.keys(e).map(n=>({propName:e[n],templateName:n}))}function em(e,n,t){let r=n instanceof $e?n:n?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Mi(t,r):t}function tm(e){let n=e.get(Nt,null);if(n===null)throw new I(407,!1);let t=e.get(Bg,null),r=e.get(Ge,null);return{rendererFactory:n,sanitizer:t,changeDetectionScheduler:r}}function nm(e,n){let t=(e.selectors[0][0]||"div").toLowerCase();return Bl(n,t,t==="svg"?$c:t==="math"?cp:null)}var wr=class extends lu{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Xg(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Jg(this.componentDef.outputs),this.cachedOutputs}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=Nh(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!t}create(n,t,r,o){j(22);let i=N(null);try{let s=this.componentDef,a=r?["ng-version","19.2.5"]:kh(this.componentDef.selectors[0]),c=ys(0,null,null,1,0,null,null,null,null,[a],null),l=em(s,o||this.ngModule,n),u=tm(l),d=u.rendererFactory.createRenderer(null,s),p=r?Uh(d,r,s.encapsulation,l):nm(s,d),f=Ds(null,c,null,512|zl(s),null,null,u,d,l,null,Fl(p,l,!0));f[ye]=p,os(f);let h=null;try{let M=du(ye,c,f,"#host",()=>[this.componentDef],!0,0);p&&(Ul(d,p,M),Lt(p,f)),Ur(c,f,M),gs(c,M,f),fu(c,M),t!==void 0&&rm(M,this.ngContentSelectors,t),h=Ne(M.index,f),f[re]=h[re],bs(c,f,null)}catch(M){throw h!==null&&vi(h),vi(f),M}finally{j(23),is()}return new Si(this.componentType,f)}finally{N(i)}}},Si=class extends jg{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,t){super(),this._rootLView=t,this._tNode=Gc(t[x],ye),this.location=Ft(this._tNode,t),this.instance=Ne(this._tNode.index,t)[re],this.hostView=this.changeDetectorRef=new ln(t,void 0,!1),this.componentType=n}setInput(n,t){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;let o=this._rootLView,i=Is(r,o[x],o,n,t);this.previousInputValues.set(n,t);let s=Ne(r.index,o);Ss(s,1)}get injector(){return new nt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function rm(e,n,t){let r=e.projection=[];for(let o=0;o<n.length;o++){let i=t[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Be=(()=>{class e{static __NG_ELEMENT_ID__=om}return e})();function om(){let e=Se();return hu(e,B())}var im=Be,pu=class extends im{_lContainer;_hostTNode;_hostLView;constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Ft(this._hostTNode,this._hostLView)}get injector(){return new nt(this._hostTNode,this._hostLView)}get parentInjector(){let n=as(this._hostTNode,this._hostLView);if(ul(n)){let t=hr(n,this._hostLView),r=pr(n),o=t[x].data[r+8];return new nt(o,t)}else return new nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let t=dc(this._lContainer);return t!==null&&t[n]||null}get length(){return this._lContainer.length-ie}createEmbeddedView(n,t,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ac(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(a,o,ic(this._hostTNode,s)),a}createComponent(n,t,r,o,i){let s=n&&!op(n),a;if(s)a=t;else{let h=t||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let c=s?n:new wr(rn(n)),l=r||this.parentInjector;if(!i&&c.ngModule==null){let M=(s?l:this.parentInjector).get($e,null);M&&(i=M)}let u=rn(c.componentType??{}),d=ac(this._lContainer,u?.id??null),p=d?.firstChild??null,f=c.create(l,o,p,i);return this.insertImpl(f.hostView,a,ic(this._hostTNode,d)),f}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){let o=n._lView;if(dp(o)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let c=o[Q],l=new pu(c,c[De],c[Q]);l.detach(l.indexOf(n))}}let i=this._adjustIndex(t),s=this._lContainer;return Ag(s,o,i,r),n.attachToViewContainerRef(),kc(Qo(s),i,n),n}move(n,t){return this.insert(n,t)}indexOf(n){let t=dc(this._lContainer);return t!==null?t.indexOf(n):-1}remove(n){let t=this._adjustIndex(n,-1),r=bi(this._lContainer,t);r&&(ir(Qo(this._lContainer),t),Yl(r[x],r))}detach(n){let t=this._adjustIndex(n,-1),r=bi(this._lContainer,t);return r&&ir(Qo(this._lContainer),t)!=null?new ln(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function dc(e){return e[dr]}function Qo(e){return e[dr]||(e[dr]=[])}function hu(e,n){let t,r=n[e.index];return Le(r)?t=r:(t=iu(r,n,null,e),n[e.index]=t,Cs(n,t)),am(t,n,e,r),new pu(t,e,n)}function sm(e,n){let t=e[Y],r=t.createComment(""),o=Ve(n,e),i=t.parentNode(o);return yr(t,i,r,t.nextSibling(o),!1),r}var am=um,cm=()=>!1;function lm(e,n,t){return cm(e,n,t)}function um(e,n,t,r){if(e[ot])return;let o;t.type&8?o=_e(r):o=sm(n,t),e[ot]=o}var Ti=class e{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ai=class e{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let t=n.queries;if(t!==null){let r=n.contentQueries!==null?n.contentQueries[0]:t.length,o=[];for(let i=0;i<r;i++){let s=t.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)Ns(n,t).matches!==null&&this.queries[t].setDirty()}},Ni=class{flags;read;predicate;constructor(n,t,r=null){this.flags=t,this.read=r,typeof n=="string"?this.predicate=ym(n):this.predicate=n}},ki=class e{queries;constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let r=0;r<this.length;r++){let o=t!==null?t.length:0,i=this.getByIndex(r).embeddedTView(n,o);i&&(i.indexInDeclarationView=r,t!==null?t.push(i):t=[i])}return t!==null?new e(t):null}template(n,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},Ri=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,t=-1){this.metadata=n,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new e(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let t=this._declarationNodeIndex,r=n.parent;for(;r!==null&&r.type&8&&r.index!==t;)r=r.parent;return t===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(n,t){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(n,t,dm(t,i)),this.matchTNodeWithReadOption(n,t,tr(t,n,i,!1,!1))}else r===at?t.type&4&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,tr(t,n,r,!1,!1))}matchTNodeWithReadOption(n,t,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===je||o===Be||o===at&&t.type&4)this.addMatch(t.index,-2);else{let i=tr(t,n,o,!1,!1);i!==null&&this.addMatch(t.index,i)}else this.addMatch(t.index,r)}}addMatch(n,t){this.matches===null?this.matches=[n,t]:this.matches.push(n,t)}};function dm(e,n){let t=e.localNames;if(t!==null){for(let r=0;r<t.length;r+=2)if(t[r]===n)return t[r+1]}return null}function fm(e,n){return e.type&11?Ft(e,n):e.type&4?Ts(e,n):null}function pm(e,n,t,r){return t===-1?fm(n,e):t===-2?hm(e,n,r):gr(e,e[x],t,n)}function hm(e,n,t){if(t===je)return Ft(n,e);if(t===at)return Ts(n,e);if(t===Be)return hu(n,e)}function gu(e,n,t,r){let o=n[Ae].queries[r];if(o.matches===null){let i=e.data,s=t.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 u=i[l];a.push(pm(n,u,s[c+1],t.metadata.read))}}o.matches=a}return o.matches}function Oi(e,n,t,r){let o=e.queries.getByIndex(t),i=o.matches;if(i!==null){let s=gu(e,n,o,t);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=n[-c];for(let d=ie;d<u.length;d++){let p=u[d];p[rt]===p[Q]&&Oi(p[x],p,l,r)}if(u[Tt]!==null){let d=u[Tt];for(let p=0;p<d.length;p++){let f=d[p];Oi(f[x],f,l,r)}}}}}return r}function gm(e,n){return e[Ae].queries[n].queryList}function mm(e,n,t){let r=new mi((t&4)===4);return hp(e,n,r,r.destroy),(n[Ae]??=new Ai).queries.push(new Ti(r))-1}function vm(e,n,t){let r=se();return r.firstCreatePass&&(Dm(r,new Ni(e,n,t),-1),(n&2)===2&&(r.staticViewQueries=!0)),mm(r,B(),n)}function ym(e){return e.split(",").map(n=>n.trim())}function Dm(e,n,t){e.queries===null&&(e.queries=new ki),e.queries.track(new Ri(n,t))}function Ns(e,n){return e.queries.getByIndex(n)}function Cm(e,n){let t=e[x],r=Ns(t,n);return r.crossesNgTemplate?Oi(t,e,n,[]):gu(t,e,r,n)}function wm(e){let n=[],t=new Map;function r(o){let i=t.get(o);if(!i){let s=e(o);t.set(o,i=s.then(_m))}return i}return Er.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(l=>{o.template=l}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let l=o.styles.length,u=o.styleUrls;o.styleUrls.forEach((d,p)=>{a.push(""),s.push(r(d).then(f=>{a[l+p]=f,u.splice(u.indexOf(d),1),u.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(l=>{a.push(l),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>Mm(i));n.push(c)}),Im(),Promise.all(n).then(()=>{})}var Er=new Map,Em=new Set;function Im(){let e=Er;return Er=new Map,e}function bm(){return Er.size===0}function _m(e){return typeof e=="string"?e:e.text()}function Mm(e){Em.delete(e)}var kt=class{},xm=class{};var Ir=class extends kt{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Cr(this);constructor(n,t,r,o=!0){super(),this.ngModuleType=n,this._parent=t;let i=Uf(n);this._bootstrapComponents=wh(i.bootstrap),this._r3Injector=Cl(n,t,[{provide:kt,useValue:this},{provide:pt,useValue:this.componentFactoryResolver},...r],ne(n),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},Pi=class extends xm{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new Ir(this.moduleType,n,[])}};function Sm(e,n,t){return new Ir(e,n,t,!1)}var Fi=class extends kt{injector;componentFactoryResolver=new Cr(this);instance=null;constructor(n){super();let t=new on([...n.providers,{provide:kt,useValue:this},{provide:pt,useValue:this.componentFactoryResolver}],n.parent||Yi(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Tm(e,n,t=null){return new Fi({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}var Am=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let r=Pc(!1,t.type),o=r.length>0?Tm([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=P({token:e,providedIn:"environment",factory:()=>new e(A($e))})}return e})();function Wr(e){return Sr(()=>{let n=mu(e),t=fe(J({},n),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===xl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?o=>o.get(Am).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Me.Emulated,styles:e.styles||oe,_:null,schemas:e.schemas||null,tView:null,id:""});n.standalone&&Pl("NgStandalone"),vu(t);let r=e.dependencies;return t.directiveDefs=fc(r,!1),t.pipeDefs=fc(r,!0),t.id=Pm(t),t})}function Nm(e){return rn(e)||zf(e)}function km(e){return e!==null}function He(e){return Sr(()=>({type:e.type,bootstrap:e.bootstrap||oe,declarations:e.declarations||oe,imports:e.imports||oe,exports:e.exports||oe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Rm(e,n){if(e==null)return xt;let t={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Hr.None,c=null),t[i]=[r,a,c],n[i]=s}return t}function Om(e){if(e==null)return xt;let n={};for(let t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function Ye(e){return Sr(()=>{let n=mu(e);return vu(n),n})}function mu(e){let n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputConfig:e.inputs||xt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||oe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Rm(e.inputs,n),outputs:Om(e.outputs),debugInfo:null}}function vu(e){e.features?.forEach(n=>n(e))}function fc(e,n){if(!e)return null;let t=n?qf:Nm;return()=>(typeof e=="function"?e():e).map(r=>t(r)).filter(km)}function Pm(e){let n=0,t=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,t,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("|"))n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function yu(e){return Lm(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Fm(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{let t=e[Symbol.iterator](),r;for(;!(r=t.next()).done;)n(r.value)}}function Lm(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Gr(e,n,t){let r=e[n];return Object.is(r,t)?!1:(e[n]=t,!0)}function Vm(e,n,t,r,o,i,s,a,c){let l=n.consts,u=$r(n,e,4,s||null,a||null);ts()&&As(n,t,u,At(l,c),Es),u.mergedAttrs=Vr(u.mergedAttrs,u.attrs),ss(n,u);let d=u.tView=ys(2,u,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return n.queries!==null&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}function jm(e,n,t,r,o,i,s,a,c,l){let u=t+ye,d=n.firstCreatePass?Vm(u,n,e,r,o,i,s,a,c):n.data[u];ut(d,!1);let p=Bm(n,e,d,t);Fr()&&zr(n,e,p,d),Lt(p,e);let f=iu(p,e,p,d);return e[u]=f,Cs(e,f),lm(f,d,e),Rr(d)&&Ur(n,e,d),c!=null&&ws(e,d,l),d}function q(e,n,t,r,o,i,s,a){let c=B(),l=se(),u=At(l.consts,i);return jm(c,l,e,n,t,r,o,u,s,a),q}var Bm=Hm;function Hm(e,n,t,r){return Lr(!0),n[Y].createComment("")}var ks=new T(""),hn=new T(""),Zr=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(t,r,o){this._ngZone=t,this.registry=r,Rs||(Um(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{V.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(t)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t()},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static \u0275fac=function(r){return new(r||e)(A(V),A(Yr),A(hn))};static \u0275prov=P({token:e,factory:e.\u0275fac})}return e})(),Yr=(()=>{class e{_applications=new Map;registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Rs?.findTestabilityInTree(this,t,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Um(e){Rs=e}var Rs,zm=(()=>{class e{static \u0275prov=P({token:e,providedIn:"root",factory:()=>new Li})}return e})(),Li=class{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}remove(n){let t=n.zone,r=this.queues.get(t);r.has(n)&&(r.delete(n),this.queuedEffectCount--)}enqueue(n){let t=n.zone;this.queues.has(t)||this.queues.set(t,new Set);let r=this.queues.get(t);r.has(n)||(this.queuedEffectCount++,r.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,t]of this.queues)n===null?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(let t of n)n.delete(t),this.queuedEffectCount--,t.run()}};function Os(e){return!!e&&typeof e.then=="function"}function Du(e){return!!e&&typeof e.subscribe=="function"}var qm=new T("");var Cu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r});appInits=R(qm,{optional:!0})??[];injector=R(K);constructor(){}runInitializers(){if(this.initialized)return;let t=[];for(let o of this.appInits){let i=Vc(this.injector,o);if(Os(i))t.push(i);else if(Du(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});t.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),t.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$m=new T("");function Wm(){So(()=>{throw new I(600,!1)})}function Gm(e){return e.isBoundToModule}var Zm=10;function wu(e,n){return Array.isArray(n)?n.reduce(wu,e):J(J({},e),n)}var xe=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=R(rh);afterRenderManager=R(gh);zonelessEnabled=R(cs);rootEffectScheduler=R(zm);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Ee;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=R(jr).hasPendingTasks.pipe(Kt(t=>!t));constructor(){R(Br,{optional:!0})}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{t.unsubscribe()})}_injector=R($e);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,r){j(10);let o=t instanceof lu;if(!this._injector.get(Cu).done){let p="";throw new I(405,p)}let s;o?s=t:s=this._injector.get(pt).resolveComponentFactory(t),this.componentTypes.push(s.componentType);let a=Gm(s)?void 0:this._injector.get(kt),c=r||s.selector,l=s.create(K.NULL,[],c,a),u=l.location.nativeElement,d=l.injector.get(ks,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),nr(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),j(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){j(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ol.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new I(101,!1);let t=N(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,N(t),this.afterTick.next(),j(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Nt,null,{optional:!0}));let t=0;for(;this.dirtyFlags!==0&&t++<Zm;)j(14),this.synchronizeOnce(),j(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let t=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)Ym(r,o,t,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:t})=>pn(t))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(t){let r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){let r=t;nr(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get($m,[]).forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>nr(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new I(406,!1);let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nr(e,n){let t=e.indexOf(n);t>-1&&e.splice(t,1)}function Ym(e,n,t,r){if(!t&&!pn(e))return;tu(e,n,t&&!r?0:1)}function Eu(e,n,t,r){return Gr(e,Jc(),t)?n+xc(t)+r:Ze}function Kn(e,n){return e<<17|n<<2}function ct(e){return e>>17&32767}function Km(e){return(e&2)==2}function Qm(e,n){return e&131071|n<<17}function Vi(e){return e|2}function Rt(e){return(e&131068)>>2}function Xo(e,n){return e&-131069|n<<2}function Xm(e){return(e&1)===1}function ji(e){return e|1}function Jm(e,n,t,r,o,i){let s=i?n.classBindings:n.styleBindings,a=ct(s),c=Rt(s);e[r]=t;let l=!1,u;if(Array.isArray(t)){let d=t;u=d[1],(u===null||dn(d,u)>0)&&(l=!0)}else u=t;if(o)if(c!==0){let p=ct(e[a+1]);e[r+1]=Kn(p,a),p!==0&&(e[p+1]=Xo(e[p+1],r)),e[a+1]=Qm(e[a+1],r)}else e[r+1]=Kn(a,0),a!==0&&(e[a+1]=Xo(e[a+1],r)),a=r;else e[r+1]=Kn(c,0),a===0?a=r:e[c+1]=Xo(e[c+1],r),c=r;l&&(e[r+1]=Vi(e[r+1])),pc(e,u,r,!0),pc(e,u,r,!1),ev(n,u,e,r,i),s=Kn(a,c),i?n.classBindings=s:n.styleBindings=s}function ev(e,n,t,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof n=="string"&&dn(i,n)>=0&&(t[r+1]=ji(t[r+1]))}function pc(e,n,t,r){let o=e[t+1],i=n===null,s=r?ct(o):Rt(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];tv(c,n)&&(a=!0,e[s+1]=r?ji(l):Vi(l)),s=r?ct(l):Rt(l)}a&&(e[t+1]=r?Vi(o):ji(o))}function tv(e,n){return e===null||n==null||(Array.isArray(e)?e[1]:e)===n?!0:Array.isArray(e)&&typeof n=="string"?dn(e,n)>=0:!1}var ge={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nv(e){return e.substring(ge.key,ge.keyEnd)}function rv(e){return ov(e),Iu(e,bu(e,0,ge.textEnd))}function Iu(e,n){let t=ge.textEnd;return t===n?-1:(n=ge.keyEnd=iv(e,ge.key=n,t),bu(e,n,t))}function ov(e){ge.key=0,ge.keyEnd=0,ge.value=0,ge.valueEnd=0,ge.textEnd=e.length}function bu(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function iv(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}function w(e,n,t){let r=B(),o=Jc();if(Gr(r,o,n)){let i=se(),s=Ap();Wh(i,s,r,e,n,r[Y],t,!1)}return w}function Bi(e,n,t,r,o){Is(n,e,t,o?"class":"style",r)}function Z(e,n,t){return Mu(e,n,t,!1),Z}function Kr(e,n){return Mu(e,n,null,!0),Kr}function ht(e){xu(dv,_u,e,!0)}function _u(e,n){for(let t=rv(n);t>=0;t=Iu(n,t))Ar(e,nv(n),!0)}function Mu(e,n,t,r){let o=B(),i=se(),s=el(2);if(i.firstUpdatePass&&Tu(i,e,s,r),n!==Ze&&Gr(o,s,n)){let a=i.data[dt()];Au(i,a,o,o[Y],e,o[s+1]=pv(n,t),r,s)}}function xu(e,n,t,r){let o=se(),i=el(2);o.firstUpdatePass&&Tu(o,null,i,r);let s=B();if(t!==Ze&&Gr(s,i,t)){let a=o.data[dt()];if(Nu(a,r)&&!Su(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(t=ei(c,t||"")),Bi(o,a,s,t,r)}else fv(o,a,s,s[Y],s[i+1],s[i+1]=uv(e,n,t),r,i)}}function Su(e,n){return n>=e.expandoStartIndex}function Tu(e,n,t,r){let o=e.data;if(o[t+1]===null){let i=o[dt()],s=Su(e,t);Nu(i,r)&&n===null&&!s&&(n=!1),n=sv(o,i,n,r),Jm(o,i,n,t,s,r)}}function sv(e,n,t,r){let o=xp(e),i=r?n.residualClasses:n.residualStyles;if(o===null)(r?n.classBindings:n.styleBindings)===0&&(t=Jo(null,e,n,t,r),t=un(t,n.attrs,r),i=null);else{let s=n.directiveStylingLast;if(s===-1||e[s]!==o)if(t=Jo(o,e,n,t,r),i===null){let c=av(e,n,r);c!==void 0&&Array.isArray(c)&&(c=Jo(null,e,n,c[1],r),c=un(c,n.attrs,r),cv(e,n,r,c))}else i=lv(e,n,r)}return i!==void 0&&(r?n.residualClasses=i:n.residualStyles=i),t}function av(e,n,t){let r=t?n.classBindings:n.styleBindings;if(Rt(r)!==0)return e[ct(r)]}function cv(e,n,t,r){let o=t?n.classBindings:n.styleBindings;e[ct(o)]=r}function lv(e,n,t){let r,o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=un(r,s,t)}return un(r,n.attrs,t)}function Jo(e,n,t,r,o){let i=null,s=t.directiveEnd,a=t.directiveStylingLast;for(a===-1?a=t.directiveStart:a++;a<s&&(i=n[a],r=un(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(t.directiveStylingLast=a),r}function un(e,n,t){let r=t?1:2,o=-1;if(n!==null)for(let i=0;i<n.length;i++){let s=n[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Ar(e,s,t?!0:n[++i]))}return e===void 0?null:e}function uv(e,n,t){if(t==null||t==="")return oe;let r=[],o=Vl(t);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&n(r,o);return r}function dv(e,n,t){let r=String(n);r!==""&&!r.includes(" ")&&Ar(e,r,t)}function fv(e,n,t,r,o,i,s,a){o===Ze&&(o=oe);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,h=null,M;u===d?(c+=2,l+=2,p!==f&&(h=d,M=f)):d===null||u!==null&&u<d?(c+=2,h=u):(l+=2,h=d,M=f),h!==null&&Au(e,n,t,r,h,M,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function Au(e,n,t,r,o,i,s,a){if(!(n.type&3))return;let c=e.data,l=c[a+1],u=Xm(l)?hc(c,n,t,o,Rt(l),s):void 0;if(!br(u)){br(i)||Km(l)&&(i=hc(c,null,t,o,a,s));let d=Wc(dt(),t);mg(r,s,d,o,i)}}function hc(e,n,t,r,o,i){let s=n===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=t[o+1];p===Ze&&(p=d?oe:void 0);let f=d?zo(p,r):u===r?p:void 0;if(l&&!br(f)&&(f=zo(c,r)),br(f)&&(a=f,s))return a;let h=e[o+1];o=s?ct(h):Rt(h)}if(n!==null){let c=i?n.residualClasses:n.residualStyles;c!=null&&(a=zo(c,r))}return a}function br(e){return e!==void 0}function pv(e,n){return e==null||e===""||(typeof n=="string"?e=e+n:typeof e=="object"&&(e=ne(Vl(e)))),e}function Nu(e,n){return(e.flags&(n?8:16))!==0}function ku(e,n,t){let r=B(),o=Eu(r,e,n,t);xu(Ar,_u,o,!0)}function v(e,n,t,r){let o=B(),i=se(),s=ye+e,a=o[Y],c=i.firstCreatePass?du(s,i,o,n,Es,ts(),t,r):i.data[s],l=hv(i,o,c,a,n,e);o[s]=l;let u=Rr(c);return ut(c,!0),Ul(a,l,c),!Gl(c)&&Fr()&&zr(i,o,l,c),(gp()===0||u)&&Lt(l,o),mp(),u&&(Ur(i,o,c),gs(i,c,o)),r!==null&&ws(o,c),v}function g(){let e=Se();ns()?Qc():(e=e.parent,ut(e,!1));let n=e;Dp(n)&&Cp(),vp();let t=se();return t.firstCreatePass&&fu(t,n),n.classesWithoutHost!=null&&Op(n)&&Bi(t,n,B(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Pp(n)&&Bi(t,n,B(),n.stylesWithoutHost,!1),g}function Ce(e,n,t,r){return v(e,n,t,r),g(),Ce}var hv=(e,n,t,r,o,i)=>(Lr(!0),Bl(r,o,Np()));function gv(e,n,t,r,o){let i=n.consts,s=At(i,r),a=$r(n,e,8,"ng-container",s);s!==null&&xi(a,s,!0);let c=At(i,o);return ts()&&As(n,t,a,c,Es),a.mergedAttrs=Vr(a.mergedAttrs,a.attrs),n.queries!==null&&n.queries.elementStart(n,a),a}function Ru(e,n,t){let r=B(),o=se(),i=e+ye,s=o.firstCreatePass?gv(i,o,r,n,t):o.data[i];ut(s,!0);let a=mv(o,r,s,e);return r[i]=a,Fr()&&zr(o,r,a,s),Lt(a,r),Rr(s)&&(Ur(o,r,s),gs(o,s,r)),t!=null&&ws(r,s),Ru}function Ou(){let e=Se(),n=se();return ns()?Qc():(e=e.parent,ut(e,!1)),n.firstCreatePass&&(ss(n,e),Ki(e)&&n.queries.elementEnd(e)),Ou}function Ps(e,n,t){return Ru(e,n,t),Ou(),Ps}var mv=(e,n,t,r)=>(Lr(!0),Ph(n[Y],""));function $(){return B()}var _r="en-US";var vv=_r;function yv(e){typeof e=="string"&&(vv=e.toLowerCase().replace(/_/g,"-"))}function gc(e,n,t){return function r(o){if(o===Function)return t;let i=Pt(e)?Ne(e.index,n):n;Ss(i,5);let s=n[re],a=mc(n,s,t,o),c=r.__ngNextListenerFn__;for(;c;)a=mc(n,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function mc(e,n,t,r){let o=N(null);try{return j(6,n,t),t(r)!==!1}catch(i){return Dv(e,i),!1}finally{j(7,n,t),N(o)}}function Dv(e,n){let t=e[St],r=t?t.get(ke,null):null;r&&r.handleError(n)}function vc(e,n,t,r,o,i){let s=n[t],a=n[x],l=a.data[t].outputs[r],u=s[l],d=a.firstCreatePass?es(a):null,p=Ji(n),f=u.subscribe(i),h=p.length;p.push(i,f),d&&d.push(o,e.index,h,-(h+1))}var Cv=(e,n,t)=>{};function _(e,n,t,r){let o=B(),i=se(),s=Se();return Ev(i,o,o[Y],s,e,n,r),_}function wv(e,n,t,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===t&&o[i+1]===r){let a=n[lr],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Ev(e,n,t,r,o,i,s){let a=Rr(r),l=e.firstCreatePass?es(e):null,u=Ji(n),d=!0;if(r.type&3||s){let p=Ve(r,n),f=s?s(p):p,h=u.length,M=s?F=>s(_e(F[r.index])):r.index,W=null;if(!s&&a&&(W=wv(e,n,o,r.index)),W!==null){let F=W.__ngLastListenerFn__||W;F.__ngNextListenerFn__=i,W.__ngLastListenerFn__=i,d=!1}else{i=gc(r,n,i),Cv(f,o,i);let F=t.listen(f,o,i);u.push(i,F),l&&l.push(o,M,h,h+1)}}else i=gc(r,n,i);if(d){let p=r.outputs?.[o],f=r.hostDirectiveOutputs?.[o];if(f&&f.length)for(let h=0;h<f.length;h+=2){let M=f[h],W=f[h+1];vc(r,n,M,W,o,i)}if(p&&p.length)for(let h of p)vc(r,n,h,o,o,i)}}function m(e=1){return Tp(e)}function Vt(e,n,t){vm(e,n,t)}function jt(e){let n=B(),t=se(),r=tl();rs(r+1);let o=Ns(t,r);if(e.dirty&&up(n)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Cm(n,r);e.reset(i,ih),e.notifyOnChanges()}return!0}return!1}function Bt(){return gm(B(),tl())}function Pu(e){let n=Ep();return lp(n,ye+e)}function U(e,n=""){let t=B(),r=se(),o=e+ye,i=r.firstCreatePass?$r(r,o,1,n,null):r.data[o],s=Iv(r,t,i,n,e);t[o]=s,Fr()&&zr(r,t,s,i),ut(i,!1)}var Iv=(e,n,t,r,o)=>(Lr(!0),Rh(n[Y],r));function Ht(e){return Qr("",e,""),Ht}function Qr(e,n,t){let r=B(),o=Eu(r,e,n,t);return o!==Ze&&bv(r,dt(),o),Qr}function bv(e,n,t){let r=Wc(n,e);Oh(e[Y],r,t)}var Qn=null;function _v(e){Qn!==null&&(e.defaultEncapsulation!==Qn.defaultEncapsulation||e.preserveWhitespaces!==Qn.preserveWhitespaces)||(Qn=e)}var Mv=new T("");function xv(e,n,t){let r=new Pi(t);return Promise.resolve(r)}function yc(e){for(let n=e.length-1;n>=0;n--)if(e[n]!==void 0)return e[n]}var Sv=(()=>{class e{zone=R(V);changeDetectionScheduler=R(Ge);applicationRef=R(xe);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Tv({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new V(fe(J({},Fu()),{scheduleInRootZone:t})),[{provide:V,useFactory:e},{provide:sr,multi:!0,useFactory:()=>{let r=R(Sv,{optional:!0});return()=>r.initialize()}},{provide:sr,multi:!0,useFactory:()=>{let r=R(Av);return()=>{r.initialize()}}},n===!0?{provide:Il,useValue:!0}:[],{provide:ls,useValue:t??wl}]}function Fu(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Av=(()=>{class e{subscription=new G;initialized=!1;zone=R(V);pendingTasks=R(jr);initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{V.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{V.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Lu=(()=>{class e{appRef=R(xe);taskService=R(jr);ngZone=R(V);zonelessEnabled=R(cs);tracing=R(Br,{optional:!0});disableScheduling=R(Il,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new G;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(vr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(R(ls,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof cn||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&t===5)return;let r=!1;switch(t){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Xa:bl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(t){return!(this.disableScheduling&&!t||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(vr+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 t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(t),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Xa(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Vu(){return Pl("NgZoneless"),$f([{provide:Ge,useExisting:Lu},{provide:V,useClass:cn},{provide:cs,useValue:!0},{provide:ls,useValue:!1},[]])}function Nv(){return typeof $localize<"u"&&$localize.locale||_r}var Fs=new T("",{providedIn:"root",factory:()=>R(Fs,S.Optional|S.SkipSelf)||Nv()});var Mr=new T(""),kv=new T("");function Qt(e){return!e.moduleRef}function Rv(e){let n=Qt(e)?e.r3Injector:e.moduleRef.injector,t=n.get(V);return t.run(()=>{Qt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=n.get(ke,null),o;if(t.runOutsideAngular(()=>{o=t.onError.subscribe({next:i=>{r.handleError(i)}})}),Qt(e)){let i=()=>n.destroy(),s=e.platformInjector.get(Mr);s.add(i),n.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Mr);s.add(i),e.moduleRef.onDestroy(()=>{nr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Pv(r,t,()=>{let i=n.get(Cu);return i.runInitializers(),i.donePromise.then(()=>{let s=n.get(Fs,_r);if(yv(s||_r),!n.get(kv,!0))return Qt(e)?n.get(xe):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Qt(e)){let c=n.get(xe);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return Ov(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Ov(e,n){let t=e.injector.get(xe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(t);else throw new I(-403,!1);n.push(e)}function Pv(e,n,t){try{let r=t();return Os(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}var ju=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(t){this._injector=t}bootstrapModuleFactory(t,r){let o=r?.scheduleInRootZone,i=()=>nh(r?.ngZone,fe(J({},Fu({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[Tv({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:Ge,useExisting:Lu}],c=Sm(t.moduleType,this.injector,a);return Rv({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,r=[]){let o=wu({},r);return xv(this.injector,o,t).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let t=this._injector.get(Mr,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(A(K))};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),tn=null,Bu=new T("");function Fv(e){if(tn&&!tn.get(Bu,!1))throw new I(400,!1);Wm(),tn=e;let n=e.get(ju);return jv(e),n}function Ls(e,n,t=[]){let r=`Platform: ${n}`,o=new T(r);return(i=[])=>{let s=Hu();if(!s||s.injector.get(Bu,!1)){let a=[...t,...i,{provide:o,useValue:!0}];e?e(a):Fv(Lv(a,r))}return Vv(o)}}function Lv(e=[],n){return K.create({name:n,providers:[{provide:Nr,useValue:"platform"},{provide:Mr,useValue:new Set([()=>tn=null])},...e]})}function Vv(e){let n=Hu();if(!n)throw new I(401,!1);return n}function Hu(){return tn?.get(ju)??null}function jv(e){let n=e.get(ps,null);Vc(e,()=>{n?.forEach(t=>t())})}var gn=(()=>{class e{static __NG_ELEMENT_ID__=Bv}return e})();function Bv(e){return Hv(Se(),B(),(e&16)===16)}function Hv(e,n,t){if(Pt(e)&&!t){let r=Ne(e.index,n);return new ln(r,r)}else if(e.type&175){let r=n[be];return new ln(r,n)}return null}var Hi=class{constructor(){}supports(n){return yu(n)}create(n){return new Ui(n)}},Uv=(e,n)=>n,Ui=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||Uv}forEachItem(n){let t;for(t=this._itHead;t!==null;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){let s=!r||t&&t.currentIndex<Dc(r,o,i)?t:r,a=Dc(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(t=t._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let p=0;p<l;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<l&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&n(s,a,c)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;t!==null;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;t!==null;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;t!==null;t=t._nextIdentityChange)n(t)}diff(n){if(n==null&&(n=[]),!yu(n))throw new I(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let t=this._itHead,r=!1,o,i,s;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)i=n[a],s=this._trackByFn(a,i),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,i,s,a),r=!0):(r&&(t=this._verifyReinsertion(t,i,s,a)),Object.is(t.item,i)||this._addIdentityChange(t,i)),t=t._next}else o=0,Fm(n,a=>{s=this._trackByFn(o,a),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,a,s,o),r=!0):(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return n===null?i=this._itTail:(i=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,o),n!==null?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new zi(t,r),i,o)),n}_verifyReinsertion(n,t,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;n!==null;){let t=n._next;this._addToRemovals(this._unlink(n)),n=t}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let o=n._prevRemoved,i=n._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){let o=t===null?this._itHead:t._next;return n._next=o,n._prev=t,o===null?this._itTail=n:o._prev=n,t===null?this._itHead=n:t._next=n,this._linkedRecords===null&&(this._linkedRecords=new xr),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let t=n._prev,r=n._next;return t===null?this._itHead=r:t._next=r,r===null?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new xr),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},zi=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,t){this.item=n,this.trackById=t}},qi=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;r!==null;r=r._nextDup)if((t===null||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let t=n._prevDup,r=n._nextDup;return t===null?this._head=r:t._nextDup=r,r===null?this._tail=t:r._prevDup=t,this._head===null}},xr=class{map=new Map;put(n){let t=n.trackById,r=this.map.get(t);r||(r=new qi,this.map.set(t,r)),r.add(n)}get(n,t){let r=n,o=this.map.get(r);return o?o.get(n,t):null}remove(n){let t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Dc(e,n,t){let r=e.previousIndex;if(r===null)return r;let o=0;return t&&r<t.length&&(o=t[r]),r+n+o}function Cc(){return new Vs([new Hi])}var Vs=(()=>{class e{factories;static \u0275prov=P({token:e,providedIn:"root",factory:Cc});constructor(t){this.factories=t}static create(t,r){if(r!=null){let o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||Cc()),deps:[[e,new Lf,new Ff]]}}find(t){let r=this.factories.find(o=>o.supports(t));if(r!=null)return r;throw new I(901,!1)}}return e})();var Uu=Ls(null,"core",[]),zu=(()=>{class e{constructor(t){}static \u0275fac=function(r){return new(r||e)(A(xe))};static \u0275mod=He({type:e});static \u0275inj=Pe({})}return e})();var wc=class{[qt];constructor(n){this[qt]=n}destroy(){this[qt].destroy()}};var de=new T("");var qu=null;function Ut(){return qu}function js(e){qu??=e}var mn=class{};var Xr=class{$implicit;ngForOf;index;count;constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},eo=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Xr(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),$u(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}t.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);$u(i,o)})}static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(H(Be),H(at),H(Vs))};static \u0275dir=Ye({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function $u(e,n){e.context.$implicit=n.item}var Bs=(()=>{class e{_viewContainer;_context=new Jr;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,r){this._viewContainer=t,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Wu(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Wu(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(H(Be),H(at))};static \u0275dir=Ye({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Jr=class{$implicit=null;ngIf=null};function Wu(e,n){if(e&&!e.createEmbeddedView)throw new I(2020,!1)}var Hs=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(t,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(H(Be))};static \u0275dir=Ye({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Or]})}return e})();var vn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=He({type:e});static \u0275inj=Pe({})}return e})();function Us(e,n){n=encodeURIComponent(n);for(let t of e.split(";")){let r=t.indexOf("="),[o,i]=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}var to="browser",Gu="server";function zs(e){return e===to}function no(e){return e===Gu}var yn=class{};var io=new T(""),Gs=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,r){this._zone=r,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o,i){return this._findPluginFor(r).addEventListener(t,r,o,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(t,r),r}static \u0275fac=function(r){return new(r||e)(A(io),A(V))};static \u0275prov=P({token:e,factory:e.\u0275fac})}return e})(),Dn=class{_doc;constructor(n){this._doc=n}manager},ro="ng-app-id";function Zu(e){for(let n of e)n.remove()}function Yu(e,n){let t=n.createElement("style");return t.textContent=e,t}function qv(e,n,t,r){let o=e.head?.querySelectorAll(`style[${ro}="${n}"],link[${ro}="${n}"]`);if(o)for(let i of o)i.removeAttribute(ro),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&t.set(i.textContent,{usage:0,elements:[i]})}function $s(e,n){let t=n.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}var Zs=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.isServer=no(i),qv(t,r,this.inline,this.external),this.hosts.add(t.head)}addStyles(t,r){for(let o of t)this.addUsage(o,this.inline,Yu);r?.forEach(o=>this.addUsage(o,this.external,$s))}removeStyles(t,r){for(let o of t)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(t,r,o){let i=r.get(t);i?i.usage++:r.set(t,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(t,this.doc)))})}removeUsage(t,r){let o=r.get(t);o&&(o.usage--,o.usage<=0&&(Zu(o.elements),r.delete(t)))}ngOnDestroy(){for(let[,{elements:t}]of[...this.inline,...this.external])Zu(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(t,Yu(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(t,$s(r,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ro,this.appId),t.appendChild(r)}static \u0275fac=function(r){return new(r||e)(A(de),A(fs),A(hs,8),A(ft))};static \u0275prov=P({token:e,factory:e.\u0275fac})}return e})(),qs={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"},Ys=/%COMP%/g;var Qu="%COMP%",$v=`_nghost-${Qu}`,Wv=`_ngcontent-${Qu}`,Gv=!0,Zv=new T("",{providedIn:"root",factory:()=>Gv});function Yv(e){return Wv.replace(Ys,e)}function Kv(e){return $v.replace(Ys,e)}function Xu(e,n){return n.map(t=>t.replace(Ys,e))}var Ks=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(t,r,o,i,s,a,c,l=null,u=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=u,this.platformIsServer=no(a),this.defaultRenderer=new Cn(t,s,c,this.platformIsServer,this.tracingService)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Me.ShadowDom&&(r=fe(J({},r),{encapsulation:Me.Emulated}));let o=this.getOrCreateRenderer(t,r);return o instanceof oo?o.applyToHost(t):o instanceof wn&&o.applyStyles(),o}getOrCreateRenderer(t,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case Me.Emulated:i=new oo(c,l,r,this.appId,u,s,a,d,p);break;case Me.ShadowDom:return new Ws(c,l,t,r,s,a,this.nonce,d,p);default:i=new wn(c,l,r,u,s,a,d,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(r){return new(r||e)(A(Gs),A(Zs),A(fs),A(Zv),A(de),A(ft),A(V),A(hs),A(Br,8))};static \u0275prov=P({token:e,factory:e.\u0275fac})}return e})(),Cn=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,t,r,o,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(n,t){return t?this.doc.createElementNS(qs[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(Ku(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(Ku(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new I(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;let i=qs[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){let o=qs[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(Re.DashCase|Re.Important)?n.style.setProperty(t,r,o&Re.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&Re.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n!=null&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r,o){if(typeof n=="string"&&(n=Ut().getGlobalEventTarget(this.doc,n),!n))throw new I(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(n,t,i)),this.eventManager.addEventListener(n,t,i,o)}decoratePreventDefault(n){return t=>{if(t==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))===!1&&t.preventDefault()}}};function Ku(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ws=class extends Cn{sharedStylesHost;hostEl;shadowRoot;constructor(n,t,r,o,i,s,a,c,l){super(n,i,s,c,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=Xu(o.id,u);for(let p of u){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=p,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let p of d){let f=$s(p,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},wn=class extends Cn{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,t,r,o,i,s,a,c,l){super(n,i,s,a,c),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?Xu(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},oo=class extends wn{contentAttr;hostAttr;constructor(n,t,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(n,t,r,i,s,a,c,l,u),this.contentAttr=Yv(u),this.hostAttr=Kv(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){let r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}};var Qs=class extends mn{supportsDOMEvents=!0},so=class e extends Qs{static makeCurrent(){js(new e)}onAndCancel(n,t,r,o){return n.addEventListener(t,r,o),()=>{n.removeEventListener(t,r,o)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return t=t||this.getDefaultDocument(),t.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return t==="window"?window:t==="document"?n:t==="body"?n.body:null}getBaseHref(n){let t=Qv();return t==null?null:Xv(t)}resetBaseElement(){En=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Us(document.cookie,n)}},En=null;function Qv(){return En=En||document.querySelector("base"),En?En.getAttribute("href"):null}function Xv(e){return new URL(e,document.baseURI).pathname}var ao=class{addToWindow(n){Oe.getAngularTestability=(r,o=!0)=>{let i=n.findTestabilityInTree(r,o);if(i==null)throw new I(5103,!1);return i},Oe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Oe.getAllAngularRootElements=()=>n.getAllRootElements();let t=r=>{let o=Oe.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};Oe.frameworkStabilizers||(Oe.frameworkStabilizers=[]),Oe.frameworkStabilizers.push(t)}findTestabilityInTree(n,t,r){if(t==null)return null;let o=n.getTestability(t);return o??(r?Ut().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},Jv=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=P({token:e,factory:e.\u0275fac})}return e})(),ed=(()=>{class e extends Dn{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o,i){return t.addEventListener(r,o,i),()=>this.removeEventListener(t,r,o,i)}removeEventListener(t,r,o,i){return t.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(A(de))};static \u0275prov=P({token:e,factory:e.\u0275fac})}return e})(),Ju=["alt","control","meta","shift"],ey={"\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"},ty={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},td=(()=>{class e extends Dn{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ut().onAndCancel(t,s.domEventName,a,i))}static parseEventName(t){let r=t.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."),Ju.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let o=ey[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Ju.forEach(s=>{if(s!==o){let a=ty[s];a(t)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return t==="esc"?"escape":t}static \u0275fac=function(r){return new(r||e)(A(de))};static \u0275prov=P({token:e,factory:e.\u0275fac})}return e})();function ny(){so.makeCurrent()}function ry(){return new ke}function oy(){return kl(document),document}var iy=[{provide:ft,useValue:to},{provide:ps,useValue:ny,multi:!0},{provide:de,useFactory:oy}],Xs=Ls(Uu,"browser",iy);var sy=[{provide:hn,useClass:ao},{provide:ks,useClass:Zr,deps:[V,Yr,hn]},{provide:Zr,useClass:Zr,deps:[V,Yr,hn]}],ay=[{provide:Nr,useValue:"root"},{provide:ke,useFactory:ry},{provide:io,useClass:ed,multi:!0,deps:[de]},{provide:io,useClass:td,multi:!0,deps:[de]},Ks,Zs,Gs,{provide:Nt,useExisting:Ks},{provide:yn,useClass:Jv},[]],In=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=He({type:e});static \u0275inj=Pe({providers:[...ay,...sy],imports:[vn,zu]})}return e})();var cy={schedule(e,n){let t=setTimeout(e,n);return()=>clearTimeout(t)}};function ly(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function uy(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Js;function dy(e,n){if(!Js){let t=Element.prototype;Js=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Js.call(e,n):!1}function fy(e){let n={};return e.forEach(({propName:t,templateName:r,transform:o})=>{n[ly(r)]=[t,o]}),n}function py(e,n){return n.get(pt).resolveComponentFactory(e).inputs}function hy(e,n){let t=e.childNodes,r=n.map(()=>[]),o=-1;n.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=t.length;i<s;++i){let a=t[i],c=gy(a,n,o);c!==-1&&r[c].push(a)}return r}function gy(e,n,t){let r=t;return uy(e)&&n.some((o,i)=>o!=="*"&&dy(e,o)?(r=i,!0):!1),r}var my=10,ea=class{componentFactory;inputMap=new Map;constructor(n,t){this.componentFactory=t.get(pt).resolveComponentFactory(n);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(n){return new ta(this.componentFactory,n,this.inputMap)}},ta=class{componentFactory;injector;inputMap;eventEmitters=new Zt(1);events=this.eventEmitters.pipe(Uo(n=>jo(...n)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(n,t,r){this.componentFactory=n,this.injector=t,this.inputMap=r,this.ngZone=this.injector.get(V),this.appRef=this.injector.get(xe),this.cdScheduler=t.get(Ge),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=cy.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},my))})}getInputValue(n){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,t){if(this.componentRef===null){this.initialInputValues.set(n,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(n)??n,t),au(this.componentRef.hostView)&&(cu(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(n){let t=K.create({providers:[],parent:this.injector}),r=hy(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,n),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[n,t]of this.initialInputValues)this.setInputValue(n,t);this.initialInputValues.clear()}initializeOutputs(n){let t=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=n.instance[r];return new z(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(t)}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}},na=class extends HTMLElement{ngElementEventsSubscription=null};function nd(e,n){let t=py(e,n.injector),r=n.strategyFactory||new ea(e,n.injector),o=fy(t);class i extends na{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||n.injector);t.forEach(({propName:c,transform:l})=>{if(!this.hasOwnProperty(c))return;let u=this[c];delete this[c],a.setInputValue(c,u,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,u){let[d,p]=o[a];this.ngElementStrategy.setInputValue(d,l,p)}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 t.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}var cd=Bd(rd());function od(e){let n="hex";for(let t of e.get("format")??[])switch(t){case"rgba":n="rgba";break;case"hsla":n="hsla";break;case"hex":default:n="hex";break}return n}function id(e,n){if(!e)return 0;var t=n.hsvaToRgba(e);let r=Math.max(0,Math.min(Math.round(t.a*255),255))<<24,o=t.r<<16,i=t.g<<8,s=t.b;return r|o|i|s|0}function lo(e,n,t){return e?t.outputFormat(e,n,null):""}function ra(e,n){let t=null;if(typeof e=="number"){let o=e|0;var r={r:o>>16&255,g:o>>8&255,b:o&255,a:(o>>24&255)/255};t=n.rgbaToHsva(r)}else t=n.stringToHsva(e+"",!0);return t}var vy=["dialogPopup"],yy=["hueSlider"],Dy=["alphaSlider"];function Cy(e,n){if(e&1&&Ce(0,"div"),e&2){let t=m();ku("arrow arrow-",t.cpUsePosition,""),Z("left",t.cpArrowPosition)("top",t.arrowTop,"px")}}function wy(e,n){if(e&1){let t=$();v(0,"div",28),_("newValue",function(o){y(t);let i=m();return D(i.onColorChange(o))})("dragStart",function(){y(t);let o=m();return D(o.onDragStart("saturation-lightness"))})("dragEnd",function(){y(t);let o=m();return D(o.onDragEnd("saturation-lightness"))}),Ce(1,"div",16),g()}if(e&2){let t=m();Z("background-color",t.hueSliderColor),w("rgX",1)("rgY",1),C(),Z("top",t.slider==null?null:t.slider.v,"px")("left",t.slider==null?null:t.slider.s,"px")}}function Ey(e,n){e&1&&(al(),v(0,"svg",29),Ce(1,"path",30)(2,"path",31),g())}function Iy(e,n){if(e&1){let t=$();v(0,"button",32),_("click",function(o){y(t);let i=m();return D(i.onAddPresetColor(o,i.selectedColor))}),U(1),g()}if(e&2){let t=m();ht(t.cpAddColorButtonClass),w("disabled",t.cpPresetColors&&t.cpPresetColors.length>=t.cpMaxPresetColorsLength),C(),Qr(" ",t.cpAddColorButtonText," ")}}function by(e,n){e&1&&Ce(0,"div",33)}function _y(e,n){if(e&1){let t=$();v(0,"input",39),_("keyup.enter",function(o){y(t);let i=m(2);return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m(2);return D(i.onAlphaInput(o))}),g()}if(e&2){let t=m(2);w("rg",1)("value",t.cmykText==null?null:t.cmykText.a)}}function My(e,n){e&1&&(v(0,"div"),U(1,"A"),g())}function xy(e,n){if(e&1){let t=$();v(0,"div",34)(1,"div",35)(2,"input",36),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onCyanInput(o))}),g(),v(3,"input",36),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onMagentaInput(o))}),g(),v(4,"input",36),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onYellowInput(o))}),g(),v(5,"input",36),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onBlackInput(o))}),g(),q(6,_y,1,2,"input",37),g(),v(7,"div",35)(8,"div"),U(9,"C"),g(),v(10,"div"),U(11,"M"),g(),v(12,"div"),U(13,"Y"),g(),v(14,"div"),U(15,"K"),g(),q(16,My,2,0,"div",38),g()()}if(e&2){let t=m();Z("display",t.format!==3?"none":"block"),C(2),w("rg",100)("value",t.cmykText==null?null:t.cmykText.c),C(),w("rg",100)("value",t.cmykText==null?null:t.cmykText.m),C(),w("rg",100)("value",t.cmykText==null?null:t.cmykText.y),C(),w("rg",100)("value",t.cmykText==null?null:t.cmykText.k),C(),w("ngIf",t.cpAlphaChannel!=="disabled"),C(10),w("ngIf",t.cpAlphaChannel!=="disabled")}}function Sy(e,n){if(e&1){let t=$();v(0,"input",39),_("keyup.enter",function(o){y(t);let i=m(2);return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m(2);return D(i.onAlphaInput(o))}),g()}if(e&2){let t=m(2);w("rg",1)("value",t.hslaText==null?null:t.hslaText.a)}}function Ty(e,n){e&1&&(v(0,"div"),U(1,"A"),g())}function Ay(e,n){if(e&1){let t=$();v(0,"div",40)(1,"div",35)(2,"input",41),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onHueInput(o))}),g(),v(3,"input",36),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onSaturationInput(o))}),g(),v(4,"input",36),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onLightnessInput(o))}),g(),q(5,Sy,1,2,"input",37),g(),v(6,"div",35)(7,"div"),U(8,"H"),g(),v(9,"div"),U(10,"S"),g(),v(11,"div"),U(12,"L"),g(),q(13,Ty,2,0,"div",38),g()()}if(e&2){let t=m();Z("display",t.format!==2?"none":"block"),C(2),w("rg",360)("value",t.hslaText==null?null:t.hslaText.h),C(),w("rg",100)("value",t.hslaText==null?null:t.hslaText.s),C(),w("rg",100)("value",t.hslaText==null?null:t.hslaText.l),C(),w("ngIf",t.cpAlphaChannel!=="disabled"),C(8),w("ngIf",t.cpAlphaChannel!=="disabled")}}function Ny(e,n){if(e&1){let t=$();v(0,"input",39),_("keyup.enter",function(o){y(t);let i=m(2);return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m(2);return D(i.onAlphaInput(o))}),g()}if(e&2){let t=m(2);w("rg",1)("value",t.rgbaText==null?null:t.rgbaText.a)}}function ky(e,n){e&1&&(v(0,"div"),U(1,"A"),g())}function Ry(e,n){if(e&1){let t=$();v(0,"div",42)(1,"div",35)(2,"input",43),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onRedInput(o))}),g(),v(3,"input",43),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onGreenInput(o))}),g(),v(4,"input",43),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onBlueInput(o))}),g(),q(5,Ny,1,2,"input",37),g(),v(6,"div",35)(7,"div"),U(8,"R"),g(),v(9,"div"),U(10,"G"),g(),v(11,"div"),U(12,"B"),g(),q(13,ky,2,0,"div",38),g()()}if(e&2){let t=m();Z("display",t.format!==1?"none":"block"),C(2),w("rg",255)("value",t.rgbaText==null?null:t.rgbaText.r),C(),w("rg",255)("value",t.rgbaText==null?null:t.rgbaText.g),C(),w("rg",255)("value",t.rgbaText==null?null:t.rgbaText.b),C(),w("ngIf",t.cpAlphaChannel!=="disabled"),C(8),w("ngIf",t.cpAlphaChannel!=="disabled")}}function Oy(e,n){if(e&1){let t=$();v(0,"input",39),_("keyup.enter",function(o){y(t);let i=m(2);return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m(2);return D(i.onAlphaInput(o))}),g()}if(e&2){let t=m(2);w("rg",1)("value",t.hexAlpha)}}function Py(e,n){e&1&&(v(0,"div"),U(1,"A"),g())}function Fy(e,n){if(e&1){let t=$();v(0,"div",44)(1,"div",35)(2,"input",45),_("blur",function(){y(t);let o=m();return D(o.onHexInput(null))})("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onHexInput(o))}),g(),q(3,Oy,1,2,"input",37),g(),v(4,"div",35)(5,"div"),U(6,"Hex"),g(),q(7,Py,2,0,"div",38),g()()}if(e&2){let t=m();Z("display",t.format!==0?"none":"block"),Kr("hex-alpha",t.cpAlphaChannel==="forced"),C(2),w("value",t.hexText),C(),w("ngIf",t.cpAlphaChannel==="forced"),C(4),w("ngIf",t.cpAlphaChannel==="forced")}}function Ly(e,n){if(e&1){let t=$();v(0,"input",39),_("keyup.enter",function(o){y(t);let i=m(2);return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m(2);return D(i.onAlphaInput(o))}),g()}if(e&2){let t=m(2);w("rg",1)("value",t.hslaText==null?null:t.hslaText.a)}}function Vy(e,n){if(e&1){let t=$();v(0,"div",46)(1,"div",35)(2,"input",36),_("keyup.enter",function(o){y(t);let i=m();return D(i.onAcceptColor(o))})("newValue",function(o){y(t);let i=m();return D(i.onValueInput(o))}),g(),q(3,Ly,1,2,"input",37),g(),v(4,"div",35)(5,"div"),U(6,"V"),g(),v(7,"div"),U(8,"A"),g()()()}if(e&2){let t=m();C(2),w("rg",100)("value",t.hslaText==null?null:t.hslaText.l),C(),w("ngIf",t.cpAlphaChannel!=="disabled")}}function jy(e,n){if(e&1){let t=$();v(0,"div",47)(1,"span",48),_("click",function(){y(t);let o=m();return D(o.onFormatToggle(-1))}),g(),v(2,"span",48),_("click",function(){y(t);let o=m();return D(o.onFormatToggle(1))}),g()()}}function By(e,n){if(e&1){let t=$();v(0,"span",55),_("click",function(o){y(t);let i=m().$implicit,s=m(3);return D(s.onRemovePresetColor(o,i))}),g()}if(e&2){let t=m(4);ht(t.cpRemoveColorButtonClass)}}function Hy(e,n){if(e&1){let t=$();v(0,"div",53),_("click",function(){let o=y(t).$implicit,i=m(3);return D(i.setColorFromString(o))}),q(1,By,1,3,"span",54),g()}if(e&2){let t=n.$implicit,r=m(3);Z("background-color",t),C(),w("ngIf",r.cpAddColorButton)}}function Uy(e,n){if(e&1&&(v(0,"div"),q(1,Hy,2,3,"div",52),g()),e&2){let t=m(2);ht(t.cpPresetColorsClass),C(),w("ngForOf",t.cpPresetColors)}}function zy(e,n){if(e&1&&(v(0,"div"),U(1),g()),e&2){let t=m(2);ht(t.cpPresetEmptyMessageClass),C(),Ht(t.cpPresetEmptyMessage)}}function qy(e,n){if(e&1&&(v(0,"div",49),Ce(1,"hr"),v(2,"div",50),U(3),g(),q(4,Uy,2,4,"div",51)(5,zy,2,4,"div",51),g()),e&2){let t=m();C(3),Ht(t.cpPresetLabel),C(),w("ngIf",t.cpPresetColors==null?null:t.cpPresetColors.length),C(),w("ngIf",!(t.cpPresetColors!=null&&t.cpPresetColors.length)&&t.cpAddColorButton)}}function $y(e,n){if(e&1){let t=$();v(0,"button",58),_("click",function(o){y(t);let i=m(2);return D(i.onCancelColor(o))}),U(1),g()}if(e&2){let t=m(2);ht(t.cpCancelButtonClass),C(),Ht(t.cpCancelButtonText)}}function Wy(e,n){if(e&1){let t=$();v(0,"button",58),_("click",function(o){y(t);let i=m(2);return D(i.onAcceptColor(o))}),U(1),g()}if(e&2){let t=m(2);ht(t.cpOKButtonClass),C(),Ht(t.cpOKButtonText)}}function Gy(e,n){if(e&1&&(v(0,"div",56),q(1,$y,2,4,"button",57)(2,Wy,2,4,"button",57),g()),e&2){let t=m();C(),w("ngIf",t.cpCancelButton),C(),w("ngIf",t.cpOKButton)}}function Zy(e,n){e&1&&Ps(0)}function Yy(e,n){if(e&1&&(v(0,"div",59),q(1,Zy,1,0,"ng-container",60),g()),e&2){let t=m();C(),w("ngTemplateOutlet",t.cpExtraTemplate)}}var X=function(e){return e[e.HEX=0]="HEX",e[e.RGBA=1]="RGBA",e[e.HSLA=2]="HSLA",e[e.CMYK=3]="CMYK",e}(X||{}),we=class{r;g;b;a;constructor(n,t,r,o){this.r=n,this.g=t,this.b=r,this.a=o}},zt=class{h;s;v;a;constructor(n,t,r,o){this.h=n,this.s=t,this.v=r,this.a=o}},Ue=class{h;s;l;a;constructor(n,t,r,o){this.h=n,this.s=t,this.l=r,this.a=o}},mt=class{c;m;y;k;a;constructor(n,t,r,o,i=1){this.c=n,this.m=t,this.y=r,this.k=o,this.a=i}};function Ky(e,n){let t="right",r="bottom",{height:o,width:i}=e,{top:s,left:a}=n,c=s+n.height,l=a+n.width,u=s-o<0,d=c+o>(window.innerHeight||document.documentElement.clientHeight),p=a-i<0,f=l+i>(window.innerWidth||document.documentElement.clientWidth),h=u&&d&&p&&f;return d&&(r="top"),u&&(r="bottom"),p&&(t="right"),f&&(t="left"),h?["left","right","top","bottom"].reduce((W,F)=>e[W]>e[F]?W:F):p&&f?u?"bottom":d||s>c?"top":"bottom":u&&d?p?"right":f||a>l?"left":"right":`${r}-${t}`}function Qy(){let e="";typeof navigator<"u"&&(e=navigator.userAgent.toLowerCase());let n=e.indexOf("msie ");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):!1}var Xy=(()=>{class e{rg;text;newValue=new L;inputChange(t){let r=t.target.value;if(this.rg===void 0)this.newValue.emit(r);else{let o=parseFloat(r);this.newValue.emit({v:o,rg:this.rg})}}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ye({type:e,selectors:[["","text",""]],hostBindings:function(r,o){r&1&&_("input",function(s){return o.inputChange(s)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}})}return e})(),Jy=(()=>{class e{elRef;listenerMove;listenerStop;rgX;rgY;slider;dragEnd=new L;dragStart=new L;newValue=new L;mouseDown(t){this.start(t)}touchStart(t){this.start(t)}constructor(t){this.elRef=t,this.listenerMove=r=>this.move(r),this.listenerStop=()=>this.stop()}move(t){t.preventDefault(),this.setCursor(t)}start(t){this.setCursor(t),t.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(t){let r=this.elRef.nativeElement.getBoundingClientRect();return(t.pageX!==void 0?t.pageX:t.touches[0].pageX)-r.left-window.pageXOffset}getY(t){let r=this.elRef.nativeElement.getBoundingClientRect();return(t.pageY!==void 0?t.pageY:t.touches[0].pageY)-r.top-window.pageYOffset}setCursor(t){let r=this.elRef.nativeElement.offsetWidth,o=this.elRef.nativeElement.offsetHeight,i=Math.max(0,Math.min(this.getX(t),r)),s=Math.max(0,Math.min(this.getY(t),o));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:i/r,v:1-s/o,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:s/o,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:i/r,rgX:this.rgX})}static \u0275fac=function(r){return new(r||e)(H(je))};static \u0275dir=Ye({type:e,selectors:[["","slider",""]],hostBindings:function(r,o){r&1&&_("mousedown",function(s){return o.mouseDown(s)})("touchstart",function(s){return o.touchStart(s)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}})}return e})(),uo=class{h;s;v;a;constructor(n,t,r,o){this.h=n,this.s=t,this.v=r,this.a=o}},fo=class{h;s;v;a;constructor(n,t,r,o){this.h=n,this.s=t,this.v=r,this.a=o}},bn=(()=>{class e{active=null;setActive(t){this.active&&this.active!==t&&this.active.cpDialogDisplay!=="inline"&&this.active.closeDialog(),this.active=t}hsva2hsla(t){let r=t.h,o=t.s,i=t.v,s=t.a;if(i===0)return new Ue(r,0,0,s);if(o===0&&i===1)return new Ue(r,1,1,s);{let a=i*(2-o)/2;return new Ue(r,i*o/(1-Math.abs(2*a-1)),a,s)}}hsla2hsva(t){let r=Math.min(t.h,1),o=Math.min(t.s,1),i=Math.min(t.l,1),s=Math.min(t.a,1);if(i===0)return new zt(r,0,0,s);{let a=i+o*(1-Math.abs(2*i-1))/2;return new zt(r,2*(a-i)/a,a,s)}}hsvaToRgba(t){let r,o,i,s=t.h,a=t.s,c=t.v,l=t.a,u=Math.floor(s*6),d=s*6-u,p=c*(1-a),f=c*(1-d*a),h=c*(1-(1-d)*a);switch(u%6){case 0:r=c,o=h,i=p;break;case 1:r=f,o=c,i=p;break;case 2:r=p,o=c,i=h;break;case 3:r=p,o=f,i=c;break;case 4:r=h,o=p,i=c;break;case 5:r=c,o=p,i=f;break;default:r=0,o=0,i=0}return new we(r,o,i,l)}cmykToRgb(t){let r=(1-t.c)*(1-t.k),o=(1-t.m)*(1-t.k),i=(1-t.y)*(1-t.k);return new we(r,o,i,t.a)}rgbaToCmyk(t){let r=1-Math.max(t.r,t.g,t.b);if(r===1)return new mt(0,0,0,1,t.a);{let o=(1-t.r-r)/(1-r),i=(1-t.g-r)/(1-r),s=(1-t.b-r)/(1-r);return new mt(o,i,s,r,t.a)}}rgbaToHsva(t){let r,o,i=Math.min(t.r,1),s=Math.min(t.g,1),a=Math.min(t.b,1),c=Math.min(t.a,1),l=Math.max(i,s,a),u=Math.min(i,s,a),d=l,p=l-u;if(o=l===0?0:p/l,l===u)r=0;else{switch(l){case i:r=(s-a)/p+(s<a?6:0);break;case s:r=(a-i)/p+2;break;case a:r=(i-s)/p+4;break;default:r=0}r/=6}return new zt(r,o,d,c)}rgbaToHex(t,r){let o="#"+(16777216|t.r<<16|t.g<<8|t.b).toString(16).substr(1);return r&&(o+=(256|Math.round(t.a*255)).toString(16).substr(1)),o}normalizeCMYK(t){return new mt(t.c/100,t.m/100,t.y/100,t.k/100,t.a)}denormalizeCMYK(t){return new mt(Math.floor(t.c*100),Math.floor(t.m*100),Math.floor(t.y*100),Math.floor(t.k*100),t.a)}denormalizeRGBA(t){return new we(Math.round(t.r*255),Math.round(t.g*255),Math.round(t.b*255),t.a)}stringToHsva(t="",r=!1){let o=null;t=(t||"").toLowerCase();let i=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(s){return new we(parseInt(s[2],10)/255,parseInt(s[3],10)/255,parseInt(s[4],10)/255,isNaN(parseFloat(s[5]))?1:parseFloat(s[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(s){return new Ue(parseInt(s[2],10)/360,parseInt(s[3],10)/100,parseInt(s[4],10)/100,isNaN(parseFloat(s[5]))?1:parseFloat(s[5]))}}];r?i.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(s){return new we(parseInt(s[1],16)/255,parseInt(s[2],16)/255,parseInt(s[3],16)/255,parseInt(s[4]||"FF",16)/255)}}):i.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(s){return new we(parseInt(s[1],16)/255,parseInt(s[2],16)/255,parseInt(s[3],16)/255,1)}}),i.push({re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(s){return new we(parseInt(s[1]+s[1],16)/255,parseInt(s[2]+s[2],16)/255,parseInt(s[3]+s[3],16)/255,1)}});for(let s in i)if(i.hasOwnProperty(s)){let a=i[s],c=a.re.exec(t),l=c&&a.parse(c);if(l)return l instanceof we?o=this.rgbaToHsva(l):l instanceof Ue&&(o=this.hsla2hsva(l)),o}return o}outputFormat(t,r,o){switch(r==="auto"&&(r=t.a<1?"rgba":"hex"),r){case"hsla":let i=this.hsva2hsla(t),s=new Ue(Math.round(i.h*360),Math.round(i.s*100),Math.round(i.l*100),Math.round(i.a*100)/100);return t.a<1||o==="always"?"hsla("+s.h+","+s.s+"%,"+s.l+"%,"+s.a+")":"hsl("+s.h+","+s.s+"%,"+s.l+"%)";case"rgba":let a=this.denormalizeRGBA(this.hsvaToRgba(t));return t.a<1||o==="always"?"rgba("+a.r+","+a.g+","+a.b+","+Math.round(a.a*100)/100+")":"rgb("+a.r+","+a.g+","+a.b+")";default:let c=o==="always"||o==="forced";return this.rgbaToHex(this.denormalizeRGBA(this.hsvaToRgba(t)),c)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sd=typeof window<"u"&&"ontouchstart"in window,po=(()=>{class e{ngZone;elRef;cdRef;document;platformId;service;isIE10=!1;cmyk;hsva;width;height;cmykColor;outputColor;initialColor;fallbackColor;listenerResize;listenerMouseDown;directiveInstance;sliderH;sliderDimMax;directiveElementRef;dialogArrowSize=10;dialogArrowOffset=15;dialogInputFields=[X.HEX,X.RGBA,X.HSLA,X.CMYK];useRootViewContainer=!1;show;hidden;top;left;position;format;slider;hexText;hexAlpha;cmykText;hslaText;rgbaText;arrowTop;selectedColor;hueSliderColor;alphaSliderColor;cpWidth;cpHeight;cpColorMode;cpCmykEnabled;cpAlphaChannel;cpOutputFormat;cpDisableInput;cpDialogDisplay;cpIgnoredElements;cpSaveClickOutside;cpCloseClickOutside;cpPosition;cpUsePosition;cpPositionOffset;cpOKButton;cpOKButtonText;cpOKButtonClass;cpCancelButton;cpCancelButtonText;cpCancelButtonClass;cpEyeDropper;eyeDropperSupported;cpPresetLabel;cpPresetColors;cpPresetColorsClass;cpMaxPresetColorsLength;cpPresetEmptyMessage;cpPresetEmptyMessageClass;cpAddColorButton;cpAddColorButtonText;cpAddColorButtonClass;cpRemoveColorButtonClass;cpArrowPosition;cpTriggerElement;cpExtraTemplate;dialogElement;hueSlider;alphaSlider;handleEsc(t){this.show&&this.cpDialogDisplay==="popup"&&this.onCancelColor(t)}handleEnter(t){this.show&&this.cpDialogDisplay==="popup"&&this.onAcceptColor(t)}constructor(t,r,o,i,s,a){this.ngZone=t,this.elRef=r,this.cdRef=o,this.document=i,this.platformId=s,this.service=a,this.eyeDropperSupported=zs(this.platformId)&&"EyeDropper"in this.document.defaultView}ngOnInit(){this.slider=new uo(0,0,0,0);let t=this.hueSlider.nativeElement.offsetWidth||140,r=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new fo(t,this.cpWidth,130,r),this.cpCmykEnabled?this.format=X.CMYK:this.cpOutputFormat==="rgba"?this.format=X.RGBA:this.cpOutputFormat==="hsla"?this.format=X.HSLA:this.format=X.HEX,this.listenerMouseDown=o=>{this.onMouseDown(o)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(this.cpWidth!==230||this.cpDialogDisplay==="inline"){let t=this.hueSlider.nativeElement.offsetWidth||140,r=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new fo(t,this.cpWidth,130,r),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(t,r=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(t),this.setColorFromString(t,r),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(t,r,o,i,s,a,c,l,u,d,p,f,h,M,W,F,ld,ud,dd,fd,pd,hd,gd,md,vd,yd,Dd,Cd,wd,Ed,Id,bd,_d,Md,xd,Sd,Td,Ad){this.setInitialColor(o),this.setColorMode(l),this.isIE10=Qy()===10,this.directiveInstance=t,this.directiveElementRef=r,this.cpDisableInput=f,this.cpCmykEnabled=u,this.cpAlphaChannel=d,this.cpOutputFormat=p,this.cpDialogDisplay=a,this.cpIgnoredElements=h,this.cpSaveClickOutside=M,this.cpCloseClickOutside=W,this.useRootViewContainer=F,this.width=this.cpWidth=parseInt(i,10),this.height=this.cpHeight=parseInt(s,10),this.cpPosition=ld,this.cpPositionOffset=parseInt(ud,10),this.cpOKButton=yd,this.cpOKButtonText=Cd,this.cpOKButtonClass=Dd,this.cpCancelButton=wd,this.cpCancelButtonText=Id,this.cpCancelButtonClass=Ed,this.cpEyeDropper=Sd,this.fallbackColor=c||"#fff",this.setPresetConfig(fd,pd),this.cpPresetColorsClass=hd,this.cpMaxPresetColorsLength=gd,this.cpPresetEmptyMessage=md,this.cpPresetEmptyMessageClass=vd,this.cpAddColorButton=bd,this.cpAddColorButtonText=Md,this.cpAddColorButtonClass=_d,this.cpRemoveColorButtonClass=xd,this.cpTriggerElement=Td,this.cpExtraTemplate=Ad,dd||(this.dialogArrowOffset=0),a==="inline"&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),p==="hex"&&d!=="always"&&d!=="forced"&&(this.cpAlphaChannel="disabled")}setColorMode(t){switch(t.toString().toUpperCase()){case"1":case"C":case"COLOR":this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3;break;default:this.cpColorMode=1}}setInitialColor(t){this.initialColor=t}setPresetConfig(t,r){this.cpPresetLabel=t,this.cpPresetColors=r}setColorFromString(t,r=!0,o=!0){let i;this.cpAlphaChannel==="always"||this.cpAlphaChannel==="forced"?(i=this.service.stringToHsva(t,!0),!i&&!this.hsva&&(i=this.service.stringToHsva(t,!1))):i=this.service.stringToHsva(t,!1),!i&&!this.hsva&&(i=this.service.stringToHsva(this.fallbackColor,!1)),i&&(this.hsva=i,this.sliderH=this.hsva.h,this.cpOutputFormat==="hex"&&this.cpAlphaChannel==="disabled"&&(this.hsva.a=1),this.updateColorPicker(r,o))}onResize(){this.position==="fixed"?this.setDialogPosition():this.cpDialogDisplay!=="inline"&&this.closeColorPicker()}onDragEnd(t){this.directiveInstance.sliderDragEnd({slider:t,color:this.outputColor})}onDragStart(t){this.directiveInstance.sliderDragStart({slider:t,color:this.outputColor})}onMouseDown(t){this.show&&!this.isIE10&&this.cpDialogDisplay==="popup"&&t.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,t.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,t.target)&&this.cpIgnoredElements.filter(r=>r===t.target).length===0&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(t){t.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),this.cpDialogDisplay==="popup"&&this.closeColorPicker()}onCancelColor(t){this.hsva=null,t.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),this.cpDialogDisplay==="popup"&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){if(!this.eyeDropperSupported)return;new window.EyeDropper().open().then(r=>{this.setColorFromString(r.sRGBHex,!0)})}onFormatToggle(t){let r=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),o=((this.dialogInputFields.indexOf(this.format)+t)%r+r)%r;this.format=this.dialogInputFields[o]}onColorChange(t){this.hsva.s=t.s/t.rgX,this.hsva.v=t.v/t.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(t){this.hsva.h=t.v/t.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(t){this.hsva.v=t.v/t.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(t){this.hsva.a=t.v/t.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(t){if(t===null)this.updateColorPicker();else{t&&t[0]!=="#"&&(t="#"+t);let r=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;this.cpAlphaChannel==="always"&&(r=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);let o=r.test(t);o&&(t.length<5&&(t="#"+t.substring(1).split("").map(i=>i+i).join("")),this.cpAlphaChannel==="forced"&&(t+=Math.round(this.hsva.a*255).toString(16)),this.setColorFromString(t,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:o,value:t,color:this.outputColor})}}onRedInput(t){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.r=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:o,value:r.r,color:this.outputColor})}onBlueInput(t){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.b=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:o,value:r.b,color:this.outputColor})}onGreenInput(t){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.g=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:o,value:r.g,color:this.outputColor})}onHueInput(t){let r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.h=t.v/t.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:r,value:this.hsva.h,color:this.outputColor})}onValueInput(t){let r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.v=t.v/t.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:r,value:this.hsva.v,color:this.outputColor})}onAlphaInput(t){let r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.a=t.v/t.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:r,value:this.hsva.a,color:this.outputColor})}onLightnessInput(t){let r=this.service.hsva2hsla(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.l=t.v/t.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:o,value:r.l,color:this.outputColor})}onSaturationInput(t){let r=this.service.hsva2hsla(this.hsva),o=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;o&&(r.s=t.v/t.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:o,value:r.s,color:this.outputColor})}onCyanInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.c=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.m=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.y=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.k=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(t,r){t.stopPropagation(),this.cpPresetColors.filter(o=>o===r).length||(this.cpPresetColors=this.cpPresetColors.concat(r),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(t,r){t.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(o=>o!==r),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{sd?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(sd?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(t=!0,r=!0,o=!1){if(this.sliderDimMax){this.cpColorMode===2&&(this.hsva.s=0);let i,s,a,c=this.outputColor;if(s=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(o?(a=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(a)):(a=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(a))),a=this.service.denormalizeRGBA(a),this.sliderH=this.hsva.h):a=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),i=this.service.denormalizeRGBA(this.service.hsvaToRgba(new zt(this.sliderH||this.hsva.h,1,1,1))),r){this.hslaText=new Ue(Math.round(s.h*360),Math.round(s.s*100),Math.round(s.l*100),Math.round(s.a*100)/100),this.rgbaText=new we(a.r,a.g,a.b,Math.round(a.a*100)/100),this.cpCmykEnabled&&(this.cmykText=new mt(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(this.cmyk.a*100)/100));let l=this.cpAlphaChannel==="always";this.hexText=this.service.rgbaToHex(a,l),this.hexAlpha=this.rgbaText.a}if(this.cpOutputFormat==="auto"&&this.format!==X.RGBA&&this.format!==X.CMYK&&this.format!==X.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?X.RGBA:X.HEX),this.hueSliderColor="rgb("+i.r+","+i.g+","+i.b+")",this.alphaSliderColor="rgb("+a.r+","+a.g+","+a.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==X.CMYK)this.cmykColor="";else if(this.cpAlphaChannel==="always"||this.cpAlphaChannel==="enabled"||this.cpAlphaChannel==="forced"){let l=Math.round(this.cmyk.a*100)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${l})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new uo((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),t&&c!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if(this.cpDialogDisplay==="inline")this.position="relative";else{let t="static",r="",o,i=null,s=null,a=this.directiveElementRef.nativeElement.parentNode,c=this.dialogElement.nativeElement.offsetHeight;for(;a!==null&&a.tagName!=="HTML";){if(o=window.getComputedStyle(a),t=o.getPropertyValue("position"),r=o.getPropertyValue("transform"),t!=="static"&&i===null&&(i=a),r&&r!=="none"&&s===null&&(s=a),t==="fixed"){i=s;break}a=a.parentNode}let l=this.createDialogBox(this.directiveElementRef.nativeElement,t!=="fixed");if(this.useRootViewContainer||t==="fixed"&&(!i||i instanceof HTMLUnknownElement))this.top=l.top,this.left=l.left;else{i===null&&(i=a);let F=this.createDialogBox(i,t!=="fixed");this.top=l.top-F.top,this.left=l.left-F.left}t==="fixed"&&(this.position="fixed");let u=this.cpPosition,d=this.dialogElement.nativeElement.getBoundingClientRect();if(this.cpPosition==="auto"){let F=this.cpTriggerElement.nativeElement.getBoundingClientRect();u=Ky(d,F)}switch(this.arrowTop=u==="top"?c-1:void 0,this.cpArrowPosition=void 0,u){case"top":this.top-=c+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*l.width-this.dialogArrowOffset;break;case"bottom":this.top+=l.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*l.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=c-l.height+l.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=c-l.height+l.height*this.cpPositionOffset/100,this.left+=l.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=l.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;case"right":case"bottom-right":case"right-bottom":default:this.top+=l.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=l.width+this.dialogArrowSize-2;break}let p=window.innerHeight,f=window.innerWidth,h=this.elRef.nativeElement.getBoundingClientRect();this.top+d.height>p&&(this.top=p-d.height,this.cpArrowPosition=h.x/2-20),this.left+d.width>f&&(this.left=f-d.width,this.cpArrowPosition=h.x/2-20),this.cpUsePosition=u}}isDescendant(t,r){let o=r.parentNode;for(;o!==null;){if(o===t)return!0;o=o.parentNode}return!1}createDialogBox(t,r){let{top:o,left:i}=t.getBoundingClientRect();return{top:o+(r?window.pageYOffset:0),left:i+(r?window.pageXOffset:0),width:t.offsetWidth,height:t.offsetHeight}}static \u0275fac=function(r){return new(r||e)(H(V),H(je),H(gn),H(de),H(ft),H(bn))};static \u0275cmp=Wr({type:e,selectors:[["color-picker"]],viewQuery:function(r,o){if(r&1&&(Vt(vy,7),Vt(yy,7),Vt(Dy,7)),r&2){let i;jt(i=Bt())&&(o.dialogElement=i.first),jt(i=Bt())&&(o.hueSlider=i.first),jt(i=Bt())&&(o.alphaSlider=i.first)}},hostBindings:function(r,o){r&1&&_("keyup.esc",function(s){return o.handleEsc(s)},!1,ms)("keyup.enter",function(s){return o.handleEnter(s)},!1,ms)},decls:30,vars:51,consts:[["dialogPopup",""],["hueSlider",""],["valueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"cursor"],[1,"value",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"alpha",3,"newValue","dragStart","dragEnd","slider","rgX"],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"newValue","dragStart","dragEnd","slider","rgX","rgY"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"click","disabled"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"keyup.enter","newValue","text","rg","value"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"keyup.enter","newValue","text","rg","value"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"keyup.enter","newValue","text","rg","value"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"keyup.enter","newValue","text","rg","value"],[1,"hex-text"],[3,"blur","keyup.enter","newValue","text","value"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let i=$();v(0,"div",4,0),_("click",function(a){return y(i),D(a.stopPropagation())}),q(2,Cy,1,7,"div",5)(3,wy,2,8,"div",6),v(4,"div",7)(5,"div",8),Ce(6,"div",9),v(7,"div",10),_("click",function(){return y(i),D(o.eyeDropperSupported&&o.cpEyeDropper&&o.onEyeDropper())}),q(8,Ey,3,0,"svg",11),g(),q(9,Iy,2,5,"button",12),g(),v(10,"div",13),q(11,by,1,0,"div",14),v(12,"div",15,1),_("newValue",function(a){return y(i),D(o.onHueChange(a))})("dragStart",function(){return y(i),D(o.onDragStart("hue"))})("dragEnd",function(){return y(i),D(o.onDragEnd("hue"))}),Ce(14,"div",16),g(),v(15,"div",17,2),_("newValue",function(a){return y(i),D(o.onValueChange(a))})("dragStart",function(){return y(i),D(o.onDragStart("value"))})("dragEnd",function(){return y(i),D(o.onDragEnd("value"))}),Ce(17,"div",16),g(),v(18,"div",18,3),_("newValue",function(a){return y(i),D(o.onAlphaChange(a))})("dragStart",function(){return y(i),D(o.onDragStart("alpha"))})("dragEnd",function(){return y(i),D(o.onDragEnd("alpha"))}),Ce(20,"div",16),g()()(),q(21,xy,17,12,"div",19)(22,Ay,14,10,"div",20)(23,Ry,14,10,"div",21)(24,Fy,8,7,"div",22)(25,Vy,9,3,"div",23)(26,jy,3,0,"div",24)(27,qy,6,3,"div",25)(28,Gy,3,2,"div",26)(29,Yy,2,1,"div",27),g()}r&2&&(Z("display",o.show?"block":"none")("visibility",o.hidden?"hidden":"visible")("top",o.top,"px")("left",o.left,"px")("position",o.position)("height",o.cpHeight,"px")("width",o.cpWidth,"px"),Kr("open",o.show),C(2),w("ngIf",o.cpDialogDisplay==="popup"),C(),w("ngIf",(o.cpColorMode||1)===1),C(4),Z("background-color",o.selectedColor)("cursor",o.eyeDropperSupported&&o.cpEyeDropper?"pointer":null),C(),w("ngIf",o.eyeDropperSupported&&o.cpEyeDropper),C(),w("ngIf",o.cpAddColorButton),C(2),w("ngIf",o.cpAlphaChannel==="disabled"),C(),Z("display",(o.cpColorMode||1)===1?"block":"none"),w("rgX",1),C(2),Z("left",o.slider==null?null:o.slider.h,"px"),C(),Z("display",(o.cpColorMode||1)===2?"block":"none"),w("rgX",1),C(2),Z("right",o.slider==null?null:o.slider.v,"px"),C(),Z("display",o.cpAlphaChannel==="disabled"?"none":"block")("background-color",o.alphaSliderColor),w("rgX",1),C(2),Z("left",o.slider==null?null:o.slider.a,"px"),C(),w("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),w("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),w("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),w("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),w("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===2),C(),w("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),w("ngIf",(o.cpPresetColors==null?null:o.cpPresetColors.length)||o.cpAddColorButton),C(),w("ngIf",o.cpOKButton||o.cpCancelButton),C(),w("ngIf",o.cpExtraTemplate))},dependencies:[Jy,Xy,vn,eo,Bs,Hs],styles:[`.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.color-picker *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;-webkit-flex:1;-ms-flex:1;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+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VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}
|
|
8
|
+
`],encapsulation:2})}return e})(),eD=!1,ad=(()=>{class e{injector;appRef;vcRef;elRef;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new L(!0);cpToggleChange=new L(!0);cpSliderChange=new L(!0);cpSliderDragEnd=new L(!0);cpSliderDragStart=new L(!0);colorPickerOpen=new L(!0);colorPickerClose=new L(!0);colorPickerCancel=new L(!0);colorPickerSelect=new L(!0);colorPickerChange=new L(!1);cpCmykColorChange=new L(!0);cpPresetColorsChange=new L(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(t){this.inputChange(t)}constructor(t,r,o,i){this.injector=t,this.appRef=r,this.vcRef=o,this.elRef=i}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(t){t.cpToggle&&!this.cpDisabled&&(t.cpToggle.currentValue?this.openDialog():t.cpToggle.currentValue||this.closeDialog()),t.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(t.colorPicker.currentValue),this.dialog.setColorFromString(t.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(t.cpPresetLabel||t.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&(this.cmpRef.instance.cpAlphaChannel=this.cpAlphaChannel,this.dialog.openDialog(this.colorPicker));else{let t=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let r=this.appRef.componentTypes[0],o=this.injector.get(r,K.NULL);o!==K.NULL?(t=o.vcRef||o.viewContainerRef||this.vcRef,eD&&t===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}if(this.viewAttachedToAppRef)this.cmpRef=t.createComponent(po,{injector:this.injector}),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let r=K.create({providers:[],parent:t.injector});this.cmpRef=t.createComponent(po,{injector:r,index:0})}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==t&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(t){this.cpCmykColorChange.emit(t)}stateChanged(t){this.cpToggleChange.emit(t),t?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(t,r=!0){this.ignoreChanges=r,this.colorPickerChange.emit(t)}colorSelected(t){this.colorPickerSelect.emit(t)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let t=this.elRef.nativeElement,r=this.cpIgnoredElements.filter(o=>o===t);!this.cpDisabled&&!r.length&&(typeof document<"u"&&t===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(t){this.dialog?this.dialog.setColorFromString(t.target.value,!0):(this.colorPicker=t.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(t){this.cpInputChange.emit(t)}sliderChanged(t){this.cpSliderChange.emit(t)}sliderDragEnd(t){this.cpSliderDragEnd.emit(t)}sliderDragStart(t){this.cpSliderDragStart.emit(t)}presetColorsChanged(t){this.cpPresetColorsChange.emit(t)}static \u0275fac=function(r){return new(r||e)(H(K),H(xe),H(Be),H(je))};static \u0275dir=Ye({type:e,selectors:[["","colorPicker",""]],hostBindings:function(r,o){r&1&&_("click",function(){return o.handleClick()})("focus",function(){return o.handleFocus()})("input",function(s){return o.handleInput(s)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[Or]})}return e})();var nD=["colorInput"],ho=class e{constructor(n,t){this.colorPickerService=n;this.\u0441hangeDetector=t;this._color="",this.outputFormat="hex",this._subscription=new G}_color;_valueControl;_subscription;get color(){return this._color}get readOnly(){return this._valueControl?.readOnly??!1}get disabled(){return this._valueControl?.disabled??!1}get required(){return this._valueControl?.required??!1}get value(){return this._valueControl?.value??""}outputFormat;get valueControl(){return this._valueControl}set valueControl(n){Object.is(this._valueControl,n)||(this._valueControl=n,this.onValueControlChanged())}colorInput;ngOnDestroy(){this._subscription?.unsubscribe(),delete this._subscription}updateFormControlValue(n){if(!this.valueControl)return;let t=this.colorPickerService.stringToHsva(n,!0),r=this.valueControl.schemaProperty,o=this.valueControl.value,i=this._color;t?typeof n=="number"?(i=lo(t,this.outputFormat,this.colorPickerService),o=id(t,this.colorPickerService)):(i=lo(t,this.outputFormat,this.colorPickerService),o=i):(o=n,i=""),r.valuesAreEquals(this.valueControl.value,o)||this.valueControl.setValue(o),this._color!==i&&(this._color=i),this.\u0441hangeDetector.detectChanges()}onValueControlChanged(){this.outputFormat=od(this.valueControl.schemaProperty.getSpecification()),this._subscription?.unsubscribe(),this._subscription=new G;let n=this.valueControl;this._subscription.add(ze(n.valueChanges).pipe(Ho(n.value),Bo(100)).subscribe(r=>{let o=ra(r,this.colorPickerService),i=lo(o,this.outputFormat,this.colorPickerService);this.color!=i&&this.updateFormControlValue(i)})),this._subscription.add(ze(n.statusChanges).subscribe(r=>this.\u0441hangeDetector.detectChanges())),this._subscription.add(n.registerDoFocus(r=>{let o=this.colorInput?.nativeElement;setTimeout(()=>o?.focus(r),0)}));let t=this.validateValue.bind(this);n.addValidators(t),n.updateAllValueAndValidity({onlySelf:!0}),this._subscription.add(()=>n.removeValidators(t)),this.\u0441hangeDetector.detectChanges()}validateValue(n){return ra(n.value,this.colorPickerService)?null:{[cd.ERROR_CUSTOM_PROPERTY]:`Invalid value for color in ${this.outputFormat.toUpperCase()} format.`}}static \u0275fac=function(t){return new(t||e)(H(bn),H(gn))};static \u0275cmp=Wr({type:e,selectors:[["ext-color-picker"]],viewQuery:function(t,r){if(t&1&&Vt(nD,5),t&2){let o;jt(o=Bt())&&(r.colorInput=o.first)}},hostAttrs:[1,"ext-color-picker"],inputs:{valueControl:"valueControl"},standalone:!1,decls:3,vars:9,consts:[["colorInput",""],[1,"color-picker-trigger",3,"colorPickerChange","colorPicker","cpOutputFormat","cpDisableInput"],[1,"color-picker-input",3,"change","value","disabled","readOnly","required"]],template:function(t,r){if(t&1){let o=$();v(0,"div",1),_("colorPickerChange",function(s){return y(o),D(r.updateFormControlValue(s))}),g(),v(1,"input",2,0),_("change",function(){y(o);let s=Pu(2);return D(r.updateFormControlValue(s.value))}),g()}t&2&&(Z("background",r.color),w("colorPicker",r.color)("cpOutputFormat",r.outputFormat)("cpDisableInput",r.readOnly||r.disabled),C(),w("value",r.value)("disabled",r.disabled)("readOnly",r.readOnly)("required",r.required))},dependencies:[ad],encapsulation:2,changeDetection:0})};var go=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=He({type:e});static \u0275inj=Pe({providers:[bn],imports:[In,po]})};var mo=class e{constructor(n){this.injector=n}ngDoBootstrap(){let n=nd(ho,{injector:this.injector});customElements.define("ext-color-picker-editor",n)}static \u0275fac=function(t){return new(t||e)(A(K))};static \u0275mod=He({type:e});static \u0275inj=Pe({providers:[Vu()],imports:[In,go]})};Xs().bootstrapModule(mo,{ngZoneEventCoalescing:!0}).catch(e=>console.error(e));
|
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/gamedevware/charon-extensions/refs/heads/main/package.json.schema.json",
|
|
3
|
+
"name": "charon-color-picker",
|
|
4
|
+
"version": "1.0.23",
|
|
5
|
+
"description": "",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"charon",
|
|
8
|
+
"extensions",
|
|
9
|
+
"color picker"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/gamedevware/charon-extensions",
|
|
12
|
+
"bugs": "https://github.com/gamedevware/charon-extensions/issues",
|
|
13
|
+
"author": "GameDevWare, Denis Zykov",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"config": {
|
|
16
|
+
"customEditors": [
|
|
17
|
+
{
|
|
18
|
+
"id": "ext-color-picker-hex",
|
|
19
|
+
"selector": "ext-color-picker-editor",
|
|
20
|
+
"name": "Color Picker (Hex)",
|
|
21
|
+
"specification": "format=hex",
|
|
22
|
+
"type": [
|
|
23
|
+
"Property",
|
|
24
|
+
"Grid"
|
|
25
|
+
],
|
|
26
|
+
"dataTypes": [
|
|
27
|
+
"Text",
|
|
28
|
+
"Integer"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "ext-color-picker-hsla",
|
|
33
|
+
"selector": "ext-color-picker-editor",
|
|
34
|
+
"name": "Color Picker (HSLA)",
|
|
35
|
+
"specification": "format=hsla",
|
|
36
|
+
"type": [
|
|
37
|
+
"Property",
|
|
38
|
+
"Grid"
|
|
39
|
+
],
|
|
40
|
+
"dataTypes": [
|
|
41
|
+
"Text"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "ext-color-picker-rgba",
|
|
46
|
+
"selector": "ext-color-picker-editor",
|
|
47
|
+
"name": "Color Picker (RGBA)",
|
|
48
|
+
"specification": "format=rgba",
|
|
49
|
+
"type": [
|
|
50
|
+
"Property",
|
|
51
|
+
"Grid"
|
|
52
|
+
],
|
|
53
|
+
"dataTypes": [
|
|
54
|
+
"Text"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"main": "main.js",
|
|
60
|
+
"files": [
|
|
61
|
+
"styles.css"
|
|
62
|
+
],
|
|
63
|
+
"scripts": {
|
|
64
|
+
"ng": "ng",
|
|
65
|
+
"start": "ng serve",
|
|
66
|
+
"build": "ng build && copy package.json dist\\browser\\package.json && cd dist\\browser && npm pack",
|
|
67
|
+
"watch": "ng build --watch --configuration development",
|
|
68
|
+
"test": "ng test"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@angular-devkit/build-angular": "^19.2.5",
|
|
72
|
+
"@angular/cli": "^19.2.5",
|
|
73
|
+
"@angular/compiler-cli": "^19.2.0",
|
|
74
|
+
"@types/jasmine": "~5.1.0",
|
|
75
|
+
"jasmine-core": "~5.6.0",
|
|
76
|
+
"karma": "~6.4.0",
|
|
77
|
+
"karma-chrome-launcher": "~3.2.0",
|
|
78
|
+
"karma-coverage": "~2.2.0",
|
|
79
|
+
"karma-jasmine": "~5.1.0",
|
|
80
|
+
"karma-jasmine-html-reporter": "~2.1.0",
|
|
81
|
+
"typescript": "~5.7.2"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"@angular/common": "^19.2.0",
|
|
85
|
+
"@angular/compiler": "^19.2.0",
|
|
86
|
+
"@angular/core": "^19.2.0",
|
|
87
|
+
"@angular/elements": "^19.2.4",
|
|
88
|
+
"@angular/forms": "^19.2.0",
|
|
89
|
+
"@angular/platform-browser": "^19.2.0",
|
|
90
|
+
"@angular/platform-browser-dynamic": "^19.2.0",
|
|
91
|
+
"@angular/router": "^19.2.0",
|
|
92
|
+
"charon-extensions": "^2.226.310",
|
|
93
|
+
"ngx-color-picker": "^19.0.0",
|
|
94
|
+
"rxjs": "~7.8.0",
|
|
95
|
+
"tslib": "^2.3.0"
|
|
96
|
+
}
|
|
97
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ext-color-picker{flex:1;display:flex;flex-direction:row;justify-content:stretch;align-items:stretch;padding:4px;gap:4px}.ext-color-picker .color-picker-trigger{width:60px;border:1px solid var(--mat-card-subtitle-text-color, #333)}.ext-color-picker .color-picker-input{flex:1;border:none;outline:none}
|