PageSourceSearch

https://appmagic.rocks/assets/angular2/main-7NX7UZBR.js

js appmagic.rocks collected 2026-09-24 08:57:06 UTC 1,962,868 bytes, 1,007 lines download raw bytes

1var t$q="top-charts";var o$r="soft-launches",p$j=`/${t$q}/${o$r}`;var t$p="trending",h$d=`/${t$q}/${t$p}`;var s$q="publishers",i$i=`/${t$q}/${s$q}`;var r$g="live-store-rankings",t$o=`/${t$q}/${r$g}`,l$h="hourly-apps";var r$f="our-features",e$n="/our-features";var r$e="for-press",o$q="/for-press",s$p="[email protected]";var o$p="advanced-search",a$j=`/${t$q}/${o$p}`;var r$d="in-app-purchases-distribution",t$n="/in-app-purchases-distribution",a$i="dashboard",o$o=`${t$n}/${a$i}`,p$i=`${a$i}/${r$d}`;var r$c="feature-library",e$m="/feature-library",a$h={featureGroupId:"feature_group_id",version:"version"};var v$e=Object.create;var p$h=Object.defineProperty,w$b=Object.defineProperties,x$h=Object.getOwnPropertyDescriptor,y$8=Object.getOwnPropertyDescriptors,z$a=Object.getOwnPropertyNames,o$n=Object.getOwnPropertySymbols,A$e=Object.getPrototypeOf,s$o=Object.prototype.hasOwnProperty,u$c=Object.prototype.propertyIsEnumerable;var r$b=(a,b)=>(b=Symbol[a])?b:Symbol.for("Symbol."+a);var t$m=(a,b,c)=>b in a?p$h(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,D$m=(a,b)=>{for(var c in b||={})s$o.call(b,c)&&t$m(a,c,b[c]);if(o$n)for(var c of o$n(b))u$c.call(b,c)&&t$m(a,c,b[c]);return a},E$9=(a,b)=>w$b(a,y$8(b));var F$e=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var G$g=(a,b)=>{var c={};for(var d in a)s$o.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&o$n)for(var d of o$n(a))b.indexOf(d)<0&&u$c.call(a,d)&&(c[d]=a[d]);return c};var H$d=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),I$d=(a,b)=>{for(var c in b)p$h(a,c,{get:b[c],enumerable:true});},B$f=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let f of z$a(b))!s$o.call(a,f)&&f!==c&&p$h(a,f,{get:()=>b[f],enumerable:!(d=x$h(b,f))||d.enumerable});return a};var J$k=(a,b,c)=>(c=a!=null?v$e(A$e(a)):{},B$f(!a||!a.__esModule?p$h(c,"default",{value:a,enumerable:true}):c,a));var K$g=(a,b,c)=>new Promise((d,f)=>{var g=e=>{try{h(c.next(e));}catch(i){f(i);}},k=e=>{try{h(c.throw(e));}catch(i){f(i);}},h=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,k);h((c=c.apply(a,b)).next());}),C$e=function(a,b){this[0]=a,this[1]=b;},L$b=(a,b,c)=>{var d=(h,e,i,l)=>{try{var m=c[h](e),n=(e=m.value)instanceof C$e,q=m.done;Promise.resolve(n?e[0]:e).then(j=>n?d(h==="return"?h:"next",e[1]?{done:j.done,value:j.value}:j,i,l):i({value:j,done:q})).catch(j=>d("throw",j,i,l));}catch(j){l(j);}},f=(h,e,i,l)=>k[h]=m=>(e=new Promise((n,q,j)=>(j=()=>d(h,m,n,q),g?g.then(j):j())),l=()=>g===i&&(g=0),g=i=e.then(l,l),e),g,k={};return c=c.apply(a,b),k[r$b("asyncIterator")]=()=>k,f("next"),f("throw"),f("return"),k};var M$h=(a,b,c)=>(b=a[r$b("asyncIterator")])?b.call(a):(a=a[r$b("iterator")](),b={},c=(d,f)=>(f=a[d])&&(b[d]=g=>new Promise((k,h,e)=>(g=f.call(a,g),e=g.done,Promise.resolve(g.value).then(i=>k({value:i,done:e}),h)))),c("next"),c("return"),b);function w$a(e){return typeof e=="function"}function gn$3(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var oo$3=gn$3(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3  `)}`:"",this.name="UnsubscriptionError",this.errors=n;});function At$c(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var W$f=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(w$a(r))try{r();}catch(i){t=i instanceof oo$3?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Xl$2(i);}catch(s){t=t??[],s instanceof oo$3?t=[...t,...s.errors]:t.push(s);}}if(t)throw new oo$3(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Xl$2(t);else {if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t);}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t;}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&At$c(n,t);}remove(t){let{_finalizers:n}=this;n&&At$c(n,t),t instanceof e&&t._removeParent(this);}};W$f.EMPTY=(()=>{let e=new W$f;return e.closed=true,e})();var ys$1=W$f.EMPTY;function io$3(e){return e instanceof W$f||e&&"closed"in e&&w$a(e.remove)&&w$a(e.add)&&w$a(e.unsubscribe)}function Xl$2(e){w$a(e)?e():e.unsubscribe();}var be$a={Promise:void 0};var mn$4={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function so$4(e){mn$4.setTimeout(()=>{throw e});}function ue$9(){}function yn$3(e){e();}var kt$9=class kt extends W$f{constructor(t){super(),this.isStopped=false,t?
vendor: 9,739 bytes, line 3
3(this.destination=t,io$3(t)&&t.add(this)):this.destination=bm$2;}static create(t,n,r){return new Ce$c(t,n,r)}next(t){this.isStopped?Es$2():this._next(t);}error(t){this.isStopped?Es$2():(this.isStopped=true,this._error(t));}complete(){this.isStopped?Es$2():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,super.unsubscribe(),this.destination=null);}_next(t){this.destination.next(t);}_error(t){try{this.destination.error(t);}finally{this.unsubscribe();}}_complete(){try{this.destination.complete();}finally{this.unsubscribe();}}};var Ds$2=class Ds{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){ao$4(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){ao$4(r);}else ao$4(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){ao$4(n);}}},Ce$c=class Ce extends kt$9{constructor(t,n,r){super();let o;if(w$a(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new Ds$2(o);}};function ao$4(e){so$4(e);}function Tm$2(e){throw e}function Es$2(e,t){}var bm$2={closed:true,next:ue$9,error:Tm$2,complete:ue$9};var vn$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function X$g(e){return e}function ws$2(...e){return Ts$2(e)}function Ts$2(e){return e.length===0?X$g:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var x$g=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=_m$2(n)?n:new Ce$c(n,r,o);return yn$3(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i));}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r);}}forEach(n,r){return r=ou$2(r),new r((o,i)=>{let s=new Ce$c({next:a=>{try{n(a);}catch(c){i(c),s.unsubscribe();}},error:i,complete:o});this.subscribe(s);})}_subscribe(n){var r;return (r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[vn$3](){return this}pipe(...n){return Ts$2(n)(this)}toPromise(n){return n=ou$2(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));})}}return e.create=t=>new e(t),e})();function ou$2(e){var t;return (t=e??be$a.Promise)!==null&&t!==void 0?t:Promise}function Cm$2(e){return e&&w$a(e.next)&&w$a(e.error)&&w$a(e.complete)}function _m$2(e){return e&&e instanceof kt$9||Cm$2(e)&&io$3(e)}var iu$2=gn$3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var de$c=(()=>{class e extends x$g{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new co$4(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new iu$2}next(n){yn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){yn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){yn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,this.observers=this.currentObservers=null;}get observed(){var n;return ((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ys$1:(this.currentObservers=null,i.push(n),new W$f(()=>{this.currentObservers=null,At$c(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new x$g;return n.source=this,n}}return e.create=(t,n)=>new co$4(t,n),e})(),co$4=class co extends de$c{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ys$1}};var rr$4=class rr extends de$c{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var lo$4=class lo extends W$f{constructor(t,n){super();}schedule(t,n=0){return this}};var or$4={setInterval(e,t,...n){let{delegate:r}=or$4;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var In$4=class In extends lo$4{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return or$4.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&or$4.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,At$c(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var ir$4={now(){return (ir$4.delegate||Date).now()},delegate:void 0};var En$4=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};En$4.now=ir$4.now;var Dn$4=class Dn extends En$4{constructor(t,n=En$4.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var se$c=new Dn$4(In$4),bs$1=se$c;function uo$4(e){return e&&w$a(e.schedule)}function Cs$2(e){return e[e.length-1]}function ut$a(e){return w$a(Cs$2(e))?e.pop():void 0}function Fe$c(e){return uo$4(Cs$2(e))?e.pop():void 0}function su$2(e,t){return typeof Cs$2(e)=="number"?e.pop():t}function M_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function cu$2(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function a(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,[])).next());})}function au$2(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ot$9(e){return this instanceof Ot$9?(this.v=e,this):new Ot$9(e)}function lu$2(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(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(T,N){i.push([f,m,T,N])>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 Ot$9?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 uu$2(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof au$2=="function"?au$2(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,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 wn$5=e=>e&&typeof e.length=="number"&&typeof e!="function";function fo$3(e){return w$a(e?.then)}function po$4(e){return w$a(e[vn$3])}function ho$3(e){return Symbol.asyncIterator&&w$a(e?.[Symbol.asyncIterator])}function go$4(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invali
3d object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Mm$2(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mo$4=Mm$2();function yo$4(e){return w$a(e?.[mo$4])}function vo$3(e){return lu$2(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Ot$9(n.read());if(o)return yield Ot$9(void 0);yield yield Ot$9(r);}}finally{n.releaseLock();}})}function Io$3(e){return w$a(e?.getReader)}function C$d(e){if(e instanceof x$g)return e;if(e!=null){if(po$4(e))return Sm$2(e);if(wn$5(e))return Nm$2(e);if(fo$3(e))return xm$2(e);if(ho$3(e))return du$2(e);if(yo$4(e))return Am$1(e);if(Io$3(e))return Rm$2(e)}throw go$4(e)}function Sm$2(e){return new x$g(t=>{let n=e[vn$3]();if(w$a(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Nm$2(e){return new x$g(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function xm$2(e){return new x$g(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,so$4);})}function Am$1(e){return new x$g(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function du$2(e){return new x$g(t=>{km$2(e,t).catch(n=>t.error(n));})}function Rm$2(e){return du$2(vo$3(e))}function km$2(e,t){var n,r,o,i;return cu$2(this,void 0,void 0,function*(){try{for(n=uu$2(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error}}t.complete();})}function ae$c(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function Om$2(e){return w$a(e?.lift)}function I$c(e){return t=>{if(Om$2(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type")}}function y$7(e,t,n,r,o){return new _s$1(e,t,n,r,o)}var _s$1=class _s extends kt$9{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function Eo$3(e,t=0){return I$c((n,r)=>{n.subscribe(y$7(r,o=>ae$c(r,e,()=>r.next(o),t),()=>ae$c(r,e,()=>r.complete(),t),o=>ae$c(r,e,()=>r.error(o),t)));})}function Do$4(e,t=0){return I$c((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function fu$2(e,t){return C$d(e).pipe(Do$4(t),Eo$3(t))}function pu$2(e,t){return C$d(e).pipe(Do$4(t),Eo$3(t))}function hu$2(e,t){return new x$g(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function gu$2(e,t){return new x$g(n=>{let r;return ae$c(n,t,()=>{r=e[mo$4](),ae$c(n,t,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return}i?n.complete():n.next(o);},0,true);}),()=>w$a(r?.return)&&r.return()})}function wo$4(e,t){if(!e)throw new Error("Iterable cannot be null");return new x$g(n=>{ae$c(n,t,()=>{let r=e[Symbol.asyncIterator]();ae$c(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function mu$2(e,t){return wo$4(vo$3(e),t)}function yu$2(e,t){if(e!=null){if(po$4(e))return fu$2(e,t);if(wn$5(e))return hu$2(e,t);if(fo$3(e))return pu$2(e,t);if(ho$3(e))return wo$4(e,t);if(yo$4(e))return gu$2(e,t);if(Io$3(e))return mu$2(e,t)}throw go$4(e)}function je$8(e,t){return t?yu$2(e,t):C$d(e)}function Ms$2(...e){let t=Fe$c(e);return je$8(e,t)}function Lm$2(e,t){let n=w$a(e)?e:()=>e,r=o=>o.error(n());return new x$g(r)}var Lt$9=gn$3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function Pm$2(e,t){return new Promise((r,o)=>{let i=new Ce$c({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{o(new Lt$9);}});e.subscribe(i);})}function ge$9(e,t){return I$c((n,r)=>{let o=0;n.subscribe(y$7(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:Fm$2}=Array,{getPrototypeOf:jm$2,prototype:Vm$2,keys:Hm$2}=Object;function To$3(e){if(e.length===1){let t=e[0];if(Fm$2(t))return {args:t,keys:null};if(Bm$2(t)){let n=Hm$2(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Bm$2(e){return e&&typeof e=="object"&&jm$2(e)===Vm$2}var{isArray:$m$2}=Array;function Um$2(e,t){return $m$2(t)?e(...t):e(t)}function Ve$c(e){return ge$9(t=>Um$2(e,t))}function bo$3(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function qm$2(...e){let t=Fe$c(e),n=ut$a(e),{args:r,keys:o}=To$3(e);if(r.length===0)return je$8([],t);let i=new x$g(Ss$2(r,t,o?s=>bo$3(o,s):X$g));return n?i.pipe(Ve$c(n)):i}function Ss$2(e,t,n=X$g){return r=>{vu$2(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)vu$2(t,()=>{let l=je$8(e[c],t),u=false;l.subscribe(y$7(r,d=>{i[c]=d,u||(u=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function vu$2(e,t,n){e?ae$c(n,e,t):t();}function Iu$1(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=false,p=()=>{d&&!c.length&&!l&&t.complete();},f=m=>l<r?h(m):c.push(m),h=m=>{l++;let T=false;C$d(n(m,u++)).subscribe(y$7(t,N=>{t.next(N);},()=>{T=true;},void 0,()=>{if(T)try{for(l--;c.length&&l<r;){let N=c.shift();s?ae$c(t,s,()=>h(N)):h(N);}p();}catch(N){t.error(N);}}));};return e.subscribe(y$7(t,f,()=>{d=true,p();})),()=>{}}function _e$b(e,t,n=1/0){return w$a(t)?_e$b((r,o)=>ge$9((i,s)=>t(r,i,o,s))(C$d(e(r,o))),n):(typeof t=="number"&&(n=t),I$c((r,o)=>Iu$1(r,o,e,n)))}function Wm$2(...e){let t=ut$a(e),{args:n,keys:r}=To$3(e),o=new x$g(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=false;C$d(n[u]).subscribe(y$7(i,p=>{d||(d=true,l--),a[u]=p;},()=>c--,void 0,()=>
3{(!c||!d)&&(l||i.next(r?bo$3(r,a):a),i.complete());}));}});return t?o.pipe(Ve$c(t)):o}var Gm$2=["addListener","removeListener"],zm$2=["addEventListener","removeEventListener"],Qm$2=["on","off"];function Ns$2(e,t,n,r){if(w$a(n)&&(r=n,n=void 0),r)return Ns$2(e,t,n).pipe(Ve$c(r));let[o,i]=Km$2(e)?zm$2.map(s=>a=>e[s](t,a,n)):Zm$2(e)?Gm$2.map(Eu$2(e,t)):Ym$2(e)?Qm$2.map(Eu$2(e,t)):[];if(!o&&wn$5(e))return _e$b(s=>Ns$2(s,t,n))(C$d(e));if(!o)throw new TypeError("Invalid event target");return new x$g(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function Eu$2(e,t){return n=>r=>e[n](t,r)}function Zm$2(e){return w$a(e.addListener)&&w$a(e.removeListener)}function Ym$2(e){return w$a(e.on)&&w$a(e.off)}function Km$2(e){return w$a(e.addEventListener)&&w$a(e.removeEventListener)}function Tn$3(e,t){return I$c((n,r)=>{let o=0;n.subscribe(y$7(r,i=>e.call(t,i,o++)&&r.next(i)));})}function xs$1(e){return I$c((t,n)=>{let r=null,o=!1,i;r=t.subscribe(y$7(n,void 0,void 0,s=>{i=C$d(e(s,xs$1(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function Du$2(e,t){return w$a(t)?_e$b(e,t,1):_e$b(e,1)}function wu$2(e,t=se$c){return I$c((n,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=t.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a();}n.subscribe(y$7(r,l=>{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}var He$9=new x$g(e=>e.complete());function Jm$2(e){return e?Xm$2(e):He$9}function Xm$2(e){return new x$g(t=>e.schedule(()=>t.complete()))}function Pt$a(e){return e<=0?()=>He$9:I$c((t,n)=>{let r=0;t.subscribe(y$7(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Tu$2(e,t=X$g){return e=e??ey,I$c((n,r)=>{let o,i=!0;n.subscribe(y$7(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function ey(e,t){return e===t}function bu$2(e){return I$c((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Cu$2(e){return I$c((t,n)=>{let r=!1;t.subscribe(y$7(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function _u$2(e=ty){return I$c((t,n)=>{let r=!1;t.subscribe(y$7(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function ty(){return new Lt$9}function Mu$2(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Tn$3((o,i)=>e(o,i,r)):X$g,Pt$a(1),n?Cu$2(t):_u$2(()=>new Lt$9))}function Su$2(){return I$c((e,t)=>{let n,r=!1;e.subscribe(y$7(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0;}));})}function Nu$2(e){return Tn$3((t,n)=>e<=n)}function sr$3(e=1/0){return _e$b(X$g,e)}function xu$2(){return sr$3(1)}function dt$8(...e){return xu$2()(je$8(e,Fe$c(e)))}function Au$2(...e){let t=Fe$c(e);return I$c((n,r)=>{(t?dt$8(e,n,t):dt$8(e,n)).subscribe(r);})}function Ru$2(e,t){return I$c((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(y$7(r,c=>{o?.unsubscribe();let l=0,u=i++;C$d(e(c,u)).subscribe(o=y$7(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function ku$2(e){return I$c((t,n)=>{C$d(e).subscribe(y$7(n,()=>n.complete(),ue$9)),!n.closed&&t.subscribe(n);})}function Ou$2(e,t=false){return I$c((n,r)=>{let o=0;n.subscribe(y$7(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}function Lu$2(e,t,n){let r=w$a(e)||t||n?{next:e,error:t,complete:n}:e;return r?I$c((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(y$7(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c);},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r);}));}):X$g}function Pu$2(e,t){return I$c((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,c=null,l=!1,u=()=>{c?.unsubscribe(),c=null,i&&(f(),l&&r.complete());},d=()=>{c=null,l&&r.complete();},p=h=>c=C$d(e(h)).subscribe(y$7(r,u,d)),f=()=>{if(s){s=!1;let h=a;a=null,r.next(h),!l&&p(h);}};n.subscribe(y$7(r,h=>{s=!0,a=h,!(c&&!c.closed)&&(o?f():p(h));},()=>{l=!0,!(i&&s&&c&&!c.closed)&&r.complete();}));})}function Fu$2(e){return e instanceof Date&&!isNaN(e)}function Me$b(e=0,t,n=bs$1){let r=-1;return t!=null&&(uo$4(t)?n=t:r=t),new x$g(o=>{let i=Fu$2(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function ju$2(e,t=se$c,n){let r=Me$b(e,t);return Pu$2(()=>r,n)}var bn$5={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame;let o=t(i=>{n=void 0,e(i);});return new W$f(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=bn$5;return (t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){return (cancelAnimationFrame)(...e)},delegate:void 0};var ar$4=class ar extends de$c{constructor(t=1/0,n=1/0,r=ir$4){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};
3var Co$3=class Co extends In$4{constructor(t,n){super(t,n),this.scheduler=t,this.work=n;}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=bn$5.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(bn$5.cancelAnimationFrame(n),t._scheduled=void 0);}};var _o$3=class _o extends Dn$4{flush(t){this._active=true;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=false,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var ny=new _o$3(Co$3);function ry(e){return !!e&&(e instanceof x$g||w$a(e.lift)&&w$a(e.subscribe))}function oy(e){return new x$g(t=>{C$d(e()).subscribe(t);})}function Vu$2(e,t,n){return n?Vu$2(e,t).pipe(Ve$c(n)):new x$g(r=>{let o=(...s)=>r.next(s.length===1?s[0]:s),i=e(o);return w$a(t)?()=>t(o,i):void 0})}function As$2(e=0,t=se$c){return e<0&&(e=0),Me$b(e,e,t)}function iy(...e){let t=Fe$c(e),n=su$2(e,1/0),r=e;return r.length?r.length===1?C$d(r[0]):sr$3(n)(je$8(r,t)):He$9}var{isArray:sy}=Array;function Mo$4(e){return e.length===1&&sy(e[0])?e[0]:e}function ay(...e){return e=Mo$4(e),e.length===1?C$d(e[0]):new x$g(cy(e))}function cy(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r<e.length;r++)n.push(C$d(e[r]).subscribe(y$7(t,o=>{if(n){for(let i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null;}t.next(o);})));}}function Hu$2(e){return I$c((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(y$7(n,l=>{r=!0,o=l,i||C$d(e(l)).subscribe(i=y$7(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Bu$2(e,t=se$c){return Hu$2(()=>Me$b(e,t))}function So$3(e,t,n,r,o){return (i,s)=>{let a=n,c=t,l=0;i.subscribe(y$7(s,u=>{let d=l++;c=a?e(c,u,d):(a=true,u),r&&s.next(c);},o&&(()=>{a&&s.next(c),s.complete();})));}}function ly(e,t){return I$c(So$3(e,t,arguments.length>=2,!1,!0))}function Rs$2(...e){let t=ut$a(e);return t?ws$2(Rs$2(...e),Ve$c(t)):I$c((n,r)=>{Ss$2([n,...Mo$4(e)])(r);})}function uy(...e){return Rs$2(...e)}function ks$2(){return I$c((e,t)=>{e.subscribe(y$7(t,ue$9));})}function $u$2(e){return ge$9(()=>e)}function Os$2(e,t){return t?n=>dt$8(t.pipe(Pt$a(1),ks$2()),n.pipe(Os$2(e))):_e$b((n,r)=>C$d(e(n,r)).pipe(Pt$a(1),$u$2(n)))}function Uu$2(e,t=se$c){let n=Me$b(e,t);return Os$2(()=>n)}function dy(e,t){return I$c((n,r)=>{let o=new Set;n.subscribe(y$7(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&C$d(t).subscribe(y$7(r,()=>o.clear(),ue$9));})}function fy(...e){return t=>dt$8(t,Ms$2(...e))}function py(e){return e<=0?()=>He$9:I$c((t,n)=>{let r=[];t.subscribe(y$7(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function hy(...e){let t=e.length;if(t===0)throw new Error("list of properties cannot be empty.");return ge$9(n=>{let r=n;for(let o=0;o<t;o++){let i=r?.[e[o]];if(typeof i<"u")r=i;else return}return r})}function gy(e){let t=1/0,n;return t<=0?()=>He$9:I$c((r,o)=>{let i=0,s,a=()=>{if(s?.unsubscribe(),s=null,n!=null);else c();},c=()=>{let l=!1;s=r.subscribe(y$7(o,void 0,()=>{++i<t?s?a():l=!0:o.complete();})),l&&a();};c();})}function qu$2(e){return I$c((t,n)=>{let r=!1,o=null;t.subscribe(y$7(n,i=>{r=!0,o=i;})),C$d(e).subscribe(y$7(n,()=>{if(r){r=!1;let i=o;o=null,n.next(i);}},ue$9));})}function my(e,t=se$c){return qu$2(As$2(e,t))}function yy(e,t){return I$c(So$3(e,t,arguments.length>=2,!0))}function No$3(e={}){let{connector:t=()=>new de$c,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,l=0,u=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,u=d=false;},h=()=>{let m=s;f(),m?.unsubscribe();};return I$c((m,T)=>{l++,!d&&!u&&p();let N=c=c??t();T.add(()=>{l--,l===0&&!d&&!u&&(a=Ls$2(h,o));}),N.subscribe(T),!s&&l>0&&(s=new Ce$c({next:B=>N.next(B),error:B=>{d=!0,p(),a=Ls$2(f,n,B),N.error(B);},complete:()=>{u=!0,p(),a=Ls$2(f,r),N.complete();}}),C$d(m).subscribe(s));})(i)}}function Ls$2(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Ce$c({next:()=>{r.unsubscribe(),e();}});return C$d(t(...n)).subscribe(r)}function Wu$2(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,No$3({connector:()=>new ar$4(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function vy(e){return I$c((t,n)=>{let r=!1,o=0;t.subscribe(y$7(n,i=>(r||(r=!e(i,o++)))&&n.next(i)));})}function Gu$2(...e){let t=ut$a(e);return I$c((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)C$d(e[c]).subscribe(y$7(r,l=>{i[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(X$g))&&(s=null));},ue$9));n.subscribe(y$7(r,c=>{if(a){let l=[c,...i];r.next(t?t(...l):l);}}));})}var re$f=null,xo$3=false,Ft$7=1,V$f=Symbol("SIGNAL");function E$8(e){let t=re$f;return re$f=e,t}function Ao$3(){return re$f}var Ke$8={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Je$8(e){if(xo$3)throw new Error("");
vendor: 2,440 bytes, line 3
3if(re$f===null)return;re$f.consumerOnSignalRead(e);let t=re$f.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=re$f.recomputing;if(r&&(n=t!==void 0?t.nextProducer:re$f.producers,n!==void 0&&n.producer===e)){re$f.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Ft$7;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===re$f&&(!r||o.knownValidAtEpoch===Ft$7))return;let i=_n$4(re$f),s={producer:e,consumer:re$f,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Ft$7,lastReadVersion:e.version,nextConsumer:void 0};re$f.producersTail=s,t!==void 0?t.nextProducer=s:re$f.producers=s,i&&Ku$2(e,s);}function zu$2(){Ft$7++;}function Ht$9(e){if(!(_n$4(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ft$7)){if(!e.producerMustRecompute(e)&&!Bt$b(e)){Cn$4(e);return}e.producerRecomputeValue(e),Cn$4(e);}}function Ps$2(e){if(e.consumers===void 0)return;let t=xo$3;xo$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Qu$2(r);}}finally{xo$3=t;}}function Fs$1(){return re$f?.consumerAllowSignalWrites!==false}function Qu$2(e){e.dirty=true,Ps$2(e),e.consumerMarkedDirty?.(e);}function Cn$4(e){e.dirty=false,e.lastCleanEpoch=Ft$7;}function $e$9(e){return e&&Zu$2(e),E$8(e)}function Zu$2(e){if(e.producersTail?.knownValidAtEpoch===Ft$7){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Xe$6(e,t){E$8(t),e&&Yu$2(e);}function Yu$2(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(_n$4(e))do n=js$2(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Bt$b(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ht$9(n),r!==n.version))return  true}return  false}function et$d(e){if(_n$4(e)){let t=e.producers;for(;t!==void 0;)t=js$2(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Ku$2(e,t){let n=e.consumersTail,r=_n$4(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Ku$2(o.producer,o);}function js$2(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)
3o.nextConsumer=r;else if(t.consumers=r,!_n$4(t)){let i=t.producers;for(;i!==void 0;)i=js$2(i);}return n}function _n$4(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function lr$4(e,t){return Object.is(e,t)}function ur$4(e,t){let n=Object.create(Ey);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ht$9(n),Je$8(n),n.value===Be$b)throw n.error;return n.value};return r[V$f]=n,r}var jt$8=Symbol("UNSET"),Vt$a=Symbol("COMPUTING"),Be$b=Symbol("ERRORED"),Ey=E$9(D$m({},Ke$8),{value:jt$8,dirty:true,error:null,equal:lr$4,kind:"computed",producerMustRecompute(e){return e.value===jt$8||e.value===Vt$a},producerRecomputeValue(e){if(e.value===Vt$a)throw new Error("");let t=e.value;e.value=Vt$a;let n=$e$9(e),r,o=false;try{r=e.computation(),E$8(null),o=t!==jt$8&&t!==Be$b&&r!==Be$b&&e.equal(t,r);}catch(i){r=Be$b,e.error=i;}finally{Xe$6(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Dy(){throw new Error}var Ju$2=Dy;function Xu$2(e){Ju$2(e);}function Vs$2(e){Ju$2=e;}function Hs$2(e,t){let n=Object.create(dr$4);n.value=e,t!==void 0&&(n.equal=t);let r=()=>ed$2(n);return r[V$f]=n,[r,s=>ft$9(n,s),s=>Ro$4(n,s)]}function ed$2(e){return Je$8(e),e.value}function ft$9(e,t){Fs$1()||Xu$2(e),e.equal(e.value,t)||(e.value=t,Ty(e));}function Ro$4(e,t){Fs$1()||Xu$2(e),ft$9(e,t(e.value));}var dr$4=E$9(D$m({},Ke$8),{equal:lr$4,value:void 0,kind:"signal"});function Ty(e){e.version++,zu$2(),Ps$2(e);}var Bs$2=E$9(D$m({},Ke$8),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function $s$2(e){if(e.dirty=false,e.version>0&&!Bt$b(e))return;e.version++;let t=$e$9(e);try{e.cleanup(),e.fn();}finally{Xe$6(e,t);}}var Us$2;function ko$3(){return Us$2}function Ue$9(e){let t=Us$2;return Us$2=e,t}var td$2=Symbol("NotFound");function Mn$4(e){return e===td$2||e?.name==="\u0275NotFound"}function qs$2(e,t,n){let r=Object.create(by);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Ht$9(r),Je$8(r),r.value===Be$b)throw r.error;return r.value};return i[V$f]=r,i}function nd$2(e,t){Ht$9(e),ft$9(e,t),Cn$4(e);}function rd$3(e,t){if(Ht$9(e),e.value===Be$b)throw e.error;Ro$4(e,t),Cn$4(e);}var by=E$9(D$m({},Ke$8),{value:jt$8,dirty:true,error:null,equal:lr$4,kind:"linkedSignal",producerMustRecompute(e){return e.value===jt$8||e.value===Vt$a},producerRecomputeValue(e){if(e.value===Vt$a)throw new Error("");let t=e.value;e.value=Vt$a;let n=$e$9(e),r,o=false;try{let i=e.source(),s=t!==jt$8&&t!==Be$b,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,E$8(null),o=s&&r!==Be$b&&e.equal(t,r);}catch(i){r=Be$b,e.error=i;}finally{Xe$6(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function od$2(e){let t=E$8(null);try{return e()}finally{E$8(t);}}var Lo$3=class Lo{full;major;minor;patch;constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".");}},ld$2=new Lo$3("22.0.4");var Bo$3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",_$7=class _ extends Error{code;constructor(t,n){super(yr$5(t,n)),this.code=t;}};function Cy(e){return `NG0${Math.abs(e)}`}function yr$5(e,t){return `${Cy(e)}${t?": "+t:""}`}function P$g(e){for(let t in e)if(e[t]===P$g)return t;throw Error("")}function ud$2(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function vr$5(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(vr$5).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(`
4`);return r>=0?n.slice(0,r):n}function $o$2(e,t){return e?t?`${e} ${t}`:e:t||""}var _y=P$g({__forward_ref__:P$g});function Uo$3(e){return e.__forward_ref__=Uo$3,e}function K$f(e){return ra$2(e)?e():e}function ra$2(e){return typeof e=="function"&&e.hasOwnProperty(_y)&&e.__forward_ref__===Uo$3}function G$f(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function dd$2(e){return {providers:e.providers||[],imports:e.imports||[]}}function Ir$5(e){return Sy(e,qo$2)}function My(e){return Ir$5(e)!==null}function Sy(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Ny(e){let t=e?.[qo$2]??null;return t||null}function Gs$2(e){return e&&e.hasOwnProperty(Po$4)?e[Po$4]:null}var qo$2=P$g({\u0275prov:P$g}),Po$4=P$g({\u0275inj:P$g}),M$g=class M{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=G$f({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function oa$2(e){return e&&!!e.\u0275providers}var ia$3=P$g({\u0275cmp:P$g}),sa$3=P$g({\u0275dir:P$g}),aa$2=P$g({\u0275pipe:P$g}),ca$3=P$g({\u0275mod:P$g}),pr$4=P$g({\u0275fac:P$g}),Gt$8=P$g({__NG_ELEMENT_ID__:P$g}),id$2=P$g({__NG_ENV_ID__:P$g});function fd$2(e){return Go$2(e),e[ca$3]||null}function qe$8(e){return Go$2(e),e[ia$3]||null}function Wo$3(e){return Go$2(e),e[sa$3]||null}function la$3(e){return Go$2(e),e[aa$2]||null}function Go$2(e,t){if(e==null)throw new _$7(-919,false)}function Ne$a(e){return typeof e=="string"?e:e==null?"":String(e)}var pd$2=P$g({ngErrorCode:P$g}),xy=P$g({ngErrorMessage:P$g});P$g({ngTokenPath:P$g});function ua$4(e,t){return hd$2("",-200)}function zo$3(e,t){throw new _$7(-201,false)}function hd$2(e,t,n){let r=new _$7(t,e);return r[pd$2]=t,r[xy]=e,r}function Ry(e){return e[pd$2]}var zs$2;function gd$2(){return zs$2}function oe$a(e){let t=zs$2;return zs$2=e,t}function da$2(e,t,n){let r=Ir$5(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;zo$3();}var We$a=globalThis;var ky={},$t$8=ky,Oy="__NG_DI_FLAG__",Qs$2=class Qs{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=Ut$9(n)||0;try{return this.injector.get(t,r&8?null:$t$8,r)}catch(o){if(Mn$4(o))return o;throw o}}};function Ly(e,t=0){let n=ko$3();if(n===void 0)throw new _$7(-203,false);
vendor: 20,715 bytes, line 4
4if(n===null)return da$2(e,void 0,t);{let r=Py(t),o=n.retrieve(e,r);if(Mn$4(o)){if(r.optional)return null;throw o}return o}}function me$b(e,t=0){return (gd$2()||Ly)(K$f(e),t)}function D$l(e,t){return me$b(e,Ut$9(t))}function Ut$9(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Py(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Zs$2(e){let t=[];for(let n=0;n<e.length;n++){let r=K$f(e[n]);if(Array.isArray(r)){if(r.length===0)throw new _$7(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Fy(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(me$b(o,i));}else t.push(me$b(r));}return t}function Fy(e){return e[Oy]}function pt$8(e,t){let n=e.hasOwnProperty(pr$4);return n?e[pr$4]:null}function md$2(e,t,n){if(e.length!==t.length)return  false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return  false}return  true}function yd$2(e){return e.flat(Number.POSITIVE_INFINITY)}function Qo$3(e,t){e.forEach(n=>Array.isArray(n)?Qo$3(n,t):t(n));}function fa$3(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Er$5(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vd$2(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Id$2(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--;}e[t]=n,e[t+1]=r;}}function Zo$3(e,t,n){let r=xn$3(e,t);return r>=0?e[r|1]=n:(r=~r,Id$2(e,r,t,n)),r}function Yo$2(e,t){let n=xn$3(e,t);if(n>=0)return e[n|1]}function xn$3(e,t){return jy(e,t,1)}function jy(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var gt$a={},ee$d=[],zt$7=new M$g(""),Dr$5=new M$g("",-1),pa$3=new M$g(""),Nn$3=class Nn{get(t,n=$t$8){if(n===$t$8){let o=hd$2("",-201);throw o.name="\u0275NotFound",o}return n}};function Ko$3(e){return {\u0275providers:e}}function Ed$2(...e){return {\u0275providers:Jo$3(true,e),\u0275fromNgModule:true}}function Jo$3(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Qo$3(t,s=>{let a=s;Fo$4(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Dd$2(o,i),n}function Dd$2(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ha$3(o,i=>{t(i,r);});}}function Fo$4(e,t,n,r){if(e=K$f(e),!e)return  false;let o=null,i=Gs$2(e),s=!i&&qe$8(e);if(!i&&!s){let c=e.ngModule;if(i=Gs$2(c),i)o=c;else return  false}else {if(s&&!s.standalone)return  false;o=e;}let a=r.has(o);if(s){if(a)return  false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Fo$4(l,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;Qo$3(i.imports,u=>{Fo$4(u,t,n,r)&&(l||=[],l.push(u));}),l!==void 0&&Dd$2(l,t);}if(!a){let l=pt$8(o)||(()=>new o);t({provide:o,useFactory:l,deps:ee$d},o),t({provide:pa$3,useValue:o,multi:true},o),t({provide:zt$7,useValue:()=>me$b(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let l=e;ha$3(c,u=>{t(u,l);});}}else return  false;return o!==e&&e.providers!==void 0}function ha$3(e,t){for(let n of e)oa$2(n)&&(n=n.\u0275providers),Array.isArray(n)?ha$3(n,t):t(n);}var Vy=P$g({provide:String,useValue:P$g});function wd$2(e){return e!==null&&typeof e=="object"&&Vy in e}function Hy(e){return !!(e&&e.useExisting)}function By(e){return !!(e&&e.useFactory)}function qt$9(e){return typeof e=="function"}function Td$2(e){return !!e.useClass}var ga$2=new M$g(""),Oo$3={},sd$2={},Ws$2;function An$4(){return Ws$2===void 0&&(Ws$2=new Nn$3),Ws$2}var fe$d=class fe{},Wt$9=class Wt extends fe$d{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Ks$2(t,s=>this.processProvider(s)),this.records.set(Dr$5,Sn$5(void 0,this)),o.has("environment")&&this.records.set(fe$d,Sn$5(void 0,this));let i=this.records.get(ga$2);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(pa$3,ee$d,{self:true}));}retrieve(t,n){let r=Ut$9(n)||0;try{return this.get(t,$t$8,r)}catch(o){if(Mn$4(o))return o;throw o}}destroy(){fr$5(this),this._destroyed=true;let t=E$8(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),E$8(t);}}onDestroy(t){return fr$5(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){fr$5(this);let n=Ue$9(this),r=oe$a(void 0);try{return t()}finally{Ue$9(n),oe$a(r);}}get(t,n=$t$8,r){if(fr$5(this),t.hasOwnProperty(id$2))return t[id$2](this);let o=Ut$9(r),s=Ue$9(this),a=oe$a(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=Gy(t)&&Ir$5(t);u&&this.injectableDefInScope(u)?l=Sn$5(Ys$2(t),Oo$3):l=null,this.records.set(t,l);}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?An$4():this.parent;return n=o&8&&n===$t$8?null:n,c.get(t,n)}catch(c){let l=Ry(c);throw l===-200||l===-201?new _$7(l,null):c}finally{oe$a(a),Ue$9(s);}}resolveInjectorInitializers(){let t=E$8(null),n=Ue$9(this),r=oe$a(void 0);try{let i=this.get(zt$7,ee$d,{self:!0});for(let s of i)s();}finally{Ue$9(n),oe$a(r),E$8(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=K$f(t);let n=qt$9(t)?t:K$f(t&&t.provide),r=Uy(t);if(!qt$9(t)&&t.multi===true){let o=this.records.get(n);o||(o=Sn$5(void 0,Oo$3,true),o.factory=()=>Zs$2(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=E$8(null);try{if(n.value===sd$2)throw ua$4("");return n.value===Oo$3&&(n.value=sd$2,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Wy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{E$8(o);}}injectableDefInScope(t){if(!t.providedIn)return  false;let n=K$f(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Ys$2(e){let t=Ir$5(e),n=t!==null?t.factory:pt$8(e);if(n!==null)return n;if(e instanceof M$g)throw new _$7(-204,false);if(e instanceof Function)return $y(e);throw new _$7(-204,false)}function $y(e){if(e.length>0)throw new _$7(-204,false);let n=Ny(e);return n!==null?()=>n.factory(e):()=>new e}function Uy(e){if(wd$2(e))return Sn$5(void 0,e.useValue);{let t=ma$2(e);return Sn$5(t,Oo$3)}}function ma$2(e,t,n){let r;if(qt$9(e)){let o=K$f(e);return pt$8(o)||Ys$2(o)}else if(wd$2(e))r=()=>K$f(e.useValue);else if(By(e))r=()=>e.useFactory(...Zs$2(e.deps||[]));else if(Hy(e))r=(o,i)=>me$b(K$f(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=K$f(e&&(e.useClass||e.provide));if(qy(e))r=()=>new o(...Zs$2(e.deps));else return pt$8(o)||Ys$2(o)}return r}function fr$5(e){if(e.destroyed)throw new _$7(-205,false)}function Sn$5(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function qy(e){return !!e.deps}function Wy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Gy(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Ks$2(e,t){for(let n of e)Array.isArray(n)?Ks$2(n,t):n&&oa$2(n)?Ks$2(n.\u0275providers,t):t(n);}function Xo$3(e,t){let n;e instanceof Wt$9?(fr$5(e),n=e):n=new Qs$2(e);let o=Ue$9(n),i=oe$a(void 0);try{return t()}finally{Ue$9(o),oe$a(i);}}function bd$2(){return gd$2()!==void 0||ko$3()!=null}var xe$9=0,v$d=1,b$b=2,z$9=3,ve$9=4,te$f=5,Qt$9=6,Rn$4=7,U$d=8,H$c=9,Ae$9=10,k$e=11,kn$2=12,ya$3=13,mt$9=14,ne$f=15,yt$9=16,Zt$a=17,Ge$b=18,Re$a=19,va$2=20,nt$d=21,ei$6=22,ht$7=23,pe$a=24,Yt$a=25,Ie$8=26,R$g=27,Cd$2=1,vt$a=6,It$a=7,wr$5=8,Kt$8=9,j$g=10;function it$9(e){return Array.isArray(e)&&typeof e[Cd$2]=="object"}function Ee$6(e){return Array.isArray(e)&&e[Cd$2]===true}function Ia$1(e){return (e.flags&4)!==0}function ze$a(e){return e.componentOffset>-1}function On$3(e){return (e.flags&1)===1}function Qe$a(e){return !!e.template}function Ln$3(e){return (e[b$b]&512)!==0}function Ze$9(e){return (e[b$b]&256)===256}var Ea$1="svg",_d$2="math";function De$a(e){for(;Array.isArray(e);)e=e[xe$9];return e}function ti$6(e,t){return De$a(t[e])}function ie$i(e,t){return De$a(t[e.index])}function Pn$3(e,t){return e.data[t]}function Et$9(e,t){return e[t]}function Tr$5(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function we$a(e,t){let n=t[e];return it$9(n)?n:n[xe$9]}function Md$2(e){return (e[b$b]&4)===4}function ni$5(e){return (e[b$b]&128)===128}function Sd$2(e){return Ee$6(e[z$9])}function he$b(e,t){return t==null?null:e[t]}function Da$2(e){e[Zt$a]=0;}function ri$6(e){e[b$b]&1024||(e[b$b]|=1024,ni$5(e)&&Jt$9(e));}function wa$1(e,t){for(;e>0;)t=t[mt$9],e--;return t}function br$4(e){return !!(e[b$b]&9216||e[pe$a]?.dirty)}function oi$5(e){e[Ae$9].changeDetectionScheduler?.notify(8),e[b$b]&64&&(e[b$b]|=1024),br$4(e)&&Jt$9(e);}function Jt$9(e){e[Ae$9].changeDetectionScheduler?.notify(0);let t=rt$8(e);for(;t!==null&&!(t[b$b]&8192||(t[b$b]|=8192,!ni$5(t)));)t=rt$8(t);}function Fn$4(e,t){if(Ze$9(e))throw new _$7(911,false);e[nt$d]===null&&(e[nt$d]=[]),e[nt$d].push(t);}function ii$6(e,t){if(e[nt$d]===null)return;let n=e[nt$d].indexOf(t);n!==-1&&e[nt$d].splice(n,1);}function rt$8(e){let t=e[z$9];return Ee$6(t)?t[z$9]:t}function Ta$2(e){return e[Rn$4]??=[]}function ba$2(e){return e.cleanup??=[]}function Nd$2(e,t,n,r){let o=Ta$2(t);o.push(n),e.firstCreatePass&&ba$2(e).push(r,o.length-1);}var S$8={lFrame:Bd$2(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Js$2=false;function xd$2(){return S$8.lFrame.elementDepthCount}function Ad$2(){S$8.lFrame.elementDepthCount++;}function Ca$2(){S$8.lFrame.elementDepthCount--;}function si$6(){return S$8.bindingsEnabled}function _a$2(){return S$8.skipHydrationRootTNode!==null}function Ma$1(e){return S$8.skipHydrationRootTNode===e}function Sa$2(){S$8.skipHydrationRootTNode=null;}function g$d(){return S$8.lFrame.lView}function O$g(){return S$8.lFrame.tView}function Rd$2(e){return S$8.lFrame.contextLView=e,e[U$d]}function kd$2(e){return S$8.lFrame.contextLView=null,e}function F$d(){let e=Na$2();for(;e!==null&&e.type===64;)e=e.parent;return e}function Na$2(){return S$8.lFrame.currentTNode}function Od$2(){let e=S$8.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Xt$a(e,t){let n=S$8.lFrame;n.currentTNode=e,n.isParent=t;}function xa$2(){return S$8.lFrame.isParent}function Aa$1(){S$8.lFrame.isParent=false;}function Ra$2(){return S$8.lFrame.contextLView}function ka$2(){return Js$2}function hr$5(e){let t=Js$2;return Js$2=e,t}function ke$a(){let e=S$8.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Oa$2(){return S$8.lFrame.bindingIndex}function Ld$2(e){return S$8.lFrame.bindingIndex=e}function Oe$a(){return S$8.lFrame.bindingIndex++}function Cr$5(e){let t=S$8.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Pd$2(){return S$8.lFrame.inI18n}function Fd$2(e,t){let n=S$8.lFrame;n.bindingIndex=n.bindingRootIndex=e,ai$6(t);}function jd$2(){return S$8.lFrame.currentDirectiveIndex}function ai$6(e){S$8.lFrame.currentDirectiveIndex=e;}function Vd$2(e){let t=S$8.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ci$6(){return S$8.lFrame.currentQueryIndex}function _r$5(e){S$8.lFrame.currentQueryIndex=e;}function zy(e){let t=e[v$d];return t.type===2?t.declTNode:t.type===1?e[te$f]:null}function La$2(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=zy(i),o===null||(i=i[mt$9],o.type&10))break;if(o===null)return  false;t=o,e=i;}let r=S$8.lFrame=Hd$2();return r.currentTNode=t,r.lView=e,true}function li$6(e){let t=Hd$2(),n=e[v$d];S$8.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Hd$2(){let e=S$8.lFrame,t=e===null?null:e.child;return t===null?Bd$2(e):t}function Bd$2(e){let t={currentTNode:null,isParent:true,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:false};return e!==null&&(e.child=t),t}function $d$2(){let e=S$8.lFrame;return S$8.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Pa$1=$d$2;function ui$4(){let e=$d$2();e.isParent=true,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 Ud$2(e){return (S$8.lFrame.contextLView=wa$1(e,S$8.lFrame.contextLView))[U$d]}function Te$b(){return S$8.lFrame.selectedIndex}function Dt$b(e){S$8.lFrame.selectedIndex=e;}function wt$b(){let e=S$8.lFrame;return Pn$3(e.tView,e.selectedIndex)}function qd$2(){S$8.lFrame.currentNamespace=Ea$1;}function Wd$2(){Qy();}function Qy(){S$8.lFrame.currentNamespace=null;}function Fa$2(){return S$8.lFrame.currentNamespace}var Gd$2=true;function di$5(){return Gd$2}function Mr$5(e){Gd$2=e;}function ja$2(){let e,t;return {promise:new Promise((r,o)=>{e=r,t=o;}),resolve:e,reject:t}}function Xs$2(e,t=null,n=null,r){let o=Va$2(e,t,n);return o.resolveInjectorInitializers(),o}function Va$2(e,t=null,n=null,r,o=new Set){let i=[n||ee$d,Ed$2(e)];return new Wt$9(i,t||An$4(),null,o)}var ye$7=class e{static THROW_IF_NOT_FOUND=$t$8;static NULL=new Nn$3;static create(t,n){if(Array.isArray(t))return Xs$2({name:""},n,t);{let r=t.name??"";return Xs$2({name:r},t.parent,t.providers)}}static \u0275prov=G$f({token:e,providedIn:"any",factory:()=>me$b(Dr$5)});static __NG_ELEMENT_ID__=-1},jn$2=new M$g(""),st$b=(()=>{class e{static __NG_ELEMENT_ID__=Zy;static __NG_ENV_ID__=n=>n}return e})(),jo$3=class jo extends st$b{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return Ze$9(this._lView)}onDestroy(t){let n=this._lView;return Fn$4(n,t),()=>ii$6(n,t)}};function Zy(){return new jo$3(g$d())}var Ha$2=false,zd$2=new M$g(""),Tt$9=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new rr$4(false);debugTaskTracker=D$l(zd$2,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new x$g(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=G$f({token:e,providedIn:"root",factory:()=>new e})}return e})(),ea$3=class ea extends de$c{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,bd$2()&&(this.destroyRef=D$l(st$b,{optional:true})??void 0,this.pendingTasks=D$l(Tt$9,{optional:true})??void 0);}emit(t){let n=E$8(null);try{super.next(t);}finally{E$8(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;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 t instanceof W$f&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},tt$b=ea$3;function Vo$2(...e){}function Ba$1(e){let t,n;function r(){e=Vo$2;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch(o){}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function Qd$2(e){return queueMicrotask(()=>e()),()=>{e=Vo$2;}}var $a$2="isAngularZone",gr$4=$a$2+"_ID",Yy=0,$$b=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new tt$b(false);onMicrotaskEmpty=new tt$b(false);onStable=new tt$b(false);onError=new tt$b(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Ha$2}=t;if(typeof Zone>"u")throw new _$7(908,false);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=false,s.scheduleInRootZone=i,Xy(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get($a$2)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new _$7(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _$7(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Ky,Vo$2,Vo$2);try{return i.runTask(s,n,r)}finally{i.cancelTask(s);}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Ky={};function Ua$1(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=true;}}}function Jy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Ba$1(()=>{e.callbackScheduled=false,ta$3(e),e.isCheckStableRunning=true,Ua$1(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),ta$3(e);}function Xy(e){let t=()=>{Jy(e);},n=Yy++;e._inner=e._inner.fork({name:"angular",properties:{[$a$2]:true,[gr$4]:n,[gr$4+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(ev$1(c))return r.invokeTask(i,s,a,c);try{return ad$2(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),cd$2(e);}},onInvoke:(r,o,i,s,a,c,l)=>{try{return ad$2(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!tv$1(c)&&t(),cd$2(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ta$3(e),Ua$1(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function ta$3(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function ad$2(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function cd$2(e){e._nesting--,Ua$1(e);}var mr$4=class mr{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new tt$b;onMicrotaskEmpty=new tt$b;onStable=new tt$b;onError=new tt$b;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function ev$1(e){return Zd$2(e,"__ignore_ng_zone__")}function tv$1(e){return Zd$2(e,"__scheduler_tick__")}function Zd$2(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var ot$a=class ot{_console=console;handleError(t){this._console.error("ERROR",t);}},bt$b=new M$g("",{factory:()=>{let e=D$l($$b),t=D$l(fe$d),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(ot$a),n.handleError(r));});}}}),Yd$2={provide:zt$7,useValue:()=>{D$l(ot$a,{optional:true});},multi:true};function fi$4(e,t){let [n,r,o]=Hs$2(e,t?.equal),i=n;i[V$f];return i.set=r,i.update=o,i.asReadonly=Sr$5.bind(i),i}function Sr$5(){let e=this[V$f];if(e.readonlyFn===void 0){let t=()=>this();t[V$f]=e,e.readonlyFn=t;}return e.readonlyFn}var Kd$2=new M$g("",{factory:()=>nv$1}),nv$1="ng";var Jd$2=new M$g(""),rv$1=new M$g("",{providedIn:"platform",factory:()=>"unknown"}),ov$1=new M$g(""),iv$1=new M$g("",{factory:()=>D$l(jn$2).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Xd$2={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:false,disableImageLazyLoadWarning:false},sv$1=new M$g("",{factory:()=>Xd$2});var Vn$3=(()=>{class e{view;node;
4constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=av$1}return e})();function av$1(){return new Vn$3(g$d(),F$d())}var Se$d=class Se{},Hn$2=new M$g("",{factory:()=>true});var pi$5=new M$g(""),hi$5=(()=>{class e{static \u0275prov=G$f({token:e,providedIn:"root",factory:()=>new na$3})}return e})(),na$3=class na{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},Ho$3=class Ho{[V$f];constructor(t){this[V$f]=t;}destroy(){this[V$f].destroy();}};function ef$2(e,t){let n=t?.injector??D$l(ye$7),r=t?.manualCleanup!==true?n.get(st$b):null,o,i=n.get(Vn$3,null,{optional:true}),s=n.get(Se$d);return i!==null?(o=uv$1(i.view,s,e),r instanceof jo$3&&r._lView===i.view&&(r=null)):o=dv$1(e,n.get(hi$5),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ho$3(o)}var tf$2=E$9(D$m({},Bs$2),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=hr$5(false);try{$s$2(this);}finally{hr$5(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=E$8(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],E$8(e);}}}),cv$1=E$9(D$m({},tf$2),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(et$d(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),lv$1=E$9(D$m({},tf$2),{consumerMarkedDirty(){this.view[b$b]|=8192,Jt$9(this.view),this.notifier.notify(13);},destroy(){if(et$d(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[ht$7]?.delete(this);}});function uv$1(e,t,n){let r=Object.create(lv$1);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=nf$2(r,n),e[ht$7]??=new Set,e[ht$7].add(r),r.consumerMarkedDirty(r),r}function dv$1(e,t,n){let r=Object.create(cv$1);return r.fn=nf$2(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function nf$2(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function gi$5(e){return typeof e=="function"&&e[V$f]!==void 0}function mi$5(e){return gi$5(e)&&typeof e.set=="function"}var yi$4=(()=>{class e{internalPendingTasks=D$l(Tt$9);scheduler=D$l(Se$d);errorHandler=D$l(bt$b);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=G$f({token:e,providedIn:"root",factory:()=>new e})}return e})();function Wr$3(e){return {toString:e}.toString()}var A$d=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(A$d||{}),xi$3=class xi{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function ep$1(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var tp$1=null,Ev$1=(()=>{tp$1=rf$2;let e=()=>rf$2;return e.ngInherit=true,e})();function Dv$1(){return tp$1}function rf$2(e){return e.type.prototype.ngOnChanges&&(e.setInput=Tv),wv$1}function wv$1(){let e=np$1(this),t=e?.current;if(t){let n=e.previous;if(n===gt$a)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function Tv(e,t,n,r,o){let i=this.declaredInputs[r],s=np$1(e)||bv$1(e,{previous:gt$a,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new xi$3(l&&l.currentValue,n,c===gt$a),ep$1(e,t,o,n);}var rc$1="__ngSimpleChanges__";function np$1(e){return Object.hasOwn(e,rc$1)&&e[rc$1]||null}function bv$1(e,t){return e[rc$1]=t}var of$2=[];var L$a=function(e,t=null,n){for(let r=0;r<of$2.length;r++){let o=of$2[r];o(e,t,n);}};
vendor: 4,509 bytes, line 4
4function Cv$1(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Dv$1()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s);}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i));}function rp$1(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u);}}function Ti$3(e,t,n){op$1(e,t,3,n);}function bi$3(e,t,n,r){(e[b$b]&3)===n&&op$1(e,t,n,r);}function qa$2(e,t){let n=e[b$b];(n&3)===t&&(n&=16383,n+=1,e[b$b]=n);}function op$1(e,t,n,r){let o=r!==void 0?e[Zt$a]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Zt$a]+=65536),(a<i||i==-1)&&(_v$1(e,n,t,c),e[Zt$a]=(e[Zt$a]&4294901760)+c+2),c++;}function sf$2(e,t){L$a(A$d.LifecycleHookStart,e,t);let n=E$8(null);try{t.call(e);}finally{E$8(n),L$a(A$d.LifecycleHookEnd,e,t);}}function _v$1(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[b$b]>>14<e[Zt$a]>>16&&(e[b$b]&3)===t&&(e[b$b]+=16384,sf$2(a,i)):sf$2(a,i);}var $n$2=-1,on$4=class on{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function Mv$1(e){return (e.flags&8)!==0}function Sv$1(e){return (e.flags&16)!==0}function Nv$1(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i);}else {let i=o,s=n[++r];xv$1(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function ip$1(e){return e===3||e===4||e===6}function xv$1(e){return e.charCodeAt(0)===64}function Un$3(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?af$2(e,n,o,null,t[++r]):af$2(e,n,o,null,null));}}return e}function af$2(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++;}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o);}function sp$1(e){return e!==$n$2}function Ai$3(e){return e&32767}function Av$1(e){return e>>16}function Ri$3(e,t){let n=Av$1(e),r=t;for(;n>0;)r=r[mt$9],n--;return r}var oc$1=true;function ki$3(e){let t=oc$1;return oc$1=e,t}var Rv$1=256,ap$1=Rv$1-1,cp$1=5,kv$1=0,Ye$9={};function Ov(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Gt$8)&&(r=n[Gt$8]),r==null&&(r=n[Gt$8]=kv$1++);let o=r&ap$1,i=1<<o;t.data[e+(o>>cp$1)]|=i;}function Oi$3(e,t){let n=lp$1(e,t);if(n!==-1)return n;let r=t[v$d];r.firstCreatePass&&(e.injectorIndex=t.length,Wa$2(r.data,e),Wa$2(t,null),Wa$2(r.blueprint,null));let o=Vc$1(e,t),i=e.injectorIndex;if(sp$1(o)){let s=Ai$3(o),a=Ri$3(o,t),c=a[v$d].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l];}return t[i+8]=o,i}function Wa$2(e,t){e.push(0,0,0,0,0,0,0,0,t);}function lp$1(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Vc$1(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=hp$1(o),r===null)return $n$2;if(n++,o=o[mt$9],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return $n$2}function ic$1(e,t,n){Ov(e,t,n);}function Lv$1(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(ip$1(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else {if(i===t)return n[o+1];o=o+2;}}}return null}function up$1(e,t,n){if(n&8||e!==void 0)return e;zo$3();}function dp$1(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[H$c],i=oe$a(void 0);try{return o?o.get(t,r,n&8):da$2(t,r,n&8)}finally{oe$a(i);}}return up$1(r,t,n)}function fp$2(e,t,n,r=0,o){if(e!==null){if(t[b$b]&2048&&!(r&2)){let s=Hv$1(e,t,n,r,Ye$9);
4if(s!==Ye$9)return s}let i=pp$1(e,t,n,r,Ye$9);if(i!==Ye$9)return i}return dp$1(t,n,r,o)}function pp$1(e,t,n,r,o){let i=Fv$1(n);if(typeof i=="function"){if(!La$2(t,e,r))return r&1?up$1(o,n,r):dp$1(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))zo$3(n);else return s}finally{Pa$1();}}else if(typeof i=="number"){let s=null,a=lp$1(e,t),c=$n$2,l=r&1?t[ne$f][te$f]:null;for((a===-1||r&4)&&(c=a===-1?Vc$1(e,t):t[a+8],c===$n$2||!lf$2(r,false)?a=-1:(s=t[v$d],a=Ai$3(c),t=Ri$3(c,t)));a!==-1;){let u=t[v$d];if(cf$2(i,a,u.data)){let d=Pv$1(a,t,n,s,r,l);if(d!==Ye$9)return d}c=t[a+8],c!==$n$2&&lf$2(r,t[v$d].data[a+8]===l)&&cf$2(i,a,t)?(s=u,a=Ai$3(c),t=Ri$3(c,t)):a=-1;}}return o}function Pv$1(e,t,n,r,o,i){let s=t[v$d],a=s.data[e+8],c=r==null?ze$a(a)&&oc$1:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Ci$4(a,s,n,c,l);return u!==null?kr$4(t,s,u,a,o):Ye$9}function Ci$4(e,t,n,r,o){let i=e.providerIndexes,s=t.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&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Qe$a(f)&&f.type===n)return c}return null}function kr$4(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof on$4){let a=i;if(a.resolving)throw ua$4();let c=ki$3(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?oe$a(a.injectImpl):null;La$2(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Cv$1(n,s[n],t);}finally{d!==null&&oe$a(d),ki$3(c),a.resolving=false,Pa$1();}}return i}function Fv$1(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Gt$8)?e[Gt$8]:void 0;return typeof t=="number"?t>=0?t&ap$1:jv$1:t}function cf$2(e,t,n){let r=1<<e;return !!(n[t+(e>>cp$1)]&r)}function lf$2(e,t){return !(e&2)&&!(e&1&&t)}var Mt$9=class Mt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return fp$2(this._tNode,this._lView,t,Ut$9(r),n)}};function jv$1(){return new Mt$9(F$d(),g$d())}function Vv$1(e){return Wr$3(()=>{let t=e.prototype.constructor,n=t[pr$4]||sc$1(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[pr$4]||sc$1(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function sc$1(e){return ra$2(e)?()=>{let t=sc$1(K$f(e));return t&&t()}:pt$8(e)}function Hv$1(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b$b]&2048&&!Ln$3(s);){let a=pp$1(i,s,n,r|2,Ye$9);if(a!==Ye$9)return a;let c=i.parent;if(!c){let l=s[va$2];if(l){let u=l.get(n,Ye$9,r&-5);if(u!==Ye$9)return u}c=hp$1(s),s=s[mt$9];}i=c;}return o}function hp$1(e){let t=e[v$d],n=t.type;return n===2?t.declTNode:n===1?e[te$f]:null}function gp$1(e){return Lv$1(F$d(),e)}var Bv$1=()=>(typeof requestIdleCallback<"u"?requestIdleCallback:e=>setTimeout(e)).bind(globalThis),$v$1=()=>(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis),mp$1=new M$g("",{factory:()=>new ac$1});var ac$1=class ac{requestIdleCallback=Bv$1();cancelIdleCallback=$v$1();requestOnIdle(t,n){return this.requestIdleCallback(t,n)}cancelOnIdle(t){return this.cancelIdleCallback(t)}};function ct$9(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function Uv$1(){return Qn$2(F$d(),g$d())}function Qn$2(e,t){return new Gr$4(ie$i(e,t))}var Gr$4=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=Uv$1}return e})();function yp$2(e){return e instanceof Gr$4?e.nativeElement:e}function qv$1(){return this._results[Symbol.iterator]()}var Li$3=class Li{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new de$c}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=yd$2(t);
4(this._changesDetected=!md$2(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=qv$1};function vp$2(e){return (e.flags&128)===128}var Hc$1=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Hc$1||{}),Ip$2=new Map,Wv$1=0;function Gv$1(){return Wv$1++}function zv$1(e){Ip$2.set(e[Re$a],e);}function cc$1(e){Ip$2.delete(e[Re$a]);}var uf$2="__ngContext__";function qn$2(e,t){it$9(t)?(e[uf$2]=t[Re$a],zv$1(t)):e[uf$2]=t;}function Ep$2(e){return wp$2(e[kn$2])}function Dp$1(e){return wp$2(e[ve$9])}function wp$2(e){for(;e!==null&&!Ee$6(e);)e=e[ve$9];return e}var lc$1;function Qv$1(e){lc$1=e;}function Bc$1(){if(lc$1!==void 0)return lc$1;if(typeof document<"u")return document;throw new _$7(210,false)}var Tp$2="r";var $c$1="di",Uc$1="s";var Zv$1=new M$g(""),bp$2=false,Cp$2=new M$g("",{factory:()=>bp$2});var _p$2=new M$g("");var Yv$1=new M$g("");var Ct$9=new WeakMap;var vi$3=new Map,uc$1=class uc{callbacks=new Set;listener=()=>{for(let t of this.callbacks)t();}};function Kv$1(e){let t=Mp$2(e);return new IntersectionObserver(n=>{for(let r of n)r.isIntersecting&&Ct$9.has(r.target)&&Ct$9.get(r.target)?.get(t)?.listener();},e)}function Jv$1(e,t,n,r){let o=Mp$2(r),i=Ct$9.get(e)?.get(o);vi$3.has(o)||vi$3.set(o,{observer:n(r),count:0});let s=vi$3.get(o);if(!i){i=new uc$1,s.observer.observe(e);let a=Ct$9.get(e);a?a.set(o,i):(a=new Map,Ct$9.set(e,a)),a.set(o,i),s.count++;}return i.callbacks.add(t),()=>{if(Ct$9.get(e)?.has(o)){if(i.callbacks.delete(t),i.callbacks.size===0){s.observer.unobserve(e),s.count--;let a=Ct$9.get(e);a&&(a.delete(o),a.size===0&&Ct$9.delete(e));}s.count===0&&(s.observer.disconnect(),vi$3.delete(o));}}}function Mp$2(e){return e?`${e.rootMargin}/${typeof e.threshold=="number"?e.threshold:e.threshold?.join(`
5`)}`:""}var df$2=new WeakMap;function Xv$1(e,t){if(e==null||typeof e!="object")return;let n=df$2.get(e);n||(n=new WeakSet,df$2.set(e,n)),n.add(t);}var Sp$2=new M$g("");function Ki$3(e){return (e.flags&32)===32}var nI=()=>null;function Np$2(e,t,n=false){return nI()}function qc$1(e){return e.get(_p$2,false,{optional:true})}function xp$2(e,t){let n=e.contentQueries;if(n!==null){let r=E$8(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];_r$5(i),a.contentQueries(2,t[s],s);}}}finally{E$8(r);}}}function dc$1(e,t,n){_r$5(0);let r=E$8(null);try{t(e,n);}finally{E$8(r);}}function Wc$1(e,t,n){if(Ia$1(t)){let r=E$8(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{E$8(r);}}}var sn$4=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(sn$4||{});var Ii$2;function Ap$2(){if(Ii$2===void 0&&(Ii$2=null,We$a.trustedTypes))try{Ii$2=We$a.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Ii$2}function Ji$4(e){return Ap$2()?.createHTML(e)||e}function rI(e){return Ap$2()?.createScriptURL(e)||e}var Ei$3;function Rp$2(){if(Ei$3===void 0&&(Ei$3=null,We$a.trustedTypes))try{Ei$3=We$a.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Ei$3}function ff$2(e){return Rp$2()?.createHTML(e)||e}function pf$2(e){return Rp$2()?.createScriptURL(e)||e}var at$9=class at{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Bo$3})`}},fc$1=class fc extends at$9{getTypeName(){return "HTML"}},pc$1=class pc extends at$9{getTypeName(){return "Style"}},hc$1=class hc extends at$9{getTypeName(){return "Script"}},gc$1=class gc extends at$9{getTypeName(){return "URL"}},mc$1=class mc extends at$9{getTypeName(){return "ResourceURL"}};function Zn$2(e){return e instanceof at$9?e.changingThisBreaksApplicationSecurity:e}function Xi$3(e,t){let n=kp$2(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return  true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Bo$3})`)}return n===t}function kp$2(e){return e instanceof at$9&&e.getTypeName()||null}function oI(e){return new fc$1(e)}function iI(e){return new pc$1(e)}function sI(e){return new hc$1(e)}function aI(e){return new gc$1(e)}function cI(e){return new mc$1(e)}
5function lI(e){let t=new vc$1(e);return uI()?new yc$1(t):t}var yc$1=class yc{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Ji$4(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},vc$1=class vc{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Ji$4(t),n}};function uI(){try{return !!new window.DOMParser().parseFromString(Ji$4(""),"text/html")}catch(e){return  false}}var dI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gc$1(e){return e=String(e),e.match(dI)?e:"unsafe:"+e}function lt$8(e){let t={};for(let n of e.split(","))t[n]=true;return t}function zr$4(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Op$1=lt$8("area,br,col,hr,img,wbr"),Lp$2=lt$8("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pp$1=lt$8("rp,rt"),fI=zr$4(Pp$1,Lp$2),pI=zr$4(Lp$2,lt$8("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),hI=zr$4(Pp$1,lt$8("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),hf$2=zr$4(Op$1,pI,hI,fI),Fp$2=lt$8("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),gI=lt$8("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),mI=lt$8("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),yI=zr$4(Fp$2,gI,mI),vI=lt$8("script,style,template"),Ic$1=class Ic{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=DI(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=EI(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=gf$2(t).toLowerCase();if(!hf$2.hasOwnProperty(n))return this.sanitizedSomething=true,!vI.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!yI.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Fp$2[a]&&(c=Gc$1(c)),this.buf.push(" ",s,'="',mf$2(c),'"');}return this.buf.push(">"),true}endElement(t){let n=gf$2(t).toLowerCase();hf$2.hasOwnProperty(n)&&!Op$1.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(mf$2(t));}};function II(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function EI(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw jp$2(t);return t}function DI(e){let t=e.firstChild;if(t&&II(e,t))throw jp$2(t);return t}function gf$2(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function jp$2(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var wI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,TI=/([^\#-~ |!])/g;function mf$2(e){return e.replace(/&/g,"&amp;").replace(wI,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(TI,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Di$3;function Vp$2(e,t){let n=null;try{Di$3=Di$3||lI(e);let r=t?String(t):"";n=Di$3.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Di$3.getInertBodyElement(r);}while(r!==i);let a=new Ic$1().sanitizeChildren(yf$2(n)||n);return Ji$4(a)}finally{if(n){let r=yf$2(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function yf$2(e){return "content"in e&&bI(e)?e.content:null}
5function bI(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var CI=/^>|^->|<!--|-->|--!>|<!-$/g,_I=/(<|>)/g,MI="\u200B$1\u200B";function SI(e){return e.replace(CI,t=>t.replace(_I,MI))}function NI(e,t){return e.createText(t)}function xI(e,t,n){e.setValue(t,n);}function AI(e,t){return e.createComment(SI(t))}function Hp$2(e,t,n){return e.createElement(t,n)}function Pi$3(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Bp$2(e,t,n){e.appendChild(t,n);}function vf$2(e,t,n,r,o){r!==null?Pi$3(e,t,n,r,o):Bp$2(e,t,n);}function $p$2(e,t,n,r){e.removeChild(null,t,n,r);}function RI(e,t,n){e.setAttribute(t,"style",n);}function kI(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Up$2(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Nv$1(e,t,r),o!==null&&kI(e,t,o),i!==null&&RI(e,t,i);}var Qr$4=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(Qr$4||{});function OI(e){let t=zc$1();return t?ff$2(t.sanitize(Qr$4.HTML,e)||""):Xi$3(e,"HTML")?ff$2(Zn$2(e)):Vp$2(Bc$1(),Ne$a(e))}function qp$2(e){let t=zc$1();return t?t.sanitize(Qr$4.URL,e)||"":Xi$3(e,"URL")?Zn$2(e):Gc$1(Ne$a(e))}function Wp$2(e){let t=zc$1();if(t)return pf$2(t.sanitize(Qr$4.RESOURCE_URL,e)||"");if(Xi$3(e,"ResourceURL"))return pf$2(Zn$2(e));throw new _$7(904,false)}function LI(e){return rI(e[0])}var PI={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function FI(e,t){return PI[e.toLowerCase()]?.[t.toLowerCase()]===true?Wp$2:qp$2}function jI(e,t,n){return FI(t,n)(e)}function zc$1(){let e=g$d();return e&&e[Ae$9].sanitizer}function VI(e){return e.ownerDocument.defaultView}function HI(e){return e instanceof Function?e():e}function BI(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1;}}var Gp$2="ng-template";function $I(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&BI(t[o+1].toLowerCase(),n,0)!==-1)return  true}else if(Qc$1(e))return  false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return  true}return  false}function Qc$1(e){return e.type===4&&e.value!==Gp$2}function UI(e,t,n){let r=e.type===4&&!n?Gp$2:e.value;return t===r}function qI(e,t,n){let r=4,o=e.attrs,i=o!==null?zI(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Le$a(r)&&!Le$a(c))return  false;if(s&&Le$a(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!UI(e,c,n)||c===""&&t.length===1){if(Le$a(r))return  false;s=true;}}else if(r&8){if(o===null||!$I(e,o,c,n)){if(Le$a(r))return  false;s=true;}}else {let l=t[++a],u=WI(c,o,Qc$1(e),n);if(u===-1){if(Le$a(r))return  false;s=true;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Le$a(r))return  false;s=true;}}}}return Le$a(r)||s}function Le$a(e){return (e&1)===0}function WI(e,t,n,r){if(t===null)return  -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else {if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2;}return  -1}else return QI(t,e)}function zp$2(e,t,n=false){for(let r=0;r<t.length;r++)if(qI(e,t[r],n))return  true;return  false}function GI(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function zI(e){for(let t=0;t<e.length;t++){let n=e[t];if(ip$1(n))return t}return e.length}function QI(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return  -1;if(r===t)return n;n++;}return  -1}function ZI(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return  true}}return  false}function If$2(e,t){return e?":not("+t.trim()+")":t}function YI(e){let t=e[0],n=1,r=2,o="",i=false;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]";}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Le$a(s)&&(t+=If$2(i,o),o=""),r=s,i=i||!Le$a(r);n++;}return o!==""&&(t+=If$2(i,o)),t}function KI(e){return e.map(YI).join(",")}function JI(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!Le$a(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var Y$f={},Fi$2=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Fi$2||{}),XI;function Zc$1(e,t){return XI(e,t)}var Qp$2=new M$g("",{factory:()=>false});var eE=false,Zr$4=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Zp$2(e){return e[H$c].get(Qp$2,eE)}function tE(e,t,n){let r=Wn$2.get(e);if(r){for(let o of t)r.classList.push(o);for(let o of n)r.cleanupFns.push(o);}else Wn$2.set(e,{classList:t,cleanupFns:n});}function Yc$1(e){let t=Wn$2.get(e);if(t){for(let n of t.cleanupFns)n();Wn$2.delete(e);}tn$4.delete(e);}var Wn$2=new WeakMap,tn$4=new WeakMap,Or$4=new WeakMap;function Yp$2(e){return e?e[mt$9]??e:null}var xr$4=new WeakSet;function Ef$2(e,t){let n=Or$4.get(e);if(n&&n.length>0){let r=n.findIndex(o=>o.el===t);r>-1&&n.splice(r,1);}n?.length===0&&Or$4.delete(e);}function nE(e,t,n){let r=Or$4.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Yp$2(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],u=c.parentNode;c===t?(r.splice(a,1),xr$4.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):u&&o&&u!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function Kp$2(e,t,n){let r=Yp$2(n),o=Or$4.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Or$4.set(e,[{el:t,declarationView:r}]);}function Df$2(e){let t=e[Ie$8]??={};return t.enter??=new Map}function es$1(e){let t=e[Ie$8]??={};return t.leave??=new Map}function Jp$2(e){let t=typeof e=="function"?e():e,n=Array.isArray(t)?t:null;return typeof t=="string"&&(n=t.trim().split(/\s+/).filter(r=>r)),n}function rE(e,t){if(!Zr$4)return;let n=Wn$2.get(e);if(n&&n.classList.length>0&&oE(e,n.classList))for(let r of n.classList)t.removeClass(e,r);Yc$1(e);}function oE(e,t){for(let n of t)if(e.classList.contains(n))return  true;return  false}function Lr$4(e){return e.composedPath?e.composedPath()[0]:e.target}function Kc$1(e,t){let n=tn$4.get(t);return n===void 0?true:t===Lr$4(e)&&(n.animationName!==void 0&&e.animationName===n.animationName||n.propertyName!==void 0&&(n.propertyName==="all"||e.propertyName===n.propertyName))}function Xp$2(e,t,n){let r=e.get(t.index)??{animateFns:[]};r.animateFns.push(n),e.set(t.index,r);}function wf$2(e,t){if(e)for(let n of e)n();for(let n of t)n();}function Tf$2(e,t){let n=es$1(e).get(t.index);n&&(n.resolvers=void 0);}function ji$3(e){if(!e)return 0;let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function en$5(e,t){return e.getPropertyValue(t).split(",").map(r=>r.trim())}function iE(e){let t=en$5(e,"transition-property"),n=en$5(e,"transition-duration"),r=en$5(e,"transition-delay"),o={propertyName:"",duration:0,animationName:void 0};for(let i=0;i<t.length;i++){let s=ji$3(r[i])+ji$3(n[i]);s>o.duration&&(o.propertyName=t[i],o.duration=s);}return o}function sE(e){let t=en$5(e,"animation-name"),n=en$5(e,"animation-delay"),r=en$5(e,"animation-duration"),o=en$5(e,"animation-iteration-count"),i={animationName:"",propertyName:void 0,duration:0};for(let s=0;s<t.length;s++){let a=ji$3(n[s])+ji$3(r[s]),c=o[s];a>i.duration&&c!=="infinite"&&(i.animationName=t[s],i.duration=a);}return i}function eh$1(e,t){return e!==void 0&&e.duration>t.duration}function th$2(e){return (e.animationName!=null||e.propertyName!=null)&&e.duration>0}function aE(e,t){let n=getComputedStyle(e),r=sE(n),o=iE(n),i=r.duration>o.duration?r:o;eh$1(t.get(e),i)||th$2(i)&&t.set(e,i);}function nh$1(e,t,n){if(!n)return;let r=e.getAnimations();return r.length===0?aE(e,t):cE(e,t,r)}function cE(e,t,n){let r={animationName:void 0,propertyName:void 0,duration:0};for(let o of n){let i=o.effect?.getTiming();if(i?.iterations===1/0)continue;let s=typeof i?.duration=="number"?i.duration:0,a=(i?.delay??0)+s,c=o.playbackRate;c!==void 0&&c!==0&&c!==1&&(a/=Math.abs(c));let l,u;o.animationName?u=o.animationName:l=o.transitionProperty,a>=r.duration&&(r={animationName:u,propertyName:l,duration:a});}eh$1(t.get(e),r)||th$2(r)&&t.set(e,r);}var an$4=new Set,ts$1=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ts$1||{}),pn$3=new M$g(""),bf$2=new Set;function le$a(e){bf$2.has(e)||(bf$2.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var ns$1=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=G$f({token:e,providedIn:"root",factory:()=>new e})}return e})(),Jc$1=[0,1,2,3],Xc$1=(()=>{class e{ngZone=D$l($$b);
vendor: 20,266 bytes, line 5
5scheduler=D$l(Se$d);errorHandler=D$l(ot$a,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){D$l(pn$3,{optional:true});}execute(){let n=this.sequences.size>0;n&&L$a(A$d.AfterRenderHooksStart),this.executing=true;for(let r of Jc$1)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&L$a(A$d.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[Yt$a]??=[]).push(n),Jt$9(r),r[b$b]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(ts$1.AFTER_NEXT_RENDER,n):n()}static \u0275prov=G$f({token:e,providedIn:"root",factory:()=>new e})}return e})(),Pr$3=class Pr{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Yt$a];t&&(this.view[Yt$a]=t.filter(n=>n!==this));}};function rh$2(e,t){let n=t?.injector??D$l(ye$7);return le$a("NgAfterRender"),ih$2(e,n,t,false)}function oh$2(e,t){let n=t?.injector??D$l(ye$7);return le$a("NgAfterNextRender"),ih$2(e,n,t,true)}function lE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function ih$2(e,t,n,r){let o=t.get(ns$1);o.impl??=t.get(Xc$1);let i=t.get(pn$3,null,{optional:true}),s=n?.manualCleanup!==true?t.get(st$b):null,a=t.get(Vn$3,null,{optional:true}),c=new Pr$3(o.impl,lE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Yr$4=new M$g("",{factory:()=>{let e=D$l(fe$d),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function sh$2(e,t,n){let r=e.get(Yr$4);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function uE(e,t){let n=e.get(Yr$4);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function dE(e,t){let n=e.get(Yr$4);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function fE(e){let t=e.get(Yr$4);t.isScheduled||(oh$2(()=>{t.isScheduled=false;for(let n of t.queue)n();t.queue.clear();},{injector:t.injector}),t.isScheduled=true);}function ah$2(e){let t=e.get(Yr$4);t.scheduler=fE,t.scheduler(e);}function ch$2(e,t){for(let[n,r]of t)sh$2(e,r.animateFns);}function Cf$2(e,t,n,r){let o=e?.[Ie$8]?.enter;t!==null&&o&&o.has(n.index)&&ch$2(r,o);}function _f$2(e,t,n,r){try{n.get(Dr$5);}catch(s){return r(false)}let o=e?.[Ie$8];o?.enter?.has(t.index)&&uE(n,o.enter.get(t.index).animateFns);let i=pE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];rs$1(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&an$4.add(e[Re$a]),sh$2(n,()=>hE(e,t,o||void 0,i,r),o||void 0);}function pE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[v$d].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function hE(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l);}n.detachedLeaveAnimationFns=void 0;}if(e&&rs$1(e,t,i),i.length>0){let s=n||e?.[Ie$8];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),mE(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&an$4.delete(e[Re$a]),o(true);});}else e&&an$4.delete(e[Re$a]),o(false);}function rs$1(e,t,n){if(t.type&12){let o=e[t.index];if(Ee$6(o))for(let i=j$g;i<o.length;i++){let s=o[i];s[v$d].type===2&&gE(s,n);}}let r=t.child;for(;r;)rs$1(e,r,n),r=r.next;}function gE(e,t){let n=e[Ie$8];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[v$d].firstChild;for(;r;)rs$1(e,r,t),r=r.next;}function mE(e,t,n){t.then(()=>{e[Ie$8]?.running===t&&(e[Ie$8].running=void 0,an$4.delete(e[Re$a])),n(true);});}function Bn$3(e,t,n,r,o,i,s,a){if(o!=null){let c,l=false;Ee$6(o)?c=o:it$9(o)&&(l=true,o=o[xe$9]);let u=De$a(o);e===0&&r!==null?(Cf$2(a,r,i,n),s==null?Bp$2(t,r,u):Pi$3(t,r,u,s||null,true)):e===1&&r!==null?(Cf$2(a,r,i,n),Pi$3(t,r,u,s||null,true),nE(i,u,a)):e===2?(a?.[Ie$8]?.leave?.has(i.index)&&Kp$2(i,u,a),xr$4.delete(u),_f$2(a,i,n,d=>{if(xr$4.has(u)){xr$4.delete(u);return}$p$2(t,u,l,d);})):e===3&&(xr$4.delete(u),_f$2(a,i,n,()=>{t.destroyNode(u);})),c!=null&&_E(t,e,n,c,i,r,s);}}function yE(e,t){lh$2(e,t),t[xe$9]=null,t[te$f]=null;}function vE(e,t,n,r,o,i){r[xe$9]=o,r[te$f]=t,is$1(e,r,n,1,o,i);}function lh$2(e,t){t[Ae$9].changeDetectionScheduler?.notify(9),is$1(e,t,t[k$e],2,null,null);}function IE(e){let t=e[kn$2];if(!t)return Ga$2(e[v$d],e);for(;t;){let n=null;if(it$9(t))n=t[kn$2];else {let r=t[j$g];r&&(n=r);}if(!n){for(;t&&!t[ve$9]&&t!==e;)it$9(t)&&Ga$2(t[v$d],t),t=t[z$9];t===null&&(t=e),it$9(t)&&Ga$2(t[v$d],t),n=t&&t[ve$9];}t=n;}}function el$2(e,t){let n=e[Kt$8],r=n.indexOf(t);n.splice(r,1);}function os$1(e,t){if(Ze$9(t))return;let n=t[k$e];n.destroyNode&&is$1(e,t,n,3,null,null),IE(t);}function Ga$2(e,t){if(Ze$9(t))return;let n=E$8(null);try{t[b$b]&=-129,t[b$b]|=256,t[pe$a]&&et$d(t[pe$a]),DE(e,t),EE(e,t),t[v$d].type===1&&t[k$e].destroy();let r=t[yt$9];if(r!==null&&Ee$6(t[z$9])){r!==t[z$9]&&el$2(r,t);let o=t[Ge$b];o!==null&&o.detachView(e);}cc$1(t);}finally{E$8(n);}}function EE(e,t){let n=e.cleanup,r=t[Rn$4];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else {let a=r[n[s+1]];n[s].call(a);}r!==null&&(t[Rn$4]=null);let o=t[nt$d];if(o!==null){t[nt$d]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[ht$7];if(i!==null){t[ht$7]=null;for(let s of i)s.destroy();}}function DE(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof on$4)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];L$a(A$d.LifecycleHookStart,a,c);try{c.call(a);}finally{L$a(A$d.LifecycleHookEnd,a,c);}}else {L$a(A$d.LifecycleHookStart,o,i);try{i.call(o);}finally{L$a(A$d.LifecycleHookEnd,o,i);}}}}}function uh$2(e,t,n){return wE(e,t.parent,n)}function wE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[xe$9];if(ze$a(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===sn$4.None||o===sn$4.Emulated)return null}return ie$i(r,n)}function dh$2(e,t,n){return bE(e,t,n)}function TE(e,t,n){return e.type&40?ie$i(e,n):null}var bE=TE;function tl$2(e,t,n,r){let o=uh$2(e,r,t),i=t[k$e],s=r.parent||t[te$f],a=dh$2(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)vf$2(i,o,n[c],a,false);else vf$2(i,o,n,a,false);}function Ar$5(e,t){if(t!==null){let n=t.type;if(n&3)return ie$i(t,e);if(n&4)return Ec$1(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Ar$5(e,r);{let o=e[t.index];return Ee$6(o)?Ec$1(-1,o):De$a(o)}}else {if(n&128)return Ar$5(e,t.next);if(n&32)return Zc$1(t,e)()||De$a(e[t.index]);{let r=fh$2(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=rt$8(e[ne$f]);return Ar$5(o,r)}else return Ar$5(e,t.next)}}}return null}function fh$2(e,t){if(t!==null){let r=e[ne$f][te$f],o=t.projection;return r.projection[o]}return null}function Ec$1(e,t){let n=j$g+e+1;if(n<t.length){let r=t[n],o=r[v$d].firstChild;if(o!==null)return Ar$5(r,o)}return t[It$a]}function nl$2(e,t,n,r,o,i,s){for(;n!=null;){let a=r[H$c];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&qn$2(De$a(c),r),n.flags|=2),!Ki$3(n))if(l&8)nl$2(e,t,n.child,r,o,i,false),Bn$3(t,e,a,o,c,n,i,r);else if(l&32){let u=Zc$1(n,r),d;for(;d=u();)Bn$3(t,e,a,o,d,n,i,r);Bn$3(t,e,a,o,c,n,i,r);}else l&16?ph$2(e,t,r,n,o,i):Bn$3(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function is$1(e,t,n,r,o,i){nl$2(n,r,e.firstChild,t,o,i,false);}function CE(e,t,n){let r=t[k$e],o=uh$2(e,n,t),i=n.parent||t[te$f],s=dh$2(i,n,t);ph$2(r,0,t,n,o,s);}function ph$2(e,t,n,r,o,i){let s=n[ne$f],c=s[te$f].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Bn$3(t,e,n[H$c],o,u,r,i,n);}else {let l=c,u=s[z$9];vp$2(r)&&(l.flags|=128),nl$2(e,t,l,u,o,i,true);}}function _E(e,t,n,r,o,i,s){let a=r[It$a],c=De$a(r);a!==c&&Bn$3(t,e,n,i,a,o,s);for(let l=j$g;l<r.length;l++){let u=r[l];is$1(u[v$d],u,e,t,i,a);}}function ME(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Fi$2.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Fi$2.Important),e.setStyle(n,r,o,i));}}function rl$2(e,t,n,r,o,i,s,a,c,l,u){let d=R$g+r,p=d+o,f=SE(d,p),h=typeof l=="function"?l():l;return f[v$d]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,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:false,ssrId:u}}function SE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Y$f);return n}function NE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=rl$2(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function ol$2(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[xe$9]=o,d[b$b]=r|4|128|8|64|1024,(l!==null||e&&e[b$b]&2048)&&(d[b$b]|=2048),Da$2(d),d[z$9]=d[mt$9]=e,d[U$d]=n,d[Ae$9]=s||e&&e[Ae$9],d[k$e]=a||e&&e[k$e],d[H$c]=c||e&&e[H$c]||null,d[te$f]=i,d[Re$a]=Gv$1(),d[Qt$9]=u,d[va$2]=l,d[ne$f]=t.type==2?e[ne$f]:d,d}function xE(e,t,n){let r=ie$i(t,e),o=NE(n),i=e[Ae$9].rendererFactory,s=il$2(e,ol$2(e,o,null,hh$2(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function hh$2(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function gh$2(e,t,n,r){if(n===0)return  -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function il$2(e,t){return e[kn$2]?e[ya$3][ve$9]=t:e[kn$2]=t,e[ya$3]=t,t}function AE(e=1){mh$2(O$g(),g$d(),Te$b()+e);}function mh$2(e,t,n,r){if((t[b$b]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ti$3(t,i,n);}else {let i=e.preOrderHooks;i!==null&&bi$3(t,i,0,n);}Dt$b(n);}var ss$1=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(ss$1||{});function cn$4(e,t,n,r){let o=E$8(null);try{let[i,s,a]=e.inputs[n],c=null;(s&ss$1.SignalBased)!==0&&(c=t[i][V$f]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):ep$1(t,c,i,r);}finally{E$8(o);}}function yh$2(e,t,n,r,o){let i=Te$b(),s=r&2;try{Dt$b(-1),s&&t.length>R$g&&mh$2(e,t,R$g,!1);let a=s?A$d.TemplateUpdateStart:A$d.TemplateCreateStart;L$a(a,o,n),n(r,o);}finally{Dt$b(i);let a=s?A$d.TemplateUpdateEnd:A$d.TemplateCreateEnd;L$a(a,o,n);}}function as$1(e,t,n){PE(e,t,n),(n.flags&64)===64&&FE(e,t,n);}function Kr$4(e,t,n=ie$i){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a;}}}function RE(e,t,n,r){let i=r.get(Cp$2,bp$2)||n===sn$4.ShadowDom||n===sn$4.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new _$7(905,false);return s}function LE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function vh$1(e,t,n,r,o,i){let s=t[v$d];if(cs$1(e,s,t,n,r)){ze$a(e)&&Eh$1(t,e.index);return}e.type&3&&(n=LE(n)),Ih$1(e,t,n,r,o,i);}function Ih$1(e,t,n,r,o,i){if(e.type&3){let s=ie$i(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function Eh$1(e,t){let n=we$a(t,e);n[b$b]&16||(n[b$b]|=64);}function PE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;ze$a(n)&&xE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Oi$3(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=kr$4(t,e,s,n);if(qn$2(c,t),i!==null&&HE(t,s-r,c,a,n,i),Qe$a(a)){let l=we$a(n.index,t);l[U$d]=kr$4(t,e,s,n);}}}function FE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=jd$2();try{Dt$b(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ai$6(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&jE(c,l);}}finally{Dt$b(-1),ai$6(s);}}function jE(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function sl$2(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];zp$2(t,i.selectors,false)&&(r??=[],Qe$a(i)?r.unshift(i):r.push(i));}return r}function VE(e,t,n,r,o,i){let s=ie$i(e,t);Dh$1(t[k$e],s,i,e.value,n,r,o);}function Dh$1(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Ne$a(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function HE(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];cn$4(r,n,c,l);}}function al$2(e,t,n,r,o){let i=R$g+n,s=t[v$d],a=o(s,t,e,r,n);t[i]=a,Xt$a(e,true);let c=e.type===2;return c?(Up$2(t[k$e],a,e),(xd$2()===0||On$3(e))&&qn$2(a,t),Ad$2()):qn$2(a,t),di$5()&&(!c||!Ki$3(e))&&tl$2(s,t,a,e),e}function cl$2(e){let t=e;return xa$2()?Aa$1():(t=t.parent,Xt$a(t,false)),t}function ll$2(e,t){let n=e[H$c];if(!n)return;let r;try{r=n.get(bt$b,null);}catch(o){r=null;}r?.(t);}function cs$1(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];cn$4(d,n[l],u,o),a=true;}if(i)for(let c of i){let l=n[c],u=t.data[c];cn$4(u,l,r,o),a=true;}return a}function BE(e,t,n,r,o,i){let s=null,a=null,c=null,l=false,u=e.directiveToIndex.get(r.type);if(typeof u=="number"?s=u:[s,a,c]=u,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],m=d[p+1];cn$4(h,n[f],m,i),l=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(cn$4(r,n[s],o,i),l=true),l}function $E(e,t){let n=we$a(t,e),r=n[v$d];UE(r,n);let o=n[xe$9];o!==null&&n[Qt$9]===null&&(n[Qt$9]=Np$2(o,n[H$c])),L$a(A$d.ComponentStart);try{ul$2(r,n,n[U$d]);}finally{L$a(A$d.ComponentEnd,n[U$d]);}}function UE(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function ul$2(e,t,n){li$6(t);try{let r=e.viewQuery;r!==null&&dc$1(1,r,n);let o=e.template;o!==null&&yh$2(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ge$b]?.finishViewCreation(e),e.staticContentQueries&&xp$2(e,t),e.staticViewQueries&&dc$1(2,e.viewQuery,n);let i=e.components;i!==null&&qE(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[b$b]&=-5,ui$4();}}function qE(e,t){for(let n=0;n<t.length;n++)$E(e,t[n]);}function Yn$2(e,t,n,r){let o=E$8(null);try{let i=t.tView,a=e[b$b]&4096?4096:16,c=ol$2(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[yt$9]=l;let u=e[Ge$b];return u!==null&&(c[Ge$b]=u.createEmbeddedView(i)),ul$2(i,c,n),c}finally{E$8(o);}}function ln$3(e,t){return !t||t.firstChild===null||vp$2(e)}function Fr$3(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(De$a(i)),Ee$6(i)&&wh$1(i,r);let s=n.type;if(s&8)Fr$3(e,t,n.child,r);else if(s&32){let a=Zc$1(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=fh$2(t,n);if(Array.isArray(a))r.push(...a);else {let c=rt$8(t[ne$f]);Fr$3(c[v$d],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function wh$1(e,t){for(let n=j$g;n<e.length;n++){let r=e[n],o=r[v$d].firstChild;o!==null&&Fr$3(r[v$d],r,o,t);}e[It$a]!==e[xe$9]&&t.push(e[It$a]);}function Th$1(e){if(e[Yt$a]!==null){for(let t of e[Yt$a])t.impl.addSequence(t);e[Yt$a].length=0;}}var bh$2=[];function WE(e){return e[pe$a]??GE(e)}function GE(e){let t=bh$2.pop()??Object.create(QE);return t.lView=e,t}function zE(e){e.lView[pe$a]!==e&&(e.lView=null,bh$2.push(e));}var QE=E$9(D$m({},Ke$8),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{Jt$9(e.lView);},consumerOnSignalRead(){this.lView[pe$a]=this;}});function ZE(e){let t=e[pe$a]??Object.create(YE);return t.lView=e,t}var YE=E$9(D$m({},Ke$8),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=rt$8(e.lView);for(;t&&!Ch$1(t[v$d]);)t=rt$8(t);t&&ri$6(t);},consumerOnSignalRead(){this.lView[pe$a]=this;}});function Ch$1(e){return e.type!==2}function _h$2(e){if(e[ht$7]===null)return;let t=true;for(;t;){let n=false;for(let r of e[ht$7])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[b$b]&8192);}}var KE=100;function Mh$1(e,t=0){let r=e[Ae$9].rendererFactory;r.begin?.();try{JE(e,t);}finally{r.end?.();}}function JE(e,t){let n=ka$2();try{hr$5(!0),Dc$1(e,t);let r=0;for(;br$4(e);){if(r===KE)throw new _$7(103,!1);r++,Dc$1(e,1);}}finally{hr$5(n);}}function XE(e,t,n,r){if(Ze$9(t))return;let o=t[b$b],i=false,s=false;li$6(t);let a=true,c=null,l=null;(Ch$1(e)?(l=WE(t),c=$e$9(l)):Ao$3()===null?(a=false,l=ZE(t),c=$e$9(l)):t[pe$a]&&(et$d(t[pe$a]),t[pe$a]=null));try{Da$2(t),Ld$2(e.bindingStartIndex),n!==null&&yh$2(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Ti$3(t,f,null);}else {let f=e.preOrderHooks;f!==null&&bi$3(t,f,0,null),qa$2(t,0);}if(s||eD(t),_h$2(t),Sh$1(t,0),e.contentQueries!==null&&xp$2(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Ti$3(t,f);}else {let f=e.contentHooks;f!==null&&bi$3(t,f,1),qa$2(t,1);}nD(e,t);let d=e.components;d!==null&&xh$2(t,d,0);let p=e.viewQuery;if(p!==null&&dc$1(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Ti$3(t,f);}else {let f=e.viewHooks;f!==null&&bi$3(t,f,2),qa$2(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ei$6]){for(let f of t[ei$6])f();t[ei$6]=null;}i||(Th$1(t),t[b$b]&=-73);}catch(u){throw Jt$9(t),u}finally{l!==null&&(Xe$6(l,c),a&&zE(l)),ui$4();}}function Sh$1(e,t){for(let n=Ep$2(e);n!==null;n=Dp$1(n))for(let r=j$g;r<n.length;r++){let o=n[r];Nh$1(o,t);}}function eD(e){for(let t=Ep$2(e);t!==null;t=Dp$1(t)){if(!(t[b$b]&2))continue;let n=t[Kt$8];for(let r=0;r<n.length;r++){let o=n[r];ri$6(o);}}}function tD(e,t,n){L$a(A$d.ComponentStart);let r=we$a(t,e);try{Nh$1(r,n);}finally{L$a(A$d.ComponentEnd,r[U$d]);}}function Nh$1(e,t){ni$5(e)&&Dc$1(e,t);}function Dc$1(e,t){let r=e[v$d],o=e[b$b],i=e[pe$a],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Bt$b(i)),s||=false,i&&(i.dirty=false),e[b$b]&=-9217,s)XE(r,e,r.template,e[U$d]);else if(o&8192){let a=E$8(null);try{_h$2(e),Sh$1(e,1);let c=r.components;c!==null&&xh$2(e,c,1),Th$1(e);}finally{E$8(a);}}}function xh$2(e,t,n){for(let r=0;r<t.length;r++)tD(e,t[r],n);}function nD(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Dt$b(~o);else {let i=o,s=n[++r],a=n[++r];Fd$2(s,i);let c=t[i];L$a(A$d.HostBindingsUpdateStart,c);try{a(2,c);}finally{L$a(A$d.HostBindingsUpdateEnd,c);}}}}finally{Dt$b(-1);}}function dl$2(e,t){let n=ka$2()?64:1088;for(e[Ae$9].changeDetectionScheduler?.notify(t);e;){e[b$b]|=n;let r=rt$8(e);
5if(Ln$3(e)&&!r)return e;e=r;}return null}function Ah$1(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Rh$1(e,t){let n=j$g+t;if(n<e.length)return e[n]}function Kn$2(e,t,n,r=true){let o=t[v$d];if(rD(o,t,e,n),r){let s=Ec$1(n,e),a=t[k$e],c=a.parentNode(e[It$a]);c!==null&&vE(o,e[te$f],a,t,c,s);}let i=t[Qt$9];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function fl$2(e,t){let n=jr$4(e,t);return n!==void 0&&os$1(n[v$d],n),n}function jr$4(e,t){if(e.length<=j$g)return;let n=j$g+t,r=e[n];if(r){let o=r[yt$9];o!==null&&o!==e&&el$2(o,r),t>0&&(e[n-1][ve$9]=r[ve$9]);let i=Er$5(e,j$g+t);yE(r[v$d],r);let s=i[Ge$b];s!==null&&s.detachView(i[v$d]),r[z$9]=null,r[ve$9]=null,r[b$b]&=-129;}return r}function rD(e,t,n,r){let o=j$g+r,i=n.length;r>0&&(n[o-1][ve$9]=t),r<i-j$g?(t[ve$9]=n[o],fa$3(n,j$g+r,t)):(n.push(t),t[ve$9]=null),t[z$9]=n;let s=t[yt$9];s!==null&&n!==s&&kh$1(s,t);let a=t[Ge$b];a!==null&&a.insertView(e),oi$5(t),t[b$b]|=128;}function kh$1(e,t){let n=e[Kt$8],r=t[z$9];if(it$9(r))e[b$b]|=2;else {let o=r[z$9][ne$f];t[ne$f]!==o&&(e[b$b]|=2);}n===null?e[Kt$8]=[t]:n.push(t);}var St$a=class St{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[v$d];return Fr$3(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[U$d]}set context(t){this._lView[U$d]=t;}get destroyed(){return Ze$9(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[z$9];if(Ee$6(t)){let n=t[wr$5],r=n?n.indexOf(this):-1;r>-1&&(jr$4(t,r),Er$5(n,r));}this._attachedToViewContainer=false;}os$1(this._lView[v$d],this._lView);}onDestroy(t){Fn$4(this._lView,t);}markForCheck(){dl$2(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[b$b]&=-129;}reattach(){oi$5(this._lView),this._lView[b$b]|=128;}detectChanges(){this._lView[b$b]|=1024,Mh$1(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _$7(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Ln$3(this._lView),n=this._lView[yt$9];n!==null&&!t&&el$2(n,this._lView),lh$2(this._lView[v$d],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new _$7(902,false);this._appRef=t;let n=Ln$3(this._lView),r=this._lView[yt$9];r!==null&&!n&&kh$1(r,this._lView),oi$5(this._lView);}};var Vr$4=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=oD;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Yn$2(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new St$a(i)}}return e})();function oD(){return ls$1(F$d(),g$d())}function ls$1(e,t){return e.type&4?new Vr$4(t,e,Qn$2(e,t)):null}function hn$3(e,t,n,r,o){let i=e.data[t];if(i===null)i=iD(e,t,n,r,o),Pd$2()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Od$2();i.injectorIndex=s===null?-1:s.injectorIndex;}return Xt$a(i,true),i}function iD(e,t,n,r,o){let i=Na$2(),s=xa$2(),a=s?i:i&&i.parent,c=e.data[t]=aD(e,a,n,t,r,o);return sD(e,c,i,s),c}function sD(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function aD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return _a$2()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Fa$2(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function cD(e){let t=e[vt$a]??[],r=e[z$9][k$e],o=[];for(let i of t)i.data[$c$1]!==void 0?o.push(i):lD(i,r);e[vt$a]=o;}function lD(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Tp$2];for(;n<o;){let i=r.nextSibling;$p$2(t,r,false),r=i,n++;}}}var uD=()=>null,dD=()=>null;function Vi$3(e,t){return uD()}function Oh$1(e,t,n){return dD()}var Lh$1=class Lh{},Hr$4=class Hr{},fD=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>pD()}return e})();function pD(){let e=g$d(),t=F$d(),n=we$a(t.index,e);return (it$9(n)?n:e)[k$e]}var Ph$1=(()=>{class e{static \u0275prov=G$f({token:e,providedIn:"root",factory:()=>null})}return e})();function Fh$1(e){return e.debugInfo?.className||e.type.name||null}var _i$3={},nn$5=class nn{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,_i$3,r);return o!==_i$3||n===_i$3?o:this.parentInjector.get(t,n,r)}};function pl$2(e){return us$1(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:false}function jh$1(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else {let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value);}}function us$1(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Jn$2(e,t,n){return e[t]=n}function hD(e,t){return e[t]}function J$j(e,t,n){if(n===Y$f)return  false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function Br$4(e,t,n,r){let o=J$j(e,t,n);return J$j(e,t+1,r)||o}function Vh$1(e,t,n,r,o){let i=Br$4(e,t,n,r);return J$j(e,t+2,o)||i}function gD(e,t,n,r,o,i){let s=Br$4(e,t,n,r);return Br$4(e,t+2,o,i)||s}function rn$4(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&Xv$1(o,i);let s=ze$a(e)?we$a(e.index,t):t;dl$2(s,5);let a=t[U$d],c=Sf$2(t,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Sf$2(t,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Sf$2(e,t,n,r){let o=E$8(null);try{return L$a(A$d.OutputStart,t,n),n(r)!==!1}catch(i){return ll$2(e,i),false}finally{L$a(A$d.OutputEnd,t,n),E$8(o);}}function hl$2(e,t,n,r,o,i,s,a){let c=On$3(e),l=false,u=null;if(!r&&c&&(u=yD(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=true;}else {let d=ie$i(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!mD(i)){let h=r?m=>r(De$a(m[e.index])):e.index;Hh$1(h,t,n,i,a,f,false);}}return l}function mD(e){return e.startsWith("animation")||e.startsWith("transition")}function yD(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Rn$4],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Hh$1(e,t,n,r,o,i,s){let a=t.firstCreatePass?ba$2(t):null,c=Ta$2(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1));}function Nf$2(e,t,n,r,o){let i=null,s=null,a=null,c=false,l=e.directiveToIndex.get(n.type);if(typeof l=="number"?i=l:[i,s,a]=l,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let u=e.hostDirectiveOutputs[r];for(let d=0;d<u.length;d+=2){let p=u[d];if(p>=s&&p<=a)c=true,Hi$3(e,t,p,u[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,Hi$3(e,t,i,r,r,o)),c}function Hi$3(e,t,n,r,o,i){let s=t[n],a=t[v$d],l=a.data[n].outputs[r],d=s[l].subscribe(i);Hh$1(e.index,a,t,o,i,d,true);}function vD(){ID();}function ID(){let e=g$d(),t=O$g(),n=F$d();if(t.firstCreatePass&&wD(t,n),n.controlDirectiveIndex===-1)return;le$a("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Bi$3(e,t,n));}function ED(){DD();}function DD(){let e=g$d(),t=O$g(),n=wt$b();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Bi$3(e,t,n));}var Bi$3=class Bi{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return ie$i(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Nf$2(this.tNode,this.lView,r,t,rn$4(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Nf$2(this.tNode,this.lView,r,n,rn$4(this.tNode,this.lView,t));}listenToDom(t,n){hl$2(this.tNode,this.tView,this.lView,void 0,this.lView[k$e],t,n,rn$4(this.tNode,this.lView,n));}
5setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return  false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];cn$4(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],l=this.tView.data[a],u=this.lView[a];cn$4(l,u,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";BE(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return  false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=xf$2(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=xf$2(i.directive);s!==null&&r.push(...s);}}}return n}};function xf$2(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function wD(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}TD(e,t);}function TD(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Af$2(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Af$2(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return  false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2){let u=s[l];if(c===u)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return t.flags|=o,t.customControlIndex=p,true}}}return  false};if(n("value",1024)||n("checked",2048))return}}function Af$2(e,t){return bD(e,t)&&CD(e,t+"Change")}function bD(e,t){return t in e.inputs}function CD(e,t){return t in e.outputs}var wc$1=Symbol("BINDING");var Bh$1=new M$g("");function $i$3(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=$o$2(o,a);else if(i==2){let c=a,l=t[++s];r=$o$2(r,c+": "+l+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function Jr$4(e,t=0){let n=g$d();if(n===null)return me$b(e,t);let r=F$d();return fp$2(r,n,K$f(e),t)}function _D(){let e="invalid";throw new Error(e)}function $h$1(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}ND(e,t,n,a,i,c,l);}i!==null&&r!==null&&MD(n,r,i);}function MD(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new _$7(-301,false);r.push(t[o],i);}}function SD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function ND(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&Qe$a(f)&&(c=f,SD(e,n,p)),ic$1(Oi$3(n,t),e,f.type);}LD(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let l=false,u=false,d=gh$2(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Un$3(n.mergedAttrs,f.hostAttrs),AD(e,n,t,d,f),OD(d,f,o),s!==null&&s.has(f)){let[m,T]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,T+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=true),!u&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=true),d++;}xD(e,n,i);}
5function xD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Rf$2(0,t,o,r),Rf$2(1,t,o,r),Of$2(t,r,false);else {let i=n.get(o);kf$2(0,t,i,r),kf$2(1,t,i,r),Of$2(t,r,true);}}}function Rf$2(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Uh$1(t,i);}}function kf$2(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Uh$1(t,s);}}function Uh$1(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function Of$2(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Qc$1(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function AD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=pt$8(o.type)),s=new on$4(i,Qe$a(o),Jr$4,null);e.blueprint[r]=s,n[r]=s,RD(e,t,r,gh$2(e,n,o.hostVars,Y$f),o);}function RD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;kD(s)!=a&&s.push(a),s.push(n,r,i);}}function kD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function OD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Qe$a(t)&&(n[""]=e);}}function LD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function gl$2(e,t,n,r,o,i,s,a){let c=t[v$d],l=c.consts,u=he$b(l,s),d=hn$3(c,e,n,r,u);return $h$1(c,t,d,he$b(l,a),o),d.mergedAttrs=Un$3(d.mergedAttrs,d.attrs),d.attrs!==null&&$i$3(d,d.attrs,false),d.mergedAttrs!==null&&$i$3(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function ml$2(e,t){rp$1(e,t),Ia$1(t)&&e.queries.elementEnd(t);}function PD(e,t,n,r,o,i){let s=t.consts,a=he$b(s,o),c=hn$3(t,e,n,r,a);if(c.mergedAttrs=Un$3(c.mergedAttrs,c.attrs),i!=null){let l=he$b(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1);}return c.attrs!==null&&$i$3(c,c.attrs,false),c.mergedAttrs!==null&&$i$3(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var qh$1=typeof ShadowRoot<"u",FD=typeof Document<"u";function jD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&ss$1.SignalBased)!==0};return o&&(i.transform=o),i})}function VD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function HD(e,t,n){let r=t instanceof fe$d?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new nn$5(n,r):n}function BD(e){let t=e.get(Hr$4,null);if(t===null)throw new _$7(407,false);let n=e.get(Ph$1,null),r=e.get(Se$d,null),o=e.get(pn$3,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function $D(e,t){let n=Wh$1(e);return Hp$2(t,n,n==="svg"?Ea$1:n==="math"?_d$2:null)}function Wh$1(e){return (e.selectors[0][0]||"div").toLowerCase()}var un$3=class un{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=jD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=VD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=KI(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){L$a(A$d.DynamicComponentStart);let a=E$8(null);try{let c=this.componentDef,l=HD(c,o||this.ngModule,t),u=BD(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(Fh$1(c),()=>this.createComponentRef(u,l,n,r,i,s)):this.createComponentRef(u,l,n,r,i,s)}finally{E$8(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=UD(o,a,s,i),l=t.rendererFactory.createRenderer(null,a),u=o?RE(l,o,a.encapsulation,n):$D(a,l),d=n.get(Bh$1,null),p=qD(u,()=>n.get(jn$2,null)??Bc$1());d&&d.addHost(p);let f=s?.some(Lf$2)||i?.some(T=>typeof T!="function"&&T.bindings.some(Lf$2)),h=ol$2(null,c,null,512|hh$2(a),null,null,t,l,n,null,Np$2(u,n,true));d&&qh$1&&p instanceof ShadowRoot&&Fn$4(h,()=>{d.removeHost(p);}),h[R$g]=u,li$6(h);let m=null;try{let T=gl$2(R$g,h,2,"#host",()=>c.directiveRegistry,!0,0);Up$2(l,u,T),qn$2(u,h),as$1(c,h,T),Wc$1(c,T,h),ml$2(c,T),r!==void 0&&GD(T,this.ngContentSelectors,r),m=we$a(T.index,h),h[U$d]=m[U$d],ul$2(c,h,null);}catch(T){throw m!==null&&cc$1(m),cc$1(h),T}finally{L$a(A$d.DynamicComponentEnd),ui$4();}return new Ui$3(this.componentType,h,!!f)}};function UD(e,t,n,r){let o=e?["ng-version","22.0.4"]:JI(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[wc$1].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[wc$1].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=Wo$3(d);c.push(p);}return rl$2(0,null,WD(i,s),1,a,c,null,null,null,[o],null)}function qD(e,t){let n=e.getRootNode?.();return FD&&n instanceof Document?n.head:n&&qh$1&&n instanceof ShadowRoot?n:t().head}function WD(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();
vendor: 5,886 bytes, line 5
5if(n&2&&t)for(let r of t)r.update();}}function Lf$2(e){let t=e[wc$1].kind;return t==="input"||t==="twoWay"}var Ui$3=class Ui extends Lh$1{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Pn$3(n[v$d],R$g),this.location=Qn$2(this._tNode,n),this.instance=we$a(this._tNode.index,n)[U$d],this.hostView=this.changeDetectorRef=new St$a(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;cs$1(r,o[v$d],o,t,n);this.previousInputValues.set(t,n);let s=we$a(r.index,o);dl$2(s,1);}get injector(){return new Mt$9(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function GD(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var ds$1=(()=>{class e{static __NG_ELEMENT_ID__=zD}return e})();function zD(){let e=F$d();return Gh$1(e,g$d())}var Tc$1=class e extends ds$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return Qn$2(this._hostTNode,this._hostLView)}get injector(){return new Mt$9(this._hostTNode,this._hostLView)}get parentInjector(){let t=Vc$1(this._hostTNode,this._hostLView);if(sp$1(t)){let n=Ri$3(t,this._hostLView),r=Ai$3(t),o=n[v$d].data[r+8];return new Mt$9(o,n)}else return new Mt$9(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=Pf$2(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-j$g}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Vi$3(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ln$3(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let u=new un$3(qe$8(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let N=this.parentInjector.get(fe$d,null);N&&(i=N);}let p=qe$8(u.componentType??{}),f=Vi$3(this._lContainer,p?.id??null),h=null,m=u.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,ln$3(this._hostTNode,f)),m}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(Sd$2(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[z$9],l=new e(c,c[te$f],c[z$9]);l.detach(l.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return Kn$2(s,o,i,r),t.attachToViewContainerRef(),fa$3(za$2(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Pf$2(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=jr$4(this._lContainer,n);r&&(Er$5(za$2(this._lContainer),n),os$1(r[v$d],r));}detach(t){let n=this._adjustIndex(t,-1),r=jr$4(this._lContainer,n);return r&&Er$5(za$2(this._lContainer),n)!=null?new St$a(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Pf$2(e){return e[wr$5]}function za$2(e){return e[wr$5]||(e[wr$5]=[])}function Gh$1(e,t){let n,r=t[e.index];return Ee$6(r)?n=r:(n=Ah$1(r,t,null,e),t[e.index]=n,il$2(t,n)),ZD(n,t,e,r),new Tc$1(n,e,t)}function QD(e,t){let n=e[k$e],r=n.createComment(""),o=ie$i(t,e),i=n.parentNode(o);return Pi$3(n,i,r,n.nextSibling(o),false),r}var ZD=KD;function KD(e,t,n,r){if(e[It$a])return;let o;n.type&8?o=De$a(r):o=QD(t,n),e[It$a]=o;}var bc$1=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},Cc$1=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)vl$2(t,n).matches!==null&&this.queries[n].setDirty();}},qi$3=class qi{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=nw(t):this.predicate=t;}},_c$1=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},Mc$1=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}
5matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,JD(n,i)),this.matchTNodeWithReadOption(t,n,Ci$4(n,t,i,false,false));}else r===Vr$4?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ci$4(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Gr$4||o===ds$1||o===Vr$4&&n.type&4)this.addMatch(n.index,-2);else {let i=Ci$4(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function JD(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function XD(e,t){return e.type&11?Qn$2(e,t):e.type&4?ls$1(e,t):null}function ew(e,t,n,r){return n===-1?XD(t,e):n===-2?tw(e,t,r):kr$4(e,e[v$d],n,t)}function tw(e,t,n){if(n===Gr$4)return Qn$2(t,e);if(n===Vr$4)return ls$1(t,e);if(n===ds$1)return Gh$1(t,e)}function Qh$1(e,t,n,r){let o=t[Ge$b].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else {let u=i[l];a.push(ew(t,u,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function Sc$1(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Qh$1(e,t,o,n);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=t[-c];for(let d=j$g;d<u.length;d++){let p=u[d];p[yt$9]===p[z$9]&&Sc$1(p[v$d],p,l,r);}if(u[Kt$8]!==null){let d=u[Kt$8];for(let p=0;p<d.length;p++){let f=d[p];Sc$1(f[v$d],f,l,r);}}}}}return r}function yl$2(e,t){return e[Ge$b].queries[t].queryList}function Zh$1(e,t,n){let r=new Li$3((n&4)===4);return Nd$2(e,t,r,r.destroy),(t[Ge$b]??=new Cc$1).queries.push(new bc$1(r))-1}function Yh$1(e,t,n){let r=O$g();return r.firstCreatePass&&(Jh$1(r,new qi$3(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Zh$1(r,g$d(),t)}function Kh$1(e,t,n,r){let o=O$g();if(o.firstCreatePass){let i=F$d();Jh$1(o,new qi$3(t,n,r),i.index),rw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Zh$1(o,g$d(),n)}function nw(e){return e.split(",").map(t=>t.trim())}function Jh$1(e,t,n){e.queries===null&&(e.queries=new _c$1),e.queries.track(new Mc$1(t,n));}function rw(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function vl$2(e,t){return e.queries.getByIndex(t)}function Xh$1(e,t){let n=e[v$d],r=vl$2(n,t);return r.crossesNgTemplate?Sc$1(n,e,t,[]):Qh$1(n,e,r,t)}function Il$2(e,t,n){let r,o=ur$4(()=>{r._dirtyCounter();let i=ow(r,e);if(t&&i===void 0)throw new _$7(-951,false);return i});return r=o[V$f],r._dirtyCounter=fi$4(0),r._flatValue=void 0,o}function El$2(e){return Il$2(true,false)}function Dl$2(e){return Il$2(true,true)}function eg$1(e){return Il$2(false,false)}function tg(e,t){let n=e[V$f];n._lView=g$d(),n._queryIndex=t,n._queryList=yl$2(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function ow(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[b$b]&4)return t?void 0:ee$d;let o=yl$2(n,r),i=Xh$1(n,r);return o.reset(i,yp$2),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function wl$2(e){return !!e&&typeof e.then=="function"}function ng$1(e){return !!e&&typeof e.subscribe=="function"}var Gn$2=class Gn{},rg$1=class rg{};var Wi$3=class Wi extends Gn$2{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=fd$2(t);this._bootstrapComponents=HI(i.bootstrap),this._r3Injector=Va$2(t,n,[{provide:Gn$2,useValue:this},...r],vr$5(t),new Set(["environment"])),o&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null;}onDestroy(t){this.destroyCbs.push(t);}},Gi$3=class Gi extends rg$1{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new Wi$3(this.moduleType,t,[])}};var $r$4=class $r extends Gn$2{injector;instance=null;constructor(t){super();let n=new Wt$9([...t.providers,{provide:Gn$2,useValue:this}
vendor: 4,766 bytes, line 5
5],t.parent||An$4(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function Tl$2(e,t,n=null){return new $r$4({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var iw=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Jo$3(false,n.type),o=r.length>0?Tl$2([r],this._injector,""):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=G$f({token:e,providedIn:"environment",factory:()=>new e(me$b(fe$d))})}return e})();function sw(e){return Wr$3(()=>{let t=og$1(e),n=E$9(D$m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Hc$1.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(iw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||sn$4.Emulated,styles:e.styles||ee$d,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&le$a("NgStandalone"),ig$1(n);let r=e.dependencies;return n.directiveDefs=Ff$2(r,aw),n.pipeDefs=Ff$2(r,la$3),n.id=pw(n),n})}function aw(e){return qe$8(e)||Wo$3(e)}function cw(e){return Wr$3(()=>({type:e.type,bootstrap:e.bootstrap||ee$d,declarations:e.declarations||ee$d,imports:e.imports||ee$d,exports:e.exports||ee$d,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function lw(e,t){if(e==null)return gt$a;let n={};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=ss$1.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function uw(e){if(e==null)return gt$a;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function dw(e){return Wr$3(()=>{let t=og$1(e);return ig$1(t),t})}function fw(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function og$1(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||gt$a,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||ee$d,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:lw(e.inputs,t),outputs:uw(e.outputs),debugInfo:null}}function ig$1(e){e.features?.forEach(t=>t(e));}function Ff$2(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function pw(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var bl$2=new M$g("");function hw(e){return Ko$3([{provide:bl$2,multi:true,useValue:e}])}var Cl$2=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=D$l(bl$2,{optional:true})??[];injector=D$l(ye$7);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Xo$3(this.injector,o);if(wl$2(i))n.push(i);else if(ng$1(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ct$9({token:e,factory:e.\u0275fac})}return e})();function gw(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function mw(e){return Object.getPrototypeOf(e.prototype).constructor}function sg$1(e){let t=mw(e.type),n=true,r=[e];for(;t;){let o;if(Qe$a(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new _$7(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;
5s.inputs=Qa$2(e.inputs),s.declaredInputs=Qa$2(e.declaredInputs),s.outputs=Qa$2(e.outputs);let a=o.hostBindings;a&&Dw(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&Iw(e,c),l&&Ew(e,l),yw(e,o),ud$2(e.outputs,o.outputs),Qe$a(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===sg$1&&(n=false);}}t=Object.getPrototypeOf(t);}vw(r);}function yw(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n]);}}function vw(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Un$3(o.hostAttrs,n=Un$3(n,o.hostAttrs));}}function Qa$2(e){return e===gt$a?{}:e===ee$d?[]:e}function Iw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function Ew(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Dw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function ag$1(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Un$3(e.mergedAttrs,e.attrs);let u=e.tView=rl$2(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),Xt$a(e,false);let c=Tw(n,t);di$5()&&tl$2(n,t,c,e),qn$2(c,t);let l=Ah$1(c,t,c,e);t[r+R$g]=l,il$2(t,l);}function ww(e,t,n,r,o,i,s,a,c,l,u){let d=n+R$g,p;return t.firstCreatePass?(p=hn$3(t,d,4,s||null,a||null),$h$1(t,e,p,he$b(t.consts,l),sl$2),rp$1(t,p)):p=t.data[d],ag$1(p,e,t,n,r,o,i,c),On$3(p)&&as$1(t,e,p),l!=null&&Kr$4(e,p,u),p}function dn$4(e,t,n,r,o,i,s,a,c,l,u){let d=n+R$g,p;if(t.firstCreatePass){if(p=hn$3(t,d,4,s||null,a||null),l!=null){let f=he$b(t.consts,l);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return ag$1(p,e,t,n,r,o,i,c),l!=null&&Kr$4(e,p,u),p}function cg$1(e,t,n,r,o,i,s,a){let c=g$d(),l=O$g(),u=he$b(l.consts,i);return ww(c,l,e,t,n,r,o,u,void 0,s,a),cg$1}function lg$1(e,t,n,r,o,i,s,a){let c=g$d(),l=O$g(),u=he$b(l.consts,i);return dn$4(c,l,e,t,n,r,o,u,void 0,s,a),lg$1}var Tw=bw;function bw(e,t,n,r){return Mr$5(true),t[k$e].createComment("")}var ce$b=(function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e})(ce$b||{}),jf$2=0,Cw=1,q$f=(function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e})(q$f||{}),Ur$3=(function(e){return e[e.Initial=-1]="Initial",e})(Ur$3||{}),_w=0,Xn$2=1;var Mw=4,Sw=5,Nw=6,xw=7,Za$2=8,Aw=9,_l$2=(function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e})(_l$2||{});function Ml$2(e,t,n){let r=dg$1(e);t[r]===null&&(t[r]=[]),t[r].push(n);}function Mi$3(e,t){let n=dg$1(e),r=t[n];if(r!==null){for(let o of r)o();t[n]=null;}}function ug$1(e){Mi$3(1,e),Mi$3(0,e),Mi$3(2,e);}function dg$1(e){let t=Mw;return e===1?t=Sw:e===2&&(t=Aw),t}function fs$2(e){return e+1}function Nt$9(e,t){e[v$d];let r=fs$2(t.index);return e[r]}function Rw(e,t,n){e[v$d];let o=fs$2(t);e[o]=n;}function er$5(e,t){let n=fs$2(t.index);return e.data[n]}function kw(e,t,n){let r=fs$2(t);e.data[r]=n;}function Ow(e,t,n){let r=t[v$d],o=er$5(r,n);switch(e){case q$f.Complete:return o.primaryTmplIndex;case q$f.Loading:return o.loadingTmplIndex;case q$f.Error:return o.errorTmplIndex;case q$f.Placeholder:return o.placeholderTmplIndex;default:return null}}function Vf$2(e,t){return t===q$f.Placeholder?e.placeholderBlockConfig?.[jf$2]??null:t===q$f.Loading?e.loadingBlockConfig?.[jf$2]??null:null}function Lw(e){return e.loadingBlockConfig?.[Cw]??null}function Hf$2(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function Pw(e,t){let n=t.primaryTmplIndex+R$g;return Pn$3(e,n)}var Fw=(()=>{class e{cachedInjectors=new Map;getOrCreateInjector(n,r,o,i){if(!this.cachedInjectors.has(n)){let s=o.length>0?Tl$2(o,r,i):null;this.cachedInjectors.set(n,s);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=G$f({token:e,providedIn:"environment",factory:()=>new e})}return e})();var fg$1=new M$g("");function Ya$2(e,t,n){return e.get(Fw).getOrCreateInjector(t,e,n,"")}function jw(e,t,n){if(e instanceof nn$5){let o=e.injector,i=e.parentInjector,s=Ya$2(i,t,n);return new nn$5(o,s)}let r=e.get(fe$d);if(r!==e){let o=Ya$2(r,t,n);return new nn$5(e,o)}return Ya$2(e,t,n)}function _t$a(e,t,n,r=false){let o=n[z$9],i=o[v$d];if(Ze$9(o))return;let s=Nt$9(o,t),a=s[Xn$2],c=s[xw];if(!(c!==null&&e<c)&&Bf$2(a,e)&&Bf$2(s[_w]??-1,e)){let l=er$5(i,t),d=!r&&true&&(Lw(l)!==null||Vf$2(l,q$f.Loading)!==null||Vf$2(l,q$f.Placeholder))?Bw:Hw;try{d(e,s,n,t,o);}catch(p){ll$2(o,p);}}}function Vw(e,t){let n=e[vt$a]?.findIndex(o=>o.data[Uc$1]===t[Xn$2])??-1;return {dehydratedView:n>-1?e[vt$a][n]:null,dehydratedViewIx:n}}function Hw(e,t,n,r,o){L$a(A$d.DeferBlockStateStart);let i=Ow(e,o,r);if(i!==null){t[Xn$2]=e;let s=o[v$d],a=i+R$g,c=Pn$3(s,a),l=0;fl$2(n,l);let u;if(e===q$f.Complete){let h=er$5(s,r),m=h.providers;m&&m.length>0&&(u=jw(o[H$c],h,m));}let{dehydratedView:d,dehydratedViewIx:p}=Vw(n,t),f=Yn$2(o,c,null,{injector:u,dehydratedView:d});if(Kn$2(n,f,l,ln$3(c,d)),ri$6(f),p>-1&&n[vt$a]?.splice(p,1),(e===q$f.Complete||e===q$f.Error)&&Array.isArray(t[Za$2])){for(let h of t[Za$2])h();t[Za$2]=null;}}L$a(A$d.DeferBlockStateEnd);}function Bf$2(e,t){return e<t}function Sl$2(e,t){let n=e[t.index];_t$a(q$f.Placeholder,t,n);}function $f$2(e,t,n){e.loadingPromise.then(()=>{e.loadingState===ce$b.COMPLETE?_t$a(q$f.Complete,t,n):e.loadingState===ce$b.FAILED&&_t$a(q$f.Error,t,n);});}var Bw=null;function Nl$2(e,t){return t[H$c].get(fg$1,null,{optional:true})?.behavior!==_l$2.Manual}function $w(e,t,n,r){let o=n.get($$b);return Jv$1(e,()=>o.run(t),i=>o.runOutsideAngular(()=>Kv$1(i)),r)}function Uw(e,t,n){return e[t.index][j$g]??null}function qw(e,t){return ti$6(R$g+t,e)}function Ww(e,t,n,r,o,i,s,a){if(!Nl$2(s,e))return;let c=e[H$c],l=c.get($$b),u;
5function d(){if(Ze$9(e)){u.destroy();return}let p=Nt$9(e,t),f=p[Xn$2];if(f!==Ur$3.Initial&&f!==q$f.Placeholder){u.destroy();return}let h=Uw(e,t);if(!h||(u.destroy(),Ze$9(h)))return;let m=qw(h,n),T=o(m,()=>{l.run(()=>{e!==h&&ii$6(h,T),i();});},c,a);e!==h&&Fn$4(h,T),Ml$2(s,p,T);}u=rh$2({read:d},{injector:c});}var Gw=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var pg$1=new M$g("");var hg=new M$g("");function gg$1(){Vs$2(()=>{let e="";throw new _$7(600,e)});}var zw=10;var tr$5=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=D$l(bt$b);afterRenderManager=D$l(ns$1);zonelessEnabled=D$l(Hn$2);rootEffectScheduler=D$l(hi$5);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new de$c;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=D$l(Tt$9);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ge$9(n=>!n))}constructor(){D$l(pn$3,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=D$l(fe$d);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ye$7.NULL){return this._injector.get($$b).run(()=>{if(L$a(A$d.BootstrapComponentStart),!this._injector.get(Cl$2).done){let N="";throw new _$7(405,N)}let a=qe$8(n),c=this._injector.get(Gn$2),l=new un$3(a,c);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:p}=Qw(r),f=u||l.selector,h=l.create(o,[],f,c.injector,d,p),m=h.location.nativeElement,T=h.injector.get(pg$1,null);return T?.registerApplication(m),h.onDestroy(()=>{this.detachView(h.hostView),Rr$5(this.components,h),T?.unregisterApplication(m);}),this._loadComponent(h),L$a(A$d.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){L$a(A$d.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ts$1.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw L$a(A$d.ChangeDetectionEnd),new _$7(101,false);let n=E$8(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,E$8(n),this.afterTick.next(),L$a(A$d.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Hr$4,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<zw;){L$a(A$d.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{L$a(A$d.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!br$4(o))continue;let i=r&&!this.zonelessEnabled?0:1;Mh$1(o,i),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>br$4(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8;}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this);}detachView(n){let r=n;Rr$5(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(hg,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>Rr$5(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _$7(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ct$9({token:e,factory:e.\u0275fac})}return e})();function Qw(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Rr$5(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function Zw(e,t,n){let r=t.get(Kw),o=()=>r.remove(e);return r.add(e,n),o}function Yw(e){return (t,n)=>Zw(t,n,e)}var Kw=(()=>{class e{buckets=new Map;callbackBucket=new Map;applicationRef=D$l(tr$5);ngZone=D$l($$b);idleService=D$l(mp$1);add(n,r){let o=Uf$2(r);this.callbackBucket.set(n,o);let i=this.buckets.get(o);i==null&&(i={idleId:null,queue:new Set},this.buckets.set(o,i)),i.queue.add(n),this.scheduleBucket(i,r);}remove(n){let r=this.callbackBucket.get(n);if(r===void 0)return;this.callbackBucket.delete(n);let o=this.buckets.get(r);o&&(o.queue.delete(n),o.queue.size===0&&(this.cancelBucket(o),this.buckets.delete(r)));}scheduleBucket(n,r){if(n.idleId!==null)return;let o=Uf$2(r),i=s=>{this.cancelBucket(n);for(let a of n.queue)if(a(),this.applicationRef._tick(),n.queue.delete(a),this.callbackBucket.delete(a),s&&s.timeRemaining()===0&&!s.didTimeout)break;n.queue.size>0?this.scheduleBucket(n,r):this.buckets.delete(o);};n.idleId=this.idleService.requestOnIdle(s=>this.ngZone.run(()=>i(s)),r);}cancelBucket(n){n.idleId!==null&&(this.idleService.cancelOnIdle(n.idleId),n.idleId=null);}ngOnDestroy(){for(let n of this.buckets.values())this.cancelBucket(n);this.buckets.clear(),this.callbackBucket.clear();}static \u0275prov=G$f({token:e,providedIn:"root",factory:()=>new e})}return e})();
5function Uf$2(e){return !e||e.timeout==null?"":`${e.timeout}`}function Jw(e){let t=g$d(),n=F$d();if(Sl$2(t,n),!Nl$2(0,t))return;let r=t[H$c],o=Nt$9(t,n),i=e(()=>xl$2(0,t,n),r);Ml$2(0,o,i);}function mg$1(e,t,n){let r=t[H$c],o=t[v$d];if(e.loadingState!==ce$b.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=Nt$9(t,n),s=Pw(o,e);e.loadingState=ce$b.IN_PROGRESS,Mi$3(1,i);let a=e.dependencyResolverFn,c=r.get(yi$4).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(l=>{let u=false,p=[],f=[];for(let h=0;h<l.length;h++){let m=l[h];if(m.status==="fulfilled"){let T=m.value,N=qe$8(T)||Wo$3(T);if(N)p.push(N);else {let B=la$3(T);B&&f.push(B);}}else {u=true,m.reason instanceof Error?m.reason:new Error(String(m.reason));break}}if(u){if(e.loadingState=ce$b.FAILED,e.errorTmplIndex===null){let m="",T=new _$7(-750,m);ll$2(t,T);}}else {e.loadingState=ce$b.COMPLETE;let h=s.tView;if(p.length>0){h.directiveRegistry=Hf$2(h.directiveRegistry,p);let m=p.map(N=>N.type),T=Jo$3(false,...m);e.providers=T;}f.length>0&&(h.pipeRegistry=Hf$2(h.pipeRegistry,f));}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c();})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=ce$b.COMPLETE,c();}),e.loadingPromise)}function xl$2(e,t,n){let r=t[v$d],o=t[n.index];if(!Nl$2(e,t))return;let i=Nt$9(t,n),s=er$5(r,n);switch(ug$1(i),s.loadingState){case ce$b.NOT_STARTED:_t$a(q$f.Loading,n,o),mg$1(s,t,n),s.loadingState===ce$b.IN_PROGRESS&&$f$2(s,n,o);break;case ce$b.IN_PROGRESS:_t$a(q$f.Loading,n,o),$f$2(s,n,o);break;case ce$b.COMPLETE:_t$a(q$f.Complete,n,o);break;case ce$b.FAILED:_t$a(q$f.Error,n,o);break;}}function Al$2(e,t,n){return qf$2(t,n)}function Xw(e){return e!=null&&(e&1)===1}function qf$2(e,t){let n=e[H$c],r=er$5(e[v$d],t),o=qc$1(n),i=Xw(r.flags),a=Nt$9(e,t)[Nw]!==null;return !(i&&a&&o)}function eT(e,t,n,r,o,i,s,a,c,l){let u=g$d(),d=O$g(),p=e+R$g,f=dn$4(u,d,e,null,0,0),h=u[H$c],m=qc$1(h);if(d.firstCreatePass){le$a("NgDefer");let nr={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:ce$b.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:0};kw(d,p,nr);}let T=u[p];let N=null,B=null;if(T[vt$a]?.length>0){let nr=T[vt$a][0].data;B=nr[$c$1]??null,N=nr[Uc$1];}let xt=[null,Ur$3.Initial,null,null,null,null,B,N,null,null];Rw(u,p,xt);let ms=null;B!==null&&m&&(ms=h.get(Sp$2),ms.add(B,{lView:u,tNode:f,lContainer:T}));let Jl=()=>{ug$1(xt),B!==null&&ms?.cleanup([B]);};Ml$2(0,xt,()=>ii$6(u,Jl)),Fn$4(u,Jl);}function tT(e){let t=g$d(),n=wt$b();if(!Al$2(0,t,n))return;let r=Oe$a();if(J$j(t,r,e)){let o=E$8(null);try{let i=!!e,a=Nt$9(t,n)[Xn$2];i===!1&&a===Ur$3.Initial?Sl$2(t,n):i===!0&&(a===Ur$3.Initial||a===q$f.Placeholder)&&xl$2(0,t,n);}finally{E$8(o);}}}function nT(e){let t=g$d(),n=F$d();Al$2(0,t,n)&&Jw(Yw({timeout:e}));}function rT(e,t,n){let r=g$d(),o=F$d();Al$2(0,r,o)&&(Sl$2(r,o),Ww(r,o,e,t,$w,()=>xl$2(0,r,o),0,n));}function yg$1(e,t){let n=g$d(),r=Oe$a();if(J$j(n,r,t)){let o=O$g(),i=wt$b();if(cs$1(i,o,n,e,t))ze$a(i)&&Eh$1(n,i.index);else {let a=ie$i(i,n);Dh$1(n[k$e],a,null,i.value,e,t,null);}}return yg$1}function vg$1(e,t,n,r){let o=g$d(),i=Oe$a();if(J$j(o,i,t)){O$g();let a=wt$b();VE(a,o,e,t,n,r);}return vg$1}function Si$3(e){if(le$a("NgAnimateEnter"),!Zr$4)return Si$3;let t=g$d();if(Zp$2(t))return Si$3;let n=F$d(),r=t[H$c].get($$b);return Xp$2(Df$2(t),n,()=>oT(t,n,e,r)),ah$2(t[H$c]),ch$2(t[H$c],Df$2(t)),Si$3}function oT(e,t,n,r){let o=ie$i(t,e),i=e[k$e],s=Jp$2(n),a=[],c=false,l=d=>{if(Lr$4(d)!==o)return;let p=d instanceof AnimationEvent?"animationend":"transitionend";r.runOutsideAngular(()=>{i.listen(o,p,u);});},u=d=>{Lr$4(d)===o&&(Kc$1(d,o)&&(c=true),iT(d,o,i));};if(s&&s.length>0){r.runOutsideAngular(()=>{a.push(i.listen(o,"animationstart",l)),a.push(i.listen(o,"transitionstart",l));}),tE(o,s,a);for(let d of s)i.addClass(o,d);r.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(!c&&(nh$1(o,tn$4,Zr$4),!tn$4.has(o))){for(let d of s)i.removeClass(o,d);Yc$1(o);}});});}}function iT(e,t,n){let r=Wn$2.get(t);if(!(Lr$4(e)!==t||!r)&&Kc$1(e,t)){e.stopPropagation();for(let o of r.classList)n.removeClass(t,o);Yc$1(t);}}function Ni$3(e){if(le$a("NgAnimateLeave"),!Zr$4)return Ni$3;let t=g$d();if(Zp$2(t))return Ni$3;let r=F$d(),o=t[H$c].get($$b);return Xp$2(es$1(t),r,()=>sT(t,r,e,o)),ah$2(t[H$c]),Ni$3}function sT(e,t,n,r){let{promise:o,resolve:i}=ja$2(),s=ie$i(t,e),a=e[k$e];an$4.add(e[Re$a]),(es$1(e).get(t.index).resolvers??=[]).push(i);let c=Jp$2(n);return c&&c.length>0?aT(s,t,e,c,a,r):i(),{promise:o,resolve:i}}function aT(e,t,n,r,o,i){rE(e,o);let s=[],a=es$1(n).get(t.index)?.resolvers,c,l=false,u=d=>{if(!(Lr$4(d)!==e&&d.type!=="animation-fallback")&&(d.type==="animation-fallback"||Kc$1(d,e))){if(l=true,c&&clearTimeout(c),d.type!=="animation-fallback"&&d.stopPropagation(),tn$4.delete(e),Ef$2(t,e),Array.isArray(t.projection))for(let f of r)o.removeClass(e,f);wf$2(a,s),Tf$2(n,t);}};i.runOutsideAngular(()=>{s.push(o.listen(e,"animationend",u)),s.push(o.listen(e,"transitionend",u));}),Kp$2(t,e);for(let d of r)o.addClass(e,d);i.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(l)return;nh$1(e,tn$4,Zr$4);let d=tn$4.get(e);d?(c=setTimeout(()=>{u(new CustomEvent("animation-fallback"));},d.duration+50),s.push(()=>clearTimeout(c))):(Ef$2(t,e),wf$2(a,s),Tf$2(n,t));});});}function cT(){return g$d()[ne$f][U$d]}var Nc$1=class Nc{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s);}else this.attach(r,i);}move(t,n){this.attach(n,this.detach(t));}};function Ka$2(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function lT(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){E$8(r);let l=t.length-1;for(E$8(null);s<=a&&s<=l;){let u=e.at(s),d=t[s],p=Ka$2(s,u,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[l],m=Ka$2(a,f,l,h,n);if(m!==0){m<0&&e.updateValue(a,h),a--,l--;continue}let T=n(s,u),N=n(a,f),B=n(s,d);if(Object.is(B,N)){let xt=n(l,h);Object.is(xt,T)?(e.swap(s,a),e.updateValue(a,h),l--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new zi$2,i??=Gf$2(e,s,a,n),xc$1(e,o,s,B))e.updateValue(s,d),s++,a++;else if(i.has(B))o.set(T,e.detach(s)),a--;else {let xt=e.create(s,t[s]);e.attach(s,xt),s++,a++;}}for(;s<=l;)Wf$2(e,o,n,s,t[s]),s++;}else if(t!=null){E$8(r);let l=t[Symbol.iterator]();E$8(null);let u=l.next();for(;!u.done&&s<=a;){let d=e.at(s),p=u.value,f=Ka$2(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,u=l.next();else {o??=new zi$2,i??=Gf$2(e,s,a,n);let h=n(s,p);if(xc$1(e,o,s,h))e.updateValue(s,p),s++,a++,u=l.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,u=l.next();else {let m=n(s,d);o.set(m,e.detach(s)),a--;}}}for(;!u.done;)Wf$2(e,o,n,e.length,u.value),u=l.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(l=>{e.destroy(l);});}function xc$1(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function Wf$2(e,t,n,r,o){if(xc$1(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function Gf$2(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var zi$2=class zi{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}
5delete(t){if(!this.has(t))return  false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function uT(e,t,n,r,o,i,s,a){le$a("NgControlFlow");let c=g$d(),l=O$g(),u=he$b(l.consts,i);return dn$4(c,l,e,t,n,r,o,u,256,s,a),Rl$2}function Rl$2(e,t,n,r,o,i,s,a){le$a("NgControlFlow");let c=g$d(),l=O$g(),u=he$b(l.consts,i);return dn$4(c,l,e,t,n,r,o,u,512,s,a),Rl$2}function dT(e,t){le$a("NgControlFlow");let n=g$d(),r=Oe$a(),o=n[r]!==Y$f?n[r]:-1,i=o!==-1?Qi$4(n,R$g+o):void 0,s=0;if(J$j(n,r,e)){let a=E$8(null);try{if(i!==void 0&&fl$2(i,s),e!==-1){let c=R$g+e,l=Qi$4(n,c),u=Oc$1(n[v$d],c),d=Oh$1(l,u,n),p=Yn$2(n,u,t,{dehydratedView:d});Kn$2(l,p,s,ln$3(u,d));}}finally{E$8(a);}}else if(i!==void 0){let a=Rh$1(i,s);a!==void 0&&(a[U$d]=t);}}var Ac$1=class Ac{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-j$g}};function fT(e){return e}function pT(e,t){return t}var Rc$1=class Rc{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function hT(e,t,n,r,o,i,s,a,c,l,u,d,p){le$a("NgControlFlow");let f=g$d(),h=O$g(),m=c!==void 0,T=g$d(),N=a?s.bind(T[ne$f][U$d]):s,B=new Rc$1(m,N);T[R$g+e]=B,dn$4(f,h,e+1,t,n,r,o,he$b(h.consts,i),256),m&&dn$4(f,h,e+2,c,l,u,d,he$b(h.consts,p),512);}var kc$1=class kc extends Nc$1{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-j$g}at(t){return this.getLView(t)[U$d].$implicit}attach(t,n){let r=n[Qt$9];this.needsIndexUpdate||=t!==this.length,Kn$2(this.lContainer,n,t,ln$3(this.templateTNode,r)),mT(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,yT(this.lContainer,t),vT(this.lContainer,t)}create(t,n){let r=Vi$3(this.lContainer,this.templateTNode.tView.ssrId);return Yn$2(this.hostLView,this.templateTNode,new Ac$1(this.lContainer,n,t),{dehydratedView:r})}destroy(t){os$1(t[v$d],t);}updateValue(t,n){this.getLView(t)[U$d].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[U$d].$index=t;}getLView(t){return IT(this.lContainer,t)}};function gT(e){let t=E$8(null),n=Te$b();try{let r=g$d(),o=r[v$d],i=r[n],s=n+1,a=Qi$4(r,s);if(i.liveCollection===void 0){let l=Oc$1(o,s);i.liveCollection=new kc$1(a,r,l);}else i.liveCollection.reset();let c=i.liveCollection;if(lT(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let l=Oe$a(),u=c.length===0;if(J$j(r,l,u)){let d=n+2,p=Qi$4(r,d);if(u){let f=Oc$1(o,d),h=Oh$1(p,f,r),m=Yn$2(r,f,void 0,{dehydratedView:h});Kn$2(p,m,0,ln$3(f,h));}else o.firstUpdatePass&&cD(p),fl$2(p,0);}}}finally{E$8(t);}}function Qi$4(e,t){return e[t]}function mT(e,t){if(e.length<=j$g)return;let n=j$g+t,r=e[n],o=r?r[Ie$8]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[H$c];dE(i,o),an$4.delete(r[Re$a]),o.detachedLeaveAnimationFns=void 0;}}function yT(e,t){if(e.length<=j$g)return;let n=j$g+t,r=e[n],o=r?r[Ie$8]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function vT(e,t){return jr$4(e,t)}function IT(e,t){return Rh$1(e,t)}function Oc$1(e,t){return Pn$3(e,t)}function Ig$1(e,t,n){let r=g$d(),o=Oe$a();if(J$j(r,o,t)){O$g();let s=wt$b();vh$1(s,r,e,t,r[k$e],n);}return Ig$1}function Lc$1(e,t,n,r,o){cs$1(t,e,n,o?"class":"style",r);}function Zi$3(e,t,n,r){let o=g$d(),i=o[v$d],s=e+R$g,a=i.firstCreatePass?gl$2(s,o,2,t,sl$2,si$6(),n,r):i.data[s];if(ze$a(a)){let c=o[Ae$9].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOff
5set];return c.componentCreate(Fh$1(l),()=>(zf$2(e,t,o,a,r),Zi$3))}}return zf$2(e,t,o,a,r),Zi$3}function zf$2(e,t,n,r,o){if(al$2(r,n,e,t,wg$1),On$3(r)){let i=n[v$d];as$1(i,n,r),Wc$1(i,r,n);}o!=null&&Kr$4(n,r);}function kl$2(){let e=O$g(),t=F$d(),n=cl$2(t);return e.firstCreatePass&&ml$2(e,n),Ma$1(n)&&Sa$2(),Ca$2(),n.classesWithoutHost!=null&&Mv$1(n)&&Lc$1(e,n,g$d(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&Sv$1(n)&&Lc$1(e,n,g$d(),n.stylesWithoutHost,false),kl$2}function Eg$1(e,t,n,r){return Zi$3(e,t,n,r),kl$2(),Eg$1}function Ol$2(e,t,n,r){let o=g$d(),i=o[v$d],s=e+R$g,a=i.firstCreatePass?PD(s,i,2,t,n,r):i.data[s];return al$2(a,o,e,t,wg$1),r!=null&&Kr$4(o,a),Ol$2}function Ll$2(){let e=F$d(),t=cl$2(e);return Ma$1(t)&&Sa$2(),Ca$2(),Ll$2}function Dg$1(e,t,n,r){return Ol$2(e,t,n,r),Ll$2(),Dg$1}var wg$1=(e,t,n,r,o)=>(Mr$5(true),Hp$2(t[k$e],r,Fa$2()));function Pl$2(e,t,n){let r=g$d(),o=r[v$d],i=e+R$g,s=o.firstCreatePass?gl$2(i,r,8,"ng-container",sl$2,si$6(),t,n):o.data[i];if(al$2(s,r,e,"ng-container",ET),On$3(s)){let a=r[v$d];as$1(a,r,s),Wc$1(a,s,r);}return n!=null&&Kr$4(r,s),Pl$2}function Fl$2(){let e=O$g(),t=F$d(),n=cl$2(t);return e.firstCreatePass&&ml$2(e,n),Fl$2}function Tg$1(e,t,n){return Pl$2(e,t,n),Fl$2(),Tg$1}var ET=(e,t,n,r,o)=>(Mr$5(true),AI(t[k$e],""));function DT(){return g$d()}function bg$1(e,t,n){let r=g$d(),o=Oe$a();if(J$j(r,o,t)){O$g();let s=wt$b();Ih$1(s,r,e,t,r[k$e],n);}return bg$1}var Nr$4=void 0;function wT(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var TT=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Nr$4,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Nr$4,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Nr$4,Nr$4,Nr$4],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",wT],Ja$2=Object.create(null);function bT(e){let t=_T(e),n=Qf$2(t);if(n)return n;let r=t.split("-")[0];if(n=Qf$2(r),n)return n;if(r==="en")return TT;throw new _$7(701,false)}function Qf$2(e){if(!(e in Ja$2)){let t=We$a.ng&&We$a.ng.common&&We$a.ng.common.locales&&We$a.ng.common.locales[e];return t!==void 0&&(Ja$2[e]=t),t}return Ja$2[e]}var CT={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,Currencies:18,ExtraData:21};function _T(e){return e.toLowerCase().replace(/_/g,"-")}var Xr$4="en-US",MT="USD";function Cg$1(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function _g$1(e,t,n){let r=g$d(),o=O$g(),i=F$d();return Sg$1(o,r,r[k$e],i,e,t,n),_g$1}function Mg$1(e,t,n){let r=g$d(),o=O$g(),i=F$d();return (i.type&3||n)&&hl$2(i,o,r,n,r[k$e],e,t,rn$4(i,r,t)),Mg$1}function Sg$1(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=rn$4(r,t,i),hl$2(r,e,t,s,n,o,i,c)&&(a=false)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=rn$4(r,t,i),Hi$3(r,t,p,f,o,c);}if(l&&l.length)for(let d of l)c??=rn$4(r,t,i),Hi$3(r,t,d,o,o,c);}}function NT(e=1){return Ud$2(e)}function xT(e,t){let n=null,r=GI(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?zp$2(e,i,true):ZI(r,i))return o}return n}function AT(e){let t=g$d()[ne$f][te$f];if(!t.projection){let n=e?e.length:1,r=t.projection=vd$2(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?xT(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function RT(e,t=0,n,r,o,i){let s=g$d(),a=O$g(),c=null;let l=hn$3(a,R$g+e,16,null,null);l.projection===null&&(l.projection=t),Aa$1();let d=!s[Qt$9]||_a$2();s[ne$f][te$f].projection[l.projection]===null&&c!==null?kT(s,a,c):d&&!Ki$3(l)&&CE(a,s,l);}function kT(e,t,n){let r=R$g+n,o=t.data[r],i=e[r],s=Vi$3(i,o.tView.ssrId),a=Yn$2(e,o,void 0,{dehydratedView:s});Kn$2(i,a,0,ln$3(o,s));}function Ng$1(e,t,n,r){return Kh$1(e,t,n,r),Ng$1}
vendor: 9,579 bytes, line 5
5function xg$1(e,t,n){return Yh$1(e,t,n),xg$1}function OT(e){let t=g$d(),n=O$g(),r=ci$6();_r$5(r+1);let o=vl$2(n,r);if(e.dirty&&Md$2(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Xh$1(t,r);e.reset(i,yp$2),e.notifyOnChanges();}return  true}return  false}function LT(){return yl$2(g$d(),ci$6())}function Ag$1(e,t,n,r,o){return tg(t,Kh$1(e,n,r,o)),Ag$1}function Rg$1(e,t,n,r){return tg(e,Yh$1(t,n,r)),Rg$1}function PT(e=1){_r$5(ci$6()+e);}function FT(e){let t=Ra$2();return Et$9(t,R$g+e)}function wi$3(e,t){return e<<17|t<<2}function fn$3(e){return e>>17&32767}function jT(e){return (e&2)==2}function VT(e,t){return e&131071|t<<17}function Pc$1(e){return e|2}function zn$2(e){return (e&131068)>>2}function Xa$2(e,t){return e&-131069|t<<2}function HT(e){return (e&1)===1}function Fc$1(e){return e|1}function BT(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=fn$3(s),c=zn$2(s);e[r]=n;let l=false,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||xn$3(d,u)>0)&&(l=true);}else u=n;if(o)if(c!==0){let p=fn$3(e[a+1]);e[r+1]=wi$3(p,a),p!==0&&(e[p+1]=Xa$2(e[p+1],r)),e[a+1]=VT(e[a+1],r);}else e[r+1]=wi$3(a,0),a!==0&&(e[a+1]=Xa$2(e[a+1],r)),a=r;else e[r+1]=wi$3(c,0),a===0?a=r:e[c+1]=Xa$2(e[c+1],r),c=r;l&&(e[r+1]=Pc$1(e[r+1])),Zf$2(e,u,r,true),Zf$2(e,u,r,false),$T(t,u,e,r,i),s=wi$3(a,c),i?t.classBindings=s:t.styleBindings=s;}function $T(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&xn$3(i,t)>=0&&(n[r+1]=Fc$1(n[r+1]));}function Zf$2(e,t,n,r){let o=e[n+1],i=t===null,s=r?fn$3(o):zn$2(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],l=e[s+1];UT(c,t)&&(a=true,e[s+1]=r?Fc$1(l):Pc$1(l)),s=r?fn$3(l):zn$2(l);}a&&(e[n+1]=r?Pc$1(o):Fc$1(o));}function UT(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?xn$3(e,t)>=0:false}var Pe$9={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qT(e){return e.substring(Pe$9.key,Pe$9.keyEnd)}function WT(e){return GT(e),kg$1(e,Og$1(e,0,Pe$9.textEnd))}function kg$1(e,t){let n=Pe$9.textEnd;return n===t?-1:(t=Pe$9.keyEnd=zT(e,Pe$9.key=t,n),Og$1(e,t,n))}function GT(e){Pe$9.key=0,Pe$9.keyEnd=0,Pe$9.value=0,Pe$9.valueEnd=0,Pe$9.textEnd=e.length;}function Og$1(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function zT(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Lg$1(e,t,n){return Fg$1(e,t,n,false),Lg$1}function Pg$1(e,t){return Fg$1(e,t,null,true),Pg$1}function QT(e){YT(nb,ZT,e,true);}function ZT(e,t){for(let n=WT(t);n>=0;n=kg$1(t,n))Zo$3(e,qT(t),true);}function Fg$1(e,t,n,r){let o=g$d(),i=O$g(),s=Cr$5(2);if(i.firstUpdatePass&&Vg$1(i,e,s,r),t!==Y$f&&J$j(o,s,t)){let a=i.data[Te$b()];Hg$1(i,a,o,o[k$e],e,o[s+1]=ob(t,n),r,s);}}function YT(e,t,n,r){let o=O$g(),i=Cr$5(2);o.firstUpdatePass&&Vg$1(o,null,i,r);let s=g$d();if(n!==Y$f&&J$j(s,i,n)){let a=o.data[Te$b()];if(Bg$1(a,r)&&!jg$1(o,i)){let c=a.classesWithoutHost;c!==null&&(n=$o$2(c,n||"")),Lc$1(o,a,s,n,r);}else rb(o,a,s,s[k$e],s[i+1],s[i+1]=tb(e,t,n),r,i);}}function jg$1(e,t){return t>=e.expandoStartIndex}function Vg$1(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Te$b()],s=jg$1(e,n);Bg$1(i,r)&&t===null&&!s&&(t=false),t=KT(o,i,t,r),BT(o,i,t,n,s,r);}}function KT(e,t,n,r){let o=Vd$2(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ec$1(null,e,t,n,r),n=qr$4(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ec$1(o,e,t,n,r),i===null){let c=JT(e,t,r);c!==void 0&&Array.isArray(c)&&(c=ec$1(null,e,t,c[1],r),c=qr$4(c,t.attrs,r),XT(e,t,r,c));}else i=eb(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function JT(e,t,n){let r=n?t.classBindings:t.styleBindings;if(zn$2(r)!==0)return e[fn$3(r)]}function XT(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[fn$3(o)]=r;}function eb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=qr$4(r,s,n);}return qr$4(r,t.attrs,n)}function ec$1(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=qr$4(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function qr$4(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Zo$3(e,s,n?true:t[++i]));}return e===void 0?null:e}function tb(e,t,n){if(n==null||n==="")return ee$d;let r=[],o=Zn$2(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function nb(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Zo$3(e,r,n);}function rb(e,t,n,r,o,i,s,a){o===Y$f&&(o=ee$d);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&&Hg$1(e,t,n,r,h,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null;}}function Hg$1(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=HT(l)?Yf$2(c,t,n,o,zn$2(l),s):void 0;if(!Yi$3(u)){Yi$3(i)||jT(l)&&(i=Yf$2(c,null,n,o,a,s));let d=ti$6(Te$b(),n);ME(r,s,d,o,i);}}function Yf$2(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===Y$f&&(p=d?ee$d:void 0);let f=d?Yo$2(p,r):u===r?p:void 0;if(l&&!Yi$3(f)&&(f=Yo$2(c,r)),Yi$3(f)&&(a=f,s))return a;let h=e[o+1];o=s?fn$3(h):zn$2(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Yo$2(c,r));}return a}function Yi$3(e){return e!==void 0}function ob(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=vr$5(Zn$2(e)))),e}function Bg$1(e,t){return (e.flags&(t?8:16))!==0}function ib(e,t=""){let n=g$d(),r=O$g(),o=e+R$g,i=r.firstCreatePass?hn$3(r,o,1,t,null):r.data[o],s=sb(r,n,i,t);n[o]=s,di$5()&&tl$2(r,n,s,i),Xt$a(i,false);}var sb=(e,t,n,r)=>(Mr$5(true),NI(t[k$e],r));function $g$1(e,t,n,r=""){return J$j(e,Oe$a(),n)?t+Ne$a(n)+r:Y$f}function ab(e,t,n,r,o,i=""){let s=Oa$2(),a=Br$4(e,s,n,o);return Cr$5(2),a?t+Ne$a(n)+r+Ne$a(o)+i:Y$f}function cb(e,t,n,r,o,i,s,a=""){let c=Oa$2(),l=Vh$1(e,c,n,o,s);return Cr$5(3),l?t+Ne$a(n)+r+Ne$a(o)+i+Ne$a(s)+a:Y$f}function Ug$1(e){return jl$2("",e),Ug$1}function jl$2(e,t,n){let r=g$d(),o=$g$1(r,e,t,n);return o!==Y$f&&Vl$2(r,Te$b(),o),jl$2}function qg$1(e,t,n,r,o){let i=g$d(),s=ab(i,e,t,n,r,o);return s!==Y$f&&Vl$2(i,Te$b(),s),qg$1}function Wg$1(e,t,n,r,o,i,s){let a=g$d(),c=cb(a,e,t,n,r,o,i,s);return c!==Y$f&&Vl$2(a,Te$b(),c),Wg$1}function Vl$2(e,t,n){let r=ti$6(t,e);xI(e[k$e],r,n);}function Gg$1(e,t,n){mi$5(t)&&(t=t());let r=g$d(),o=Oe$a();if(J$j(r,o,t)){O$g();let s=wt$b();vh$1(s,r,e,t,r[k$e],n);}return Gg$1}function lb(e,t){let n=mi$5(e);return n&&e.set(t),n}function zg$1(e,t){let n=g$d(),r=O$g(),o=F$d();return Sg$1(r,n,n[k$e],o,e,t),zg$1}var Qg$1={};function Zg$1(e){le$a("NgLet");let t=O$g(),n=g$d(),r=e+R$g,o=hn$3(t,r,128,null,null);return Xt$a(o,false),Tr$5(t,n,r,Qg$1),Zg$1}function ub(e){let t=O$g(),n=g$d(),r=Te$b();return Tr$5(t,n,r,e),e}function db(e){let t=Ra$2(),n=Et$9(t,R$g+e);if(n===Qg$1)throw new _$7(314,false);return n}function fb(e){return J$j(g$d(),Oe$a(),e)?Ne$a(e):Y$f}function pb(e,t,n=""){return $g$1(g$d(),e,t,n)}function Kf$2(e,t,n){let r=O$g();r.firstCreatePass&&Yg$1(t,r.data,r.blueprint,Qe$a(e),n);}function Yg$1(e,t,n,r,o){if(e=K$f(e),Array.isArray(e))for(let i=0;i<e.length;i++)Yg$1(e[i],t,n,r,o);else {let i=O$g(),s=g$d(),a=F$d(),c=qt$9(e)?e:K$f(e.provide),l=ma$2(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(qt$9(e)||!e.multi){let f=new on$4(l,o,Jr$4,null),h=nc$1(c,t,u+p,d);h===-1?(ic$1(Oi$3(a,s),i,c),tc$1(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=nc$1(c,t,u+p,d),h=nc$1(c,t,u,u+p),m=f>=0&&n[f],T=h>=0&&n[h];if(!m){ic$1(Oi$3(a,s),i,c);let N=mb(hb,n.length,o,r,l);T&&(n[h].providerFactory=N),tc$1(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(N),s.push(N);}else {let N=Kg$1(n[f],l,r);tc$1(i,e,f>-1?f:h,N);}r&&T&&n[h].componentProviders++;}}}function tc$1(e,t,n,r){let o=qt$9(t),i=Td$2(t);if(o||i){let c=(i?K$f(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c);}else l.push(n,c);}}}function Kg$1(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nc$1(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return  -1}function hb(e,t,n,r,o){return jc$1(this.multi,[])}function jc$1(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function mb(e,t,n,r,o,i){let s=new on$4(e,n,Jr$4,null);return s.multi=[],s.index=t,s.componentProviders=0,Kg$1(s,o,r&&!n),s}function yb(e,t){return n=>{n.providersResolver=(r,o)=>Kf$2(r,o?o(e):e,false);}}function vb(e,t){let n=ke$a()+e,r=g$d();return r[n]===Y$f?Jn$2(r,n,t()):hD(r,n)}function Ib(e,t,n){return Jg$1(g$d(),ke$a(),e,t,n)}function Eb(e,t,n,r){return Xg$1(g$d(),ke$a(),e,t,n,r)}function Db(e,t,n,r,o){return em$2(g$d(),ke$a(),e,t,n,r,o)}function wb(e,t,n,r,o,i,s){return tm$2(g$d(),ke$a(),e,t,n,r,o,i)}function eo$3(e,t){let n=e[t];return n===Y$f?void 0:n}function Jg$1(e,t,n,r,o,i){let s=t+n;return J$j(e,s,o)?Jn$2(e,s+1,i?r.call(i,o):r(o)):eo$3(e,s+1)}function Xg$1(e,t,n,r,o,i,s){let a=t+n;return Br$4(e,a,o,i)?Jn$2(e,a+2,s?r.call(s,o,i):r(o,i)):eo$3(e,a+2)}function em$2(e,t,n,r,o,i,s,a){let c=t+n;
5return Vh$1(e,c,o,i,s)?Jn$2(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):eo$3(e,c+3)}function tm$2(e,t,n,r,o,i,s,a,c){let l=t+n;return gD(e,l,o,i,s,a)?Jn$2(e,l+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):eo$3(e,l+4)}function Tb(e,t,n,r,o,i){let s=t+n,a=false;for(let c=0;c<o.length;c++)J$j(e,s++,o[c])&&(a=true);return a?Jn$2(e,s,r.apply(i,o)):eo$3(e,s)}function bb(e,t){let n=O$g(),r,o=e+R$g;n.firstCreatePass?(r=Cb(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=pt$8(r.type)),a=oe$a(Jr$4);try{let c=ki$3(!1),l=i();return ki$3(c),Tr$5(n,g$d(),o,l),l}finally{oe$a(a);}}function Cb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function _b(e,t,n){let r=e+R$g,o=g$d(),i=Et$9(o,r);return to$3(o,r)?Jg$1(o,ke$a(),t,i.transform,n,i):i.transform(n)}function Mb(e,t,n,r){let o=e+R$g,i=g$d(),s=Et$9(i,o);return to$3(i,o)?Xg$1(i,ke$a(),t,s.transform,n,r,s):s.transform(n,r)}function Sb(e,t,n,r,o){let i=e+R$g,s=g$d(),a=Et$9(s,i);return to$3(s,i)?em$2(s,ke$a(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Nb(e,t,n,r,o,i){let s=e+R$g,a=g$d(),c=Et$9(a,s);return to$3(a,s)?tm$2(a,ke$a(),t,c.transform,n,r,o,i,c):c.transform(n,r,o,i)}function xb(e,t,n){let r=e+R$g,o=g$d(),i=Et$9(o,r);return to$3(o,r)?Tb(o,ke$a(),t,i.transform,n,i):i.transform.apply(i,n)}function to$3(e,t){return e[v$d].data[t].pure}function Ab(e,t){return ls$1(e,t)}var nm$2=(()=>{class e{applicationErrorHandler=D$l(bt$b);appRef=D$l(tr$5);taskService=D$l(Tt$9);ngZone=D$l($$b);zonelessEnabled=D$l(Hn$2);tracing=D$l(pn$3,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new W$f;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(gr$4):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(D$l(pi$5,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Qd$2:Ba$1;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(gr$4+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ct$9({token:e,factory:e.\u0275fac})}return e})();function rm$2(){return [{provide:Se$d,useExisting:nm$2},{provide:$$b,useClass:mr$4},{provide:Hn$2,useValue:true}]}var Rb=(()=>{class e{compileModuleSync(n){return new Gi$3(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ct$9({token:e,factory:e.\u0275fac})}return e})();function kb(){return typeof $localize<"u"&&$localize.locale||Xr$4}var Hl$2=new M$g("",{factory:()=>D$l(Hl$2,{optional:true,skipSelf:true})||kb()}),Ob=new M$g("",{factory:()=>MT});var no$3=class no{destroyed=false;listeners=null;errorHandler=D$l(ot$a,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=D$l(st$b);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new _$7(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(yr$5(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=E$8(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&Lb(this.listeners)),E$8(n),this.isEmitting=false;}}};
5function Lb(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function xP(e){return e.destroyRef}function Pb(e,t){return ur$4(e,t?.equal)}function Fb(e){return od$2(e)}var jb=e=>e;function Vb(e,t){if(typeof e=="function"){let n=qs$2(e,jb,t?.equal);return om$2(n)}else {let n=qs$2(e.source,e.computation,e.equal);return om$2(n,e.debugName)}}function om$2(e,t){let n=e[V$f],r=e;return r.set=o=>nd$2(n,o),r.update=o=>rd$3(n,o),r.asReadonly=Sr$5.bind(e),r}var gs$2=Symbol("InputSignalNode#UNSET"),hm$2=E$9(D$m({},dr$4),{transformFn:void 0,applyValueToInputSignal(e,t){ft$9(e,t);}});function gm$2(e,t){let n=Object.create(hm$2);n.value=e,n.transformFn=t?.transform;function r(){if(Je$8(n),n.value===gs$2){let o=null;throw new _$7(-950,o)}return n.value}return r[V$f]=n,r}var im$2=class im{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>gp$1(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function FV(e){return Hb(e)?e.default:e}function Hb(e){return e&&typeof e=="object"&&"default"in e}function jV(e){return new no$3}function sm$2(e,t){return gm$2(e,t)}function Bb(e){return gm$2(gs$2,e)}var VV=(sm$2.required=Bb,sm$2);function mm$2(e,t){let n=Object.create(hm$2),r=new no$3;n.value=e;function o(){return Je$8(n),am$2(n.value),n.value}return o[V$f]=n,o.asReadonly=Sr$5.bind(o),o.set=i=>{n.equal(n.value,i)||(ft$9(n,i),r.emit(i));},o.update=i=>{am$2(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function am$2(e){if(e===gs$2)throw new _$7(952,false)}function cm$2(e,t){return mm$2(e)}function $b(e){return mm$2(gs$2)}var HV=(cm$2.required=$b,cm$2);function lm$2(e,t){return El$2()}function Ub(e,t){return Dl$2()}var BV=(lm$2.required=Ub,lm$2);function $V(e,t){return eg$1()}function um$2(e,t){return El$2()}function qb(e,t){return Dl$2()}var UV=(um$2.required=qb,um$2);var $l$2=class $l{supports(t){return pl$2(t)}create(t){return new Ul$2(t)}},Gb=(e,t)=>t,Ul$2=class Ul{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(t){this._trackByFn=t||Gb;}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n);}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<dm$2(r,o,i)?n:r,a=dm$2(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._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&&t(s,a,c);}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n);}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n);}diff(t){if(t==null&&(t=[]),!pl$2(t))throw new _$7(900,false);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=false,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=true):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next;}else o=0,jh$1(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=true):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++;}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null;}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.
5item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ql$2(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n;}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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new hs$1),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new hs$1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},ql$2=class ql{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(t,n){this.item=t,this.trackById=n;}},Wl$2=class Wl{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t);}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},hs$1=class hs{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Wl$2,this.map.set(n,r)),r.add(t);}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear();}};function dm$2(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var Gl$2=class Gl{supports(t){return t instanceof Map||us$1(t)}create(){return new zl$2}},zl$2=class zl{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n);}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n);}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;
5n=n._nextAdded)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||us$1(t)))throw new _$7(900,false);return this.check(t)?this:null}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else {let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i);}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null;}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Ql$2(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null;}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t));}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t);}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t);}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r));}},Ql$2=class Ql{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t;}};function fm$2(){return new zb([new $l$2])}var zb=(()=>{class e{factories;static \u0275prov=G$f({token:e,providedIn:"root",factory:fm$2});constructor(n){this.factories=n;}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=D$l(e,{optional:true,skipSelf:true});return e.create(n,r||fm$2())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new _$7(901,false)}}return e})();function pm$2(){return new Qb([new Gl$2])}var Qb=(()=>{class e{static \u0275prov=G$f({token:e,providedIn:"root",factory:pm$2});factories;constructor(n){this.factories=n;}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=D$l(e,{optional:true,skipSelf:true});return e.create(n,r||pm$2())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new _$7(901,false)}}return e})(),WV=(()=>{class e{static __NG_ELEMENT_ID__=Zb}return e})();function Zb(e){return Yb(F$d(),g$d(),(e&16)===16)}function Yb(e,t,n){if(ze$a(e)&&!n){let r=we$a(e.index,t);return new St$a(r,r)}else if(e.type&175){let r=t[ne$f];return new St$a(r,t)}return null}var Kb=(()=>{class e{zone=D$l($$b);changeDetectionScheduler=D$l(Se$d);applicationRef=D$l(tr$5);applicationErrorHandler=D$l(bt$b);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(n){this.applicationErrorHandler(n);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ct$9({token:e,factory:e.\u0275fac})}return e})(),Jb=new M$g("",{factory:()=>false});function Xb({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new $$b(E$9(D$m({},ym$2()),{scheduleInRootZone:t})),[{provide:Hn$2,useValue:false},{provide:$$b,useFactory:e},{provide:zt$7,multi:true,useFactory:()=>{let n=D$l(Kb,{optional:true});return ()=>n.initialize()}},{provide:zt$7,multi:true,useFactory:()=>{let n=D$l(eC);return ()=>{n.initialize();}}},{provide:pi$5,useValue:Ha$2}]}function GV(e){let t=e?.scheduleInRootZone,n=Xb({ngZoneFactory:()=>{let r=ym$2(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&le$a("NgZone_CoalesceEvent"),new $$b(r)},scheduleInRootZone:t});return Ko$3([{provide:Jb,useValue:true},n])}function ym$2(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var eC=(()=>{class e{subscription=new W$f;initialized=false;zone=D$l($$b);pendingTasks=D$l(Tt$9);initialize(){if(this.initialized)return;this.initialized=true;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$$b.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$$b.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ct$9({token:e,factory:e.\u0275fac})}return e})();var Zl$2=new M$g(""),tC=new M$g("");function ro$3(e){return !e.moduleRef}function nC(e){let t=ro$3(e)?e.r3Injector:e.moduleRef.injector,n=t.get($$b);return n.run(()=>
5{ro$3(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(bt$b),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),ro$3(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Zl$2);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Zl$2);s.add(i),e.moduleRef.onDestroy(()=>{Rr$5(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return oC(r,n,()=>{let i=t.get(Tt$9),s=i.add(),a=t.get(Cl$2);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Hl$2,Xr$4);if(Cg$1(c||Xr$4),!t.get(tC,!0))return ro$3(e)?t.get(tr$5):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ro$3(e)){let u=t.get(tr$5);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return rC?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var rC;function oC(e,t,n){try{let r=n();return wl$2(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ps$2=null;function iC(e=[],t){return ye$7.create({name:t,providers:[{provide:ga$2,useValue:"platform"},{provide:Zl$2,useValue:new Set([()=>ps$2=null])},...e]})}function sC(e=[]){if(ps$2)return ps$2;let t=iC(e);return ps$2=t,gg$1(),aC(t),t}function aC(e){let t=e.get(Jd$2,null);Xo$3(e,()=>{t?.forEach(n=>n());});}function zV(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;L$a(A$d.BootstrapApplicationStart);try{let i=o?.injector??sC(r),s=[rm$2(),Yd$2,...n||[]],a=new $r$4({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return nC({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{L$a(A$d.BootstrapApplicationEnd);}}function QV(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ZV(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Bl$2=Symbol("NOT_SET"),vm$2=new Set,cC=E$9(D$m({},dr$4),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Bl$2,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==Bl$2&&!Bt$b(this))return this.signal;try{for(let o of this.cleanup??vm$2)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=$e$9(this),r;try{r=this.userFn.apply(null,t);}finally{Xe$6(this,n);}return (this.value===Bl$2||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Yl$2=class Yl extends Pr$3{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get(st$b),s),this.scheduler=o;for(let a of Jc$1){let c=n[a];if(c===void 0)continue;let l=Object.create(cC);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=true,l.signal=()=>(Je$8(l),l.value),l.signal[V$f]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??vm$2)n();}finally{et$d(t);}}};function YV(e,t){let n=t?.injector??D$l(ye$7),r=n.get(Se$d),o=n.get(ns$1),i=n.get(pn$3,null,{optional:true});o.impl??=n.get(Xc$1);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(Vn$3,null,{optional:true}),c=new Yl$2(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function KV(e,t){let n=qe$8(e),r=t.elementInjector||An$4();return new un$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function JV(e){let t=qe$8(e);if(!t)return null;let n=new un$3(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Dm$2=null;function Kl$2(){return Dm$2}function oH(e){Dm$2??=e;}var Em$2=class Em{},lC=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=G$f({token:e,factory:()=>D$l(uC),providedIn:"platform"})}return e})(),iH=new M$g(""),uC=(()=>{class e extends lC{_location;_history;_doc=D$l(jn$2);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return Kl$2().getBaseHref(this._doc)}onPopState(n){let r=Kl$2().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Kl$2().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n;}pushState(n,r,o){this._history.pushState(n,r,o);}replaceState(n,r,o){this._history.replaceState(n,r,o);}forward(){this._history.forward();}back(){this._history.back();}historyGo(n=0){this._history.go(n);}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=G$f({token:e,factory:()=>new e,providedIn:"platform"})}return e})();
5function aH(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var dC=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ct$9({token:e,factory:e.\u0275fac})}return e})(),cH=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=G$f({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=me$b(dC),o},providedIn:"root"})}return e})();var t$l=class e{constructor(){this.document=D$l(jn$2);}get available(){return !!this.consentManager}openPreferences(){this.consentManager?.showDrawer("osano-cm-dom-info-dialog-open");}get consentManager(){return this.document.defaultView?.Osano?.cm}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var e$l={Blog:"/blog",Research:"/research",ToolDescriptions:"/tool-descriptions",ReleaseNotes:"/release-notes"};var a$g=class t{static getDeviceType(){let e="ontouchstart"in window,i="TouchEvent"in window,o=e||i&&matchMedia("(any-pointer: coarse)").matches,n=(window.navigator.maxTouchPoints||0)>0||o,c=matchMedia("(pointer: coarse)").matches&&/iPad|Macintosh/.test(window.navigator.userAgent)&&Math.min(window.screen.width||0,window.screen.height||0)>=768,s=matchMedia("(any-pointer: fine)").matches||matchMedia("(any-hover: hover)").matches||c||!e,h=(matchMedia("(pointer: coarse)").matches||!matchMedia("(pointer: fine)").matches&&e)&&!/Windows.*Firefox/.test(window.navigator.userAgent);return n&&(s||!h)?"hybrid":n?"touchOnly":"mouseOnly"}static getPrimaryInput(){let e=t.getDeviceType();if(e==="mouseOnly")return "mouse";if(e==="touchOnly")return "touch";let i="ontouchstart"in window;return (matchMedia("(pointer: coarse)").matches||!matchMedia("(pointer: fine)").matches&&i)&&!/Windows.*Firefox/.test(window.navigator.userAgent)?"touch":"mouse"}static isTouchDevice(){let e=t.getDeviceType();return t.getPrimaryInput()==="touch"&&(e==="touchOnly"||e==="hybrid")}static getPixelRatio(){return window.devicePixelRatio?Math.ceil(+window.devicePixelRatio.toFixed(2)):1}setDeviceTypeAttribute(){document.body.setAttribute("deviceType",t.getDeviceType());}static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};function ne$e(e,i){return e?i?e.endsWith("/")?i.startsWith("/")?e+i.slice(1):e+i:i.startsWith("/")?e+i:`${e}/${i}`:e:i}function Qe$9(e){let i=e.search(/#|\?|$/);return e[i-1]==="/"?e.slice(0,i-1)+e.slice(i):e}function I$b(e){return e&&e[0]!=="?"?`?${e}`:e}var $$a=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=G$f({token:e,factory:()=>D$l(nt$c),providedIn:"root"})}return e})(),ie$h=new M$g(""),nt$c=(()=>{class e extends $$a{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??D$l(jn$2).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t));}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ne$e(this._baseHref,t)}path(t=false){let n=this._platformLocation.pathname+I$b(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+I$b(s));this._platformLocation.pushState(t,n,o);}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+I$b(s));this._platformLocation.replaceState(t,n,o);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t);}static \u0275fac=function(n){return new(n||e)(me$b(lC),me$b(ie$h,8))};static \u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var it$8=(()=>
5{class e{_subject=new de$c;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=Bt$a(Qe$9(et$c(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(true),pop:true,state:r.state,type:r.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(t=false){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+I$b(n))}normalize(t){return e.stripTrailingSlash(Pt$9(this._basePath,et$c(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+I$b(n)),r);}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+I$b(n)),r);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(t=0){this._locationStrategy.historyGo?.(t);}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state);}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n));}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=I$b;static joinWithSlash=ne$e;static stripTrailingSlash=Qe$9;static \u0275fac=function(n){return new(n||e)(me$b($$a))};static \u0275prov=G$f({token:e,factory:()=>Ot$8(),providedIn:"root"})}return e})();function Ot$8(){return new it$8(me$b($$a))}function Pt$9(e,i){if(!e||!i.startsWith(e))return i;let t=i.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function et$c(e){return e.replace(/\/index\.html$/,"")}function Bt$a(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var kt$8=(()=>{class e extends $$a{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t));}getBaseHref(){return this._baseHref}path(t=false){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=ne$e(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+I$b(s))||this._platformLocation.pathname;this._platformLocation.pushState(t,n,o);}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+I$b(s))||this._platformLocation.pathname;this._platformLocation.replaceState(t,n,o);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t);}static \u0275fac=function(n){return new(n||e)(me$b(lC),me$b(ie$h,8))};static \u0275prov=G$f({token:e,factory:e.\u0275fac})}return e})(),ct$8={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KGS:[void 0,"\u20C0"],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XCG:["Cg."],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},q$e=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(q$e||{});var F$c=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(F$c||{}),c$h=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(c$h||{}),_$6=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(_$6||{}),p$g={Decimal:0,Group:1,PercentSign:3,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function dt$7(e){return bT(e)[CT.LocaleId]}function lt$7(e,i,t){let n=bT(e),r=[n[CT.DayPeriodsFormat],n[CT.DayPeriodsStandalone]],s=v$c(r,
5i);return v$c(s,t)}function ft$8(e,i,t){let n=bT(e),r=[n[CT.DaysFormat],n[CT.DaysStandalone]],s=v$c(r,i);return v$c(s,t)}function ht$6(e,i,t){let n=bT(e),r=[n[CT.MonthsFormat],n[CT.MonthsStandalone]],s=v$c(r,i);return v$c(s,t)}function gt$9(e,i){let n=bT(e)[CT.Eras];return v$c(n,i)}function Z$8(e,i){let t=bT(e);return v$c(t[CT.DateFormat],i)}function Y$e(e,i){let t=bT(e);return v$c(t[CT.TimeFormat],i)}function K$e(e,i){let n=bT(e)[CT.DateTimeFormat];return v$c(n,i)}function b$a(e,i){let t=bT(e),n=t[CT.NumberSymbols][i];if(typeof n>"u"){if(i===p$g.CurrencyDecimal)return t[CT.NumberSymbols][p$g.Decimal];if(i===p$g.CurrencyGroup)return t[CT.NumberSymbols][p$g.Group]}return n}function fe$c(e,i){return bT(e)[CT.NumberFormats][i]}function xt$a(e){return bT(e)[CT.Currencies]}function Dt$a(e){if(!e[CT.ExtraData])throw new _$7(2303,false)}function pt$7(e){let i=bT(e);return Dt$a(i),(i[CT.ExtraData][2]||[]).map(n=>typeof n=="string"?we$9(n):[we$9(n[0]),we$9(n[1])])}function mt$8(e,i,t){let n=bT(e);Dt$a(n);let r=[n[CT.ExtraData][0],n[CT.ExtraData][1]],s=v$c(r,i)||[];return v$c(s,t)||[]}function v$c(e,i){for(let t=i;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new _$7(2304,false)}function we$9(e){let[i,t]=e.split(":");return {hours:+i,minutes:+t}}function Ct$8(e,i,t="en"){let n=xt$a(t)[e]||ct$8[e]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||e}var $t$7=2;function yt$8(e){let i,t=ct$8[e];return t&&(i=t[2]),typeof i=="number"?i:$t$7}var Ut$8=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,re$e={},zt$6=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,jt$7=256;function Ft$6(e,i,t,n){let r=Jt$8(e);Vt$9(i),i=O$f(t,i)||i;let o=[],a;for(;i;)if(a=zt$6.exec(i),a){o=o.concat(a.slice(1));let l=o.pop();if(!l)break;i=l;}else {o.push(i);break}let h=r.getTimezoneOffset();n&&(h=wt$a(n,h),r=qt$8(r,n));let f="";return o.forEach(l=>{let u=Kt$7(l);f+=u?u(r,t,h):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),f}function Vt$9(e){if(e.length>jt$7)throw new _$7(2300,false)}function ce$a(e,i,t){let n=new Date(0);return n.setFullYear(e,i,t),n.setHours(0,0,0),n}function O$f(e,i){let t=dt$7(e);if(re$e[t]??={},re$e[t][i])return re$e[t][i];let n="";switch(i){case "shortDate":n=Z$8(e,_$6.Short);break;case "mediumDate":n=Z$8(e,_$6.Medium);break;case "longDate":n=Z$8(e,_$6.Long);break;case "fullDate":n=Z$8(e,_$6.Full);break;case "shortTime":n=Y$e(e,_$6.Short);break;case "mediumTime":n=Y$e(e,_$6.Medium);break;case "longTime":n=Y$e(e,_$6.Long);break;case "fullTime":n=Y$e(e,_$6.Full);break;case "short":let r=O$f(e,"shortTime"),s=O$f(e,"shortDate");n=se$b(K$e(e,_$6.Short),[r,s]);break;case "medium":let o=O$f(e,"mediumTime"),a=O$f(e,"mediumDate");n=se$b(K$e(e,_$6.Medium),[o,a]);break;case "long":let h=O$f(e,"longTime"),f=O$f(e,"longDate");n=se$b(K$e(e,_$6.Long),[h,f]);break;case "full":let l=O$f(e,"fullTime"),u=O$f(e,"fullDate");n=se$b(K$e(e,_$6.Full),[l,u]);break}return n&&(re$e[t][i]=n),n}function se$b(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return Object.hasOwn(i,n)?i[n]:t})),e}function L$9(e,i,t="-",n,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<i;)o="0"+o;return n&&(o=o.slice(o.length-i)),s+o}function Gt$7(e,i){return L$9(e,3).substring(0,i)}function m$f(e,i,t=0,n=false,r=false){return function(s,o){let a=Ht$8(e,s);if((t>0||a>-t)&&(a+=t),e===3)a===0&&t===-12&&(a=12);else if(e===6)return Gt$7(a,i);let h=b$a(o,p$g.MinusSign);return L$9(a,i,h,n,r)}}function Ht$8(e,i){switch(e){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new _$7(2301,false)}}function d$e(e,i,t=F$c.Format,n=false){return function(r,s){return Wt$8(r,s,e,i,t,n)}}function Wt$8(e,i,t,n,r,s){switch(t){case 2:return ht$6(i,r,n)[e.getMonth()];case 1:return ft$8(i,r,n)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let f=pt$7(i),l=mt$8(i,r,n),u=f.findIndex(y=>{if(Array.isArray(y)){let[g,E]=y,U=o>=g.hours&&a>=g.minutes,P=o<E.hours||o===E.hours&&a<E.minutes;if(g.hours<E.hours){if(U&&P)return  true}else if(U||P)return  true}else if(y.hours===o&&y.minutes===a)return  true;return  false});if(u!==-1)return l[u]}return lt$7(i,r,n)[o<12?0:1];case 3:return gt$9(i,n)[e.getFullYear()<=0?0:1];default:throw new _$7(2302,false)}}function oe$9(e){return function(i,t,n){let r=-1*n,s=b$a(t,p$g.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return (r>=0?"+":"")+L$9(o,2,s)+L$9(Math.abs(r%60),2,s);case 1:return "GMT"+(r>=0?"+":"")+L$9(o,1,s);case 2:return "GMT"+(r>=0?"+":"")+L$9(o,2,s)+":"+L$9(Math.abs(r%60),2,s);case 3:return n===0?"Z":(r>=0?"+":"")+L$9(o,2,s)+":"+L$9(Math.abs(r%60),2,s);default:throw new _$7(2310,false)}}}var Zt$9=0,ue$8=4;function Yt$9(e){let i=ce$a(e,Zt$9,1).getDay();return ce$a(e,0,1+(i<=ue$8?ue$8:ue$8+7)-i)}function Et$8(e){let i=e.getDay(),t=i===0?-3:ue$8-i;return ce$a(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Ae$8(e,i=false){return function(t,n){let r;if(i){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();r=1+Math.floor((o+s)/7);}else {let s=Et$8(t),o=Yt$9(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5);}return L$9(r,e,b$a(n,p$g.MinusSign))}}function ae$b(e,i=false){return function(t,n){let s=Et$8(t).getFullYear();return L$9(s,e,b$a(n,p$g.MinusSign),i)}}var Se$c={};function Kt$7(e){if(Se$c[e])return Se$c[e];let i;switch(e){case "G":case "GG":case "GGG":i=d$e(3,c$h.Abbreviated);break;case "GGGG":i=d$e(3,c$h.Wide);break;case "GGGGG":i=d$e(3,c$h.Narrow);break;case "y":i=m$f(0,1,0,false,true);break;case "yy":i=m$f(0,2,0,true,true);break;case "yyy":i=m$f(0,3,0,false,true);break;case "yyyy":i=m$f(0,4,0,false,true);break;case "Y":i=ae$b(1);break;case "YY":i=ae$b(2,true);break;case "YYY":i=ae$b(3);break;case "YYYY":i=ae$b(4);break;case "M":case "L":i=m$f(1,1,1);break;case "MM":case "LL":i=m$f(1,2,1);break;case "MMM":i=d$e(2,c$h.Abbreviated);break;case "MMMM":i=d$e(2,c$h.Wide);break;case "MMMMM":i=d$e(2,c$h.Narrow);break;case "LLL":i=d$e(2,c$h.Abbreviated,F$c.Standalone);break;case "LLLL":i=d$e(2,c$h.Wide,F$c.Standalone);break;case "LLLLL":i=d$e(2,c$h.Narrow,F$c.Standalone);break;case "w":i=Ae$8(1);break;case "ww":i=Ae$8(2);break;case "W":i=Ae$8(1,true);break;case "d":i=m$f(2,1);break;case "dd":i=m$f(2,2);break;case "c":case "cc":i=m$f(7,1);break;case "ccc":i=d$e(1,c$h.Abbreviated,F$c.Standalone);break;case "cccc":i=d$e(1,c$h.Wide,F$c.Standalone);break;case "ccccc":i=d$e(1,c$h.Narrow,F$c.Standalone);break;case "cccccc":i=d$e(1,c$h.Short,F$c.Standalone);break;case "E":case "EE":case "EEE":i=d$e(1,c$h.Abbreviated);break;case "EEEE":i=d$e(1,c$h.Wide);break;case "EEEEE":i=d$e(1,c$h.Narrow);break;case "EEEEEE":i=d$e(1,c$h.Short);break;case "a":case "aa":case "aaa":i=d$e(0,c$h.Abbreviated);break;case "aaaa":i=d$e(0,c$h.Wide);break;case "aaaaa":i=d$e(0,c$h.Narrow);break;case "b":case "bb":case "bbb":i=d$e(0,c$h.Abbreviated,F$c.Standalone,true);break;
vendor: 7,782 bytes, line 5
5case "bbbb":i=d$e(0,c$h.Wide,F$c.Standalone,true);break;case "bbbbb":i=d$e(0,c$h.Narrow,F$c.Standalone,true);break;case "B":case "BB":case "BBB":i=d$e(0,c$h.Abbreviated,F$c.Format,true);break;case "BBBB":i=d$e(0,c$h.Wide,F$c.Format,true);break;case "BBBBB":i=d$e(0,c$h.Narrow,F$c.Format,true);break;case "h":i=m$f(3,1,-12);break;case "hh":i=m$f(3,2,-12);break;case "H":i=m$f(3,1);break;case "HH":i=m$f(3,2);break;case "m":i=m$f(4,1);break;case "mm":i=m$f(4,2);break;case "s":i=m$f(5,1);break;case "ss":i=m$f(5,2);break;case "S":i=m$f(6,1);break;case "SS":i=m$f(6,2);break;case "SSS":i=m$f(6,3);break;case "Z":case "ZZ":case "ZZZ":i=oe$9(0);break;case "ZZZZZ":i=oe$9(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":i=oe$9(1);break;case "OOOO":case "ZZZZ":case "zzzz":i=oe$9(2);break;default:return null}return Se$c[e]=i,i}function wt$a(e,i){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?i:t}function Xt$9(e,i){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+i),e}function qt$8(e,i,t){let r=e.getTimezoneOffset(),s=wt$a(i,r);return Xt$9(e,-1*(s-r))}function Jt$8(e){if(rt$7(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,s=1,o=1]=e.split("-").map(a=>+a);return ce$a(r,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(Ut$8))return Qt$8(n)}let i=new Date(e);if(!rt$7(i))throw new _$7(2311,false);return i}function Qt$8(e){let i=new Date(0),t=0,n=0,r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,a=Number(e[5]||0)-n,h=Number(e[6]||0),f=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(i,o,a,h,f),i}function rt$7(e){return e instanceof Date&&!isNaN(e.valueOf())}var en$4=/^(\d+)?\.((\d+)(-(\d+))?)?$/,st$a=22,de$b=".",X$f="0",tn$3=";",nn$4=",",_e$a="#",ot$9="\xA4",rn$3="%";function Me$a(e,i,t,n,r,s,o=false){let a="",h=false;if(!isFinite(e))a=b$a(t,p$g.Infinity);else {let f=on$3(e);o&&(f=sn$3(f));let l=i.minInt,u=i.minFrac,y=i.maxFrac;if(s){let x=s.match(en$4);if(x===null)throw new _$7(2306,false);let Be=x[1],he=x[3],Ne=x[5];Be!=null&&(l=be$9(Be)),he!=null&&(u=be$9(he)),Ne!=null?y=be$9(Ne):he!=null&&u>y&&(y=u);let ge=100;if(l>ge||u>ge||y>ge)throw new _$7(2306,false)}an$3(f,u,y);let g=f.digits,E=f.integerLen,U=f.exponent,P=[];for(h=g.every(x=>!x);E<l;E++)g.unshift(0);for(;E<0;E++)g.unshift(0);E>0?P=g.splice(E,g.length):(P=g,g=[0]);let J=[];for(g.length>=i.lgSize&&J.unshift(g.splice(-i.lgSize,g.length).join(""));g.length>i.gSize;)J.unshift(g.splice(-i.gSize,g.length).join(""));g.length&&J.unshift(g.join("")),a=J.join(b$a(t,n)),P.length&&(a+=b$a(t,r)+P.join("")),U&&(a+=b$a(t,p$g.Exponential)+"+"+U);}return e<0&&!h?a=i.negPre+a+i.negSuf:a=i.posPre+a+i.posSuf,a}function At$b(e,i,t,n,r){let s=fe$c(i,q$e.Currency),o=Te$a(s,b$a(i,p$g.MinusSign));return o.minFrac=yt$8(n),o.maxFrac=o.minFrac,Me$a(e,o,i,p$g.CurrencyGroup,p$g.CurrencyDecimal,r).replace(ot$9,t).replace(ot$9,"").trim()}function St$9(e,i,t){let n=fe$c(i,q$e.Percent),r=Te$a(n,b$a(i,p$g.MinusSign));return Me$a(e,r,i,p$g.Group,p$g.Decimal,t,true).replace(new RegExp(rn$3,"g"),b$a(i,p$g.PercentSign))}function _t$9(e,i,t){let n=fe$c(i,q$e.Decimal),r=Te$a(n,b$a(i,p$g.MinusSign));return Me$a(e,r,i,p$g.Group,p$g.Decimal,t)}function Te$a(e,i="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(tn$3),r=n[0],s=n[1],o=r.indexOf(de$b)!==-1?r.split(de$b):[r.substring(0,r.lastIndexOf(X$f)+1),r.substring(r.lastIndexOf(X$f)+1)],a=o[0],h=o[1]||"";t.posPre=a.substring(0,a.indexOf(_e$a));for(let l=0;l<h.length;l++){let u=h.charAt(l);u===X$f?t.minFrac=t.maxFrac=l+1:u===_e$a?t.maxFrac=l+1:t.posSuf+=u;}let f=a.split(nn$4);if(t.gSize=f[1]?f[1].length:0,t.lgSize=f[2]||f[1]?(f[2]||f[1]).length:0,s){let l=r.length-t.posPre.length-t.posSuf.length,u=s.indexOf(_e$a);t.negPre=s.substring(0,u).replace(/'/g,""),t.negSuf=s.slice(u+l).replace(/'/g,"");}else t.negPre=i+t.posPre,t.negSuf=t.posSuf;return t}function sn$3(e){if(e.digits[0]===0)return e;let i=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(i===0?e.digits.push(0,0):i===1&&e.digits.push(0),e.integerLen+=2),e}function on$3(e){let i=Math.abs(e)+"",t=0,n,r,s,o,a;for((r=i.indexOf(de$b))>-1&&(i=i.replace(de$b,"")),(s=i.search(/e/i))>0?(r<0&&(r=s),r+=+i.slice(s+1),i=i.substring(0,s)):r<0&&(r=i.length),s=0;i.charAt(s)===X$f;s++);if(s===(a=i.length))n=[0],r=1;else {for(a--;i.charAt(a)===X$f;)a--;for(r-=s,n=[],o=0;s<=a;s++,o++)n[o]=Number(i.charAt(s));}return r>st$a&&(n=n.splice(0,st$a-1),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}function an$3(e,i,t){if(i>t)throw new _$7(2307,false);let n=e.digits,r=n.length-e.integerLen,s=Math.min(Math.max(i,r),t),o=s+e.integerLen,a=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let u=o;u<n.length;u++)n[u]=0;}else {r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let u=1;u<o;u++)n[u]=0;}if(a>=5)if(o-1<0){for(let u=0;u>o;u--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++;}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let h=s!==0,f=i+e.integerLen,l=n.reduceRight(function(u,y,g,E){return y=y+u,E[g]=y<10?y:y-10,h&&(E[g]===0&&g>=f?E.pop():h=false),y>=10?1:0},0);l&&(n.unshift(l),e.integerLen++);}function be$9(e){let i=parseInt(e);if(isNaN(i))throw new _$7(2305,false);return i}var ve$8=/\s+/,at$8=[],un$2=(()=>{class e{_ngEl;_renderer;initialClasses=at$8;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n;}set klass(t){this.initialClasses=t!=null?t.trim().split(ve$8):at$8;}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(ve$8):t;}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,true);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,true);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff();}_updateState(t,n){let r=this.stateMap.get(t);r!==void 0?(r.enabled!==n&&(r.changed=true,r.enabled=n),r.touched=true):this.stateMap.set(t,{enabled:n,changed:true,touched:true});}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=false):r.touched||(r.enabled&&this._toggleClass(n,false),this.stateMap.delete(n)),r.touched=false;}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(ve$8).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r);});}static \u0275fac=function(n){return new(n||e)(Jr$4(Gr$4),Jr$4(fD))};static \u0275dir=dw({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var le$9=class le{$implicit;ngForOf;index;count;constructor(i,t,n,r){this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r;}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}},bt$a=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=true;}set ngForTrackBy(t){this._trackByFn=t;}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=true;_differ=null;_trackByFn;constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r;}set ngForTemplate(t){t&&(this._template=t);}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=false;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 n=this._viewContainer;t.forEachOperation((r,s,o)=>
5{if(r.previousIndex==null)n.createEmbeddedView(this._template,new le$9(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let a=n.get(s);n.move(a,o),ut$9(a,r);}});for(let r=0,s=n.length;r<s;r++){let a=n.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf;}t.forEachIdentityChange(r=>{let s=n.get(r.currentIndex);ut$9(s,r);});}static ngTemplateContextGuard(t,n){return  true}static \u0275fac=function(n){return new(n||e)(Jr$4(ds$1),Jr$4(Vr$4),Jr$4(zb))};static \u0275dir=dw({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function ut$9(e,i){e.context.$implicit=i.item;}var cn$3=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r;}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create());}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t);}}_setStyle(t,n){let[r,s]=t.split("."),o=r.indexOf("-")===-1?void 0:Fi$2.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o);}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue));}static \u0275fac=function(n){return new(n||e)(Jr$4(Gr$4),Jr$4(Qb),Jr$4(fD))};static \u0275dir=dw({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),dn$3=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=D$l(ye$7);constructor(t){this._viewContainerRef=t;}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return !!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):false,get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(Jr$4(ds$1))};static \u0275dir=dw({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Ev$1]})}return e})();function k$d(e,i){return new _$7(2100,false)}var Ie$7=class Ie{createSubscription(i,t,n){return Fb(()=>i.subscribe({next:t,error:n}))}dispose(i){Fb(()=>i.unsubscribe());}},Le$9=class Le{createSubscription(i,t,n){return i.then(r=>t?.(r),r=>n?.(r)),{unsubscribe:()=>{t=null,n=null;}}}dispose(i){i.unsubscribe();}},ln$2=new Le$9,fn$2=new Ie$7,hn$2=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=D$l(bt$b);constructor(t){this._ref=t;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n),n=>this.applicationErrorHandler(n));}_selectStrategy(t){if(wl$2(t))return ln$2;if(ng$1(t))return fn$2;throw k$d()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(n){return new(n||e)(Jr$4(WV,16))};static \u0275pipe=fw({name:"async",type:e,pure:false})}return e})(),gn$2=(()=>{class e{transform(t){return t==null?null:(vt$9(e,t),t.toLowerCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=fw({name:"lowercase",type:e,pure:true})}return e})();var Dn$3=(()=>{class e{transform(t){return t==null?null:(vt$9(e,t),t.toUpperCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=fw({name:"uppercase",type:e,pure:true})}return e})();
5function vt$9(e,i){if(typeof i!="string")throw k$d()}var pn$2="mediumDate",It$9=new M$g(""),Lt$8=new M$g(""),mn$3=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,r){this.locale=t,this.defaultTimezone=n,this.defaultOptions=r;}transform(t,n,r,s){if(t==null||t===""||t!==t)return null;try{let o=n??this.defaultOptions?.dateFormat??pn$2,a=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Ft$6(t,o,s||this.locale,a)}catch(o){throw k$d(e,o.message)}}static \u0275fac=function(n){return new(n||e)(Jr$4(Hl$2,16),Jr$4(It$9,24),Jr$4(Lt$8,24))};static \u0275pipe=fw({name:"date",type:e,pure:true})}return e})();var Cn$3=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=fw({name:"json",type:e,pure:false})}return e})();var yn$2=(()=>{class e{_locale;constructor(t){this._locale=t;}transform(t,n,r){if(!Re$9(t))return null;r||=this._locale;try{let s=Oe$9(t);return _t$9(s,r,n)}catch(s){throw k$d(e,s.message)}}static \u0275fac=function(n){return new(n||e)(Jr$4(Hl$2,16))};static \u0275pipe=fw({name:"number",type:e,pure:true})}return e})(),Fn$3=(()=>{class e{_locale;constructor(t){this._locale=t;}transform(t,n,r){if(!Re$9(t))return null;r||=this._locale;try{let s=Oe$9(t);return St$9(s,r,n)}catch(s){throw k$d(e,s.message)}}static \u0275fac=function(n){return new(n||e)(Jr$4(Hl$2,16))};static \u0275pipe=fw({name:"percent",type:e,pure:true})}return e})(),En$3=(()=>{class e{_locale;_defaultCurrencyCode;constructor(t,n="USD"){this._locale=t,this._defaultCurrencyCode=n;}transform(t,n=this._defaultCurrencyCode,r="symbol",s,o){if(!Re$9(t))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let a=n||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?a=Ct$8(a,r==="symbol"?"wide":"narrow",o):a=r);try{let h=Oe$9(t);return At$b(h,o,a,n,s)}catch(h){throw k$d(e,h.message)}}static \u0275fac=function(n){return new(n||e)(Jr$4(Hl$2,16),Jr$4(Ob,16))};static \u0275pipe=fw({name:"currency",type:e,pure:true})}return e})();function Re$9(e){return !(e==null||e===""||e!==e)}function Oe$9(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new _$7(2309,false);return e}var wn$4=(()=>{class e{transform(t,n,r){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw k$d();return t.slice(n,r)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=fw({name:"slice",type:e,pure:false})}return e})();var An$3=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=cw({type:e});static \u0275inj=dd$2({})}return e})();var Sn$4="browser";function Qi$3(e){return e===Sn$4}var er$4=(()=>{class e{static \u0275prov=G$f({token:e,providedIn:"root",factory:()=>new Pe$8(D$l(jn$2),window)})}return e})(),Pe$8=class Pe{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t;}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(i,t){this.window.scrollTo(E$9(D$m({},t),{left:i[0],top:i[1]}));}scrollToAnchor(i,t){let n=_n$3(this.document,i);n&&(this.scrollToElement(n,t),n.focus({preventScroll:true}));}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i;}catch(t){console.warn(yr$5(2400,false));}}scrollToElement(i,t){let n=i.getBoundingClientRect(),r=n.left+this.window.pageXOffset,s=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(E$9(D$m({},t),{left:r-o[0],top:s-o[1]}));}};function _n$3(e,i){let t=e.getElementById(i)||e.getElementsByName(i)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(i)||s.querySelector(`[name="${CSS.escape(i)}"]`);if(o)return o}r=n.nextNode();}}return null}function Mt$8(e){return e.replace(/\\/g,"\\\\").replace(/[\n\r\f\0]/g,"").replace(/"/g,'\\"')}var Rt$8=e=>e.src,bn$4=new M$g("",{factory:()=>Rt$8});var Tt$8=/^((\s*\d+w\s*(,|$)){1,})$/;
5var vn$2=[1,2],In$3=640;var Ln$2=1920,Mn$3=1080;var tr$4=(()=>{class e{imageLoader=D$l(bn$4);config=Tn$2(D$l(sv$1));renderer=D$l(fD);imgElement=D$l(Gr$4).nativeElement;injector=D$l(ye$7);destroyRef=D$l(st$b);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;decoding;loading;priority=false;loaderParams;disableOptimizedSrcset=false;fill=false;placeholder;placeholderConfig;src;srcset;constructor(){this.destroyRef.onDestroy(()=>{this.renderer.removeAttribute(this.imgElement,"loading");});}ngOnInit(){le$a("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes();}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("decoding",this.getDecoding()),this.setHostAttribute("ng-img","true");this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&Tt$8.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw");}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){this._renderedSrc;this.updateSrcAndSrcset(true);}}getAspectRatio(){return this.width&&this.height&&this.height!==0?this.width/this.height:null}callImageLoader(t){let n=t;this.loaderParams&&(n.loaderParams=this.loaderParams);let r=this.getAspectRatio();return r!==null&&n.width&&(n.height=Math.round(n.width/r)),this.imageLoader(n)}getLoadingBehavior(){return !this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getDecoding(){return this.priority?"sync":this.decoding??"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t);}return this._renderedSrc}getRewrittenSrcset(){let t=Tt$8.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>r!=="").map(r=>{r=r.trim();let s=t?parseFloat(r):parseFloat(r)*this.width;return `${this.callImageLoader({src:this.ngSrc,width:s})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,n=t;return this.sizes?.trim()==="100vw"&&(n=t.filter(s=>s>=In$3)),n.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(t=false){t&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let r;return this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return vn$2.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=false;return this.sizes||(t=this.width>Ln$2||this.height>Mn$3),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Rt$8&&!t}generatePlaceholder(t){let{placeholderResolution:n}=this.config;return t===true?`url("${Mt$8(this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:true}))}")`:typeof t=="string"?`url("${Mt$8(t)}")`:null}shouldBlurPlaceholder(t){return !t||!t.hasOwnProperty("blur")?true:!!t.blur}removePlaceholderOnLoad(t){let n=()=>{let o=this.injector.get(WV);r(),s(),this.placeholder=false,o.markForCheck();},r=this.renderer.listen(t,"load",n),s=this.renderer.listen(t,"error",n);this.destroyRef.onDestroy(()=>{r(),s();}),Rn$3(t,n);}setHostAttribute(t,n){this.renderer.setAttribute(this.imgElement,t,n);}static \u0275fac=function(n){return new(n||e)};static \u0275dir=dw({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,r){n&2&&Lg$1("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null);},inputs:{ngSrc:[2,"ngSrc","ngSrc",On$2],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",ZV],height:[2,"height","height",ZV],decoding:"decoding",loading:"loading",priority:[2,"priority","priority",QV],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",QV],fill:[2,"fill","fill",QV],placeholder:[2,"placeholder","placeholder",Pn$2],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[Ev$1]})}return e})();function Tn$2(e){let i={};return e.breakpoints&&(i.breakpoints=e.breakpoints.sort((t,n)=>t-n)),Object.assign({}
5,Xd$2,e,i)}function Rn$3(e,i){e.complete&&e.naturalWidth&&i();}function On$2(e){return typeof e=="string"?e:Zn$2(e)}function Pn$2(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:QV(e)}
6function Yt$8(t,e){t&1&&Tg$1(0);}var F$b=class t{constructor(e){this.element=e;}ngAfterViewInit(){let e=window.getComputedStyle(this.element.nativeElement).getPropertyValue("max-height"),r=window.getComputedStyle(this.element.nativeElement).getPropertyValue("min-height");this.element.nativeElement.style.maxHeight=e,this.element.nativeElement.style.minHeight=r;let l=this.element.nativeElement.firstElementChild;l?.style&&(l.style.height="auto",l.style.maxHeight="auto",l.style.minHeight="auto",l.style.overflow="visible",l.style.overscrollBehavior="auto");}static{this.\u0275fac=function(r){return new(r||t)(Jr$4(Gr$4))};}static{this.\u0275cmp=sw({type:t,selectors:[["am-scrollbar-wrap"]],inputs:{content:"content"},decls:1,vars:1,consts:[[4,"ngTemplateOutlet"]],template:function(r,l){r&1&&cg$1(0,Yt$8,1,0,"ng-container",0),r&2&&Ig$1("ngTemplateOutlet",l.content);},dependencies:[An$3,dn$3],styles:["[_nghost-%COMP%]{display:block;flex:1;height:100%;width:100%;position:relative;background:transparent}.ps--active-x[_nghost-%COMP%]{padding-right:var(--disable-scroll-padding-right)}.move-y[_nghost-%COMP%]{cursor:move}.cursor-grabbing[_nghost-%COMP%]{cursor:grabbing}"],changeDetection:1});}};var C$c=class C{constructor(e,r,l){this.hasScroll=e;this.exceptionsIds=r;this.element=l;this.scrollAddEvent=iy(qm$2([Ns$2(window,"wheel",{passive:false,capture:false}),this.hasScroll.pipe(Tu$2())]).pipe(ge$9(([o,n])=>this.tooltipScroll(o,n))),qm$2([Ns$2(window,"touchstart",{passive:false,capture:false}),this.hasScroll.pipe(Tu$2())]).pipe(ge$9(([o,n])=>(this.onTouchScrollStart(o,n),0))),qm$2([Ns$2(window,"touchend",{passive:false,capture:false}),this.hasScroll.pipe(Tu$2())]).pipe(ge$9(([o,n])=>(this.onTouchScrollEnd(o,n),0))));}onTouchScrollStart(e,r){if(this.lastY=e.touches[0].screenY,!r||this.element.contains(e.target))return;let l=this.element;l&&l.scrollTop+l.clientHeight!==l.scrollHeight&&(e.preventDefault(),e.stopImmediatePropagation());}onTouchScrollEnd(e,r){if(!r)return;let l=this.element,o=this.lastY-e.changedTouches[0].screenY,n=this.exceptionsIds.find(a=>a===e.target.id),i=l&&!l.contains(e.target);Math.abs(o)<5||i||!l||n||l.scrollTop+l.clientHeight!==l.scrollHeight&&(e.preventDefault(),e.stopImmediatePropagation());}tooltipScroll(e,r){let o=!!window.InstallTrigger?e.deltaY*4:e.deltaY;return this.element&&r?(e.preventDefault(),e.stopImmediatePropagation(),o):0}};var P$f=class P{constructor(e){this.element=e;this.subscription=new W$f;this.watchScrollWidthCancel=()=>{};this.watchScrollHeightCancel=()=>{};this.updateSubject=new de$c;this.update=this.updateSubject.pipe(bu$2(()=>{this.subscription.unsubscribe(),this.watchScrollWidthCancel(),this.watchScrollHeightCancel();})),this.watchScrollWidthCancel=this.watchScrollWidth(this.element,()=>{this.updateSubject.next();}),this.watchScrollHeightCancel=this.watchScrollHeight(this.element,()=>{this.updateSubject.next();}),this.updateSubject.next(),this.subscription.add(Ns$2(window,"resize").subscribe(()=>this.updateSubject.next()));}watchScrollWidth(e,r){let l=e.scrollWidth,o=true;function n(){if(!o)return;let i=e.scrollWidth;i!==l&&(l=i,r(i)),requestAnimationFrame(n);}return requestAnimationFrame(n),()=>{o=false;}}watchScrollHeight(e,r){let l=e.scrollHeight,o=true;function n(){if(!o)return;let i=e.scrollHeight;i!==l&&(l=i,r(i)),requestAnimationFrame(n);}return requestAnimationFrame(n),()=>{o=false;}}};var G$e=class G{constructor(e){this.element=e;this.subscription=new W$f;this.onUpdateScroll=new de$c;this.hasScrollX=new de$c;let r=new P$f(e);this.subscription.add(r.update.subscribe(()=>this.updateScroll())),this.initScrollingXObserver();}initScrollTo(e){this.subscription.add(e.pipe(Tn$3(r=>!!r&&"scrollTo"in this.element)).subscribe(r=>{this.element.scrollTo({top:r.y?r.y:0,left:r.x?r.x:0,behavior:"smooth"});}));}initScrollToBottomOnInit(){"scrollTo"in this.element&&this.element.scrollTo(0,this.element.scrollHeight);}initScrolledToBottomFn(e){let r=null,l=o=>{o.clientHeight>0&&o.scrollHeight<=o.clientHeight&&r!==o.scrollHeight&&(r=o.scrollHeight,e
6());};this.subscription.add(this.onUpdateScroll.subscribe(o=>l(o))),requestAnimationFrame(()=>l(this.element)),this.subscription.add(Ns$2(this.element,"scroll").pipe(ge$9(o=>o.target),Tn$3(o=>Math.round(o.scrollTop+o.clientHeight)>=o.scrollHeight-1),Tn$3(o=>r!==o.scrollHeight)).subscribe(o=>{r=o.scrollHeight,e();}));}initDisableGlobalScroll(e){let r=new rr$4(true),l=new C$c(r,e,this.element);this.subscription.add(l.scrollAddEvent.subscribe(o=>{let n=this.element.firstChild;n.scrollTop+=o,r.next(n.clientHeight<n.scrollHeight);}));}initScrollingXObserver(){this.subscription.add(Ns$2(this.element,"scroll").subscribe(()=>{this.hasScrollX.next(this.element.scrollWidth>this.element.clientWidth&&this.element.scrollLeft>0);}));}updateScroll(){this.onUpdateScroll.next(this.element);}destroy(){this.subscription.unsubscribe();}};function X$e(t){return getComputedStyle(t)}function T$9(t,e){for(var r in e){var l=e[r];typeof l=="number"&&(l=l+"px"),t.style[r]=l;}return t}function K$d(t){var e=document.createElement("div");return e.className=t,e}var mt$7=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function R$f(t,e){if(!mt$7)throw new Error("No element matching method supported");return mt$7.call(t,e)}function I$a(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t);}function vt$8(t,e){return Array.prototype.filter.call(t.children,function(r){return R$f(r,e)})}var g$c={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return "ps__thumb-"+t},rail:function(t){return "ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return "ps--active-"+t},scrolling:function(t){return "ps--scrolling-"+t}}},wt$9={x:null,y:null};function Tt$7(t,e){var r=t.element.classList,l=g$c.state.scrolling(e);r.contains(l)?clearTimeout(wt$9[e]):r.add(l);}function yt$7(t,e){wt$9[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(g$c.state.scrolling(e))},t.settings.scrollingThreshold);}function Wt$7(t,e){Tt$7(t,e),yt$7(t,e);}var k$c=function(e){this.element=e,this.handlers={};},Et$7={isEmpty:{configurable:true}};k$c.prototype.bind=function(e,r){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(r),this.element.addEventListener(e,r,false);};k$c.prototype.unbind=function(e,r){var l=this;this.handlers[e]=this.handlers[e].filter(function(o){return r&&o!==r?true:(l.element.removeEventListener(e,o,false),false)});};k$c.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e);};Et$7.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return t.handlers[e].length===0})};Object.defineProperties(k$c.prototype,Et$7);var B$e=function(){this.eventElements=[];};B$e.prototype.eventElement=function(e){var r=this.eventElements.filter(function(l){return l.element===e})[0];return r||(r=new k$c(e),this.eventElements.push(r)),r};B$e.prototype.bind=function(e,r,l){this.eventElement(e).bind(r,l);};B$e.prototype.unbind=function(e,r,l){var o=this.eventElement(e);o.unbind(r,l),o.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(o),1);};B$e.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[];};B$e.prototype.once=function(e,r,l){var o=this.eventElement(e),n=function(i){o.unbind(r,n),l(i);};o.bind(r,n);};function q$d(t){if(typeof window.CustomEvent=="function")return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,false,false,void 0),e}function V$e(t,e,r,l,o){l===void 0&&(l=true),o===void 0&&(o=false);var n;if(e==="top")n=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(e==="left")n=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");At$a(t,r,n,l,o);}function At$a(t,e,r,l,o){var n=r[0],i=r[1],a=r[2],s=r[3],c=r[4],d=r[5];l===void 0&&(l=true),o===void 0&&(o=false);var p=t.element;t.reach[s]=null,p[a]<1&&(t.reach[s]="start"),p[a]>t[n]-t[i]-1&&(t.reach[s]="end"),e&&(p.dispatchEvent(q$d("ps-scroll-"+s)),e<0?p.dispatchEvent(q$d("ps-scroll-"+c)):e>0&&p.dispatchEvent(q$d("ps-scroll-"+d)),l&&Wt$7(t,s)),t.reach[s]&&(e||o)&&p.dispatchEvent(q$d("ps-"+s+"-reach-"+t.reach[s]));}function b$9(t){return parseInt(t,10)||0}function Rt$7(t){return R$f(t,"input,[contenteditable]")||R$f(t,"select,[contenteditable]")||R$f(t,"textarea,[contenteditable]")||R$f(t,"button,[contenteditable]")}function xt$9(t){var e=X$e(t);return b$9(e.width)+b$9(e.paddingLeft)+b$9(e.paddingRight)+b$9(e.borderLeftWidth)+b$9(e.borderRightWidth)}var D$k={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function W$e(t){var e=t.element,r=Math.floor(e.scrollTop),l=e.getBoundingClientRect();t.containerWidth=Math.round(l.width),t.containerHeight=Math.round(l.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(vt$8(e,g$c.element.rail("x")).forEac
6h(function(o){return I$a(o)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(vt$8(e,g$c.element.rail("y")).forEach(function(o){return I$a(o)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=true,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=gt$8(t,b$9(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=b$9((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=false,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=true,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=gt$8(t,b$9(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=b$9(r*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=false,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),Mt$7(e,t),t.scrollbarXActive?e.classList.add(g$c.state.active("x")):(e.classList.remove(g$c.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=t.isRtl===true?t.contentWidth:0),t.scrollbarYActive?e.classList.add(g$c.state.active("y")):(e.classList.remove(g$c.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0);}function gt$8(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Mt$7(t,e){var r={width:e.railXWidth},l=Math.floor(t.scrollTop);e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:r.left=t.scrollLeft,e.isScrollbarXUsingBottom?r.bottom=e.scrollbarXBottom-l:r.top=e.scrollbarXTop+l,T$9(e.scrollbarXRail,r);var o={top:l,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?o.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:o.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?o.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth*2-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:o.left=e.scrollbarYLeft+t.scrollLeft,T$9(e.scrollbarYRail,o),T$9(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),T$9(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth});}function Ot$7(t){t.element;t.event.bind(t.scrollbarY,"mousedown",function(r){return r.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(r){var l=r.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,o=l>t.scrollbarYTop?1:-1;t.element.scrollTop+=o*t.containerHeight,W$e(t),r.stopPropagation();}),t.event.bind(t.scrollbarX,"mousedown",function(r){return r.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(r){var l=r.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,o=l>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=o*t.containerWidth,W$e(t),r.stopPropagation();});}function Ct$7(t){St$8(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),St$8(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]);}function St$8(t,e){var r=e[0],l=e[1],o=e[2],n=e[3],i=e[4],a=e[5],s=e[6],c=e[7],d=e[8],p=t.element,w=null,H=null,h=null;function m(u){u.touches&&u.touches[0]&&(u[o]=u.touches[0].pageY),p[s]=w+h*(u[o]-H),Tt$7(t,c),W$e(t),u.stopPropagation(),u.type.startsWith("touch")&&u.changedTouches.length>1&&u.preventDefault();}function y(){yt$7(t,c),t[d].classList.remove(g$c.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",m);}function f(u,E){w=p[s],E&&u.touches&&(u[o]=u.touches[0].pageY),H=u[o],h=(t[l]-t[r])/(t[n]-t[a]),E?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",y),u.preventDefault()),t[d].classList.add(g$c.state.clicking),u.stopPropagation();}t.event.bind(t[i],"mousedown",function(u){f(u);}),t.event.bind(t[i],"touchstart",function(u){f(u,true);});}function Pt$8(t){var e=t.element,r=function(){return R$f(e,":hover")},l=function(){return R$f(t.scrollbarX,":focus")||R$f(t.scrollbarY,":focus")};function o(n,i){var a=Math.floor(e.scrollTop);if(n===0){if(!t.scrollbarYActive)return  false;if(a===0&&i>0||a>=t.contentHeight-t.containerHeight&&i<0)return !t.settings.wheelPropagation}var s=e.scrollLeft;if(i===0){if(!t.scrollbarXActive)return  false;if(s===0&&n<0||s>=t.contentWidth-t.containerWidth&&n>0)return !t.settings.wheelPropagation}return  true}t.event.bind(t.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&!(!r()&&!l())){var i=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(i){if(i.tagName==="IFRAME")i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(Rt$7(i))return}var a=0,s=0;switch(n.which){case 37:n.metaKey?a=-t.contentWidth:n.altKey?a=-t.containerWidth:a=-30;break;case 38:n.metaKey?s=t.contentHeight:n.altKey?s=t.containerHeight:s=30;break;case 39:n.metaKey?a=t.contentWidth:n.altKey?a=t.containerWidth:a=30;break;case 40:n.metaKey?s=-t.contentHeight:n.altKey?s=-t.containerHeight:s=-30;break;case 32:n.shiftKey?s=t.containerHeight:s=-t.containerHeight;break;case 33:s=t.containerHeight;break;case 34:s=-t.containerHeight;break;case 36:s=t.contentHeight;break;case 35:s=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&a!==0||t.settings.suppressScrollY&&s!==0||(e.scrollTop-=s,e.scrollLeft+=a,W$e(t),o(a,s)&&n.preventDefault());}});}function Dt$9(t){var e=t.element;function r(i,a){var s=Math.floor(e.scrollTop),c=e.scrollTop===0,d=s+e.offsetHeight===e.scrollHeight,p=e.scrollLeft===0,w=e.scrollLeft+e.offsetWidth===e.scrollWidth,H;return Math.abs(a)>
6Math.abs(i)?H=c||d:H=p||w,H?!t.settings.wheelPropagation:true}function l(i){var a=i.deltaX,s=-1*i.deltaY;return (typeof a>"u"||typeof s>"u")&&(a=-1*i.wheelDeltaX/6,s=i.wheelDeltaY/6),i.deltaMode&&i.deltaMode===1&&(a*=10,s*=10),a!==a&&s!==s&&(a=0,s=i.wheelDelta),i.shiftKey?[-s,-a]:[a,s]}function o(i,a,s){if(!D$k.isWebKit&&e.querySelector("select:focus"))return  true;if(!e.contains(i))return  false;for(var c=i;c&&c!==e;){if(c.classList.contains(g$c.element.consuming))return  true;var d=X$e(c);if(s&&d.overflowY.match(/(scroll|auto)/)){var p=c.scrollHeight-c.clientHeight;if(p>0&&(c.scrollTop>0&&s<0||c.scrollTop<p&&s>0))return  true}if(a&&d.overflowX.match(/(scroll|auto)/)){var w=c.scrollWidth-c.clientWidth;if(w>0&&(c.scrollLeft>0&&a<0||c.scrollLeft<w&&a>0))return  true}c=c.parentNode;}return  false}function n(i){var a=l(i),s=a[0],c=a[1];if(!o(i.target,s,c)){var d=false;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(c?e.scrollTop-=c*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,d=true):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=c*t.settings.wheelSpeed,d=true):(e.scrollTop-=c*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),W$e(t),d=d||r(s,c),d&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault());}}typeof window.onwheel<"u"?t.event.bind(e,"wheel",n):typeof window.onmousewheel<"u"&&t.event.bind(e,"mousewheel",n);}function It$8(t){if(!D$k.supportsTouch&&!D$k.supportsIePointer)return;var e=t.element;function r(h,m){var y=Math.floor(e.scrollTop),f=e.scrollLeft,u=Math.abs(h),E=Math.abs(m);if(E>u){if(m<0&&y===t.contentHeight-t.containerHeight||m>0&&y===0)return window.scrollY===0&&m>0&&D$k.isChrome}else if(u>E&&(h<0&&f===t.contentWidth-t.containerWidth||h>0&&f===0))return  true;return  true}function l(h,m){e.scrollTop-=m,e.scrollLeft-=h,W$e(t);}var o={},n=0,i={},a=null;function s(h){return h.targetTouches?h.targetTouches[0]:h}function c(h){return h.pointerType&&h.pointerType==="pen"&&h.buttons===0?false:!!(h.targetTouches&&h.targetTouches.length===1||h.pointerType&&h.pointerType!=="mouse"&&h.pointerType!==h.MSPOINTER_TYPE_MOUSE)}function d(h){if(c(h)){var m=s(h);o.pageX=m.pageX,o.pageY=m.pageY,n=new Date().getTime(),a!==null&&clearInterval(a);}}function p(h,m,y){if(!e.contains(h))return  false;for(var f=h;f&&f!==e;){if(f.classList.contains(g$c.element.consuming))return  true;var u=X$e(f);if(y&&u.overflowY.match(/(scroll|auto)/)){var E=f.scrollHeight-f.clientHeight;if(E>0&&(f.scrollTop>0&&y<0||f.scrollTop<E&&y>0))return  true}if(m&&u.overflowX.match(/(scroll|auto)/)){var M=f.scrollWidth-f.clientWidth;if(M>0&&(f.scrollLeft>0&&m<0||f.scrollLeft<M&&m>0))return  true}f=f.parentNode;}return  false}function w(h){if(c(h)){var m=s(h),y={pageX:m.pageX,pageY:m.pageY},f=y.pageX-o.pageX,u=y.pageY-o.pageY;if(p(h.target,f,u))return;l(f,u),o=y;var E=new Date().getTime(),M=E-n;M>0&&(i.x=f/M,i.y=u/M,n=E),r(f,u)&&h.preventDefault();}}function H(){t.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){if(t.isInitialized){clearInterval(a);return}if(!i.x&&!i.y){clearInterval(a);return}if(Math.abs(i.x)<.01&&Math.abs(i.y)<.01){clearInterval(a);return}if(!t.element){clearInterval(a);return}l(i.x*30,i.y*30),i.x*=.8,i.y*=.8;},10));}D$k.supportsTouch?(t.event.bind(e,"touchstart",d),t.event.bind(e,"touchmove",w),t.event.bind(e,"touchend",H)):D$k.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",d),t.event.bind(e,"pointermove",w),t.event.bind(e,"pointerup",H)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",d),t.event.bind(e,"MSPointerMove",w),t.event.bind(e,"MSPointerUp",H)));}var Bt$9=function(){return {handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:false,suppressScrollY:false,swipeEasing:true,useBothWheelAxes:false,wheelPropagation:true,wheelSpeed:1}},_t$8={"click-rail":Ot$7,"drag-thumb":Ct$7,keyboard:Pt$8,wheel:Dt$9,touch:It$8},j$f=function(e,r){var l=this;if(r===void 0&&(r={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(g$c.main),this.settings=Bt$9();for(var o in r)this.settings[o]=r[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var n=function(){return e.classList.add(g$c.state.focus)},i=function(){return e.classList.remove(g$c.state.focus)};this.isRtl=X$e(e).direction==="rtl",this.isRtl===true&&e.classList.add(g$c.rtl),this.isNegativeScroll=(function(){var c=e.scrollLeft,d=null;return e.scrollLeft=-1,d=e.scrollLeft<0,e.scrollLeft=c,d})(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new B$e,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=K$d(g$c.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=K$d(g$c.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",n),this.event.bind(this.scrollbarX,"blur",i),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var a=X$e(this.scrollbarXRail);this.scrollbarXBottom=parseInt(a.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=false,this.scrollbarXTop=b$9(a.top)):this.isScrollbarXUsingBottom=true,this.railBorderXWidth=b$9(a.borderLeftWidth)+b$9(a.borderRightWidth),T$9(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=b$9(a.marginLeft)+b$9(a.marginRight),T$9(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=K$d(g$c.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=K$d(g$c.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",n),this.event.bind(this.scrollbarY,"blur",i),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var s=X$e(this.scrollbarYRail);this.scrollbarYRight=parseInt(s.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=false,this.scrollbarYLeft=b$9(s.left)):this.isScrollbarYUsingRight=true,this.scrollbarYOuterWidth=this.isRtl?xt$9(this.scrollbarY):null,this.railBorderYWidth=b$9(s.borderTopWidth)+b$9(s.borderBottomWidth),T$9(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=b$9(s.marginTop)+b$9(s.marginBottom),T$9(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null}
6,this.isAlive=true,this.settings.handlers.forEach(function(c){return _t$8[c](l)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(c){return l.onScroll(c)}),W$e(this);};j$f.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,T$9(this.scrollbarXRail,{display:"block"}),T$9(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=b$9(X$e(this.scrollbarXRail).marginLeft)+b$9(X$e(this.scrollbarXRail).marginRight),this.railYMarginHeight=b$9(X$e(this.scrollbarYRail).marginTop)+b$9(X$e(this.scrollbarYRail).marginBottom),T$9(this.scrollbarXRail,{display:"none"}),T$9(this.scrollbarYRail,{display:"none"}),W$e(this),V$e(this,"top",0,false,true),V$e(this,"left",0,false,true),T$9(this.scrollbarXRail,{display:""}),T$9(this.scrollbarYRail,{display:""}));};j$f.prototype.onScroll=function(e){this.isAlive&&(W$e(this),V$e(this,"top",this.element.scrollTop-this.lastScrollTop),V$e(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft);};j$f.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),I$a(this.scrollbarX),I$a(this.scrollbarY),I$a(this.scrollbarXRail),I$a(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=false);};j$f.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return !e.match(/^ps([-_].+|)$/)}).join(" ");};var Lt$7=j$f;var $$9=class t{constructor(e){this.element=e;this.maxScrollLeft=null;this.startX=null;this.scrollLeftAdd=iy(Ns$2(window,"resize").pipe(ge$9(()=>(this.maxScrollLeft=this.element.scrollWidth-this.element.clientWidth,0))),Ns$2(this.element,"mousedown").pipe(ge$9(r=>this.maxScrollLeft?(this.startX=r.x,this.element.classList.add(t.moveClass),0):(this.maxScrollLeft=this.element.scrollWidth-this.element.clientWidth,0))),Ns$2(this.element,"mousemove").pipe(Tn$3(()=>this.startX!==null),ge$9(r=>{let l=(this.startX-r.x)/15;return this.element.scrollLeft+l>=this.maxScrollLeft?this.maxScrollLeft-this.element.scrollLeft:l})),Ns$2(document,"mouseup").pipe(ge$9(()=>(this.startX=null,this.element.classList.remove(t.moveClass),0)))).pipe(Tn$3(()=>!a$g.isTouchDevice()),ge$9(r=>r));}static{this.moveClass="move-y";}};var z$8=class z{constructor(e,r){this.element=e;this.onWheel=e=>{let r=this.normalizeDeltaY(e);if(!r)return;let l=this.element,o=l.scrollHeight-l.clientHeight;if(o<=1)return;let n=l.scrollTop+r;(r>0?n>=o-1:n<=1)&&e.preventDefault();};this.element.addEventListener("wheel",this.onWheel,{passive:false,capture:true,signal:r});}normalizeDeltaY(e){return e.deltaMode===1?e.deltaY*16:e.deltaMode===2?e.deltaY*this.element.clientHeight:e.deltaY}};var J$i="data-am-scroll";function de$a(t){let e=t instanceof Element?t:null;for(;e;){if(e instanceof HTMLElement){let r=kt$7(e);if(r.x||r.y)return {element:e,axes:r}}e=e.parentElement;}return null}function kt$7(t){let e=t.getAttribute(J$i)??"";return {x:e.includes("x")&&t.scrollWidth-t.clientWidth>1,y:e.includes("y")&&t.scrollHeight-t.clientHeight>1}}var Q$b=class Q{constructor(e,r){this.element=e;this.subscription=new W$f;this.ac=new AbortController;this.onUpdateScroll=new de$c;this.hasScrollX=new de$c;let l=!r.enableXScroll||r.disabled,o=r.disableYScroll||r.disabled;this.perfectScrollbar=new Lt$7(e,{minScrollbarLength:32,wheelPropagation:r.wheelPropagation!==void 0?r.wheelPropagation:true,suppressScrollX:l,suppressScrollY:o}),e.setAttribute(J$i,`${l?"":"x"}${o?"":"y"}`),new z$8(this.perfectScrollbar.element,this.ac.signal);let n=new P$f(e);this.subscription.add(n.update.subscribe(()=>{this.updateScroll();})),r.dragScroll&&this.initDragScroll(r.elementRef),this.initScrollingXObserver();}initScrollTo(e){this.subscription.add(e.pipe(Tn$3(r=>!!r&&!!this.perfectScrollbar.element&&"scrollTo"in this.perfectScrollbar.element),ge$9(r=>({options:r,element:this.perfectScrollbar.element}))).subscribe(({options:r,element:l})=>
6{if(!r.speed){this.perfectScrollbar.element.scrollTo(r.x,r.y);return}let o={x:r.x?(r.x-l.scrollLeft)/(60*r.speed/1e3):0,y:r.y?(r.y-l.scrollTop)/(60*r.speed/1e3):0},n={top:l.scrollTop,left:l.scrollLeft},i=()=>{n.top!==r.y&&(n.top+=o.y),n.left!==r.x&&(n.left+=o.x),l.scrollTop=n.top,l.scrollLeft=n.left,!((r.y===Math.round(n.top)||!r.y)&&(r.x===Math.round(n.left)||!r.x))&&requestAnimationFrame(i);};requestAnimationFrame(i);}));}initScrollToBottomOnInit(){"scrollTo"in this.perfectScrollbar.element&&this.perfectScrollbar.element.scrollTo(0,this.perfectScrollbar.element.scrollHeight);}initScrolledToBottomFn(e){this.subscription.add(Ns$2(this.perfectScrollbar.element,"ps-y-reach-end").subscribe(r=>{this.perfectScrollbar.element.clientHeight!==0&&e();}));}initDisableGlobalScroll(e){let r=new rr$4(true),l=new C$c(r,e,this.perfectScrollbar.element);this.subscription.add(l.scrollAddEvent.subscribe(o=>{let n=this.perfectScrollbar.element;n.scrollTop+=o,r.next(n.clientHeight<n.scrollHeight);}));}enableXScroll(){let e=new $$9(this.perfectScrollbar.element);this.subscription.add(e.scrollLeftAdd.subscribe(r=>{this.perfectScrollbar.element.scrollLeft+=r;}));}initDragScroll(e){let r=this.perfectScrollbar.element,l=false,o=0,n=0,i=false;function a(p){p.pointerType==="mouse"&&p.button!==0||(l=true,i=false,e.classList.add("cursor-grabbing"),r.classList.add("cursor-grabbing"),o=p.clientX,n=r.scrollLeft,r.style.scrollBehavior="auto",r.style.userSelect="none");}function s(p){if(!l)return;let w=p.clientX-o;Math.abs(w)>3&&(i=true),r.scrollLeft=n-w;}function c(p){l&&(l=false,e.classList.remove("cursor-grabbing"),r.classList.remove("cursor-grabbing"),r.releasePointerCapture?.(p.pointerId),r.style.userSelect="");}let d={passive:true,signal:this.ac.signal};r.addEventListener("pointerdown",a,d),document.addEventListener("pointermove",s,d),document.addEventListener("pointerup",c,d),document.addEventListener("pointercancel",c,d),r.addEventListener("click",p=>{i&&(p.preventDefault(),p.stopPropagation()),i=false;},{capture:true,signal:this.ac.signal}),"PointerEvent"in window||r.addEventListener("touchstart",p=>{l=true,i=false;},d);}updateScroll(){this.perfectScrollbar.update(),requestAnimationFrame(()=>{this.onUpdateScroll.next(this.perfectScrollbar.element);});}initScrollingXObserver(){let e=this.perfectScrollbar.element,r=()=>{this.hasScrollX.next(e.scrollWidth>e.clientWidth&&e.scrollLeft>0);};this.subscription.add(Ns$2(e,"ps-scroll-x").subscribe(r)),this.subscription.add(Ns$2(e,"scroll").subscribe(r));}destroy(){this.ac.abort(),this.element.removeAttribute(J$i),this.perfectScrollbar?.destroy(),this.subscription.unsubscribe();}};var Ht$7=class t{constructor(){this.configObserver=new ar$4;this.subscription=new W$f;this.templateRef=D$l(Vr$4);this.viewContainer=D$l(ds$1);}ngOnInit(){this.viewContainer.clear();let e=this.viewContainer.createComponent(F$b);e.instance.content=this.templateRef,this.config||this.configObserver.next({}),this.subscription.add(qm$2([Ns$2(window,"resize").pipe(ge$9(()=>a$g.isTouchDevice()),Tu$2(),Au$2(a$g.isTouchDevice())),this.configObserver.pipe(Au$2(null),Su$2(),Tn$3(([r,l],o)=>o===0||Object.entries(l).map(n=>n.toString()).join()!==Object.entries(r).map(n=>n.toString()).join()),ge$9(([r,l])=>l))]).subscribe(([r,l])=>{if(this.configSubscription?.unsubscribe(),this.configSubscription=new W$f,this.scrollbar?.destroy(),r)this.scrollbar=new G$e(e.location.nativeElement);else {let o=new Q$b(e.location.nativeElement,{disabled:l.disabled,enableXScroll:l.enableXScroll||l.enableXScrollDesk,disableYScroll:l.disableYScroll,wheelPropagation:l.wheelPropagation,dragScroll:l.dragScroll,elementRef:e.instance.content.elementRef.nativeElement.parentElement});l.visibleOnHover&&e.location.nativeElement.classList.add("g-visible-on-hover"),l.alwaysVisible&&(l.enableXScroll&&e.location.nativeElement.classList.add("g-always-visible-x"),l.disableYScroll||e.location.nativeElement.classList.add("g-always-visible-y")),l.enableXScroll&&o.enableXScroll(),this.scrollbar=o;}l.scrollXObserver&&this.configSubscription.add(this.scrollbar.onUpdateScroll.subscribe(o=>{l.scrollXObserver.next(o);})),l.hasScrollX&&this.configSubscription.add(this.scrollbar.hasScrollX.pipe(Tu$2()
6).subscribe(o=>{l.hasScrollX.next(o);})),l.scrollTo&&this.scrollbar.initScrollTo(l.scrollTo),l.scrollToBottomOnInit&&this.scrollbar.initScrollToBottomOnInit(),l.scrolledToBottomFn&&this.scrollbar.initScrolledToBottomFn(l.scrolledToBottomFn),l.disableGlobalScroll&&this.scrollbar.initDisableGlobalScroll(l.disableGlobalScrollExceptionsIds);}));}ngOnChanges(e){this.configObserver.next(e.config.currentValue);}ngOnDestroy(){this.subscription.unsubscribe(),this.scrollbar?.destroy(),this.configSubscription?.unsubscribe();}update(){this.scrollbar?.updateScroll();}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275dir=dw({type:t,selectors:[["","amScrollbar",""]],inputs:{config:[0,"amScrollbar","config"]},features:[Ev$1]});}};var e$k;try{e$k=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(t){e$k=false;}var I$9=(()=>{class t{_platformId=D$l(rv$1);isBrowser=this._platformId?Qi$3(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||e$k)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(n){return new(n||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();function m$e(t){return Array.isArray(t)?t:[t]}var k$b=new Set,d$d,D$j=(()=>{class t{_platform=D$l(I$9);_nonce=D$l(iv$1,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Q$a;}matchMedia(e){return (this._platform.WEBKIT||this._platform.BLINK)&&O$e(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();function O$e(t,a){if(!k$b.has(t))try{d$d||(d$d=document.createElement("style"),a&&d$d.setAttribute("nonce",a),d$d.setAttribute("type","text/css"),document.head.appendChild(d$d)),d$d.sheet&&(d$d.sheet.insertRule(`@media ${t.replace(/[{}]/g,"")} {body{ }}`,0),k$b.add(t));}catch(e){console.error(e);}}function Q$a(t){return {matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var W$d=(()=>{class t{_mediaMatcher=D$l(D$j);_zone=D$l($$b);_queries=new Map;_destroySubject=new de$c;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(e){return j$e(m$e(e)).some(p=>this._registerQuery(p).mql.matches)}observe(e){let p=j$e(m$e(e)).map(r=>this._registerQuery(r).observable),n=qm$2(p);return n=dt$8(n.pipe(Pt$a(1)),n.pipe(Nu$2(1),wu$2(0))),n.pipe(ge$9(r=>{let o={matches:false,breakpoints:{}};return r.forEach(({matches:c,query:N})=>{o.matches=o.matches||c,o.breakpoints[N]=c;}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),n={observable:new x$g(r=>{let o=c=>this._zone.run(()=>r.next(c));return i.addListener(o),()=>{i.removeListener(o);}}).pipe(Au$2(i),ge$9(({matches:r})=>({query:e,matches:r})),ku$2(this._destroySubject)),mql:i};return this._queries.set(e,n),n}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();function j$e(t){return t.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}var H$b={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};function t$k(e){return Object.keys(e)}function c$g(e){return Object.values(e)}function o$m(e){return Object.entries(e)}function r$a(e){return Object.fromEntries(e)}var i$h={isMdDeskWidth:"isMdDeskWidth",isSmDesk:"isSmDesk",isLs:"isLs",isMobLs:"isMobLs",isMob:"isMob",isMinMob:"isMinMob"};var r$9=class s{constructor(o){this.breakpointObserver=o;this._isMdDeskWidth=new rr$4(false);this._isSmDesk=new rr$4(true);this._isLs=new rr$4(false);this._isMobLs=new rr$4(false);
6this._isMob=new rr$4(false);this._isMinMob=new rr$4(false);this.isMdDeskWidth=this._isMdDeskWidth.asObservable();this.isSmDesk=this._isSmDesk.asObservable();this.isLs=this._isLs.asObservable();this.isMobLs=this._isMobLs.asObservable();this.isMob=this._isMob.asObservable();this.isMinMob=this._isMinMob.asObservable();let t={_isMdDeskWidth:`(max-width: ${s.maxMdDeskWidth}px)`,_isSmDesk:`(max-width: ${s.maxSmDeskWidth}px)`,_isLs:`(max-width: ${s.maxLsWidth}px)`,_isMobLs:`(max-width: ${s.maxMobLsWidth}px)`,_isMob:`(max-width: ${s.maxMobWidth}px)`,_isMinMob:`(max-width: ${s.maxMinMobWidth}px)`};o.observe(Object.values(t)).subscribe(n=>{t$k(t).forEach(a=>{let b=this[a];n.breakpoints[t[a]]!==b.getValue()&&b.next(n.breakpoints[t[a]]);});});}static{this.maxMdDeskWidth=1999;}static{this.maxSmDeskWidth=1279;}static{this.maxLsWidth=991;}static{this.maxMobLsWidth=767;}static{this.maxMobWidth=576;}static{this.maxMinMobWidth=360;}get(o){switch(o){case i$h.isMdDeskWidth:return this._isMdDeskWidth.getValue();case i$h.isSmDesk:return this._isSmDesk.getValue();case i$h.isLs:return this._isLs.getValue();case i$h.isMobLs:return this._isMobLs.getValue();case i$h.isMob:return this._isMob.getValue();case i$h.isMinMob:return this._isMinMob.getValue();default:return  false}}static{this.\u0275fac=function(t){return new(t||s)(me$b(W$d))};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var Q$9=Math.min,I$8=Math.max;var Qt$7={left:"right",right:"left",bottom:"top",top:"bottom"},te$e={start:"end",end:"start"};function at$7(t,e,n){return I$8(t,Q$9(e,n))}function _$5(t,e){return typeof t=="function"?t(e):t}function B$d(t){return t.split("-")[0]}function G$d(t){return t.split("-")[1]}function yt$6(t){return t==="x"?"y":"x"}function ft$7(t){return t==="y"?"height":"width"}var ee$c=new Set(["top","bottom"]);function k$a(t){return ee$c.has(B$d(t))?"y":"x"}function dt$6(t){return yt$6(k$a(t))}function Mt$6(t,e,n){n===void 0&&(n=false);let i=G$d(t),s=dt$6(t),o=ft$7(s),r=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(r=it$7(r)),[r,it$7(r)]}function Dt$8(t){let e=it$7(t);return [ct$7(t),e,ct$7(e)]}function ct$7(t){return t.replace(/start|end/g,e=>te$e[e])}var Tt$6=["left","right"],Lt$6=["right","left"],ne$d=["top","bottom"],ie$g=["bottom","top"];function oe$8(t,e,n){switch(t){case "top":case "bottom":return n?e?Lt$6:Tt$6:e?Tt$6:Lt$6;case "left":case "right":return e?ne$d:ie$g;default:return []}}function Wt$6(t,e,n,i){let s=G$d(t),o=oe$8(B$d(t),n==="start",i);return s&&(o=o.map(r=>r+"-"+s),e&&(o=o.concat(o.map(ct$7)))),o}function it$7(t){return t.replace(/left|right|bottom|top/g,e=>Qt$7[e])}function re$d(t){return D$m({top:0,right:0,bottom:0,left:0},t)}function vt$7(t){return typeof t!="number"?re$d(t):{top:t,right:t,bottom:t,left:t}}function J$h(t){let{x:e,y:n,width:i,height:s}=t;return {width:i,height:s,top:n,left:e,right:e+i,bottom:n+s,x:e,y:n}}function kt$6(t,e,n){let{reference:i,floating:s}=t,o=k$a(e),r=dt$6(e),l=ft$7(r),f=B$d(e),a=o==="y",p=i.x+i.width/2-s.width/2,c=i.y+i.height/2-s.height/2,m=i[l]/2-s[l]/2,d;switch(f){case "top":d={x:p,y:i.y-s.height};break;case "bottom":d={x:p,y:i.y+i.height};break;case "right":d={x:i.x+i.width,y:c};break;case "left":d={x:i.x-s.width,y:c};break;default:d={x:i.x,y:i.y};}switch(G$d(e)){case "start":d[r]-=m*(n&&a?-1:1);break;case "end":d[r]+=m*(n&&a?-1:1);break}return d}var Ft$5=(t,e,n)=>K$g(null,null,function*(){let{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,l=o.filter(Boolean),f=yield r.isRTL==null?void 0:r.isRTL(e),a=yield r.getElementRects({reference:t,floating:e,strategy:s}),{x:p,y:c}=kt$6(a,i,f),m=i,d={},g=0;for(let u=0;u<l.length;u++){let{name:x,fn:h}=l[u],{x:w,y,data:v,reset:b}=yield h({x:p,y:c,initialPlacement:i,placement:m,strategy:s,middlewareData:d,rects:a,platform:r,elements:{reference:t,floating:e}});p=w??p,c=y??c,d=E$9(D$m({},d),{[x]:D$m(D$m({},d[x]),v)}),b&&g<=50&&(g++,typeof b=="object"&&(b.placement&&(m=b.placement),b.rects&&(a=b.rects===true?yield r.getElementRects({reference:t,floating:e,strategy:s}):b.rects),{x:p,y:c}=kt$6(a,m,f)),u=-1);}return {x:p,y:c,placement:m,strategy:s,middlewareData:d}});function mt$6(t,e){return K$g(this,null,function*(){var n;e===void 0&&(e={});let{x:i,y:s,platform:o,rects:r,elements:l,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:p="viewport",elementContext:c="floating",altBoundary:m=false,padding:d=0}=_$5(e,t),g=vt$7(d),x=l[m?c==="floating"?"reference":"floating":c],h=J$h(yield o.getClippingRect
6({element:(n=yield o.isElement==null?void 0:o.isElement(x))==null||n?x:x.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:a,rootBoundary:p,strategy:f})),w=c==="floating"?{x:i,y:s,width:r.floating.width,height:r.floating.height}:r.reference,y=yield o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating),v=(yield o.isElement==null?void 0:o.isElement(y))?(yield o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},b=J$h(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:y,strategy:f}):w);return {top:(h.top-b.top+g.top)/v.y,bottom:(b.bottom-h.bottom+g.bottom)/v.y,left:(h.left-b.left+g.left)/v.x,right:(b.right-h.right+g.right)/v.x}})}var se$a=t=>({name:"arrow",options:t,fn(n){return K$g(this,null,function*(){let{x:i,y:s,placement:o,rects:r,platform:l,elements:f,middlewareData:a}=n,{element:p,padding:c=0}=_$5(t,n)||{};if(p==null)return {};let m=vt$7(c),d={x:i,y:s},g=dt$6(o),u=ft$7(g),x=yield l.getDimensions(p),h=g==="y",w=h?"top":"left",y=h?"bottom":"right",v=h?"clientHeight":"clientWidth",b=r.reference[u]+r.reference[g]-d[g]-r.floating[u],K=d[g]-r.reference[g],N=yield l.getOffsetParent==null?void 0:l.getOffsetParent(p),O=N?N[v]:0;(!O||!(yield l.isElement==null?void 0:l.isElement(N)))&&(O=f.floating[v]||r.floating[u]);let F=b/2-K/2,D=O/2-x[u]/2-1,R=Q$9(m[w],D),$=Q$9(m[y],D),W=R,j=O-x[u]-$,P=O/2-x[u]/2+F,C=at$7(W,P,j),q=!a.arrow&&G$d(o)!=null&&P!==C&&r.reference[u]/2-(P<W?R:$)-x[u]/2<0,H=q?P<W?P-W:P-j:0;return {[g]:d[g]+H,data:D$m({[g]:C,centerOffset:P-C-H},q&&{alignmentOffset:H}),reset:q}})}});var ut$8=function(t){return t===void 0&&(t={}),{name:"flip",options:t,fn(n){return K$g(this,null,function*(){var i,s;let{placement:o,middlewareData:r,rects:l,initialPlacement:f,platform:a,elements:p}=n,P=_$5(t,n),{mainAxis:c=true,crossAxis:m=true,fallbackPlacements:d,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:x=true}=P,h=G$g(P,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((i=r.arrow)!=null&&i.alignmentOffset)return {};let w=B$d(o),y=k$a(f),v=B$d(f)===f,b=yield a.isRTL==null?void 0:a.isRTL(p.floating),K=d||(v||!x?[it$7(f)]:Dt$8(f)),N=u!=="none";!d&&N&&K.push(...Wt$6(f,x,u,b));let O=[f,...K],F=yield mt$6(n,h),D=[],R=((s=r.flip)==null?void 0:s.overflows)||[];if(c&&D.push(F[w]),m){let C=Mt$6(o,l,b);D.push(F[C[0]],F[C[1]]);}if(R=[...R,{placement:o,overflows:D}],!D.every(C=>C<=0)){var $,W;let C=((($=r.flip)==null?void 0:$.index)||0)+1,q=O[C];if(q&&(!(m==="alignment"?y!==k$a(q):false)||R.every(E=>k$a(E.placement)===y?E.overflows[0]>0:true)))return {data:{index:C,overflows:R},reset:{placement:q}};let H=(W=R.filter(Z=>Z.overflows[0]<=0).sort((Z,E)=>Z.overflows[1]-E.overflows[1])[0])==null?void 0:W.placement;if(!H)switch(g){case "bestFit":{var j;let Z=(j=R.filter(E=>{if(N){let U=k$a(E.placement);return U===y||U==="y"}return  true}).map(E=>[E.placement,E.overflows.filter(U=>U>0).reduce((U,Kt)=>U+Kt,0)]).sort((E,U)=>E[1]-U[1])[0])==null?void 0:j[0];Z&&(H=Z);break}case "initialPlacement":H=f;break}if(o!==H)return {reset:{placement:H}}}return {}})}}};var le$8=new Set(["left","top"]);function ce$9(t,e){return K$g(this,null,function*(){let{placement:n,platform:i,elements:s}=t,o=yield i.isRTL==null?void 0:i.isRTL(s.floating),r=B$d(n),l=G$d(n),f=k$a(n)==="y",a=le$8.has(r)?-1:1,p=o&&f?-1:1,c=_$5(e,t),{mainAxis:m,crossAxis:d,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof g=="number"&&(d=l==="end"?g*-1:g),f?{x:d*p,y:m*a}:{x:m*a,y:d*p}})}var tt$a=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(n){return K$g(this,null,function*(){var i,s;let{x:o,y:r,placement:l,middlewareData:f}=n,a=yield ce$9(n,t);return l===((i=f.offset)==null?void 0:i.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:o+a.x,y:r+a.y,data:E$9(D$m({},a),{placement:l})}})}}},bt$9=function(t){return t===void 0&&(t={}),{name:"shift",options:t,fn(n){return K$g(this,null,function*(){let{x:i,y:s,placement:o}=n,h=_$5(t,n),{mainAxis:r=true,crossAxis:l=false,limiter:f={fn:w=>{let{x:y,y:v}=w;return {x:y,y:v}}}}=h,a=G$g(h,["mainAxis","crossAxis","limiter"]),p={x:i,y:s},c=yield mt$6(n,a),m=k$a(B$d(o)),d=yt$6(m),g=p[d],u=p[m];if(r){let w=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=g+c[w],b=g-c[y];g=at$7(v,g,b);}if(l){let w=m==="y"?"top":"left",y=m==="y"?"bottom":"right",v=u+c[w],b=u-c[y];u=at$7(v,u,b);}let x=f.fn(E$9(D$m({},n),{[d]:g,[m]:u}));return E$9(D$m({},x),{data:{x:x.x-i,y:x.y-s,enabled:{[d]:r,[m]:l}}})})}}};var ae$a=function(t){return t===void 0&&(t={}),{name:"size",options:t,fn(n){return K$g(this,null,function*(){var i,s;let{placement:o,rects:r,platform:l,elements:f}=n,R=_$5(t,n),{apply:a=()=>{}}=R,p=G$g(R,["apply"]),c=yield mt$6(n,p),m=B$d(o),d=G$d(o),g=k$a(o)==="y",{width:u,height:x}=r.floating,h,w;m==="top"||m==="bottom"?(h=m,w=d===((yield l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(w=m,h=d==="end"?"top":"bottom");let y=x-c.top-c.bottom,v=u-c.left-c.right,b=Q$9(x-c[h],y),K=Q$9(u-c[w],v),N=!n.middlewareData.shift,O=b,F=K;if((i=n.middlewareData.shift)!=null&&i.enabled.x&&(F=v),(s=n.middlewareData.shift)!=null&&s.enabled.y&&(O=y),N&&!d){let $=I$8(c.left,0),W=I$8(c.right,0),j=I$8(c.top,0),P=I$8(c.bottom,0);g?F=u-2*($!==0||W!==0?$+W:I$8(c.left,c.right)):O=x-2*(j!==0||P!==0?j+P:I$8(c.top,c.bottom));}yield a(E$9(D$m({},n),{availableWidth:F,availableHeight:O}));let D=yield l.getDimensions(f.floating);return u!==D.width||x!==D.height?{reset:{rects:true}}:{}})}}};function S$7(t){var e;return ((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function L$8(t){return S$7(t).getComputedStyle(t)}function $t$6(t){return t instanceof S$7(t).Node}function X$d(t){return $t$6(t)?(t.nodeName||"").toLowerCase():""}var pt$6;function jt$6(){if(pt$6)return pt$6;let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(pt$6=t.brands.map(e=>e.brand+"/"+e.version).join(" "),pt$6):navigator.userAgent}function M$f(t){return t instanceof S$7(t).HTMLElement}function z$7(t){return t instanceof S$7(t).Element}function Ht$6(t){return typeof ShadowRoot>"u"?false:t instanceof S$7(t).ShadowRoot||t instanceof ShadowRoot}function rt$6(t){let{overflow:e,overflowX:n,overflowY:i,display:s}=L$8(t);return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(s)}function fe$b(t){return ["table","td","th"].includes(X$d(t))}function At$9(t){let e=/firefox/i.test(jt$6()),n=L$8(t),i=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!i&&i!=="none"||e&&n.willChange==="filter"||e&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(s=>n.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{let o=n.contain;return o!=null&&o.includes(s)})}function Pt$7(){return /^((?!chrome|android).)*safari/i.test(jt$6())}function ht$5(t){return ["html","body","#document"].includes(X$d(t))}var Vt$8=Math.min,ot$8=Math.max,gt$7=Math.round;function Ut$7(t){let e=L$8(t),n=parseFloat(e.width),i=parseFloat(e.height),s=M$f(t),o=s?t.offsetWidth:n,r=s?t.offsetHeight:i,l=gt$7(n)!==o||gt$7(i)!==r;return l&&(n=o,i=r),{width:n,height:i,fallback:l}}function It$7(t){return z$7(t)?t:t.contextElement}var Yt$7={x:1,y:1};function et$b(t){let e=It$7(t);if(!M$f(e))return Yt$7;let n=e.getBoundingClientRect(),{width:i,height:s,fallback:o}=Ut$7(e),r=(o?gt$7(n.width):n.width)/i,l=(o?gt$7(n.height):n.height)/s;return r&&Number.isFinite(r)||(r=1),l&&Number.isFinite(l)||(l=1),{x:r,y:l}}function st$9(t,e,n,i){var s,o;e===void 0&&(e=false),n===void 0&&(n=false);let r=t.getBoundingClientRect(),l=It$7(t),f=Yt$7;e&&(i?z$7(i)&&(f=et$b(i)):f=et$b(t));
6let a=l?S$7(l):window,p=Pt$7()&&n,c=(r.left+(p&&((s=a.visualViewport)==null?void 0:s.offsetLeft)||0))/f.x,m=(r.top+(p&&((o=a.visualViewport)==null?void 0:o.offsetTop)||0))/f.y,d=r.width/f.x,g=r.height/f.y;if(l){let u=S$7(l),x=i&&z$7(i)?S$7(i):i,h=u.frameElement;for(;h&&i&&x!==u;){let w=et$b(h),y=h.getBoundingClientRect(),v=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(v.paddingLeft))*w.x,y.y+=(h.clientTop+parseFloat(v.paddingTop))*w.y,c*=w.x,m*=w.y,d*=w.x,g*=w.y,c+=y.x,m+=y.y,h=S$7(h).frameElement;}}return J$h({width:d,height:g,x:c,y:m})}function Y$d(t){return (($t$6(t)?t.ownerDocument:t.document)||window.document).documentElement}function xt$8(t){return z$7(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xt$8(t){return st$9(Y$d(t)).left+xt$8(t).scrollLeft}function nt$b(t){if(X$d(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ht$6(t)&&t.host||Y$d(t);return Ht$6(e)?e.host:e}function qt$7(t){let e=nt$b(t);return ht$5(e)?e.ownerDocument.body:M$f(e)&&rt$6(e)?e:qt$7(e)}function Zt$8(t,e){var n;e===void 0&&(e=[]);let i=qt$7(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=S$7(i);return s?e.concat(o,o.visualViewport||[],rt$6(i)?i:[]):e.concat(i,Zt$8(i))}function Bt$8(t,e,n){let i;if(e==="viewport")i=(function(r,l){let f=S$7(r),a=Y$d(r),p=f.visualViewport,c=a.clientWidth,m=a.clientHeight,d=0,g=0;if(p){c=p.width,m=p.height;let u=Pt$7();(!u||u&&l==="fixed")&&(d=p.offsetLeft,g=p.offsetTop);}return {width:c,height:m,x:d,y:g}})(t,n);else if(e==="document")i=(function(r){let l=Y$d(r),f=xt$8(r),a=r.ownerDocument.body,p=ot$8(l.scrollWidth,l.clientWidth,a.scrollWidth,a.clientWidth),c=ot$8(l.scrollHeight,l.clientHeight,a.scrollHeight,a.clientHeight),m=-f.scrollLeft+Xt$8(r),d=-f.scrollTop;return L$8(a).direction==="rtl"&&(m+=ot$8(l.clientWidth,a.clientWidth)-p),{width:p,height:c,x:m,y:d}})(Y$d(t));else if(z$7(e))i=(function(r,l){let f=st$9(r,true,l==="fixed"),a=f.top+r.clientTop,p=f.left+r.clientLeft,c=M$f(r)?et$b(r):{x:1,y:1};return {width:r.clientWidth*c.x,height:r.clientHeight*c.y,x:p*c.x,y:a*c.y}})(e,n);else {let r=D$m({},e);if(Pt$7()){var s,o;let l=S$7(t);
6r.x-=((s=l.visualViewport)==null?void 0:s.offsetLeft)||0,r.y-=((o=l.visualViewport)==null?void 0:o.offsetTop)||0;}i=r;}return J$h(i)}function _t$7(t,e){let n=nt$b(t);return !(n===e||!z$7(n)||ht$5(n))&&(L$8(n).position==="fixed"||_t$7(n,e))}function zt$5(t,e){return M$f(t)&&L$8(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Nt$8(t,e){let n=S$7(t);if(!M$f(t))return n;let i=zt$5(t,e);for(;i&&fe$b(i)&&L$8(i).position==="static";)i=zt$5(i,e);return i&&(X$d(i)==="html"||X$d(i)==="body"&&L$8(i).position==="static"&&!At$9(i))?n:i||(function(s){let o=nt$b(s);for(;M$f(o)&&!ht$5(o);){if(At$9(o))return o;o=nt$b(o);}return null})(t)||n}function de$9(t,e,n){let i=M$f(e),s=Y$d(e),o=st$9(t,true,n==="fixed",e),r={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(i||!i&&n!=="fixed")if((X$d(e)!=="body"||rt$6(s))&&(r=xt$8(e)),M$f(e)){let f=st$9(e,true);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop;}else s&&(l.x=Xt$8(s));return {x:o.left+r.scrollLeft-l.x,y:o.top+r.scrollTop-l.y,width:o.width,height:o.height}}var me$a={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t,o=n==="clippingAncestors"?(function(a,p){let c=p.get(a);if(c)return c;let m=Zt$8(a).filter(x=>z$7(x)&&X$d(x)!=="body"),d=null,g=L$8(a).position==="fixed",u=g?nt$b(a):a;for(;z$7(u)&&!ht$5(u);){let x=L$8(u),h=At$9(u);h||x.position!=="fixed"||(d=null),(g?!h&&!d:!h&&x.position==="static"&&d&&["absolute","fixed"].includes(d.position)||rt$6(u)&&!h&&_t$7(a,u))?m=m.filter(w=>w!==u):d=x,u=nt$b(u);}return p.set(a,m),m})(e,this._c):[].concat(n),r=[...o,i],l=r[0],f=r.reduce((a,p)=>{let c=Bt$8(e,p,s);return a.top=ot$8(c.top,a.top),a.right=Vt$8(c.right,a.right),a.bottom=Vt$8(c.bottom,a.bottom),a.left=ot$8(c.left,a.left),a},Bt$8(e,l,s));return {width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:i}=t,s=M$f(n),o=Y$d(n);if(n===o)return e;let r={scrollLeft:0,scrollTop:0},l={x:1,y:1},f={x:0,y:0};if((s||!s&&i!=="fixed")&&((X$d(n)!=="body"||rt$6(o))&&(r=xt$8(n)),M$f(n))){let a=st$9(n);l=et$b(n),f.x=a.x+n.clientLeft,f.y=a.y+n.clientTop;}return {width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-r.scrollLeft*l.x+f.x,y:e.y*l.y-r.scrollTop*l.y+f.y}},isElement:z$7,getDimensions:function(t){return Ut$7(t)},getOffsetParent:Nt$8,getDocumentElement:Y$d,getScale:et$b,getElementRects(t){return K$g(this,null,function*(){let{reference:e,floating:n,strategy:i}=t,s=this.getOffsetParent||Nt$8,o=this.getDimensions;return {reference:de$9(e,yield s(n),i),floating:D$m({x:0,y:0},yield o(n))}})},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>L$8(t).direction==="rtl"};var Gt$6=(t,e,n)=>{let i=new Map,s=D$m({platform:me$a},n),o=E$9(D$m({},s.platform),{_c:i});return Ft$5(t,e,E$9(D$m({},s),{platform:o}))};var Jt$7=class t{static{this.customShiftName="customShift";}static mergePopperConfig(e,n){return n.placement&&(e.placement=n.placement),n.strategy&&(e.strategy=n.strategy),n.middleware&&n.middleware.forEach(i=>{let s=e.middleware.findIndex(o=>o.name===i.name);if(s!==-1){e.middleware[s]=i;return}e.middleware.push(i);}),e}static getCustomShift(){return {name:t.customShiftName,fn(e){let n=window.innerWidth<=768?8:16,s=e.elements.floating.parentElement.offsetWidth===window.innerWidth?t.getScrollWidth(e):0;return bt$9({crossAxis:true,padding:{top:n,right:n+s,bottom:n,left:n}}).fn(e)}}}static getSelectorConfig(e="bottom-start"){return {placement:e,strategy:"fixed",middleware:[ut$8({crossAxis:false,padding:16}),t.getCustomShift()]}}static getTooltipConfig(e="left"){return {placement:e,middleware:[ut$8({fallbackAxisSideDirection:"end",fallbackPlacements:["bottom","top","left","right","top"]}),tt$a({mainAxis:14}),t.getCustomShift()]}}static customZIndexMiddleware(e){return {name:"customZIndex",fn(n){return n.elements.floating.style.zIndex=String(e),{}}}}static getPanelOnSelector(e={}){return e.fixed?{middleware:[{name:t.customShiftName,fn:n=>n},tt$a(n=>e.onSelector?-n.rects.reference.height:0)]}:{middleware:[tt$a(n=>-n.rects.reference.height)]}}static getCenteredInViewport(){return {middleware:[{name:"centerInViewport",fn({rects:e}){return {x:Math.round((window.innerWidth-e.floating.width)/2),y:Math.round((window.innerHeight-e.floating.height)/2)}}}]}}static getCenteredRegardingToSelector(){return {middleware:[tt$a(({rects:e,elements:n})=>{let{reference:i,floating:s}=e,o=-(window.innerHeight-n.reference.getBoundingClientRect().top)+i.height/2,r=(i.width-s.width)/2,l=-((i.height-s.height)/2+s.height);return {crossAxis:r,mainAxis:l<o?o:l}})]}}static getScrollWidth(e){let n=e.elements.floating.parentElement?e.elements.floating.parentElement.scrollWidth:null;return n?window.innerWidth-n:0}};var wt$8=class wt{constructor(){this.onUpdate=Ns$2(window,"resize").pipe(Tn$3(()=>this.lastWindowWidth!==window.innerWidth),ge$9(()=>{this.lastWindowWidth=window.innerWidth;}));}};var St$7=class t{constructor(e,n,i,s){this.ref=e;this.popperEl=n;this.config=i;this.updateStrategy=s;this.subscription=new W$f;this.popperEl.style.position=this.config.strategy?this.config.strategy:"absolute";let o=this.updateStrategy?this.updateStrategy:new wt$8;this.subscription.add(o.onUpdate.subscribe(()=>this.update())),this.mutation=new MutationObserver(r=>{r[0].removedNodes&&(this.mutation.disconnect(),this.subscription.unsubscribe());}),this.mutation.observe(this.popperEl,{childList:true});}static{this.ARROW_SELECTOR="[data-popper-arrow]";}static{this.PLACEMENT_ATTR="data-popper-placement";}static getArrowElm(e=document){return e.querySelector(t.ARROW_SELECTOR)}static getArrowPosition(e){return {left:e.x!=null?`${e.x}px`:"",top:e.y!=null?`${e.y}px`:""}}setReference(e){this.ref=e;}update(){Gt$6(this.ref,this.popperEl,this.config).then(e=>
6{Object.assign(this.popperEl.style,{position:e.strategy,left:"0",top:"0",transform:`translate(${e.x}px, ${e.y}px)`}),this.popperEl.setAttribute(t.PLACEMENT_ATTR,e.placement);let n=e.middlewareData.arrow,i=t.getArrowElm(this.popperEl);!n||!i||Object.assign(t.getArrowElm(this.popperEl).style,t.getArrowPosition(n));});}};var B$c;function se$9(){if(B$c==null){let t=typeof document<"u"?document.head:null;B$c=!!(t&&(t.createShadowRoot||t.attachShadow));}return B$c}function pe$9(t){if(se$9()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function _e$9(t){if(t.composedPath)try{return t.composedPath()[0]}catch(i){}return t.target}function q$c(t,i=0){return X$c(t)?Number(t):arguments.length===2?i:0}function X$c(t){return !isNaN(parseFloat(t))&&!isNaN(Number(t))}function j$d(t){return t instanceof Gr$4?t.nativeElement:t}var O$d=new WeakMap,Ce$b=(()=>{class t{_appRef;_injector=D$l(ye$7);_environmentInjector=D$l(fe$d);load(e){let n=this._appRef=this._appRef||this._injector.get(tr$5),r=O$d.get(n);r||(r={loaders:new Set,refs:[]},O$d.set(n,r),n.onDestroy(()=>{O$d.get(n)?.refs.forEach(o=>o.destroy()),O$d.delete(n);})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(KV(e,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();function Ee$5(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var J$g=new Map,ee$b=class t{_appId=D$l(Kd$2);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(i,e=false){this._appId!=="ng"&&(i+=this._appId);let n=J$g.get(i);return n===void 0?n=0:n++,J$g.set(i,n),`${i}${e?t._infix+"-":""}${n}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})};function Ne$9(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ae$9(t){return t==null?"":typeof t=="string"?t:`${t}px`}var le$7=new M$g("cdk-dir-doc",{providedIn:"root",factory:()=>D$l(jn$2)}),de$8=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function te$d(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?de$8.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var U$c=(()=>{class t{get value(){return this.valueSignal()}valueSignal=fi$4("ltr");change=new tt$b;constructor(){let e=D$l(le$7,{optional:true});if(e){let n=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(te$d(n||r||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();var a$f=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(a$f||{}),N$d,u$b;function ne$c(){if(u$b==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return u$b=false,u$b;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)u$b=true;else {let t=Element.prototype.scrollTo;t?u$b=!/\{\s*\[native code\]\s*\}/.test(t.toString()):u$b=false;}}return u$b}function g$b(){if(typeof document!="object"||!document)return a$f.NORMAL;if(N$d==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),N$d=a$f.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,N$d=t.scrollLeft===0?a$f.NEGATED:a$f.INVERTED),t.remove();}return N$d}var W$c=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=cw({type:t});static \u0275inj=dd$2({})}return t})();var he$a=20,ue$7=(()=>{class t{_ngZone=D$l($$b);_platform=D$l(I$9);_renderer=D$l(Hr$4).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new de$c;_scrolledCount=0;
6scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)));}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e));}scrolled(e=he$a){return this._platform.isBrowser?new x$g(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Bu$2(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):Ms$2()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete();}ancestorScrolled(e,n){let r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(Tn$3(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((r,o)=>{this._targetContainsElement(o,e)&&n.push(o);}),n}_targetContainsElement(e,n){let r=j$d(n),o=e.getElementRef().nativeElement;do if(r==o)return  true;while(r=r.parentElement);return  false}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})(),bt$8=(()=>{class t{elementRef=D$l(Gr$4);scrollDispatcher=D$l(ue$7);ngZone=D$l($$b);dir=D$l(U$c,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new de$c;_renderer=D$l(fD);_cleanupScroll;_elementScrolled=new de$c;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),r&&g$b()!=a$f.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),g$b()==a$f.INVERTED?e.left=e.right:g$b()==a$f.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e);}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;ne$c()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left));}measureScrollOffset(e){let n="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let d=this.dir&&this.dir.value=="rtl";return e=="start"?e=d?r:n:e=="end"&&(e=d?n:r),d&&g$b()==a$f.INVERTED?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:d&&g$b()==a$f.NEGATED?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=dw({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),fe$a=20,At$8=(()=>{class t{_platform=D$l(I$9);_listeners;_viewportSize=null;_change=new de$c;_document=D$l(jn$2);constructor(){let e=D$l($$b),n=D$l(Hr$4).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[n.listen("window","resize",r),n.listen("window","orientationchange",r)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();
6return {top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),d=-o.top||e.body?.scrollTop||n.scrollY||r.scrollTop||0,oe=-o.left||e.body?.scrollLeft||n.scrollX||r.scrollLeft||0;return {top:d,left:oe}}change(e=fe$a){return e>0?this._change.pipe(Bu$2(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0};}static \u0275fac=function(n){return new(n||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();var ie$f=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=cw({type:t});static \u0275inj=dd$2({})}return t})(),Tt$5=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=cw({type:t});static \u0275inj=dd$2({imports:[W$c,ie$f,W$c,ie$f]})}return t})();var R$e=class R{_attachedHost=null;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i;}},H$a=class H extends R$e{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(i,e,n,r,o,d){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=r,this.bindings=o||null,this.directives=d||null;}},x$f=class x extends R$e{templateRef;viewContainerRef;context;injector;constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r;}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},G$c=class G extends R$e{element;constructor(i){super(),this.element=i instanceof Gr$4?i.nativeElement:i;}},P$e=class P{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(i){if(i instanceof H$a)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof x$f)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof G$c)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(i){this._disposeFn=i;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},re$c=class re extends P$e{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n;}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,r=n.get(Gn$2,null,{optional:true})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:r,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),this.setDisposeFn(()=>e.destroy());}else {let n=this._appRef,r=i.injector||this._defaultInjector||ye$7.NULL,o=r.get(fe$d,n.injector);e=KV(i.component,{elementInjector:r,environmentInjector:o,projectableNodes:i.projectableNodes||void 0,bindings:i.bindings||void 0,directives:i.directives||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);r!==-1&&e.remove(r);}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},Bt$7=(()=>{class t extends x$f{constructor(){let e=D$l(Vr$4),n=D$l(ds$1);super(e,n);}static \u0275fac=function(n){return new(n||t)};static \u0275dir=dw({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[sg$1]})}return t})(),jt$5=(()=>{class t extends P$e{_moduleRef=D$l(Gn$2,{optional:true});_document=D$l(jn$2);
6_viewContainerRef=D$l(ds$1);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null);}attached=new tt$b;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(r,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(n,r);});};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Vv$1(t)))(r||t)}})();static \u0275dir=dw({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[sg$1]})}return t})(),Ut$6=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=cw({type:t});static \u0275inj=dd$2({})}return t})();function Ht$5(t){return t!=null&&`${t}`!="false"}var _t$6=ne$c();function wt$7(s){return new R$d(s.get(At$8),s.get(jn$2))}var R$d=class R{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(t,e){this._viewportRuler=t,this._document=e;}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=ae$9(-this._previousScrollPosition.left),t.style.top=ae$9(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,i=t.style,o=e.style,n=i.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=false,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),_t$6&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_t$6&&(i.scrollBehavior=n,o.scrollBehavior=r);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return  false;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function St$6(s,t){return new D$i(s.get(ue$7),s.get($$b),s.get(At$8),t)}var D$i=class D{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(t,e,i,o){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=o;}attach(t){this._overlayRef,this._overlayRef=t;}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(Tn$3(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=t.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var k$9=class k{enable(){}disable(){}attach(){}};function j$c(s,t){return t.some(e=>{let i=s.bottom<e.top,o=s.top>e.bottom,n=s.right<e.left,r=s.left>e.right;return i||o||n||r})}function ut$7(s,t){return t.some(e=>{let i=s.top<e.top,o=s.bottom>
6e.bottom,n=s.left<e.left,r=s.right>e.right;return i||o||n||r})}function Ot$6(s,t){return new M$e(s.get(ue$7),s.get(At$8),s.get($$b),t)}var M$e=class M{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(t,e,i,o){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=o;}attach(t){this._overlayRef,this._overlayRef=t;}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();j$c(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},kt$5=(()=>{class s{_injector=D$l(ye$7);noop=()=>new k$9;close=e=>St$6(this._injector,e);block=()=>wt$7(this._injector);reposition=e=>Ot$6(this._injector,e);static \u0275fac=function(i){return new(i||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),B$b=class B{positionStrategy;scrollStrategy=new k$9;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(t){if(t){let e=Object.keys(t);for(let i of e)t[i]!==void 0&&(this[i]=t[i]);}}};var A$c=class A{connectionPair;scrollableViewProperties;constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e;}};var Ct$6=(()=>{class s{_attachedOverlays=[];_document=D$l(jn$2);_isAttached=false;ngOnDestroy(){this.detach();}add(e){this.remove(e),this._attachedOverlays.push(e);}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(e,i,o){return o.observers.length<1?false:e.eventPredicate?e.eventPredicate(i):true}static \u0275fac=function(i){return new(i||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),Pt$6=(()=>{class s extends Ct$6{_ngZone=D$l($$b);_renderer=D$l(Hr$4).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=e=>{let i=this._attachedOverlays;for(let o=i.length-1;o>-1;o--){let n=i[o];if(this.canReceiveEvent(n,e,n._keydownEvents)){this._ngZone.run(()=>n._keydownEvents.next(e));break}}};static \u0275fac=function(i){return new(i||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),xt$7=(()=>{class s extends Ct$6{_platform=D$l(I$9);_ngZone=D$l($$b);_renderer=D$l(Hr$4).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,o={capture:true},n=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[n.listen(i,"pointerdown",this._pointerDownListener,o),n.listen(i,"click",this._clickListener,o),n.listen(i,"auxclick",this._clickListener,o),n.listen(i,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=e=>{this._pointerDownEventTarget=_e$9(e);};_clickListener=e=>{let i=_e$9(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){let a=n[r],h=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,e,h))){if(gt$6(a.overlayElement,i)||gt$6(a.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>h.next(e)):h.next(e);}}};static \u0275fac=function(i){return new(i||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})();function gt$6(s,t){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=t;
vendor: 7,355 bytes, lines 6-145
6for(;i;){if(i===s)return  true;i=e&&i instanceof ShadowRoot?i.host:i.parentNode;}return  false}var Et$6=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275cmp=sw({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
7  pointer-events: none;
8  top: 0;
9  left: 0;
10  height: 100%;
11  width: 100%;
12}
13
14.cdk-overlay-container {
15  position: fixed;
16}
17@layer cdk-overlay {
18  .cdk-overlay-container {
19    z-index: 1000;
20  }
21}
22.cdk-overlay-container:empty {
23  display: none;
24}
25
26.cdk-global-overlay-wrapper {
27  display: flex;
28  position: absolute;
29}
30@layer cdk-overlay {
31  .cdk-global-overlay-wrapper {
32    z-index: 1000;
33  }
34}
35
36.cdk-overlay-pane {
37  position: absolute;
38  pointer-events: auto;
39  box-sizing: border-box;
40  display: flex;
41  max-width: 100%;
42  max-height: 100%;
43}
44@layer cdk-overlay {
45  .cdk-overlay-pane {
46    z-index: 1000;
47  }
48}
49
50.cdk-overlay-backdrop {
51  position: absolute;
52  top: 0;
53  bottom: 0;
54  left: 0;
55  right: 0;
56  pointer-events: auto;
57  -webkit-tap-highlight-color: transparent;
58  opacity: 0;
59  touch-action: manipulation;
60}
61@layer cdk-overlay {
62  .cdk-overlay-backdrop {
63    z-index: 1000;
64    transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
65  }
66}
67@media (prefers-reduced-motion) {
68  .cdk-overlay-backdrop {
69    transition-duration: 1ms;
70  }
71}
72
73.cdk-overlay-backdrop-showing {
74  opacity: 1;
75}
76@media (forced-colors: active) {
77  .cdk-overlay-backdrop-showing {
78    opacity: 0.6;
79  }
80}
81
82@layer cdk-overlay {
83  .cdk-overlay-dark-backdrop {
84    background: rgba(0, 0, 0, 0.32);
85  }
86}
87
88.cdk-overlay-transparent-backdrop {
89  transition: visibility 1ms linear, opacity 1ms linear;
90  visibility: hidden;
91  opacity: 1;
92}
93.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop {
94  opacity: 0;
95  visibility: visible;
96}
97
98.cdk-overlay-backdrop-noop-animation {
99  transition: none;
100}
101
102.cdk-overlay-connected-position-bounding-box {
103  position: absolute;
104  display: flex;
105  flex-direction: column;
106  min-width: 1px;
107  min-height: 1px;
108}
109@layer cdk-overlay {
110  .cdk-overlay-connected-position-bounding-box {
111    z-index: 1000;
112  }
113}
114
115.cdk-global-scrollblock {
116  position: fixed;
117  width: 100%;
118  overflow-y: scroll;
119}
120
121.cdk-overlay-popover {
122  background: none;
123  border: none;
124  padding: 0;
125  outline: 0;
126  overflow: visible;
127  position: fixed;
128  pointer-events: none;
129  white-space: normal;
130  color: inherit;
131  text-decoration: none;
132  width: 100%;
133  height: 100%;
134  inset: auto;
135  top: 0;
136  left: 0;
137}
138.cdk-overlay-popover::backdrop {
139  display: none;
140}
141.cdk-overlay-popover .cdk-overlay-backdrop {
142  position: fixed;
143  z-index: auto;
144}
145`],encapsulation:2})}return s})(),K$c=(()=>{class s{_platform=D$l(I$9);_containerElement;_document=D$l(jn$2);_styleLoader=D$l(Ce$b);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Ne$9()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let n=0;n<o.length;n++)o[n].remove();}let i=this._document.createElement("div");i.classList.add(e),Ne$9()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i;}_loadStyles(){this._styleLoader.load(Et$6);}static \u0275fac=function(i){return new(i||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),G$b=class G{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(t,e,i,o){this._renderer=e,this._ngZone=i,this.element=t.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",o);}detach(){this._ngZone.runOutsideAngular(()=>{let t=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(t,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),t.style.pointerEvents="none",t.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function $$8(s){return s&&s.nodeType===1}var V$d=class V{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new de$c;_attachments=new de$c;_detachments=new de$c;_positionStrategy;_scrollStrategy;_locationChanges=W$f.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new de$c;_outsidePointerEvents=new de$c;_afterNextRenderRef;constructor(t,e,i,o,n,r,a,h,d,l=false,c,_){this._portalOutlet=t,this._host=e,this._pane=i,this._config=o,this._ngZone=n,this._keyboardDispatcher=r,this._document=a,this._location=h,this._outsideClickDispatcher=d,this._animationsDisabled=l,this._injector=c,this._renderer=_,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(t){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(t);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=oh$2(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){if(this._disposed)return;let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
145pose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,t&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()));}updateSize(t){this._config=D$m(D$m({},this._config),t),this._updateElementSize();}setDirection(t){this._config=E$9(D$m({},this._config),{direction:t}),this._updateElementDirection();}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,true);}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,false);}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=ae$9(this._config.width),t.height=ae$9(this._config.height),t.minWidth=ae$9(this._config.minWidth),t.minHeight=ae$9(this._config.minHeight),t.maxWidth=ae$9(this._config.maxWidth),t.maxHeight=ae$9(this._config.maxHeight);}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none";}_attachHost(){if(!this._host.parentElement){let t=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;$$8(t)?t.after(this._host):t?.type==="parent"?t.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch(t){}}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new G$b(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(t));}):this._backdropRef.element.classList.add(t);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(t,e,i){let o=m$e(e||[]).filter(n=>!!n);o.length&&(i?t.classList.add(...o):t.classList.remove(...o));}_detachContentWhenEmpty(){let t=false;try{this._detachContentAfterRenderRef=oh$2(()=>{t=!0,this._detachContent();},{injector:this._injector});}catch(e){if(t)throw e;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let t=this._scrollStrategy;t?.disable(),t?.detach?.();}},yt$5="cdk-overlay-connected-position-bounding-box",Yt$6=/([A-Za-z%]+)$/;function Rt$6(s,t){return new Y$c(t,s.get(At$8),s.get(jn$2),s.get(I$9),s.get(K$c))}var Y$c=class Y{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new de$c;_resizeSubscription=W$f.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}
145constructor(t,e,i,o,n){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=n,this.setOrigin(t);}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(yt$5),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let t=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,n=[],r;for(let a of this._preferredPositions){let h=this._getOriginPoint(t,o,a),d=this._getOverlayPoint(h,e,a),l=this._getOverlayFit(d,e,i,a);if(l.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(a,h);return}if(this._canFitWithFlexibleDimensions(l,d,i)){n.push({position:a,origin:h,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(h,a)});continue}(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:d,originPoint:h,position:a,overlayRect:e});}if(n.length){let a=null,h=-1;for(let d of n){let l=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);l>h&&(h=l,a=d);}this._isPushed=false,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&b$8(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(yt$5),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;t?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(t,this._getOriginPoint(this._originRect,this._containerRect,t))):this.apply();}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=true){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=true){return this._growAfterOpen=t,this}withPush(t=true){return this._canPush=t,this}withLockedPosition(t=true){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}withPopoverLocation(t){return this._popoverLocation=t,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof Gr$4?this._origin.nativeElement:$$8(this._origin)?this._origin:null}_getOriginPoint(t,e,i){let o;if(i.originX=="center")o=t.left+t.width/2;else {let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;o=i.originX=="start"?r:a;}e.left<0&&(o-=e.left);let n;return i.originY=="center"?n=t.top+t.height/2:n=i.originY=="top"?t.top:t.bottom,e.top<0&&(n-=e.top),{x:o,y:n}}_getOverlayPoint(t,e,i){let o;i.overlayX=="center"?o=-e.width/2:i.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let n;return i.overlayY=="center"?n=-e.height/2:n=i.overlayY=="top"?0:-e.height,{x:t.x+o,y:t.y+n}}_getOverlayFit(t,e,i,o){let n=mt$5(e),{x:r,y:a}=t,h=this._getOffset(o,"x"),d=this._getOffset(o,"y");h&&(r+=h),d&&(a+=d);let l=0-r,c=r+n.width-i.width,_=0-a,g=a+n.height-i.height,u=this._subtractOverflows(n.width,l,c),y=this._subtractOverflows(n.height,_,g),U=u*y;return {visibleArea:U,isCompletelyWithinViewport:n.width*n.height===U,fitsInViewportVertically:y===n.height,fitsInViewportHorizontally:u==n.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){let o=i.bottom-e.y,n=i.right-e.x,r=vt$6(this._overlayRef.getConfig().minHeight),a=vt$6(this._overlayRef.getConfig().minWidth),h=t.fitsInViewportVertically||r!=null&&r<=o,d=t.fitsInViewportHorizontally||a!=null&&a<=n;return h&&d}return  false}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return {x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let o=mt$5(e),n=this._viewportRect,r=Math.max(t.x+o.width-n.width,0),a=Math.max(t.y+o.height-n.height,0),h=Math.max(n.top-i.top-t.y,0),d=Math.max(n.left-i.left-t.x,0),l=0,c=0;return o.width<=n.width?l=d||-r:l=t.x<this._getViewportMarginStart()?n.left-i.left-t.x:0,o.height<=n.height?c=h||-a:c=t.y<this._getViewportMarginTop()?n.top-i.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!Lt$5(this._lastScrollVisibility,i)){let o=new A$c(t,i);this._positionChanges.next(o);}this._lastScrollVisibility=i;}this._lastPosition=t,this._isInitialRender=false;}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,o=t.overlayY;
145t.overlayX==="center"?i="center":this._isRtl()?i=t.overlayX==="start"?"right":"left":i=t.overlayX==="start"?"left":"right";for(let n=0;n<e.length;n++)e[n].style.transformOrigin=`${i} ${o}`;}_calculateBoundingBoxRect(t,e){let i=this._viewportRect,o=this._isRtl(),n,r,a;if(e.overlayY==="top")r=t.y,n=i.height-r+this._getViewportMarginBottom();else if(e.overlayY==="bottom")a=i.height-t.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),n=i.height-a+this._getViewportMarginTop();else {let g=Math.min(i.bottom-t.y+i.top,t.y),u=this._lastBoundingBoxSize.height;n=g*2,r=t.y-g,n>u&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-u/2);}let h=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,d=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,l,c,_;if(d)_=i.width-t.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),l=t.x-this._getViewportMarginStart();else if(h)c=t.x,l=i.right-t.x-this._getViewportMarginEnd();else {let g=Math.min(i.right-t.x+i.left,t.x),u=this._lastBoundingBoxSize.width;l=g*2,c=t.x-g,l>u&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-u/2);}return {top:r,left:c,bottom:a,right:_,width:l,height:n}}_setBoundingBoxStyles(t,e){let i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;o.width=ae$9(i.width),o.height=ae$9(i.height),o.top=ae$9(i.top)||"auto",o.bottom=ae$9(i.bottom)||"auto",o.left=ae$9(i.left)||"auto",o.right=ae$9(i.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",n&&(o.maxHeight=ae$9(n)),r&&(o.maxWidth=ae$9(r));}this._lastBoundingBoxSize=i,b$8(this._boundingBox.style,o);}_resetBoundingBoxStyles(){b$8(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){b$8(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(t,e){let i={},o=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(o){let l=this._viewportRuler.getViewportScrollPosition();b$8(i,this._getExactOverlayY(e,t,l)),b$8(i,this._getExactOverlayX(e,t,l));}else i.position="static";let a="",h=this._getOffset(e,"x"),d=this._getOffset(e,"y");h&&(a+=`translateX(${h}px) `),d&&(a+=`translateY(${d}px)`),i.transform=a.trim(),r.maxHeight&&(o?i.maxHeight=ae$9(r.maxHeight):n&&(i.maxHeight="")),r.maxWidth&&(o?i.maxWidth=ae$9(r.maxWidth):n&&(i.maxWidth="")),b$8(this._pane.style,i);}_getExactOverlayY(t,e,i){let o={top:"",bottom:""},n=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;o.bottom=`${r-(n.y+this._overlayRect.height)}px`;}else o.top=ae$9(n.y);return o}_getExactOverlayX(t,e,i){let o={left:"",right:""},n=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;o.right=`${a-(n.x+this._overlayRect.width)}px`;}else o.left=ae$9(n.x);return o}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:ut$7(t,i),isOriginOutsideView:j$c(t,i),isOverlayClipped:ut$7(e,i),isOverlayOutsideView:j$c(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,o)=>i-Math.max(o,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return {top:i.top+this._getViewportMarginTop(),left:i.left+this._getViewportMarginStart(),right:i.left+t-this._getViewportMarginEnd(),bottom:i.top+e-this._getViewportMarginBottom(),width:t-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}
145_addPanelClasses(t){this._pane&&m$e(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let t=this._origin;if(t instanceof Gr$4)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,i=t.height||0;return {top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}_getContainerRect(){let t=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();t&&(e.style.display="block");let i=e.getBoundingClientRect();return t&&(e.style.display=""),i}};function b$8(s,t){for(let e in t)t.hasOwnProperty(e)&&(s[e]=t[e]);return s}function vt$6(s){if(typeof s!="number"&&s!=null){let[t,e]=s.split(Yt$6);return !e||e==="px"?parseFloat(t):null}return s||null}function mt$5(s){return {top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}function Lt$5(s,t){return s===t?true:s.isOriginClipped===t.isOriginClipped&&s.isOriginOutsideView===t.isOriginOutsideView&&s.isOverlayClipped===t.isOverlayClipped&&s.isOverlayOutsideView===t.isOverlayOutsideView}var bt$7="cdk-global-overlay-wrapper";function Dt$7(s){return new L$7}var L$7=class L{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(bt$7),this._isDisposed=false;}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:n,maxWidth:r,maxHeight:a}=i,h=(o==="100%"||o==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!a||a==="100%"||a==="100vh"),l=this._xPosition,c=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",g="",u="",y="";h?y="flex-start":l==="center"?(y="center",_?u=c:g=c):_?l==="left"||l==="end"?(y="flex-end",g=c):(l==="right"||l==="start")&&(y="flex-start",u=c):l==="left"||l==="start"?(y="flex-start",g=c):(l==="right"||l==="end")&&(y="flex-end",u=c),t.position=this._cssPosition,t.marginLeft=h?"0":g,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=h?"0":u,e.justifyContent=y,e.alignItems=d?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(bt$7),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=true;}},Mt$5=(()=>{class s{_injector=D$l(ye$7);global(){return Dt$7()}flexibleConnectedTo(e){return Rt$6(this._injector,e)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),Bt$6=new M$g("OVERLAY_DEFAULT_CONFIG");function At$7(s,t){s.get(Ce$b).load(Et$6);let e=s.get(K$c),i=s.get(jn$2),o=s.get(ee$b),n=s.get(tr$5),r=s.get(U$c),a=s.get(fD,null,{optional:true})||s.get(Hr$4).createRenderer(null,null),h=new B$b(t),d=s.get(Bt$6,null,{optional:true})?.usePopover??true;h.direction=h.direction||r.value,"showPopover"in i.body?h.usePopover=t?.usePopover??d:h.usePopover=false;let l=i.createElement("div"),c=i.createElement("div");l.id=o.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),c.appendChild(l),h.usePopover&&(c.setAttribute("popover","manual"),c.classList.add("cdk-overlay-popover"));let _=h.usePopover?h.positionStrategy?.getPopoverInsertionPoint?.():null;return $$8(_)?_.after(c):_?.type==="parent"?_.element.appendChild(c):e.getContainerElement().appendChild(c),new V$d(new re$c(l,n,s),c,l,h,s.get($$b),s.get(Pt$6),i,s.get(it$8),s.get(xt$7),t?.disableAnimations??s.get(ov$1,null,{optional:true})==="NoopAnimations",s.get(fe$d),a)}var Vt$7=(()=>{class s{scrollStrategies=D$l(kt$5);_positionBuilder=D$l(Mt$5);_injector=D$l(ye$7);create(e){return At$7(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})();var Xt$7=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275mod=cw({type:s});static \u0275inj=dd$2({providers:[Vt$7],imports:[W$c,Ut$6,Tt$5,Tt$5]})}return s})();function Of$1(r,t){for(var e=-1,o=t.length,a=r.length;++e<o;)r[a+e]=t[e];return r}var Q$8=Of$1;var Tf$1=typeof global=="object"&&global&&global.Object===Object&&global,Kr$3=Tf$1;var _f$1=typeof self=="object"&&self&&self.Object===Object&&self,wf$1=Kr$3||_f$1||Function("return this")(),y$6=wf$1;var Sf$1=y$6.Symbol,v$b=Sf$1;var Lt$4=Object.prototype,If$1=Lt$4.hasOwnProperty,Pf$1=Lt$4.toString,Fr$2=v$b?v$b.toStringTag:void 0;function Cf$1(r){var t=If$1.call(r,Fr$2),e=r[Fr$2];try{r[Fr$2]=void 0;var o=!0;}catch(f){}var a=Pf$1.call(r);return o&&(t?r[Fr$2]=e:delete r[Fr$2]),a}var Mt$4=Cf$1;var Ef$1=Object.prototype,Lf$1=Ef$1.toString;function Mf$1(r){return Lf$1.call(r)}var jt$4=Mf$1;
145var jf$1="[object Null]",Rf$1="[object Undefined]",Rt$5=v$b?v$b.toStringTag:void 0;function Ff$1(r){return r==null?r===void 0?Rf$1:jf$1:Rt$5&&Rt$5 in Object(r)?Mt$4(r):jt$4(r)}var C$b=Ff$1;function Bf$1(r){return r!=null&&typeof r=="object"}var A$b=Bf$1;var Df$1="[object Arguments]";function Nf$1(r){return A$b(r)&&C$b(r)==Df$1}var _t$5=Nf$1;var Ft$4=Object.prototype,Gf$1=Ft$4.hasOwnProperty,Uf$1=Ft$4.propertyIsEnumerable,Wf$1=_t$5((function(){return arguments})())?_t$5:function(r){return A$b(r)&&Gf$1.call(r,"callee")&&!Uf$1.call(r,"callee")},B$a=Wf$1;var Kf$1=Array.isArray,d$c=Kf$1;var Bt$5=v$b?v$b.isConcatSpreadable:void 0;function qf$1(r){return d$c(r)||B$a(r)||!!(Bt$5&&r&&r[Bt$5])}var Dt$6=qf$1;function Nt$7(r,t,e,o,a){var f=-1,n=r.length;for(e||(e=Dt$6),a||(a=[]);++f<n;){var i=r[f];t>0&&e(i)?t>1?Nt$7(i,t-1,e,o,a):Q$8(a,i):o||(a[a.length]=i);}return a}var U$b=Nt$7;function Hf$1(r){var t=r==null?0:r.length;return t?U$b(r,1):[]}var wt$6=Hf$1;function $f$1(){this.__data__=[],this.size=0;}var Gt$5=$f$1;function Yf$1(r,t){return r===t||r!==r&&t!==t}var L$6=Yf$1;function zf$1(r,t){for(var e=r.length;e--;)if(L$6(r[e][0],t))return e;return  -1}var V$c=zf$1;var Zf$1=Array.prototype,Jf$1=Zf$1.splice;function Xf$1(r){var t=this.__data__,e=V$c(t,r);if(e<0)return  false;var o=t.length-1;return e==o?t.pop():Jf$1.call(t,e,1),--this.size,true}var Ut$5=Xf$1;function Qf$1(r){var t=this.__data__,e=V$c(t,r);return e<0?void 0:t[e][1]}var Wt$5=Qf$1;function Vf$1(r){return V$c(this.__data__,r)>-1}var Kt$6=Vf$1;function kf$1(r,t){var e=this.__data__,o=V$c(e,r);return o<0?(++this.size,e.push([r,t])):e[o][1]=t,this}var qt$6=kf$1;function cr$3(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1]);}}cr$3.prototype.clear=Gt$5;cr$3.prototype.delete=Ut$5;cr$3.prototype.get=Wt$5;cr$3.prototype.has=Kt$6;cr$3.prototype.set=qt$6;var k$8=cr$3;function ra$1(){this.__data__=new k$8,this.size=0;}var Ht$4=ra$1;function ta$2(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var $t$5=ta$2;function ea$2(r){return this.__data__.get(r)}var Yt$5=ea$2;function oa$1(r){return this.__data__.has(r)}var zt$4=oa$1;function fa$2(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var x$e=fa$2;var aa$1="[object AsyncFunction]",na$2="[object Function]",ia$2="[object GeneratorFunction]",pa$2="[object Proxy]";function ua$3(r){if(!x$e(r))return  false;var t=C$b(r);return t==na$2||t==ia$2||t==aa$1||t==pa$2}var gr$3=ua$3;var ma$1=y$6["__core-js_shared__"],qr$3=ma$1;
145var Zt$7=(function(){var r=/[^.]+$/.exec(qr$3&&qr$3.keys&&qr$3.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function sa$2(r){return !!Zt$7&&Zt$7 in r}var Jt$6=sa$2;var la$2=Function.prototype,da$1=la$2.toString;function xa$1(r){if(r!=null){try{return da$1.call(r)}catch(t){}try{return r+""}catch(t){}}return ""}var Y$b=xa$1;var ca$2=/[\\^$.*+?()[\]{}|]/g,ga$1=/^\[object .+?Constructor\]$/,ha$2=Function.prototype,ba$1=Object.prototype,ya$2=ha$2.toString,Aa=ba$1.hasOwnProperty,va$1=RegExp("^"+ya$2.call(Aa).replace(ca$2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Oa$1(r){if(!x$e(r)||Jt$6(r))return  false;var t=gr$3(r)?va$1:ga$1;return t.test(Y$b(r))}var Xt$6=Oa$1;function Ta$1(r,t){return r?.[t]}var Qt$6=Ta$1;function _a$1(r,t){var e=Qt$6(r,t);return Xt$6(e)?e:void 0}var I$7=_a$1;var wa=I$7(y$6,"Map"),rr$3=wa;var Sa$1=I$7(Object,"create"),z$6=Sa$1;function Ia(){this.__data__=z$6?z$6(null):{},this.size=0;}var Vt$6=Ia;function Pa(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var kt$4=Pa;var Ca$1="__lodash_hash_undefined__",Ea=Object.prototype,La$1=Ea.hasOwnProperty;function Ma(r){var t=this.__data__;if(z$6){var e=t[r];return e===Ca$1?void 0:e}return La$1.call(t,r)?t[r]:void 0}var re$b=Ma;var ja$1=Object.prototype,Ra$1=ja$1.hasOwnProperty;function Fa$1(r){var t=this.__data__;return z$6?t[r]!==void 0:Ra$1.call(t,r)}var te$c=Fa$1;var Ba="__lodash_hash_undefined__";function Da$1(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=z$6&&t===void 0?Ba:t,this}var ee$a=Da$1;function hr$4(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1]);}}hr$4.prototype.clear=Vt$6;hr$4.prototype.delete=kt$4;hr$4.prototype.get=re$b;hr$4.prototype.has=te$c;hr$4.prototype.set=ee$a;var St$5=hr$4;function Na$1(){this.size=0,this.__data__={hash:new St$5,map:new(rr$3||k$8),string:new St$5};}var oe$7=Na$1;function Ga$1(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var fe$9=Ga$1;function Ua(r,t){var e=r.__data__;return fe$9(t)?e[typeof t=="string"?"string":"hash"]:e.map}var tr$3=Ua;function Wa$1(r){var t=tr$3(this,r).delete(r);return this.size-=t?1:0,t}var ae$8=Wa$1;function Ka$1(r){return tr$3(this,r).get(r)}var ne$b=Ka$1;function qa$1(r){return tr$3(this,r).has(r)}var ie$e=qa$1;function Ha$1(r,t){var e=tr$3(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}var pe$8=Ha$1;function br$3(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1]);}}br$3.prototype.clear=oe$7;br$3.prototype.delete=ae$8;br$3.prototype.get=ne$b;br$3.prototype.has=ie$e;br$3.prototype.set=pe$8;var lr$3=br$3;var $a$1=200;function Ya$1(r,t){var e=this.__data__;if(e instanceof k$8){var o=e.__data__;if(!rr$3||o.length<$a$1-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new lr$3(o);}return e.set(r,t),this.size=e.size,this}var ue$6=Ya$1;function yr$4(r){var t=this.__data__=new k$8(r);this.size=t.size;}yr$4.prototype.clear=Ht$4;yr$4.prototype.delete=$t$5;yr$4.prototype.get=Yt$5;yr$4.prototype.has=zt$4;yr$4.prototype.set=ue$6;var W$b=yr$4;function za$1(r,t){for(var e=-1,o=r==null?0:r.length;++e<o&&t(r[e],e,r)!==false;);return r}var Hr$3=za$1;var Za$1=(function(){try{var r=I$7(Object,"defineProperty");return r({},"",{}),r}catch(t){}})(),Ar$4=Za$1;function Ja$1(r,t,e){t=="__proto__"&&Ar$4?Ar$4(r,t,{configurable:true,enumerable:true,value:e,writable:true}):r[t]=e;}var vr$4=Ja$1;var Xa$1=Object.prototype,Qa$1=Xa$1.hasOwnProperty;function Va$1(r,t,e){var o=r[t];(!(Qa$1.call(r,t)&&L$6(o,e))||e===void 0&&!(t in r))&&vr$4(r,t,e);}var er$3=Va$1;function ka$1(r,t,e,o){var a=!e;e||(e={});for(var f=-1,n=t.length;++f<n;){var i=t[f],p=o?o(e[i],r[i],i,e,r):void 0;p===void 0&&(p=r[i]),a?vr$4(e,i,p):er$3(e,i,p);}return e}var M$d=ka$1;function rn$2(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}var me$9=rn$2;function tn$2(){return  false}var se$8=tn$2;var xe$8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,le$6=xe$8&&typeof module=="object"&&module&&!module.nodeType&&module,en$3=le$6&&le$6.exports===xe$8,de$7=en$3?y$6.Buffer:void 0,on$2=de$7?de$7.isBuffer:void 0,fn$1=on$2||se$8,D$h=fn$1;var an$2=9007199254740991,nn$3=/^(?:0|[1-9]\d*)$/;function pn$1(r,t){var e=typeof r;return t=t??an$2,!!t&&(e=="number"||e!="symbol"&&nn$3.test(r))&&r>-1&&r%1==0&&r<t}var or$3=pn$1;var un$1=9007199254740991;function mn$2(r){return typeof r=="number"&&r>
145-1&&r%1==0&&r<=un$1}var Or$3=mn$2;var sn$2="[object Arguments]",ln$1="[object Array]",dn$2="[object Boolean]",xn$2="[object Date]",cn$2="[object Error]",gn$1="[object Function]",hn$1="[object Map]",bn$3="[object Number]",yn$1="[object Object]",An$2="[object RegExp]",vn$1="[object Set]",On$1="[object String]",Tn$1="[object WeakMap]",_n$2="[object ArrayBuffer]",wn$3="[object DataView]",Sn$3="[object Float32Array]",In$2="[object Float64Array]",Pn$1="[object Int8Array]",Cn$2="[object Int16Array]",En$2="[object Int32Array]",Ln$1="[object Uint8Array]",Mn$2="[object Uint8ClampedArray]",jn$1="[object Uint16Array]",Rn$2="[object Uint32Array]",g$a={};g$a[Sn$3]=g$a[In$2]=g$a[Pn$1]=g$a[Cn$2]=g$a[En$2]=g$a[Ln$1]=g$a[Mn$2]=g$a[jn$1]=g$a[Rn$2]=true;g$a[sn$2]=g$a[ln$1]=g$a[_n$2]=g$a[dn$2]=g$a[wn$3]=g$a[xn$2]=g$a[cn$2]=g$a[gn$1]=g$a[hn$1]=g$a[bn$3]=g$a[yn$1]=g$a[An$2]=g$a[vn$1]=g$a[On$1]=g$a[Tn$1]=false;function Fn$2(r){return A$b(r)&&Or$3(r.length)&&!!g$a[C$b(r)]}var ce$8=Fn$2;function Bn$2(r){return function(t){return r(t)}}var j$b=Bn$2;var ge$8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Br$3=ge$8&&typeof module=="object"&&module&&!module.nodeType&&module,Dn$2=Br$3&&Br$3.exports===ge$8,It$6=Dn$2&&Kr$3.process,Nn$2=(function(){try{var r=Br$3&&Br$3.require&&Br$3.require("util").types;return r||It$6&&It$6.binding&&It$6.binding("util")}catch(t){}})(),Z$7=Nn$2;var he$9=Z$7&&Z$7.isTypedArray,Gn$1=he$9?j$b(he$9):ce$8,fr$4=Gn$1;var Un$2=Object.prototype,Wn$1=Un$2.hasOwnProperty;function Kn$1(r,t){var e=d$c(r),o=!e&&B$a(r),a=!e&&!o&&D$h(r),f=!e&&!o&&!a&&fr$4(r),n=e||o||a||f,i=n?me$9(r.length,String):[],p=i.length;for(var u in r)(t||Wn$1.call(r,u))&&!(n&&(u=="length"||a&&(u=="offset"||u=="parent")||f&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||or$3(u,p)))&&i.push(u);return i}var $r$3=Kn$1;var qn$1=Object.prototype;function Hn$1(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||qn$1;return r===e}var K$b=Hn$1;function $n$1(r,t){return function(e){return r(t(e))}}var Yr$3=$n$1;var Yn$1=Yr$3(Object.keys,Object),be$8=Yn$1;var zn$1=Object.prototype,Zn$1=zn$1.hasOwnProperty;function Jn$1(r){if(!K$b(r))return be$8(r);var t=[];for(var e in Object(r))Zn$1.call(r,e)&&e!="constructor"&&t.push(e);return t}var zr$3=Jn$1;function Xn$1(r){return r!=null&&Or$3(r.length)&&!gr$3(r)}var w$9=Xn$1;function Qn$1(r){return w$9(r)?$r$3(r):zr$3(r)}var R$c=Qn$1;function Vn$2(r,t){return r&&M$d(t,R$c(t),r)}var ye$6=Vn$2;function kn$1(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var Ae$7=kn$1;var ri$5=Object.prototype,ti$5=ri$5.hasOwnProperty;function ei$5(r){if(!x$e(r))return Ae$7(r);var t=K$b(r),e=[];for(var o in r)o=="constructor"&&(t||!ti$5.call(r,o))||e.push(o);return e}var ve$7=ei$5;function oi$4(r){return w$9(r)?$r$3(r,true):ve$7(r)}var F$a=oi$4;function fi$3(r,t){return r&&M$d(t,F$a(t),r)}var Oe$8=fi$3;var Se$b=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Te$9=Se$b&&typeof module=="object"&&module&&!module.nodeType&&module,ai$5=Te$9&&Te$9.exports===Se$b,_e$8=ai$5?y$6.Buffer:void 0,we$8=_e$8?_e$8.allocUnsafe:void 0;function ni$4(r,t){if(t)return r.slice();var e=r.length,o=we$8?we$8(e):new r.constructor(e);return r.copy(o),o}var Zr$3=ni$4;function ii$5(r,t){var e=-1,o=r.length;for(t||(t=Array(o));++e<o;)t[e]=r[e];return t}var Tr$4=ii$5;function pi$4(r,t){for(var e=-1,o=r==null?0:r.length,a=0,f=[];++e<o;){var n=r[e];t(n,e,r)&&(f[a++]=n);}return f}var Jr$3=pi$4;function ui$3(){return []}var Xr$3=ui$3;var mi$4=Object.prototype,si$5=mi$4.propertyIsEnumerable,Ie$6=Object.getOwnPropertySymbols,li$5=Ie$6?function(r){return r==null?[]:(r=Object(r),Jr$3(Ie$6(r),function(t){return si$5.call(r,t)}))}:Xr$3,_r$4=li$5;function di$4(r,t){return M$d(r,_r$4(r),t)}var Pe$7=di$4;var xi$2=Yr$3(Object.getPrototypeOf,Object),wr$4=xi$2;var ci$5=Object.getOwnPropertySymbols,gi$4=ci$5?function(r){for(var t=[];r;)Q$8(t,_r$4(r)),r=wr$4(r);return t}:Xr$3,Qr$3=gi$4;function hi$4(r,t){return M$d(r,Qr$3(r),t)}var Ce$a=hi$4;function bi$2(r,t,e){var o=t(r);return d$c(r)?o:Q$8(o,e(r))}var Vr$3=bi$2;function yi$3(r){return Vr$3(r,R$c,_r$4)}var Dr$4=yi$3;function Ai$2(r){return Vr$3(r,F$a,Qr$3)}var Ee$4=Ai$2;var vi$2=I$7(y$6,"DataView"),kr$3=vi$2;var Oi$2=I$7(y$6,"Promise"),rt$5=Oi$2;var Ti$2=I$7(y$6,"Set"),ar$3=Ti$2;var _i$2=I$7(y$6,"WeakMap"),tt$9=_i$2;var Le$8="[object Map]",wi$2="[object Object]",Me$9="[object Promise]",je$7="[object Set]",Re$8="[object WeakMap]",Fe$b="[object DataView]",Si$2=Y$b(kr$3),Ii$1=Y$b(rr$3),Pi$2=Y$b(rt$5),Ci$3=Y$b(ar$3),Ei$2=Y$b(tt$9),dr$3=C$b;(kr$3&&dr$3(new kr$3(new ArrayBuffer(1)))!=Fe$b||rr$3&&dr$3(new rr$3)!=Le$8||rt$5&&dr$3(rt$5.resolve())!=Me$9||ar$3&&dr$3(new ar$3)!=je$7||tt$9&&dr$3(new tt$9)!=Re$8)&&(dr$3=function(r){var t=C$b(r),e=t==wi$2?r.constructor:void 0,o=e?Y$b(e):"";if(o)switch(o){case Si$2:return Fe$b;case Ii$1:return Le$8;case Pi$2:return Me$9;case Ci$3:return je$7;case Ei$2:return Re$8}return t});var N$c=dr$3;var Li$2=Object.prototype,Mi$2=Li$2.hasOwnProperty;function ji$2(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&Mi$2.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var Be$a=ji$2;var Ri$2=y$6.Uint8Array,Sr$4=Ri$2;function Fi$1(r){var t=new r.constructor(r.byteLength);return new Sr$4(t).set(new Sr$4(r)),t}var Ir$4=Fi$1;function Bi$2(r,t){var e=t?Ir$4(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}var De$9=Bi$2;var Di$2=/\w*$/;function Ni$2(r){var t=new r.constructor(r.source,Di$2.exec(r));return t.lastIndex=r.lastIndex,t}var Ne$8=Ni$2;
145var Ge$a=v$b?v$b.prototype:void 0,Ue$8=Ge$a?Ge$a.valueOf:void 0;function Gi$2(r){return Ue$8?Object(Ue$8.call(r)):{}}var We$9=Gi$2;function Ui$2(r,t){var e=t?Ir$4(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var et$a=Ui$2;var Wi$2="[object Boolean]",Ki$2="[object Date]",qi$2="[object Map]",Hi$2="[object Number]",$i$2="[object RegExp]",Yi$2="[object Set]",zi$1="[object String]",Zi$2="[object Symbol]",Ji$3="[object ArrayBuffer]",Xi$2="[object DataView]",Qi$2="[object Float32Array]",Vi$2="[object Float64Array]",ki$2="[object Int8Array]",rp="[object Int16Array]",tp="[object Int32Array]",ep="[object Uint8Array]",op="[object Uint8ClampedArray]",fp$1="[object Uint16Array]",ap="[object Uint32Array]";function np(r,t,e){var o=r.constructor;switch(t){case Ji$3:return Ir$4(r);case Wi$2:case Ki$2:return new o(+r);case Xi$2:return De$9(r,e);case Qi$2:case Vi$2:case ki$2:case rp:case tp:case ep:case op:case fp$1:case ap:return et$a(r,e);case qi$2:return new o;case Hi$2:case zi$1:return new o(r);case $i$2:return Ne$8(r);case Yi$2:return new o;case Zi$2:return We$9(r)}}var Ke$7=np;var qe$7=Object.create,ip=(function(){function r(){}return function(t){if(!x$e(t))return {};if(qe$7)return qe$7(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})(),He$8=ip;function pp(r){return typeof r.constructor=="function"&&!K$b(r)?He$8(wr$4(r)):{}}var ot$7=pp;var up="[object Map]";function mp(r){return A$b(r)&&N$c(r)==up}var $e$8=mp;var Ye$8=Z$7&&Z$7.isMap,sp=Ye$8?j$b(Ye$8):$e$8,ze$9=sp;var lp="[object Set]";function dp(r){return A$b(r)&&N$c(r)==lp}var Ze$8=dp;var Je$7=Z$7&&Z$7.isSet,xp$1=Je$7?j$b(Je$7):Ze$8,Xe$5=xp$1;var cp=1,gp=2,hp=4,Qe$8="[object Arguments]",bp$1="[object Array]",yp$1="[object Boolean]",Ap$1="[object Date]",vp$1="[object Error]",Ve$b="[object Function]",Op="[object GeneratorFunction]",Tp$1="[object Map]",_p$1="[object Number]",ke$9="[object Object]",wp$1="[object RegExp]",Sp$1="[object Set]",Ip$1="[object String]",Pp="[object Symbol]",Cp$1="[object WeakMap]",Ep$1="[object ArrayBuffer]",Lp$1="[object DataView]",Mp$1="[object Float32Array]",jp$1="[object Float64Array]",Rp$1="[object Int8Array]",Fp$1="[object Int16Array]",Bp$1="[object Int32Array]",Dp="[object Uint8Array]",Np$1="[object Uint8ClampedArray]",Gp$1="[object Uint16Array]",Up$1="[object Uint32Array]",c$f={};c$f[Qe$8]=c$f[bp$1]=c$f[Ep$1]=c$f[Lp$1]=c$f[yp$1]=c$f[Ap$1]=c$f[Mp$1]=c$f[jp$1]=c$f[Rp$1]=c$f[Fp$1]=c$f[Bp$1]=c$f[Tp$1]=c$f[_p$1]=c$f[ke$9]=c$f[wp$1]=c$f[Sp$1]=c$f[Ip$1]=c$f[Pp]=c$f[Dp]=c$f[Np$1]=c$f[Gp$1]=c$f[Up$1]=true;c$f[vp$1]=c$f[Ve$b]=c$f[Cp$1]=false;function ft$6(r,t,e,o,a,f){var n,i=t&cp,p=t&gp,u=t&hp;if(e&&(n=a?e(r,o,a,f):e(r)),n!==void 0)return n;if(!x$e(r))return r;var m=d$c(r);if(m){if(n=Be$a(r),!i)return Tr$4(r,n)}else {var s=N$c(r),l=s==Ve$b||s==Op;if(D$h(r))return Zr$3(r,i);if(s==ke$9||s==Qe$8||l&&!a){if(n=p||l?{}:ot$7(r),!i)return p?Ce$a(r,Oe$8(n,r)):Pe$7(r,ye$6(n,r))}else {if(!c$f[s])return a?r:{};n=Ke$7(r,s,i);}}
145f||(f=new W$b);var h=f.get(r);if(h)return h;f.set(r,n),Xe$5(r)?r.forEach(function(_){n.add(ft$6(_,t,e,_,r,f));}):ze$9(r)&&r.forEach(function(_,S){n.set(S,ft$6(_,t,e,S,r,f));});var b=u?p?Ee$4:Dr$4:p?F$a:R$c,T=m?void 0:b(r);return Hr$3(T||r,function(_,S){T&&(S=_,_=r[S]),er$3(n,S,ft$6(_,t,e,S,r,f));}),n}var at$6=ft$6;var Wp$1=1,Kp$1=4;function qp$1(r){return at$6(r,Wp$1|Kp$1)}var Hp$1=qp$1;var $p$1="__lodash_hash_undefined__";function Yp$1(r){return this.__data__.set(r,$p$1),this}var ro$2=Yp$1;function zp$1(r){return this.__data__.has(r)}var to$2=zp$1;function nt$a(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new lr$3;++t<e;)this.add(r[t]);}nt$a.prototype.add=nt$a.prototype.push=ro$2;nt$a.prototype.has=to$2;var nr$3=nt$a;function Zp$1(r,t){for(var e=-1,o=r==null?0:r.length;++e<o;)if(t(r[e],e,r))return  true;return  false}var eo$2=Zp$1;function Jp$1(r,t){return r.has(t)}var J$f=Jp$1;var Xp$1=1,Qp$1=2;function Vp$1(r,t,e,o,a,f){var n=e&Xp$1,i=r.length,p=t.length;if(i!=p&&!(n&&p>i))return  false;var u=f.get(r),m=f.get(t);if(u&&m)return u==t&&m==r;var s=-1,l=true,h=e&Qp$1?new nr$3:void 0;for(f.set(r,t),f.set(t,r);++s<i;){var b=r[s],T=t[s];if(o)var _=n?o(T,b,s,t,r,f):o(b,T,s,r,t,f);if(_!==void 0){if(_)continue;l=false;break}if(h){if(!eo$2(t,function(S,sr){if(!J$f(h,sr)&&(b===S||a(b,S,e,o,f)))return h.push(sr)})){l=false;break}}else if(!(b===T||a(b,T,e,o,f))){l=false;break}}return f.delete(r),f.delete(t),l}var it$6=Vp$1;function kp$1(r){var t=-1,e=Array(r.size);return r.forEach(function(o,a){e[++t]=[a,o];}),e}var oo$2=kp$1;function ru$1(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o;}),e}var Pr$2=ru$1;var tu$1=1,eu$1=2,ou$1="[object Boolean]",fu$1="[object Date]",au$1="[object Error]",nu$1="[object Map]",iu$1="[object Number]",pu$1="[object RegExp]",uu$1="[object Set]",mu$1="[object String]",su$1="[object Symbol]",lu$1="[object ArrayBuffer]",du$1="[object DataView]",fo$2=v$b?v$b.prototype:void 0,Pt$5=fo$2?fo$2.valueOf:void 0;function xu$1(r,t,e,o,a,f,n){switch(e){case du$1:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return  false;r=r.buffer,t=t.buffer;case lu$1:return !(r.byteLength!=t.byteLength||!f(new Sr$4(r),new Sr$4(t)));case ou$1:case fu$1:case iu$1:return L$6(+r,+t);case au$1:return r.name==t.name&&r.message==t.message;case pu$1:case mu$1:return r==t+"";case nu$1:var i=oo$2;case uu$1:var p=o&tu$1;if(i||(i=Pr$2),r.size!=t.size&&!p)return  false;var u=n.get(r);if(u)return u==t;o|=eu$1,n.set(r,t);var m=it$6(i(r),i(t),o,a,f,n);return n.delete(r),m;case su$1:if(Pt$5)return Pt$5.call(r)==Pt$5.call(t)}return  false}var ao$3=xu$1;var cu$1=1,gu$1=Object.prototype,hu$1=gu$1.hasOwnProperty;function bu$1(r,t,e,o,a,f){var n=e&cu$1,i=Dr$4(r),p=i.length,u=Dr$4(t),m=u.length;if(p!=m&&!n)return  false;for(var s=p;s--;){var l=i[s];if(!(n?l in t:hu$1.call(t,l)))return  false}var h=f.get(r),b=f.get(t);if(h&&b)return h==t&&b==r;var T=true;f.set(r,t),f.set(t,r);for(var _=n;++s<p;){l=i[s];var S=r[l],sr=t[l];if(o)var Et=n?o(sr,S,l,t,r,f):o(S,sr,l,r,t,f);if(!(Et===void 0?S===sr||a(S,sr,e,o,f):Et)){T=false;break}_||(_=l=="constructor");}if(T&&!_){var Ur=r.constructor,Wr=t.constructor;Ur!=Wr&&"constructor"in r&&"constructor"in t&&!(typeof Ur=="function"&&Ur instanceof Ur&&typeof Wr=="function"&&Wr instanceof Wr)&&(T=false);}return f.delete(r),f.delete(t),T}var no$2=bu$1;var yu$1=1,io$2="[object Arguments]",po$3="[object Array]",pt$5="[object Object]",Au$1=Object.prototype,uo$3=Au$1.hasOwnProperty;function vu$1(r,t,e,o,a,f){var n=d$c(r),i=d$c(t),p=n?po$3:N$c(r),u=i?po$3:N$c(t);p=p==io$2?pt$5:p,u=u==io$2?pt$5:u;var m=p==pt$5,s=u==pt$5,l=p==u;if(l&&D$h(r)){if(!D$h(t))return  false;n=true,m=false;}if(l&&!m)return f||(f=new W$b),n||fr$4(r)?it$6(r,t,e,o,a,f):ao$3(r,t,p,e,o,a,f);if(!(e&yu$1)){var h=m&&uo$3.call(r,"__wrapped__"),b=s&&uo$3.call(t,"__wrapped__");
145if(h||b){var T=h?r.value():r,_=b?t.value():t;return f||(f=new W$b),a(T,_,e,o,f)}}return l?(f||(f=new W$b),no$2(r,t,e,o,a,f)):false}var mo$3=vu$1;function so$3(r,t,e,o,a){return r===t?true:r==null||t==null||!A$b(r)&&!A$b(t)?r!==r&&t!==t:mo$3(r,t,e,o,so$3,a)}var ir$3=so$3;function Ou$1(r,t){return ir$3(r,t)}var Tu$1=Ou$1;var _u$1="[object Symbol]";function wu$1(r){return typeof r=="symbol"||A$b(r)&&C$b(r)==_u$1}var E$7=wu$1;function Su$1(r,t){for(var e=-1,o=r==null?0:r.length,a=Array(o);++e<o;)a[e]=t(r[e],e,r);return a}var P$d=Su$1;var lo$3=v$b?v$b.prototype:void 0,xo$2=lo$3?lo$3.toString:void 0;function co$3(r){if(typeof r=="string")return r;if(d$c(r))return P$d(r,co$3)+"";if(E$7(r))return xo$2?xo$2.call(r):"";var t=r+"";return t=="0"&&1/r==-Infinity?"-0":t}var go$3=co$3;var Pu$1=/\s/;function Cu$1(r){for(var t=r.length;t--&&Pu$1.test(r.charAt(t)););return t}var ho$2=Cu$1;var Eu$1=/^\s+/;function Lu$1(r){return r&&r.slice(0,ho$2(r)+1).replace(Eu$1,"")}var bo$2=Lu$1;var yo$3=NaN,Mu$1=/^[-+]0x[0-9a-f]+$/i,ju$1=/^0b[01]+$/i,Ru$1=/^0o[0-7]+$/i,Fu$1=parseInt;function Bu$1(r){if(typeof r=="number")return r;if(E$7(r))return yo$3;if(x$e(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=x$e(t)?t+"":t;}if(typeof r!="string")return r===0?r:+r;r=bo$2(r);var e=ju$1.test(r);return e||Ru$1.test(r)?Fu$1(r.slice(2),e?2:8):Mu$1.test(r)?yo$3:+r}var ut$6=Bu$1;var Ao$2=1/0,Du$1=17976931348623157e292;function Nu$1(r){if(!r)return r===0?r:0;if(r=ut$6(r),r===Ao$2||r===-Ao$2){var t=r<0?-1:1;return t*Du$1}return r===r?r:0}var vo$2=Nu$1;function Gu$1(r){var t=vo$2(r),e=t%1;return t===t?e?t-e:t:0}var mt$4=Gu$1;function Uu$1(r){return r}var q$b=Uu$1;function Wu$1(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var st$8=Wu$1;function Ku$1(){}var Oo$2=Ku$1;var qu$1=800,Hu$1=16,$u$1=Date.now;function Yu$1(r){var t=0,e=0;return function(){var o=$u$1(),a=Hu$1-(o-e);if(e=o,a>0){if(++t>=qu$1)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var To$2=Yu$1;function zu$1(r){return function(){return r}}var _o$2=zu$1;var Zu$1=Ar$4?function(r,t){return Ar$4(r,"toString",{configurable:true,enumerable:false,value:_o$2(t),writable:true})}:q$b,wo$3=Zu$1;var Ju$1=To$2(wo$3),lt$6=Ju$1;function Xu$1(r,t,e,o){for(var a=r.length,f=e+(o?1:-1);o?f--:++f<a;)if(t(r[f],f,r))return f;return  -1}var So$2=Xu$1;function Qu$1(r){return r!==r}var Io$2=Qu$1;function Vu$1(r,t,e){for(var o=e-1,a=r.length;++o<a;)if(r[o]===t)return o;return  -1}var Po$3=Vu$1;function ku$1(r,t,e){return t===t?Po$3(r,t,e):So$2(r,Io$2,e)}var Co$2=ku$1;function rm$1(r,t){var e=r==null?0:r.length;return !!e&&Co$2(r,t,0)>-1}var Cr$4=rm$1;var Eo$2=Math.max;function tm$1(r,t,e){return t=Eo$2(t===void 0?r.length-1:t,0),function(){for(var o=arguments,a=-1,f=Eo$2(o.length-t,0),n=Array(f);++a<f;)n[a]=o[t+a];a=-1;for(var i=Array(t+1);++a<t;)i[a]=o[a];return i[t]=e(n),st$8(r,this,i)}}var dt$5=tm$1;function em$1(r,t){return lt$6(dt$5(r,t,q$b),r+"")}var O$c=em$1;function om$1(r,t,e){if(!x$e(e))return  false;var o=typeof t;return (o=="number"?w$9(e)&&or$3(t,e.length):o=="string"&&t in e)?L$6(e[t],r):false}var X$b=om$1;function fm$1(r){return O$c(function(t,e){var o=-1,a=e.length,f=a>1?e[a-1]:void 0,n=a>2?e[2]:void 0;for(f=r.length>3&&typeof f=="function"?(a--,f):void 0,n&&X$b(e[0],e[1],n)&&(f=a<3?void 0:f,a=1),t=Object(t);++o<a;){var i=e[o];i&&r(t,i,o,f);}return t})}var Er$4=fm$1;var am$1=Object.prototype,nm$1=am$1.hasOwnProperty,im$1=Er$4(function(r,t){if(K$b(t)||w$9(t)){M$d(t,R$c(t),r);return}for(var e in t)nm$1.call(t,e)&&er$3(r,e,t[e]);}),pm$1=im$1;var um$1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mm$1=/^\w*$/;function sm$1(r,t){if(d$c(r))return  false;var e=typeof r;return e=="number"||e=="symbol"||e=="boolean"||r==null||E$7(r)?true:mm$1.test(r)||!um$1.test(r)||t!=null&&r in Object(t)}var Lr$3=sm$1;var lm$1="Expected a function";function Ct$5(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(lm$1);var e=function(){var o=arguments,a=t?t.apply(this,o):o[0],f=e.cache;if(f.has(a))return f.get(a);var n=r.apply(this,o);return e.cache=f.set(a,n)||f,n};return e.cache=new(Ct$5.Cache||lr$3),e}Ct$5.Cache=lr$3;var Lo$2=Ct$5;var dm$1=500;function xm$1(r){var t=Lo$2(r,function(o){return e.size===dm$1&&e.clear(),o}),e=t.cache;return t}var Mo$3=xm$1;var cm$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gm$1=/\\(\\)?/g,hm$1=Mo$3(function(r){var t=[];
145return r.charCodeAt(0)===46&&t.push(""),r.replace(cm$1,function(e,o,a,f){t.push(a?f.replace(gm$1,"$1"):o||e);}),t}),jo$2=hm$1;function bm$1(r){return r==null?"":go$3(r)}var xr$3=bm$1;function ym$1(r,t){return d$c(r)?r:Lr$3(r,t)?[r]:jo$2(xr$3(r))}var pr$3=ym$1;function vm$1(r){if(typeof r=="string"||E$7(r))return r;var t=r+"";return t=="0"&&1/r==-Infinity?"-0":t}var H$9=vm$1;function Om$1(r,t){t=pr$3(t,r);for(var e=0,o=t.length;r!=null&&e<o;)r=r[H$9(t[e++])];return e&&e==o?r:void 0}var ur$3=Om$1;function Tm$1(r,t,e){var o=r==null?void 0:ur$3(r,t);return o===void 0?e:o}var Ro$3=Tm$1;function _m$1(r){return lt$6(dt$5(r,void 0,wt$6),r+"")}var Fo$3=_m$1;var wm$1="[object Object]",Sm$1=Function.prototype,Im$1=Object.prototype,Bo$2=Sm$1.toString,Pm$1=Im$1.hasOwnProperty,Cm$1=Bo$2.call(Object);function Em$1(r){if(!A$b(r)||C$b(r)!=wm$1)return  false;var t=wr$4(r);if(t===null)return  true;var e=Pm$1.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Bo$2.call(e)==Cm$1}var Do$3=Em$1;function Lm$1(r,t,e){var o=-1,a=r.length;t<0&&(t=-t>a?0:a+t),e=e>a?a:e,e<0&&(e+=a),a=t>e?0:e-t>>>0,t>>>=0;for(var f=Array(a);++o<a;)f[o]=r[o+t];return f}var No$2=Lm$1;function Mm$1(r){return function(t){return r?.[t]}}var Go$1=Mm$1;var jm$1={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Rm$1=Go$1(jm$1),Uo$2=Rm$1;
145var Fm$1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bm$1="\\u0300-\\u036f",Dm$1="\\ufe20-\\ufe2f",Nm$1="\\u20d0-\\u20ff",Gm$1=Bm$1+Dm$1+Nm$1,Um$1="["+Gm$1+"]",Wm$1=RegExp(Um$1,"g");function Km$1(r){return r=xr$3(r),r&&r.replace(Fm$1,Uo$2).replace(Wm$1,"")}var qm$1=Km$1;var Hm$1=y$6.isFinite,$m$1=Math.min;function Ym$1(r){var t=Math[r];return function(e,o){if(e=ut$6(e),o=o==null?0:$m$1(mt$4(o),292),o&&Hm$1(e)){var a=(xr$3(e)+"e").split("e"),f=t(a[0]+"e"+(+a[1]+o));return a=(xr$3(f)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(e)}}var Wo$2=Ym$1;var zm$1=Math.ceil,Zm$1=Math.max;function Jm$1(r,t,e){(e?X$b(r,t,e):t===void 0)?t=1:t=Zm$1(mt$4(t),0);var o=r==null?0:r.length;if(!o||t<1)return [];for(var a=0,f=0,n=Array(zm$1(o/t));a<o;)n[f++]=No$2(r,a,a+=t);return n}var Xm$1=Jm$1;var Qm$1=4;function Vm$1(r){return at$6(r,Qm$1)}var km$1=Vm$1;function rs(){var r=arguments.length;if(!r)return [];for(var t=Array(r-1),e=arguments[0],o=r;o--;)t[o-1]=arguments[o];return Q$8(d$c(e)?Tr$4(e):[e],U$b(t,1))}var ts=rs;var es=1,os=2;function fs$1(r,t,e,o){var a=e.length,f=a,n=!o;if(r==null)return !f;for(r=Object(r);a--;){var i=e[a];if(n&&i[2]?i[1]!==r[i[0]]:!(i[0]in r))return  false}for(;++a<f;){i=e[a];var p=i[0],u=r[p],m=i[1];if(n&&i[2]){if(u===void 0&&!(p in r))return  false}else {var s=new W$b;if(o)var l=o(u,m,p,r,t,s);if(!(l===void 0?ir$3(m,u,es|os,o,s):l))return  false}}return  true}var Ko$2=fs$1;function as(r){return r===r&&!x$e(r)}var xt$6=as;function ns(r){for(var t=R$c(r),e=t.length;e--;){var o=t[e],a=r[o];t[e]=[o,a,xt$6(a)];}return t}var qo$1=ns;function is(r,t){return function(e){return e==null?false:e[r]===t&&(t!==void 0||r in Object(e))}}var ct$6=is;function ps$1(r){var t=qo$1(r);return t.length==1&&t[0][2]?ct$6(t[0][0],t[0][1]):function(e){return e===r||Ko$2(e,r,t)}}var Ho$2=ps$1;function us(r,t){return r!=null&&t in Object(r)}var $o$1=us;function ms$1(r,t,e){t=pr$3(t,r);for(var o=-1,a=t.length,f=false;++o<a;){var n=H$9(t[o]);if(!(f=r!=null&&e(r,n)))break;r=r[n];}return f||++o!=a?f:(a=r==null?0:r.length,!!a&&Or$3(a)&&or$3(n,a)&&(d$c(r)||B$a(r)))}var gt$5=ms$1;function ss(r,t){return r!=null&&gt$5(r,t,$o$1)}var ht$4=ss;var ls=1,ds=2;function xs(r,t){return Lr$3(r)&&xt$6(t)?ct$6(H$9(r),t):function(e){var o=Ro$3(e,r);return o===void 0&&o===t?ht$4(e,r):ir$3(t,o,ls|ds)}}var Yo$1=xs;function cs(r){return function(t){return t?.[r]}}var zo$2=cs;function gs$1(r){return function(t){return ur$3(t,r)}}var Zo$2=gs$1;function hs(r){return Lr$3(r)?zo$2(H$9(r)):Zo$2(r)}var Jo$2=hs;function bs(r){return typeof r=="function"?r:r==null?q$b:typeof r=="object"?d$c(r)?Yo$1(r[0],r[1]):Ho$2(r):Jo$2(r)}var $$7=bs;function ys(r){return function(t,e,o){for(var a=-1,f=Object(t),n=o(t),i=n.length;i--;){var p=n[r?i:++a];if(e(f[p],p,f)===false)break}return t}}var Xo$2=ys;var As$1=Xo$2(),bt$6=As$1;function vs(r,t){return r&&bt$6(r,t,R$c)}var Qo$2=vs;function Os$1(r,t){return function(e,o){if(e==null)return e;if(!w$9(e))return r(e,o);for(var a=e.length,f=t?a:-1,n=Object(e);(t?f--:++f<a)&&o(n[f],f,n)!==false;);return e}}var Vo$1=Os$1;var Ts$1=Vo$1(Qo$2),Mr$4=Ts$1;var ko$2=Object.prototype,_s=ko$2.hasOwnProperty,ws$1=O$c(function(r,t){r=Object(r);var e=-1,o=t.length,a=o>2?t[2]:void 0;for(a&&X$b(t[0],t[1],a)&&(o=1);++e<o;)for(var f=t[e],n=F$a(f),i=-1,p=n.length;++i<p;){var u=n[i],m=r[u];(m===void 0||L$6(m,ko$2[u])&&!_s.call(r,u))&&(r[u]=f[u]);}return r}),Ss$1=ws$1;function Is$1(r,t,e){(e!==void 0&&!L$6(r[t],e)||e===void 0&&!(t in r))&&vr$4(r,t,e);}var Nr$3=Is$1;function Ps$1(r){return A$b(r)&&w$9(r)}var G$a=Ps$1;function Cs$1(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var Gr$3=Cs$1;function Es$1(r){return M$d(r,F$a(r))}var rf$1=Es$1;function Ls$1(r,t,e,o,a,f,n){var i=Gr$3(r,e),p=Gr$3(t,e),u=n.get(p);if(u){Nr$3(r,e,u);return}var m=f?f(i,p,e+"",r,t,n):void 0,s=m===void 0;if(s){var l=d$c(p),h=!l&&D$h(p),b=!l&&!h&&fr$4(p);m=p,l||h||b?d$c(i)?m=i:G$a(i)?m=Tr$4(i):h?(s=false,m=Zr$3(p,true)):b?(s=false,m=et$a(p,true)):m=[]:Do$3(p)||B$a(p)?(m=i,B$a(i)?m=rf$1(i):(!x$e(i)||gr$3(i))&&(m=ot$7(p))):s=false;}s&&(n.set(p,m),a(m,p,o,f,n),n.delete(p)),Nr$3(r,e,m);}var tf$1=Ls$1;function ef$1(r,t,e,o,a){r!==t&&bt$6(t,function(f,n){if(a||(a=new W$b),x$e(f))tf$1(r,t,n,e,ef$1,o,a);else {var i=o?o(Gr$3(r,n),f,n+"",r,t,a):void 0;i===void 0&&(i=f),Nr$3(r,n,i);}},F$a);}var jr$3=ef$1;function of$1(r,t,e,o,a,f){return x$e(r)&&x$e(t)&&(f.set(t,r),jr$3(r,t,void 0,of$1,f),f.delete(t)),r}var ff$1=of$1;var Ms$1=Er$4(function(r,t,e,o){jr$3(r,t,e,o);}),af$1=Ms$1;var js$1=O$c(function(r){return r.push(void 0,ff$1),st$8(af$1,void 0,r)}),Rs$1=js$1;function Fs(r,t,e){for(var o=-1,a=r==null?0:r.length;++o<a;)if(e(t,r[o]))return  true;return  false}var Rr$4=Fs;var Bs$1=200;function Ds$1(r,t,e,o){var a=-1,f=Cr$4,n=true,i=r.length,p=[],u=t.length;if(!i)return p;e&&(t=P$d(t,j$b(e))),o?(f=Rr$4,n=false):t.length>=Bs$1&&(f=J$f,n=false,t=new nr$3(t));r:for(;++a<i;){var m=r[a],s=e==null?m:e(m);
145if(m=o||m!==0?m:0,n&&s===s){for(var l=u;l--;)if(t[l]===s)continue r;p.push(m);}else f(t,s,o)||p.push(m);}return p}var yt$4=Ds$1;var Ns$1=O$c(function(r,t){return G$a(r)?yt$4(r,U$b(t,1,G$a,true)):[]}),Gs$1=Ns$1;function Us$1(r){var t=r==null?0:r.length;return t?r[t-1]:void 0}var nf$1=Us$1;function Ws$1(r){return typeof r=="function"?r:q$b}var pf$1=Ws$1;function Ks$1(r,t){var e=d$c(r)?Hr$3:Mr$4;return e(r,pf$1(t))}var uf$1=Ks$1;function qs$1(r,t){var e=[];return Mr$4(r,function(o,a,f){t(o,a,f)&&e.push(o);}),e}var mf$1=qs$1;function Hs$1(r,t){var e=d$c(r)?Jr$3:mf$1;return e(r,$$7(t))}var $s$1=Hs$1;function Ys$1(r,t){var e=-1,o=w$9(r)?Array(r.length):[];return Mr$4(r,function(a,f,n){o[++e]=t(a,f,n);}),o}var sf$1=Ys$1;function zs$1(r,t){return r>t}var lf$1=zs$1;var Zs$1=Object.prototype,Js$1=Zs$1.hasOwnProperty;function Xs$1(r,t){return r!=null&&Js$1.call(r,t)}var df$1=Xs$1;function Qs$1(r,t){return r!=null&&gt$5(r,t,df$1)}var Vs$1=Qs$1;var ks$1=Math.min;function rl$1(r,t,e){for(var o=e?Rr$4:Cr$4,a=r[0].length,f=r.length,n=f,i=Array(f),p=1/0,u=[];n--;){var m=r[n];n&&t&&(m=P$d(m,j$b(t))),p=ks$1(m.length,p),i[n]=!e&&(t||a>=120&&m.length>=120)?new nr$3(n&&m):void 0;}m=r[0];var s=-1,l=i[0];r:for(;++s<a&&u.length<p;){var h=m[s],b=t?t(h):h;if(h=e||h!==0?h:0,!(l?J$f(l,b):o(u,b,e))){for(n=f;--n;){var T=i[n];if(!(T?J$f(T,b):o(r[n],b,e)))continue r}l&&l.push(b),u.push(h);}}return u}var At$6=rl$1;function tl$1(r){return G$a(r)?r:[]}var vt$5=tl$1;var el$1=O$c(function(r){var t=P$d(r,vt$5);return t.length&&t[0]===r[0]?At$6(t):[]}),ol$1=el$1;var fl$1=O$c(function(r){var t=nf$1(r),e=P$d(r,vt$5);return t=typeof t=="function"?t:void 0,t&&e.pop(),e.length&&e[0]===r[0]?At$6(e,void 0,t):[]}),al$1=fl$1;var nl$1="[object Map]",il$1="[object Set]",pl$1=Object.prototype,ul$1=pl$1.hasOwnProperty;function ml$1(r){if(r==null)return  true;if(w$9(r)&&(d$c(r)||typeof r=="string"||typeof r.splice=="function"||D$h(r)||fr$4(r)||B$a(r)))return !r.length;var t=N$c(r);if(t==nl$1||t==il$1)return !r.size;if(K$b(r))return !zr$3(r).length;for(var e in r)if(ul$1.call(r,e))return  false;return  true}var sl$1=ml$1;function ll$1(r,t,e){e=typeof e=="function"?e:void 0;var o=e?e(r,t):void 0;return o===void 0?ir$3(r,t,void 0,e):!!o}var dl$1=ll$1;function xl$1(r,t){return r<t}var xf$1=xl$1;function cl$1(r,t,e){for(var o=-1,a=r.length;++o<a;){var f=r[o],n=t(f);if(n!=null&&(i===void 0?n===n&&!E$7(n):e(n,i)))var i=n,p=f;}return p}var Ot$5=cl$1;function gl$1(r,t){return r&&r.length?Ot$5(r,$$7(t),lf$1):void 0}var hl$1=gl$1;var bl$1=Er$4(function(r,t,e){jr$3(r,t,e);}),yl$1=bl$1;function Al$1(r,t){return r&&r.length?Ot$5(r,$$7(t),xf$1):void 0}var vl$1=Al$1;function Ol$1(r,t,e,o){if(!x$e(r))return r;t=pr$3(t,r);for(var a=-1,f=t.length,n=f-1,i=r;i!=null&&++a<f;){var p=H$9(t[a]),u=e;if(p==="__proto__"||p==="constructor"||p==="prototype")return r;if(a!=n){var m=i[p];u=o?o(m,p,i):void 0,u===void 0&&(u=x$e(m)?m:or$3(t[a+1])?[]:{});}er$3(i,p,u),i=i[p];}return r}var cf$1=Ol$1;function Tl$1(r,t,e){for(var o=-1,a=t.length,f={};++o<a;){var n=t[o],i=ur$3(r,n);e(i,n)&&cf$1(f,pr$3(n,r),i);}return f}var gf$1=Tl$1;function _l$1(r,t){var e=r.length;for(r.sort(t);e--;)r[e]=r[e].value;return r}var hf$1=_l$1;function wl$1(r,t){if(r!==t){var e=r!==void 0,o=r===null,a=r===r,f=E$7(r),n=t!==void 0,i=t===null,p=t===t,u=E$7(t);if(!i&&!u&&!f&&r>t||f&&n&&p&&!i&&!u||o&&n&&p||!e&&p||!a)return 1;if(!o&&!f&&!u&&r<t||u&&e&&a&&!o&&!f||i&&e&&a||!n&&a||!p)return  -1}return 0}var bf$1=wl$1;function Sl$1(r,t,e){for(var o=-1,a=r.criteria,f=t.criteria,n=a.length,i=e.length;++o<n;){var p=bf$1(a[o],f[o]);if(p){if(o>=i)return p;var u=e[o];return p*(u=="desc"?-1:1)}}return r.index-t.index}var yf$1=Sl$1;function Il$1(r,t,e){t.length?t=P$d(t,function(f){return d$c(f)?function(n){return ur$3(n,f.length===1?f[0]:f)}:f}):t=[q$b];var o=-1;t=P$d(t,j$b($$7));var a=sf$1(r,function(f,n,i){var p=P$d(t,function(u){return u(f)});return {criteria:p,index:++o,value:f}});return hf$1(a,function(f,n){return yf$1(f,n,e)})}var Tt$4=Il$1;function Pl$1(r,t,e,o){return r==null?[]:(d$c(t)||(t=t==null?[]:[t]),e=o?void 0:e,d$c(e)||(e=e==null?[]:[e]),Tt$4(r,t,e))}var Cl$1=Pl$1;function El$1(r,t){return gf$1(r,t,function(e,o){return ht$4(r,o)})}var Af$1=El$1;var Ll$1=Fo$3(function(r,t){return r==null?{}:Af$1(r,t)}),Ml$1=Ll$1;var jl$1=Array.prototype,Rl$1=jl$1.reverse;function Fl$1(r){return r==null?r:Rl$1.call(r)}var Bl$1=Fl$1;var Dl$1=Wo$2("round"),Nl$1=Dl$1;var Gl$1=O$c(function(r,t){if(r==null)return [];var e=t.length;return e>1&&X$b(r,t[0],t[1])?t=[]:e>2&&X$b(t[0],t[1],t[2])&&(t=[t[0]]),Tt$4(r,U$b(t,1),[])}),Ul$1=Gl$1;var Wl$1=1/0,Kl$1=ar$3&&1/Pr$2(new ar$3([,-0]))[1]==Wl$1?function(r){return new ar$3(r)}:Oo$2,vf$1=Kl$1;var ql$1=200;function Hl$1(r,t,e){var o=-1,a=Cr$4,f=r.length,n=true,i=[],p=i;if(e)n=false,a=Rr$4;else if(f>=ql$1){var u=t?null:vf$1(r);if(u)return Pr$2(u);n=false,a=J$f,p=new nr$3;}else p=t?[]:i;r:for(;++o<f;){var m=r[o],s=t?t(m):m;if(m=e||m!==0?m:0,n&&s===s){for(var l=p.length;l--;)if(p[l]===s)continue r;t&&p.push(s),i.push(m);}else a(p,s,e)||(p!==i&&p.push(s),i.push(m));}return i}var mr$3=Hl$1;var $l$1=O$c(function(r){return mr$3(U$b(r,1,G$a,true))}),Yl$1=$l$1;function zl$1(r){return r&&r.length?mr$3(r):[]}var Zl$1=zl$1;function Jl$1(r,t){return r&&r.length?mr$3(r,$$7(t)):[]}var Xl$1=Jl$1;function Ql$1(r,t){return t=typeof t=="function"?t:void 0,r&&r.length?mr$3(r,void 0,t):[]}var Vl$1=Ql$1;var kl$1=O$c(function(r,t){return G$a(r)?yt$4(r,t):[]}),rd$2=kl$1;var u$a=class u{constructor(e){this.location=e;this.urlChange=this.location.urlChanged.pipe(ge$9(()=>{}));}};
145var d$b=class r{constructor(e){this.viewportRuler=e;this.isEnabled=false;this.previousHTMLStyles={top:"",left:""};this.scrollbarWidth=0;this.lastZoom=null;this.count=0;this.document=document,this.window=window;}enable(){if(this.count++,this._canBeEnabled()){let e=this.document.documentElement;this.previousScrollPosition=this.viewportRuler.getViewportScrollPosition(),this.previousHTMLStyles.left=e.style.left||"",this.previousHTMLStyles.top=e.style.top||"",e.style.left=ae$9(-this.previousScrollPosition.left),e.style.top=ae$9(-this.previousScrollPosition.top),e.classList.add("cdk-global-scrollblock-hidden"),this.document.documentElement.style.setProperty("--disable-scroll-padding-right",`${this.getScrollbarWidth()}px`),this.isEnabled=true;}}disable(){if(this.isEnabled&&this.count===1){let e=this.document.documentElement,t=this.document.body,i=e.style,o=t.style,c=i.scrollBehavior||"",f=o.scrollBehavior||"";this.isEnabled=false,i.left=this.previousHTMLStyles.left,i.top=this.previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock-hidden"),i.scrollBehavior=o.scrollBehavior="auto",this.window.scroll(this.previousScrollPosition.left,this.previousScrollPosition.top),i.scrollBehavior=c,o.scrollBehavior=f,this.document.documentElement.style.setProperty("--disable-scroll-padding-right","0px");}this.count--;}_canBeEnabled(){return !(this.document.documentElement.classList?.contains("cdk-global-scrollblock-hidden")||this.isEnabled)}getScrollbarWidth(){let e=Math.round(window.devicePixelRatio*100);if(this.scrollbarWidth&&this.lastZoom===e)return this.scrollbarWidth;let t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="100px",t.style.visibility="hidden",t.style.overflow="scroll",this.document.body.appendChild(t);let i=document.createElement("div");return t.appendChild(i),this.scrollbarWidth=t.getBoundingClientRect().width-i.getBoundingClientRect().width,t.parentNode?.removeChild(t),this.scrollbarWidth}static{this.\u0275fac=function(t){return new(t||r)(me$b(At$8))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var K$a=(r,e=t=>t.target===r)=>ay([Ns$2(r,"mousedown"),Ns$2(r,"touchstart")]).pipe(Tn$3(t=>e(t)&&(t.button===0||!t.button)),Ru$2(()=>Ns$2(r,"click",{capture:true}).pipe(Tn$3(t=>e(t)))));var p$f=class p{constructor(e,t,i,o,c,f,U=null,N=null,F){this.injector=e;this.appRef=t;this.ngZone=i;this.document=o;this.overlayKeyboardDispatcher=c;this.renderer2=f;this.scrollStrategy=U;this.changeUrlStrategy=N;this.defaultConfig={backdropClass:"am-dialog-backdrop",containerClass:"am-dialog-container",backdropInClass:"am-dialog-backdrop-in",backdropOutClass:"am-dialog-backdrop-out",dialogInClass:"am-dialog-in-down",dialogOutClass:"am-dialog-out-down",animationDuration:300};this._keydownEvents=new de$c;this.afterClosedSubject=new de$c;this.locationSubscription=W$f.EMPTY;this.disposed=false;this.historySub=W$f.EMPTY;this.historyEntryAdded=false;this.closedByBrowserNavigation=false;this.historyBackTriggered=false;this.config=yl$1(this.defaultConfig,F);}attach(e){this.locationSubscription=this.changeUrlStrategy.urlChange.subscribe(()=>this.destroy()),this.portalOutlet||this.createPortalOutlet(),this.scrollStrategy&&this.scrollStrategy.enable(),this.document.body.appendChild(this.backdrop),this.backdrop.style.setProperty("--animationDuration",`${this.config.animationDuration}ms`),this.attachedPortal=this.portalOutlet.attach(e),this.instance=this.attachedPortal.instance,this.overlayKeyboardDispatcher.add(this),this.setupBrowserBackClose(),this.animateOverlayIn();}setupBrowserBackClose(){!this.config.closeOnBrowserBack||this.historyEntryAdded||(history.pushState(history.state??null,"",location.href),this.historyEntryAdded=true,this.historySub=Ns$2(window,"popstate",{capture:true}).subscribe(()=>{this.disposed||(this.closedByBrowserNavigation=true,this.destroy());}));}animateOverlayIn(){if(!this.config.openFrom){this.config.dialogOutClass&&this.container.classList.remove(this.config.dialogOutClass),this.config.dialogInClass&&this.container.classList.add(this.config.dialogInClass),this.config.backdropOutClass&&this.backdrop.classList.remove(this.config.backdropOutClass),this.config.backdropInClass&&this.backdrop.classList.add(this.config.backdropInClass);return}let t=this.attachedPortal.location.nativeElement.getBoundingClientRect(),i=this.config.openFrom.getBoundingClientRect(),o={width:i.width/t.width,height:i.height/t.height,top:i.top-t.top-(t.height-i.height)/2-i.height,left:i.left-t.left-(t.width-i.width)/2};this.container.animate&&(this.animationContainer=this.container.animate({transform:[`translate(${o.left}px, ${o.top}px) scale(${o.width}, ${o.height})`,"translate(0, 0) scale(1)"],opacity:[0,1]},{duration:this.config.animationDuration,iterations:1,fill:"forwards"}));}animateOverlayOut(){if(!this.config.closeTo){this.config.dialogInClass&&this.container.classList.remove(this.config.dialogInClass),this.config.dialogOutClass&&this.container.classList.add(this.config.dialogOutClass),this.config.backdropInClass&&this.backdrop.classList.remove(this.config.backdropInClass),this.config.backdropOutClass&&this.backdrop.classList.add(this.config.backdropOutClass);return}if(!this.container.animate)return;this.animationContainer.cancel();let e=this.attachedPortal.location.nativeElement,t=this.config.closeTo.getBoundingClientRect(),i=e.getBoundingClientRect(),o={width:t.width/i.width,height:t.height/i.height,top:t.top-i.top-(i.height-t.height)/2-t.height,left:t.left-i.left-(i.width-t.width)/2};this.container.animate({transform:["translate(0, 0) scale(1)",`translate(${o.left}px, ${o.top}px) scale(${o.width}, ${o.height})`],opacity:[1,0]},{duration:this.config.animationDuration,iterations:1,fill:"forwards"});}detach(){return this.hasAttached()?(this.animateOverlayOut(),this.overlayKeyboardDispatcher.remove(this),new x$g(e=>{let t=setTimeout(()=>{this.backdrop?.parentNode&&this.backdrop.parentNode.removeChild(this.backdrop),this.portalOutlet.detach(),this.afterClosedSubject.next(),this.locationSubscription.unsubscribe(),this.scrollStrategy&&this.scrollStrategy.disable(),e.next(),e.complete();},this.config.animationDuration);return ()=>clearTimeout(t)})):new x$g(e=>e.complete)}dispose(){if(!this.disposed){if(!this.historyEntryAdded||this.closedByBrowserNavigation){this.destroy();return}this.historyBackTriggered||(this.historyBackTriggered=true,history.back());}}hasAttached(){return this.portalOutlet.hasAttached()}backdropClick(){return this.backdropClickObservable}
145escEvent(){return this._keydownEvents.pipe(Tn$3(e=>e.keyCode===27))}enterEvent(){return this._keydownEvents.pipe(Tn$3(e=>e.keyCode===13))}keydownEvents(){return this._keydownEvents}afterClosed(){return this.afterClosedSubject}setInput(e,t){gi$5(t)?this.instance[e]=t:this.attachedPortal?.setInput(e,t);}destroy(){this.disposed||(this.detach().subscribe(()=>{this.portalOutlet.dispose(),this.backdrop=null,this.container=null,this.afterClosedSubject.complete();}),this._keydownEvents.complete(),this.disposed=true,this.overlayKeyboardDispatcher.remove(this),this.historySub.unsubscribe(),this.locationSubscription.unsubscribe());}createPortalOutlet(){this.createBackdrop(),this.createContainer(),this.backdrop.appendChild(this.container),this.portalOutlet=new re$c(this.container,this.appRef,this.injector);}createBackdrop(){this.backdrop=this.document.createElement("div"),this.backdrop.classList.add(this.config.backdropClass),this.backdrop.setAttribute("data-testid","backdrop"),this.backdropClickObservable=K$a(this.backdrop);}createContainer(){this.container=this.document.createElement("div"),this.config.containerClass&&this.container.classList.add(this.config.containerClass);}};var m$d=class r{constructor(e){this.location=e;this.urlChanged=new de$c;e.onUrlChange((t,i)=>{this.urlChanged.next(t);});}go(e){this.location.go(e);}static{this.\u0275fac=function(t){return new(t||r)(me$b(it$8))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var y$5=class r{constructor(e,t,i,o,c,f,U,N){this.document=e;this.injector=t;this.appRef=i;this.ngZone=o;this.disableGlobalScrollStrategy=c;this.location=f;this.overlayKeyboardDispatcher=U;this.rendererFactory=N;}getOverlay(e){let t=e.ScrollStrategyInterface?e.ScrollStrategyInterface:this.disableGlobalScrollStrategy,i=e.changeUrlStrategy?e.changeUrlStrategy:new u$a(this.location);return new p$f(this.injector,this.appRef,this.ngZone,this.document,this.overlayKeyboardDispatcher,this.rendererFactory.createRenderer(null,null),t,i,e)}open(e,t={}){let i=this.getOverlay(t),o=new H$a(e);return i.attach(o),i}openTemplate(e,t,i={}){let o=this.getOverlay(i),c=new x$f(e,t);return o.attach(c),o}static{this.\u0275fac=function(t){return new(t||r)(me$b(jn$2),me$b(ye$7),me$b(tr$5),me$b($$b),me$b(d$b),me$b(m$d),me$b(Pt$6),me$b(Hr$4))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var W$a=(o=>(o.normal="normal",o.noBackdrop="noBackdrop",o))(W$a||{}),T$8=class T{constructor(e,o,t,r,i,s){this.selector=e;this.component=o;this.config=t;this.dropdownService=r;this.hostDropdownService=i;this.breakpointService=s;this.afterClose=new de$c;}open(e="normal"){if(this.openType=e,this.config.noBackdrop?.fullMob&&this.breakpointService.get(i$h.isMob)&&(this.openType="normal"),this.openType==="normal"){let t=this.dropdownService.openComponent(this.selector.nativeElement,this.component,this.config.normal,this.config.normal?.filterService?this.config.normal.filterService:null);return this.instance=this.dropdownService.instance,t}let o=this.hostDropdownService.open(this.component,this.selector,this.config.noBackdrop?.popperConfig?this.config.noBackdrop.popperConfig:{},this.config.noBackdrop?.fullMob?this.config.noBackdrop.fullMob:false,this.config.noBackdrop?.customStyle?this.config.noBackdrop.customStyle:"");return this.instance=this.hostDropdownService.instance,o}enterClick(){return this.dropdownService.enterClick()}close(e=null){if(this.openType==="normal"){this.dropdownService.close(e),this.afterClose.next(null),this.afterClose.complete();return}this.hostDropdownService.close(),this.afterClose.next(null),this.afterClose.complete();}backClick(){this.dropdownService.backClick(),this.hostDropdownService.close();}setInput(e,o){this.openType==="normal"?gi$5(o)?this.instance[e]=o:this.dropdownService.tooltipRef?this.dropdownService.tooltipRef.setInput(e,o):this.dropdownService.panelComponentRef?.setInput(e,o):this.hostDropdownService.setInput(e,o);}};var m$c=class m{constructor(e={}){this.backdropClass="am-dropdown-backdrop";this.backdropInClass="am-dropdown-backdrop-in";this.backdropOutClass="am-dropdown-backdrop-out";this.containerClass="dropdown-panel-wrap";this.dialogInClass="am-dropdown-dialog-in";this.dialogOutClass="am-dropdown-dialog-out";this.animationDuration=0;Object.assign(this,e);}};var c$e=class c{constructor(){this.onUpdate=Ns$2(window,"resize").pipe(ge$9(()=>{}));}};var D$g=class p{constructor(e,o){this.breakpointService=e;this.amDialogsService=o;this.filterService=null;this.closeReason=new de$c;this.isOpen=false;this.subscriptions=[];}setConfig(e){let o=Jt$7.mergePopperConfig(Jt$7.getSelectorConfig(),e.popper?e.popper:{});delete e.popper,this.config=yl$1({popper:o,amDialogConfig:{},closeOnBackdrop:true},e);}open(e,o,t,r={},i=null){return this.isOpen?Ms$2(null):(this.setConfig(r),this.panel=o,this.filterService=i,this.panelMode=!!this.filterService?.isFilterActive(),this.panelMode&&!this.filterService.getRenderTo()?new x$g:(this.isOpen=true,this.subscriptions.push(qm$2([this.breakpointService.isMobLs,this.breakpointService.isMob]).subscribe(([s,j])=>{s&&this.close();})),this.panelMode?(this.renderTo(this.filterService.getRenderTo(),o).onDestroy(()=>{this.closeReason.next(null);}
145),this.filterService.openPanel()):(this.tooltipRef=this.amDialogsService.openTemplate(o,t,new m$c(this.config.amDialogConfig)),this.popper=new St$7(e,this.tooltipRef.container,this.config.popper,new c$e),this.popper.update(),this.addPopperCloseEvents()),this.closeReason))}openComponent(e,o,t={},r=null){if(this.isOpen)return Ms$2(null);if(this.setConfig(t),this.filterService=r,this.panelMode=!!this.filterService?.isFilterActive(),this.panelMode&&!this.filterService.getRenderTo())return new x$g;if(this.isOpen=true,this.subscriptions.push(qm$2([this.breakpointService.isMobLs,this.breakpointService.isMob]).pipe(Nu$2(1)).subscribe(([i,s])=>{this.tooltipRef&&this.close();})),this.panelMode){this.panelComponentRef=this.filterService.getRenderTo().createComponent(o);let i=this.panelComponentRef;i.onDestroy(()=>{this.closeReason.next(null);}),i.location.nativeElement.classList.add("panel-mode"),this.instance=i.instance,this.instance.panelMode=true,this.instance.popper={update(){}},this.filterService.openPanel();}else this.tooltipRef=this.amDialogsService.open(o,new m$c(this.config.amDialogConfig)),this.instance=this.tooltipRef.instance,this.instance.panelMode=false,this.instance.popper=new St$7(e,this.tooltipRef.container,this.config.popper,new c$e),this.addPopperCloseEvents();return this.closeReason}addPopperCloseEvents(){this.tooltipRef.afterClosed().subscribe(()=>this.close()),this.subscriptions.push(this.tooltipRef.backdropClick().subscribe(()=>{if(this.config.closeOnBackdrop)return this.close("backdrop"),Ms$2(null);this.closeReason.next("backdrop");}),this.tooltipRef.keydownEvents().subscribe(e=>{e.keyCode===27&&this.close("closeEsc");}));}renderTo(e,o){return e.createEmbeddedView(o)}enterClick(){return this.tooltipRef?this.tooltipRef.keydownEvents().pipe(Tn$3(e=>e.keyCode===13),ge$9(e=>(e.stopPropagation(),e.preventDefault(),e)),Au$2({timeStamp:0}),Su$2(),Tn$3(([e,o])=>o.timeStamp-e.timeStamp>100)):He$9}backClick(){this.isOpen=false,this.closeReason.next("back"),this.filterService.closePanel();}close(e=null){this.tooltipRef&&this.tooltipRef.dispose(),this.panelMode&&this.filterService&&this.filterService.closePanel(),this.isOpen=false,this.subscriptions.forEach(o=>o.unsubscribe()),this.closeReason.next(e);}static{this.\u0275fac=function(o){return new(o||p)(me$b(r$9),me$b(y$5))};}static{this.\u0275prov=G$f({token:p,factory:p.\u0275fac});}};var k$7=class p{constructor(e,o,t,r){this.injector=e;this.appRef=o;this.overlayKeyboardDispatcher=t;this.locationService=r;this.componentRef=null;}renderSelector(e,o,t={}){let r={strategy:t.strategy?t.strategy:"absolute",placement:t.placement?t.placement:"bottom-start",middleware:[Jt$7.getCustomShift(),Jt$7.customZIndexMiddleware(1e3)]};return t.middleware&&(r=Jt$7.mergePopperConfig(r,t)),this.popper=new St$7(o.nativeElement,this.container,r,new c$e),this.popper.update(),this.closeReason=new de$c,this.subscription=new W$f,this.subscription.add(K$a(window,i=>i.target!==e&&!e.contains(i.target)).subscribe(i=>{this.closeReason.next("backdrop"),o.nativeElement.contains(i.target)&&i.stopPropagation();})),this.subscription.add(this.locationService.urlChanged.subscribe(()=>{this.close();})),this.overlayKeyboardDispatcher.add(this),this._keydownEvents=new de$c,this.subscription.add(this._keydownEvents.pipe(Tn$3(i=>i.keyCode===27)).subscribe(()=>{this.closeReason.next("closeEsc");})),this.closeReason}createPortal(e=""){this.container=document.createElement("div"),this.container.classList.add("host-dropdown-wrap"),this.fullMob&&this.container.classList.add("host-dropdown-full-mob"),e&&(this.container.style.cssText=e),this.element.nativeElement.parentElement.appendChild(this.container),this.portalOutlet=new re$c(this.container,this.appRef,this.injector);}open(e,o,t={},r=false,i=""){this.fullMob=r,this.element=o,this.createPortal(i);let s=new H$a(e);this.componentRef=s.attach(this.portalOutlet),this.instance=this.componentRef.instance;let j=this.renderSelector(this.componentRef.location.nativeElement,o,t);return this.instance.popper=this.popper,j}openTemplate(e,o,t,r={},i=false){return this.fullMob=i,this.element=t,this.createPortal(),new x$f(e,o).attach(this.portalOutlet),this.renderSelector(this.portalOutlet.outletElement,t,r)}setInput(e,o){gi$5(o)?this.instance[e]=o:this.componentRef?.setInput(e,o);}close(){this.portalOutlet&&(this.componentRef=null,this.subscription.unsubscribe(),this._key
145downEvents.complete(),this.overlayKeyboardDispatcher.remove(this),this.portalOutlet.detach(),this.portalOutlet.dispose(),this.portalOutlet=null,this.closeReason.next(null),this.closeReason.complete());}static{this.\u0275fac=function(o){return new(o||p)(me$b(ye$7),me$b(tr$5),me$b(Pt$6),me$b(m$d))};}static{this.\u0275prov=G$f({token:p,factory:p.\u0275fac});}};var z$5=class p{constructor(e,o,t,r,i,s){this.breakpointService=e;this.amDialogsService=o;this.injector=t;this.appRef=r;this.overlayKeyboardDispatcher=i;this.locationService=s;}get(e,o,t={}){let r=new D$g(this.breakpointService,this.amDialogsService),i=new k$7(this.injector,this.appRef,this.overlayKeyboardDispatcher,this.locationService);return new T$8(e,o,t,r,i,this.breakpointService)}static{this.\u0275fac=function(o){return new(o||p)(me$b(r$9),me$b(y$5),me$b(ye$7),me$b(tr$5),me$b(Pt$6),me$b(m$d))};}static{this.\u0275prov=G$f({token:p,factory:p.\u0275fac,providedIn:"root"});}};var L$5=class L{},q$a=(()=>{class n extends L$5{getTranslation(e){return Ms$2({})}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Vv$1(n)))(i||n)}})();static \u0275prov=G$f({token:n,factory:n.\u0275fac})}return n})(),D$f=class D{},J$e=(()=>{class n{handle(e){return e.key}static \u0275fac=function(t){return new(t||n)};static \u0275prov=G$f({token:n,factory:n.\u0275fac})}return n})();function y$4(n,r){if(n===r)return  true;if(n===null||r===null)return  false;if(n!==n&&r!==r)return  true;let e=typeof n,t=typeof r,i,s,a;if(e==t&&e=="object")if(Array.isArray(n)){if(!Array.isArray(r))return  false;if((i=n.length)==r.length){for(s=0;s<i;s++)if(!y$4(n[s],r[s]))return  false;return  true}}else {if(Array.isArray(r))return  false;a=Object.create(null);for(s in n){if(!y$4(n[s],r[s]))return  false;a[s]=true;}for(s in r)if(!(s in a)&&typeof r[s]<"u")return  false;return  true}return  false}function h$c(n){return typeof n<"u"&&n!==null}function M$c(n){return n&&typeof n=="object"&&!Array.isArray(n)}function W$9(n,r){let e=Object.assign({},n);return M$c(n)&&M$c(r)&&Object.keys(r).forEach(t=>{M$c(r[t])?t in n?e[t]=W$9(n[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]});}),e}var C$a=class C{},X$a=(()=>{class n extends C$a{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,t){let i;return typeof e=="string"?i=this.interpolateString(e,t):typeof e=="function"?i=this.interpolateFunction(e,t):i=e,i}getValue(e,t){let i=typeof t=="string"?t.split("."):[t];t="";do t+=i.shift(),h$c(e)&&h$c(e[t])&&(typeof e[t]=="object"||!i.length)?(e=e[t],t=""):i.length?t+=".":e=void 0;while(i.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(i,s)=>{let a=this.getValue(t,s);return h$c(a)?a:i}):e}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Vv$1(n)))(i||n)}})();static \u0275prov=G$f({token:n,factory:n.\u0275fac})}return n})(),v$a=class v{},z$4=(()=>{class n extends v$a{compile(e,t){return e}compileTranslations(e,t){return e}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Vv$1(n)))(i||n)}})();static \u0275prov=G$f({token:n,factory:n.\u0275fac})}return n})(),j$a=class j{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new tt$b;onLangChange=new tt$b;onDefaultLangChange=new tt$b},R$b=new M$g("USE_STORE"),I$6=new M$g("USE_DEFAULT_LANG"),N$b=new M$g("DEFAULT_LANGUAGE"),O$b=new M$g("USE_EXTEND"),x$d=(()=>{class n{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=false;_onTranslationChange=new tt$b;_onLangChange=new tt$b;_onDefaultLangChange=new tt$b;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e;}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e;}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e;}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e;}constructor(e,t,i,s,a,f=true,g=false,d=false,b){this.store=e,this.currentLoader=t,this.compiler=i,this.parser=s,this.missingTranslationHandler=a,this.useDefaultLang=f,this.isolate=g,this.extend=d,b&&this.setDefaultLang(b);}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(Pt$a(1)).subscribe(i=>{this.changeDefaultLang(e);})):this.changeDefaultLang(e);}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Ms$2(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe(Pt$a(1)).subscribe(i=>{this.changeLang(e);}),t):(this.changeLang(e),Ms$2(this.translations[e]))}retrieveTranslations(e){let t;return (typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=true;let t=this.currentLoader.getTranslation(e).pipe(Wu$2(1),Pt$a(1));return this.loadingTranslations=t.pipe(ge$9(i=>this.compiler.compileTranslations(i,e)),Wu$2(1),Pt$a(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[e]=this.extend&&this.translations[e]?D$m(D$m({},i),this.translations[e]):i,this.updateLangs(),this.pending=false;},error:i=>{this.pending=false;}}),t}setTranslation(e,t,i=false){t=this.compiler.compileTranslations(t,e),(i||this.extend)&&this.translations[e]?this.translations[e]=W$9(this.translations[e],t):this.translations[e]=t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]});}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{this.langs.indexOf(t)===-1&&this.langs.push(t);});}updateLangs(){this.addLangs(Object.keys(this.translations));}getParsedResult(e,t,i){let s;if(t instanceof Array){let a={},f=false;for(let g of t)a[g]=this.getParsedResult(e,g,i),ry(a[g])&&(f=true);if(f){let g=t.map(d=>ry(a[d])?a[d]:Ms$2(a[d]));return Wm$2(g).pipe(ge$9(d=>{let b={};return d.forEach((Z,Q)=>{b[t[Q]]=Z;}),b}))}return a}if(e&&(s=this.parser.interpolate(this.parser.getValue(e,t),i)),typeof s>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),i)),typeof s>"u"){let a={key:t,translateService:this};typeof i<"u"&&(a.interpolateParams=i),s=this.missingTranslationHandler.handle(a);}return typeof s<"u"?s:t}get(e,t){if(!h$c(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Du$2(i=>(i=this.getParsedResult(i,e,t),ry(i)?i:Ms$2(i))));{let i=this.getParsedResult(this.translations[this.currentLang],e,t);return ry(i)?i:Ms$2(i)}}getStreamOnTranslationChange(e,t){if(!h$c(e)||!e.length)throw new Error('Parameter "key" required');return dt$8(oy(()=>this.get(e,t)),this.onTranslationChange.pipe(Ru$2(i=>{let s=this.getParsedResult(i.translations,e,t);return typeof s.subscribe=="function"?s:Ms$2(s)})))}stream(e,t){if(!h$c(e)||!e.length)throw new Error('Parameter "key" required');return dt$8(oy(()=>this.get(e,t)),this.onLangChange.pipe(Ru$2(i=>{let s=this.getParsedResult(i.translations,e,t);return ry(s)?s:Ms$2(s)})))}instant(e,t){if(!h$c(e)||!e.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],e,t);if(ry(i)){if(e instanceof Array){let s={};return e.forEach((a,f)=>{s[e[f]]=e[f];}),s}return e}else return i}set(e,t,i=this.currentLang){this.translations[i][e]=this.compiler.compile(t,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]});}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e);}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]});}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}
145resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0;}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;if(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof e>"u"))return e.indexOf("-")!==-1&&(e=e.split("-")[0]),e.indexOf("_")!==-1&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}static \u0275fac=function(t){return new(t||n)(me$b(j$a),me$b(L$5),me$b(v$a),me$b(C$a),me$b(D$f),me$b(I$6),me$b(R$b),me$b(O$b),me$b(N$b))};static \u0275prov=G$f({token:n,factory:n.\u0275fac})}return n})();var he$8=(()=>{class n{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,t){this.translate=e,this._ref=t;}updateValue(e,t,i){let s=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck();};if(i){let a=this.translate.getParsedResult(i,e,t);ry(a.subscribe)?a.subscribe(s):s(a);}this.translate.get(e,t).subscribe(s);}transform(e,...t){if(!e||!e.length)return e;if(y$4(e,this.lastKey)&&y$4(t,this.lastParams))return this.value;let i;if(h$c(t[0])&&t.length)if(typeof t[0]=="string"&&t[0].length){let s=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(s);}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else typeof t[0]=="object"&&!Array.isArray(t[0])&&(i=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,i,s.translations));})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i,s.translations));})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i));})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0);}ngOnDestroy(){this._dispose();}static \u0275fac=function(t){return new(t||n)(Jr$4(x$d,16),Jr$4(WV,16))};static \u0275pipe=fw({name:"translate",type:n,pure:false,standalone:false});static \u0275prov=G$f({token:n,factory:n.\u0275fac})}return n})(),fe$8=(()=>{class n{static forRoot(e={}){return {ngModule:n,providers:[e.loader||{provide:L$5,useClass:q$a},e.compiler||{provide:v$a,useClass:z$4},e.parser||{provide:C$a,useClass:X$a},e.missingTranslationHandler||{provide:D$f,useClass:J$e},j$a,{provide:R$b,useValue:e.isolate},{provide:I$6,useValue:e.useDefaultLang},{provide:O$b,useValue:e.extend},{provide:N$b,useValue:e.defaultLanguage},x$d]}}static forChild(e={}){return {ngModule:n,providers:[e.loader||{provide:L$5,useClass:q$a},e.compiler||{provide:v$a,useClass:z$4},e.parser||{provide:C$a,useClass:X$a},e.missingTranslationHandler||{provide:D$f,useClass:J$e},{provide:R$b,useValue:e.isolate},{provide:I$6,useValue:e.useDefaultLang},{provide:O$b,useValue:e.extend},{provide:N$b,useValue:e.defaultLanguage},x$d]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=cw({type:n});static \u0275inj=dd$2({})}return n})();function D$e(t,r){if(t&1&&(qd$2(),Ol$2(0,"svg",2),Dg$1(1,"use"),Ll$2()),t&2){let e=NT(2);AE(),vg$1("href",e.flagHref())("href",e.flagHref(),null,"xlink");}}function w$8(t,r){if(t&1&&(Ol$2(0,"div",0),bb(1,"translate"),uT(2,D$e,2,2,":svg:svg",2),Ol$2(3,"div",3),ib(4),bb(5,"uppercase"),Ll$2()()),t&2){let e=NT();bg$1("title",_b(1,3,e.title())),AE(2),dT(e.transparentFlag()?-1:2),AE(2),Ug$1(_b(5,5,e.flag()));}}function B$9(t,r){if(t&1&&(Ol$2(0,"div",1),bb(1,"translate"),qd$2(),Ol$2(2,"svg",4),Dg$1(3,"use"),Ll$2(),Wd$2(),Ol$2(4,"div",5),ib(5),bb(6,"uppercase"),Ll$2()()),t&2){let e=NT();bg$1("title",_b(1,4,e.title())),AE(3),vg$1("href",e.flagHref())("href",e.flagHref(),null,"xlink"),AE(2),Ug$1(_b(6,6,e.flag()));}}var _$4=class t{constructor(){this.flag=VV("");this.size=VV("normal");this.transparentFlag=VV(false);this.title=Pb(()=>"countries."+this.flag().toUpperCase());this.flagHref=Pb(()=>`#${this.flag().toLowerCase()}`);}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["flag"]],inputs:{flag:[1,"flag"],size:[1,"size"],transparentFlag:[1,"transparentFlag"]},decls:2,vars:2,consts:[[1,"flag-container",3,"title"],[1,"flag-container-small",3,"title"],["width","22","height","16","preserveAspectRatio","xMidYMid meet",1,"flag-img"],[1,"empty-flag"],["width","17","height","12","preserveAspectRatio","xMidYMid meet",1,"flag-img"],[1,"small-empty-flag"]],template:function(e,y){e&1&&(uT(0,w$8,6,7,"div",0),uT(1,B$9,7,8,"div",1)),e&2&&(dT(y.size()==="normal"?0:-1),AE(),dT(y.size()==="small"?1:-1));},dependencies:[An$3,fe$8,Dn$3,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
145--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:inline-flex;flex-shrink:0;position:relative}[_nghost-%COMP%]   .empty-flag[_ngcontent-%COMP%], [_nghost-%COMP%]   .small-empty-flag[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:var(--grey-40);font-size:10px;line-height:10px;border-radius:2px;position:absolute;z-index:0;bottom:0;top:0}[_nghost-%COMP%]   .flag-container[_ngcontent-%COMP%]{display:flex;flex:0 0 22px;position:relative;width:22px;height:16px}[_nghost-%COMP%]   .flag-container-small[_ngcontent-%COMP%]{display:flex;flex:0 0 17px;position:relative;width:17px;height:12px}[_nghost-%COMP%]   .flag-img[_ngcontent-%COMP%]{display:block;flex:0 0 auto;position:relative;z-index:1;width:100%;height:100%;shape-rendering:geometricPrecision;image-rendering:-webkit-optimize-contrast}[_nghost-%COMP%]   .empty-flag[_ngcontent-%COMP%]{max-width:22px;min-width:22px}[_nghost-%COMP%]   .small-empty-flag[_ngcontent-%COMP%]{max-width:17px;min-width:17px}"]});}};var s$n=[{id:"en",name:"English",shortName:"EN",flag:"us",locale:"en-us",countries:["en","us"]},{id:"cn",name:"\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09",shortName:"CN",flag:"cn",locale:"zh-cn",countries:["cn","hk","mo","sg","tw"]},{id:"jp",name:"\u65E5\u672C\u8A9E",shortName:"JP",flag:"jp",locale:"ja",countries:["jp"]},{id:"ko",name:"\uD55C\uAD6D\uC5B4",shortName:"KO",flag:"kr",locale:"k
145o",countries:["kp","kr"]},{id:"br",name:"Portugu\xEAs",shortName:"PT",flag:"br",locale:"pt-br",countries:["ao","br","gw","mz","pt","st","tl"]},{id:"es",name:"Espa\xF1ol",shortName:"ES",flag:"es",locale:"es",countries:["ar","bo","cl","co","cr","cu","do","ec","sv","gq","gt","hn","ml","mx","ni","pa","py","pe","pr","es","uy","ve","eh"]}];function U$a(n){n||(n=D$l(st$b));let e=new x$g(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(ku$2(e))}function T$7(n){let e=xP(n);return new x$g(t=>{let o=e?.onDestroy(()=>t.complete()),i=n.subscribe(r=>t.next(r));return ()=>{i.unsubscribe(),o?.();}})}function F$9(n,e){let t=e?.injector??D$l(ye$7),o=new ar$4(1),i=ef$2(()=>{let r;try{r=n();}catch(u){Fb(()=>o.error(u));return}Fb(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(st$b).onDestroy(()=>{i.destroy(),o.complete();}),o.asObservable()}function L$4(n,e){let o=!e?.manualCleanup?e?.injector?.get(st$b)??D$l(st$b):null,i=x$c(e?.equal),r;e?.requireSync?r=fi$4({kind:0},{equal:i}):r=fi$4({kind:1,value:e?.initialValue},{equal:i});let u,f=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),u?.();},complete:()=>{u?.();}});if(e?.requireSync&&r().kind===0)throw new _$7(601,false);return u=o?.onDestroy(f.unsubscribe.bind(f)),Pb(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new _$7(601,false)}},{equal:e?.equal})}function x$c(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var K$9=H$d((nt,it)=>{(function(e,t){typeof nt=="object"&&typeof it<"u"?it.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t();})(nt,function(){var e=1e3,t=6e4,i=36e5,s="millisecond",n="second",c="minute",d="hour",a="day",_="week",M="month",T="quarter",U="year",C="date",r="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},S=function(h,f,o){var p=String(h);return !p||p.length>=f?h:""+Array(f+1-p.length).join(o)+h},H={s:S,z:function(h){var f=-h.utcOffset(),o=Math.abs(f),p=Math.floor(o/60),u=o%60;return (f<=0?"+":"-")+S(p,2,"0")+":"+S(u,2,"0")},m:function h(f,o){if(f.date()<o.date())return -h(o,f);var p=12*(o.year()-f.year())+(o.month()-f.month()),u=f.clone().add(p,M),m=o-u<0,l=f.clone().add(p+(m?-1:1),M);return +(-(p+(o-u)/(m?u-l:l-u))||0)},a:function(h){return h<0?Math.ceil(h)||0:Math.floor(h)},p:function(h){return {M,y:U,w:_,d:a,D:C,h:d,m:c,s:n,ms:s,Q:T}[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(h){return h===void 0}},O="en",w={};w[O]=$;var k=function(h){return h instanceof I},x=function h(f,o,p){var u;if(!f)return O;if(typeof f=="string"){var m=f.toLowerCase();w[m]&&(u=m),o&&(w[m]=o,u=m);var l=f.split("-");if(!u&&l.length>1)return h(l[0])}else {var D=f.name;w[D]=f,u=D;}return !p&&u&&(O=u),u||!p&&O},b=function(h,f){if(k(h))return h.clone();var o=typeof f=="object"?f:{};return o.date=h,o.args=arguments,new I(o)},g=H;g.l=x,g.i=k,g.w=function(h,f){return b(h,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var I=(function(){function h(o){this.$L=x(o.locale,null,true),this.parse(o);}var f=h.prototype;return f.parse=function(o){this.$d=(function(p){var u=p.date,m=p.utc;if(u===null)return new Date(NaN);if(g.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var l=u.match(y);if(l){var D=l[2]-1||0,L=(l[7]||"0").substring(0,3);return m?new Date(Date.UTC(l[1],D,l[3]||1,l[4]||0,l[5]||0,l[6]||0,L)):new Date(l[1],D,l[3]||1,l[4]||0,l[5]||0,l[6]||0,L)}}return new Date(u)})(o),this.$x=o.x||{},this.init();},f.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds();},f.$utils=function(){return g},f.isValid=function(){return this.$d.toString()!==r},f.isSame=function(o,p){var u=b(o);return this.startOf(p)<=u&&u<=this.endOf(p)},f.isAfter=function(o,p){return b(o)<this.startOf(p)},f.isBefore=function(o,p){return this.endOf(p)<b(o)},f.$g=function(o,p,u){return g.u(o)?this[p]:this.set(u,o)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(o,p){var u=this,m=!!g.u(p)||p,l=g.p(o),D=function(N,A){var G=g.w(u.$u?Date.UTC(u.$y,A,N):new Date(u.$y,A,N),u);return m?G:G.endOf(a)},L=function(N,A){return g.w(u.toDate()[N].apply(u.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(A)),u)},j=this.$W,W=this.$M,J=this.$D,Z="set"+(this.$u?"UTC":"");switch(l){case U:return m?D(1,0):D(31,11);case M:return m?D(1,W):D(0,W+1);case _:var E=this.$locale().weekStart||0,P=(j<E?j+7:j)-E;return D(m?J-P:J+(6-P),W);case a:case C:return L(Z+"Hours",0);case d:return L(Z+"Minutes",1);case c:return L(Z+"Seconds",2);case n:return L(Z+"Milliseconds",3);default:return this.clone()}},f.endOf=function(o){return this.startOf(o,false)},f.$set=function(o,p){var u,m=g.p(o),l="set"+(this.$u?"UTC":""),D=(u={},u[a]=l+"Date",u[C]=l+"Date",u[M]=l+"Month",u[U]=l+"FullYear",u[d]=l+"Hours",u[c]=l+"Minutes",u[n]=l+"Seconds",u[s]=l+"Milliseconds",u)[m],L=m===a?this.$D+(p-this.$W):p;if(m===M||m===U){var j=this.clone().set(C,1);j.$d[D](L),j.init(),this.$d=j.set(C,Math.min(this.$D,j.daysInMonth())).$d;}else D&&this.$d[D](L);return this.init(),this},f.set=function(o,p){return this.clone().$set(o,p)},f.get=function(o){return this[g.p(o)]()},f.add=function(o,p){var u,m=this;o=Number(o);var l=g.p(p),D=function(W){var J=b(m);return g.w(J.date(J.date()+Math.round(W*o)),m)};if(l===M)return this.set(M,this.$M+o);if(l===U)return this.set(U,this.$y+o);if(l===a)return D(1);if(l===_)return D(7);var L=(u={},u[c]=t,u[d]=i,u[n]=e,u)[l]||1,j=this.$d.getTime()+o*L;return g.w(j,this)},f.subtract=function(o,p){return this.add(-1*o,p)},f.format=function(o){var p=this,u=this.$locale();
145if(!this.isValid())return u.invalidDate||r;var m=o||"YYYY-MM-DDTHH:mm:ssZ",l=g.z(this),D=this.$H,L=this.$m,j=this.$M,W=u.weekdays,J=u.months,Z=function(A,G,V,Q){return A&&(A[G]||A(p,m))||V[G].slice(0,Q)},E=function(A){return g.s(D%12||12,A,"0")},P=u.meridiem||function(A,G,V){var Q=A<12?"AM":"PM";return V?Q.toLowerCase():Q},N={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:g.s(j+1,2,"0"),MMM:Z(u.monthsShort,j,J,3),MMMM:Z(J,j),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:Z(u.weekdaysMin,this.$W,W,2),ddd:Z(u.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(D),HH:g.s(D,2,"0"),h:E(1),hh:E(2),a:P(D,L,true),A:P(D,L,false),m:String(L),mm:g.s(L,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:l};return m.replace(Y,function(A,G){return G||N[A]||l.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(o,p,u){var m,l=g.p(p),D=b(o),L=(D.utcOffset()-this.utcOffset())*t,j=this-D,W=g.m(this,D);return W=(m={},m[U]=W/12,m[M]=W,m[T]=W/3,m[_]=(j-L)/6048e5,m[a]=(j-L)/864e5,m[d]=j/i,m[c]=j/t,m[n]=j/e,m)[l]||j,u?W:g.a(W)},f.daysInMonth=function(){return this.endOf(M).$D},f.$locale=function(){return w[this.$L]},f.locale=function(o,p){if(!o)return this.$L;var u=this.clone(),m=x(o,p,true);return m&&(u.$L=m),u},f.clone=function(){return g.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},h})(),q=I.prototype;return b.prototype=q,[["$ms",s],["$s",n],["$m",c],["$H",d],["$W",a],["$M",M],["$y",U],["$D",C]].forEach(function(h){q[h[1]]=function(f){return this.$g(f,h[0],h[1])};}),b.extend=function(h,f){return h.$i||(h(f,I,b),h.$i=true),b},b.locale=x,b.isDayjs=k,b.unix=function(h){return b(1e3*h)},b.en=w[O],b.Ls=w,b.p={},b});});var Wt$4=H$d((rt,st)=>{(function(e,t){typeof rt=="object"&&typeof st<"u"?st.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t();})(rt,function(){var e="day";return function(t,i,s){var n=function(a){return a.add(4-a.isoWeekday(),e)},c=i.prototype;c.isoWeekYear=function(){return n(this).year()},c.isoWeek=function(a){if(!this.$utils().u(a))return this.add(7*(a-this.isoWeek()),e);var _,M,T,U,C=n(this),r=(_=this.isoWeekYear(),M=this.$u,T=(M?s.utc:s)().year(_).startOf("year"),U=4-T.isoWeekday(),T.isoWeekday()>4&&(U+=7),T.add(U,e));return C.diff(r,"week")+1},c.isoWeekday=function(a){return this.$utils().u(a)?this.day()||7:this.day(this.day()%7?a:a-7)};var d=c.startOf;c.startOf=function(a,_){var M=this.$utils(),T=!!M.u(_)||_;return M.p(a)==="isoweek"?T?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):d.bind(this)(a,_)};}});});var At$5=H$d((at,ot)=>{(function(e,t){typeof at=="object"&&typeof ot<"u"?ot.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_utc=t();})(at,function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,n,c){var d=n.prototype;c.utc=function(r){var y={date:r,utc:true,args:arguments};return new n(y)},d.utc=function(r){var y=c(this.toDate(),{locale:this.$L,utc:true});return r?y.add(this.utcOffset(),e):y},d.local=function(){return c(this.toDate(),{locale:this.$L,utc:false})};var a=d.parse;d.parse=function(r){r.utc&&(this.$u=true),this.$utils().u(r.$offset)||(this.$offset=r.$offset),a.call(this,r);};var _=d.init;d.init=function(){if(this.$u){var r=this.$d;this.$y=r.getUTCFullYear(),this.$M=r.getUTCMonth(),this.$D=r.getUTCDate(),this.$W=r.getUTCDay(),this.$H=r.getUTCHours(),this.$m=r.getUTCMinutes(),this.$s=r.getUTCSeconds(),this.$ms=r.getUTCMilliseconds();}else _.call(this);};var M=d.utcOffset;d.utcOffset=function(r,y){var Y=this.$utils().u;if(Y(r))return this.$u?0:Y(this.$offset)?M.call(this):this.$offset;if(typeof r=="string"&&(r=(function(O){O===void 0&&(O="");var w=O.match(t);if(!w)return null;var k=(""+w[0]).match(i)||["-",0,0],x=k[0],b=60*+k[1]+ +k[2];
145return b===0?0:x==="+"?b:-b})(r),r===null))return this;var $=Math.abs(r)<=16?60*r:r,S=this;if(y)return S.$offset=$,S.$u=r===0,S;if(r!==0){var H=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(S=this.local().add($+H,e)).$offset=$,S.$x.$localOffset=H;}else S=this.utc();return S};var T=d.format;d.format=function(r){var y=r||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return T.call(this,y)},d.valueOf=function(){var r=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*r},d.isUTC=function(){return !!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var U=d.toDate;d.toDate=function(r){return r==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():U.call(this)};var C=d.diff;d.diff=function(r,y,Y){if(r&&this.$u===r.$u)return C.call(this,r,y,Y);var $=this.local(),S=c(r).local();return C.call($,S,y,Y)};}});});var Ct$4=H$d((ut,ft)=>{(function(e,t){typeof ut=="object"&&typeof ft<"u"?ft.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isBetween=t();})(ut,function(){return function(e,t,i){t.prototype.isBetween=function(s,n,c,d){var a=i(s),_=i(n),M=(d=d||"()")[0]==="(",T=d[1]===")";return (M?this.isAfter(a,c):!this.isBefore(a,c))&&(T?this.isBefore(_,c):!this.isAfter(_,c))||(M?this.isBefore(a,c):!this.isAfter(a,c))&&(T?this.isAfter(_,c):!this.isBefore(_,c))};}});});var It$5=H$d((dt,ct)=>{(function(e,t){typeof dt=="object"&&typeof ct<"u"?ct.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isSameOrAfter=t();})(dt,function(){return function(e,t){t.prototype.isSameOrAfter=function(i,s){return this.isSame(i,s)||this.isAfter(i,s)};}});});var zt$3=H$d((lt,ht)=>{(function(e,t){typeof lt=="object"&&typeof ht<"u"?ht.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isSameOrBefore=t();})(lt,function(){return function(e,t){t.prototype.isSameOrBefore=function(i,s){return this.isSame(i,s)||this.isBefore(i,s)};}});});var Bt$4=H$d((mt,pt)=>{(function(e,t){typeof mt=="object"&&typeof pt<"u"?pt.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_quarterOfYear=t();})(mt,function(){var e="month",t="quarter";return function(i,s){var n=s.prototype;n.quarter=function(a){return this.$utils().u(a)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(a-1))};var c=n.add;n.add=function(a,_){return a=Number(a),this.$utils().p(_)===t?this.add(3*a,e):c.bind(this)(a,_)};var d=n.startOf;n.startOf=function(a,_){var M=this.$utils(),T=!!M.u(_)||_;if(M.p(a)===t){var U=this.quarter()-1;return T?this.month(3*U).startOf(e).startOf("day"):this.month(3*U+2).endOf(e).endOf("day")}return d.bind(this)(a,_)};}});});var qt$5=H$d((yt,_t)=>{(function(e,t){typeof yt=="object"&&typeof _t<"u"?_t.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t();})(yt,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,c={},d=function(r){return (r=+r)+(r>68?1900:2e3)},a=function(r){return function(y){this[r]=+y;}},_=[/[+-]\d\d:?(\d\d)?|Z/,function(r){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var Y=y.match(/([+-]|\d\d)/g),$=60*Y[1]+(+Y[2]||0);return $===0?0:Y[0]==="+"?-$:$})(r);}],M=function(r){var y=c[r];return y&&(y.indexOf?y:y.s.concat(y.f))},T=function(r,y){var Y,$=c.meridiem;if($){for(var S=1;S<=24;S+=1)if(r.indexOf($(S,0,y))>-1){Y=S>12;break}}else Y=r===(y?"pm":"PM");return Y},U={A:[n,function(r){this.afternoon=T(r,false);}],a:[n,function(r){this.afternoon=T(r,true);}],S:[/\d/,function(r){this.milliseconds=100*+r;}],SS:[i,function(r){this.milliseconds=10*+r;}],SSS:[/\d{3}/,function(r){this.milliseconds=+r;}],s:[s,a("seconds")],ss:[s,a("seconds")],m:[s,a("minutes")],mm:[s,a("minutes")],H:[s,a("hours")],h:[s,a("hours")],HH:[s,a("hours")],hh:[s,a("hours")],D:[s,a("day")],DD:[i,a("day")],Do:[n,function(r){var y=c.ordinal,Y=r.match(/\d+/);if(this.day=Y[0],y)for(var $=1;$<=31;$+=1)y($).replace(/\[|\]/g,"")===r&&(this.day=$);}
145],M:[s,a("month")],MM:[i,a("month")],MMM:[n,function(r){var y=M("months"),Y=(M("monthsShort")||y.map(function($){return $.slice(0,3)})).indexOf(r)+1;if(Y<1)throw new Error;this.month=Y%12||Y;}],MMMM:[n,function(r){var y=M("months").indexOf(r)+1;if(y<1)throw new Error;this.month=y%12||y;}],Y:[/[+-]?\d+/,a("year")],YY:[i,function(r){this.year=d(r);}],YYYY:[/\d{4}/,a("year")],Z:_,ZZ:_};function C(r){var y,Y;y=r,Y=c&&c.formats;for(var $=(r=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,g,I){var q=I&&I.toUpperCase();return g||Y[I]||e[I]||Y[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,f,o){return f||o.slice(1)})})).match(t),S=$.length,H=0;H<S;H+=1){var O=$[H],w=U[O],k=w&&w[0],x=w&&w[1];$[H]=x?{regex:k,parser:x}:O.replace(/^\[|\]$/g,"");}return function(b){for(var g={},I=0,q=0;I<S;I+=1){var h=$[I];if(typeof h=="string")q+=h.length;else {var f=h.regex,o=h.parser,p=b.slice(q),u=f.exec(p)[0];o.call(g,u),b=b.replace(u,"");}}return (function(m){var l=m.afternoon;if(l!==void 0){var D=m.hours;l?D<12&&(m.hours+=12):D===12&&(m.hours=0),delete m.afternoon;}})(g),g}}return function(r,y,Y){Y.p.customParseFormat=true,r&&r.parseTwoDigitYear&&(d=r.parseTwoDigitYear);var $=y.prototype,S=$.parse;$.parse=function(H){var O=H.date,w=H.utc,k=H.args;this.$u=w;var x=k[1];if(typeof x=="string"){var b=k[2]===true,g=k[3]===true,I=b||g,q=k[2];g&&(q=k[2]),c=this.$locale(),!b&&q&&(c=Y.Ls[q]),this.$d=(function(p,u,m){try{if(["x","X"].indexOf(u)>-1)return new Date((u==="X"?1e3:1)*p);var l=C(u)(p),D=l.year,L=l.month,j=l.day,W=l.hours,J=l.minutes,Z=l.seconds,E=l.milliseconds,P=l.zone,N=new Date,A=j||(D||L?1:N.getDate()),G=D||N.getFullYear(),V=0;D&&!L||(V=L>0?L-1:N.getMonth());var Q=W||0,X=J||0,R=Z||0,tt=E||0;return P?new Date(Date.UTC(G,V,A,Q,X,R,tt+60*P.offset*1e3)):m?new Date(Date.UTC(G,V,A,Q,X,R,tt)):new Date(G,V,A,Q,X,R,tt)}catch(se){return new Date("")}})(O,x,w),this.init(),q&&q!==true&&(this.$L=this.locale(q).$L),I&&O!=this.format(x)&&(this.$d=new Date("")),c={};}else if(x instanceof Array)for(var h=x.length,f=1;f<=h;f+=1){k[1]=x[f-1];var o=Y.apply(this,k);if(o.isValid()){this.$d=o.$d,this.$L=o.$L,this.init();break}f===h&&(this.$d=new Date(""));}else S.call(this,H);};}});});var Gt$4=H$d((Mt,gt)=>{(function(e,t){typeof Mt=="object"&&typeof gt<"u"?gt.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=t();})(Mt,function(){return function(e,t,i){var s=t.prototype,n=s.format;i.en.ordinal=function(c){var d=["th","st","nd","rd"],a=c%100;return "["+c+(d[(a-20)%10]||d[a]||d[0])+"]"},s.format=function(c){var d=this,a=this.$locale();if(!this.isValid())return n.bind(this)(c);var _=this.$utils(),M=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(T){switch(T){case "Q":return Math.ceil((d.$M+1)/3);case "Do":return a.ordinal(d.$D);case "gggg":return d.weekYear();case "GGGG":return d.isoWeekYear();case "wo":return a.ordinal(d.week(),"W");case "w":case "ww":return _.s(d.week(),T==="w"?1:2,"0");case "W":case "WW":return _.s(d.isoWeek(),T==="W"?1:2,"0");case "k":case "kk":return _.s(String(d.$H===0?24:d.$H),T==="k"?1:2,"0");case "X":return Math.floor(d.$d.getTime()/1e3);case "x":return d.$d.getTime();case "z":return "["+d.offsetName()+"]";case "zzz":return "["+d.offsetName("long")+"]";default:return T}});return n.bind(this)(M)};}});});var Zt$6=H$d((Dt,Yt)=>{(function(e,t){typeof Dt=="object"&&typeof Yt<"u"?Yt.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_relativeTime=t();})(Dt,function(){return function(e,t,i){e=e||{};var s=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(a,_,M,T){return s.fromToBase(a,_,M,T)}i.en.relativeTime=n,s.fromToBase=function(a,_,M,T,U){for(var C,r,y,Y=M.$locale().relativeTime||n,$=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=$.length,H=0;H<S;H+=1){var O=$[H];O.d&&(C=T?i(a).diff(M,O.d,true):M.diff(a,O.d,true));var w=(e.rounding||Math.round)(Math.abs(C));if(y=C>0,w<=O.r||!O.r){w<=1&&H>0&&(O=$[H-1]);var k=Y[O.l];U&&(w=U(""+w)),r=typeof k=="string"?k.replace("%d",w):k(w,_,O.l,y);break}}if(_)return r;var x=y?Y.future:Y.past;return typeof x=="function"?x(r):x.replace("%s",r)},s.to=function(a,_){return c(a,_,this,true)},s.from=function(a,_){return c(a,_,this)};var d=function(a){return a.$u?i.utc():i()};s.toNow=function(a){return this.to(d(this),a)},s.fromNow=function(a){return this.from(d(this),a)};}});});var Ft$3=H$d(($t,vt)=>{(function(e,t){typeof $t=="object"&&typeof vt<"u"?vt.exports=t(K$9()):typeof define=="function"&&define.amd?define(["dayjs"],t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_locale_zh_cn=t(e.dayjs);})($t,function(e){function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var i=t(e),s={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(n,c){return c==="W"?n+"\u5468":n+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%
145d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(n,c){var d=100*n+c;return d<600?"\u51CC\u6668":d<900?"\u65E9\u4E0A":d<1100?"\u4E0A\u5348":d<1300?"\u4E2D\u5348":d<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};return i.default.locale(s,null,true),s});});var Jt$5=H$d((bt,Tt)=>{(function(e,t){typeof bt=="object"&&typeof Tt<"u"?Tt.exports=t(K$9()):typeof define=="function"&&define.amd?define(["dayjs"],t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_locale_ja=t(e.dayjs);})(bt,function(e){function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var i=t(e),s={name:"ja",weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(n){return n+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiem:function(n){return n<12?"\u5348\u524D":"\u5348\u5F8C"},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};return i.default.locale(s,null,true),s});});var Nt$6=H$d((St,wt)=>{(function(e,t){typeof St=="object"&&typeof wt<"u"?wt.exports=t(K$9()):typeof define=="function"&&define.amd?define(["dayjs"],t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_locale_pt_br=t(e.dayjs);})(St,function(e){function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var i=t(e),s={name:"pt-br",weekdays:"domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xE1b".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_S\xE1".split("_"),months:"janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(n){return n+"\xBA"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"}};return i.default.locale(s,null,true),s});});var Pt$4=H$d((Lt,Ot)=>{(function(e,t){typeof Lt=="object"&&typeof Ot<"u"?Ot.exports=t(K$9()):typeof define=="function"&&define.amd?define(["dayjs"],t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_locale_ko=t(e.dayjs);})(Lt,function(e){function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var i=t(e),s={name:"ko",weekdays:"\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"),weekdaysShort:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),weekdaysMin:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),months:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),monthsShort:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),ordinal:function(n){return n},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\uB144 MMMM D\uC77C",LLL:"YYYY\uB144 MMMM D\uC77C A h:mm",LLLL:"YYYY\uB144 MMMM D\uC77C dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\uB144 MMMM D\uC77C",lll:"YYYY\uB144 MMMM D\uC77C A h:mm",llll:"YYYY\uB144 MMMM D\uC77C dddd A h:mm"},meridiem:function(n){return n<12?"\uC624\uC804":"\uC624\uD6C4"},relativeTime:{future:"%s \uD6C4",past:"%s \uC804",s:"\uBA87 \uCD08",m:"1\uBD84",mm:"%d\uBD84",h:"\uD55C \uC2DC\uAC04",hh:"%d\uC2DC\uAC04",d:"\uD558\uB8E8",dd:"%d\uC77C",M:"\uD55C \uB2EC",MM:"%d\uB2EC",y:"\uC77C \uB144",yy:"%d\uB144"}};return i.default.locale(s,null,true),s});});var Vt$5=H$d((jt,Ut)=>{(function(e,t){typeof jt=="object"&&typeof Ut<"u"?Ut.exports=t(K$9()):typeof define=="function"&&define.amd?define(["dayjs"],t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_locale_es=t(e.dayjs);})(jt,function(e){function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var i=t(e),s={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
145d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:function(n){return n+"\xBA"}};return i.default.locale(s,null,true),s});});var et$9=class et{constructor(t){this.isSupportLS=t;this.cache={};}setItem(t,i){if(this.isSupportLS){localStorage[t]=i;return}this.cache[t]=i;}getItem(t){return this.isSupportLS?localStorage.getItem(t):this.cache[t]}removeItem(t){if(this.isSupportLS){localStorage.removeItem(t);return}this.cache[t]=void 0;}},xt$5=class e{constructor(){this.storage=new et$9(e.isSupportLS());}static{this.prefix="datamagic";}static isSupportLS(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(t){return  false}}static getKeyWithPrefix(t){return `${e.prefix}.${t}`}get(t){let i=this.storage.getItem(e.getKeyWithPrefix(t));if(i!==void 0)return JSON.parse(i)}set(t,i){this.storage.setItem(e.getKeyWithPrefix(t),JSON.stringify(i));}remove(t){this.storage.removeItem(e.getKeyWithPrefix(t));}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var F$8=J$k(K$9()),Qt$5=J$k(Wt$4()),Et$5=J$k(At$5()),Kt$5=J$k(Ct$4()),Xt$5=J$k(It$5()),Rt$4=J$k(zt$3()),te$b=J$k(Bt$4()),ee$9=J$k(qt$5()),ne$a=J$k(Gt$4()),ie$d=J$k(Zt$6());J$k(Ft$3());J$k(Jt$5());J$k(Nt$6());J$k(Pt$4());J$k(Vt$5());F$8.default.extend(Qt$5.default);F$8.default.extend(Et$5.default);F$8.default.extend(Kt$5.default);F$8.default.extend(Xt$5.default);F$8.default.extend(Rt$4.default);F$8.default.extend(te$b.default);F$8.default.extend(ee$9.default);F$8.default.extend(ne$a.default);F$8.default.extend(ie$d.default);var v$9=F$8.default;var re$a=(c=>(c.day="day",c.week="week",c.month="month",c.quarter="quarter",c.year="year",c))(re$a||{});var kt$3=class e{static{this.hourInMs=3600*1e3;}static{this.dayInMs=24*e.hourInMs;}static{this.weekInMs=7*e.dayInMs;}static{this.monthInMs=31*e.dayInMs;}static toDayJsUnit(t){return t==="w"?"isoWeek":t}static toComparisonUnit(t){return t}static toManipulateUnit(t){return t}static getTimeUnitByAggregation(t){let i;switch(t){case "day":i="d";break;case "week":i="w";break;case "month":i="M";break;case "quarter":i="Q";break;case "year":i="y";break}return i}static unix(t=new Date){return t instanceof Date?t.getTime():parseInt(v$9.utc(t).format("x"),10)}static subtract(t,i,s){return v$9(t).subtract(i,e.toManipulateUnit(s)).toDate()}static startOfSubtract(t,i,s){return v$9.utc(t).startOf(s).subtract(i,e.toManipulateUnit(s)).toDate()}static startOfAdd(t,i,s){return v$9.utc(t).startOf(e.toComparisonUnit(s)).add(i,e.toManipulateUnit(s)).toDate()}static utc(t){return v$9(t).utc().toDate()}static unixToDate(t){return t===null?null:v$9(t).toDate()}static locale(t,i,s="YYYY-MM-DD"){return v$9.utc(t).locale(i).format(s)}static startOf(t,i){return v$9.utc(t).startOf(e.toDayJsUnit(i)).toDate()}static endOf(t,i){return v$9.utc(t).endOf(e.toDayJsUnit(i)).toDate()}static isSame(t,i,s="d"){return v$9.utc(t).isSame(v$9.utc(i),e.toDayJsUnit(s))}static isSameOrBefore(t,i,s="d"){return v$9.utc(t).isSameOrBefore(v$9.utc(i),e.toComparisonUnit(s))}static isSameOrAfter(t,i,s="d"){return v$9.utc(t).isSameOrAfter(v$9.utc(i),e.toComparisonUnit(s))}static isBetween(t,i,s,n="d"){let c=e.startOf(t,n),d=e.startOf(i,n),a=e.startOf(s,n);return v$9.utc(c).isBetween(d,a,e.toComparisonUnit(n))}static add(t,i,s){if(t instanceof Date){let n=new Date(t);switch(s){case "d":return n.setUTCDate(n.getUTCDate()+i),n;case "w":return n.setUTCDate(n.getUTCDate()+7*i),n;case "M":return n.setUTCMonth(n.getUTCMonth()+i),n;case "Q":return n.setUTCMonth(n.getUTCMonth()+3*i),n}}return v$9.utc(t).add(i,e.toManipulateUnit(s)).toDate()}static isAfter(t,i,s="d"){return v$9.utc(t).isAfter(v$9.utc(i),e.toComparisonUnit(s))}static transform(t,i="YYYY-MM-DD"){return t?v$9.utc(t,i).toDate():null}static isValid(t){return v$9(t).isValid()}static format(t,i="YYYY-MM-DD",s=true){return t===null?null:s?v$9.utc(t).format(i):v$9(t).format(i)}static diff(t,i,s){return v$9(t).diff(i,s)}static isBefore(t,i,s="d"){return v$9.utc(t).isBefore(v$9.utc(i),e.toComparisonUnit(s))}static prepareMonthPointDate(t){return e.endOf(t,"M").getTime()-e.dayInMs+1}static prepareWeekPointDate(t){return e.endOf(t,"w").getTime()-e.dayInMs+1}static getDate(t){return v$9.utc(t).toDate()}
145static getUtcHours(t){return v$9(t).utc().hour()}static getUtcDate(t){return v$9(t).utc().format("YYYY-MM-DD")}static now(){return v$9.utc().toDate()}static addUtcAndGetTimestamp(t,i,s){return v$9.utc(t).add(i,e.toManipulateUnit(s)).unix()*1e3}};var b$7=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
146`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),s=e.slice(n+1).trim();this.addHeaderEntry(o,s);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.addHeaderEntry(n,e);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t);}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e));});}clone(t){let e=new r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case "a":case "s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let o=(t.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case "d":let s=t.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else {let i=this.headers.get(e);if(!i)return;i=i.filter(l=>s.indexOf(l)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i);}break}}addHeaderEntry(t,e){let n=t.toLowerCase();this.maybeSetNormalizedName(t,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e]);}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=t.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)));}};var V$b=class V{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},$$6=class ${encodeKey(t){return Pe$6(t)}encodeValue(t){return Pe$6(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function je$6(r,t){let e=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(o=>{let s=o.indexOf("="),[i,l]=s==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,s)),t.decodeValue(o.slice(s+1))],a=e.get(i)||[];a.push(l),e.set(i,a);}),e}var Be$9=/%(\d[a-f0-9])/gi,Xe$4={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Pe$6(r){return encodeURIComponent(r).replace(Be$9,(t,e)=>Xe$4[e]??t)}function J$d(r){return `${r}`}var R$a=class r{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new $$6,t.fromString){if(t.fromObject)throw new _$7(2805,false);this.map=je$6(t.fromString,this.encoder);}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],o=Array.isArray(n)?n.map(J$d):[J$d(n)];this.map.set(e,o);})):this.map=null;}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}
146keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(n=>{let o=t[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"});}):e.push({param:n,value:o,op:"a"});}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new r({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case "a":case "s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(J$d(t.value)),this.map.set(t.param,e);break;case "d":if(t.value!==void 0){let n=this.map.get(t.param)||[],o=n.indexOf(J$d(t.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function ze$8(r){switch(r){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return  false;default:return  true}}function xe$7(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function Me$8(r){return typeof Blob<"u"&&r instanceof Blob}function Ne$7(r){return typeof FormData<"u"&&r instanceof FormData}function Je$6(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var B$8="Content-Type",G$9="Accept",De$8="text/plain",_e$7="application/json",Ae$6=`${_e$7}, ${De$8}, */*`,F$7=class r{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,n,o){this.url=e,this.method=t.toUpperCase();let s;if(ze$8(this.method)||o?(this.body=n!==void 0?n:null,s=o):s=n,s){if(this.reportProgress=!!s.reportProgress,this.reportUploadProgress=!!s.reportUploadProgress,this.reportDownloadProgress=!!s.reportDownloadProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new _$7(2822,"");this.timeout=s.timeout;}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer!==void 0&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache;}if(this.headers??=new b$7,this.context??=new V$b,!this.params)this.params=new R$a,this.urlWithParams=e;else {let i=this.params.toString();if(i.length===0)this.urlWithParams=e;else {let l=e,a="",h=e.indexOf("#");h!==-1&&(a=e.substring(h),l=e.substring(0,h));let f=l.indexOf("?"),m=f===-1?"?":f<l.length-1?"&":"";this.urlWithParams=l+m+i+a;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||xe$7(this.body)||Me$8(this.body)||Ne$7(this.body)||Je$6(this.body)?this.body:this.body instanceof R$a?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Ne$7(this.body)?null:Me$8(this.body)?this.body.type||null:xe$7(this.body)?null:typeof this.body=="string"?De$8:this.body instanceof R$a?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?_e$7:null}clone(t={}){let e=t.method||this.method,n=t.url||this.url,o=t.responseType||this.responseType,s=t.keepalive??this.keepalive,i=t.priority||this.priority,l=t.cache||this.cache,a=t.mode||this.mode,h=t.redirect||this.redirect,f=t.credentials||this.credentials,m=t.referrer??this.referrer,x=t.integrity||this.integrity,S=t.referrerPolicy||this.referrerPolicy,A=t.transferCache??this.transferCache,I=t.timeout??this.timeout,p=t.body!==void 0?t.body:this.body,w=t.withCredentials??this.withCredentials,c=t.reportProgress??this.reportProgress,d=t.report
146UploadProgress??this.reportUploadProgress,y=t.reportDownloadProgress??this.reportDownloadProgress,M=t.headers||this.headers,u=t.params||this.params,N=t.context??this.context;return t.setHeaders!==void 0&&(M=Object.keys(t.setHeaders).reduce((O,E)=>O.set(E,t.setHeaders[E]),M)),t.setParams&&(u=Object.keys(t.setParams).reduce((O,E)=>O.set(E,t.setParams[E]),u)),new r(e,n,p,{params:u,headers:M,context:N,reportProgress:c,reportUploadProgress:d,reportDownloadProgress:y,responseType:o,withCredentials:w,transferCache:A,keepalive:s,cache:l,priority:i,timeout:I,mode:a,redirect:h,credentials:f,referrer:m,integrity:x,referrerPolicy:S})}},P$c=(function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r})(P$c||{}),U$9=class U{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,e=200,n="OK"){this.headers=t.headers||new b$7,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},X$9=class r extends U$9{constructor(t={}){super(t);}type=P$c.ResponseHeader;clone(t={}){return new r({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},C$9=class r extends U$9{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=P$c.Response;clone(t={}){return new r({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},v$8=class v extends U$9{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null;}},Ie$5=200,Ve$a=204;var $e$7=/^\)\]\}',?\n/,ke$8=new M$g("",{factory:()=>null}),W$8=(()=>{class r{fetchImpl=D$l(oe$6,{optional:true})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=D$l($$b);destroyRef=D$l(st$b);maxResponseSize=D$l(ke$8);handle(e){return new x$g(n=>{let o=new AbortController;this.doRequest(e,o.signal,n).then(se$7,i=>n.error(new v$8({error:i})));let s;return e.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},e.timeout))),()=>{s!==void 0&&clearTimeout(s),o.abort();}})}doRequest(e,n,o){return K$g(this,null,function*(){let s=this.createRequestInit(e),i;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,D$m({signal:n},s)));Ge$9(p),o.next({type:P$c.Sent}),i=yield p;}catch(p){o.error(new v$8({error:p,status:p.status??0,statusText:p.statusText,url:e.urlWithParams,headers:p.headers}));return}let l=new b$7(i.headers),a=i.statusText,h=i.url||e.urlWithParams,f=i.status,m=null,x=e.reportProgress||e.reportDownloadProgress;if(x&&o.next(new X$9({headers:l,status:f,statusText:a,url:h})),i.body){let p=i.headers.get("content-length"),w=p!==null?Number(p):NaN;this.maxResponseSize!==null&&Number.isFinite(w)&&w>this.maxResponseSize&&Oe$7(this.maxResponseSize);let c=[],d=i.body.getReader(),y=0,M,u,N=typeof Zone<"u"&&Zone.current,O=false;if(yield this.ngZone.runOutsideAngular(()=>K$g(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield d.cancel(),O=true;break}let{done:L,value:q}=yield d.read();if(L)break;if(c.push(q),y+=q.length,this.maxResponseSize!==null&&y>this.maxResponseSize&&(yield d.cancel(),Oe$7(this.maxResponseSize)),x){u=e.responseType==="text"?(u??"")+(M??=new TextDecoder).decode(q,{stream:true}):void 0;let de=()=>o.next({type:P$c.DownloadProgress,total:Number.isFinite(w)?w:void 0,loaded:y,partialText:u});N?N.run(de):de();}}})),O){o.complete();return}let E=this.concatChunks(c,y);try{let L=i.headers.get(B$8)??"";m=this.parseBody(e,E,L,f);}catch(L){o.error(new v$8({error:L,headers:new b$7(i.headers),status:i.status,statusText:i.statusText,url:i.url||e.urlWithParams}));return}}f===0&&(f=m?Ie$5:0);let S=f>
146=200&&f<300,A=i.redirected,I=i.type;S?(o.next(new C$9({body:m,headers:l,status:f,statusText:a,url:h,redirected:A,responseType:I})),o.complete()):o.error(new v$8({error:m,headers:l,status:f,statusText:a,url:h,redirected:A,responseType:I}));})}parseBody(e,n,o,s){switch(e.responseType){case "json":let i=new TextDecoder().decode(n).replace($e$7,"");if(i==="")return null;try{return JSON.parse(i)}catch(l){if(s<200||s>=300)return i;throw l}case "text":return new TextDecoder().decode(n);case "blob":return new Blob([n],{type:o});case "arraybuffer":return n.buffer}}createRequestInit(e){if(e.reportUploadProgress)throw new _$7(2824,false);let n={},o;if(o=e.credentials,e.withCredentials&&(o="include"),e.headers.forEach((s,i)=>n[s]=i.join(",")),e.headers.has(G$9)||(n[G$9]=Ae$6),!e.headers.has(B$8)){let s=e.detectContentTypeHeader();s!==null&&(n[B$8]=s);}return {body:e.serializeBody(),method:e.method,headers:n,credentials:o,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,n){let o=new Uint8Array(n),s=0;for(let i of e)o.set(i,s),s+=i.length;return o}static \u0275fac=function(n){return new(n||r)};static \u0275prov=ct$9({token:r,factory:r.\u0275fac})}return r})(),oe$6=class oe{};function se$7(){}function Ge$9(r){r.then(se$7,se$7);}function Oe$7(r){throw new _$7(-2825,false)}function We$8(r,t){return t(r)}function Ye$7(r,t,e){return (n,o)=>Xo$3(e,()=>t(n,s=>r(s,o)))}var ae$7=new M$g("",{factory:()=>[]}),Se$a=new M$g(""),Fe$a=new M$g("",{factory:()=>true});var Z$6=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=G$f({token:r,factory:function(n){let o=null;return n?o=new(n||r):o=me$b(W$8),o},providedIn:"root"})}return r})();var Y$a=(()=>{class r{backend;injector;chain=null;pendingTasks=D$l(yi$4);contributeToStability=D$l(Fe$a);constructor(e,n){this.backend=e,this.injector=n;}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(ae$7),...this.injector.get(Se$a,[])]));this.chain=n.reduceRight((o,s)=>Ye$7(o,s,this.injector),We$8);}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(bu$2(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||r)(me$b(Z$6),me$b(fe$d))};static \u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ce$7=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=G$f({token:r,factory:function(n){let o=null;return n?o=new(n||r):o=me$b(Y$a),o},providedIn:"root"})}return r})();function ne$9(r,t){return D$m({body:t},r)}var Ue$7=(()=>{class r{handler;constructor(e){this.handler=e;}request(e,n,o={}){let s;if(e instanceof F$7)s=e;else {let a;o.headers instanceof b$7?a=o.headers:a=new b$7(o.headers);let h;o.params&&(o.params instanceof R$a?h=o.params:h=new R$a({fromObject:o.params})),s=new F$7(e,n,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:h,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let i=Ms$2(s).pipe(Du$2(a=>this.handler.handle(a)));if(e instanceof F$7||o.observe==="events")return i;let l=i.pipe(Tn$3(a=>a instanceof C$9));switch(o.observe||"body"){case "body":switch(s.responseType){case "arraybuffer":return l.pipe(ge$9(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new _$7(2806,false);return a.body}));case "blob":return l.pipe(ge$9(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new _$7(2807,false);return a.body}));case "text":return l.pipe(ge$9(a=>{if(a.body!==null&&typeof a.body!="string")throw new _$7(2808,false);return a.body}));default:return l.pipe(ge$9(a=>a.body))}case "response":return l;default:throw new _$7(2809,false)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new R$a().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,ne$9(o,n))}post(e,n,o={}){return this.request("POST",e,ne$9(o,n))}put(e,n,o={}){return this.request("PUT",e,ne$9(o,n))}static \u0275fac=function(n){return new(n||r)(me$b(ce$7))};static \u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Ze$7=/^\)\]\}',?\n/;var ie$c=(()=>{class r{xhrFactory;tracingService=D$l(pn$3,{optional:true});constructor(e){this.xhrFactory=e;}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new _$7(-2800,false);let n=this.xhrFactory;return Ms$2(null).pipe(Ru$2(()=>new x$g(s=>{let i=n.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=true),e.headers.forEac
146h((c,d)=>i.setRequestHeader(c,d.join(","))),e.headers.has(G$9)||i.setRequestHeader(G$9,Ae$6),!e.headers.has(B$8)){let c=e.detectContentTypeHeader();c!==null&&i.setRequestHeader(B$8,c);}if(e.timeout&&(i.timeout=e.timeout),e.responseType){let c=e.responseType.toLowerCase();i.responseType=c!=="json"?c:"text";}let l=e.serializeBody(),a=null,h=()=>{if(a!==null)return a;let c=i.statusText||"OK",d=new b$7(i.getAllResponseHeaders()),y=i.responseURL||e.url;return a=new X$9({headers:d,status:i.status,statusText:c,url:y}),a},f=this.maybePropagateTrace(()=>{let{headers:c,status:d,statusText:y,url:M}=h(),u=null;d!==Ve$a&&(u=typeof i.response>"u"?i.responseText:i.response),d===0&&(d=u?Ie$5:0);let N=d>=200&&d<300;if(e.responseType==="json"&&typeof u=="string"){let O=u;u=u.replace(Ze$7,"");try{u=u!==""?JSON.parse(u):null;}catch(E){u=O,N&&(N=false,u={error:E,text:u});}}N?(s.next(new C$9({body:u,headers:c,status:d,statusText:y,url:M||void 0})),s.complete()):s.error(new v$8({error:u,headers:c,status:d,statusText:y,url:M||void 0}));}),m=this.maybePropagateTrace(c=>{let{url:d}=h(),y=new v$8({error:c,status:i.status||0,statusText:i.statusText||"Unknown Error",url:d||void 0});s.error(y);}),x=m;e.timeout&&(x=this.maybePropagateTrace(c=>{let{url:d}=h(),y=new v$8({error:new DOMException("Request timed out","TimeoutError"),status:i.status||0,statusText:i.statusText||"Request timeout",url:d||void 0});s.error(y);}));let S=false,A=this.maybePropagateTrace(c=>{S||(s.next(h()),S=true);let d={type:P$c.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),e.responseType==="text"&&i.responseText&&(d.partialText=i.responseText),s.next(d);}),I=this.maybePropagateTrace(c=>{let d={type:P$c.UploadProgress,loaded:c.loaded};c.lengthComputable&&(d.total=c.total),s.next(d);});i.addEventListener("load",f),i.addEventListener("error",m),i.addEventListener("timeout",x),i.addEventListener("abort",m);let p=e.reportProgress||e.reportUploadProgress,w=e.reportProgress||e.reportDownloadProgress;return w&&i.addEventListener("progress",A),p&&l!==null&&i.upload&&i.upload.addEventListener("progress",I),i.send(l),s.next({type:P$c.Sent}),()=>{i.removeEventListener("error",m),i.removeEventListener("abort",m),i.removeEventListener("load",f),i.removeEventListener("timeout",x),w&&i.removeEventListener("progress",A),p&&l!==null&&i.upload&&i.upload.removeEventListener("progress",I),i.readyState!==i.DONE&&i.abort();}})))}static \u0275fac=function(n){return new(n||r)(me$b(cH))};static \u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Ke$6=new M$g("",{factory:()=>true}),qe$6="XSRF-TOKEN",Qe$7=new M$g("",{factory:()=>qe$6}),He$7="X-XSRF-TOKEN",et$8=new M$g("",{factory:()=>He$7}),tt$8=(()=>{class r{cookieName=D$l(Qe$7);doc=D$l(jn$2);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=aH(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||r)};static \u0275prov=ct$9({token:r,factory:r.\u0275fac})}return r})(),Ce$9=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=G$f({token:r,factory:function(n){let o=null;return n?o=new(n||r):o=me$b(tt$8),o},providedIn:"root"})}return r})();function rt$4(r,t){if(!D$l(Ke$6)||r.method==="GET"||r.method==="HEAD")return t(r);try{let o=D$l(lC).href,{origin:s}=new URL(o),{origin:i}=new URL(r.url,s);if(s!==i)return t(r)}catch(o){return t(r)}let e=D$l(Ce$9).getToken(),n=D$l(et$8);return e!=null&&!r.headers.has(n)&&(r=r.clone({headers:r.headers.set(n,e)})),t(r)}var K$8=(function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r[r.Xhr=7]="Xhr",r})(K$8||{});function Le$7(r,t){return {\u0275kind:r,\u0275providers:t}}function nt$9(...r){let t=[Ue$7,W$8,Y$a,{provide:ce$7,useExisting:Y$a},{provide:Z$6,useFactory:()=>D$l(W$8)},{provide:ae$7,useValue:rt$4,multi:true}];for(let e of r)t.push(...e.\u0275providers);return Ko$3(t)}function ot$6(r){return Le$7(K$8.Interceptors,r.map(t=>({provide:ae$7,useValue:t,multi:true})))}function st$7(){return Le$7(K$8.Xhr,[ie$c,{provide:Z$6,useExisting:ie$c}])}var I$5="3c328e446e85daa07accd3a8d7a3db8fc786851f",C$8={release:I$5.includes("CI_COMMIT_SHA")?"":I$5,baseUrl:""};var c$d=class e{constructor(){this.timeDiff=fi$4(0);this.diff=this.timeDiff.asReadonly();this.unixTime=Pb(()=>kt$3.unix()+this.diff());}setTime(t){this.timeDiff.set(kt$3.unix(kt$3.getDate(t))-kt$3.unix());}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var u$9=class e{constructor(t){this.httpBackend=t;this.httpClient=new Ue$7(this.httpBackend);}get(){return this.httpClient.get(C$8.baseUrl+"/api/v2/init")}static{this.\u0275fac=function(o){return new(o||e)(me$b(Z$6))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};function N$a(e,t){return /^(?:[a-z]+:)?\/\//i.test(t)?t:[e,t].join("/").replace(/[\/]+/g,"/").replace(/\/\?/g,"?").replace(/\/\#/g,"#").replace(/\:\//g,"://")}function M$b(e){let t=e;return Object.keys(t).map(o=>t[o]?`${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`:o).join("&")}function d$a(e){!e&&typeof window<"u"&&(e=window);try{return e?.location?e.location.origin?e.location.origin:`${e.location.protocol}//${e.location.hostname}${e.location.port?":"+e.location.port:""}`:null}catch(t){return null}}var m$b={facebook:{name:"facebook",url:"/auth/facebook",redirectUri:`${d$a()}/`,authorizationEndpoint:"https://www.facebook.com/v2.5/dialog/oauth",additionalUrlParams:{display:"popup"},scope:["email"],scopeDelimiter:",",oauthType:"2.0",popupOptions:{width:580,height:400}},google:{name:"google",url:"/auth/google",authorizationEndpoint:"https://accounts.google.com/o/oauth2/auth",additionalUrlParams:{display:"popup",prompt:void 0,login_hint:void 0,access_type:void 0,include_granted_scopes:void 0,"openid.realm":void 0,hd:void 0},scope:["openid","profile","email"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:452,height:633},state:()=>encodeURIComponent(Math.random().toString(36).substr(2))},github:{name:"github",url:"/auth/github",authorizationEndpoint:"https://github.com/login/oauth/authorize",scope:["user:email"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:1020,height:618}},instagram:{name:"instagram",url:"/auth/instagram",authorizationEndpoint:"https://api.instagram.com/oauth/authorize",scope:["basic"],scopeDelimiter:"+",oauthType:"2.0"},linkedin:{name:"linkedin",url:"/auth/linkedin",authorizationEndpoint:"https://www.linkedin.com/uas/oauth2/authorization",scope:["r_emailaddress"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:527,height:582},state:"STATE"},twitter:{name:"twitter",url:"/auth/twitter",authorizationEndpoint:"https://api.twitter.com/oauth/authenticate",oauthType:"1.0",popupOptions:{width:495,height:645}},twitch:{name:"twitch",url:"/auth/twitch",authorizationEndpoint:"https://api.twitch.tv/kraken/oauth2/authorize",scope:["user_read"],scopeDelimiter:" ",additionalUrlParams:{display:"popup"},oauthType:"2.0",popupOptions:{width:500,height:560}},live:{name:"live",url:"/auth/live",authorizationEndpoint:"https://login.live.com/oauth20_authorize.srf",additionalUrlParams:{display:"popup"},scope:["wl.emails"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:500,height:560}},yahoo:{name:"yahoo",url:"/auth/yahoo",authorizationEndpoint:"https://api.login.yahoo.com/oauth2/request_auth",scope:[],scopeDelimiter:",",oauthType:"2.0",popupOptions:{width:559,height:519}},bitbucket:{name:"bitbucket",url:"/auth/bitbucket",authorizationEndpoint:"https://bitbucket.org/site/oauth2/authorize",redirectUri:`${d$a()}/`,scope:["email"],scopeDelimiter:",",oauthType:"2.0",popupOptions:{width:1028,height:529}},spotify:{name:"spotify",url:"/auth/spotify",authorizationEndpoint:"https://accounts.spotify.com/authorize",scope:["","user-read-email"],scopeDelimiter:",",oauthType:"2.0",popupOptions:{width:500,height:530},state:()=>encodeURIComponent(Math.random().toString(36).substr(2))}};var h$b=class e{constructor(){this.options={withCredentials:false,tokenRoot:null,baseUrl:"/",loginUrl:"/auth/login",signupUrl:"/auth/signup",unlinkUrl:"/auth/unlink/",tokenName:"token",tokenSeparator:"_",tokenPrefix:"ng2-ui-auth",authHeader:"Authorization",authToken:"Bearer",storageType:"localStorage",cordova:void 0,resolveToken:(t,o)=>{let i=t&&(t.access_token||t.token||t.data);if(!i)return null;if(typeof i=="string")return i;if(typeof i!="object")return null;let a=o.tokenRoot?.split(".").reduce((R,S)=>R[S],i),f=a?a[o.tokenName]:i[o.tokenName];return f||null},providers:{}};this.mergeWithDefaultProviders();}updateProviders(t){this.options.providers=D$m(D$m({},this.options.providers||{}),t),this.mergeWithDefaultProviders();}mergeWithDefaultProviders(){Object.keys(this.options.providers).forEac
146h(t=>{t in m$b&&(this.options.providers[t]=D$m(D$m({},m$b[t]),this.options.providers[t]));});}static{this.\u0275fac=function(o){return new(o||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var O$a=class e{constructor(t,o,i,a){this.rootConfigResource=t;this.configService=o;this.localStorageService=i;this.serverTimeService=a;this.config={};}static{this.DefaultNavigateUrl="/top-charts/apps";}static{this.commonRedirectUri="https://appmagic.rocks/login";}getConfig(){return this.rootConfigResource.get().pipe(ge$9(t=>(this.config=t,this.localStorageService.get("am_test_country")&&(this.config.country=this.localStorageService.get("am_test_country")),this.serverTimeService.setTime(t.serverTime),this.authProviders=this.createAuthProviders(this.config),this.configService.updateProviders(this.authProviders),true)))}isAuthProviderUrl(t){return Object.values(this.authProviders).map(o=>o.url).includes(t)}createAuthProviders(t){let o=window.location.origin,i=window.location.host,a=e.commonRedirectUri;return {google:{state:i,redirectUri:o,popupRedirectUri:a,url:"/api/v2/auth/google",authorizationEndpoint:"https://accounts.google.com/o/oauth2/auth",requiredUrlParams:["scope"],additionalUrlParams:{prompt:"select_account",access_type:"offline",display:"popup"},scope:["profile","email"],scopeDelimiter:" ",oauthType:"2.0",popupOptions:{width:452,height:633},clientId:t.authClientIds?t.authClientIds.google:""},facebook:{state:i,redirectUri:o,popupRedirectUri:a,name:"facebook",url:"/api/v2/auth/facebook",authorizationEndpoint:"https://www.facebook.com/v16.0/dialog/oauth",requiredUrlParams:["display","scope"],scope:["email"],scopeDelimiter:",",display:"popup",oauthType:"2.0",popupOptions:{width:580,height:400},clientId:t.authClientIds?t.authClientIds.facebook:""},facebook_internal:{state:i,redirectUri:o,popupRedirectUri:a,name:"facebook_internal",authorizationEndpoint:"https://www.facebook.com/v16.0/dialog/oauth",requiredUrlParams:["scope"],scope:["email"],scopeDelimiter:",",oauthType:"2.0",clientId:t.authClientIds?t.authClientIds.facebook:""},kakaotalk:{state:i,redirectUri:o,popupRedirectUri:a,name:"kakaotalk",url:"/api/v2/auth/kakaotalk",authorizationEndpoint:"https://kauth.kakao.com/oauth/authorize",display:"popup",oauthType:"2.0",popupOptions:{width:580,height:400},clientId:t.authClientIds?t.authClientIds.kakaotalk:""},wechat:{state:i,redirectUri:o,popupRedirectUri:a,name:"wechat",url:"/api/v2/auth/wechat",authorizationEndpoint:"https://open.weixin.qq.com/connect/qrconnect",requiredUrlParams:["appid","response_type","scope"],additionalUrlParams:{appid:t.authClientIds?t.authClientIds.wechat:""},scope:["snsapi_login"],response_type:"code",appid:t.authClientIds?t.authClientIds.wechat:"",display:"popup",oauthType:"2.0",popupOptions:{width:580,height:500}},wechat_internal:{state:i,redirectUri:o,popupRedirectUri:a,name:"wechat_internal",authorizationEndpoint:"https://open.weixin.qq.com/connect/oauth2/authorize",requiredUrlParams:["appid","response_type","scope"],additionalUrlParams:{appid:t.authClientIds?t.authClientIds.weixin:"","state#wechat_redirect":""},response_type:"code",appid:t.authClientIds?t.authClientIds.weixin:"",oauthType:"2.0",scope:["snsapi_userinfo"]},slack:{state:i,redirectUri:o,popupRedirectUri:a,name:"slack",url:"/api/v2/alerts/slack",authorizationEndpoint:"https://slack.com/oauth/v2/authorize",requiredUrlParams:["scope","redirect_uri"],scope:["incoming-webhook"],clientId:t.authClientIds?t.authClientIds.slack:"",display:"popup",oauthType:"2.0",popupOptions:{width:580,height:500}}}}static{this.\u0275fac=function(o){return new(o||e)(me$b(u$9),me$b(h$b),me$b(xt$5),me$b(c$d))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};
147var O$9=H$d((T,I)=>{I.exports=function(){var e;return navigator.languages&&navigator.languages.length?e=navigator.languages[0]:navigator.userLanguage?e=navigator.userLanguage:e=navigator.language,e};});var x$b=J$k(O$9());var l$g=class l{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};var s$m=class s extends R$a{constructor(e){if(e.fromObject){let t={};Object.entries(e.fromObject).forEach(n=>{let[i,a]=n;a&&(Array.isArray(a)&&a.length>0,t[i]=a);}),e.fromObject=t;}e.encoder||(e.encoder=new l$g),super(e);}};
147var g$9=class r{constructor(){this.httpClient=new Ue$7(D$l(Z$6));}get(e,t){let n={lang:e};t!=null&&(n.approved_count=String(t));let i=new s$m({fromObject:n});return this.httpClient.get(`${C$8.baseUrl}/api/v2/db-translations`,{params:i})}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var v$7=class r{constructor(e,t,n,i){this.translateService=e;this.langResource=t;this.rootConfigService=n;this.localStorageService=i;this.viewLangList=[];this.ipCountry=this.rootConfigService.config.country?this.rootConfigService.config.country.toLowerCase():"xx";let a=(0, x$b.default)().toLowerCase(),L=r.getLangList().find(H=>H.locale.split("-").some(V=>a.includes(V)));L&&(this.browserLang=L.countries[0]),this.country=this.browserLang?this.browserLang:this.ipCountry,this.langSubject=new rr$4(this.restoreLanguage()),this.langSignal=L$4(this.langSubject),this.lang=this.langSubject.asObservable(),this.approveCount=new rr$4(this.restoreApproveCount()),this.approveCountSignal=L$4(this.approveCount),this.viewLangList=r.getLangList();}static{this.lsKey="lang";}static{this.defaultLang=s$n[0];}static{this.approveCountLsKey="translations-approve-count";}static getLangList(){return [...s$n]}static findLangByCountry(e){return r.getLangList().find(t=>t.countries.includes(e))}static findLangById(e){return r.getLangList().find(t=>t.id===e)}static findLangByLocale(e){return r.getLangList().find(t=>t.locale===e)}selectLangById(e){this.langSubject.next(r.findLangById(e)||r.defaultLang);let t=r.findLangById(e)||r.defaultLang;Tu$1(t,this.langSubject.getValue())||this.langSubject.next(t),this.localStorageService.set(r.lsKey,this.langSubject.getValue().id);}getLangValue(){return this.langSubject.getValue()}setApprovedCount(e,t=true){let n=r.normalizeApproveCount(e);
147t&&(n===void 0?this.localStorageService.remove(r.approveCountLsKey):this.localStorageService.set(r.approveCountLsKey,n)),this.approveCount.next(n);}reloadTranslations(){this.loadCurrentTranslations().pipe(Pt$a(1)).subscribe();}static normalizeApproveCount(e){if(e==null)return;let t=Number(e);return Number.isFinite(t)?t:void 0}restoreApproveCount(){let e=this.localStorageService.get(r.approveCountLsKey);return r.normalizeApproveCount(e)}updateLanguage(e,t){this.translateService.use(e),this.translateService.setTranslation(e,t),this.translateService.setDefaultLang(this.langSubject.getValue().id),Tu$1(r.findLangById(e),this.langSubject.getValue())||this.langSubject.next(r.findLangById(e));}loadCurrentTranslations(){return this.langResource.get(this.langSubject.getValue().id,this.approveCount.getValue()).pipe(Lu$2(e=>{this.updateLanguage(e.lang,e.data);}))}setCurrentLang(e){this.langResource.get(e,this.approveCount.getValue()).pipe(Pt$a(1)).subscribe(t=>{this.selectLangById(e),this.updateLanguage(t.lang,t.data);});}restoreLanguage(){let e=this.localStorageService.get(r.lsKey),t=r.findLangById(e);return t||(t=r.findLangByCountry(this.country),t)?t:r.defaultLang}static{this.\u0275fac=function(t){return new(t||r)(me$b(x$d),me$b(g$9),me$b(O$a),me$b(xt$5))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var Oe$6=(i=>(i.mobile="mobile",i.steam="steam",i.xbox="xbox",i.playStation="playStation",i))(Oe$6||{});var E$6={app_tracker:"app_tracker",top_ltv:"top_ltv",top_trending:"top_trending",soft_launches:"soft_launches",similarity_graph:"similarity_graph",top_releases:"top_releases",ad_int:"ad_int",ad_int_dashboards:"ad_int_dashboards",ad_int_impressions:"ad_int_impressions",api_access:"api_access",tag_dashboards:"tag_dashboards",app_transfers:"app_transfers",retention:"retention",success_meter:"success_meter",live_ops:"live_ops",live_ops_adv_search:"live_ops_adv_search",live_ops_impact:"live_ops_impact",live_ops_expert_review:"live_ops_expert_review",live_ops_detailed_description:"live_ops_detailed_description",sdks:"sdks",app_page_history:"app_page_history",similarity_aso:"similarity_aso",asa_dashboards:"asa_dashboards",aso_dashboards:"aso_dashboards",st_aso:"st_aso",dau:"dau",ad_spend:"ad_spend",ai_bot:"ai_bot",asa_by_apps:"asa_by_apps",asa_by_keywords:"asa_by_keywords",aso_by_apps:"aso_by_apps",aso_by_keywords:"aso_by_keywords",csv_export:"csv_export",downloads_source:"downloads_source",feature_library:"feature_library",web_shops:"web_shops",gender_balance:"gender_balance",monetization_int:"monetization_int",steam:"steam",steam_metrics:"steam_metrics",steam_iap_dlc_revenue:"steam_iap_dlc_revenue",steam_retention:"steam_retention",steam_user_activity:"steam_user_activity",steam_user_acquisition:"steam_user_acquisition",xbox:"xbox",playstation:"playstation",period_comparison:"period_comparison",ip_tags:"ip_tags",revenue_distribution:"revenue_distribution",session_stats:"session_stats",web_shop_revenue:"web_shop_revenue",ad_revenue:"ad_revenue",audience_overlap:"audience_overlap",mobile_all_countries:"mobile_all_countries",steam_all_countries:"steam_all_countries",playstation_all_countries:"playstation_all_countries",xbox_all_countries:"xbox_all_countries"},Ue$6={mobile:E$6.mobile_all_countries,steam:E$6.steam_all_countries,playStation:E$6.playstation_all_countries,xbox:E$6.xbox_all_countries};var F$6=class n{static{this.ANALYTICS_URL_RE=/^https?:\/\/events\.appmagic\.rocks\/requests/i;}static{this.TRACE_TARGETS=[/^\/api(\/|$)/];}static{this.DENY_URLS=[/^chrome-extension:\/\//i,/^moz-extension:\/\//i,/^safari-extension:/i,/^safari-web-extension:\/\//i];}
147static{this.IGNORE_ERRORS=["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications",/^Non-Error promise rejection captured/,/^Loading chunk [\d]+ failed/,"Network request failed","Failed to fetch","NetworkError","AbortError",/^TypeError: (cancelled|canceled)$/i,/UCShellJava/i,/null is not an object \(evaluating '.*localStorage(?:\.getItem)?/i,/(?:TypeError:\s*)?Cannot read properties of null \(reading 'getItem'\)/i,/(?:SecurityError:\s*)?Failed to read the 'localStorage' property from 'Window': Access is denied for this document\.?$/i,/localStorage is not available/i,/__firefox__/i,/window\.ethereum\.selectedAddress/i];}static getConfig(t){return {dsn:"https://[email protected]/3",environment:window.location.host,release:C$8.release,enabled:(()=>{try{return !localStorage.getItem("datamagic.Disabled3PartyScriptKey")}catch(e){return  true}})(),tunnel:"/api/v2/sentry",integrations:[t.browserTracingIntegration({traceFetch:true,traceXHR:true,shouldCreateSpanForRequest:e=>!n.ANALYTICS_URL_RE.test(e)})],sampleRate:1,tracesSampler:e=>e.name.includes("long-task")?.3:.1,denyUrls:n.DENY_URLS,ignoreErrors:n.IGNORE_ERRORS,tracePropagationTargets:n.TRACE_TARGETS,beforeSend(e){if(navigator.webdriver||window.__PW_TEST__)return null;e.tags=E$9(D$m({},e.tags),{"network.online":String(navigator.onLine)});let s=e.exception?.values?.[0],i=s?.type||"",r=s?.value||"",o=e.message||"",a=r||o;if(/Http failure response.*\b0 Unknown Error\b/i.test(a)||i==="SecurityError"&&/localStorage/i.test(r)&&/Access is denied/i.test(r))return null;let c=e.breadcrumbs?.some(l=>/localStorage is not available/i.test(l.message||""));return i==="SecurityError"&&/The operation is insecure\.?/i.test(r)&&(e.tags?.["DOMException.code"]==="18"||c)||/__firefox__/i.test(a)||/window\.ethereum\.selectedAddress/i.test(a)?null:e}}}sendRedirect(t,e){this.send("[REDIRECT]","Redirect function",{previous:t,current:e});}sendCriticalIssue(t,e){this.send("[Critical Issue]","Redirect function",{name:t,info:e});}send(t,e="",s=null){let i=K$7();if(i){if(e&&s){let r=new i.Scope;r.setContext(e,s),i.captureMessage(t,r);return}i.captureMessage(t);}}setUserContext(t,e){K$7()?.setContext(t,e);}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};var je$5=null;function K$7(){return je$5}function bt$5(){return import('./chunk-DK150csm.js').then(n=>{n.init(F$6.getConfig(n)),je$5=n,Me$7(n.createErrorHandler({showDialog:false}));})}var he$7=null;function Me$7(n){he$7=n;}var Be$8=class n{handleError(t){if(he$7){he$7.handleError(t);return}console.error(t),K$7()?.captureException(t);}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac});}};var X$8=class n{constructor(){this.localStorageService=D$l(xt$5);}static{this.lsKey="token";}getToken(){return this.token||(this.token=this.localStorageService.get(n.lsKey)),this.token}setToken(t){this.token=t,this.localStorageService.set(n.lsKey,t);}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};var Ye$6=`
148<img height="1" width="1"
149     id="LinkedInPixel"
150     style="display:none;"
151     alt=""
152     src="https://dc.ads.linkedin.com/collect/?pid=415673&conversionId=489473&fmt=gif"/>
153`,ze$7=Ye$6;var $e$6=`
154    <img id="LinkedInLoginDesktopPixel" height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=1959916&fmt=gif"/>
155`,Ne$6=$e$6;var Q$7=class n{constructor(){this.templates={LinkedInPixel:ze$7,LinkedInLoginDesktopPixel:Ne$6};this.validatePixels();}addPixelIfNotExists(t){document.getElementById(t)||document.body.insertAdjacentHTML("afterbegin",this.templates[t]);}validatePixels(){t$k(this.templates).forEach(t=>{if(!this.templates[t].includes(`id="${t}"`))throw new Error(`${t} pixel must contain corresponding id`)});}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};function P$b(n,t,e,s){function i(r){return r instanceof e?r:new e(function(o){o(r);})}return new(e||(e=Promise))(function(r,o){function a(f){try{l(s.next(f));}catch(S){o(S);}}function c(f){try{l(s.throw(f));}catch(S){o(S);}}function l(f){f.done?r(f.value):i(f.value).then(a,c);}l((s=s.apply(n,[])).next());})}function Qe$6(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Z$5={exports:{}},Fe$9;function Ze$6(){if(Fe$9)return Z$5.exports;Fe$9=1;var n=typeof Reflect=="object"?Reflect:null,t=n&&typeof n.apply=="function"?n.apply:function(h,d,_){return Function.prototype.apply.call(h,d,_)},e;n&&typeof n.ownKeys=="function"?e=n.ownKeys:Object.getOwnPropertySymbols?e=function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:e=function(h){return Object.getOwnPropertyNames(h)};function s(u){console&&console.warn&&console.warn(u);}var i=Number.isNaN||function(h){return h!==h};function r(){r.init.call(this);}Z$5.exports=r,Z$5.exports.once=T,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var o=10;function a(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(r,"defaultMaxListeners",{enumerable:true,get:function(){return o}
155,set:function(u){if(typeof u!="number"||u<0||i(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");o=u;}}),r.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0;},r.prototype.setMaxListeners=function(h){if(typeof h!="number"||h<0||i(h))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+h+".");return this._maxListeners=h,this};function c(u){return u._maxListeners===void 0?r.defaultMaxListeners:u._maxListeners}r.prototype.getMaxListeners=function(){return c(this)},r.prototype.emit=function(h){for(var d=[],_=1;_<arguments.length;_++)d.push(arguments[_]);var p=h==="error",v=this._events;if(v!==void 0)p=p&&v.error===void 0;else if(!p)return  false;if(p){var g;if(d.length>0&&(g=d[0]),g instanceof Error)throw g;var A=new Error("Unhandled error."+(g?" ("+g.message+")":""));throw A.context=g,A}var V=v[h];if(V===void 0)return  false;if(typeof V=="function")t(V,this,d);else for(var Se=V.length,Ke=m(V,Se),_=0;_<Se;++_)t(Ke[_],this,d);return  true};function l(u,h,d,_){var p,v,g;if(a(d),v=u._events,v===void 0?(v=u._events=Object.create(null),u._eventsCount=0):(v.newListener!==void 0&&(u.emit("newListener",h,d.listener?d.listener:d),v=u._events),g=v[h]),g===void 0)g=v[h]=d,++u._eventsCount;else if(typeof g=="function"?g=v[h]=_?[d,g]:[g,d]:_?g.unshift(d):g.push(d),p=c(u),p>0&&g.length>p&&!g.warned){g.warned=true;var A=new Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(h)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=u,A.type=h,A.count=g.length,s(A);}return u}r.prototype.addListener=function(h,d){return l(this,h,d,false)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(h,d){return l(this,h,d,true)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=true,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(u,h,d){var _={fired:false,wrapFn:void 0,target:u,type:h,listener:d},p=f.bind(_);return p.listener=d,_.wrapFn=p,p}r.prototype.once=function(h,d){return a(d),this.on(h,S(this,h,d)),this},r.prototype.prependOnceListener=function(h,d){return a(d),this.prependListener(h,S(this,h,d)),this},r.prototype.removeListener=function(h,d){var _,p,v,g,A;if(a(d),p=this._events,p===void 0)return this;if(_=p[h],_===void 0)return this;if(_===d||_.listener===d)--this._eventsCount===0?this._events=Object.create(null):(delete p[h],p.removeListener&&this.emit("removeListener",h,_.listener||d));else if(typeof _!="function"){for(v=-1,g=_.length-1;g>=0;g--)if(_[g]===d||_[g].listener===d){A=_[g].listener,v=g;break}if(v<0)return this;v===0?_.shift():y(_,v),_.length===1&&(p[h]=_[0]),p.removeListener!==void 0&&this.emit("removeListener",h,A||d);}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(h){var d,_,p;if(_=this._events,_===void 0)return this;if(_.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_[h]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _[h]),this;if(arguments.length===0){var v=Object.keys(_),g;for(p=0;p<v.length;++p)g=v[p],g!=="removeListener"&&this.removeAllListeners(g);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(d=_[h],typeof d=="function")this.removeListener(h,d);else if(d!==void 0)for(p=d.length-1;p>=0;p--)this.removeListener(h,d[p]);return this};function L(u,h,d){var _=u._events;if(_===void 0)return [];var p=_[h];return p===void 0?[]:typeof p=="function"?d?[p.listener||p]:[p]:d?w(p):m(p,p.length)}r.prototype.listeners=function(h){return L(this,h,true)},r.prototype.rawListeners=function(h){return L(this,h,false)},r.listenerCount=function(u,h){return typeof u.listenerCount=="function"?u.listenerCount(h):R.call(u,h)},r.prototype.listenerCount=R;function R(u){var h=this._events;if(h!==void 0){var d=h[u];if(typeof d=="function")return 1;if(d!==void 0)return d.length}return 0}r.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function m(u,h){for(var d=new Array(h),_=0;_<h;++_)d[_]=u[_];return d}function y(u,h){for(;h+1<u.length;h++)u[h]=u[h+1];u.pop();}function w(u){for(var h=new Array(u.length),d=0;d<h.length;++d)h[d]=u[d].listener||u[d];return h}function T(u,h){return new Promise(function(d,_){function p(g){u.removeListener(h,v),_(g);}function v(){typeof u.removeListener=="function"&&u.removeListener("error",p),d([].slice.call(arguments));}ye(u,h,v,{once:true}),h!=="error"&&G(u,p,{once:true});})}function G(u,h,d){typeof u.on=="function"&&ye(u,"error",h,d);}function ye(u,h,d,_){if(typeof u.on=="function")_.once?u.once(h,d):u.on(h,d);else if(typeof u.addEventListener=="function")u.addEventListener(h,function p(v){_.once&&u.removeEventListener(h,p),d(v);});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof u)}return Z$5.exports}var et$7=Ze$6(),qe$5=Qe$6(et$7),b$6=(function(n){return n[n.timeout=1]="timeout",n[n.transportClosed=2]="transportClosed",n[n.clientDisconnected=3]="clientDisconnected",n[n.clientClosed=4]="clientClosed",n[n.clientConnectToken=5]="clientConnectToken",n[n.clientRefreshToken=6]="clientRefreshToken",n[n.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",n[n.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",n[n.subscriptionRefreshToken=9]="subscriptionRefreshToken",n[n.transportWriteError=10]="transportWriteError",n[n.connectionClosed=11]="connectionClosed",n[n.badConfiguration=12]="badConfiguration",n[n.subscriptionGetState=13]="subscriptionGetState",n[n.sharedPollGetSignature=14]="sharedPollGetSignature",n})(b$6||{}
155),M$a=(function(n){return n[n.connectCalled=0]="connectCalled",n[n.transportClosed=1]="transportClosed",n[n.noPing=2]="noPing",n[n.subscribeTimeout=3]="subscribeTimeout",n[n.unsubscribeError=4]="unsubscribeError",n})(M$a||{}),H$8=(function(n){return n[n.disconnectCalled=0]="disconnectCalled",n[n.unauthorized=1]="unauthorized",n[n.badProtocol=2]="badProtocol",n[n.messageSizeLimit=3]="messageSizeLimit",n[n.stateInvalidated=3014]="stateInvalidated",n})(H$8||{}),be$7=(function(n){return n[n.subscribeCalled=0]="subscribeCalled",n[n.transportClosed=1]="transportClosed",n})(be$7||{}),te$a=(function(n){return n[n.unsubscribeCalled=0]="unsubscribeCalled",n[n.unauthorized=1]="unauthorized",n[n.clientClosed=2]="clientClosed",n[n.stateInvalidated=2502]="stateInvalidated",n})(te$a||{}),ee$8=(function(n){return n[n.channelCompaction=1]="channelCompaction",n[n.rejectUnrecovered=2]="rejectUnrecovered",n})(ee$8||{}),k$6=(function(n){return n.Disconnected="disconnected",n.Connecting="connecting",n.Connected="connected",n})(k$6||{}),x$a=(function(n){return n.Unsubscribed="unsubscribed",n.Subscribing="subscribing",n.Subscribed="subscribed",n})(x$a||{});function tt$7(n,t){return n.lastIndexOf(t,0)===0}function Ge$8(n){return n==null?false:typeof n=="function"}function st$6(n,t){if(globalThis.console){let e=globalThis.console[n];Ge$8(e)&&e.apply(globalThis.console,t);}}function it$5(n,t){return Math.floor(Math.random()*(t-n+1)+n)}function B$7(n,t,e){n>31&&(n=31);let s=it$5(0,Math.min(e,t*Math.pow(2,n)));return Math.min(e,t+s)}function rt$3(n){return "error"in n&&n.error!==null}function J$c(n){return Math.min(n*1e3,2147483647)}var O$8=(function(n){return n[n.Live=0]="Live",n[n.Stream=1]="Stream",n[n.State=2]="State",n})(O$8||{}),$$5=class $ extends qe$5{constructor(t,e,s){super(),this._resubscribeTimeout=null,this._refreshTimeout=null,this._getState=null,this._map=false,this._mapPresenceType=1,this._mapPhase=null,this._mapStateBuffer=[],this._mapStreamBuffer=[],this._mapCursor="",this._mapPageSize=0,this._mapUnrecoverableStrategy="from_scratch",this._debounceMs=0,this._debouncePending=new Map,this._sharedPoll=false,this._sharedPollEpoch="",this._sharedPollTrackedItems=new Map,this._sharedPollGetSignature=null,this._sharedPollSignatureRefreshTimeout=null,this._sharedPollSignatureRefreshAttempts=0,this._sharedPollTrackRetryTimeout=null,this._sharedPollTrackRetryAttempts=0,this._sharedPollReplayRetryTimeout=null,this._sharedPollReplayRetryAttempts=0,this._sharedPollSignatures=[],this._sharedPollSignatureRefreshTargetMs=null,this._sharedPollSignatureRefreshInFlight=false,this.channel=e,this.state=x$a.Unsubscribed,this._centrifuge=t,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=false,this._offset=null,this._epoch=null,this._id=0,this._recoverable=false,this._positioned=false,this._joinLeave=false,this._minResubscribeDelay=500,this._maxResubscribeDelay=2e4,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=false,this._refreshTimeout=null,this._delta="",this._delta_negotiated=false,this._tagsFilter=null,this._prevValueMap=new Map,this._unsubPromise=Promise.resolve(),this._deltaNumPubs=0,this._deltaNumFull=0,this._deltaNumDelta=0,this._deltaBytesReceived=0,this._deltaBytesDecoded=0,this._setOptions(s),this.type=this._sharedPoll?"shared_poll":this._map?"map":"stream",this._centrifuge._debugEnabled?(this.on("state",i=>{this._debug("subscription state",e,i.oldState,"->",i.newState);}),this.on("error",i=>{this._debug("subscription error",e,i);})):this.on("error",function(){Function.prototype();});}ready(t){return this.state===x$a.Unsubscribed?Promise.reject({code:b$6.subscriptionUnsubscribed,message:this.state}):this.state===x$a.Subscribed?Promise.resolve():new Promise((e,s)=>{let i={resolve:e,reject:s};t&&(i.timeout=setTimeout(function(){s({code:b$6.timeout,message:"timeout"});},t)),this._promises[this._nextPromiseId()]=i;})}subscribe(){this._isSubscribed()||(this._resubscribeAttempts=0,this._setSubscribing(be$7.subscribeCalled,"subscribe called"));}unsubscribe(){this._unsubPromise=this._setUnsubscribed(te$a.unsubscribeCalled,"unsubscribe called",true);}_debouncedPublish(t,e,s){let i=this._debouncePending.get(t);if(i)return i.data=e,i.dirty=true,Promise.resolve({});let r={data:e,dirty:false,timer:null};return r.timer=setTimeout(()=>{let a=this._debouncePending.get(t);if(!a||!a.dirty){this._debouncePending.delete(t);return}a.dirty=false;let c=a.data;(s?this._centrifuge.mapPublish(this.channel,t,c):this._centrifuge.publish(this.channel,c)).catch(()=>{}),a.timer=setTimeout(()=>{let f=this._debouncePending.get(t);if(!f||!f.dirty){this._debouncePending.delete(t);return}this._debouncePending.delete(t),this._debouncedPublish(t,f.data,s);},this._debounceMs);},this._debounceMs),this._debouncePending.set(t,r),s?this._centrifuge.mapPublish(this.channel,t,e):this._centrifuge.publish(this.channel,e)}_cancelDebounce(t){let e=this._debouncePending.get(t);e&&(clearTimeout(e.timer),this._debouncePending.delete(t));}_cancelAllDebounce(){for(let[,t]of this._debouncePending)clearTimeout(t.timer);this._debouncePending.clear();}presence(){return P$b(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return P$b(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}setTagsFilter(t){if(t&&this._delta)throw new Error("cannot use delta and tagsFilter together");this._tagsFilter=t,this._map&&(this._recover=false,this._offset=null,this._epoch=null);}setData(t){this._data=t;}deltaStats(){let t=this._deltaBytesDecoded;return {numPublications:this._deltaNumPubs,numFullPayloads:this._deltaNumFull,numDeltaPayloads:this._deltaNumDelta,bytesReceived:this._deltaBytesReceived,bytesDecoded:t,compressionRatio:t>0?1-this._deltaBytesReceived/t:0}}_methodCall(){return this._isSubscribed()?Promise.resolve():this._isUnsubscribed()?Promise.reject({code:b$6.subscriptionUnsubscribed,message:this.state}):new Promise((t,e)=>{let s=this._centrifuge._config.timeout,i=setTimeout(()=>{e({code:b$6.timeout,message:"timeout"});},s);this._promises[this._nextPromiseId()]={timeout:i,resolve:t,reject:e};})}_nextPromiseId(){return ++this._promiseId}_needRecover(){return this._recover===true}_isUnsubscribed(){return this.state===x$a.Unsubscribed}_isSubscribing(){return this.state===x$a.Subscribing}_isSubscribed(){return this.state===x$a.Subscribed}_setState(t){if(this.state!==t){let e=this.state;
155return this.state=t,this.emit("state",{newState:t,oldState:e,channel:this.channel}),true}return  false}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout();}_clearSubscribedState(){this._clearRefreshTimeout(),this._clearSharedPollSignatureRefresh(),this._clearSharedPollTrackRetry(),this._clearSharedPollReplayRetry(),this._sharedPollSignatureRefreshTargetMs=null,this._sharedPollSignatureRefreshInFlight=false;}_invalidateState(){this._token="",this._prevValueMap=new Map,this._map?(this._offset=null,this._epoch=null,this._recover=false,this._mapStateBuffer=[],this._mapStreamBuffer=[],this._mapCursor="",this._mapPhase=null):(this._offset=0,this._epoch="_");}_setSubscribed(t){if(!this._isSubscribing())return;if(this._clearSubscribingState(),t.id&&(this._id=t.id),t.recoverable&&(this._recover=true,this._offset=t.offset||0,this._epoch=t.epoch||""),t.delta?this._delta_negotiated=true:this._delta_negotiated=false,t.publish_debounce&&(this._debounceMs=t.publish_debounce),this._sharedPoll){let i=t.epoch||"";if(this._sharedPollEpoch!==""&&this._sharedPollEpoch!==i)for(let r of this._sharedPollTrackedItems.keys())this._sharedPollTrackedItems.set(r,0);this._sharedPollEpoch=i;}this._setState(x$a.Subscribed);let e=this._centrifuge._getSubscribeContext(this.channel,t);this.emit("subscribed",e),this._resolvePromises();let s=t.publications;if(s&&s.length>0)for(let i in s)s.hasOwnProperty(i)&&this._handlePublication(s[i]);t.expires===true&&(this._refreshTimeout=setTimeout(()=>this._refresh(),J$c(t.ttl)));}_setSubscribing(t,e){return P$b(this,void 0,void 0,function*(){this._isSubscribing()||(this._isSubscribed()&&this._clearSubscribedState(),this._id=0,this._setState(x$a.Subscribing)&&this.emit("subscribing",{channel:this.channel,code:t,reason:e}),this._centrifuge._transport&&this._centrifuge._transport.emulation()&&(yield this._unsubPromise),this._isSubscribing()&&this._subscribe());})}_subscribe(){return this._debug("subscribing on",this.channel),this._isTransportOpen()?this._inflight?null:(this._inflight=true,this._map?(this._mapSubscribe(),null):this._getState&&this._offset===null?(this._loadStreamState(),null):this._canSubscribeWithoutGettingToken()?this._subscribeWithoutToken():(this._getSubscriptionToken().then(t=>this._handleTokenResponse(t)).catch(t=>this._handleTokenError(t)),null)):(this._debug("delay subscribe on",this.channel,"till connected"),null)}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return !this._usesToken()||!!this._token}_subscribeWithoutToken(){return this._getData?(this._getDataAndSubscribe(this._token),null):this._sendSubscribe(this._token)}_loadStreamState(){if(!this._isSubscribing()){this._inflight=false;return}this._getState().then(t=>{if(!this._isSubscribing()){this._inflight=false;return}this._offset=t.offset,this._epoch=t.epoch,this._recover=true,this._canSubscribeWithoutGettingToken()?this._subscribeWithoutToken():this._getSubscriptionToken().then(e=>this._handleTokenResponse(e)).catch(e=>this._handleTokenError(e));}).catch(t=>{if(!this._isSubscribing()){this._inflight=false;return}this._inflight=false,this._subscribeError({code:b$6.subscriptionGetState,message:t?.toString()||"getState failed",temporary:true});});}_getDataAndSubscribe(t){if(!this._getData){this._inflight=false;return}this._getData({channel:this.channel}).then(e=>{if(!this._isSubscribing()){this._inflight=false;return}this._data=e,this._sendSubscribe(t);}).catch(e=>this._handleGetDataError(e));}_handleGetDataError(t){if(!this._isSubscribing()){this._inflight=false;return}if(t instanceof D$d){this._inflight=false,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:b$6.badConfiguration,message:t?.toString()||""}}),this._inflight=false,this._scheduleResubscribe();}_handleTokenResponse(t){if(!this._isSubscribing()){this._inflight=false;return}if(!t){this._inflight=false,this._failUnauthorized();return}this._token=t,this._getData?this._getDataAndSubscribe(t):this._sendSubscribe(t);}_handleTokenError(t){if(!this._isSubscribing()){this._inflight=false;return}if(t instanceof D$d){this._inflight=false,this._failUnauthorized();return}
155this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:b$6.subscriptionSubscribeToken,message:t?.toString()||""}}),this._inflight=false,this._scheduleResubscribe();}_sendSubscribe(t){if(!this._isTransportOpen())return this._inflight=false,null;let e=this._buildSubscribeCommand(t);return this._centrifuge._call(e).then(s=>{this._inflight=false;let i=s.reply.subscribe;this._handleSubscribeResponse(i),s.next&&s.next();},s=>{this._inflight=false,this._handleSubscribeError(s.error),s.next&&s.next();}),e}_buildSubscribeCommand(t){let e={channel:this.channel};if(t&&(e.token=t),this._data&&(e.data=this._data),this._sharedPoll)return e.type=4,this._delta&&(e.delta=this._delta),{subscribe:e};if(this._positioned&&(e.positioned=true),this._recoverable&&(e.recoverable=true),this._joinLeave&&(e.join_leave=true),e.flag=ee$8.channelCompaction,this._getState&&(e.flag|=ee$8.rejectUnrecovered),this._needRecover()){e.recover=true;let s=this._getOffset();s&&(e.offset=s);let i=this._getEpoch();i&&(e.epoch=i);}return this._delta&&(e.delta=this._delta),this._tagsFilter&&(e.tf=this._tagsFilter),{subscribe:e}}_debug(...t){this._centrifuge._debug(...t);}_handleSubscribeError(t){if(this._isSubscribing()){if(t.code===b$6.timeout){this._centrifuge._disconnect(M$a.subscribeTimeout,"subscribe timeout",true);return}if(t.code===112&&this._getState){this._offset=null,this._epoch=null,this._recover=false,this._prevValueMap=new Map,this._scheduleResubscribe();return}this._subscribeError(t);}}_handleSubscribeResponse(t){this._isSubscribing()&&(this._setSubscribed(t),this._sharedPoll&&this._sharedPollReplayTrack());}_setUnsubscribed(t,e,s){if(this._isUnsubscribed())return Promise.resolve();let i=Promise.resolve();return this._isSubscribed()?(s&&(i=this._centrifuge._unsubscribe(this)),this._clearSubscribedState()):this._isSubscribing()&&(this._inflight&&s&&(i=this._centrifuge._unsubscribe(this)),this._clearSubscribingState()),this._inflight=false,this._id=0,this._sharedPollEpoch="",this._sharedPollSignatures=[],this._sharedPollTrackedItems.clear(),this._sharedPollSignatureRefreshInFlight=false,this._sharedPollSignatureRefreshTargetMs=null,this._cancelAllDebounce(),this._setState(x$a.Unsubscribed)&&this.emit("unsubscribed",{channel:this.channel,code:t,reason:e}),this._rejectPromises({code:b$6.subscriptionUnsubscribed,message:this.state}),i}_handlePublication(t){if(this._delta&&this._delta_negotiated){let s=(this._map||this._sharedPoll)&&t.key||"",{newData:i,newPrevValue:r,isDelta:o,wireBytes:a,fullBytes:c}=this._centrifuge._codec.applyDeltaIfNeeded(t,this._prevValueMap.get(s));t.data=i,this._deltaNumPubs++,this._deltaBytesReceived+=a,this._deltaBytesDecoded+=c,o?this._deltaNumDelta++:this._deltaNumFull++,t.removed?this._prevValueMap.delete(s):this._prevValueMap.set(s,r);}let e;if(this._sharedPoll){if(t.key&&!this._sharedPollTrackedItems.has(t.key))return;t.key&&(t.removed?this._sharedPollTrackedItems.delete(t.key):t.version&&this._sharedPollTrackedItems.set(t.key,t.version)),e=this._getSharedPollUpdateContext(t);}else this._map?e=this._getMapUpdateContext(t):e=this._centrifuge._getPublicationContext(this.channel,t);this.emit("publication",e),(this._map||this._sharedPoll)&&this.emit("update",e),t.offset&&(this._offset=t.offset),t.epoch&&(this._epoch=t.epoch);}_seedDeltaTracking(t){if(!(!this._delta||!t.key)){if(typeof t.data=="string"){let e=t.data;t.removed?this._prevValueMap.delete(t.key):this._prevValueMap.set(t.key,new TextEncoder().encode(e));let s=e.length;this._deltaNumPubs++,this._deltaNumFull++,this._deltaBytesReceived+=s,this._deltaBytesDecoded+=s,t.data=JSON.parse(e);}else if(t.data instanceof Uint8Array){t.removed?this._prevValueMap.delete(t.key):this._prevValueMap.set(t.key,t.data);let e=t.data.length;this._deltaNumPubs++,this._deltaNumFull++,this._deltaBytesReceived+=e,this._deltaBytesDecoded+=e;}}}_handleJoin(t){let e=this._centrifuge._getJoinLeaveContext(t.info);this.emit("join",{channel:this.channel,info:e});}_handleLeave(t){let e=this._centrifuge._getJoinLeaveContext(t.info);this.emit("leave",{channel:this.channel,info:e});}_resolvePromises(){for(let t in this._promises)this._promises.hasOwnProperty(t)&&(this._promises[t].timeout&&clearTimeout(this._promises[t].timeout),this._promises[t].resolve(),delete this._promises[t]);}_rejectPromises(t){for(let e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].reject(t),delete this._promises[e]);}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}let t=this,e=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){t._isSubscribing()&&t._subscribe();},e),this._debug("resubscribe scheduled after "+e,this.channel);}_subscribeError(t){if(this._isSubscribing())if(t.code<100||t.code===109||t.temporary===true){t.code===109&&(this._token="");let e={channel:this.channel,type:"subscribe",error:t};
155this._centrifuge.state===k$6.Connected&&this.emit("error",e),this._scheduleResubscribe();}else this._setUnsubscribed(t.code,t.message,false);}_getResubscribeDelay(){let t=B$7(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,t}_setOptions(t){if(t){if(t.since&&(this._offset=t.since.offset||0,this._epoch=t.since.epoch||"",this._recover=true),t.data&&(this._data=t.data),t.getData&&(this._getData=t.getData),t.minResubscribeDelay!==void 0&&(this._minResubscribeDelay=t.minResubscribeDelay),t.maxResubscribeDelay!==void 0&&(this._maxResubscribeDelay=t.maxResubscribeDelay),t.token&&(this._token=t.token),t.getToken&&(this._getToken=t.getToken),t.positioned===true&&(this._positioned=true),t.recoverable===true&&(this._recoverable=true),t.joinLeave===true&&(this._joinLeave=true),t.delta){if(t.delta!=="fossil")throw new Error("unsupported delta format");this._delta=t.delta;}if(t.tagsFilter&&(this._tagsFilter=t.tagsFilter),this._tagsFilter&&this._delta)throw new Error("cannot use delta and tagsFilter together");t.getState&&(this._getState=t.getState,this._recover=true),t.map===true&&(this._map=true),t.mapPageSize!==void 0&&(this._mapPageSize=t.mapPageSize),t.mapPresenceType!==void 0&&(this._mapPresenceType=t.mapPresenceType,this._map=true),t.mapUnrecoverableStrategy&&(this._mapUnrecoverableStrategy=t.mapUnrecoverableStrategy),t.sharedPoll===true&&(this._sharedPoll=true),t.sharedPollGetSignature&&(this._sharedPollGetSignature=t.sharedPollGetSignature);}}_getOffset(){let t=this._offset;return t!==null?t:0}_getEpoch(){let t=this._epoch;return t!==null?t:""}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);}_clearResubscribeTimeout(){this._resubscribeTimeout!==null&&(clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null);}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);let t={channel:this.channel},e=this._getToken;
155return e===null?(this.emit("error",{type:"configuration",channel:this.channel,error:{code:b$6.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new D$d(""))):e(t)}_refresh(){this._clearRefreshTimeout();let t=this;this._getSubscriptionToken().then(function(e){if(!t._isSubscribed())return;if(!e){t._failUnauthorized();return}t._token=e;let i={sub_refresh:{channel:t.channel,token:e}};t._centrifuge._call(i).then(r=>{let o=r.reply.sub_refresh;t._refreshResponse(o),r.next&&r.next();},r=>{t._refreshError(r.error),r.next&&r.next();});}).catch(function(e){if(e instanceof D$d){t._failUnauthorized();return}t.emit("error",{type:"refreshToken",channel:t.channel,error:{code:b$6.subscriptionRefreshToken,message:e!==void 0?e.toString():""}}),t._refreshTimeout=setTimeout(()=>t._refresh(),t._getRefreshRetryDelay());});}_refreshResponse(t){this._isSubscribed()&&(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),t.expires===true&&(this._refreshTimeout=setTimeout(()=>this._refresh(),J$c(t.ttl))));}_refreshError(t){this._isSubscribed()&&(t.code<100||t.temporary===true?(this.emit
155("error",{type:"refresh",channel:this.channel,error:t}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._setUnsubscribed(t.code,t.message,true));}_getRefreshRetryDelay(){return B$7(0,1e4,2e4)}_failUnauthorized(){this._setUnsubscribed(te$a.unauthorized,"unauthorized",true);}_sendTrackRequest(t,e){if(t.length===0)return Promise.resolve();let s=6e4,i=[],r=[],o=100;if(e&&e.length>0)for(let c of e)o+=c.length+4;for(let c of t){let l=100;for(let f of c.items)l+=f.key.length+16;r.length>0&&o+l>s&&(i.push(r),r=[],o=100),r.push(c),o+=l;}r.length>0&&i.push(r);let a=(c,l)=>new Promise((f,S)=>{let L={channel:this.channel,type:1,track:c.map(m=>({signature:m.signature,items:m.items.map(y=>y.version>0?y:{key:y.key})}))};l&&l.length>0&&(L.untrack=l);let R={sub_refresh:L};this._centrifuge._call(R).then(m=>{this._handleTrackResponse(m.reply.sub_refresh),m.next&&m.next(),f();},m=>{m.next&&m.next(),S(m.error);});});return i.reduce((c,l,f)=>c.then(()=>a(l,f===0?e:void 0)),Promise.resolve())}_sendUntrackRequest(t){return new Promise((e,s)=>{let r={sub_refresh:{channel:this.channel,type:2,untrack:t}};this._centrifuge._call(r).then(o=>{o.next&&o.next(),e();},o=>{o.next&&o.next(),s(o.error);});})}_handleTrackResponse(t){if(this._clearSharedPollTrackRetry(),t&&t.items&&t.items.length>0)for(let e of t.items)this._handlePublication(e);if(t&&t.expires===true&&t.ttl>0){let e=Date.now()+t.ttl*1e3;this._maybeScheduleSharedPollSignatureRefresh(e);}}_maybeScheduleSharedPollSignatureRefresh(t){if(t===null){this._sharedPollSignatureRefreshTargetMs=null,this._clearSharedPollSignatureRefresh();return}this._isSubscribed()&&(this._sharedPollSignatureRefreshTargetMs!==null&&t>=this._sharedPollSignatureRefreshTargetMs||(this._sharedPollSignatureRefreshTargetMs=t,this._clearSharedPollSignatureRefresh(),this._sharedPollSignatureRefreshTimeout=setTimeout(()=>this._sharedPollRefreshSignature(),Math.max(0,t-Date.now()))));}_clearSharedPollSignatureRefresh(){this._sharedPollSignatureRefreshTimeout!==null&&(clearTimeout(this._sharedPollSignatureRefreshTimeout),this._sharedPollSignatureRefreshTimeout=null),this._sharedPollSignatureRefreshAttempts=0;}_clearSharedPollTrackRetry(){this._sharedPollTrackRetryTimeout!==null&&(clearTimeout(this._sharedPollTrackRetryTimeout),this._sharedPollTrackRetryTimeout=null),this._sharedPollTrackRetryAttempts=0;}_clearSharedPollReplayRetry(){this._sharedPollReplayRetryTimeout!==null&&(clearTimeout(this._sharedPollReplayRetryTimeout),this._sharedPollReplayRetryTimeout=null),this._sharedPollReplayRetryAttempts=0;}_handleTrackError(t){if(this._isSubscribed()){if(this.emit("error",{type:"track",channel:this.channel,error:t}),t.code===109){this._sharedPollRefreshSignature();return}(t.code<100||t.temporary===true)&&(this._sharedPollTrackRetryTimeout=setTimeout(()=>this._sharedPollReplayTrack(),B$7(this._sharedPollTrackRetryAttempts++,1e3,15e3)));}}_sharedPollRefreshSignature(){if(this._clearSharedPollSignatureRefresh(),!this._isSubscribed()||!this._sharedPollGetSignature||this._sharedPollTrackedItems.size===0||this._sharedPollSignatureRefreshInFlight)return;this._sharedPollSignatureRefreshTargetMs=null,this._sharedPollSignatureRefreshInFlight=true;let t=Array.from(this._sharedPollTrackedItems.keys()),e=this;this._sharedPollGetSignature({keys:t}).then(s=>{if(e._sharedPollSignatureRefreshInFlight=false,!e._isSubscribed())return;e._sharedPollSignatureRefreshAttempts=0;let i=new Set(s.keys),r=[];for(let l of t)i.has(l)||(e._sharedPollTrackedItems.delete(l),r.push(l),e.emit("update",{channel:e.channel,key:l,data:null,removed:true}));r.length>0&&e._sendUntrackRequest(r).catch(l=>{e.emit("error",{type:"untrack",channel:e.channel,error:l});});let o=[];for(let l of s.keys){let f=e._sharedPollTrackedItems.get(l);f!==void 0&&o.push({key:l,version:f});}let a=new Set(s.keys),c=e._sharedPollSignatures.filter(l=>l.keys.some(f=>e._sharedPollTrackedItems.has(f)&&!a.has(f)));e._sharedPollSignatures=o.length>0?[{keys:s.keys,signature:s.signature},...c]:c,o.length!==0&&e._sendTrackRequest([{items:o,signature:s.signature}]).catch(l=>{e._handleTrackError(l);});}).catch(s=>
155{e._sharedPollSignatureRefreshInFlight=false,e.emit("error",{type:"signatureRefresh",channel:e.channel,error:{code:b$6.sharedPollGetSignature,message:s!==void 0?s.toString():""}}),e._sharedPollSignatureRefreshTimeout=setTimeout(()=>e._sharedPollRefreshSignature(),B$7(e._sharedPollSignatureRefreshAttempts++,5e3,3e4));});}_sharedPollReplayTrack(){if(!this._isSubscribed()||this._sharedPollTrackedItems.size===0&&this._sharedPollSignatures.length===0)return;let t=new Set,e=[],s=[];for(let o of this._sharedPollSignatures){let a=o.keys.map(c=>{var l;return {key:c,version:(l=this._sharedPollTrackedItems.get(c))!==null&&l!==void 0?l:0}});e.push({items:a,signature:o.signature});for(let c of o.keys)this._sharedPollTrackedItems.has(c)?t.add(c):s.push(c);}e.length>0&&this._sendTrackRequest(e,s).catch(o=>{this._handleTrackError(o);});let i=[];for(let o of this._sharedPollTrackedItems.keys())t.has(o)||i.push(o);if(i.length===0)return;if(!this._sharedPollGetSignature){this.emit("error",{type:"track",channel:this.channel,error:{code:b$6.sharedPollGetSignature,message:"getSignature callback required for tracked keys without an explicit signature"}});return}let r=this;this._sharedPollGetSignature({keys:i}).then(o=>{if(!r._isSubscribed())return;r._clearSharedPollReplayRetry();let a=new Set(o.keys),c=[];for(let f of i)a.has(f)||(r._sharedPollTrackedItems.delete(f),c.push(f),r.emit("update",{channel:r.channel,key:f,data:null,removed:true}));c.length>0&&r._sendUntrackRequest(c).catch(f=>{r.emit("error",{type:"untrack",channel:r.channel,error:f});});let l=[];for(let f of o.keys){let S=r._sharedPollTrackedItems.get(f);S!==void 0&&l.push({key:f,version:S});}l.length!==0&&(r._sharedPollSignatures.push({keys:o.keys,signature:o.signature}),r._sendTrackRequest([{items:l,signature:o.signature}]).catch(f=>{r._handleTrackError(f);}));}).catch(o=>{r.emit("error",{type:"signatureRefresh",channel:r.channel,error:{code:b$6.sharedPollGetSignature,message:o!==void 0?o.toString():""}}),r._sharedPollReplayRetryTimeout=setTimeout(()=>r._sharedPollReplayTrack(),B$7(r._sharedPollReplayRetryAttempts++,5e3,3e4));});}_mapSubscribe(){if(this._debug("starting map subscribe on",this.channel),this._mapStateBuffer=[],this._mapStreamBuffer=[],this._mapCursor="",this._recover&&this._offset!==null&&this._epoch!==null||(this._prevValueMap=new Map),this._mapPhase=O$8.State,this._recover&&this._offset!==null&&this._epoch!==null){this._debug("map subscribe: recovering from position, skipping to stream phase"),this._mapPhase=O$8.Stream,this._fetchStream();return}this._canSubscribeWithoutGettingToken()?this._fetchSnapshot():this._getSubscriptionToken().then(t=>{if(!this._isSubscribing()){this._inflight=false;return}if(!t){this._inflight=false,this._failUnauthorized();return}this._token=t,this._fetchSnapshot();}).catch(t=>this._handleTokenError(t));}_fetchSnapshot(t){if(!this._isSubscribing()||!this._isTransportOpen()){this._inflight=false;return}let e=this._buildMapSubscribeCommand(O$8.State,t);this._debug("map subscribe: fetching snapshot page",t?`cursor=${t}`:"initial"),this._centrifuge._call(e).then(s=>{let i=s.reply.subscribe;this._handleMapStateResponse(i),s.next&&s.next();},s=>{this._handleMapSubscribeError(s.error),s.next&&s.next();});}_handleMapStateResponse(t){if(!this._isSubscribing()){this._inflight=false;return}if(!t.phase){this._debug("map subscribe: server forced LIVE transition during state pagination"),this._handleMapLiveResponse(t);return}if(!this._epoch&&t.epoch&&(this._epoch=t.epoch,this._offset=t.offset||0),this._epoch&&t.epoch&&this._epoch!==t.epoch){this._debug("map subscribe: epoch changed during snapshot pagination, restarting"),this._mapStateBuffer=[],this._mapCursor="",this._epoch=null,this._offset=null,this._prevValueMap=new Map,this._fetchSnapshot();return}if(t.state&&t.state.length>0)for(let e of t.state)this._seedDeltaTracking(e),this._mapStateBuffer.push(this._getMapUpdateContext(e));if(t.cursor){this._mapCursor=t.cursor,this._fetchSnapshot(this._mapCursor);return}this._transitionFromSnapshot();}_transitionFromSnapshot(){this._debug("map subscribe: snapshot complete, transitioning to stream phase"),this._mapPhase=O$8.Stream,this._fetchStream();}_fetchStream(){if(!this._isSubscribing()||!this._isTransportOpen()){this._inflight=false;return}let t=this._buildMapSubscribeCommand(O$8.Stream);this._debug("map subscribe: fetching stream from offset",this._offset),this._centrifuge._call(t).then(e=>{let s=e.reply.subscribe;this._handleMapStreamResponse(s),e.next&&e.next();},e=>
155{this._handleMapSubscribeError(e.error),e.next&&e.next();});}_handleMapStreamResponse(t){if(!this._isSubscribing()){this._inflight=false;return}if(!t.phase){this._debug("map subscribe: server forced LIVE transition during stream"),this._handleMapLiveResponse(t);return}if(this._epoch&&t.epoch&&this._epoch!==t.epoch){this._debug("map subscribe: epoch changed during stream, restarting"),this._mapStateBuffer=[],this._mapStreamBuffer=[],this._epoch=null,this._offset=null,this._prevValueMap=new Map,this._mapPhase=O$8.State,this._fetchSnapshot();return}if(t.publications&&t.publications.length>0)for(let e of t.publications)this._seedDeltaTracking(e),this._mapStreamBuffer.push(this._getMapUpdateContext(e));t.offset!==void 0&&(this._offset=t.offset),this._fetchStream();}_handleMapLiveResponse(t){if(!this._isSubscribing()){this._inflight=false;return}if(this._inflight=false,this._epoch&&t.epoch&&this._epoch!==t.epoch){this._debug("map subscribe: epoch changed during live transition, restarting"),this._mapStateBuffer=[],this._mapStreamBuffer=[],this._epoch=null,this._offset=null,this._prevValueMap=new Map,this._inflight=true,this._mapPhase=O$8.State,this._fetchSnapshot();return}if(t.state&&t.state.length>0)for(let s of t.state)this._seedDeltaTracking(s),this._mapStateBuffer.push(this._getMapUpdateContext(s));if(t.publications&&t.publications.length>0)for(let s of t.publications){if(this._delta&&t.delta){let i=s.key||"",{newData:r,newPrevValue:o,isDelta:a,wireBytes:c,fullBytes:l}=this._centrifuge._codec.applyDeltaIfNeeded(s,this._prevValueMap.get(i));s.data=r,this._deltaNumPubs++,this._deltaBytesReceived+=c,this._deltaBytesDecoded+=l,a?this._deltaNumDelta++:this._deltaNumFull++,s.removed?this._prevValueMap.delete(i):this._prevValueMap.set(i,o);}else this._delta&&s.key&&(s.removed?this._prevValueMap.delete(s.key):this._prevValueMap.set(s.key,s.data));this._mapStreamBuffer.push(this._getMapUpdateContext(s));}this._offset=t.offset||0,this._epoch=t.epoch||"",this._clearSubscribingState(),t.id&&(this._id=t.id),this._recover=t.recoverable===true,t.delta?this._delta_negotiated=true:this._delta_negotiated=false,t.publish_debounce&&(this._debounceMs=t.publish_debounce),this._setState(x$a.Subscribed);let e=this._centrifuge._getSubscribeContext(this.channel,t);if(e.state=this._mapStateBuffer,this.emit("subscribed",e),this._resolvePromises(),!e.recovered){if(this._mapStreamBuffer.length>0){let s=new Map;for(let i of this._mapStateBuffer)s.set(i.key,i);for(let i of this._mapStreamBuffer)i.removed?s.delete(i.key):s.set(i.key,i);this._mapStateBuffer=Array.from(s.values()),this._mapStreamBuffer=[];}this.emit("sync",{entries:this._mapStateBuffer});}for(let s of this._mapStreamBuffer)this.emit("publication",s),this.emit("update",s);this._mapStateBuffer=[],this._mapStreamBuffer=[],this._mapPhase=null,t.expires===true&&(this._refreshTimeout=setTimeout(()=>this._refresh(),J$c(t.ttl)));}_handleMapSubscribeError(t){if(this._inflight=false,!!this._isSubscribing()){if(t.code===b$6.timeout){this._centrifuge._disconnect(M$a.subscribeTimeout,"subscribe timeout",true);return}if(this._mapStateBuffer=[],this._mapStreamBuffer=[],this._mapPhase=null,this._prevValueMap=new Map,t.code===112&&this._mapUnrecoverableStrategy==="from_scratch"){this._debug("map subscribe: unrecoverable position, restarting from scratch"),this._offset=null,this._epoch=null,this._recover=false,this._scheduleResubscribe();return}this._subscribeError(t);}}_buildMapSubscribeCommand(t,e){let s={channel:this.channel,type:this._mapPresenceType||1,phase:t};return this._token&&(s.token=this._token),this._tagsFilter&&(s.tf=this._tagsFilter),this._delta&&(s.delta=this._delta),s.flag=ee$8.channelCompaction,t===O$8.State&&(this._mapPageSize>0&&(s.limit=this._mapPageSize),e&&(s.cursor=e),this._epoch?(s.offset=this._offset,s.epoch=this._epoch):this._data&&(s.data=this._data)),t===O$8.Stream&&(this._mapPageSize>0&&(s.limit=this._mapPageSize),s.offset=this._offset,s.epoch=this._epoch,this._recover&&(s.recover=true,this._mapStreamBuffer.length===0&&this._data&&(s.data=this._data))),{subscribe:s}}_getMapUpdateContext(t){let e={channel:this.channel,data:t.data,key:t.key||""};return t.removed===true&&(e.removed=true),t.offset!==void 0&&(e.offset=t.offset),t.info&&(e.info=this._centrifuge._getJoinLeaveContext(t.info)),t.tags&&(e.tags=t.tags),e}
155_getSharedPollUpdateContext(t){let e={channel:this.channel,key:t.key||"",data:t.data};return t.removed===true&&(e.removed=true),t.version!==void 0&&(e.version=t.version),e}},le$5=class le extends $$5{publish(t){return P$b(this,void 0,void 0,function*(){return yield this._methodCall(),this._debounceMs>0?this._debouncedPublish("",t,false):this._centrifuge.publish(this.channel,t)})}history(t){return P$b(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,t)})}},Y$9=class Y extends $$5{publish(t,e){return P$b(this,void 0,void 0,function*(){return yield this._methodCall(),this._debounceMs>0?this._debouncedPublish(t,e,true):this._centrifuge.mapPublish(this.channel,t,e)})}remove(t){return P$b(this,void 0,void 0,function*(){return yield this._methodCall(),this._cancelDebounce(t),this._centrifuge.mapRemove(this.channel,t)})}},ue$5=class ue extends $$5{track(t,e){if(t.length===0)return;let s,i=e;typeof t[0]=="string"?s=t.map(a=>({key:a,version:0})):s=t;for(let o of s){let a=this._sharedPollTrackedItems.get(o.key);(a===void 0||o.version>a)&&this._sharedPollTrackedItems.set(o.key,o.version);}if(i!==void 0){this._sharedPollSignatures.push({keys:s.map(o=>o.key),signature:i}),this._isSubscribed()&&this._sendTrackRequest([{items:s,signature:i}]).catch(o=>{this._handleTrackError(o);});return}if(!this._sharedPollGetSignature){this.emit("error",{type:"track",channel:this.channel,error:{code:b$6.sharedPollGetSignature,message:"getSignature callback required for track(keys)"}});return}if(!this._isSubscribed())return;let r=s.map(o=>o.key);this._sharedPollGetSignature({keys:r}).then(o=>{if(!this._isSubscribed())return;let a=new Set(o.keys),c=[];for(let f of r)a.has(f)||(this._sharedPollTrackedItems.delete(f),c.push(f),this.emit("update",{channel:this.channel,key:f,data:null,removed:true}));c.length>0&&this._sendUntrackRequest(c).catch(f=>{this.emit("error",{type:"untrack",channel:this.channel,error:f});});let l=[];for(let f of o.keys){let S=this._sharedPollTrackedItems.get(f);S!==void 0&&l.push({key:f,version:S});}l.length!==0&&(this._sharedPollSignatures.push({keys:o.keys,signature:o.signature}),this._sendTrackRequest([{items:l,signature:o.signature}]).catch(f=>{this._handleTrackError(f);}));}).catch(o=>{this.emit("error",{type:"track",channel:this.channel,error:{code:b$6.sharedPollGetSignature,message:o!==void 0?o.toString():"getSignature failed"}});});}untrack(t){for(let e of t)this._sharedPollTrackedItems.delete(e);this._sharedPollSignatures=this._sharedPollSignatures.filter(e=>e.keys.some(s=>this._sharedPollTrackedItems.has(s))),this._isSubscribed()&&this._sendUntrackRequest(t).catch(e=>{this.emit("error",{type:"untrack",channel:this.channel,error:e});});}trackedKeys(){return new Set(this._sharedPollTrackedItems.keys())}},de$6=class de{constructor(t,e){this.endpoint=t,this.options=e,this._transport=null;}name(){return "sockjs"}subName(){return "sockjs-"+this._transport.transport}emulation(){return  false}supported(){return this.options.sockjs!==null}initialize(t,e){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{e.onOpen();},this._transport.onerror=s=>{e.onError(s);},this._transport.onclose=s=>{e.onClose(s);},this._transport.onmessage=s=>{e.onMessage(s.data);};}close(){this._transport.close();}send(t){this._transport.send(t);}},se$6=class se{constructor(t,e){this.endpoint=t,this.options=e,this._transport=null;}name(){return "websocket"}subName(){return "websocket"}emulation(){return  false}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(t,e){let s="";t==="protobuf"&&(s="centrifuge-protobuf"),s!==""?this._transport=new this.options.websocket(this.endpoint,s):this._transport=new this.options.websocket(this.endpoint),t==="protobuf"&&(this._transport.binaryType="arraybuffer"),this._transport.onopen=()=>{e.onOpen();},this._transport.onerror=i=>{e.onError(i);},this._transport.onclose=i=>{e.onClose(i);},this._transport.onmessage=i=>{e.onMessage(i.data);};}close(){this._transport.close();}send(t){this._transport.send(t);}},fe$7=class fe{constructor(t,e){this.endpoint=t,this.options=e,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json";}name(){return "http_stream"}subName(){return "http_stream"}emulation(){return  true}_handleErrors(t){if(!t.ok)throw new Error(t.status);return t}_fetchEventTarget(t,e,s){let i=new EventTarget,r=t.options.fetch;return r(e,s).then(t._handleErrors).then(o=>{i.dispatchEvent(new Event("open"));let a="",c=0,l=new Uint8Array,f=o.body.getReader();return new t.options.readableStream({start(S){function L(){return f.read().then(({done:R,value:m})=>
155{if(R){i.dispatchEvent(new Event("close")),S.close();return}try{if(t._protocol==="json")for(a+=t._utf8decoder.decode(m);c<a.length;)if(a[c]===`
156`){let y=a.substring(0,c);i.dispatchEvent(new MessageEvent("message",{data:y})),a=a.substring(c+1),c=0;}else ++c;else {let y=new Uint8Array(l.length+m.length);for(y.set(l),y.set(m,l.length),l=y;;){let w=t.options.decoder.decodeReply(l);if(w.ok){let T=l.slice(0,w.pos);i.dispatchEvent(new MessageEvent("message",{data:T})),l=l.slice(w.pos);continue}break}}}catch(y){i.dispatchEvent(new Event("error",{detail:y})),i.dispatchEvent(new Event("close")),S.close();return}L();}).catch(function(R){i.dispatchEvent(new Event("error",{detail:R})),i.dispatchEvent(new Event("close")),S.close();})}return L()}})}).catch(o=>{i.dispatchEvent(new Event("error",{detail:o})),i.dispatchEvent(new Event("close"));}),i}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(t,e,s){this._protocol=t,this._abortController=new AbortController;let i,r;t==="json"?(i={Accept:"application/json","Content-Type":"application/json"},r=s):(i={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},r=s);let o={method:"POST",headers:i,body:r,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},a=this._fetchEventTarget(this,this.endpoint,o);a.addEventListener("open",()=>{e.onOpen();}),a.addEventListener("error",c=>{this._abortController.abort(),e.onError(c);}),a.addEventListener("close",()=>{this._abortController.abort(),e.onClose({code:4,reason:"connection closed"});}),a.addEventListener("message",c=>{e.onMessage(c.data);});}close(){this._abortController.abort();}send(t,e,s){let i,r,o={session:e,node:s,data:t};this._protocol==="json"?(i={"Content-Type":"application/json"},r=JSON.stringify(o)):(i={"Content-Type":"application/octet-stream"},r=this.options.encoder.encodeEmulationRequest(o));let a=this.options.fetch,c={method:"POST",headers:i,body:r,mode:"cors",credentials:"same-origin"};a(this.options.emulationEndpoint,c);}},_e$6=class _e{constructor(t,e){this.endpoint=t,this.options=e,this._protocol="json",this._transport=null,this._onClose=null;}name(){return "sse"}subName(){return "sse"}emulation(){return  true}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(t,e,s){let i;globalThis&&globalThis.document&&globalThis.document.baseURI?i=new URL(this.endpoint,globalThis.document.baseURI):i=new URL(this.endpoint),i.searchParams.append("cf_connect",s);let r={},o=new this.options.eventsource(i.toString(),r);this._transport=o;let a=this;o.onopen=function(){e.onOpen();},o.onerror=function(c){o.close(),e.onError(c),e.onClose({code:4,reason:"connection closed"});},o.onmessage=function(c){e.onMessage(c.data);},a._onClose=function(){e.onClose({code:4,reason:"connection closed"});};}close(){this._transport.close(),this._onClose!==null&&this._onClose();}send(t,e,s){let i={session:e,node:s,data:t},r={"Content-Type":"application/json"},o=JSON.stringify(i),a=this.options.fetch,c={method:"POST",headers:r,body:o,mode:"cors",credentials:"same-origin"};a(this.options.emulationEndpoint,c);}},pe$7=class pe{constructor(t,e){this.endpoint=t,this.options=e,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json";}name(){return "webtransport"}subName(){return "webtransport"}emulation(){return  false}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(t,e){return P$b(this,void 0,void 0,function*(){let s;globalThis&&globalThis.document&&globalThis.document.baseURI?s=new URL(this.endpoint,globalThis.document.baseURI):s=new URL(this.endpoint),t==="protobuf"&&s.searchParams.append("cf_protocol","protobuf"),this._protocol=t;let i=new EventTarget;this._transport=new this.options.webtransport(s.toString()),this._transport.closed.then(()=>{e.onClose({code:4,reason:"connection closed"});}).catch(()=>{e.onClose({code:4,reason:"connection closed"});});try{yield this._transport.ready;}catch(o){this.close();return}let r;try{r=yield this._transport.createBidirectionalStream();}catch(o){this.close();return}this._stream=r,this._writer=this._stream.writable.getWriter(),i.addEventListener("close",()=>{e.onClose({code:4,reason:"connection closed"});}),i.addEventListener("message",o=>{e.onMessage(o.data);}),this._startReading(i),e.onOpen();})}_startReading(t){return P$b(this,void 0,void 0,function*(){let e=this._stream.readable.getReader(),s="",i=0,r=new Uint8Array;try{for(;;){let{done:o,value:a}=yield e.read();if(a.length>0)if(this._protocol==="json")for(s+=this._utf8decoder.decode(a);i<s.length;)if(s[i]===`
157`){let c=s.substring(0,i);t.dispatchEvent(new MessageEvent("message",{data:c})),s=s.substring(i+1),i=0;}else ++i;else {let c=new Uint8Array(r.length+a.length);for(c.set(r),c.set(a,r.length),r=c;;){let l=this.options.decoder.decodeReply(r);if(l.ok){let f=r.slice(0,l.pos);t.dispatchEvent(new MessageEvent("message",{data:f})),r=r.slice(l.pos);continue}break}}if(o)break}}catch(o){t.dispatchEvent(new Event("close"));}})}close(){return P$b(this,void 0,void 0,function*(){try{this._writer&&(yield this._writer.close()),this._transport.close();}catch(t){}})}send(t){return P$b(this,void 0,void 0,function*(){let e;this._protocol==="json"?e=new TextEncoder().encode(t+`
158`):e=t;try{yield this._writer.write(e);}catch(s){this.close();}})}},nt$8=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1],me$8=class me{constructor(t){this.a=t,this.pos=0;}haveBytes(){return this.pos<this.a.length}getByte(){let t=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw new RangeError("out of bounds");return t}getChar(){return String.fromCharCode(this.getByte())}getInt(){let t=0,e;for(;this.haveBytes()&&(e=nt$8[127&this.getByte()])>=0;)t=(t<<6)+e;return this.pos--,t>>>0}},ge$7=class ge{constructor(){this.a=[];}toByteArray(t){return Array.isArray(t)?this.a:new Uint8Array(this.a)}putArray(t,e,s){for(let i=e;i<s;i++)this.a.push(t[i]);}};function ot$5(n){let t=0,e=0,s=0,i=0,r=0,o=n.length;for(;o>=16;
158)t=t+n[r+0]|0,e=e+n[r+1]|0,s=s+n[r+2]|0,i=i+n[r+3]|0,t=t+n[r+4]|0,e=e+n[r+5]|0,s=s+n[r+6]|0,i=i+n[r+7]|0,t=t+n[r+8]|0,e=e+n[r+9]|0,s=s+n[r+10]|0,i=i+n[r+11]|0,t=t+n[r+12]|0,e=e+n[r+13]|0,s=s+n[r+14]|0,i=i+n[r+15]|0,r+=16,o-=16;for(;o>=4;)t=t+n[r+0]|0,e=e+n[r+1]|0,s=s+n[r+2]|0,i=i+n[r+3]|0,r+=4,o-=4;switch(i=((i+(s<<8)|0)+(e<<16)|0)+(t<<24)|0,o){case 3:i=i+(n[r+2]<<8)|0;case 2:i=i+(n[r+1]<<16)|0;case 1:i=i+(n[r+0]<<24)|0;}return i>>>0}function at$5(n,t){let e=0,s=new me$8(t),i=n.length,r=t.length,o=s.getInt();if(s.getChar()!==`
159`)throw new Error("size integer not terminated by '\\n'");let a=new ge$7;for(;s.haveBytes();){let c=s.getInt(),l;switch(s.getChar()){case "@":if(l=s.getInt(),s.haveBytes()&&s.getChar()!==",")throw new Error("copy command not terminated by ','");if(e+=c,e>o)throw new Error("copy exceeds output file size");if(l+c>i)throw new Error("copy extends past end of input");a.putArray(n,l,l+c);break;case ":":if(e+=c,e>o)throw new Error("insert command gives an output larger than predicted");if(c>r)throw new Error("insert count exceeds size of delta");a.putArray(s.a,s.pos,s.pos+c),s.pos+=c;break;case ";":{let f=a.toByteArray(n);if(c!==ot$5(f))throw new Error("bad checksum");if(e!==o)throw new Error("generated size does not match predicted size");return f}default:throw new Error("unknown delta operator")}}throw new Error("unterminated delta")}var ie$b=class ie{name(){return "json"}encodeCommands(t){return t.map(e=>JSON.stringify(e)).join(`
160`)}decodeReplies(t){return t.trim().split(`
161`).map(e=>JSON.parse(e))}applyDeltaIfNeeded(t,e){let s,i,r;if(t.delta){r=true;let o=new TextEncoder().encode(t.data),a=at$5(e,o);s=JSON.parse(new TextDecoder().decode(a)),i=a;}else r=false,s=JSON.parse(t.data),i=new TextEncoder().encode(t.data);
161return {newData:s,newPrevValue:i,isDelta:r,wireBytes:t.data.length,fullBytes:i.length}}},ct$5={headers:{},token:"",getToken:null,data:null,getData:null,debug:false,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null},D$d=class D extends Error{constructor(t){super(t),this.name=this.constructor.name;}},Ve$9=(()=>{class n extends qe$5{constructor(e,s){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=k$6.Disconnected,this._transportIsOpen=false,this._endpoint=e,this._emulation=false,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=false,this._transportWasOpen=false,this._transport=null,this._transportId=0,this._deviceWentOffline=false,this._transportClosed=true,this._codec=new ie$b,this._reconnecting=false,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=false,this._refreshRequired=false,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=false,this._promises={},this._promiseId=0,this._debugEnabled=false,this._networkEventsSet=false,this._config=Object.assign(Object.assign({},ct$5),s),this._configure(),this._debugEnabled?(this.on("state",i=>{this._debug("client state",i.oldState,"->",i.newState);}),this.on("error",i=>{this._debug("client error",i);})):this.on("error",function(){Function.prototype();});}newSubscription(e,s){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");let i=new le$5(this,e,s);return this._subs[e]=i,i}newMapSubscription(e,s){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");let i=new Y$9(this,e,{token:s?.token,getToken:s?.getToken,data:s?.data,minResubscribeDelay:s?.minResubscribeDelay,maxResubscribeDelay:s?.maxResubscribeDelay,delta:s?.delta,tagsFilter:s?.tagsFilter,map:true,mapPageSize:s?.pageSize,mapUnrecoverableStrategy:s?.unrecoverableStrategy});return this._subs[e]=i,i}newMapClientsSubscription(e,s){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");let i=new Y$9(this,e,{token:s?.token,getToken:s?.getToken,data:s?.data,minResubscribeDelay:s?.minResubscribeDelay,maxResubscribeDelay:s?.maxResubscribeDelay,delta:s?.delta,tagsFilter:s?.tagsFilter,map:true,mapPresenceType:2,mapPageSize:s?.pageSize,mapUnrecoverableStrategy:s?.unrecoverableStrategy});return this._subs[e]=i,i}newMapUsersSubscription(e,s){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");let i=new Y$9(this,e,{token:s?.token,getToken:s?.getToken,data:s?.data,minResubscribeDelay:s?.minResubscribeDelay,maxResubscribeDelay:s?.maxResubscribeDelay,delta:s?.delta,tagsFilter:s?.tagsFilter,map:true,mapPresenceType:3,mapPageSize:s?.pageSize,mapUnrecoverableStrategy:s?.unrecoverableStrategy});return this._subs[e]=i,i}newSharedPollSubscription(e,s){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");let i=new ue$5(this,e,{token:s?.token,getToken:s?.getToken,data:s?.data,minResubscribeDelay:s?.minResubscribeDelay,maxResubscribeDelay:s?.maxResubscribeDelay,delta:s?.delta,sharedPoll:true,sharedPollGetSignature:s?.getSignature});return this._subs[e]=i,i}getSubscription(e){return this._getSub(e)}getMapSubscription(e){return this._getSub(e)}getSharedPollSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==x$a.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e));}removeMapSubscription(e){this.removeSubscription(e);}removeSharedPollSubscription(e){this.removeSubscription(e);}subscriptions(){return this._subs}mapSubscriptions(){let e={};for(let[s,i]of Object.entries(this._subs))i.type==="map"&&(e[s]=i);return e}sharedPollSubscriptions(){let e={};for(let[s,i]of Object.entries(this._subs))i.type==="shared_poll"&&(e[s]=i);return e}ready(e){return P$b(this,void 0,void 0,function*(){switch(this.state){case k$6.Disconnected:throw {code:b$6.clientDisconnected,message:"client disconnected"};case k$6.Connected:return;default:return new Promise((s,i)=>{let r={resolve:s,reject:i};e&&(r.timeout=setTimeout(()=>{i({code:b$6.timeout,message:"timeout"});},e)),this._promises[this._nextPromiseId()]=r;})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting();}disconnect(){this._disconnect(H$8.disconnectCalled,"disconnect called",fal
161se);}setToken(e){this._token=e;}setData(e){this._data=e;}setHeaders(e){this._config.headers=e;}send(e){return P$b(this,void 0,void 0,function*(){let s={send:{data:e}};if(yield this._methodCall(),!this._transportSendCommands([s]))throw this._createErrorObject(b$6.transportWriteError,"transport write error")})}rpc(e,s){return P$b(this,void 0,void 0,function*(){let i={rpc:{method:e,data:s}};return yield this._methodCall(),{data:(yield this._callPromise(i,o=>o.rpc)).data}})}publish(e,s){return P$b(this,void 0,void 0,function*(){let i={publish:{channel:e,data:s}};return yield this._methodCall(),yield this._callPromise(i,()=>({})),{}})}mapPublish(e,s,i){return P$b(this,void 0,void 0,function*(){let r={publish:{channel:e,type:1,key:s,data:i}};return yield this._methodCall(),yield this._callPromise(r,()=>({})),{}})}mapRemove(e,s){return P$b(this,void 0,void 0,function*(){let i={publish:{channel:e,type:1,key:s,removed:true}};return yield this._methodCall(),yield this._callPromise(i,()=>({})),{}})}history(e,s){return P$b(this,void 0,void 0,function*(){let i={history:this._getHistoryRequest(e,s)};yield this._methodCall();let r=yield this._callPromise(i,a=>a.history),o=[];if(r.publications)for(let a=0;a<r.publications.length;a++)o.push(this._getPublicationContext(e,r.publications[a]));return {publications:o,epoch:r.epoch||"",offset:r.offset||0}})}presence(e){return P$b(this,void 0,void 0,function*(){let s={presence:{channel:e}};yield this._methodCall();let r=(yield this._callPromise(s,o=>o.presence)).presence;for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)){let a=r[o],c=a.conn_info,l=a.chan_info;c&&(a.connInfo=c),l&&(a.chanInfo=l);}return {clients:r}})}presenceStats(e){return P$b(this,void 0,void 0,function*(){let s={presence_stats:{channel:e}};yield this._methodCall();let i=yield this._callPromise(s,r=>r.presence_stats);return {numUsers:i.num_users,numClients:i.num_clients}})}startBatching(){this._batching=true;}stopBatching(){let e=this;Promise.resolve().then(function(){Promise.resolve().then(function(){e._batching=false,e._flush();});});}_debug(...e){this._debugEnabled&&st$6("debug",e);}_codecName(){return this._codec.name()}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(this._config.token!==null&&(this._token=this._config.token),this._config.data!==null&&(this._data=this._config.data),this._codec=new ie$b,this._formatOverride(),(this._config.debug===true||typeof localStorage<"u"&&typeof localStorage.getItem=="function"&&localStorage.getItem("centrifuge.debug"))&&(this._debugEnabled=true),this._debug("config",this._config),typeof this._endpoint!="string")if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=true;for(let e in this._transports)if(this._transports.hasOwnProperty(e)){let s=this._transports[e];if(!s.endpoint||!s.transport)throw new Error("malformed transport configuration");let i=s.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(i)<0)throw new Error("unsupported transport name: "+i)}}else throw new Error("unsupported url configuration type: only string or array of objects are supported")}_setState(e){if(this.state!==e){this._reconnecting=false;let s=this.state;return this.state=e,this.emit("state",{newState:e,oldState:s}),true}return  false}_isDisconnected(){return this.state===k$6.Disconnected}_isConnecting(){return this.state===k$6.Connecting}_isConnected(){return this.state===k$6.Connected}_nextCommandId(){return ++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;this._config.networkEventTarget!==null?e=this._config.networkEventTarget:typeof globalThis.addEventListener<"u"&&(e=globalThis),e&&(e.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===k$6.Connected||this.state===k$6.Connecting)&&(this._disconnect(M$a.transportClosed,"transport closed",true),this._deviceWentOffline=true);}),e.addEventListener("online",()=>{this._debug("online event triggered"),this.state===k$6.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=false,this._transportClosed=true),this._clearReconnectTimeout(),this._startReconnecting());}),this._networkEventsSet=true);}_getReconnectDelay(){let e=B$7(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(let e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){let s=this._callbacks[e];clearTimeout(s.timeout);let i=s.errback;if(!i)continue;i({error:this._createErrorObject(b$6.connectionClosed,"connection closed")});}this._callbacks={};}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(let e in this._subs){if(!this._subs.hasOwnProperty(e))continue;let s=this._subs[e];s.state===x$a.Subscribed&&s._setSubscribing(be$7.transportClosed,"transport closed");}for(let e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit
161("subscribing",{channel:e});}_handleWriteError(e){for(let s of e){let i=s.id;if(!(i in this._callbacks))continue;let r=this._callbacks[i];clearTimeout(this._callbacks[i].timeout),delete this._callbacks[i];let o=r.errback;o({error:this._createErrorObject(b$6.transportWriteError,"transport write error")});}}_transportSendCommands(e){if(!e.length)return  true;if(!this._transport)return  false;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node);}catch(s){return this._debug("error writing commands",s),this._handleWriteError(e),false}return  true}_initializeTransport(){let e;this._config.websocket!==null?e=this._config.websocket:typeof globalThis.WebSocket!="function"&&typeof globalThis.WebSocket!="object"||(e=globalThis.WebSocket);let s=null;this._config.sockjs!==null?s=this._config.sockjs:typeof globalThis.SockJS<"u"&&(s=globalThis.SockJS);let i=null;this._config.eventsource!==null?i=this._config.eventsource:typeof globalThis.EventSource<"u"&&(i=globalThis.EventSource);let r=null;this._config.fetch!==null?r=this._config.fetch:typeof globalThis.fetch<"u"&&(r=globalThis.fetch);let o=null;if(this._config.readableStream!==null?o=this._config.readableStream:typeof globalThis.ReadableStream<"u"&&(o=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=true,this._currentTransportIndex=0);let m=0;for(;;){if(m>=this._transports.length)throw new Error("no supported transport found");let y=this._transports[this._currentTransportIndex],w=y.transport,T=y.endpoint;if(w==="websocket"){if(this._debug("trying websocket transport"),this._transport=new se$6(T,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,m++;continue}}else if(w==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new pe$7(T,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,m++;continue}}else if(w==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new fe$7(T,{fetch:r,readableStream:o,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,m++;continue}}else if(w==="sse"){if(this._debug("trying sse transport"),this._transport=new _e$6(T,{eventsource:i,fetch:r,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,m++;continue}}else if(w==="sockjs"){if(this._debug("trying sockjs"),this._transport=new de$6(T,{sockjs:s,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,m++;continue}}else throw new Error("unknown transport "+w);break}}else {if(tt$7(this._endpoint,"http"))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new se$6(this._endpoint,{websocket:e}),!this._transport.supported())throw new Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}let a=this,c=this._transport,l=this._nextTransportId();a._debug("id of transport",l);let f=false,S=[];if(this._transport.emulation()){let m=a._sendConnect(true);S.push(m);}this._setNetworkEvents();let L=this._codec.encodeCommands(S);this._transportClosed=false;let R;R=setTimeout(function(){c.close();},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(R&&(clearTimeout(R),R=null),a._transportId!=l){a._debug("open callback from non-actual transport"),c.close();return}f=true,a._debug(c.subName(),"transport open"),!c.emulation()&&(a._transportIsOpen=true,a._transportWasOpen=true,a.startBatching(),a._sendConnect(false),a._sendSubscribeCommands(),a.stopBatching(),a.emit("__centrifuge_debug:connect_frame_sent",{}));},onError:function(m){if(a._transportId!=l){a._debug("error callback from non-actual transport");return}a._debug("transport level error",m);},onClose:function(m){if(R&&(clearTimeout(R),R=null),a._transportId!=l){a._debug("close callback from non-actual transport");return}a._debug(c.subName(),"transport closed"),a._transportClosed=true,a._transportIsOpen=false;let y="connection closed",w=true,T=0;
161if(m&&"code"in m&&m.code&&(T=m.code),m&&m.reason)try{let G=JSON.parse(m.reason);y=G.reason,w=G.reconnect;}catch(G){y=m.reason,(T>=3500&&T<4e3||T>=4500&&T<5e3)&&(w=false);}T<3e3?(T===1009?(T=H$8.messageSizeLimit,y="message size limit exceeded",w=false):(T=M$a.transportClosed,y="transport closed"),a._emulation&&!a._transportWasOpen&&(a._currentTransportIndex++,a._currentTransportIndex>=a._transports.length&&(a._triedAllTransports=true,a._currentTransportIndex=0))):a._transportWasOpen=true,a._isConnecting()&&!f&&a.emit("error",{type:"transport",error:{code:b$6.transportClosed,message:"transport closed"},transport:c.name()}),a._reconnecting=false,a._disconnect(T,y,w);},onMessage:function(m){a._dataReceived(m);}},L),a.emit("__centrifuge_debug:transport_initialized",{});}_sendConnect(e){let s=this._constructConnectCommand(),i=this;return this._call(s,e).then(r=>{let o=r.reply.connect;i._connectResponse(o),r.next&&r.next();},r=>{i._connectError(r.error),r.next&&r.next();}),s}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===false){this._debug("waiting for transport close");return}this._reconnecting=true;let e=this._token==="";if(!(this._refreshRequired||e&&this._config.getToken!==null)){this._config.getData?this._config.getData().then(r=>{this._isConnecting()&&(this._data=r,this._initializeTransport());}).catch(r=>this._handleGetDataError(r)):this._initializeTransport();return}let i=this;this._getToken().then(function(r){if(i._isConnecting()){if(r==null||r==null){i._failUnauthorized();return}i._token=r,i._debug("connection token refreshed"),i._config.getData?i._config.getData().then(function(o){i._isConnecting()&&(i._data=o,i._initializeTransport());}).catch(o=>i._handleGetDataError(o)):i._initializeTransport();}}).catch(function(r){if(!i._isConnecting())return;if(r instanceof D$d){i._failUnauthorized();return}i.emit("error",{type:"connectToken",error:{code:b$6.clientConnectToken,message:r!==void 0?r.toString():""}});let o=i._getReconnectDelay();i._debug("error on getting connection token, reconnect after "+o+" milliseconds",r),i._reconnecting=false,i._reconnectTimeout=setTimeout(()=>{i._startReconnecting();},o);});}_handleGetDataError(e){if(e instanceof D$d){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:b$6.badConfiguration,message:e?.toString()||""}});let s=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+s+" milliseconds",e),this._reconnecting=false,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting();},s);}_connectError(e){this.state===k$6.Connecting&&(e.code===109&&(this._refreshRequired=true),e.code<100||e.temporary===true||e.code===109?(this.emit("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,true)):this._disconnect(e.code,e.message,false));}_scheduleReconnect(){if(!this._isConnecting())return;let e=false;this._emulation&&!this._transportWasOpen&&!this._triedAllTransports&&(e=true);let s=this._getReconnectDelay();e&&(s=0),this._debug("reconnect after "+s+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting();},s);}_constructConnectCommand(){let e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version),Object.keys(this._config.headers).length>0&&(e.headers=this._config.headers);let s={},i=false;for(let r in this._serverSubs)if(this._serverSubs.hasOwnProperty(r)&&this._serverSubs[r].recoverable){i=true;let o={recover:true};this._serverSubs[r].offset&&(o.offset=this._serverSubs[r].offset),this._serverSubs[r].epoch&&(o.epoch=this._serverSubs[r].epoch),s[r]=o;}return i&&(e.subs=s),{connect:e}}_getHistoryRequest(e,s){let i={channel:e};return s!==void 0&&(s.since&&(i.since={offset:s.since.offset},s.since.epoch&&(i.since.epoch=s.since.epoch)),s.limit!==void 0&&(i.limit=s.limit),s.reverse===true&&(i.reverse=true)),i}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((e,s)=>{let i=setTimeout(function(){s({code:b$6.timeout,message:"timeout"});},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:i,resolve:e,reject:s};})}_callPromise(e,s){return new Promise((i,r)=>{this._call(e,false).then(o=>{var a;
161let c=s(o.reply);i(c),(a=o.next)===null||a===void 0||a.call(o);},o=>{var a;r(o.error),(a=o.next)===null||a===void 0||a.call(o);});})}_dataReceived(e){this._serverPing>0&&this._waitServerPing();let s=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then(()=>{let i;this._dispatchPromise=new Promise(r=>{i=r;}),this._dispatchSynchronized(s,i);});}_dispatchSynchronized(e,s){let i=Promise.resolve();for(let r in e)e.hasOwnProperty(r)&&(i=i.then(()=>this._dispatchReply(e[r])));i=i.then(()=>{s();});}_dispatchReply(e){let s,i=new Promise(o=>{s=o;});if(e==null)return this._debug("dispatch: got undefined or null reply"),s(),i;let r=e.id;return r&&r>0?this._handleReply(e,s):e.push?this._handlePush(e.push,s):this._handleServerPing(s),i}_call(e,s){return new Promise((i,r)=>{e.id=this._nextCommandId(),this._registerCall(e.id,i,r),s||this._addCommand(e);})}_startConnecting(){this._debug("start connecting"),this._setState(k$6.Connecting)&&this.emit("connecting",{code:M$a.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting();}_disconnect(e,s,i){if(e===H$8.stateInvalidated){this._token="",this._refreshRequired=true;for(let c in this._subs)this._subs.hasOwnProperty(c)&&this._subs[c]._invalidateState();}if(this._isDisconnected())return;this._transportIsOpen=false;let r=this.state;this._reconnecting=false;let o={code:e,reason:s},a=false;if(i?a=this._setState(k$6.Connecting):(a=this._setState(k$6.Disconnected),this._rejectPromises({code:b$6.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),r===k$6.Connecting&&this._clearReconnectTimeout(),r===k$6.Connected&&this._clearConnectedState(),a&&(this._isConnecting()?this.emit("connecting",o):this.emit("disconnected",o)),this._transport){this._debug("closing existing transport");let c=this._transport;this._transport=null,c.close(),this._transportClosed=true,this._nextTransportId();}else this._debug("no transport to close");this._scheduleReconnect();}_failUnauthorized(){this._disconnect(H$8.unauthorized,"unauthorized",fal
161se);}_getToken(){return this._debug("get connection token"),this._config.getToken?this._config.getToken({}):(this.emit("error",{type:"configuration",error:{code:b$6.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new D$d("")))}_refresh(){let e=this._client,s=this;this._getToken().then(function(i){if(e!==s._client)return;if(!i){s._failUnauthorized();return}if(s._token=i,s._debug("connection token refreshed"),!s._isConnected())return;let r={refresh:{token:s._token}};s._call(r,false).then(o=>{let a=o.reply.refresh;s._refreshResponse(a),o.next&&o.next();},o=>{s._refreshError(o.error),o.next&&o.next();});}).catch(function(i){if(s._isConnected()){if(i instanceof D$d){s._failUnauthorized();return}s.emit("error",{type:"refreshToken",error:{code:b$6.clientRefreshToken,message:i!==void 0?i.toString():""}}),s._refreshTimeout=setTimeout(()=>s._refresh(),s._getRefreshRetryDelay());}});}_refreshError(e){e.code<100||e.temporary===true?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,false);}_getRefreshRetryDelay(){return B$7(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout(()=>this._refresh(),J$c(e.ttl)));}_removeSubscription(e){e!==null&&delete this._subs[e.channel];}_unsubscribe(e){if(!this._transportIsOpen)return Promise.resolve();let i={unsubscribe:{channel:e.channel}},r=this;return new Promise((a,c)=>{this._call(i,false).then(l=>{a(),l.next&&l.next();},l=>{a(),l.next&&l.next(),r._disconnect(M$a.unsubscribeError,"unsubscribe error",true);});})}_getSub(e,s){if(s&&s>0){for(let r in this._subs)if(this._subs.hasOwnProperty(r)){let o=this._subs[r];if(o._id===s)return o}return null}let i=this._subs[e];return i||null}_isServerSub(e){return this._serverSubs[e]!==void 0}_sendSubscribeCommands(){let e=[];for(let s in this._subs){if(!this._subs.hasOwnProperty(s))continue;let i=this._subs[s];if(i._inflight!==true&&i.state===x$a.Subscribing){let r=i._subscribe();r&&e.push(r);}}return e}_connectResponse(e){if(this._transportIsOpen=true,this._transportWasOpen=true,this._reconnectAttempts=0,this._refreshRequired=false,this._isConnected())return;this._client=e.client,this._setState(k$6.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),J$c(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let s={client:e.client,transport:this._transport.subName()};e.data&&(s.data=e.data),this.emit("connected",s),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=e.ping*1e3,this._sendPong=e.pong===true,this._waitServerPing()):this._serverPing=0;}_processServerSubs(e){for(let s in e){if(!e.hasOwnProperty(s))continue;let i=e[s];this._serverSubs[s]={offset:i.offset,epoch:i.epoch,recoverable:i.recoverable||false};let r=this._getSubscribeContext(s,i);this.emit("subscribed",r);}for(let s in e){if(!e.hasOwnProperty(s))continue;let i=e[s];if(i.recovered){let r=i.publications;if(r&&r.length>0)for(let o in r)r.hasOwnProperty(o)&&this._handlePublication(s,r[o]);}}for(let s in this._serverSubs)this._serverSubs.hasOwnProperty(s)&&(e[s]||(this.emit("unsubscribed",{channel:s}),delete this._serverSubs[s]));}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);}_clearReconnectTimeout(){this._reconnectTimeout!==null&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null);}_clearServerPingTimeout(){this._serverPingTimeout!==null&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null);}_waitServerPing(){this._config.maxServerPingDelay!==0&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(M$a.noPing,"no ping",true);},this._serverPing+this._config.maxServerPingDelay));}_getSubscribeContext(e,s){let i={channel:e,positioned:false,recoverable:false,wasRecovering:false,recovered:false,hasRecoveredPublications:false};s.recovered&&(i.recovered=true),s.positioned&&(i.positioned=true),s.recoverable&&(i.recoverable=true),s.was_recovering&&(i.wasRecovering=true);let r="";"epoch"in s&&(r=s.epoch);let o=0;return "offset"in s&&(o=s.offset),(i.positioned||i.recoverable)&&(i.streamPosition={offset:o,epoch:r}),Array.isArray(s.publications)&&s.publications.length>0&&(i.hasRecoveredPublications=true),s.data&&(i.data=s.data),i}_handleReply(e,s){let i=e.id;if(!(i in this._callbacks)){s();return}let r=this._callbacks[i];if(clearTimeout(this._callbacks[i].timeout),delete this._callbacks[i],rt$3(e)){let o=r.errback;if(!o){s();return}let a={code:e.error.code,message:e.error.message||"",temporary:e.error.temporary||false};o({error:a,next:s});}else {let o=r.callback;if(!o)return;o({reply:e,next:s});}}_handleJoin(e,s,i){let r=this._getSub(e,i);if(!r){if(e&&this._isServerSub(e)){let o={channel:e,info:this._getJoinLeaveContext(s.info)};
161this.emit("join",o);}return}r._handleJoin(s);}_handleLeave(e,s,i){let r=this._getSub(e,i);if(!r){if(e&&this._isServerSub(e)){let o={channel:e,info:this._getJoinLeaveContext(s.info)};this.emit("leave",o);}return}r._handleLeave(s);}_handleUnsubscribe(e,s){let i=this._getSub(e,0);if(!i&&e){this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}));return}s.code<2500?i._setUnsubscribed(s.code,s.reason,false):(s.code===te$a.stateInvalidated&&i._invalidateState(),i._setSubscribing(s.code,s.reason));}_handleSubscribe(e,s){this._serverSubs[e]={offset:s.offset,epoch:s.epoch,recoverable:s.recoverable||false},this.emit("subscribed",this._getSubscribeContext(e,s));}_handleDisconnect(e){let s=e.code,i=true;(s>=3500&&s<4e3||s>=4500&&s<5e3)&&(i=false),this._disconnect(s,e.reason,i);}_getPublicationContext(e,s){let i={channel:e,data:s.data};return s.offset&&(i.offset=s.offset),s.info&&(i.info=this._getJoinLeaveContext(s.info)),s.tags&&(i.tags=s.tags),i}_getJoinLeaveContext(e){let s={client:e.client,user:e.user},i=e.conn_info;i&&(s.connInfo=i);let r=e.chan_info;return r&&(s.chanInfo=r),s}_handlePublication(e,s,i){let r=this._getSub(e,i);if(!r){if(e&&this._isServerSub(e)){let o=this._getPublicationContext(e,s);this.emit("publication",o),s.offset!==void 0&&(this._serverSubs[e].offset=s.offset);}return}r._handlePublication(s);}_handleMessage(e){this.emit("message",{data:e.data});}_handleServerPing(e){if(this._sendPong){let s={};this._transportSendCommands([s]);}e();}_handlePush(e,s){let i=e.channel,r=e.id;e.pub?this._handlePublication(i,e.pub,r):e.message?this._handleMessage(e.message):e.join?this._handleJoin(i,e.join,r):e.leave?this._handleLeave(i,e.leave,r):e.unsubscribe?this._handleUnsubscribe(i,e.unsubscribe):e.subscribe?this._handleSubscribe(i,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),s();}_flush(){let e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e);}_createErrorObject(e,s,i){let r={code:e,message:s};return i&&(r.temporary=true),r}_registerCall(e,s,i){this._callbacks[e]={callback:s,errback:i,timeout:null},this._callbacks[e].timeout=setTimeout(()=>{delete this._callbacks[e],Ge$8(i)&&i({error:this._createErrorObject(b$6.timeout,"timeout")});},this._config.timeout);}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e]);}_nextPromiseId(){return ++this._promiseId}_nextTransportId(){return ++this._transportId}_resolvePromises(){for(let e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e]);}_rejectPromises(e){for(let s in this._promises)this._promises.hasOwnProperty(s)&&(this._promises[s].timeout&&clearTimeout(this._promises[s].timeout),this._promises[s].reject(e),delete this._promises[s]);}}return n.SubscriptionState=x$a,n.State=k$6,n.UnauthorizedError=D$d,n})();var re$9=class n{constructor(){this.http=D$l(Ue$7);}save(t){return this.http.post(C$8.baseUrl+"/api/v2/centrifugo",t)}getToken(){return this.http.get(C$8.baseUrl+"/api/v2/centrifugo/token")}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};var We$7={CACHE_DISABLED_KEY:"CACHE_DISABLED",CACHE_MAX_ITEMS_KEY:"CACHE_MAX_ITEMS",DISABLED_3PARTY_SCRIPT_KEY:"Disabled3PartyScriptKey",TURNSTILE_CUSTOM_SITEKEY:"TURNSTILE_CUSTOM_SITEKEY"};var ne$8=class n{constructor(){this.eventsSubject=new de$c;this.events=this.eventsSubject.asObservable();this.client=null;this.centrifugeResource=D$l(re$9);this.rootConfigService=D$l(O$a);this.localStorageService=D$l(xt$5);}connect(){if(this.client||this.localStorageService.get(We$7.DISABLED_3PARTY_SCRIPT_KEY))return;let t=this.rootConfigService.config.centrifugoV6Url;if(t)try{this.client=new Ve$9(t,{getToken:()=>Pm$2(this.centrifugeResource.getToken().pipe(ge$9(e=>e.token)))}),this.client.on("publication",e=>this.eventsSubject.next(e.data)),this.client.on("error",e=>{console.log("Centrifuge error",e);}),this.client.connect();}catch(e){console.log(e),this.client=null;}}disconnect(){try{this.client?.disconnect();}catch(t){console.log(t);}this.client=null;}reconnect(){this.disconnect(),this.connect();}save(t){this.centrifugeResource.save(t).pipe(Mu$2()).subscribe();}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};var ve$6=class n{constructor(t,e,s,i,r,o){this.sentryService=t;this.pixelsService=e;this.authTokenService=s;this.localStorageService=i;this.centrifugeService=r;this.serverTimeService=o;this.user=new rr$4(null);this.userSignal=L$4(this.user);this.isGuestObserver=this.user.pipe(ge$9(()=>
161this.isGuest()),Wu$2(1));this.isPremiumObserver=this.user.pipe(ge$9(()=>this.isPremium()),Wu$2(1));this.hasAdIntImpressionsAccess=Pb(()=>(this.userSignal(),this.hasAccess(E$6.ad_int_impressions,null)));this.isLoading=new rr$4(false);}static{this.accesses=Object.values(E$6);}static{this.demoAccesses=[E$6.success_meter,E$6.top_ltv,E$6.soft_launches,E$6.ad_int,E$6.app_transfers,E$6.live_ops,E$6.monetization_int,E$6.live_ops_adv_search];}static isActiveContract(t,e){return t.contract.deleted_at?false:kt$3.unix(kt$3.getDate(t.contract.premium_until))>e}static getUnixUtcMaxPremiumUntil(t,e){let s=0;return t.forEach(i=>{if(i.contract.deleted_at)return;let r=kt$3.unix(kt$3.getDate(i.contract.premium_until));r>s&&(s=r);}),e.forEach(i=>{if(i.promoCode.deleted_at)return  false;let r=kt$3.unix(kt$3.getDate(i.created_at));r+=i.promoCode.seconds*1e3,r>s&&(s=r);}),s}static getActivePromoCodeUsers(t,e){return t.filter(s=>s.promoCode.deleted_at?false:kt$3.unix(kt$3.getDate(s.created_at))+s.promoCode.seconds*1e3>e)}static getActivePromoCodes(t,e){return n.getActivePromoCodeUsers(t.promoCodesUser,e).map(s=>s.promoCode)}addTrackPixelsToPage(){this.isGuest()||this.pixelsService.addPixelIfNotExists("LinkedInPixel");}setUser(t){let e=!this.user.getValue();if(this.user.next(t),this.updateSentryUserInfo(),e){this.centrifugeService.reconnect();let s=window.navigator.userAgent;/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i.exec(s)||this.pixelsService.addPixelIfNotExists("LinkedInLoginDesktopPixel");}}getUser(){return this.user.getValue()}hasDemoAccess(t){return n.demoAccesses.includes(t)&&!this.hasAccess(t,null,false)&&!this.isGuest()}hasAccess(t,e=null,s=true){if(!n.accesses.includes(t)||n.demoAccesses.includes(t)&&s&&!this.isGuest())return  true;if(this.isGuest())return  false;let i=this.user.getValue();if(!i)return  false;if(!e)return i.allAccess.some(o=>o.features?.includes(t))&&this.isPremium();let r=i.allAccess.find(o=>o.id===e);return r?r.features?.includes(t)&&this.isPremium():false}hasAccessRequirement(t,e=null,s=true){return (Array.isArray(t)?t:[t]).some(r=>this.hasAccess(r,e,s))}hasAllCountriesAccess(t){return this.hasAccess(Ue$6[t])}hasCountryAccess(t,e){return e==="WW"||this.hasAllCountriesAccess(t)}getAccessObserver(t){let e=this.hasAccess(t);return this.user.pipe(ge$9(()=>this.hasAccess(t)),No$3(),Au$2(e))}getAccessSignal(t){return Pb(()=>(this.userSignal(),this.hasAccess(t)))}unsetUser(t=true){this.user.getValue()&&(t&&this.centrifugeService.save({event:"logout"}),this.authTokenService.setToken(""),this.user.next(null),this.centrifugeService.reconnect(),this.updateSentryUserInfo());}isGuest(){return !this.user.getValue()}updateSentryUserInfo(){let t={am_user_id:this.user.getValue()?this.user.getValue().id:null,is_premium:this.isPremium(),is_guest:this.isGuest(),domain:window.location.href};this.sentryService.setUserContext("character",t);}isPremium(){if(this.isGuest())return  false;let t=this.user.getValue(),e=n.getUnixUtcMaxPremiumUntil(t.userContracts,t.promoCodesUser),s=this.serverTimeService.unixTime();return e>s}getPremiumUntil(t,e=false){let s=[],i=[],r=this.user.getValue();r&&(s=r.userContracts,i=r.promoCodesUser);let o=n.getUnixUtcMaxPremiumUntil(s,i);return o?kt$3.format(o+this.serverTimeService.diff(),t,e):null}getLookups(){let t=0,e=this.user.getValue();if(!e)return t;let s=this.serverTimeService.unixTime();return e.userContracts.forEach(i=>{n.isActiveContract(i,s)&&(t+=i.contract.lookups);}),t}hasLookups(){return !this.isGuest()&&this.getLookups()>0}getLastPromoCode(){let t={code:"",expiredTime:0};return this.isGuest()||this.user.getValue().promoCodesUser.forEach(e=>{if(e.promoCode.deleted_at)return  false;let s=kt$3.unix(kt$3.getDate(e.created_at))+e.promoCode.seconds*1e3;s>t.expiredTime&&(t.code=e.promoCode.code,t.expiredTime=s);}),t}getActiveContracts(t){let e=[];
161if(this.isGuest())return e;let s=this.serverTimeService.unixTime();return t.forEach(i=>{n.isActiveContract(i,s)&&e.push(i);}),e}static{this.\u0275fac=function(e){return new(e||n)(me$b(F$6),me$b(Q$7),me$b(X$8),me$b(xt$5),me$b(ne$8),me$b(c$d))};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};
162var c$c=class e{constructor(t){this.httpBackend=t;this.eventUrl="https://events.appmagic.rocks/events";this.requestsUrl="https://events.appmagic.rocks/requests";this.httpClient=new Ue$7(this.httpBackend);}saveEvent(t){return this.httpClient.post(this.eventUrl,t,{headers:{"Content-Type":"text/plain"}})}saveRequestInfo(t){return this.httpClient.post(this.requestsUrl,t,{headers:{"Content-Type":"text/plain"}})}saveEventByBeacon(t){navigator.sendBeacon(this.eventUrl,JSON.stringify(t));}static{this.\u0275fac=function(r){return new(r||e)(me$b(Z$6))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var m$a=class m{constructor(t="",r=[]){this.name=t,this.value=r;}};var f$f,q$9=new Uint8Array(16);function h$a(){if(!f$f&&(f$f=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!f$f))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return f$f(q$9)}var A$a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function B$6(e){return typeof e=="string"&&A$a.test(e)}var j$9=B$6;var n$h=[];for(p$e=0;p$e<256;++p$e)n$h.push((p$e+256).toString(16).substr(1));var p$e;function H$7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(n$h[e[t+0]]+n$h[e[t+1]]+n$h[e[t+2]]+n$h[e[t+3]]+"-"+n$h[e[t+4]]+n$h[e[t+5]]+"-"+n$h[e[t+6]]+n$h[e[t+7]]+"-"+n$h[e[t+8]]+n$h[e[t+9]]+"-"+n$h[e[t+10]]+n$h[e[t+11]]+n$h[e[t+12]]+n$h[e[t+13]]+n$h[e[t+14]]+n$h[e[t+15]]).toLowerCase();if(!j$9(r))throw TypeError("Stringified UUID is invalid");return r}var k$5=H$7;function V$a(e,t,r){e=e||{};var i=e.random||(e.rng||h$a)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=i[o];return t}return k$5(i)}var S$6=V$a;var g$8=class e{constructor(t){this.localStorageService=t;}getUid(){return this.uid?this.uid:(this.uid=this.localStorageService.get("uid"),this.uid?this.uid:(this.uid=S$6(),this.localStorageService.set("uid",this.uid),this.uid))}static{this.\u0275fac=function(r){return new(r||e)(me$b(xt$5))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var l$f=class e{constructor(t){this.localStorageService=t;let r=e.getQueryParams();r.has("utm_medium")&&(this.utmMedium=r.get("utm_medium")),r.has("utm_source")&&(this.utmSource=r.get("utm_source")),r.has("utm_campaign")&&(this.utmCampaign=r.get("utm_campaign")),r.has("utm_term")&&(this.utmTerm=r.get("utm_term")),r.has("utm_content")&&(this.utmContent=r.get("utm_content"));}get utmMedium(){return this.localStorageService.get("utmMedium")}set utmMedium(t){this.localStorageService.set("utmMedium",t);}get utmSource(){return this.localStorageService.get("utmSource")}set utmSource(t){this.localStorageService.set("utmSource",t);}get utmTerm(){return this.localStorageService.get("utmTerm")}set utmTerm(t){this.localStorageService.set("utmTerm",t);}get utmCampaign(){return this.localStorageService.get("utmCampaign")}set utmCampaign(t){this.localStorageService.set("utmCampaign",t);}get utmContent(){return this.localStorageService.get("utmContent")}set utmContent(t){this.localStorageService.set("utmContent",t);}static getQueryParams(){let t=window.location.href;return t.includes("?")?new R$a({fromString:t.split("?")[1]}):new R$a}static{this.\u0275fac=function(r){return new(r||e)(me$b(xt$5))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var L$3=class e{constructor(t,r,i,o,N,P,F){this.location=t;this.langService=r;this.analyticsResource=i;this.uidService=o;this.utmService=N;this.userService=P;this.authTokenService=F;window.addEventListener("beforeunload",()=>
162{let y=new m$a("close_page"),M=this.getEventConfig(y);typeof navigator?.sendBeacon=="function"?this.analyticsResource.saveEventByBeacon(y):this.analyticsResource.saveEvent(M).subscribe();});}send(t,r=[]){let i=new m$a(t,r),o=this.getEventConfig(i);this.analyticsResource.saveEvent(o).subscribe();}getEventConfig(t){let r=this.userService,i=r.user.getValue();if(t.page=this.location.path(),t.page||(t.page="/"),t.lang=this.langService.getLangValue().id,t.referer=document.referrer,t.width=window.screen.width,t.height=window.screen.height,t.uid=this.uidService.getUid(),t.portraitOrientation=window.matchMedia&&window.matchMedia("(orientation: portrait)").matches?1:0,t.utmCampaign=this.utmService.utmCampaign,t.utmContent=this.utmService.utmContent,t.utmMedium=this.utmService.utmMedium,t.utmSource=this.utmService.utmSource,t.utmTerm=this.utmService.utmTerm,i){t.authKey=this.authTokenService.getToken(),t.userId=i.id,t.userName=i.username,t.email=i.email;let o=r.getPremiumUntil("YYYY-MM-DDTHH:mm:ss[Z]",true);t.premiumUntil=o||void 0,t.userCreatedAt=kt$3.format(i.created_at,"YYYY-MM-DDTHH:mm:ss[Z]");}return t}sendRequestInfo(t){let r=this.langService.ipCountry,i=E$9(D$m({},t),{country:r}),{data:o}=i;i.data=o?JSON.stringify(o):null,this.analyticsResource.saveRequestInfo(i).subscribe();}static{this.\u0275fac=function(r){return new(r||e)(me$b(it$8),me$b(v$7),me$b(c$c),me$b(g$8),me$b(l$f),me$b(ve$6),me$b(X$8))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};
163var A$9=class t{constructor(){this.isMainHeaderActive=new rr$4(true);}toggleMainHeader(n=true){this.isMainHeaderActive.next(n);}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};function Y$8(t,n){if(t&1){let e=DT();Zi$3(0,"div",4),_g$1("click",function(){let c=Rd$2(e).$implicit,g=NT(2);return kd$2(g.selectLang.emit(c.value))}),Eg$1(1,"flag",5),ib(2),kl$2();}if(t&2){let e=n.$implicit,i=NT(2);Pg$1("selected",e.value===i.selectedId),AE(),Ig$1("flag",e.flag),AE(),jl$2(" ",e.name," ");}}function Z$4(t,n){if(t&1&&(Zi$3(0,"div",2),hT(1,Y$8,3,4,"div",3,pT),kl$2()),t&2){let e=NT();AE(),gT(e.items);}}var x$9=class t{constructor(){this.items=[];this.selectLang=new tt$b;this.close=new tt$b;}ngAfterViewInit(){this.popper.update();}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["lang-select-panel"]],inputs:{popper:"popper",items:"items",selectedId:"selectedId"},outputs:{selectLang:"selectLang",close:"close"},decls:2,vars:0,consts:[[1,"g-icon-close","visibility-icon-close",3,"click"],["class","g-group-wrap group-wrap",4,"amScrollbar"],[1,"g-group-wrap","group-wrap"],[1,"g-group-item","group-item",3,"selected"],[1,"g-group-item","group-item",3,"click"],[1,"g-flag-margin",3,"flag"]],template:function(e,i){e&1&&(Zi$3(0,"i",0),_g$1("click",function(){return i.close.emit()}),kl$2(),cg$1(1,Z$4,3,0,"div",1));},dependencies:[Ht$7,_$4],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
163--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{max-height:calc(var(--height) - 32px);display:flex;flex-direction:column;min-width:240px;width:240px;max-width:100%;background:var(--surface-raised);position:relative;box-sizing:border-box}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{font-size:14px;font-weight:500;display:flex;align-items:center;cursor:pointer;background:var(--surface-raised);width:100%;border:none;margin:4px 0;text-align:left;font-family:Roboto,Helvetica Neue,sans-serif}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:first-child{margin-top:0}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover)}}[_nghost-%COMP%]   .group-item-tooltip[_ngcontent-%COMP%]{display:flex;margin-left:4px}[_nghost-%COMP%]   .panel-title[_ngcontent-%COMP%]{position:absolute;top:20px;display:none}@media(max-width:576px){[_nghost-%COMP%]   .panel-title[_ngcontent-%COMP%]{display:flex}}.panel-mode[_nghost-%COMP%]{max-height:var(--height);padding-top:60px;width:100%;min-height:100%;box-shadow:none}@media(max-width:767px)and (orientation:landscape){.panel-mode[_nghost-%COMP%]{padding-top:60px}}.panel-mode[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:block}.panel-mode[_nghost-%COMP%]   .panel-title[_ngcontent-%COMP%]{display:flex}.panel-mode[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{display:none}.panel-mode[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{max-height:calc(var(--height) - 60px - 65px)}@media(max-width:767px)and (orientation:landscape){.panel-mode[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{max-height:calc(var(--height) - 65px)}}.panel-mode[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{border-top:1px solid var(--divider);text-align:right;display:flex;justify-content:space-between;position:fixed;bottom:0;padding:16px;height:65px;background:var(--surface-raised);width:100%;border-top:1px solid var(--grey-40)}@media(max-width:576px){[_nghost-%COMP%]{padding-top:60px}}@media(max-width:576px){[_nghost-%COMP%]{max-height:var(--height);width:100%;height:100%}}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{padding:16px}[_nghost-%COMP%]   .group-item.child[_ngcontent-%COMP%]{padding-left:25px}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{color:var(--text);padding:12px 16px}[_nghost-%COMP%]   .group-item.selected[_ngcontent-%COMP%]{background:var(--selected);color:var(--on-selected)}[_nghost-%COMP%]   .group-title[_ngcontent-%COMP%]{font-size:12px;text-transform:uppercase;line-height:1;color:var(--text-muted);padding:8px 0 4px 16px}[_nghost-%COMP%]   .info-icon[_ngcontent-%COMP%]{cursor:default}[_nghost-%COMP%]   .btn-select[_ngcontent-%COMP%]{border-radius:8px;min-width:88px;min-height:32px;text-transform:uppercase;font-size:14px;font-weight:500}[_nghost-%COMP%]   .btn-cancel[_ngcontent-%COMP%]{min-width:0;background:transparent;text-transform:uppercase}[_nghost-%COMP%]   .btn-cancel[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover)}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{font-size:14px;font-weight:400;display:flex;justify-content:space-between;align-items:center;position:relative;color:var(--text);padding:20px 24px 0}[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:none;z-index:2}@media(max-width:576px){[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]:not(.panel-mode){border-radius:8px;overflow:hidden}@media(max-width:576px){[_nghost-%COMP%]:not(.panel-mode){border-radius:0;overflow:initial}}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{margin-right:0}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{font-weight:400}[_nghost-%COMP%]   i[_ngcontent-%COMP%]{border-radius:2px}"]});}};function ee$7(t,n){if(t&1&&(Eg$1(0,"flag",1),bb(1,"async")),t&2){let e=NT();Ig$1("flag",_b(1,1,e.selectedItem).flag);}}function te$9(t,n){if(t&1&&(Zi$3(0,"span",4),ib(1),bb(2,"async"),kl$2()),t&2){let e=NT(2);
163AE(),Ug$1(_b(2,1,e.selectedItem).shortName);}}function ne$7(t,n){if(t&1&&(Zi$3(0,"span",5),ib(1),bb(2,"async"),kl$2()),t&2){let e=NT(2);AE(),Ug$1(_b(2,1,e.selectedItem).name);}}function ie$a(t,n){if(t&1&&(Zi$3(0,"div",2),uT(1,te$9,3,3,"span",4),uT(2,ne$7,3,3,"span",5),kl$2()),t&2){let e=NT();AE(),dT(e.shortName?1:-1),AE(),dT(e.shortName?-1:2);}}var J$b=class t{constructor(n,e,i,c){this.langService=n;this.element=e;this.analyticsService=i;this.amDropdownService=c;this.showFlag=false;this.shortName=false;this.showSelectedName=true;this.isSelectorTransparent=false;this.closeEvent=new rr$4(false);this.subscription=new W$f;this.isPanelOpen=new rr$4(false);this.generateItems(),this.selectedItem=new rr$4(this.items.find(g=>g.value===this.langService.getLangValue().id)),this.subscription.add(this.langService.lang.pipe(Nu$2(1)).subscribe(g=>this.selectedItem.next(this.items.find(Q=>Q.value===g.id))));}generateItems(){let n=[];v$7.getLangList().forEach(e=>{n.push({value:e.id,name:e.name,shortName:e.shortName,flag:e.flag});}),this.items=n;}showLangPanel(){this.analyticsService.send("lang_select_open");let n=new W$f,e=this.amDropdownService.get(this.element,x$9,{normal:{popper:{middleware:[ut$8({crossAxis:true})]}}});e.open().pipe(Mu$2()).subscribe(i=>{i==="closeEsc"&&this.analyticsService.send("lang_select_close_esc"),i==="backdrop"&&this.analyticsService.send("lang_select_close_backdrop"),e.close(),n.unsubscribe(),this.isPanelOpen.next(false);}),this.isPanelOpen.next(true),e.instance.items=this.items,e.instance.selectedId=this.langService.getLangValue().id,n.add(e.enterClick().subscribe(()=>e.close())),n.add(e.instance.selectLang.subscribe(i=>{if(i===this.langService.getLangValue().id){e.close();return}this.langService.setCurrentLang(i),this.analyticsService.send("lang_select_change",[i]),this.selectedItem.next(this.items.find(c=>c.value===i)),e.close();})),n.add(e.instance.close.subscribe(()=>{this.analyticsService.send("lang_select_close"),e.close();})),this.closeEvent&&n.add(this.closeEvent.pipe(Nu$2(1)).subscribe(i=>{i||e.close();}));}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(e){return new(e||t)(Jr$4(v$7),Jr$4(Gr$4),Jr$4(L$3),Jr$4(z$5))};}static{this.\u0275cmp=sw({type:t,selectors:[["lang-select"]],inputs:{showFlag:"showFlag",shortName:"shortName",showSelectedName:"showSelectedName",isSelectorTransparent:"isSelectorTransparent",closeEvent:"closeEvent"},decls:5,vars:8,consts:[[1,"g-selector-selected","lang-wrap",3,"click"],[1,"g-flag-margin",3,"flag"],[1,"lang-selector","flex","flex-a-s"],[1,"g-selector-arrow"],[1,"text-uppercase","md-body-2","nowrap"],[1,"md-body-2","long-name","nowrap"]],template:function(e,i){e&1&&(Zi$3(0,"div",0),_g$1("click",function(){return i.showLangPanel()}),uT(1,ee$7,2,3,"flag",1),uT(2,ie$a,3,2,"div",2),Eg$1(3,"span",3),bb(4,"async"),kl$2()),e&2&&(Pg$1("transparent",i.isSelectorTransparent),AE(),dT(i.showFlag?1:-1),AE(),dT(i.showSelectedName?2:-1),AE(),Pg$1("flip",_b(4,6,i.isPanelOpen)));},dependencies:[An$3,_$4,hn$2],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
163--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:inline-flex;width:100%;max-width:167px}.font-size-15[_nghost-%COMP%]   .lang-wrap[_ngcontent-%COMP%]{font-size:15px}[_nghost-%COMP%]   .lang-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:14px;color:var(--black);line-height:16px;width:100%}[_nghost-%COMP%]   .lang-selector[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:4px}[_nghost-%COMP%]   i[_ngcontent-%COMP%]{border-radius:2px}"]});}};var Se$9="blog",De$7=e$l.Blog;var Le$6="about",Ie$4="/about";var o$l="apps",t$j=`/${t$q}/${o$l}`;var f$e=class c{constructor(e,a,r,n=3,s,i){this.firstDate=e;this.lastDate=a;this.dateEnd=r;this.count=n;this.onChange=s;this.dates=fi$4([]);let g=["month","quarter","year"].some(o=>i===o);this.aggregation=fi$4(g?"year":"month"),this.refreshDates();}static selectLast7days(e,a){let r=kt$3.startOfSubtract(kt$3.getDate(e),6,"d"),n=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:r,endDate:n}}static selectLast14days(e,a){let r=kt$3.subtract(kt$3.getDate(e),13,"d"),n=kt$3.startOf(r,"d"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLast30days(e,a){let r=kt$3.subtract(kt$3.getDate(e),29,"d"),n=kt$3.startOf(r,"d"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLast90days(e,a){let r=kt$3.subtract(kt$3.getDate(e),89,"d"),n=kt$3.startOf(r,"d"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLast365days(e,a){let r=kt$3.subtract(kt$3.getDate(e),364,"d"),n=kt$3.startOf(r,"d"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLast4weeks(e,a){let r=kt$3.subtract(kt$3.getDate(e),3,"w"),n=kt$3.startOf(r,"w"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLast10weeks(e,a){let r=kt$3.subtract(kt$3.getDate(e),9,"w"),n=kt$3.startOf(r,"w"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLast52weeks(e,a){let r=kt$3.subtract(kt$3.getDate(e),51,"w"),n=kt$3.startOf(r,"w"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLastYear(e,a){let r=kt$3.subtract(kt$3.getDate(e),364,"d"),n=kt$3.startOf(r,"M"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLast2years(e,a){let r=kt$3.subtract(kt$3.getDate(e),728,"d"),n=kt$3.startOf(r,"M"),s=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:n,endDate:s}}static selectLast5years(e,a){let r=kt$3.subtract(kt$3.getDate(e),5,"y"),n=kt$3.startOf(r,"M"),s=kt$3.getDate(a),i=kt$3.startOf(kt$3.getDate(e),"d");return {startDate:s>n?s:n,endDate:i}}static selectAllTime(e,a){return {startDate:kt$3.getDate(a),endDate:kt$3.getDate(e)}}static getStartOfDate(e,a){let r=kt$3.getTimeUnitByAggregation(a);return kt$3.startOf(kt$3.getDate(e),r)}static getStartOfAddDate(e,a){let r=kt$3.getTimeUnitByAggregation(a);return kt$3.startOfAdd(kt$3.getDate(e),1,r)}static getStartOfSubtractDate(e,a){let r=kt$3.getTimeUnitByAggregation(a);return kt$3.startOfSubtract(kt$3.getDate(e),1,r)}setDateEnd(e,a=false){this.dateEnd=kt$3.format(kt$3.getDate(e)),this.refreshDates(a);}updateAggregation(e){this.aggregation.set(e),this.refreshDates();}contains(e){let a=c.getStartOfDate(e,this.aggregation());return this.dates().some(r=>{let n=c.getStartOfDate(r,this.aggregation());return kt$3.isSame(a,n)})}left(){let e=this.dates(),a=e[e.length-1];this.dateEnd=kt$3.format(c.getStartOfSubtractDate(a,this.aggregation())),this.refreshDates();}right(){let e=this.dates(),a=e[e.length-1];this.dateEnd=kt$3.format(c.getStartOfAddDate(a,this.aggregation())),this.refreshDates();}refreshDates(e=false){let a=c.getStartOfDate(this.dateEnd,this.aggregation()),r=[kt$3.format(a)];for(let n=1;n<this.count;n+=1){let s=c.getStartOfSubtractDate(r[0],this.aggregation()),i=c.getStartOfAddDate(r[r.length-1],this.aggregation()),g=c.getStartOfDate(this.firstDate,this.aggregation()),o=kt$3.isBefore(s,g),l=kt$3.isAfter(i,kt$3.getDate(this.lastDate));e||o&&!l?r.push(kt$3.format(i)):r.unshift(kt$3.format(s));}this.dates.set(r),this.onChange(r);}};var y$3=(d=>(d.custom="",d.last7days="selectLast7days",d.last14days="selectLast14days",d.last30days="selectLast30days",d.last90days="selectLast90days",d.last365days="selectLast365days",d.allTime="selectAllTime",d.last4weeks="selectLast4weeks",d.last10weeks="selectLast10weeks",d.last52weeks="selectLast52weeks",d.lastYear="selectLastYear",d.last2years="selectLast2years",d.last5years="selectLast5years",d))(y$3||{}),U$8=Object.values(y$3);var R$9="2015-01-01",E$5="2008-01-01";var M$9=(a=>(a.AllTime="allTime",a.DateRange="dateRange",a))(M$9||{});var p$d=class c{static getMinMaxPeriodByAggregation(e,a,r){let n=a,s=e;switch(r){case "week":s=kt$3.startOf(e,"w"),n=kt$3.endOf(a,"w");break;case "month":s=kt$3.startOf(e,"M"),n=kt$3.endOf(a,"M");break;case "year":s=kt$3.startOf(e,"y"),n=kt$3.endOf(a,"y");break}return {min:n,max:s}}static getRangeByNewAggregation(e,a,r,n){let s=c.getMinMaxPeriodByAggregation(kt$3.getDate(e.start),kt$3.getDate(e.end),n),i=kt$3.getDate(r),g=kt$3.getDate(a),o=s.min>i?i:s.min,l=s.max<g?g:s.max;return {start:kt$3.unix(l),end:kt$3.unix(o),period:e.period}}static getRangeValue(e,a,r){return {start:e?kt$3.unix(kt$3.startOf(e,"d")):null,end:a?kt$3.unix(kt$3.startOf(a,"d")):null,period:r}}static getRangeByPeriod(e,a,r){let n=f$e[e](r,a);return c.getRangeValue(n.startDate,n.endDate,e)}
163static getDateForPeriod(e,a,r){let n=kt$3.getDate(a),s=f$e[e](r,a);return {startDate:kt$3.isSame(s.startDate,n)||kt$3.isAfter(s.startDate,n)?s.startDate:n,endDate:s.endDate}}};var v$6=class c{static deepCopy(e){return JSON.parse(JSON.stringify(e))}static getDomain(){return `${window.location.protocol}//${window.location.hostname}`}static getLockTooltipText(e,a){return e.isGuest()?"apps.log_to_unlock":e.isPremium()?a&&!e.hasAccess(a)?"apps.access_message":"":"apps.premium_message"}static getLockTooltipTextByFeature(e,a,r=true){return e.isGuest()?"apps.log_to_unlock":!e.isPremium()&&r?"apps.premium_message":a?"apps.access_message":""}static getLockText(e,a,r){return e?"apps.log_to_unlock":a?r?"":"screen.no_access":"screen.premium"}static getLockTextLogIn(e,a){return e?"appPage.log_in_to_unlock":a?"apps.premium_message":"apps.access_message"}static getUrlDatepickerObserver(e,a,r,n,s,i,g,o,l=Ms$2(void 0)){return qm$2({dateTo:a,dateFrom:e,period:r,datepickerMode:l}).pipe(wu$2(0),Tu$2(Tu$1),ge$9(D=>c.getDatepickerState(D,n,s,i,g,o)),Tu$2(Tu$1))}static getDatepickerState(e,a,r,n,s,i){if(e.dateTo===r&&e.dateFrom===a){let D;return e.period?D=E$9(D$m({},p$d.getRangeByPeriod(e.period,s,i)),{datepickerMode:e.datepickerMode}):D={start:null,end:null,period:null,datepickerMode:"allTime"},D}let g=s;e.dateFrom&&(g=kt$3.unix(kt$3.getDate(e.dateFrom))>=kt$3.unix(kt$3.getDate(s))?e.dateFrom:s);let o=i;return e.dateTo&&(o=kt$3.unix(kt$3.getDate(e.dateTo))<=kt$3.unix(kt$3.getDate(i))?e.dateTo:i),kt$3.unix(kt$3.getDate(g))>kt$3.unix(kt$3.getDate(o))&&(g=o),E$9(D$m({},p$d.getRangeValue(kt$3.getDate(g),kt$3.getDate(o),"")),{datepickerMode:e.datepickerMode})}static getDatepickerObserver(e,a,r,n){return qm$2({aggregation:a,datepicker:e}).pipe(wu$2(0),Tu$2(Tu$1),ge$9(s=>s.datepicker.period?{period:s.datepicker.period,dateTo:n,dateFrom:r,aggregation:s.aggregation,datepickerMode:s.datepicker.datepickerMode}:{period:"",dateTo:kt$3.format(kt$3.unixToDate(s.datepicker.end)),dateFrom:kt$3.format(kt$3.unixToDate(s.datepicker.start)),aggregation:s.aggregation,datepickerMode:s.datepicker.datepickerMode}))}static getUrlSingleSelectDatepickerObserver(e,a,r){return qm$2({date:e,aggregation:a}).pipe(wu$2(0),Tu$2(Tu$1),ge$9(n=>{let s=kt$3.getTimeUnitByAggregation(n.aggregation),i=kt$3.startOf(kt$3.getDate(n.date),s),g=kt$3.endOf(kt$3.getDate(n.date),s),o=kt$3.getDate(r),l=kt$3.getDate(R$9),D={start:0,end:0,period:""};return kt$3.isBefore(i,l)?D.start=kt$3.unix(l):D.start=kt$3.unix(i),kt$3.isAfter(g,o)?D.end=kt$3.unix(o):D.end=kt$3.unix(g),D}),Tu$2(Tu$1))}static getDefaultDate(e,a){if(!kt$3.isValid(a))throw new Error("Invalid date format. Please provide a valid date.");let r=kt$3.getTimeUnitByAggregation(e),n=kt$3.startOf(kt$3.getDate(a),r);return kt$3.format(n)}static getUniqueIndex(e){return e.filter(a=>a).join("+")}};
164var l$e="playstation",a$e=`/${l$e}`;var m$9="xbox",i$g=`/${m$9}`;var p$c="steam",e$j=`/${p$c}`;var n$g=class n{static getDefaultDate(t){return v$6.getDefaultDate("day",t)}static getDefaultUrlByPlatform(t){return {mobile:O$a.DefaultNavigateUrl,steam:e$j,xbox:i$g,playStation:a$e}[t]}};var l$d=class i{constructor(e=null,t=void 0){this.validValues=e;this.limit=t;}static{this.ESCAPED_COMMA="%2C";}urlToValue(e,t=this.validValues){let r=e.split(",").map(s=>s.split(i.ESCAPED_COMMA).join(",")).filter(s=>s&&(!t||t.includes(s)));return this.limit?r.slice(0,this.limit):r}valueToUrl(e){return e.slice(0,this.limit).map(t=>t.split(",").join(i.ESCAPED_COMMA)).join(",")}};var N$9="dev_features",U$7="dev_features_off",p$b=(a=>(a.debugInfo="debugInfo",a.themeSwitch="themeSwitch",a.featureIntShowAllApps="featureIntShowAllApps",a.iapdShowAllOffers="iapdShowAllOffers",a.iapdSaveSelectedTabInLs="iapdSaveSelectedTabInLs",a.platforms="platforms",a.steamDevData="steamDevData",a.adIntDev="adIntDev",a.platformCrossLinks="platformCrossLinks",a.loInsights="loInsights",a.advSearchAi="advSearchAi",a.youtubeStreams="youtubeStreams",a.releaseNotes="releaseNotes",a.headerNotifications="headerNotifications",a.userConfigEditor="userConfigEditor",a))(p$b||{}),D$c=class i{constructor(){this.features={};this.featuresSignal={};this.labelsMap={debugInfo:"Debug Info (display debug info on Native Apps tab)",themeSwitch:"Theme Switch",featureIntShowAllApps:"FeatureInt: show all apps",iapdShowAllOffers:"IAPD: show all offers",iapdSaveSelectedTabInLs:"IAPD: save selected tab (app-select) in local storage",platforms:"Platforms",steamDevData:"Steam Dev Data",adIntDev:"Ad Int Dev Data",platformCrossLinks:"Display Platform Cross 
164Links",loInsights:"LO Insights",advSearchAi:"Advanced Search: AI filter search",youtubeStreams:"YouTube Live Streams Metrics",releaseNotes:"Release Notes",headerNotifications:"Header Notifications: show upcoming (not started yet)",userConfigEditor:"User Config Page"};this.localStorageKey="dev-features";this.localStorageService=D$l(xt$5);this.userService=D$l(ve$6);this.destroyRef=D$l(st$b);this.queryParser=new l$d(Object.values(p$b));c$g(p$b).forEach(e=>{this.features[e]=new rr$4(false);let t=fi$4(false);this.features[e].pipe(U$a(this.destroyRef)).subscribe(r=>t.set(r)),this.featuresSignal[e]=t.asReadonly();}),this.applyFeatureStatus(),this.userService.user.pipe(Tn$3(e=>!!e)).subscribe(()=>this.applyFeatureStatus());}applyFromQuery(e,t){let r=this.parseQueryParam(e),s=this.parseQueryParam(t);if(!r.length&&!s.length)return;let n=this.localStorageService.get(this.localStorageKey)||{};r.forEach(c=>n[c]=true),s.forEach(c=>n[c]=false),this.localStorageService.set(this.localStorageKey,n),this.applyFeatureStatus();}toggle(e,t){let r=this.localStorageService.get(this.localStorageKey)||{};r[e]=t,this.localStorageService.set(this.localStorageKey,r),this.applyFeatureStatus();}parseQueryParam(e){if(!e)return [];let t=Array.isArray(e)?e.join(","):e;return this.queryParser.urlToValue(t)}applyFeatureStatus(){if(!this.userService.isPremium()){t$k(this.features).forEach(t=>this.features[t].next(false));return}let e=this.localStorageService.get(this.localStorageKey)||{};t$k(this.features).forEach(t=>{this.features[t].next(!!e[t]);});}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};
164var m$8=class r{constructor(){this.localStorageService=D$l(xt$5);this.userService=D$l(ve$6);this.featureToggleService=D$l(D$c);}static{this.LsKey="preferred-platform";}save(e){this.localStorageService.set(r.LsKey,e);}resolve(){let e=this.localStorageService.get(r.LsKey);return !e||!Object.values(Oe$6).includes(e)?"mobile":this.hasAccess(e)?e:"mobile"}resolveUrl(){return n$g.getDefaultUrlByPlatform(this.resolve())}hasAccess(e){let t=this.featureToggleService.featuresSignal.platforms();switch(e){case "xbox":return t||this.userService.hasAccess(E$6.xbox);case "playStation":return t||this.userService.hasAccess(E$6.playstation);default:return  true}}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var n$f="live-ops-insights",s$l="/live-ops-insights",t$i="dashboard",o$k="by-title",e$i=`${s$l}/${t$i}`,i$f=`${s$l}/${o$k}`;var o$j="demo-request",e$h=`/${o$j}`;var s$k="loading",c$b="top-charts/apps",p$a=e$h;var n$e=class e{constructor(){this.analyticsService=D$l(L$3);}open(){this.analyticsService.send("feature_popup_open"),window.open(e$h,"_blank");}static{this.\u0275fac=function(a){return new(a||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var a$d=class r{constructor(){this.localStorageService=D$l(xt$5);this.disabled=this.localStorageService.get(r.DisableKey);this.observer=new IntersectionObserver(t=>{t.forEach(e=>{if(!e.isIntersecting)return;let i=e.target;i[r.KEY]&&(i[r.KEY](),delete i[r.KEY],this.observer.unobserve(e.target));});});}static{this.KEY="intersectionCallback";}static{this.DisableKey="disable_visible_observer_service";}add(t,e,i){if(this.disabled){e();return}if(typeof this.observer?.observe!="function"){e();return}t[r.KEY]=()=>e(),this.observer.observe(t),i.onDestroy(()=>this.observer.unobserve(t));}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var l$c={timeout:500,threshold:30};var r$8=class e{constructor(t){this.elementRef=t;}static{this.htmlRegex=new RegExp(/<\/?[a-z][\s\S]*>|(&)(?:\b(?:[a-z]{2,8}\d{0,2})|#[0-9a-f]+);/i);}static isHtml(t){return e.htmlRegex.test(t)}ngOnChanges(){e.isHtml(this.data)?this.elementRef.nativeElement.innerHTML=this.data:this.elementRef.nativeElement.textContent=this.data;}static{this.\u0275fac=function(m){return new(m||e)(Jr$4(Gr$4))};}static{this.\u0275dir=dw({type:e,selectors:[["","customInnerHtml",""]],inputs:{data:[0,"customInnerHtml","data"]},features:[Ev$1]});}};var e$g=class t{enable(){}disable(){}static{this.\u0275fac=function(o){return new(o||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};var A$8=class o{constructor(){this.noTranslate=VV(false,{transform:QV});this.message=new rr$4("");this.updatePopper=new tt$b;}ngAfterViewInit(){this.popper?.update();}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["text-tooltip"]],inputs:{noTranslate:[1,"noTranslate"],message:"message",translateOptions:"translateOptions",popper:"popper"},outputs:{updatePopper:"updatePopper"},decls:7,vars:8,consts:[[1,"popper-tooltip"],[1,"text","d-inline-block","text-left","word-wrap",3,"customInnerHtml"],["data-popper-arrow",""]],template:function(t,i){if(t&1&&(Zg$1(0),bb(1,"async"),Zi$3(2,"div",0),Eg$1(3,"div",1),bb(4,"translate"),bb(5,"translate"),kl$2(),Eg$1(6,"div",2)),t&2){let a=_b(1,1,i.message);AE(3),Ig$1("customInnerHtml",i.noTranslate()?a:i.translateOptions?Mb(4,3,a,i.translateOptions):_b(5,6,a));}},dependencies:[An$3,fe$8,r$8,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
164--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:block;pointer-events:none;border-radius:var(--app-info-border-radius);background-color:var(--tooltip-bg);color:var(--tooltip-text)}[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{position:relative;font-size:14px;line-height:20px;padding:8px 12px;max-width:367px;width:100%}"]});}};function ve$5(o){return e=>new x$g(t=>{let i=m=>o.run(()=>t.next(m)),a=m=>o.run(()=>t.error(m)),l=()=>o.run(()=>t.complete());return e.subscribe(i,a,l)})}var O$7=class O{static getOutOfDocumentEventObserve(){return Ns$2(document,"mouseleave",{passive:true,capture:true}).pipe(Tn$3(e=>e.pageY<0))}};var c$a=class o{static preventEvent(e){return Lu$2(t=>{e&&(t.preventDefault(),t.stopPropagation());})}getOnClose(e){return iy(iy(Ns$2(document,"mousemove"),Ns$2(document,"touchstart").pipe(o.preventEvent(e.stopPropagation))).pipe(Tn$3(t=>!e.safeElements.find(i=>i.contains(t.target)))),Ns$2(document,"click").pipe(o.preventEvent(e.stopPropagation),Tn$3(()=>e.closeOnClick&&!a$g.isTouchDevice())),O$7.getOutOfDocumentEventObserve(),Ns$2(window,"scroll",{passive:true,capture:true}),Ns$2(window,"resize"),Ns$2(window,"keyup")).pipe(Mu$2())}};var f$d=class o{constructor(e,t,i,a,l,m){this.hoverTargetRef=e;this.component=t;this.config=i;this.amDialogService=a;this.ngZone=l;this.anchorRef=m;this.onOpen=new de$c;this.onDestroy=new de$c;this.amDialogOverlay=null;m===void 0&&(this.anchorRef=e),this.onElementHover=ay(Ns$2(this.hoverTargetRef.nativeElement,"mouseenter").pipe(Tn$3(()=>!a$g.isTouchDevice())),Ns$2(this.hoverTargetRef.nativeElement,"touchstart").pipe(c$a.preventEvent(this.config.stopPropagation),Ru$2(s=>{let p=s.touches[0];return p?Ns$2(document,"touchend").pipe(Mu$2(d=>!!o.findTouchById(d.changedTouches,p.identifier)),Tn$3(d=>o.isTap(p,o.findTouchById(d.changedTouches,p.identifier))),ge$9(()=>s)):He$9}))).pipe(bu$2(()=>this.onDestroy.next()),Tn$3(()=>!this.amDialogOverlay),this.config.useDebounceForPopper?wu$2(5):Lu$2(()=>{}),Ru$2(s=>{if(!this.config.minHoverDuration||s.type!=="mouseenter")return Ms$2(s);let p=new de$c;new c$a().getOnClose({safeElements:[this.hoverTargetRef.nativeElement]}).subscribe(()=>{p.next(null),p.complete();});let de=setTimeout(()=>{p.next(s),p.complete(),clearTimeout(de);},this.config.minHoverDuration);return p}),Tn$3(s=>!!s),ve$5(this.ngZone));}static findTouchById(e,t){return Array.from(e).find(i=>i.identifier===t)}static isTap(e,t){let i=l$c.threshold,a=e.clientX-(t?.clientX??e.clientX),l=e.clientY-(t?.clientY??e.clientY);return Math.abs(a)<=i&&Math.abs(l)<=i}static getPopperConfig(e){let t=Jt$7.getTooltipConfig(e?.placement);return t.middleware.push(se$a({element:St$7.getArrowElm()})),Jt$7.mergePopperConfig(t,e||{})}open(){this.onOpen.next(),this.amDialogOverlay=this.amDialogService.open(this.component,{containerClass:this.config.containerClass?this.config.containerClass:"tooltip-container",animationDuration:0,backdropClass:this.config.backdropClass?this.config.backdropClass:"fixed-tooltip-backdrop",backdropInClass:"",backdropOutClass:"",dialogInClass:"",dialogOutClass:"",ScrollStrategyInterface:this.config.scrollStrategyInterface?this.config.scrollStrategyInterface:new e$g}),this.instance=this.amDialogOverlay.instance,this.config.nested&&(this.amDialogOverlay.container.style.pointerEvents="none"),this.amDialogOverlay.instance.popper=new St$7(this.anchorRef.nativeElement,this.amDialogOverlay.container,o.getPopperConfig(this.config.popper));let e=new W$f;this.onClose=new de$c,e.add(this.amDialogOverlay.afterClosed().subscribe(()=>{this.amDialogOverlay=null,this.onClose.next(),this.onClose.complete(),e.unsubscribe();}));let t=this.config.closeStrategy?this.config.closeStrategy:new c$a;e.add(iy(t.getOnClose({safeElements:[this.amDialogOverlay.container,this.hoverTargetRef.nativeElement],stopPropagation:this.config.stopPropagation,closeOnClick:this.config.closeOnClick}),Ns$2(document,"mouseleave")).subscribe(()=>this.close()));}close(){this.amDialogOverlay?.dispose();}};var w$7=class o{constructor(e,t,i){this.amDialogService=e;this.analyticsService=t;this.ngZone=i;this.activeTooltip=null;}getTooltip(e,t,i,a){let l=new f$d(e,t,i,this.amDialogService,this.ngZone,a);return l.onOpen.pipe(ku$2(l.onDestroy)).subscribe(()=>{i.nested||(this.activeTooltip&&this.activeTooltip!==l&&this.activeTooltip.close(),this.activeTooltip=l),i.analyticsEvent&&this.analyticsService.send(i.analyticsEvent,i.analyticsEventValues??[]);}),l}
164closeActiveTooltip(){this.activeTooltip?.close(),this.activeTooltip=null;}static{this.\u0275fac=function(t){return new(t||o)(me$b(y$5),me$b(L$3),me$b($$b))};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var fe$6=class o{constructor(){this.textTooltipNoTranslate=VV(false,{transform:QV});this.popperMiddlewares=[];this.placement="top";this.minHoverDuration=null;this.closeOnClick=false;this.tooltipStopPropagation=false;this.disable=false;this.nested=false;this.textSubject=new rr$4("");this.hoverTargetRef=D$l(Gr$4);this.amTooltipService=D$l(w$7);this.destroyRef=D$l(st$b);this.visibleObserverService=D$l(a$d);}set text(e){this.textSubject.next(e);}get text(){return this.textSubject.getValue()}ngOnInit(){this.destroyRef.onDestroy(()=>this.amTooltip?.close());let e=this.textTooltipAnchor||this.hoverTargetRef;this.visibleObserverService.add(this.hoverTargetRef.nativeElement,()=>{this.amTooltip=this.amTooltipService.getTooltip(this.hoverTargetRef,A$8,{stopPropagation:this.tooltipStopPropagation,closeOnClick:this.closeOnClick,minHoverDuration:this.minHoverDuration,analyticsEvent:this.analyticsEvent,analyticsEventValues:this.analyticsEventPage?[this.analyticsEventPage]:[],useDebounceForPopper:true,nested:this.nested,popper:{placement:this.placement,middleware:this.popperMiddlewares}},e),this.amTooltip.onElementHover.pipe(Tn$3(()=>!!this.text&&!this.disable),U$a(this.destroyRef)).subscribe(()=>{this.amTooltip.open(),this.amTooltip.instance.message=this.textSubject,this.amTooltip.instance.translateOptions=this.translateOptions,this.amTooltip.instance.noTranslate=this.textTooltipNoTranslate;});},this.destroyRef);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275dir=dw({type:o,selectors:[["","textTooltip",""]],inputs:{textTooltipNoTranslate:[1,"textTooltipNoTranslate"],popperMiddlewares:"popperMiddlewares",placement:"placement",analyticsEvent:"analyticsEvent",analyticsEventPage:"analyticsEventPage",text:[0,"textTooltip","text"],minHoverDuration:"minHoverDuration",translateOptions:"translateOptions",closeOnClick:"closeOnClick",tooltipStopPropagation:"tooltipStopPropagation",disable:[0,"textTooltipDisable","disable"],nested:"nested",textTooltipAnchor:"textTooltipAnchor"}});}};function _$3(t,l){if(t&1){let e=DT();Zi$3(0,"img",2),_g$1("click",function(){Rd$2(e);let A=NT();return kd$2(A.demoRequestService.open())}),kl$2();}if(t&2){let e=NT();Ig$1("analyticsEvent",e.event())("textTooltip",e.tooltipText());}}function x$8(t,l){if(t&1&&(Zi$3(0,"a",1),Eg$1(1,"img",0),kl$2()),t&2){let e=NT();Ig$1("href",e.DemoRequestUrl,qp$2),AE(),Ig$1("analyticsEvent",e.event())("textTooltip",e.tooltipText());}}var h$9=class t{constructor(){this.event=VV("dashboards_show_country_restriction_tooltip");this.tooltipText=VV("screen.country_restriction_tooltip_text");this.feature=VV();this.demoRequestService=D$l(n$e);this.DemoRequestUrl=e$h;}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["no-available-data-icon"]],inputs:{event:[1,"event"],tooltipText:[1,"tooltipText"],feature:[1,"feature"]},decls:2,vars:1,consts:[["src","/assets/angular2/img/icons/lock-grey-70.svg",1,"lock",3,"analyticsEvent","textTooltip"],["target","_blank",2,"height","21px",3,"href"],["src","/assets/angular2/img/icons/lock-grey-70.svg",1,"lock",3,"click","analyticsEvent","textTooltip"]],template:function(e,c){e&1&&uT(0,_$3,1,2,"img",0)(1,x$8,2,3,"a",1),e&2&&dT(c.feature()?0:1);},dependencies:[fe$6],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
164--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex}[_nghost-%COMP%]   .lock[_ngcontent-%COMP%]{cursor:pointer;width:16px;height:16px}"]});}};var n$d=class n{static isAdultContent(t){let e=["adult_only_sexual_content","frequent_sexual_content"];return !!t?.find(r=>e.includes(r))}static isNoIndexContent(t){let e=new Set(["some_sexual_content","adult_only_sexual_content","frequent_sexual_content","mature_content","frequent_violence"]);return !!t?.find(r=>e.has(r))}};var i$e=class o{transform(t){return n$d.isAdultContent(t)}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275pipe=fw({name:"steamIsAdultContent",type:o,pure:true});}};var e$f=class e{static{this.infoMap={total_revenue:{text:"platform.total_revenue_tooltip",analyticsEvent:"dashboards_show_total_revenue_help_tooltip"},base_revenue:{text:"platform.base_revenue_tooltip",analyticsEvent:"dashboards_show_base_revenue_help_tooltip"},iap_revenue:{text:"platform.iap_revenue_tooltip",analyticsEvent:"dashboards_show_revenue_help_tooltip"},dlc_revenue:{text:"platform.dlc_revenue_tooltip",analyticsEvent:"dashboards_show_dlc_revenue_help_tooltip"},copies_sold:{text:null,analyticsEvent:null},rating:{text:"steam.tooltip_rating_text",analyticsEvent:"rating_help_tooltip"}};}};var o$i=class t{static{this.info={active_wishlists:{text:"steam.active_wishlists_tooltip",analyticsEvent:"dashboards_show_active_wishlists_help_tooltip"},converted_wishlists:{text:"steam.converted_wishlists_tooltip",analyticsEvent:"dashboards_show_converted_wishlists_help_tooltip"},new_wishlists:{text:"steam.new_wishlists_tooltip",analyticsEvent:"dashboards_show_new_wishlists_help_tooltip"}};}static{this.newWishlistsLast30DaysInfo={text:"steam.new_wishlists_tooltip_30d",analyticsEvent:t.info.new_wishlists.analyticsEvent};}};var a$c=class y{static getQueriesChunks(r,s){if(s<=0)throw new Error("Chunk size must be greater than 0");let n=[];for(let e=0;e<r.length;e+=s)n.push(r.slice(e,e+s));return n}static requestByChunksParallel(r,s,n,e,o){if(r.length===0)return Ms$2(o);let b=y.getQueriesChunks(r,s);return Wm$2(b.map(u=>n(u))).pipe(ge$9(u=>u.reduce((Q,c)=>e(Q,c),o)))}};var K$6=H$d((at,q)=>{var A=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,et=typeof AbortController=="function",w=et?AbortController:class{constructor(){this.signal=new N;}abort(){this.signal.dispatchEvent("abort");}},it=typeof AbortSignal=="function",st=typeof w.AbortSignal=="function",N=it?AbortSignal:st?w.AbortController:class{constructor(){this.aborted=false,this._listeners=[];}dispatchEvent(t){if(t==="abort"){this.aborted=true;let e={type:t,target:this};this.onabort(e),this._listeners.forEach(i=>i(e),this);}}onabort(){}addEventListener(t,e){t==="abort"&&this._listeners.push(e);}removeEventListener(t,e){t==="abort"&&(this._listeners=this._listeners.filter(i=>i!==e));}},O=new Set,C=(r,t)=>{let e=`LRU_CACHE_OPTION_${r}`;b(e)&&k(e,`${r} option`,`options.${t}`,y);},x=(r,t)=>{let e=`LRU_CACHE_METHOD_${r}`;if(b(e)){let{prototype:i}=y,{get:s}=Object.getOwnPropertyDescriptor(i,r);k(e,`${r} method`,`cache.${t}()`,s);}},rt=(r,t)=>{let e=`LRU_CACHE_PROPERTY_${r}`;if(b(e)){let{prototype:i}=y,{get:s}=Object.getOwnPropertyDescriptor(i,r);k(e,`${r} property`,`cache.${t}`,s);}},V=(...r)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...r):console.error(...r);},b=r=>!O.has(r),k=(r,t,e,i)=>{O.add(r);let s=`The ${t} is deprecated. Please use ${e} instead.`;V(s,"DeprecationWarning",r,i);},v=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r),B=r=>v(r)?r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?m:null:null,m=class extends Array{constructor(t){super(t),this.fill(0);}},E=class{constructor(t){if(t===0)return [];let e=B(t);this.heap=new e(t),this.length=0;}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}}
164,y=class r{constructor(t={}){let{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:h,updateAgeOnGet:n,updateAgeOnHas:a,allowStale:d,dispose:o,disposeAfter:c,noDisposeOnSet:l,noUpdateTTL:p,maxSize:S=0,sizeCalculation:u,fetchMethod:f,fetchContext:g,noDeleteOnFetchRejection:Y,noDeleteOnStaleGet:Q}=t,{length:F,maxAge:I,stale:M}=t instanceof r?{}:t;if(e!==0&&!v(e))throw new TypeError("max option must be a nonnegative integer");let L=e?B(e):Array;if(!L)throw new Error("invalid max value: "+e);if(this.max=e,this.maxSize=S,this.sizeCalculation=u||F,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=f||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=g,!this.fetchMethod&&g!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(e).fill(null),this.valList=new Array(e).fill(null),this.next=new L(e),this.prev=new L(e),this.head=0,this.tail=0,this.free=new E(e),this.initialFill=1,this.size=0,typeof o=="function"&&(this.dispose=o),typeof c=="function"?(this.disposeAfter=c,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!l,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!Y,this.maxSize!==0){if(!v(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking();}if(this.allowStale=!!d||!!M,this.noDeleteOnStaleGet=!!Q,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!a,this.ttlResolution=v(s)||s===0?s:1,this.ttlAutopurge=!!h,this.ttl=i||I||0,this.ttl){if(!v(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking();}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let T="LRU_CACHE_UNBOUNDED";b(T)&&(O.add(T),V("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",T,r));}M&&C("stale","allowStale"),I&&C("maxAge","ttl"),F&&C("length","sizeCalculation");}getRemainingTTL(t){return this.has(t,{updateAgeOnHas:false})?1/0:0}initializeTTLTracking(){this.ttls=new m(this.max),this.starts=new m(this.max),this.setItemTTL=(i,s,h=A.now())=>{if(this.starts[i]=s!==0?h:0,this.ttls[i]=s,s!==0&&this.ttlAutopurge){let n=setTimeout(()=>{this.isStale(i)&&this.delete(this.keyList[i]);},s+1);n.unref&&n.unref();}},this.updateItemAge=i=>{this.starts[i]=this.ttls[i]!==0?A.now():0;};let t=0,e=()=>{let i=A.now();if(this.ttlResolution>0){t=i;let s=setTimeout(()=>t=0,this.ttlResolution);s.unref&&s.unref();}return i};this.getRemainingTTL=i=>{let s=this.keyMap.get(i);return s===void 0?0:this.ttls[s]===0||this.starts[s]===0?1/0:this.starts[s]+this.ttls[s]-(t||e())},this.isStale=i=>this.ttls[i]!==0&&this.starts[i]!==0&&(t||e())-this.starts[i]>this.ttls[i];}updateItemAge(t){}setItemTTL(t,e,i){}isStale(t){return  false}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new m(this.max),this.removeItemSize=t=>this.calculatedSize-=this.sizes[t],this.requireSize=(t,e,i,s)=>{if(!v(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!v(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return i},this.addItemSize=(t,e,i,s)=>{this.sizes[t]=s;let h=this.maxSize-this.sizes[t];for(;this.calculatedSize>h;)this.evict(true);this.calculatedSize+=this.sizes[t];};}removeItemSize(t){}addItemSize(t,e,i,s){}requireSize(t,e,i,s){if(i||s)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:t=this.allowStale}={}){if(this.size)for(let e=this.tail;!(!this.isValidIndex(e)||((t||!this.isStale(e))&&(yield e),e===this.head));)e=this.prev[e];}*rindexes({allowStale:t=this.allowStale}={}){if(this.size)for(let e=this.head;!(!this.isValidIndex(e)||((t||!this.isStale(e))&&(yield e),e===this.tail));)e=this.next[e];}isValidIndex(t){return this.keyMap.get(this.keyList[t])===t}*entries(){for(let t of this.indexes())yield [this.keyList[t],this.valList[t]];}*rentries(){for(let t of this.rindexes())yield [this.keyList[t],this.valList[t]];}*keys(){for(let t of this.indexes())yield this.keyList[t];}*rkeys(){for(let t of this.rindexes())yield this.keyList[t];}*values(){for(let t of this.indexes())yield this.valList[t];}*rvalues(){for(let t of this.rindexes())yield this.valList[t];}[Symbol.iterator](){return this.entries()}find(t,e={}){for(let i of this.indexes())if(t(this.valList[i],this.keyList[i],this))return this.get(this.keyList[i],e)}forEach(t,e=this){for(let i of this.indexes())t.call(e,this.valList[i],this.keyList[i],this);}rforEach(t,e=this){for(let i of this.rindexes())t.call(e,this.valList[i],this.keyList[i],this);}get prune(){return x("prune","purgeStale"),this.purgeStale}purgeStale(){let t=false;for(let e of this.rindexes({allowStale:true}))this.isStale(e)&&(this.delete(this.keyList[e]),t=true);return t}dump(){let t=[];for(let e of this.indexes({allowStale:true})){let i=this.keyList[e],s=this.valList[e],n={value:this.isBackgroun
164dFetch(s)?s.__staleWhileFetching:s};if(this.ttls){n.ttl=this.ttls[e];let a=A.now()-this.starts[e];n.start=Math.floor(Date.now()-a);}this.sizes&&(n.size=this.sizes[e]),t.unshift([i,n]);}return t}load(t){this.clear();for(let[e,i]of t){if(i.start){let s=Date.now()-i.start;i.start=A.now()-s;}this.set(e,i.value,i);}}dispose(t,e,i){}set(t,e,{ttl:i=this.ttl,start:s,noDisposeOnSet:h=this.noDisposeOnSet,size:n=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL}={}){n=this.requireSize(t,e,n,a);let o=this.size===0?void 0:this.keyMap.get(t);if(o===void 0)o=this.newIndex(),this.keyList[o]=t,this.valList[o]=e,this.keyMap.set(t,o),this.next[this.tail]=o,this.prev[o]=this.tail,this.tail=o,this.size++,this.addItemSize(o,e,t,n),d=false;else {let c=this.valList[o];e!==c&&(this.isBackgroundFetch(c)?c.__abortController.abort():h||(this.dispose(c,t,"set"),this.disposeAfter&&this.disposed.push([c,t,"set"])),this.removeItemSize(o),this.valList[o]=e,this.addItemSize(o,e,t,n)),this.moveToTail(o);}if(i!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),d||this.setItemTTL(o,i,s),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(false):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let t=this.valList[this.head];return this.evict(true),t}}evict(t){let e=this.head,i=this.keyList[e],s=this.valList[e];return this.isBackgroundFetch(s)?s.__abortController.abort():(this.dispose(s,i,"evict"),this.disposeAfter&&this.disposed.push([s,i,"evict"])),this.removeItemSize(e),t&&(this.keyList[e]=null,this.valList[e]=null,this.free.push(e)),this.head=this.next[e],this.keyMap.delete(i),this.size--,e}has(t,{updateAgeOnHas:e=this.updateAgeOnHas}={}){let i=this.keyMap.get(t);return i!==void 0&&!this.isStale(i)?(e&&this.updateItemAge(i),true):false}peek(t,{allowStale:e=this.allowStale}={}){let i=this.keyMap.get(t);if(i!==void 0&&(e||!this.isStale(i)))return this.valList[i]}backgroundFetch(t,e,i,s){let h=e===void 0?void 0:this.valList[e];if(this.isBackgroundFetch(h))return h;let n=new w,a={signal:n.signal,options:i,context:s},d=p=>(n.signal.aborted||this.set(t,p,a.options),p),o=p=>{if(this.valList[e]===l&&(!i.noDeleteOnFetchRejection||l.__staleWhileFetching===void 0?this.delete(t):this.valList[e]=l.__staleWhileFetching),l.__returned===l)throw p},c=p=>p(this.fetchMethod(t,h,a)),l=new Promise(c).then(d,o);return l.__abortController=n,l.__staleWhileFetching=h,l.__returned=null,e===void 0?(this.set(t,l,a.options),e=this.keyMap.get(t)):this.valList[e]=l,l}isBackgroundFetch(t){return t&&typeof t=="object"&&typeof t.then=="function"&&Object.prototype.hasOwnProperty.call(t,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(t,"__returned")&&(t.__returned===t||t.__returned===null)}fetch(p){return K$g(this,arguments,function*(t,{allowStale:e=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:h=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:a=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:o=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,fetchContext:l=this.fetchContext}={}){if(!this.fetchMethod)return this.get(t,{allowStale:e,updateAgeOnGet:i,noDeleteOnStaleGet:s});let S={allowStale:e,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:h,noDisposeOnSet:n,size:a,sizeCalculation:d,noUpdateTTL:o,noDeleteOnFetchRejection:c},u=this.keyMap.get(t);if(u===void 0){let f=this.backgroundFetch(t,u,S,l);return f.__returned=f}else {let f=this.valList[u];if(this.isBackgroundFetch(f))return e&&f.__staleWhileFetching!==void 0?f.__staleWhileFetching:f.__returned=f;if(!this.isStale(u))return this.moveToTail(u),i&&this.updateItemAge(u),f;let g=this.backgroundFetch(t,u,S,l);return e&&g.__staleWhileFetching!==void 0?g.__staleWhileFetching:g.__returned=g}})}get(t,{allowStale:e=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet}={}){let h=this.keyMap.get(t);
164if(h!==void 0){let n=this.valList[h],a=this.isBackgroundFetch(n);return this.isStale(h)?a?e?n.__staleWhileFetching:void 0:(s||this.delete(t),e?n:void 0):a?void 0:(this.moveToTail(h),i&&this.updateItemAge(h),n)}}connect(t,e){this.prev[e]=t,this.next[t]=e;}moveToTail(t){t!==this.tail&&(t===this.head?this.head=this.next[t]:this.connect(this.prev[t],this.next[t]),this.connect(this.tail,t),this.tail=t);}get del(){return x("del","delete"),this.delete}delete(t){let e=false;if(this.size!==0){let i=this.keyMap.get(t);if(i!==void 0)if(e=true,this.size===1)this.clear();else {this.removeItemSize(i);let s=this.valList[i];this.isBackgroundFetch(s)?s.__abortController.abort():(this.dispose(s,t,"delete"),this.disposeAfter&&this.disposed.push([s,t,"delete"])),this.keyMap.delete(t),this.keyList[i]=null,this.valList[i]=null,i===this.tail?this.tail=this.prev[i]:i===this.head?this.head=this.next[i]:(this.next[this.prev[i]]=this.next[i],this.prev[this.next[i]]=this.prev[i]),this.size--,this.free.push(i);}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return e}clear(){for(let t of this.rindexes({allowStale:true})){let e=this.valList[t];if(this.isBackgroundFetch(e))e.__abortController.abort();else {let i=this.keyList[t];this.dispose(e,i,"delete"),this.disposeAfter&&this.disposed.push([e,i,"delete"]);}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());}get reset(){return x("reset","clear"),this.clear}get length(){return rt("length","size"),this.size}static get AbortController(){return w}static get AbortSignal(){return N}};q.exports=y;});var J$a=J$k(K$6());var X$7=class r{constructor(t,e){this.userService=t;this.localStorageService=e;this.CACHE_MAX_ITEMS=100;this.devFeatureToggleService=D$l(D$c);let i=e.get(We$7.CACHE_MAX_ITEMS_KEY);this.initCache(i?+i:this.CACHE_MAX_ITEMS);}static generateHash(t){let e=0;if(t.length===0)return e;for(let i=0;i<t.length;i++){let s=t.charCodeAt(i);e=(e<<5)-e+s,e=e&e;}return e}static generateKey(t,e){return t.push(e),`${r.generateHash(t.join("_"))}`}getKey(t,e,i){let s=this.userService.isGuest()?"":`${this.userService.user.getValue().id}_${this.userService.isPremium()}`,h=[t.url,JSON.stringify(t.params)];if(i?.length){let n=i.slice().sort().map(a=>`${a}=${this.devFeatureToggleService.features[a].getValue()}`).join("|");h.push(n);}return `${e}_${r.generateKey(h,s)}`}initCache(t){let e={max:t,allowStale:false,updateAgeOnGet:true,updateAgeOnHas:false};this.cache=new J$a.default(e);}getValue(t,e,i){return this.cache.get(this.getKey(t,e,i))}hasValue(t,e,i){return this.cache.has(this.getKey(t,e,i))}setValue(t,e,i,s){this.cache.set(this.getKey(e,i,s),t);}clearGroupCache(t){this.cache.forEach((e,i)=>{i.indexOf(t)!==-1&&this.cache.delete(i);});}cacheObs(t,e,i="GENERAL",s){return this.localStorageService.get(We$7.CACHE_DISABLED_KEY)?t:this.hasValue(e,i,s)?(console.log("CACHE: ",e.url),Ms$2(JSON.parse(this.getValue(e,i,s))).pipe(Uu$2(50))):t.pipe(Lu$2(h=>this.setValue(JSON.stringify(h),e,i,s)))}static{this.\u0275fac=function(e){return new(e||r)(me$b(ve$6),me$b(xt$5))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var c$9=class t{constructor(){this.httpClient=D$l(Ue$7);this.cacheService=D$l(X$7);}static{this.InitUrl=`${C$8.baseUrl}/api/v2/steam/init`;}static{this.TopUrl=`${C$8.baseUrl}/api/v2/steam/top/apps`;}static{this.TagsAppsCountUrl=`${C$8.baseUrl}/api/v2/steam/tags/apps-count`;}static{this.CategoriesAppsCountUrl=`${C$8.baseUrl}/api/v2/steam/categories/apps-count`;}static{this.GenresAppsCountUrl=`${C$8.baseUrl}/api/v2/steam/genres/apps-count`;}static{this.AppUnitedUrl=`${C$8.baseUrl}/api/v2/steam/app/united`;}static{this.AppInfoUrl=`${C$8.baseUrl}/api/v2/steam/app/info`;}static{this.SearchUrl=`${C$8.baseUrl}/api/v2/steam/search/apps`;}static{this.AppMetricsByCountriesUrl=`${C$8.baseUrl}/api/v2/steam/app/metrics-by-countries`;}static{this.AppRevenueByTypeUrl=`${C$8.baseUrl}/api/v2/steam/app/revenue-by-type`;}static{this.ActivePlayersUrl=`${C$8.baseUrl}/api/v2/steam/app/active-players`;}static{this.AppCrossUsageUrl=`${C$8.baseUrl}/api/v2/steam/app-cross-usage`;}static{this.MetricsUrl=`${C$8.baseUrl}/api/v2/steam/charts/metrics`;}static{this.RetentionUrl=`${C$8.baseUrl}/api/v2/steam/charts/retention`;}static{this.UserActivityUrl=`${C$8.baseUrl}/api/v2/steam/charts/user-activity`;}static{this.ActiveUsersUrl=`${C$8.baseUrl}/api/v2/steam/charts/active-players`;}static{this.FollowersUrl=`${C$8.baseUrl}/api/v2/steam/charts/followers`;}static{this.WishlistUrl=`${C$8.baseUrl}/api/v2/steam/charts/wishlist`;}static{this.PriceUrl=`${C$8.baseUrl}/api/v2/steam/charts/price`;}static{this.ReviewsUrl=`${C$8.baseUrl}/api/v2/steam/charts/reviews`;}static{this.PubDevsTopUrl=`${C$8.baseUrl}/api/v2/steam/top/pubdevs`;}static{this.PubDevsUnitedUrl=`${C$8.baseUrl}/api/v2/steam/pubdevs/united`;}static{this.PubDevsSearchUrl=`${C$8.baseUrl}/api/v2/steam/search/pubdevs`;}static{this.PubDevsMetricsUrl=`${C$8.baseUrl}/api/v2/steam/charts/pubdevs`;}static{this.PubDevsMetricsBuCountriesUrl=`${C$8.baseUrl}/api/v2/steam/pubdevs/metrics-by-countries`;}static{this.PubDevsRevenueByTypeUrl=`${C$8.baseUrl}/api/v2/steam/pubdevs/revenue-by-type`;}getInit(){let e=this.httpClient.get(t.InitUrl),s={url:t.InitUrl,params:{}};
164return this.cacheService.cacheObs(e,s)}getTop(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.TopUrl,{params:s}),a={url:t.TopUrl,params:e};return this.cacheService.cacheObs(r,a)}getTagsAppsCount(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.TagsAppsCountUrl,{params:s}),a={url:t.TagsAppsCountUrl,params:e};return this.cacheService.cacheObs(r,a)}getCategoriesAppsCount(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.CategoriesAppsCountUrl,{params:s}),a={url:t.CategoriesAppsCountUrl,params:e};return this.cacheService.cacheObs(r,a)}getGenresAppsCount(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.GenresAppsCountUrl,{params:s}),a={url:t.GenresAppsCountUrl,params:e};return this.cacheService.cacheObs(r,a)}getApp(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.AppUnitedUrl,{params:s}),a={url:t.AppUnitedUrl,params:e};return this.cacheService.cacheObs(r,a)}getAppInfo(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.AppInfoUrl,{params:s}),a={url:t.AppInfoUrl,params:e};return this.cacheService.cacheObs(r,a)}getAppMetricsByCountries(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.AppMetricsByCountriesUrl,{params:s}),a={url:t.AppMetricsByCountriesUrl,params:e};return this.cacheService.cacheObs(r,a)}getAppRevenueByType(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.AppRevenueByTypeUrl,{params:s}),a={url:t.AppRevenueByTypeUrl,params:e};return this.cacheService.cacheObs(r,a)}getActivePlayers(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.ActivePlayersUrl,{params:s}),a={url:t.ActivePlayersUrl,params:e};return this.cacheService.cacheObs(r,a)}getAppCrossUsage(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.AppCrossUsageUrl,{params:s}),a={url:t.AppCrossUsageUrl,params:e};return this.cacheService.cacheObs(r,a)}search(e){let s=this.httpClient.post(t.SearchUrl,e),r={url:t.SearchUrl,params:e};return this.cacheService.cacheObs(s,r)}getMetricsMulti(e){let s={requests:e},r=this.httpClient.post(t.MetricsUrl,s),a={url:t.MetricsUrl,params:s};return this.cacheService.cacheObs(r,a)}getRetentionMulti(e){let s={requests:e},r=this.httpClient.post(t.RetentionUrl,s),a={url:t.RetentionUrl,params:s};return this.cacheService.cacheObs(r,a)}getUserActivityMulti(e){let s={requests:e},r=this.httpClient.post(t.UserActivityUrl,s),a={url:t.UserActivityUrl,params:s};return this.cacheService.cacheObs(r,a)}getActiveUsers(e){let s=t.ActiveUsersUrl,r=this.httpClient.post(s,e),a={url:s,params:e};return this.cacheService.cacheObs(r,a)}getFollowers(e){let s=this.httpClient.post(t.FollowersUrl,e),r={url:t.FollowersUrl,params:e};return this.cacheService.cacheObs(s,r)}getWishlist(e){let s=this.httpClient.post(t.WishlistUrl,e),r={url:t.WishlistUrl,params:e};return this.cacheService.cacheObs(s,r)}getPrice(e){let s=this.httpClient.post(t.PriceUrl,e),r={url:t.PriceUrl,params:e};return this.cacheService.cacheObs(s,r)}getReviews(e){let s=this.httpClient.post(t.ReviewsUrl,e),r={url:t.ReviewsUrl,params:e};return this.cacheService.cacheObs(s,r)}getPubDevsTop(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.PubDevsTopUrl,{params:s}),a={url:t.PubDevsTopUrl,params:e};return this.cacheService.cacheObs(r,a)}getPubDevsUnited(e){let s=new R$a({fromObject:e}),r=this.httpClient.get(t.PubDevsUnitedUrl,{params:s}),a={url:t.PubDevsUnitedUrl,params:e};return this.cacheService.cacheObs(r,a)}getPubDevsSearch(e){let s=this.httpClient.post(t.PubDevsSearchUrl,e),r={url:t.PubDevsSearchUrl,params:e};return this.cacheService.cacheObs(s,r)}getPubDevsMetricsMulti(e){let s=this.httpClient.post(t.PubDevsMetricsUrl,e),r={url:t.PubDevsMetricsUrl,params:e};return this.cacheService.cacheObs(s,r)}getPubDevsMetricsByCountries(e){let s=this.httpClient.post(t.PubDevsMetricsBuCountriesUrl,e),r={url:t.PubDevsMetricsBuCountriesUrl,params:e};return this.cacheService.cacheObs(s,r)}getPubDevsRevenueByType(e){let s=this.httpClient.post(t.PubDevsRevenueByTypeUrl,e),r={url:t.PubDevsRevenueByTypeUrl,params:e};return this.cacheService.cacheObs(s,r)}static{this.\u0275fac=function(s){return new(s||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};
164var A$7=class t{constructor(){this.steamResource=D$l(c$9);}static{this.ReqLimit=25;}static requestMultiByChunks(e,s,r,a){let i=a$c.getQueriesChunks(e,a);return Wm$2(i.map(u=>s(u))).pipe(ge$9(u=>{let l=null;return u.forEach(f=>{l=r(l,f);}),l}))}getInit(){return this.steamResource.getInit()}getTop(e){return this.steamResource.getTop(e)}getTagsAppsCount(e){return this.steamResource.getTagsAppsCount(e)}getCategoriesAppsCount(e){return this.steamResource.getCategoriesAppsCount(e)}getGenresAppsCount(e){return this.steamResource.getGenresAppsCount(e)}getAppInfo(e){return this.steamResource.getAppInfo(e)}getAppMetricsByCountries(e){return this.steamResource.getAppMetricsByCountries(e)}getAppRevenueByType(e){return this.steamResource.getAppRevenueByType(e)}getActivePlayers(e){return this.steamResource.getActivePlayers(e)}search(e){return this.steamResource.search(e)}getMetricsMulti(e){return t.requestMultiByChunks(e,s=>this.steamResource.getMetricsMulti(s),(s,r)=>{let a=s??{responses:[]};return r.responses.forEach(i=>a.responses.push(i)),a},t.ReqLimit)}getRetentionMulti(e){return this.steamResource.getRetentionMulti(e)}getUserActivityMulti(e){return t.requestMultiByChunks(e,s=>this.steamResource.getUserActivityMulti(s),(s,r)=>{let a=s??{responses:[]};return Object.values(r.responses).forEach(i=>a.responses.push(i)),a},t.ReqLimit)}getActiveUsers(e){return this.steamResource.getActiveUsers(e)}getFollowers(e){return this.steamResource.getFollowers(e)}getWishlist(e){return this.steamResource.getWishlist(e)}getPrice(e){return this.steamResource.getPrice(e)}getReviews(e){return this.steamResource.getReviews(e)}getAppCrossUsage(e){return this.steamResource.getAppCrossUsage(e)}getApp(e){let s=a$c.getQueriesChunks(e.app_id,100);return Wm$2(s.map(r=>this.steamResource.getApp({app_id:r}))).pipe(ge$9(r=>{let a={united_apps:{}};return r.forEach(i=>a.united_apps=D$m(D$m({},a.united_apps),i.united_apps)),a}))}getPubDevsTop(e){return this.steamResource.getPubDevsTop(e)}getPubDevsUnited(e){return this.steamResource.getPubDevsUnited(e)}getPubDevsSearch(e){return this.steamResource.getPubDevsSearch(e)}static{this.\u0275fac=function(s){return new(s||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};var u$8=class e{constructor(){this.httpClient=D$l(Ue$7);this.cacheService=D$l(X$7);}static{this.InitUrl=`${C$8.baseUrl}/api/v2/playstation/init`;}static{this.TopUrl=`${C$8.baseUrl}/api/v2/playstation/top`;}static{this.ConceptsUrl=`${C$8.baseUrl}/api/v2/playstation/concepts`;}static{this.ProductInfoUrl=`${C$8.baseUrl}/api/v2/playstation/products/info`;}static{this.SearchUrl=`${C$8.baseUrl}/api/v2/playstation/search`;}static{this.MetricsUrl=`${C$8.baseUrl}/api/v2/playstation/charts/metrics`;}static{this.ProductMetricsByCountriesUrl=`${C$8.baseUrl}/api/v2/playstation/concepts/metrics-by-countries`;}getInit(){let t=this.httpClient.get(e.InitUrl),s={url:e.InitUrl,params:{}};return this.cacheService.cacheObs(t,s)}getTop(t){let s=new R$a({fromObject:t}),a=this.httpClient.get(e.TopUrl,{params:s}),o={url:e.TopUrl,params:t};return this.cacheService.cacheObs(a,o)}getConcept(t){let s=new R$a({fromObject:t}),a=this.httpClient.get(e.ConceptsUrl,{params:s}),o={url:e.ConceptsUrl,params:t};return this.cacheService.cacheObs(a,o)}getProductInfo(t){let s=new R$a({fromObject:t}),a=this.httpClient.get(e.ProductInfoUrl,{params:s}),o={url:e.ProductInfoUrl,params:t};return this.cacheService.cacheObs(a,o)}getProductMetricsByCountries(t){let s=new R$a({fromObject:t}),a=this.httpClient.get(e.ProductMetricsByCountriesUrl,{params:s}),o={url:e.ProductMetricsByCountriesUrl,params:t};return this.cacheService.cacheObs(a,o)}search(t){let s=this.httpClient.post(e.SearchUrl,t),a={url:e.SearchUrl,params:t};return this.cacheService.cacheObs(s,a)}getMetricsMulti(t){let s={requests:t},a=this.httpClient.post(e.MetricsUrl,s),o={url:e.MetricsUrl,params:s};return this.cacheService.cacheObs(a,o)}static{this.\u0275fac=function(s){return new(s||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var u$7=class o{constructor(){this.httpClient=D$l(Ue$7);this.cacheService=D$l(X$7);}static{this.InitUrl=`${C$8.baseUrl}/api/v2/xbox/init`;}static{this.TopUrl=`${C$8.baseUrl}/api/v2/xbox/top`;}static{this.ProductUnitedUrl=`${C$8.baseUrl}/api/v2/xbox/product/united`;}static{this.ProductInfoUrl=`${C$8.baseUrl}/api/v2/xbox/product/info`;}static{this.SearchUrl=`${C$8.baseUrl}/api/v2/xbox/search`;}static{this.ProductMetricsByCountriesUrl=`${C$8.baseUrl}/api/v2/xbox/product/metrics-by-countries`;}static{this.MetricsUrl=`${C$8.baseUrl}/api/v2/xbox/charts/metrics`;}static{this.RetentionUrl=`${C$8.baseUrl}/api/v2/xbox/charts/retention`;}static{this.ChartsTopUrl=`${C$8.baseUrl}/api/v2/xbox/charts/top`;}getInit(){let e=this.httpClient.get(o.InitUrl),t={url:o.InitUrl,params:{}};return this.cacheService.cacheObs(e,t)}getTop(e){let t=new R$a({fromObject:e}),r=this.httpClient.get(o.TopUrl,{params:t}),s={url:o.TopUrl,params:e};return this.cacheService.cacheObs(r,s)}getProduct(e){let t=new R$a({fromObject:e}),r=this.httpClient.get(o.ProductUnitedUrl,{params:t}),s={url:o.ProductUnitedUrl,params:e};return this.cacheService.cacheObs(r,s)}getProductInfo(e){let t=new R$a({fromObject:e}),r=this.httpClient.get(o.ProductInfoUrl,{params:t}),s={url:o.ProductInfoUrl,params:e};return this.cacheService.cacheObs(r,s)}getProductMetricsByCountries(e){let t=new R$a({fromObject:e}),r=this.httpClient.get(o.ProductMetricsByCountriesUrl,{params:t}),s={url:o.ProductMetricsByCountriesUrl,params:e};return this.cacheService.cacheObs(r,s)}search(e){let t=this.httpClient.post(o.SearchUrl,e),r={url:o.SearchUrl,params:e};return this.cacheService.cacheObs(t,r)}getMetricsMulti(e){let t={requests:e},r=this.httpClient.post(o.MetricsUrl,t),s={url:o.MetricsUrl,params:t};return this.cacheService.cacheObs(r,s)}getRetentionMulti(e){let t={requests:e},r=this.httpClient.post(o.RetentionUrl,t),s={url:o.RetentionUrl,params:t};return this.cacheService.cacheObs(r,s)}getChartsTop(e){let t={requests:e},r=this.httpClient.post(o.ChartsTopUrl,t),s={url:o.ChartsTopUrl,params:t};return this.cacheService.cacheObs(r,s)}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var a$b=(n=>(n[n.adultContent=0]="adultContent",n))(a$b||{});function g$7(t,n){if(t&1&&(Ol$2(0,"div",1),ib(1,"18+"),Ll$2()),t&2){let e=NT();Pg$1("big",e.isBig());}}var f$c=class t{constructor(){this.value=VV.required();this.isBig=VV();this.PlatformAppLabel=a$b;}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["platform-app-label"]],inputs:{value:[1,"value"],isBig:[1,"isBig"]},decls:1,vars:1,consts:[[1,"adult",3,"big"],[1,"adult"]],template:function(e,i){e&1&&uT(0,g$7,2,2,"div",0),e&2&&dT(i.value()===i.PlatformAppLabel.adultContent?0:-1);},styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}[_nghost-%COMP%]   .adult[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;background:var(--red-50);color:var(--white);border-radius:var(--border-radius-small);overflow:hidden;width:24px;height:16px;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]   .adult.big[_ngcontent-%COMP%]{font-size:16px;width:32px;height:24px}"]});}};var f$b=(e=>(e[e.google=1]="google",e[e.iphone=2]="iphone",e[e.ipad=3]="ipad",e))(f$b||{});var a$a=class a{constructor(t=[],r=[],e=[],i=[]){this.applications=t,this.mergedStores=r,this.mergedRemovedStores=e,this.mergedCountriesWithActiveAppInfo=i;}get isRemoved(){return this.mergedStores.length===this.mergedRemovedStores.length}get isFromPlayMarket(){return this.mergedStores.includes(1)}isEqual(t){return this.mergedStores===t.mergedStores&&this.applications[0].store_application_id===t.applications[0].store_application_id}getByAppId(t){return this.applications.find(r=>r.store_application_id===t.store_application_id&&r.store.includes(t.store))}addApplication(t){t.store[0]===2?(this.applications.unshift(t),this.mergedStores.unshift(...t.store),this.mergedRemovedStores.unshift(...t.removed_stores)):(this.applications.push(t),this.mergedStores.push(...t.store),this.mergedRemovedStores.push(...t.removed_stores)),this.mergedHasRevenueDistributionData=this.mergedHasRevenueDistributionData||t.has_revenue_distribution_data,this.mergedCountriesWithActiveAppInfo=Yl$1(this.mergedCountriesWithActiveAppInfo,t.countries_with_active_app_info);}};var g$6=class o{constructor(t){this.rootConfigService=t;this.stores=this.rootConfigService.config.stores||{};}static{this.defaultStores=[5,4,3,2,1];}static{this.unitedStoresMap={5:[1,2,3],4:[2,3]};}static{this.sortTemplate=[5,4,1,2,3];}static convertUnitedStoresToSingle(t=[]){let r=t.map(Number),e=[];return r.forEach(i=>
164{i in o.unitedStoresMap?e=Yl$1(e,o.unitedStoresMap[i]):e.push(i);}),e}static mergeIphoneIpadApps(t){let r={};return t.applications.forEach(e=>{e.removed_stores||(e.removed_stores=[]);let i=r[e.store_application_id]||new a$a;i.addApplication(e),r[e.store_application_id]=i;}),Object.values(r).sort((e,i)=>{let s=e.applications[0],n=i.applications[0];return s.score!==n.score?n.score-s.score:s.store[0]!==n.store[0]?s.store[0]-n.store[0]:s.store_application_id.localeCompare(n.store_application_id)})}static isGoogleAndAppleStores(t){return t.includes(1)&&(t.includes(2)||t.includes(3))}static isAllStores(t){return t.includes(1)&&t.includes(2)&&t.includes(3)}static isStore(t,r){return t.indexOf(r)!==-1}static isStoreValid(t){return o.defaultStores.some(r=>r===Number(t))}static isFullStoreIOS(t){return this.isStore(t,2)&&this.isStore(t,3)}static isNotFullStoreIOS(t){return !o.isFullStoreIOS(t)&&(o.isStore(t,2)||o.isStore(t,3))}static sortStores(t){let r=[];return o.sortTemplate.forEach(e=>{let i=$s$1(t,{value:e});i.length>0&&r.push(i[0]);}),r}static getStoreTitle(t){if((o.isStore(t,2)||o.isStore(t,3))&&o.isStore(t,1))return "stores.5";if(o.isFullStoreIOS(t))return "stores.4";if(o.isStore(t,3))return "stores.3";if(o.isStore(t,2))return "stores.2";if(o.isStore(t,1))return "stores.1"}static getAllStoresTitle(t){return o.isAllStores(t)?["stores.5"]:o.isFullStoreIOS(t)?["stores.4"]:t.map(r=>"appRow."+r)}static getStoreFromAppId(t){return /^\d+$/.test(t)?2:1}getFlat(t=false){let r=Object.keys(this.stores),e=[];return r.forEach((i,s)=>{e=e.concat(this.stores[i]),r[s]=i;}),t&&(e=e.concat(r)),Zl$1(e)}addUnitedStores(t=[]){let r=[];return Object.keys(this.stores).forEach(e=>{let i=ol$1(this.stores[e],t);i.length&&i.length===this.stores[e].length&&r.push(parseInt(e,10));}),Zl$1(r.concat(t))}getDefaultStore(t){let r=e=>t.indexOf(e)!==-1;return o.defaultStores.find(r)}getAllStoresObjects(){let t=this.getFlat().sort().map(e=>({value:e,name:`stores.${e}`,group:"stores.single"}));return Yl$1([{value:5,name:"stores.5",group:"stores.united"},{value:4,name:"stores.4",group:"stores.united"}],t)}updateValues(t){let r=[];return t!==void 0&&t.forEach(e=>{let i={value:e.value,group:e.group,name:"stores."+e.value};r.push(i);}),o.sortStores(r)}static{this.\u0275fac=function(r){return new(r||o)(me$b(O$a))};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var n$c=class n{static decodeHtml(t){let i=document.createElement("textarea");return i.innerHTML=t,i.value}};var h$8=class g{static applyHighlightByPositions(t,i,e,c){let r=[],l=0,a;for(e.lastIndex=0;(a=e.exec(i))!==null;){let o=a.index,p=o+a[0].length;r.push(t.slice(l,o)),r.push(c.replace(/\$&/g,()=>t.slice(o,p))),l=p,a[0].length===0&&e.lastIndex++;}return r.push(t.slice(l)),r.join("")}static getSanitizeForRegExp(t){return t.replace(/\\/g,"\\$&").replace(/[.?{}()+*\[\]]/g,"\\$&").replace(/[-:&\s]/g,"(.*)?")}static getRegExpFromString(t){return new RegExp(this.getSanitizeForRegExp(t),"gi")}static removeSpecialCharacters(t){return t.replace(/ OR /g," ").replace(/ AND /g," ").replace(/NOT /g," ").replace(/[^\p{L})0-9]/giu," ").replace(/\s{2,}/g," ").trim()}static testHighlight(t,i){return i=this.removeSpecialCharacters(i),this.getRegExpFromString(qm$1(i).split(" ").join("|")).test(qm$1(t))}static getHighlight(t,i,e='<span class="font-bold">$&</span>'){if(i=this.removeSpecialCharacters(i),!i)return t;let c=qm$1(i),r=this.getRegExpFromString(c.split(" ").join("|"));return this.applyHighlightByPositions(t,qm$1(t),r,e)}static highlightOrOriginal(t,i,e){return i?this.getHighlight(t,i,e):t}static highlightAndDecode(t,i){return n$c.decodeHtml(this.highlightOrOriginal(t,i))}static{this.\u0275fac=function(i){return new(i||g)};}static{this.\u0275prov=G$f({token:g,factory:g.\u0275fac,providedIn:"root"});}};var m$7=class n{static fixImageSize(t,e=0){let i=e===0?4096:e;return t.indexOf("play-lh.googleusercontent.com")!==-1?t.replace(/=w(\d*)-h(\d*)/,`=w0-h${e}`):t.replace(/(\d*)x(\d*)h.jpg/,`0x${i}h.jpg`)}static getAppCountByStoreIds(t){let e={};return t.forEach(i=>{let r=n.getAppIdFromStoreId(i);e[r.store_application_id]||(e[r.store_application_id]=i);}),Object.keys(e).length}static getNameWithMatchedName(t,e){if(e){let i=e.replaceAll('"',"").toLowerCase();if(t.name.toLowerCase().includes(i))return t.name}return t.matchedName&&t.matchedName!==t.name?t.name+" ("+t.matchedName+")":t.name}static getViewName(t,e){let i=n.getNameWithMatchedName(t,e);return h$8.highlightAndDecode(i,e)}static getViewNameHideMatchWithoutSearch(t,e){return n.getViewName(e?t:{name:t.name},e)}static getViewChildName(t,e){let i=e&&t.names_array.find(r=>r.toLowerCase().includes(e.toLowerCase()));return n.getViewName({name:t.name,matchedName:i},e)}static capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)}static getUrlBySize(t,e){if(!t)return t;let i=a$g.getPixelRatio();
164if(t.indexOf("mzstatic.com")!==-1){let r=t.split("/"),a=r.pop(),s=new RegExp("0x[0-9]{1,5}h\\.jpg","i").test(a)?`0x${e*i}h.jpg`:`${e*i}x${e*i}bb.png`;r.push(s),t=r.join("/");}if(t.indexOf("play-lh.googleusercontent.com")!==-1){let r=new RegExp("=w[0-9]{1,5}-h[0-9]{1,5}","i");r.test(t)?t=t.replace(r,`=h${e*i}`):t+=`=s${e*i}-c`;}return t}static getAppIdsFromStoreIds(t){return t.map(e=>n.getAppIdFromStoreId(e))}static getAppIdsByStores(t,e){let i=new Set(e);return n.getAppIdsFromStoreIds(t).filter(r=>i.has(r.store))}static getAppIdFromStoreId(t){let e=n.getParseId(t);return {store:+e[0],store_application_id:e[1]}}static getStoreApplicationIds(t,e){let i=new Set(g$6.convertUnitedStoresToSingle(e));return [...new Set(t.map(r=>n.getAppIdFromStoreId(r)).filter(r=>i.has(r.store)).map(r=>r.store_application_id))]}static getParseId(t){return t.split(/_(.+)/)}static getPubIdFromStoreId(t){let[e,i]=n.getParseId(t);return !t||!Object.values(f$b).includes(+e)||!i?null:{store:+e,store_publisher_id:i}}static getAppStoreIdsFromChildren(t){return t.map(e=>({store:e.store[0],store_application_id:e.store_application_id}))}static getChildFromUnitedApp(t,e){return !t||!e||t&&!t.applications?null:t.applications.find(i=>i.store[0]===e.store&&i.store_application_id===e.store_application_id)}static getAppIdsFromUnited(t){return t.map(({applications:e})=>({store_application_id:e[0].store_application_id,store:e[0].store[0]}))}static getFilteredChildApps(t,e,i){let r=new Set(i);return t.flatMap(o=>o.applications).filter(o=>o.store?.[0]===e&&o.dataCountries?.some(s=>r.has(s)))}};var p$9=class e{transform(t,r,m){return m$7.getViewName({name:t,matchedName:r},m)}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275pipe=fw({name:"selectorNameHighlight",type:e,pure:true});}};var i$d=class a{static{this.platformNameMap={total_revenue:"platform.total_revenue",base_revenue:"platform.base_revenue",iap_revenue:"platform.iap_revenue",dlc_revenue:"platform.dlc_revenue",copies_sold:"platform.copies_sold",PCU:"platform.pcu",followers:"steam.followers",top_grossing_position:"steam.top_grossing_position",price_final:"steam.price_final",price_max:"steam.price_max",total_reviews:"steam.total_reviews",rating:"steam.rating",avg_playtime_hours:"steam.avg_playtime_hours",new_players:"playStation.new_players",copies_sold_cum:"playStation.copies_sold_cum",new_players_cum:"playStation.new_players_cum",new_players_purch_cum:"playStation.new_players_purch_cum",place_top_dls:"playStation.place_top_dls",place_top_rev:"playStation.place_top_rev",subscriptions:"playStation.subscriptions",active_wishlists:"steam.active_wishlists",converted_wishlists:"steam.converted_wishlists",new_wishlists:"steam.new_wishlists",top_downloads:"xbox.top_downloads_chart_ranking",paid_content_revenue:"xbox.paid_content_revenue",peak_viewers:"twitch.peak_viewers",uniq_streamers:"twitch.uniq_streamers",yt_peak_viewers:"youtube.peak_viewers",yt_uniq_streamers:"youtube.uniq_streamers",yt_views:"youtube.views"};}static{this.platformNameShortMap=E$9(D$m({},a.platformNameMap),{total_revenue:"chart.total",base_revenue:"platform.base",iap_revenue:"sdkCategoryList.iap",dlc_revenue:"platform.dlc",top_downloads:"xbox.top_downloads"});}};var o$h=class s{constructor(r){this.userService=r;}transform(r,i="",f="\u2014",c=false,u=false){if(!r)return f;let e=i,t=r;return !u&&(c||!this.userService.isPremium())&&(t===1?(t=5e3,e="< "+e):e="> "+e),e+t.toLocaleString(void 0,{maximumFractionDigits:2})}static{this.\u0275fac=function(i){return new(i||s)(Jr$4(ve$6,16))};}static{this.\u0275pipe=fw({name:"formatPremiumValues",type:s,pure:true});}};var i$c=(a=>(a.custom="custom",a.publisher="publisher",a.similarity="similarity",a.semanticCore="similarity-aso",a.adIntelligence="ad-intelligence",a.adIntelligenceByTag="ad-intelligence-by-tag",a.adIntelligenceByPub="ad-intelligence-by-pub",a.marketSegment="market-segment",a.marketSegmentCompare="market-segment-compare",a.appleAdsByApp="search-ads-by-app",a.appleAdsByKeyword="search-ads-by-keyword",a.asoByApp="aso-by-app",a.asoByKeyword="aso-by-keyword",a.periodComparison="period-comparison",a.inAppPurchasesDistribution="in-app-purchases-distribution",a.inAppPurchasesDistributionCompare="in-app-purchases-distribution-comparison",a.appRankingHistory="app-ranking-history",a.liveOpsInsights="live-ops-insights",a.audienceOverlap="audience-overlap",a.steam="steam",a.steamPub="steam-publisher",a.xbox="xbox",a.playStation="playstation",a))(i$c||{});function n$b(e){return e?Object.fromEntries(Object.entries(e)):{}}var m$6=(n=>(n[n.dashboards=0]="dashboards",n[n.appInfoWidgets=1]="appInfoWidgets",n[n.steamAppInfoWidgets=2]="steamAppInfoWidgets",n[n.xboxProductInfoWidgets=3]="xboxProductInfoWidgets",n[n.playStationProductInfoWidgets=4]="playStationProductInfoWidgets",n[n.weChatRecoverName=5]="weChatRecoverName",n[n.advSearch=6]="advSearch",n[n.showExplicitContent=7]="showExplicitContent",n[n.countryGroups=8]="countryGroups",n[n.globalDashboardSettings=9]="globalDashboardSettings",n[n.pinnedPresets=10]="pinnedPresets",n))(m$6||{});var V$9=(s=>(s[s.revenue=0]="revenue",s[s.downloads=1]="downloads",s[s.similarity=2]="similarity",s[s.rpd=3]="rpd",s[s.retention=4]="retention",s[s.gender=5]="gender",s[s.userActivity=6]="userActivity",s))(V$9||{});var d$9=class d{constructor(t,e,o,r=()=>{}){this.id=t;this.initValue=e;this.getDefaultValue=o;this.updateCallback=r;this.value=JSON.parse(JSON.stringify(this.getPrepareValue(this.initValue)));}get(){return this.value}getDataToSave(){return Tu$1(this.value,this.getDefaultValue())?null:this.value}set(t){Tu$1(this.value,t)||(this.value=t,this.updateCallback(this.getDataToSave()));}};
164var l$b=class l{static array(t,e,o){if(!Array.isArray(t)||t.join()===e.join())return e;let r=o?t.filter(i=>o.includes(i)):t;return Array.isArray(t)?r:e}static string(t,e){return typeof t=="number"?t.toString():typeof t!="string"?e:t}static boolean(t,e){return typeof t=="boolean"?t:e}};var A$6=class a extends d$9{constructor(e,o){super(1,e,()=>a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue=[0,1,2,3];}getPrepareValue(){return l$b.array(this.initValue,this.getDefaultValue(),t$k(V$9).map(e=>V$9[e]))}getDataToSave(){return this.value}isSet(){return Array.isArray(this.initValue)}set(e){this.value=e,this.updateCallback(this.getDataToSave());}reset(){this.value=[...this.getDefaultValue()],this.updateCallback(null);}};var re$8=(n=>(n.copiesSold="copies_sold",n.totalRevenue="total_revenue",n.baseRevenue="base_revenue",n.iapRevenue="iap_revenue",n.dlcRevenue="dlc_revenue",n.followers="followers",n.priceFinal="price_final",n.priceMax="price_max",n.topGrossingPosition="top_grossing_position",n.totalReviews="total_reviews",n.rating="rating",n))(re$8||{});var oe$5=(p=>(p.revenueShare="revenue_share",p.offerRevenue="offer_revenue",p.quantityShare="quantity_share",p.firstPurchase="first_purchase_quantity_share",p.price="price",p.conversionShare="conversion_share",p.repeatedPurchaseRate="repeated_purchase_rate",p.payerArppu="payer_arppu",p))(oe$5||{});var ce$6=["arppu","transactions","high_payers","mid_payers","low_payers"],Re$7=[...ce$6,"revenue","downloads"];var ae$6=(t=>(t.activePlayers="PCU",t))(ae$6||{});var q$8=(r=>(r.affinityScore="affinity_score",r.confidenceScoreCross="confidence_score_cross",r.confidenceScoreMain="confidence_score_main",r.shareCross="share_cross",r))(q$8||{}),Te$8=["affinity_score","share_cross"],Ge$7=Object.values(q$8);var se$5=(e=>(e.releaseDate="releaseDate",e.tags="tags",e))(se$5||{});var T$6=class T{constructor(t,e,o,r,i){this.type=t;this.initState=e;this.defaultState=o;this.saveFn=r;this.state=JSON.parse(JSON.stringify(i??this.defaultState));}get(){return this.state}isInitColOrderExist(){return !!this.initState?.columns?.order}getColOrderDefault(){return this.defaultState.columns.order}setColOrder(t){this.state.columns.order=t;let e=JSON.parse(JSON.stringify(this.state));this.saveFn(e),this.initState=e;}setDefaultMetric(t){this.state.defaultMetric=t;let e=JSON.parse(JSON.stringify(this.state));this.saveFn(e),this.initState=e;}getColOrder(){return this.state.columns.order}};var ne$6=(f=>(f.revenueCurrent="revenue_current",f.revenuePrevious="revenue_previous",f.revenueGrowth="revenue_growth",f.revenueGrowthPercent="revenue_growth_percent",f.downloadsCurrent="downloads_current",f.downloadsPrevious="downloads_previous",f.downloadsGrowth="downloads_growth",f.downloadsGrowthPercent="downloads_growth_percent",f.dauCurrent="dau_current",f.dauPrevious="dau_previous",f.dauGrowth="dau_growth",f.dauGrowthPercent="dau_growth_percent",f.mauCurrent="mau_current",f.mauPrevious="mau_previous",f.mauGrowth="mau_growth",f.mauGrowthPercent="mau_growth_percent",f.placeCurrent="place_current",f.placeGrowth="place_growth",f))(ne$6||{});var ie$9=(s=>(s.newPlayers="new_players",s.newPlayersCum="new_players_cum",s.newPlayersPurchCum="new_players_purch_cum",s.copiesSoldCum="copies_sold_cum",s.placeTopDls="place_top_dls",s.placeTopRev="place_top_rev",s.subscriptions="subscriptions",s))(ie$9||{});var G$8=["top_free","top_grossing"];var ue$4=(e=>(e.topDownloads="top_downloads",e.paidContentRevenue="paid_content_revenue",e))(ue$4||{});var de$5=["revenue","downloads"];var D$b=class a extends d$9{constructor(e,o,r){super(0,e,r,o);this.initValue=e;this.updateCallback=o;this.getDefaultValue=r;let i=r(),u=this.value,s=Object.keys(i);this.configMap=s.reduce((p,c)=>{let v=w=>{if(w?.columns.order||w?.defaultMetric){super.set(E$9(D$m({},this.initValue),{[c]:w}));return}super.set(null);},n=this.initValue??{};return p[c]=new T$6(c,n[c],i[c],v,u[c]),p},{custom:void 0,publisher:void 0,similarity:void 0,"similarity-aso":void 0,"ad-intelligence":void 0,"ad-intelligence-by-tag":void 0,"ad-intelligence-by-pub":void 0,"market-segment":void 0,"market-segment-compare":void 0,"search-ads-by-app":void 0,"search-ads-by-keyword":void 0,"aso-by-app":void 0,"aso-by-keyword":void 0,steam:void 0,"steam-publisher":void 0,"period-comparison":void 0,"in-app-purchases-distribution":void 0,"in-app-purchases-distribution-comparison":void 0,xbox:void 0,playstation:void 0,"app-ranking-history":void 0,"live-ops-insights":void 0,"audience-overlap":void 0});}static getDefaultValueBase(){return {columns:{order:["revenue","downloads"]},defaultMetric:"revenue"}}static getDefaultValue(e){return e?a.getDefaultValuePrem():a.getDefaultValueNoPrem()}static getDefaultValuePrem(){return {custom:{columns:{order:["revenue","downloads","cumulative_arpu","featuring","releaseDate"]},defaultMetric:"revenue"},publisher:{columns:{order:["revenue","downloads","cumulative_arpu","featuring"]},defaultMetric:"revenue"},similarity:a.getDefaultValueBase(),"ad-intelligence":a.getDefaultValueBase(),"ad-intelligence-by-tag":a.getDefaultValueBase(),"ad-intelligence-by-pub":a.getDefaultValueBase(),"market-segment":{columns:{order:["revenue","downloads","cumulative_arpu","featuring","releaseDate"]},defaultMetric:"revenue"},"market-segment-compare":a.getDefaultValueBase(),"search-ads-by-app":a.getDefaultValueBase(),"search-ads-by-keyword":a.getDefaultValueBase(),"aso-by-app":a.getDefaultValueBase(),"aso-by-keyword":a.getDefaultValueBase(),steam:{columns:{order:["total_revenue","base_revenue","iap_revenue","dlc_revenue","copies_sold"]}},"steam-publisher":{columns:{order:["total_revenue","base_revenue","iap_revenue","dlc_revenue","copies_sold"]}},"period-comparison":{columns:{order:["revenue_current","revenue_growth","revenue_growth_percent"]},defaultMetric:"revenue_current"},"in-app-purchases-distribution":{columns:{order:["linked_offers","revenue_share","offer_revenue","quantity_share","first_purchase_quantity_share","price"]}},"in-app-purchases-distribution-comparison":{columns:{order:["arppu","transactions","high_payers","mid_payers","low_payers","revenue","downloads"]}},"app-ranking-history":{columns:{order:[...G$8]},defaultMetric:"top_free"},"audience-overlap":{columns:{order:["affinity_score","share_cross"]},defaultMetric:"affinity_score"},xbox:{columns:{order:["total_revenue","base_revenue","paid_content_revenue","copies_sold"]},defaultMetric:"total_revenue"},"similarity-aso":a.getDefaultValueBase(),playstation:{columns:{order:["total_revenue","copies_sold","new_players"]}},"live-ops-insights":{columns:{order:[...de$5]},defaultMetric:"revenue"}}}static getDefaultValueNoPrem(){let e=a.getDefaultValuePrem();return e.custom.columns.order=["featuring","releaseDate"],e.publisher.columns.order=["featuring","releaseDate"],e["market-segment"].columns.order=["featuring","releaseDate"],e.steam.columns.order=["PCU","followers","price_final","price_max","top_grossing_position","total_reviews","rating","releaseDate"],e["steam-publisher"].columns.order=[...e.steam.columns.order],e}static getPrepareColConfig(e,o=[],r){return {columns:{order:l$b.array(e?.columns?.order,o)},defaultMetric:e.defaultMetric||r}}static normalizeConfig(e,o){return E$9(D$m(D$m({},o),e),{columns:D$m(D$m({},o.columns),e?.columns)})}static fixSteamOrder(e){if(!e)return e;let o=e.steam,r=o?.columns?.order;if(!r)return e;let i=[];return r.forEach(u=>{if(u==="downloads"){i.push("copies_sold");return}i.push(u);}),o.columns.order=i,e}static fixXboxOrder(e){if(!e)return e;let o=e.xbox,r=o?.columns?.order;if(!r)return e;let i=[];return r.forEach(u=>{if(u==="revenue"){i.push("total_revenue");return}i.push(u);}),o.columns.order=i,e}get(){if(!this.configMap)return super.get();let e=this.getDefaultValue(),o={};for(let r of Object.keys(this.configMap))o[r]=a.normalizeConfig(this.configMap[r].get(),e[r]);return o}getByType(e){return this.configMap[e]}getDataToSave(){let e={},o=this.getDefaultValue(),r=this.initValue||{},i=this.value,u=r,s=o,p=e;
164return Object.keys(i).forEach(v=>{let n=i[v],w=!!u[v]?.columns?.order,le=s[v];if(!Tu$1(n,le)||w){p[v]=n;return}p[v]=null;}),Object.values(e).find(v=>!!v)?e:null}getPrepareValue(){let e=this.getDefaultValue();if(!this.initValue)return e;let o=D$m({},e),r=Object.values(i$c),i=a.fixSteamOrder(this.initValue??{}),u=a.fixXboxOrder(i??{});return Object.keys(u).forEach(s=>{r.includes(s)&&(o[s]=a.getPrepareColConfig(u[s],e[s].columns.order,e[s].defaultMetric));}),o}};var J$9=(c=>(c.releaseDate="releaseDate",c.downloads="downloads",c.revenue="revenue",c.rpd="rpd",c.userActivity="userActivity",c.arpDau="arpDau",c.retention="retention",c.adSpend="adSpend",c.paidShare="paidShare",c))(J$9||{}),pe$6=Object.values(J$9);var W$7=class a extends d$9{constructor(e,o){super(6,e,()=>a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue={columns:["releaseDate","revenue","downloads","rpd","userActivity"]};}setCols(e){this.value.columns.join()!==e.join()&&(this.value.columns=e,this.updateCallback(this.value));}getPrepareValue(){let e=this.getDefaultValue();return this.initValue?{columns:l$b.array(this.initValue?.columns,e.columns,pe$6)}:e}};var H$6=a=>G$8.includes(a);var P$a=class a{constructor(t){this.http=t;}get(t){return this.http.get(C$8.baseUrl+"/api/v2/users/user",{params:n$b(t)})}wechatAuth(t){return this.http.post(C$8.baseUrl+"/api/v2/auth/weixin",t)}facebookAuth(t){return this.http.post(C$8.baseUrl+"/api/v2/auth/facebook",t)}googleAuth(t){return this.http.post(C$8.baseUrl+"/api/v2/auth/google",t)}updateConfig(t){return this.http.put(C$8.baseUrl+"/api/v2/user/config",t)}emailAuth(t){return this.http.post(C$8.baseUrl+"/api/v2/auth/email",t)}sendLoginEmail(t){return this.http.post(C$8.baseUrl+"/api/v2/auth/email/send",t)}static{this.\u0275fac=function(e){return new(e||a)(me$b(Ue$7))};}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var O$6=class O extends d$9{constructor(e,o,r,i){super(e,o,()=>r,i);this.UserConfigId=e;this.initValue=o;this.defaultValue=r;this.updateCallback=i;}getPrepareValue(){return l$b.string(this.initValue,this.getDefaultValue())}};var k$4=class a extends O$6{constructor(e,o){super(5,e,a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue="";}};var h$7=(s=>(s[s.revenue=0]="revenue",s[s.downloads=1]="downloads",s[s.revenueByType=2]="revenueByType",s[s.activePlayers=3]="activePlayers",s[s.wishlist=4]="wishlist",s[s.reviews=5]="reviews",s[s.followers=6]="followers",s))(h$7||{});var B$5=class a extends d$9{constructor(e,o){super(2,e,()=>a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue=[0,1,2,3,4,5,6];}getPrepareValue(){return l$b.array(this.initValue,this.getDefaultValue(),t$k(h$7).map(e=>h$7[e]))}getDataToSave(){return this.value}isSet(){return Array.isArray(this.initValue)}set(e){this.value=e,this.updateCallback(this.getDataToSave());}reset(){this.value=[...this.getDefaultValue()],this.updateCallback(null);}};var E$4=class a extends d$9{constructor(e,o){super(3,e,()=>a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue=[0,1];}getPrepareValue(){return l$b.array(this.initValue,this.getDefaultValue(),t$k(h$7).map(e=>h$7[e]))}};var M$8=class a extends d$9{constructor(e,o){super(7,e,()=>a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue=false;}getPrepareValue(){return l$b.boolean(this.initValue,this.getDefaultValue())}};var N$8=class a extends d$9{constructor(e,o){super(4,e,()=>a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue=[0,1];}getPrepareValue(){return l$b.array(this.initValue,this.getDefaultValue(),t$k(h$7).map(e=>h$7[e]))}};var _$2=class a extends d$9{constructor(e,o){super(8,e,()=>a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue=[];}static getPrepareCountryGroup(e,o){if(!Array.isArray(e))return o??[];let r=[];return e.forEach(i=>{let u=i?.name||i?.group;if(typeof u!="string"||!u?.trim()||!Array.isArray(i.countries))return;let s=i.countries.filter(p=>typeof p=="string"&&!!p.trim());s.length!==0&&(r.find(p=>p.name===u)||r.push({name:u,countries:s}));}),r.length?r:o}static getPrepareToSave(e){return a.getPrepareCountryGroup(e,a.defaultValue).map(r=>({group:r.name,countries:r.countries}))}getPrepareValue(){return a.getPrepareCountryGroup(this.initValue,a.defaultValue)}get(){return super.get().map(o=>({countries:o.countries,name:o.name??o.group}))}set(e){super.set(a.getPrepareToSave(e));}};var x$7=class x extends d$9{constructor(e,o,r){super(9,e,r,o);this.initValue=e;this.updateCallback=o;this.getDefaultValue=r;}
164static getDefaultValue(){return {lineLimit:10,autoZoom:true,hideChart:false,autoUpdateAppsOrKeywords:true}}getDataToSave(){return this.value}getPrepareValue(){let e=this.getDefaultValue();return this.initValue?D$m(D$m({},e),this.initValue):e}};var j$8=class a extends d$9{constructor(e,o){super(10,e,()=>a.defaultValue,o);this.initValue=e;this.updateCallback=o;}static{this.defaultValue=[];}getPrepareValue(){return Array.isArray(this.initValue)?this.initValue.filter(e=>typeof e=="string"):this.getDefaultValue()}};var S$5=class S{constructor(t,e,o){this.saveFn=e;this.initData=t||void 0,this.configMap={1:new A$6(this.initData?.appInfoWidgets,r=>this.saveData({appInfoWidgets:r})),2:new B$5(this.initData?.steamAppInfoWidgets,r=>this.saveData({steamAppInfoWidgets:r})),3:new E$4(this.initData?.xboxProductInfoWidgets,r=>this.saveData({xboxProductInfoWidgets:r})),4:new N$8(this.initData?.playStationProductInfoWidgets,r=>this.saveData({playStationProductInfoWidgets:r})),5:new k$4(this.initData?.weChatRecoverName,r=>this.saveData({weChatRecoverName:r})),0:new D$b(this.initData?.dashboards,r=>this.saveData({dashboards:r}),()=>D$b.getDefaultValue(o)),9:new x$7(this.initData?.globalDashboardSettings,r=>this.saveData({globalDashboardSettings:r}),()=>x$7.getDefaultValue()),6:new W$7(this.initData?.advSearch,r=>this.saveData({advSearch:r})),7:new M$8(this.initData?.showExplicitContent,r=>this.saveData({showExplicitContent:r})),8:new _$2(this.initData?.countryGroups,r=>this.saveData({countryGroups:r})),10:new j$8(this.initData?.pinnedPresets,r=>this.saveData({pinnedPresets:r}))};}saveData(t){this.saveFn({config:t});}get(t){return this.configMap[t]}};var fe$5=class a{constructor(t,e,o){this.userResource=t;this.localStorageService=e;this.userService=o;this.state=new S$5(this.getGuestConfig(),t=>this.setGuestConfig(t),false);this.stateChangeSignal=fi$4(this.state);this.stateChanges=this.stateChangeSignal.asReadonly();this.subscription=new W$f;this.subscription.add(this.userService.user.pipe(Tn$3(r=>!r),Nu$2(1)).subscribe(()=>{this.replaceState(new S$5(this.getGuestConfig(),r=>this.setGuestConfig(r),this.userService.isPremium()));}));}static{this.GuestLSKey="UserConfigGuestKey";}loadConfig(){if(this.userService.isGuest())return this.replaceState(new S$5(this.getGuestConfig(),o=>this.setGuestConfig(o),false)),Ms$2(null);let t=this.userService.getUser().config,e=a.fixTopMetricsInSomeDashboards(t,this.userService.isPremium());return this.replaceState(new S$5(e,o=>this.updateConfig(o),this.userService.isPremium())),Ms$2(null)}static fixTopMetricsInSomeDashboards(t,e){if(!t.dashboards)return t;let o=new Set(["custom","publisher","market-segment"]),r=t.dashboards,i={};return Object.entries(r).forEach(([u,s])=>{o.has(u)&&Array.isArray(s.columns?.order)?i[u]=E$9(D$m({},s),{columns:E$9(D$m({},s.columns),{order:a.removeTopMetricFromColumnsOrder(s.columns.order,u,e)}),defaultMetric:a.fixRankingTrendsDefaultMetric(s.defaultMetric)}):i[u]=s;}),E$9(D$m({},t),{dashboards:i})}replaceState(t){this.state=t,this.stateChangeSignal.set(t);}static removeTopMetricFromColumnsOrder(t,e,o){let r=t.filter(u=>!H$6(u));return r.length>0?r:D$b.getDefaultValue(o)[e]?.columns?.order??[]}static fixRankingTrendsDefaultMetric(t){return !t||!H$6(t)?t:t==="top_free"?"downloads":"revenue"}get(){return this.state}getById(t){switch(t){case 1:return this.state.get(1);case 2:return this.state.get(2);case 3:return this.state.get(3);case 4:return this.state.get(4);case 5:return this.state.get(5);case 0:return this.state.get(0);case 9:return this.state.get(9);case 6:return this.state.get(6);case 7:return this.state.get(7);case 8:return this.state.get(8);case 10:return this.state.get(10)}}updateConfig(t){this.userResource.updateConfig(t).subscribe();}getGuestConfig(){return this.localStorageService.get(a.GuestLSKey)||{}}setGuestConfig(t){this.localStorageService.set(a.GuestLSKey,t.config);}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(e){return new(e||a)(me$b(P$a),me$b(xt$5),me$b(ve$6))};}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var o$g=class a{constructor(t){this.translate=t;}get(t,e){let r=this.translate.instant(t,e).split("|");return r.length===1||e?.count===1?r[0]:r[1]}static{this.\u0275fac=function(e){return new(e||a)(me$b(x$d))};}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var u$6=class a{constructor(){this.translate=D$l(x$d);this.ref=D$l(WV);this.translateChoiceService=D$l(o$g);this.value="";this.lastKey="";this.eventSubscriptions=new W$f;}transform(t,e){return t?.length?this.isSameInput(t,e)?this.value||t:(this.lastKey=t,this.lastParams=e?D$m({},e):void 0,this.value=this.translateChoiceService.get(t,this.lastParams),this.eventSubscriptions.unsubscribe(),this.eventSubscriptions=new W$f,this.eventSubscriptions.add(this.translate.onLangChange.subscribe(()=>{this.value=this.translateChoiceService.get(t,this.lastParams),this.ref.markForCheck();})),this.eventSubscriptions.add(this.translate.onDefaultLangChange.subscribe(()=>{this.value=this.translateChoiceService.get(t,this.lastParams),this.ref.markForCheck();})),this.eventSubscriptions.add(this.translate.onTranslationChange.subscribe(()=>{this.value=this.translateChoiceService.get(t,this.lastParams),this.ref.markForCheck();})),this.value):t}ngOnDestroy(){this.eventSubscriptions.unsubscribe();}isSameInput(t,e){return this.lastKey===t&&Tu$1(this.lastParams,e)}static{this.\u0275fac=function(e){return new(e||a)};}static{this.\u0275pipe=fw({name:"translateChoice",type:a,pure:false});}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var n$a=class e{constructor(t){this.el=t;this.fallbackSrc="/assets/angular2/img/img-container/warframe.svg";this.customVisibility="visible";this.images=[];this.handleLoadStatus=()=>{this.el.nativeElement.style.visibility=this.customVisibility;};this.handleErrorStatus=()=>{this.images.length>0&&this.el.nativeElement.setAttribute("src",this.images.shift());};}static getProxiedUrl(t){return !t||t.includes("?")?t:`https://images.appmagic.rocks/?uri=${t}`}ngOnChanges(t){t.fallbackImg&&t.fallbackImg.currentValue!==t.fallbackImg.previousValue&&this.refreshSrcImages();}ngOnInit(){this.el.nativeElement.setAttribute("data-e2e-icon",""),this.el.nativeElement.addEventListener("load",this.handleLoadStatus),this.el.nativeElement.addEventListener("error",this.handleErrorStatus);}ngOnDestroy(){this.el.nativeElement.removeEventListener("load",this.handleLoadStatus),this.el.nativeElement.removeEventListener("error",this.handleErrorStatus);}refreshSrcImages(){if(this.images=[],this.fallbackImg){this.images.push(this.fallbackImg);let t=e.getProxiedUrl(this.fallbackImg);this.fallbackImg!==t&&this.images.unshift(t);}this.images.push(this.fallbackSrc),this.el.nativeElement.style.visibility=this.customVisibility==="visible"?"hidden":this.customVisibility,this.el.nativeElement.setAttribute("src",this.images.shift());}static{this.\u0275fac=function(r){return new(r||e)(Jr$4(Gr$4))};}static{this.\u0275dir=dw({type:e,selectors:[["","fallbackImg",""]],inputs:{fallbackImg:"fallbackImg",fallbackSrc:"fallbackSrc",customVisibility:"customVisibility"},features:[Ev$1]});}};
165var o$f=class t{constructor(){this.imageObserver=new IntersectionObserver(e=>{e.forEach(r=>{let s=r.target;s.__intersectionObserver&&s.__intersectionObserver.next(r.isIntersecting);});});}isObserveIsExist(e){return "__intersectionObserver"in e}observe(e){if(this.isObserveIsExist(e))throw new Error("Intersection observer already exist");typeof this.imageObserver?.observe=="function"&&(e.__intersectionObserver=new de$c,this.imageObserver.observe(e));}unobserve(e){if(!this.isObserveIsExist(e))throw new Error("Intersection observer not exist");let r=e;r.__intersectionObserver.unsubscribe(),delete r.__intersectionObserver,this.imageObserver.unobserve(e);}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};var f$a=(e=>(e.standard="/assets/angular2/img/img-container/warframe.svg",e.long="/assets/angular2/img/img-container/warframe-long.svg",e.banner="/assets/angular2/img/img-container/warframe-banner.svg",e))(f$a||{});var I$4=class n{constructor(){this.debounce=500;this.useProxy=true;this.lazyImageError=VV("/assets/angular2/img/img-container/warframe.svg");this.lazyLoaded=jV();this.imgInfoLoaded=jV();this.imagesObserverService=D$l(o$f);this.elm=D$l(Gr$4);this.tempImg=null;this.destroy$=new de$c;this.isDestroyed=false;}ngOnInit(){this.imagesObserverService.observe(this.elm.nativeElement);let i=[Tn$3(e=>!!e),Mu$2()];this.debounce&&i.push(wu$2(this.debounce)),this.tempImg=new Image,this.elm.nativeElement.classList.add("lazy-image"),this.elm.nativeElement.setAttribute("data-e2e-icon",""),this.elm.nativeElement.__intersectionObserver.pipe(...i,ku$2(this.destroy$)).subscribe(()=>{let e=[this.imgSrc,this.lazyImageError()],o=this.useProxy?n$a.getProxiedUrl(this.imgSrc):this.imgSrc;this.imgSrc!==o&&e.unshift(o),Ns$2(this.tempImg,"load").pipe(ku$2(this.destroy$)).subscribe(()=>{if(!this.tempImg||this.isDestroyed)return;
165let y=this.tempImg.naturalWidth,E=this.tempImg.naturalHeight;this.imgInfoLoaded.emit({width:y,height:E}),this.elm.nativeElement.classList.add("loaded"),this.safeUnobserve(),this.elm.nativeElement.setAttribute("src",this.tempImg.src),this.elm.nativeElement.onload=()=>{this.isDestroyed||this.lazyLoaded.emit(this.elm.nativeElement);};}),Ns$2(this.tempImg,"error").pipe(ku$2(this.destroy$)).subscribe(()=>{!this.tempImg||this.isDestroyed||(this.safeUnobserve(),this.elm.nativeElement.classList.add("loaded"),this.elm.nativeElement.setAttribute("src",this.lazyImageError()),this.elm.nativeElement.onload=()=>{this.isDestroyed||this.lazyLoaded.emit(this.elm.nativeElement);});}),this.tempImg.src=e.shift();});}ngOnDestroy(){this.isDestroyed=true,this.destroy$.next(),this.destroy$.complete(),this.elm.nativeElement.onload=null,this.tempImg=null,this.safeUnobserve();}safeUnobserve(){this.imagesObserverService.isObserveIsExist(this.elm.nativeElement)&&this.imagesObserverService.unobserve(this.elm.nativeElement);}static{this.\u0275fac=function(m){return new(m||n)};}static{this.\u0275dir=dw({type:n,selectors:[["","lazyImage",""]],inputs:{imgSrc:[0,"lazyImage","imgSrc"],debounce:"debounce",useProxy:"useProxy",lazyImageError:[1,"lazyImageError"]},outputs:{lazyLoaded:"lazyLoaded",imgInfoLoaded:"imgInfoLoaded"}});}};var y$2=(e=>(e.black="#000",e.white="#fff",e.grey="#99aeb9",e.grey50="var(--grey-50)",e.yellow50="var(--yellow-50)",e))(y$2||{});var b$5=class o{constructor(){this.color="var(--yellow-50)";}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["spinner"]],inputs:{diameter:"diameter",color:"color"},decls:2,vars:9,consts:[["data-testid","spinner","viewBox","0 0 100 100"]],template:function(t,r){t&1&&(qd$2(),Ol$2(0,"svg",0),Dg$1(1,"circle"),Ll$2()),t&2&&(Lg$1("width",r.diameter,"px")("height",r.diameter,"px"),AE(),Lg$1("stroke",r.color),vg$1("cx",50)("cy",50)("r",45));},styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
165--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:fit-content;height:fit-content}[_nghost-%COMP%]   svg[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 2s linear infinite}[_nghost-%COMP%]   svg[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dash 1.4s ease-in-out infinite both;fill:none;stroke:var(--yellow-50);stroke-linecap:round;stroke-dasharray:283;stroke-dashoffset:280;stroke-width:10px;transform-origin:50% 50%}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_dash{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%{stroke-dashoffset:75;transform:rotate(45deg)}to{stroke-dashoffset:280;transform:rotate(360deg)}}"]});}};var w$6=class w{_doc;constructor(n){this._doc=n;}manager},b$4=(()=>{class o extends w$6{constructor(e){super(e);}supports(e){return  true}addEventListener(e,t,r,s){return e.addEventListener(t,r,s),()=>this.removeEventListener(e,t,r,s)}removeEventListener(e,t,r,s){return e.removeEventListener(t,r,s)}static \u0275fac=function(t){return new(t||o)(me$b(jn$2))};static \u0275prov=G$f({token:o,factory:o.\u0275fac})}return o})(),H$5=new M$g(""),z$3=(()=>{class o{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this;});let r=e.filter(i=>!(i instanceof b$4));this._plugins=r.slice().reverse();let s=e.find(i=>i instanceof b$4);s&&this._plugins.push(s);}addEventListener(e,t,r,s){return this._findPluginFor(t).addEventListener(e,t,r,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new _$7(-5101,false);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||o)(me$b(H$5),me$b($$b))};static \u0275prov=G$f({token:o,factory:o.\u0275fac})}return o})(),j$7="ng-app-id";function he$6(o){for(let n of o)n.remove();}function me$7(o,n){let e=n.createElement("style");return e.textContent=o,e}function _e$5(o,n,e,t){let r=o.head?.querySelectorAll(`style[${j$7}="${n}"],link[${j$7}="${n}"]`);if(!r||r.length===0)return  false;for(let s of r)s.removeAttribute(j$7),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]});return  true}function F$5(o,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",o),e}var $$4=(()=>{class o{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,r,s={}){this.doc=e,this.appId=t,this.nonce=r,_e$5(e,t,this.inline,this.external)&&this.hosts.add(e.head);}addStyles(e,t){for(let r of e)this.addUsage(r,this.inline,me$7);t?.forEach(r=>this.addUsage(r,this.external,F$5));}removeStyles(e,t){for(let r of e)this.removeUsage(r,this.inline);t?.forEach(r=>this.removeUsage(r,this.external));}addUsage(e,t,r){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,r(e,this.doc)))});}removeUsage(e,t){let r=t.get(e);r&&(r.usage--,r.usage<=0&&(he$6(r.elements),t.delete(e)));}ngOnDestroy(){for(let[,{elements:e}]of [...this.inline,...this.external])he$6(e);this.hosts.clear();}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[t,{elements:r}]of this.inline)r.push(this.addElement(e,me$7(t,this.doc)));for(let[t,{elements:r}]of this.external)r.push(this.addElement(e,F$5(t,this.doc)));}}removeHost(e){this.hosts.delete(e);for(let t of [...this.inline.values(),...this.external.values()]){let r=[];for(let s of t.elements)s.parentNode===e?s.remove():r.push(s);t.elements=r;}}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||o)(me$b(jn$2),me$b(Kd$2),me$b(iv$1,8),me$b(rv$1))};static \u0275prov=G$f({token:o,factory:o.\u0275fac})}return o}
vendor: 5,477 bytes, line 165
165)(),V$8={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"},G$7=/%COMP%/g;var Ee$3="%COMP%",we$7=`_nghost-${Ee$3}`,Me$6=`_ngcontent-${Ee$3}`,Re$6=true,De$6=new M$g("",{factory:()=>Re$6});function Ae$5(o){return Me$6.replace(G$7,o)}function Ce$8(o){return we$7.replace(G$7,o)}function ve$4(o,n){return n.map(e=>e.replace(G$7,o))}var Y$7=(()=>{class o{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,t,r,s,i,a,l=null,d=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=i,this.ngZone=a,this.nonce=l,this.tracingService=d,this.defaultRenderer=new M$7(e,i,a,this.tracingService);}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,t);return r instanceof L$2?r.applyToHost(e):r instanceof R$8&&r.applyStyles(),r}getOrCreateRenderer(e,t){let r=this.rendererByCompId,s=r.get(t.id);if(!s){let i=this.doc,a=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(t.encapsulation){case sn$4.Emulated:s=new L$2(l,d,t,this.appId,p,i,a,h);break;case sn$4.ShadowDom:return new N$7(l,e,t,i,a,this.nonce,h,d);case sn$4.ExperimentalIsolatedShadowDom:return new N$7(l,e,t,i,a,this.nonce,h);default:s=new R$8(l,d,t,p,i,a,h);break}r.set(t.id,s);}return s}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(e){this.rendererByCompId.delete(e);}static \u0275fac=function(t){return new(t||o)(me$b(z$3),me$b(Bh$1),me$b(Kd$2),me$b(De$6),me$b(jn$2),me$b($$b),me$b(iv$1),me$b(pn$3,8))};static \u0275prov=G$f({token:o,factory:o.\u0275fac})}return o})(),M$7=class M{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(n,e,t,r){this.eventManager=n,this.doc=e,this.ngZone=t,this.tracingService=r;}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(V$8[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ge$6(n)?n.content:n).appendChild(e);}insertBefore(n,e,t){n&&(ge$6(n)?n.content:n).insertBefore(e,t);}removeChild(n,e){e.remove();}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new _$7(-5104,false);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,r){if(r){e=r+":"+e;let s=V$8[r];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t);}else n.setAttribute(e,t);}removeAttribute(n,e,t){if(t){let r=V$8[t];r?n.removeAttributeNS(r,e):n.removeAttribute(`${t}:${e}`);}else n.removeAttribute(e);}addClass(n,e){n.classList.add(e);}removeClass(n,e){n.classList.remove(e);}setStyle(n,e,t,r){r&(Fi$2.DashCase|Fi$2.Important)?n.style.setProperty(e,t,r&Fi$2.Important?"important":""):n.style[e]=t;}removeStyle(n,e,t){t&Fi$2.DashCase?n.style.removeProperty(e):n.style[e]="";}setProperty(n,e,t){n!=null&&(n[e]=t);}setValue(n,e){n.nodeValue=e;}listen(n,e,t,r){if(typeof n=="string"&&(n=Kl$2().getGlobalEventTarget(this.doc,n),!n))throw new _$7(-5102,false);let s=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===false&&e.preventDefault();}}};function ge$6(o){return o.tagName==="TEMPLATE"&&o.content!==void 0}var N$7=class N extends M$7{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,t,r,s,i,a,l){super(n,r,s,a),this.hostEl=e,this.sharedStylesHost=l,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=t.styles;d=ve$4(t.id,d);for(let h of d){let E=document.createElement("style");i&&E.setAttribute("nonce",i),E.textContent=h,this.shadowRoot.appendChild(E);}let p=t.getExternalStyles?.();if(p)for(let h of p){let E=F$5(h,r);i&&E.setAttribute("nonce",i),this.shadowRoot.appendChild(E);}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},R$8=class R extends M$7{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,r,s,i,a,l){super(n,s,i,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let d=t.styles;this.styles=l?ve$4(l,d):d,this.styleUrls=t.getExternalStyles?.(l);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&an$4.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},L$2=class L extends R$8{contentAttr;hostAttr;constructor(n,e,t,r,s,i,a,l){let d=r+"-"+t.id;super(n,e,t,s,i,a,l,d),this.contentAttr=Ae$5(d),this.hostAttr=Ce$8(d);}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"");}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};
165var P$9=class o extends Em$2{supportsDOMEvents=true;static makeCurrent(){oH(new o);}onAndCancel(n,e,t,r){return n.addEventListener(e,t,r),()=>{n.removeEventListener(e,t,r);}}dispatchEvent(n,e){n.dispatchEvent(e);}remove(n){n.remove();}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Oe$5();return e==null?null:be$6(e)}resetBaseElement(){D$a=null;}getUserAgent(){return window.navigator.userAgent}getCookie(n){return aH(document.cookie,n)}},D$a=null;function Oe$5(){return D$a=D$a||document.head.querySelector("base"),D$a?D$a.getAttribute("href"):null}function be$6(o){return new URL(o,document.baseURI).pathname}var Se$8=["alt","control","meta","shift"],Ne$5={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Le$5={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey},Te$7=(()=>{class o extends w$6{constructor(e){super(e);}supports(e){return o.parseEventName(e)!=null}addEventListener(e,t,r,s){let i=o.parseEventName(t),a=o.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Kl$2().onAndCancel(e,i.domEventName,a,s))}static parseEventName(e){let t=e.toLowerCase().split("."),r=t.shift();if(t.length===0||!(r==="keydown"||r==="keyup"))return null;let s=o._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),Se$8.forEach(d=>{let p=t.indexOf(d);p>-1&&(t.splice(p,1),i+=d+".");}),i+=s,t.length!=0||s.length===0)return null;let l={};return l.domEventName=r,l.fullKey=i,l}static matchEventFullKeyCode(e,t){let r=Ne$5[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(r=e.code,s="code."),r==null||!r?false:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Se$8.forEach(i=>{if(i!==r){let a=Le$5[i];a(e)&&(s+=i+".");}}),s+=r,s===t)}static eventCallback(e,t,r){return s=>{o.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>t(s));}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||o)(me$b(jn$2))};static \u0275prov=G$f({token:o,factory:o.\u0275fac})}return o})();function He$6(o,n,e){return K$g(this,null,function*(){let t=D$m({rootComponent:o},Pe$5(n,e));return zV(t)})}function Pe$5(o,n){return {platformRef:n?.platformRef,appProviders:[...je$4,...o?.providers??[]],platformProviders:Be$7}}function ke$7(){P$9.makeCurrent();}function Ue$5(){return new ot$a}function xe$6(){return Qv$1(document),document}var Be$7=[{provide:rv$1,useValue:Sn$4},{provide:Jd$2,useValue:ke$7,multi:true},{provide:jn$2,useFactory:xe$6}];var je$4=[{provide:ga$2,useValue:"root"},{provide:ot$a,useFactory:Ue$5},{provide:H$5,useClass:b$4,multi:true},{provide:H$5,useClass:Te$7,multi:true},Y$7,{provide:Bh$1,useClass:$$4},{provide:$$4,useExisting:Bh$1},z$3,{provide:Hr$4,useExisting:Y$7},[]];var Gt$3=(()=>{class o{_doc;_dom;constructor(e){this._doc=e,this._dom=Kl$2();}addTag(e,t=false){return e?this._getOrCreateElement(e,t):null}addTags(e,t=false){return e?e.reduce((r,s)=>(s&&r.push(this._getOrCreateElement(s,t)),r),[]):[]}getTag(e){if(!e)return null;let t=this._doc.querySelector(`meta[${e}]`);return t?.nodeName.toLowerCase()==="meta"?t:null}getTags(e){if(!e)return [];let t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t).filter(r=>r.nodeName.toLowerCase()==="meta"):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);let r=this.getTag(t);return r?this._setMetaElementAttributes(e,r):this._getOrCreateElement(e,true)}removeTag(e){this.removeTagElement(this.getTag(e));}removeTagElement(e){e&&this._dom.remove(e);}_getOrCreateElement(e,t=false){if(!t){let i=this._parseSelector(e),a=this.getTags(i).filter(l=>this._containsAttributes(e,l))[0];if(a!==void 0)return a}let r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(r=>t.setAttribute(this._getMetaKeyMap(r),e[r])),t}_parseSelector(e){let t=e.name?"name":"property";return `${t}=${this._escapeSelectorValue(String(e[t]))}`}_escapeSelectorValue(e){return `"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}_containsAttributes(e,t){return Object.keys(e).every(r=>t.getAttribute(this._getMetaKeyMap(r))===e[r])}_getMetaKeyMap(e){return Ve$8[e]||e}static \u0275fac=function(t){return new(t||o)(me$b(jn$2))};static \u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"})}return o}
165)(),Ve$8={httpEquiv:"http-equiv"},Yt$4=(()=>{class o{_doc;constructor(e){this._doc=e;}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||"";}static \u0275fac=function(t){return new(t||o)(me$b(jn$2))};static \u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Fe$8=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=G$f({token:o,factory:function(t){let r=null;return t?r=new(t||o):r=me$b(ze$6),r},providedIn:"root"})}return o})(),ze$6=(()=>{class o extends Fe$8{_doc=D$l(jn$2);sanitize(e,t){if(t==null)return null;switch(e){case Qr$4.NONE:return t;case Qr$4.HTML:return Xi$3(t,"HTML")?Zn$2(t):Vp$2(this._doc,String(t)).toString();case Qr$4.STYLE:return Xi$3(t,"Style")?Zn$2(t):t;case Qr$4.SCRIPT:if(Xi$3(t,"Script"))return Zn$2(t);throw new _$7(5200,false);case Qr$4.URL:return Xi$3(t,"URL")?Zn$2(t):Gc$1(String(t));case Qr$4.RESOURCE_URL:if(Xi$3(t,"ResourceURL"))return Zn$2(t);throw new _$7(5201,false);default:throw new _$7(5202,false)}}bypassSecurityTrustHtml(e){return oI(e)}bypassSecurityTrustStyle(e){return iI(e)}bypassSecurityTrustScript(e){return sI(e)}bypassSecurityTrustUrl(e){return aI(e)}bypassSecurityTrustResourceUrl(e){return cI(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=ct$9({token:o,factory:o.\u0275fac})}return o})();
166var p$8="primary",Qe$5=Symbol("RouteTitle"),ir$2=class ir{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$5(t){return new ir$2(t)}function er$2(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return  false}return  true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er$2(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er$2(o,t.slice(0,o.length),c)||!er$2(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$4(t){return new Promise((n,e)=>{t.pipe(Mu$2()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return  false;for(let e=0;e<t.length;++e)if(!V$7(t[e],n[e]))return  false;return  true}function V$7(t,n){let e=t?or$2(t):void 0,r=n?or$2(n):void 0;if(!e||!r||e.length!=r.length)return  false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn(t[i],n[i]))return  false;return  true}function or$2(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return  false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei$1(t){return t.length>0?t[t.length-1]:null}function fe$4(t){return ry(t)?t:wl$2(t)?je$8(Promise.resolve(t)):Ms$2(t)}function Nn$1(t){return ry(t)?gt$4(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n$1},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr$3={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$5={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr$3(t,n,e){let r=t instanceof T$5?t:n.parseUrl(t);return Pb(()=>ar$2(n.lastSuccessfulNavigation()?.finalUrl??new T$5,r,D$m(D$m({},ze$5),e)))}function ar$2(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V$7(t,n)}function Dn$1(t,n,e){if(!le$4(t.segments,n.segments)||!dt$4(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return  false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return  false;return  true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn(t[e],n[e]))}function _n$1(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);
166return !(!le$4(i,e)||n.hasChildren()||!dt$4(i,e,r))}else if(t.segments.length===e.length){if(!le$4(t.segments,e)||!dt$4(t.segments,e,r))return  false;for(let i in n.children)if(!t.children[i]||!_n$1(t.children[i],n.children[i],r))return  false;return  true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$4(t.segments,i)||!dt$4(t.segments,i,r)||!t.children[p$8]?false:Un$1(t.children[p$8],n,o,r)}}function dt$4(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T$5=class T{root;queryParams;fragment;_queryParamMap;constructor(n=new m$5([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$5(this.queryParams),this._queryParamMap}toString(){return Ui$1.serialize(this)}},m$5=class m{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$5(this)}},ee$6=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$5(this.parameters),this._parameterMap}toString(){return Pn(this)}};function Di$1(t,n){return le$4(t,n)&&t.every((e,r)=>V$7(e.parameters,n[r].parameters))}function le$4(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p$8&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p$8&&(e=e.concat(n(i,r)));}),e}var ne$5=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:()=>new Y$6})}return t})(),Y$6=class Y{parse(n){let e=new cr$2(n);return new T$5(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${xe$5(n.root,true)}`,r=Li$1(n.queryParams),i=typeof n.fragment=="string"?`#${Oi$1(n.fragment)}`:"";return `${e}${r}${i}`}},Ui$1=new Y$6;function ft$5(t){return t.segments.map(n=>Pn(n)).join("/")}function xe$5(t,n){if(!t.hasChildren())return ft$5(t);if(n){let e=t.children[p$8]?xe$5(t.children[p$8],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p$8&&r.push(`${i}:${xe$5(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p$8?[xe$5(t.children[p$8],false)]:[`${i}:${xe$5(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p$8]!=null?`${ft$5(t)}/${e[0]}`:`${ft$5(t)}/(${e.join("//")})`}}function On(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$5(t){return On(t).replace(/%3B/gi,";")}function Oi$1(t){return encodeURI(t)}function sr$2(t){return On(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$4(t){return decodeURIComponent(t)}function Rn$1(t){return pt$4(t.replace(/\+/g,"%20"))}function Pn(t){return `${sr$2(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr$2(n)}=${sr$2(e)}`).join("")}function Li$1(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$5(e)}=${lt$5(i)}`).join("&"):`${lt$5(e)}=${lt$5(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var xi$1=/^[^\/()?;#]+/;function tr$2(t){let n=t.match(xi$1);return n?n[0]:""}var ji$1=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(ji$1);return n?n[0]:""}var $i$1=/^[^=?&#]+/;function zi(t){let n=t.match($i$1);return n?n[0]:""}var Hi$1=/^[^&#]+/;function Fi(t){let n=t.match(Hi$1);return n?n[0]:""}var cr$2=class cr{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m$5([],{}):new m$5([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new _$7(4010,false);
166if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p$8]=new m$5(e,r)),i}parseSegment(){let n=tr$2(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new _$7(4009,false);return this.capture(n),new ee$6(pt$4(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr$2(this.remaining);i&&(r=i,this.capture(r));}n[pt$4(e)]=pt$4(r);}parseQueryParam(n){let e=zi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(n.hasOwnProperty(i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr$2(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new _$7(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p$8);let c=this.parseChildren(e+1);r[a??p$8]=Object.keys(c).length===1&&c[p$8]?c[p$8]:new m$5([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new _$7(4011,false)}};function Ln(t){return t.segments.length>0?new m$5([],{[p$8]:t}):t}function xn$1(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=xn$1(i);if(r===p$8&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m$5(t.segments,n);return qi$1(e)}function qi$1(t){if(t.numberOfChildren===1&&t.children[p$8]){let n=t.children[p$8];return new m$5(t.segments.concat(n.segments),n.children)}return t}function te$8(t){return t instanceof T$5}function jn(t,n,e=null,r=null,i=new Y$6){let o=kn(t);return $n(o,n,e,r,i)}function kn(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m$5(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln(r);return n??i}function $n(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr$2(o,o,o,e,r,i);let a=Bi$1(n);if(a.toRoot())return rr$2(o,o,new m$5([],{}),e,r,i);let c=Vi$1(a,o,t),s=c.processChildren?ke$6(c.segmentGroup,c.index,a.commands):Hn(c.segmentGroup,c.index,a.commands);return rr$2(o,c.segmentGroup,s,e,r,i)}function vt$4(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He$5(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$2(t,n,e){t||="\u0275";let r=new T$5;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr$2(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$2(u,v,o)):Sn$2(u,d,o);let c;t===n?c=e:c=zn(t,n,e);let s=Ln(xn$1(c));return new T$5(s,a,i)}function zn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn(o,n,e);}),new m$5(t.segments,r)}var mt$3=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$4(r[0]))throw new _$7(4003,false);let i=r.find(He$5);if(i&&i!==Ei$1(r))throw new _$7(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi$1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$3(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};
166return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$3(e,n,r)}var Re$5=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi$1(t,n,e){if(t.isAbsolute)return new Re$5(n,true,0);if(!e)return new Re$5(n,false,NaN);if(e.parent===null)return new Re$5(e,true,0);let r=vt$4(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi$1(e,i,t.numberOfDoubleDots)}function Gi$1(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new _$7(4005,false);i=r.segments.length;}return new Re$5(r,false,i-o)}function Wi$1(t){return He$5(t[0])?t[0].outlets:{[p$8]:t}}function Hn(t,n,e){if(t??=new m$5([],{}),t.segments.length===0&&t.hasChildren())return ke$6(t,n,e);let r=Qi$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m$5(t.segments.slice(0,r.pathIndex),{});return o.children[p$8]=new m$5(t.segments.slice(r.pathIndex),t.children),ke$6(o,0,i)}else return r.match&&i.length===0?new m$5(t.segments,{}):r.match&&!t.hasChildren()?ur$2(t,n,e):r.match?ke$6(t,0,i):ur$2(t,n,e)}function ke$6(t,n,e){if(e.length===0)return new m$5(t.segments,{});{let r=Wi$1(e),i={};if(Object.keys(r).some(o=>o!==p$8)&&t.children[p$8]&&t.numberOfChildren===1&&t.children[p$8].segments.length===0){let o=ke$6(t.children[p$8],n,e);return new m$5(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m$5(t.segments,i)}}function Qi$1(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He$5(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$2(s,u,a))return o;r+=2;}else {if(!wn$2(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur$2(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He$5(o)){let s=Ki$1(o.outlets);return new m$5(r,s)}if(i===0&&vt$4(e[0])){let s=t.segments[n];r.push(new ee$6(s.path,Cn$1(e[0]))),i++;continue}let a=He$5(o)?o.outlets[p$8]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$4(c)?(r.push(new ee$6(a,Cn$1(c))),i+=2):(r.push(new ee$6(a,{})),i++);}return new m$5(r,{})}function Ki$1(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur$2(new m$5([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$2(t,n,e){return t==e.path&&V$7(n,e.parameters)}var Se$7="imperative",S$4=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S$4||{}),O$5=class O{id;url;constructor(n,e){this.id=n,this.url=e;}},re$7=class re extends O$5{type=S$4.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P$8=class P extends O$5{urlAfterRedirects;type=S$4.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A$5=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromRe
166solver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A$5||{}),we$6=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we$6||{}),$$3=class $ extends O$5{reason;code;type=S$4.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $$3&&(t.code===A$5.Redirect||t.code===A$5.SupersededByNewNavigation)}var G$6=class G extends O$5{reason;code;type=S$4.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de$4=class de extends O$5{error;target;type=S$4.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$7=class Fe extends O$5{urlAfterRedirects;state;type=S$4.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$3=class yt extends O$5{urlAfterRedirects;state;type=S$4.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt$3=class Rt extends O$5{urlAfterRedirects;state;shouldActivate;type=S$4.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$4=class St extends O$5{urlAfterRedirects;state;type=S$4.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$3=class Ct extends O$5{urlAfterRedirects;state;type=S$4.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$5=class wt{route;type=S$4.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$4=class bt{route;type=S$4.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It$4=class It{snapshot;type=S$4.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$4=class At{snapshot;type=S$4.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$4=class Et{snapshot;type=S$4.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$3=class Tt{snapshot;type=S$4.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be$5=class be{routerEvent;position;anchor;scrollBehavior;type=S$4.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$3=class Ie{},qe$4=class qe{},Ae$4=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi$1(t){return !(t instanceof Ie$3)&&!(t instanceof Ae$4)&&!(t instanceof qe$4)}var Nt$5=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$5(this.rootInjector);}},pe$5=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$5(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(me$b(fe$d))};static \u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$3=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}
166parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr$2(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr$2(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr$3(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr$3(n,this._root).map(e=>e.value)}};function lr$2(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr$2(t,e);if(r)return r}return null}function hr$3(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr$3(t,e);if(r.length)return r.unshift(n),r}return []}var U$6=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$5(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$6=class Be extends Mt$3{snapshot;constructor(n,e){super(n),this.snapshot=e,wr$3(this,n);}toString(){return this.snapshot.toString()}};function qn(t,n){let e=Zi$1(t,n),r=new rr$4([new ee$6("",{})]),i=new rr$4({}),o=new rr$4({}),a=new rr$4({}),c=new rr$4(""),s=new W$6(r,i,a,c,o,p$8,t,e.root);return s.snapshot=e.root,new Be$6(new U$6(s,[]),e)}function Zi$1(t,n){let e={},r={},i={},a=new Ee$2([],e,i,"",r,p$8,t,null,{},n);return new Ve$7("",new U$6(a,[]))}var W$6=class W{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ge$9(u=>u[Qe$5]))??Ms$2(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ge$9(n=>he$5(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ge$9(n=>he$5(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji$2="always";function Cr$3(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:D$m(D$m({},n.params),t.params),data:D$m(D$m({},n.data),t.data),resolve:D$m(D$m(D$m(D$m({},t.data),n.data),i?.data),t._resolvedData)}:r={params:D$m({},t.params),data:D$m({},t.data),resolve:D$m(D$m({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$5]=i.title),r}var Ee$2=class Ee{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$5]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=he$5(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$5(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$7=class Ve extends Mt$3{url;constructor(n,e){super(e),this.url=n,wr$3(this,e);}toString(){return Bn$1(this._root)}};function wr$3(t,n){n.value._routerState=t,n.children.forEach(e=>wr$3(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr$2(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V$7(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V$7(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V$7(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr$2(t,n){let e=V$7(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr$2(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn=new M$g(""),br$2=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p$8;activateEvents=new tt$b;deactivateEvents=new tt$b;attachEvents=new tt$b;detachEvents=new tt$b;routerOutletData=VV();parentContexts=D$l(pe$5);location=D$l(ds$1);changeDetector=D$l(WV);inputBinder=D$l(Ke$5,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}
166get component(){if(!this.activated)throw new _$7(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _$7(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _$7(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new _$7(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr$3(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=dw({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ev$1]})}return t})(),fr$3=class fr{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W$6?this.route:n===pe$5?this.childContexts:n===Gn?this.outletData:this.parent.get(n,e)}},Ke$5=new M$g(""),Wn=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=qm$2([this.options.queryParams?r.queryParams:Ms$2({}),r.params,r.data]).pipe(Ru$2(([o,a,c],s)=>(c=D$m(D$m(D$m({},o),a),c),s===0?Ms$2(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=JV(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){_D();};static \u0275prov=G$f({token:t,factory:t.\u0275fac})}return t})(),Ir$3=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=sw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Eg$1(0,"router-outlet");},dependencies:[br$2],encapsulation:2,changeDetection:1})}return t})();function Ar$3(t){let n=t.children&&t.children.map(Ar$3),e=n?E$9(D$m({},t),{children:n}):D$m({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p$8&&(e.component=Ir$3),e}function Xi$1(t,n,e){let r=new Set,i=Ge$6(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$6(i,n)}}function Ge$6(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo$1(t,n,e,r);return new U$6(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge$6(t,s,void 0,r)),c}}let i=to$1(n.value);r.add(i);let o=n.children.map(a=>Ge$6(t,a,void 0,r));return new U$6(i,o)}}function eo$1(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge$6(t,i,o,r);return Ge$6(t,i,void 0,r)})}function to$1(t){return new W$6(new rr$4(t.url),new rr$4(t.params),new rr$4(t.queryParams),new rr$4(t.fragment),new rr$4(t.data),t.outlet,t.component,t)}var Te$6=class Te{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn="ngNavigationCancelingError";function Dt$5(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$8(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn(false,A$5.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn]=true,e.cancellationCode=n,e}function ro$1(t){return Yn(t)&&te$8(t.url)}function Yn(t){return !!t&&t[Qn]}var pr$2=class pr{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr$2(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$5(e);
166n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$5(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$5(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$5(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$3(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$4(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr$2(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr$2(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$4=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$7=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no$1(t,n,e){let r=t._root,i=n?n._root:null;return je$3(r,i,e,[r.value])}function io$1(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$5(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!My(t)?t:n.get(t):r}function je$3(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$5(n);return t.children.forEach(a=>{oo$1(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e$5(c,e.getContext(a),i)),i}function oo$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao$2(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$4(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?je$3(t,n,c?c.children:null,r,i):je$3(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$7(c.outlet.component,a));}else a&&$e$5(n,c,i),i.canActivateChecks.push(new _t$4(r)),o.component?je$3(t,null,c?c.children:null,r,i):je$3(t,null,e,r,i);return i}function ao$2(t,n,e){if(typeof e=="function")return Xo$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$4(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$4(t.url,n.url)||!V$7(t.queryParams,n.queryParams);case "always":return  true;case "paramsOrQueryParamsChange":return !dr$2(t,n)||!V$7(t.queryParams,n.queryParams);default:return !dr$2(t,n)}}function $e$5(t,n,e){let r=ye$5(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e$5(a,n.children.getContext(o),e):$e$5(a,null,e):$e$5(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$7(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$7(null,i)):e.canDeactivateChecks.push(new Ce$7(null,i));}function Ye$5(t){return typeof t=="function"}function so$2(t){return typeof t=="boolean"}function co$2(t){return t&&Ye$5(t.canLoad)}function uo$2(t){return t&&Ye$5(t.canActivate)}function lo$2(t){return t&&Ye$5(t.canActivateChild)}function ho$1(t){return t&&Ye$5(t.canDeactivate)}function fo$1(t){return t&&Ye$5(t.canMatch)}function Zn(t){return t instanceof Lt$9||t?.name==="EmptyError"}var ht$3=Symbol("INITIAL_VALUE");function Ne$4(){return Ru$2(t=>qm$2(t.map(n=>n.pipe(Pt$a(1),Au$2(ht$3)))).pipe(ge$9(n=>{for(let e of n)if(e!==true){if(e===ht$3)return ht$3;if(e===false||po$2(e))return e}return  true}),Tn$3(n=>n!==ht$3),Pt$a(1)))}function po$2(t){return te$8(t)||t instanceof Te$6}function Jn(t){return t.aborted?Ms$2(void 0).pipe(Pt$a(1)):new x$g(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn(t){return ku$2(Jn(t))}function go$2(t){return _e$b(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Ms$2(E$9(D$m({},n),{guardsResult:true}
166)):vo$1(o,e,r).pipe(_e$b(a=>a&&so$2(a)?mo$2(e,i,t):Ms$2(a)),ge$9(a=>E$9(D$m({},n),{guardsResult:a})))})}function vo$1(t,n,e){return je$8(t).pipe(_e$b(r=>wo$2(r.component,r.route,e,n)),Mu$2(r=>r!==true,true))}function mo$2(t,n,e){return je$8(n).pipe(Du$2(r=>dt$8(Ro$2(r.route.parent,e),yo$2(r.route,e),Co$1(t,r.path),So$1(t,r.route))),Mu$2(r=>r!==true,true))}function yo$2(t,n){return t!==null&&n&&n(new Et$4(t)),Ms$2(true)}function Ro$2(t,n){return t!==null&&n&&n(new It$4(t)),Ms$2(true)}function So$1(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Ms$2(true);let r=e.map(i=>oy(()=>{let o=n._environmentInjector,a=Me$5(i,o),c=uo$2(a)?a.canActivate(n,t):Xo$3(o,()=>a(n,t));return fe$4(c).pipe(Mu$2())}));return Ms$2(r).pipe(Ne$4())}function Co$1(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io$1(o)).filter(o=>o!==null).map(o=>oy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$5(c,s),d=lo$2(u)?u.canActivateChild(e,t):Xo$3(s,()=>u(e,t));return fe$4(d).pipe(Mu$2())});return Ms$2(a).pipe(Ne$4())}));return Ms$2(i).pipe(Ne$4())}function wo$2(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return Ms$2(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$5(a,c),u=ho$1(s)?s.canDeactivate(t,n,e,r):Xo$3(c,()=>s(t,n,e,r));return fe$4(u).pipe(Mu$2())});return Ms$2(o).pipe(Ne$4())}function bo$1(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Ms$2(true);let a=o.map(c=>{let s=Me$5(c,t),u=co$2(s)?s.canLoad(n,e):Xo$3(t,()=>s(n,e)),d=fe$4(u);return i?d.pipe(Xn(i)):d});return Ms$2(a).pipe(Ne$4(),ei$4(r))}function ei$4(t){return ws$2(Lu$2(n=>{if(typeof n!="boolean")throw Dt$5(t,n)}),ge$9(n=>n===true))}function Io$1(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return Ms$2(true);let c=a.map(s=>{let u=Me$5(s,t),d=fo$1(u)?u.canMatch(n,e,i):Xo$3(t,()=>u(n,e,i));return fe$4(d).pipe(Xn(o))});return Ms$2(c).pipe(Ne$4(),ei$4(r))}var K$5=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We$6=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao$1(t){throw new _$7(4e3,false)}function Eo$1(t){throw Kn(false,A$5.GuardRejected)}var gr$2=class gr{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return K$g(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p$8])throw Ao$1(`${n.redirectTo}`);i=i.children[p$8];}})}applyRedirectCommands(n,e,r,i,o){return K$g(this,null,function*(){let a=yield To$1(e,i,o);if(a instanceof T$5)throw new We$6(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We$6(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T$5(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a={};return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m$5(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new _$7(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To$1(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$4(fe$4(Xo$3(e,()=>r(n))))}function No$1(t,n){return t.providers&&!t._injector&&(t._injector=Tl$2(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H$4(t){return t.outlet||p$8}function Mo$2(t,n){let e=t.filter(r=>H$4(r)===n);return e.push(...t.filter(r=>H$4(r)!==n)),e}var vr$3={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};
166function ti$4(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do$2(t,n,e,r,i,o,a){let c=ri$4(t,n,e);if(!c.matched)return Ms$2(c);let s=ti$4(o(c));return r=No$1(n,r),Io$1(r,n,e,i,s,a).pipe(ge$9(u=>u===true?c:D$m({},vr$3)))}function ri$4(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?D$m({},vr$3):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return D$m({},vr$3);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?D$m(D$m({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn$2(t,n,e,r,i){return e.length>0&&Oo$1(t,e,r,i)?{segmentGroup:new m$5(n,Uo$1(r,new m$5(e,t.children))),slicedSegments:[]}:e.length===0&&Po$2(t,e,r)?{segmentGroup:new m$5(t.segments,_o$1(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m$5(t.segments,t.children),slicedSegments:e}}function _o$1(t,n,e,r){let i={};for(let o of e)if(Ot$4(t,n,o)&&!r[H$4(o)]){let a=new m$5([],{});i[H$4(o)]=a;}return D$m(D$m({},r),i)}function Uo$1(t,n){let e={};e[p$8]=n;for(let r of t)if(r.path===""&&H$4(r)!==p$8){let i=new m$5([],{});e[H$4(r)]=i;}return e}function Oo$1(t,n,e,r){return e.some(i=>!Ot$4(t,n,i)||!(H$4(i)!==p$8)?false:!(r!==void 0&&H$4(i)===r))}function Po$2(t,n,e){return e.some(r=>Ot$4(t,n,r))}function Ot$4(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo$1(t,n,e){return n.length===0&&!t.children[e]}var mr$2=class mr{};function xo$1(t,n,e,r,i,o,a,c){return K$g(this,null,function*(){return new yr$3(t,n,e,r,i,a,o,c).recognize()})}var jo$1=31,yr$3=class yr{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr$2(this.urlSerializer,this.urlTree);}noMatchError(n){return new _$7(4002,`'${n.segmentGroup}'`)}recognize(){return K$g(this,null,function*(){let n=bn$2(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$6(r,e),o=new Ve$7("",i),a=jn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return K$g(this,null,function*(){let e=new Ee$2([],Object.freeze({}),Object.freeze(D$m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p$8,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p$8,e),rootSnapshot:e}}catch(r){if(r instanceof We$6)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$5?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return K$g(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$6?[a]:[]})}processChildren(n,e,r,i){return K$g(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo$2(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$3(a);return ko$1(c),c})}processSegment(n,e,r,i,o,a,c){return K$g(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$5||Zn(u))continue;throw u}if(Lo$1(r,i,o))return new mr$2;throw new K$5(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return K$g(this,null,function*(){if(H$4(r)!==a&&(a===p$8||!Ot$4(i,o,r)))throw new K$5(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$5(i)})}
166expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return K$g(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$4(e,i,o);if(!s)throw new K$5(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>jo$1&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$4(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee$2(r,i,Object.freeze(D$m({},this.urlTree.queryParams)),this.urlTree.fragment,zo$1(e),H$4(e),e.component??e._loadedComponent??null,e,Ho$1(e),n),c=Cr$3(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return K$g(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$4(Do$2(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$5(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn$2(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$6(z,ae)}if(u.length===0&&De.length===0)return new U$6(z,[]);let zt=H$4(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p$8:o,true,z);return new U$6(z,Xe instanceof U$6?[Xe]:[])})}getChildConfig(n,e,r){return K$g(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$4(bo$1(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo$1()}return {routes:[],injector:n}})}};function ko$1(t){t.sort((n,e)=>n.value.outlet===p$8?-1:e.value.outlet===p$8?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$3(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$3(r.children);n.push(new U$6(r.value,i));}return n.filter(r=>!e.has(r))}function zo$1(t){return t.data||{}}function Ho$1(t){return t.resolve||{}}function Fo$2(t,n,e,r,i,o,a){return _e$b(c=>K$g(null,null,function*(){let{state:s,tree:u}=yield xo$1(t,n,e,r,c.extractedUrl,i,o,a);return E$9(D$m({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return _e$b(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Ms$2(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$4(c))o.add(s);let a=0;return je$8(o).pipe(Du$2(c=>i.has(c)?Bo$1(c,e,t):(c.data=Cr$3(c,c.parent,t).resolve,Ms$2(void 0))),Lu$2(()=>a++),py(1),_e$b(c=>a===o.size?Ms$2(n):He$9))})}function ii$4(t){let n=t.children.map(e=>ii$4(e)).flat();return [t,...n]}function Bo$1(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$5]=r.title),oy(()=>(t.data=Cr$3(t,t.parent,e).resolve,Vo(i,t,n).pipe(ge$9(o=>(t._resolvedData=o,t.data=D$m(D$m({},t.data),o),null)))))}function Vo(t,n,e){let r=or$2(t);if(r.length===0)return Ms$2({});let i={};return je$8(r).pipe(_e$b(o=>Go(t[o],n,e).pipe(Mu$2(),Lu$2(a=>{if(a instanceof Te$6)throw Dt$5(new Y$6,a);i[o]=a;}))),py(1),ge$9(()=>i),xs$1(o=>Zn(o)?He$9:Lm$2(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$5(t,r),o=i.resolve?i.resolve(n,e):Xo$3(r,()=>i(n,e));return fe$4(o)}function In$1(t){return Ru$2(n=>{let e=t(n);return e?je$8(e).pipe(ge$9(()=>n)):Ms$2(n)})}var Er$3=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p$8);return r}getResolvedTitleForRoute(e){return e.data[Qe$5]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:()=>D$l(oi$3)})}return t})(),oi$3=(()=>
166{class t extends Er$3{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(me$b(Yt$4))};static \u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie$8=new M$g("",{factory:()=>({})}),ge$5=new M$g(""),Pt$3=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=D$l(Rb);loadComponent(e,r){return K$g(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=K$g(this,null,function*(){try{let o=yield Nn$1(Xo$3(e,()=>r.loadComponent())),a=yield si$4(FV(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=K$g(this,null,function*(){try{let o=yield ai$4(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();function ai$4(t,n,e,r){return K$g(this,null,function*(){let i=yield Nn$1(Xo$3(e,()=>t.loadChildren())),o=yield si$4(FV(i)),a;o instanceof rg$1||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$5,[],{optional:true,self:true}).flat()),{routes:s.map(Ar$3),injector:c,factory:d}})}function si$4(t){return K$g(this,null,function*(){return t})}var Lt$3=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:()=>D$l(Wo$1)})}return t})(),Wo$1=(()=>{class t{shouldProcessUrl(e){return  true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})(),Tr$3=new M$g(""),Nr$2=new M$g("");function ci$4(t,n,e){let r=t.get(Nr$2),i=t.get(jn$2);
166if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Qo$1(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&Xo$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo$1(t){return new Promise(n=>{oh$2({read:()=>setTimeout(n)},{injector:t});})}var ui$2=new M$g(""),Ko$1=()=>{},Mr$3=new M$g(""),xt$4=(()=>{class t{currentNavigation=fi$4(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=fi$4(null);events=new de$c;transitionAbortWithErrorSubject=new de$c;configLoader=D$l(Pt$3);environmentInjector=D$l(fe$d);destroyRef=D$l(st$b);urlSerializer=D$l(ne$5);rootContexts=D$l(pe$5);location=D$l(it$8);inputBindingEnabled=D$l(Ke$5,{optional:true})!==null;titleStrategy=D$l(Er$3);options=D$l(ie$8,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji$2;urlHandlingStrategy=D$l(Lt$3);createViewTransition=D$l(Tr$3,{optional:true});navigationErrorHandler=D$l(Mr$3,{optional:true});activatedRouteInjectorFeature=D$l(ui$2,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Ms$2(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$5(i)),r=i=>this.events.next(new bt$4(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;Fb(()=>{this.transitions?.next(E$9(D$m({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new rr$4(null),this.transitions.pipe(Tn$3(r=>r!==null),Ru$2(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return Ms$2(r).pipe(Ru$2(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A$5.SupersededByNewNavigation),He$9;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?E$9(D$m({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G$6(s.id,this.urlSerializer.serialize(s.rawUrl),"",we$6.IgnoredSameUrlNavigation)),s.resolve(false),He$9;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Ms$2(s).pipe(Ru$2(g=>(this.events.next(new re$7(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?He$9:Promise.resolve(g))),Fo$2(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Lu$2(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$4);}),Ru$2(g=>je$8(r.routesRecognizeHandler.deferredHandle??Ms$2(void 0)).pipe(ge$9(()=>g))),Lu$2(()=>{let g=new Fe$7(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$7(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=E$9(D$m({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:E$9(D$m({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),Ms$2(r)}else return this.events.next(new G$6(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we$6.IgnoredByUrlHandlingStrategy)),s.resolve(false),He$9}),ge$9(s=>{let u=new yt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=E$9(D$m({},s),{guards:no$1(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go$2(s=>this.events.next(s)),Ru$2(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$5(this.urlSerializer,s.guardsResult);let u=new Rt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return He$9;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A$5.GuardRejected),He$9;if(s.guards.canActivateChecks.length===0)return Ms$2(s);let d=new St$4(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return He$9;let v=false;return Ms$2(s).pipe(qo(this.paramsInheritanceStrategy),Lu$2({next:()=>{v=true;let g=new Ct$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>
166{v||this.cancelNavigationTransition(s,"",A$5.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?Ms$2(s):je$8(Promise.all(d).then(()=>s))}),Ru$2(s=>{let{newlyCreatedRoutes:u,state:d}=Xi$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=E$9(D$m({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),Ms$2(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),Ru$2(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?je$8(d).pipe(ge$9(()=>r)):Ms$2(r)}),Pt$a(1),Ru$2(s=>{i=false,this.events.next(new Ie$3);let u=r.beforeActivateHandler.deferredHandle;return u?je$8(u.then(()=>s)):Ms$2(s)}),Lu$2(s=>{new pr$2(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko$1,u)),this.lastSuccessfulNavigation.set(Fb(this.currentNavigation)),this.events.next(new P$8(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),ku$2(Jn(a.signal).pipe(Tn$3(()=>!o&&i),Lu$2(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A$5.Aborted);}))),Lu$2({complete:()=>{o=true;}}),ku$2(this.transitionAbortWithErrorSubject.pipe(Lu$2(s=>{throw s}))),bu$2(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A$5.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),xs$1(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),He$9;if(Yn(s))this.events.next(new $$3(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro$1(s)?this.events.next(new Ae$4(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de$4(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=Xo$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te$6){let{message:v,cancellationCode:g}=Dt$5(this.urlSerializer,d);this.events.next(new $$3(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$4(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return He$9}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $$3(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=Fb(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se$7}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li$4=new M$g("");var hi$3=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:()=>D$l(Zo$1)})}return t})(),Ut$4=class Ut{shouldDetach(n){return  false}store(n,e){}shouldAttach(n){return  false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return  true}},Zo$1=(()=>{class t extends Ut$4{static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})(),jt$3=(()=>
166{class t{urlSerializer=D$l(ne$5);options=D$l(ie$8,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=D$l(it$8);urlHandlingStrategy=D$l(Lt$3);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T$5;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T$5?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn(null,D$l(fe$d));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:()=>D$l(Jo$1)})}return t})(),Jo$1=(()=>{class t extends jt$3{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$7?this.updateStateMemento():e instanceof G$6?this.commitTransition(r):e instanceof Fe$7?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$3?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $$3&&!Fn$1(e)?this.restoreHistory(r):e instanceof de$4?this.restoreHistory(r,true):e instanceof P$8&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;
166if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=D$m(D$m({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=D$m(D$m({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?D$m({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):D$m({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();function kt$2(t,n){t.events.pipe(Tn$3(e=>e instanceof P$8||e instanceof $$3||e instanceof de$4||e instanceof G$6),ge$9(e=>e instanceof P$8||e instanceof G$6?0:(e instanceof $$3?e.code===A$5.Redirect||e.code===A$5.SupersededByNewNavigation:false)?2:1),Tn$3(e=>e!==2),Pt$a(1)).subscribe(()=>{n();});}var F$4=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=D$l(Gw);stateManager=D$l(jt$3);options=D$l(ie$8,{optional:true})||{};pendingTasks=D$l(Tt$9);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=D$l(xt$4);urlSerializer=D$l(ne$5);location=D$l(it$8);urlHandlingStrategy=D$l(Lt$3);injector=D$l(fe$d);_events=new de$c;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=D$l(hi$3);injectorCleanup=D$l(li$4,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=D$l(ge$5,{optional:true})?.flat()??[];componentInputBindingEnabled=!!D$l(Ke$5,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new W$f;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Fb(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $$3&&r.code!==A$5.Redirect&&r.code!==A$5.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P$8)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$4){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=D$m({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se$7,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi$1(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se$7,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=E$9(D$m({},o),{browserUrl:e})),i){let u=D$m({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(bt$b)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Fb(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar$3),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=D$m(D$m({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn(g);}
166catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$8(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se$7,null,r)}navigate(e,r={skipLocationChange:false}){return Xo$1(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(yr$5(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=D$m({},Rr$3):r===false?i=D$m({},ze$5):i=D$m(D$m({},ze$5),r),te$8(e))return ar$2(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar$2(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt$2(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
166),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})();function Xo$1(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new _$7(4008,false)}var ea$1=(()=>{class t{router=D$l(F$4);stateManager=D$l(jt$3);fragment=fi$4("");queryParams=fi$4({});path=fi$4("");serializer=D$l(ne$5);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P$8&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T$5(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ct$9({token:t,factory:t.\u0275fac})}return t})(),$t$4=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=D$l(new im$2("href"),{optional:true});reactiveHref=Vb(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Fb(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return Fb(this._target)}_target=fi$4(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return Fb(this._queryParams)}_queryParams=fi$4(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return Fb(this._fragment)}_fragment=fi$4(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return Fb(this._queryParamsHandling)}_queryParamsHandling=fi$4(void 0);set state(e){this._state.set(e);}get state(){return Fb(this._state)}_state=fi$4(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return Fb(this._info)}_info=fi$4(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return Fb(this._relativeTo)}_relativeTo=fi$4(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return Fb(this._preserveFragment)}_preserveFragment=fi$4(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return Fb(this._skipLocationChange)}_skipLocationChange=fi$4(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return Fb(this._replaceUrl)}_replaceUrl=fi$4(false);browserUrl=VV(void 0);isAnchorElement;onChanges=new de$c;applicationErrorHandler=D$l(bt$b);options=D$l(ie$8,{optional:true});reactiveRouterState=D$l(ea$1);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=fi$4(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$8(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return  true;let s=this.browserUrl(),u=D$m({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=Pb(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$8(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return Fb(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(Jr$4(F$4),Jr$4(W$6),gp$1("tabindex"),Jr$4(fD),Jr$4(Gr$4),Jr$4($$a))};static \u0275dir=dw({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&_g$1("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&vg$1("href",i.reactiveHref(),jI)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",QV],skipLocationChange:[2,"skipLocationChange","skipLocationChange",QV],replaceUrl:[2,"replaceUrl","replaceUrl",QV],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Ev$1]})}return t})(),ta$1=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new tt$b;link=D$l($t$4,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P$8&&this.update();});}ngAfterContentInit(){Ms$2(this.links.changes,Ms$2(null)).pipe(sr$3()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=je$8(e).pipe(sr$3()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();
166this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?D$m({},Rr$3):D$m({},ze$5);return i=>{let o=i.urlTree;return o?Fb(Sr$3(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(Jr$4(F$4),Jr$4(Gr$4),Jr$4(fD),Jr$4(WV))};static \u0275dir=dw({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Ng$1(o,$t$4,5),r&2){let a;OT(a=LT())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ev$1]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze$5=class Ze{};var di$3=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Tn$3(e=>e instanceof P$8),Du$2(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Tl$2(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return je$8(i).pipe(sr$3())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return Ms$2(null);let i;r.loadChildren&&r.canLoad===void 0?i=je$8(this.loader.loadChildren(e,r)):i=Ms$2(null);let o=i.pipe(_e$b(a=>a===null?Ms$2(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return je$8([o,a]).pipe(sr$3())}else return o})}static \u0275fac=function(r){return new(r||t)(me$b(F$4),me$b(fe$d),me$b(Ze$5),me$b(Pt$3))};static \u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$2=new M$g(""),na$1=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se$7;restoredId=0;store={};isHydrating=D$l(Zv$1,{optional:true})??false;urlSerializer=D$l(ne$5);zone=D$l($$b);viewportScroller=D$l(er$4);transitions=D$l(xt$4);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&D$l(tr$5).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof re$7?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P$8?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G$6&&e.code===we$6.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be$5)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=Fb(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>K$g(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be$5(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){_D();};static \u0275prov=G$f({token:t,factory:t.\u0275fac})}return t})();function ia$1(t,...n){return Ko$3([{provide:ge$5,multi:true,useValue:t},{provide:W$6,useFactory:pi$3},{provide:hg,multi:true,useFactory:gi$3},n.map(e=>e.\u0275providers)])}function pi$3(){return D$l(F$4).routerState.root}function Je$5(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$3(){let t=D$l(ye$7);return n=>{let e=t.get(tr$5);if(n!==e.components[0])return;let r=t.get(F$4),i=t.get(vi$1);t.get(_r$3)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$2,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new M$g("",{factory:()=>new de$c}),_r$3=new M$g("",{factory:()=>1});function mi$3(){let t=[{provide:Yv$1,useValue:true},{provide:_r$3,useValue:0},hw(()=>{let n=D$l(ye$7);return n.get(iH,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F$4),o=n.get(vi$1);kt$2(i,()=>{r(true);}),n.get(xt$4).afterPreactivation=()=>(r(true),o.closed?Ms$2(void 0):o),i.initialNavigation();}))})];return Je$5(2,t)}function yi$2(){let t=[hw(()=>{D$l(F$4).setUpLocationChangeListener();}),{provide:_r$3,useValue:2}];return Je$5(3,t)}var Ri$1=new M$g("");function Si$1(t){return Je$5(0,[{provide:Ri$1,useExisting:di$3},{provide:Ze$5,useExisting:t}])}function Ci$2(t={}){return Je$5(8,[{provide:Ke$5,useFactory:()=>new Wn(t)}])}function wi$1(t){le$a("NgRouterViewTransitions");let n=[{provide:Tr$3,useValue:ci$4},{provide:Nr$2,useValue:D$m({skipNextTransition:false},t)}];return Je$5(9,n)}var bi$1=[it$8,{provide:ne$5,useClass:Y$6},F$4,pe$5,{provide:W$6,useFactory:pi$3},Pt$3],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$5,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr$3,useValue:r.errorHandler}:[],{provide:ie$8,useValue:r||{}}
166,r?.useHash?sa$1():ca$1(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua$2(r):[],r?.bindToComponentInputs?Ci$2(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi$1().\u0275providers:[],la$1()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$5,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=cw({type:t});static \u0275inj=dd$2({})}return t})();function aa(){return {provide:fi$2,useFactory:()=>{let t=D$l(er$4),n=D$l(ie$8);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na$1(n)}}}function sa$1(){return {provide:$$a,useClass:kt$8}}function ca$1(){return {provide:$$a,useClass:nt$c}}function ua$2(t){return [t.initialNavigation==="disabled"?yi$2().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$3().\u0275providers:[]]}var Dr$3=new M$g("");function la$1(){return [{provide:Dr$3,useFactory:gi$3},{provide:hg,multi:true,useExisting:Dr$3}]}
167var Nt$4=(r,o=c$b)=>(e,t)=>{let a=D$l(D$c),l=D$l(F$4);return a.features[r].getValue()?Ms$2(true):Lm$2("feature disabled").pipe(xs$1(()=>(l.navigate([o]),Lm$2("feature disabled"))))};var J$8=(a=>(a[a.steamApps=0]="steamApps",a[a.steamPubs=1]="steamPubs",a[a.xboxApps=2]="xboxApps",a[a.playStationApps=3]="playStationApps",a))(J$8||{});var me$6=(D=>(D.advertising="advertising",D.demo="demo",D.dlc="dlc",D.episode="episode",D.game="game",D.hardware="hardware",D.mod="mod",D.movie="movie",D.music="music",D.series="series",D.video="video",D))(me$6||{});Object.values(me$6);var oe$4=class oe{constructor(o){this.data=o;}};var re$6=class re{static getToggledItems(o,e){let t=o.filter(l=>!e.includes(l));return e.filter(l=>!o.includes(l)).concat(t)}static getSelectTopAppsValue(o,e){let t=e.length;if(t===0||t>o.length)return null;let a=new Set(o.slice(0,t));return e.every(l=>a.has(l))&&a.size===t?t:null}};var x$6=class r{constructor(o,e,t,a,l,g,_,ge){this.type=o;this.header=e;this.getId=t;this.getCols=a;this.searchFn=l;this.loadByIdsFn=g;this.getIsBlur=_;this.getExtraParams=ge;this.from=0;this.loadingSignal=fi$4(false);this.loadingMoreSignal=fi$4(false);this.loadingMoreAvailableSignal=fi$4(true);this.loadingMoreLimitSignal=fi$4(false);this.topAppsSignal=fi$4([]);this.selectedAppsSignal=fi$4([]);this.selectedIdsSignal=fi$4([]);this.searchSignal=fi$4("");this.loading=this.loadingSignal.asReadonly();this.loadingMore=this.loadingMoreSignal.asReadonly();this.loadingMoreAvailable=this.loadingMoreAvailableSignal.asReadonly();this.loadingMoreLimit=this.loadingMoreLimitSignal.asReadonly();this.topApps=this.topAppsSignal.asReadonly();this.selectedApps=this.selectedAppsSignal.asReadonly();this.selectedIds=this.selectedIdsSignal.asReadonly();this.search=this.searchSignal.asReadonly();this.appRows=Pb(()=>this.getRowsFromApps(this.topAppsSignal(),this.selectedIds()));this.selectedRows=Pb(()=>this.getRowsFromApps(this.selectedAppsSignal(),[]));this.topLoaded=new de$c;this.selectedLoaded=new de$c;this.onDataLoaded=qm$2([this.topLoaded,this.selectedLoaded]);this.cacheById={};this.cancelRequest=new de$c;this.loadByIdsCancelRequest=new de$c;this.extraParams={};}static{this.LoadCount=20;}static{this.MaxLoadCount=200;}getRowsFromApps(o,e){return o.map(t=>{let a=this.getId(t),l={app:t,id:a,isSelected:e.includes(a),cols:this.getCols(t),isBlur:this.getIsBlur?.(t)??false};return new oe$4(l)})}load(o){return this.cancelRequest.next(),this.searchFn(E$9(D$m({},o),{extra:this.extraParams})).pipe(ku$2(this.cancelRequest),ge$9(e=>(e.forEach(t=>this.cacheById[this.getId(t)]=t),e)))}loadTop(o){this.extraParams=this.getExtraParams?.(o)??{},this.loadingSignal.set(true),this.load({search:"",from:0,size:r.LoadCount}).pipe(bu$2(()=>{this.loadingSignal.set(false),this.topLoaded.next();})).subscribe(e=>this.topAppsSignal.set(e));}loadByIds(o){if(!o.length)return Ms$2([]);this.loadByIdsCancelRequest.next();let e=[],t=[];return o.forEach(a=>{let l=this.cacheById[a];l?e.push(l):t.push(a);}),t.length?this.loadByIdsFn(o).pipe(ku$2(this.loadByIdsCancelRequest),bu$2(()=>this.selectedLoaded.next()),ge$9(a=>
167(a.forEach(l=>this.cacheById[this.getId(l)]=l),o.map(l=>this.cacheById[l])))):Ms$2(e)}getByIds(o){return o.map(e=>this.cacheById[e])}changeSearch(o){this.from=0,this.loadingMoreAvailableSignal.set(true),this.loadingMoreLimitSignal.set(false),this.topAppsSignal.set([]),this.searchSignal.set(o),this.loadingSignal.set(true),this.load({search:o,from:0,size:r.LoadCount}).pipe(bu$2(()=>this.loadingSignal.set(false))).subscribe({next:e=>{e.length<r.LoadCount&&this.loadingMoreAvailableSignal.set(false),this.from+r.LoadCount===r.MaxLoadCount&&this.loadingMoreAvailableSignal.set(false),this.topAppsSignal.set(e);},error:()=>this.loadingSignal.set(false)});}loadMore(){this.loadingMore()||this.loadingMoreLimit()||!this.loadingMoreAvailable()||(this.from+=r.LoadCount,this.loadingMoreSignal.set(true),this.load({search:this.search(),from:this.from,size:r.LoadCount}).pipe(bu$2(()=>this.loadingMoreSignal.set(false))).subscribe({next:o=>{o.length<r.LoadCount&&this.loadingMoreAvailableSignal.set(false),this.from+r.LoadCount===r.MaxLoadCount&&this.loadingMoreLimitSignal.set(true),this.topAppsSignal.set([...this.topApps(),...o]);},error:()=>this.loadingMoreSignal.set(false)}));}selectByIds(o){this.selectedIdsSignal.set(o),this.selectedAppsSignal.set(o.map(e=>this.cacheById[e]));}toggleRows(o){let e=re$6.getToggledItems(o,this.selectedIds());this.selectedIdsSignal.set(e),this.selectedAppsSignal.set(e.map(t=>this.cacheById[t]));}setRows(o){this.selectedIdsSignal.set(o),this.selectedAppsSignal.set(o.map(e=>this.cacheById[e]));}getAppsById(o){return o.map(e=>this.cacheById[e]).filter(e=>!!e)}};var q$7=class q{constructor(o){this.data=o;}};var C$7=class C{static getRevCol(o,e){let t={value:o,prefix:"$",lock:e};return new q$7(t)}static getDowCol(o,e){let t={value:o,prefix:"",lock:e};return new q$7(t)}
167static getWishlistCol(o,e){let t={value:o,prefix:"",lock:e};return new q$7(t)}static getDeleteCol(){let o={value:null,prefix:"",icon:"/assets/angular2/img/icons/trash-grey-70.svg",lock:Ms$2(false)};return new q$7(o)}};var u$5=class u{static getAppHead(){return {name:"appList.applications",leftAlign:true}}static getPubHead(){return {name:"appList.publishers",leftAlign:true}}static getTotalRevHead(){return {name:"topCharts.total_revenue",size:110,tooltip:"platform.total_revenue_tooltip_30d",tooltipAnalytics:"show_total_revenue_tooltip_in_app_selector"}}static getCopiesSoldHead(){return {name:i$d.platformNameMap.copies_sold,size:90,tooltip:e$f.infoMap.copies_sold.text,tooltipAnalytics:"show_copies_sold_tooltip_in_app_selector"}}static getWishlistHead(){return {name:i$d.platformNameMap.new_wishlists,size:110,tooltip:o$i.newWishlistsLast30DaysInfo.text,tooltipAnalytics:o$i.newWishlistsLast30DaysInfo.analyticsEvent}}static getDeleteHead(o){return {name:null,size:o?24:32}}};function $e$4(r,o,e,t){let a=qm$2([e.steam_metrics,e.steam_iap_dlc_revenue]).pipe(ge$9(([g,_])=>g||_)),l=g=>!t&&n$d.isAdultContent(g.content_descriptors);return new x$6(0,[u$5.getAppHead(),E$9(D$m({},u$5.getTotalRevHead()),{feature:"steamMetrics"}),E$9(D$m({},u$5.getCopiesSoldHead()),{feature:"steamMetrics"}),E$9(D$m({},u$5.getWishlistHead()),{feature:"steam_user_acquisition"})],g=>g.app_id.toString(),g=>[C$7.getRevCol(g.last_30d_revenue,a),C$7.getDowCol(g.last_30d_downloads,e.steam_metrics),C$7.getWishlistCol(g.last_30d_new_wishlists,e.steam_user_acquisition)],({search:g,from:_,size:ge,extra:ot})=>r({search:g,from:_,size:ge,types:["game","demo"],pubdev_ids:ot?.pubdev_ids??void 0}).pipe(ge$9(rt=>rt.united_apps)),g=>o({app_id:g.map(_=>+_)}).pipe(ge$9(_=>Object.values(_.united_apps))),l,g=>g?{pubdev_ids:g}:{})}function Ve$6(r,o){return new x$6(2,[u$5.getAppHead(),u$5.getTotalRevHead(),u$5.getCopiesSoldHead()],e=>e.product_id,e=>[C$7.getRevCol(e.last_30d_revenue,Ms$2(false)),C$7.getDowCol(e.last_30d_downloads,Ms$2(false))],({search:e,from:t,size:a})=>r({search:e,from:t,size:a}).pipe(ge$9(l=>l.united_products)),e=>o({product_id:e}).pipe(ge$9(t=>Object.values(t.united_products??{}))))}function We$5(r,o){return new x$6(3,[u$5.getAppHead(),u$5.getTotalRevHead(),u$5.getCopiesSoldHead()],e=>e.concept_id.toString(),e=>[C$7.getRevCol(e.last_30d_revenue,Ms$2(false)),C$7.getDowCol(e.last_30d_copies_sold,Ms$2(false))],({search:e,from:t,size:a})=>r({search:e,from:t,size:a}).pipe(ge$9(l=>l.concepts)),e=>o({ids:e.map(t=>+t)}).pipe(ge$9(t=>Object.values(t.concepts))))}function Ge$5(r,o,e,t){return new x$6(1,[u$5.getPubHead(),E$9(D$m({},u$5.getTotalRevHead()),{feature:"steamMetrics"}),E$9(D$m({},u$5.getCopiesSoldHead()),{feature:"steamMetrics"})],a=>a.ids[0],a=>[C$7.getRevCol(a.last_30d_revenue,t),C$7.getDowCol(a.last_30d_downloads,e)],({search:a,from:l,size:g})=>r({search:a,from:l,size:g}).pipe(ge$9(_=>_.united_pubdevs)),a=>o({pubdev_ids:a}).pipe(ge$9(l=>Object.values(l.united_pubdevs))))}var Je$4=class r{constructor(){this.steamResourceService=D$l(A$7);this.xboxResource=D$l(u$7);this.playStationResource=D$l(u$8);this.userService=D$l(ve$6);this.userConfigService=D$l(fe$5);}get(o){if(o===0){let e=this.userConfigService.getById(7).get(),t={[E$6.steam_metrics]:this.userService.getAccessObserver(E$6.steam_metrics).pipe(ge$9(a=>!a)),[E$6.steam_iap_dlc_revenue]:this.userService.getAccessObserver(E$6.steam_iap_dlc_revenue).pipe(ge$9(a=>!a)),[E$6.steam_user_acquisition]:this.userService.getAccessObserver(E$6.steam_user_acquisition).pipe(ge$9(a=>!a))};return $e$4(a=>this.steamResourceService.search(a),a=>this.steamResourceService.getApp(a),t,e)}if(o===1){let e=this.userService.getAccessObserver(E$6.steam_metrics).pipe(ge$9(a=>!a)),t=qm$2([e,this.userService.getAccessObserver(E$6.steam_iap_dlc_revenue).pipe(ge$9(a=>!a))]).pipe(ge$9(([a,l])=>a||l));return Ge$5(a=>this.steamResourceService.getPubDevsSearch(a),a=>this.steamResourceService.getPubDevsUnited(a),e,t)}return o===2?Ve$6(e=>this.xboxResource.search(e),e=>this.xboxResource.getProduct(e)):o===3?We$5(e=>this.playStationResource.search(e),e=>this.playStationResource.getConcept(e)):null}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};
167var ae$5=class r{constructor(){this.head=VV.required();this.popperMiddlewares=[ut$8({fallbackAxisSideDirection:"start",fallbackPlacements:["bottom"]})];}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-head-col"]],hostVars:4,hostBindings:function(e,t){e&2&&(Lg$1("max-width",t.head().size,"px"),Pg$1("left",t.head().leftAlign));},inputs:{head:[1,"head"]},decls:3,vars:9,consts:[[3,"textTooltip","popperMiddlewares","placement","analyticsEvent","textTooltipDisable","minHoverDuration"]],template:function(e,t){e&1&&(Zi$3(0,"span",0),ib(1),bb(2,"translate"),kl$2()),e&2&&(Ig$1("textTooltip",t.head().tooltip)("popperMiddlewares",t.popperMiddlewares)("placement",t.head().tooltipPlacement??"top")("analyticsEvent",t.head().tooltipAnalytics)("textTooltipDisable",!t.head().tooltip)("minHoverDuration",100),AE(),jl$2(" ",_b(2,7,t.head().name)," "));},dependencies:[fe$6,fe$8,he$8],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:flex-end;flex:1;font-size:12px;line-height:normal;text-align:right;padding-left:16px;color:var(--grey-70);text-transform:uppercase}.left[_nghost-%COMP%]{justify-content:flex-start;padding-left:0}"]});}};var nt$7=["*"],ie$7=class r{static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-head"]],ngContentSelectors:nt$7,decls:1,vars:0,template:function(e,t){e&1&&(AT(),RT(0));},styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
167--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}[_nghost-%COMP%]{display:flex;align-items:flex-start;flex-direction:row;font-size:12px;line-height:16px;padding:0 24px 16px 16px;color:var(--grey-70)}@media(max-width:767px){[_nghost-%COMP%]{padding:0 24px 16px 12px}}"]});}};var lt$4=["*"],st$5=(r,o,e,t)=>({disabled:r,scrolledToBottomFn:o,alwaysVisible:e,scrollToBottomOnInit:t}),pt$3=(r,o)=>o.name;function ct$4(r,o){if(r&1&&Eg$1(0,"selector-head-col",1),r&2){let e=o.$implicit;Ig$1("head",e);}}function dt$3(r,o){r&1&&(Zi$3(0,"div",4),Eg$1(1,"spinner",6),kl$2()),r&2&&(AE(),Ig$1("diameter",28));}function mt$2(r,o){r&1&&(Zi$3(0,"div",5),ib(1),bb(2,"translate"),kl$2()),r&2&&(AE(),jl$2(" ",_b(2,1,"errors.search_limit_200_exceeds")," "));}function gt$3(r,o){if(r&1&&(Zi$3(0,"div",3),RT(1),uT(2,dt$3,2,1,"div",4),uT(3,mt$2,3,3,"div",5),kl$2()),r&2){let e=NT(2);AE(2),dT(e.loadingMore()?2:-1),AE(),dT(e.isLimit()?3:-1);}}function ut$5(r,o){if(r&1&&(Zi$3(0,"selector-head",0),hT(1,ct$4,1,1,"selector-head-col",1,pt$3),kl$2(),cg$1(3,gt$3,4,2,"div",2)),r&2){let e=NT();AE(),gT(e.header()),AE(2),Ig$1("amScrollbar",wb(1,st$5,e.disableScroll(),e.loadMoreFn,e.scrollAlwaysVisible(),e.scrollToBottomOnInit()));}}function bt$3(r,o){r&1&&(Zi$3(0,"div",7),Eg$1(1,"spinner",9),kl$2()),r&2&&(AE(),Ig$1("diameter",42));}function ft$4(r,o){r&1&&(Zi$3(0,"div",8),ib(1),bb(2,"translate"),kl$2()),r&2&&(AE(),jl$2(" ",_b(2,1,"appSelect.panel_nothing_found")," "));}function ht$2(r,o){if(r&1&&uT(0,bt$3,2,1,"div",7)(1,ft$4,3,3,"div",8),r&2){let e=NT();dT(e.loading()?0:1);}}var Ke$4=class r{constructor(){this.noData=VV.required();this.header=VV.required();this.loading=VV.required();this.loadingMore=VV.required();this.isLimit=VV.required();this.scrollAlwaysVisible=VV(false);this.scrollToBottomOnInit=VV(false);this.disableScroll=VV(false);this.loadMore=jV();this.loadMoreFn=()=>this.loadMore.emit();}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-list"]],inputs:{noData:[1,"noData"],header:[1,"header"],loading:[1,"loading"],loadingMore:[1,"loadingMore"],isLimit:[1,"isLimit"],scrollAlwaysVisible:[1,"scrollAlwaysVisible"],scrollToBottomOnInit:[1,"scrollToBottomOnInit"],disableScroll:[1,"disableScroll"]},outputs:{loadMore:"loadMore"},ngContentSelectors:lt$4,decls:2,vars:1,consts:[[1,"head"],[3,"head"],["class","content",4,"amScrollbar"],[1,"content"],[1,"g-selector-spinner-container","load-more"],[1,"g-exceed-limit-label"],[1,"pos-relative",3,"diameter"],[1,"g-selector-spinner-container"],[1,"g-selector-no-data","no-data"],["id","test-list-loader",1,"pos-relative",3,"diameter"]],template:function(e,t){e&1&&(AT(),uT(0,ut$5,4,6)(1,ht$2,2,1)),e&2&&dT(t.noData()?1:0);},dependencies:[Ht$7,b$5,fe$8,ie$7,ae$5,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
167--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}[_nghost-%COMP%]   .no-data[_ngcontent-%COMP%]{flex:1;min-height:0}@media(max-width:767px){[_nghost-%COMP%]   .head[_ngcontent-%COMP%]{display:none}}"]});}};function yt$2(r,o){if(r&1&&Eg$1(0,"no-available-data-icon",0),r&2){let e=NT();Ig$1("tooltipText",e.lockTooltipText())("feature",e.feature());}}function Ct$2(r,o){if(r&1&&(ib(0),bb(1,"formatPremiumValues")),r&2){let e=NT();jl$2(" ",Mb(1,1,e.value(),e.prefix())," ");}}var ne$4=class r{constructor(){this.userService=D$l(ve$6);this.value=VV.required();this.size=VV.required();this.prefix=VV.required();this.lock=VV.required();this.feature=VV.required();this.lockTooltipText=Pb(()=>this.lock()?v$6.getLockTooltipTextByFeature(this.userService,this.feature()):null);}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-col"]],hostVars:4,hostBindings:function(e,t){e&2&&(Lg$1("min-width",t.size(),"px"),Pg$1("g-no-value",!t.value()));},inputs:{value:[1,"value"],size:[1,"size"],prefix:[1,"prefix"],lock:[1,"lock"],feature:[1,"feature"]},decls:2,vars:1,consts:[[3,"tooltipText","feature"]],template:function(e,t){e&1&&uT(0,yt$2,1,2,"no-available-data-icon",0)(1,Ct$2,2,4),e&2&&dT(t.lock()?0:1);},dependencies:[h$9,o$h],styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-end;padding-left:16px;font-size:12px}"]});}};var Ft$2=["*"],vt$3=(r,o)=>o.name;function St$3(r,o){if(r&1&&(Zi$3(0,"div",3),Eg$1(1,"img",4),kl$2()),r&2){let e=NT().$implicit,t=db(0);Lg$1("min-width",e.size,"px"),AE(),Ig$1("src",t.data.icon,qp$2);}}function At$3(r,o){if(r&1&&(Eg$1(0,"selector-col",2),bb(1,"async")),r&2){let e=NT().$implicit,t=db(0);Ig$1("value",t.data.value)("prefix",t.data.prefix)("lock",_b(1,5,t.data.lock))("size",e.size)("feature",e.feature);}}function Dt$4(r,o){if(r&1&&(Zg$1(0),uT(1,St$3,2,3,"div",1)(2,At$3,2,7,"selector-col",2)),r&2){let e=o.$index,t=ub(NT().cols()[e]);AE(),dT(t.data.icon?1:2);}}var Qe$4=class r{constructor(){this.cols=VV.required();this.header=VV.required();this.isSelected=VV();}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-row"]],hostVars:4,hostBindings:function(e,t){e&2&&Pg$1("g-group-item",true)("selected",t.isSelected());},inputs:{cols:[1,"cols"],header:[1,"header"],isSelected:[1,"isSelected"]},ngContentSelectors:Ft$2,decls:4,vars:0,consts:[[1,"main"],[1,"icon",3,"min-width"],[3,"value","prefix","lock","size","feature"],[1,"icon"],[3,"src"]],template:function(e,t){e&1&&(AT(),Zi$3(0,"div",0),RT(1),kl$2(),hT(2,Dt$4,3,2,null,null,vt$3)),e&2&&(AE(2),gT(t.header().slice(1)));},dependencies:[ne$4,hn$2],styles:["[_nghost-%COMP%]{display:flex;padding:4px 8px 4px 4px;font-weight:400}[_nghost-%COMP%]   .main[_ngcontent-%COMP%]{flex:1;min-width:0}[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{text-align:end}"]});}};function _t$3(r,o){if(r&1&&Eg$1(0,"platform-app-label",5),r&2){let e=NT();Ig$1("value",e.PlatformAppLabel.adultContent);}}function xt$3(r,o){r&1&&(Zi$3(0,"span"),ib(1,", "),kl$2());}function wt$4(r,o){if(r&1&&(Zi$3(0,"span",7),ib(1),kl$2(),uT(2,xt$3,2,0,"span")),r&2){let e=o.$implicit,t=o.$index,a=o.$count;Ig$1("title",e),AE(),Ug$1(e),AE(),dT(t!==a-1?2:-1);}}var Ye$4=class r{constructor(){this.app=VV.required();this.blur=VV();this.search=VV.required();this.LazyImageFallback=f$a;this.PlatformAppLabel=a$b;}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-steam-app"]],inputs:{app:[1,"app"],blur:[1,"blur"],search:[1,"search"]},decls:12,vars:14,consts:[[1,"image-wrap"],[1,"image",3,"lazyImage","lazyImageError","title"],[1,"info"],[1,"name-wrap"],[1,"name",3,"customInnerHtml","title"],[1,"label",3,"value"],[1,"publisher"],[1,"g-app-publisher-name","pub-name",3,"title"]],template:function(e,t){if(e&1&&(Zi$3(0,"div",0),Eg$1(1,"img",1),kl$2(),Zi$3(2,"div",2)(3,"div",3),Eg$1(4,"div",4),bb(5,"selectorNameHighlight"),Zg$1(6),bb(7,"steamIsAdultContent"),uT(8,_t$3,1,1,"platform-app-label",5),kl$2(),Zi$3(9,"div",6),hT(10,wt$4,3,3,null,null,pT),kl$2()()),e&2){AE(),Pg$1("blur",t.blur()),Ig$1("lazyImage",t.app().capsule_image)("lazyImageError",t.LazyImageFallback.long)("title",t.app().name),AE(3),Ig$1("customInnerHtml",Sb(5,8,t.app().name,t.app().matched_name,t.search()))("title",t.app().name);let a=_b(7,12,t.app().content_descriptors);AE(4),dT(a?8:-1),AE(2),gT(t.app().publishers);}},dependencies:[I$4,r$8,f$c,p$9,i$e],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
167--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex}[_nghost-%COMP%]   .image-wrap[_ngcontent-%COMP%]{min-width:var(--app-image-rect);min-height:32px;height:32px;width:var(--app-image-rect);border-radius:8px;overflow:hidden;margin-right:8px}[_nghost-%COMP%]   .image[_ngcontent-%COMP%]{object-fit:contain;height:100%;width:100%}[_nghost-%COMP%]   .image.blur[_ngcontent-%COMP%]{filter:blur(var(--image-blur))}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1;flex:1;min-width:0}[_nghost-%COMP%]   .name-wrap[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .label[_ngcontent-%COMP%]{padding-left:4px}[_nghost-%COMP%]   .name[_ngcontent-%COMP%]{line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .publisher[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]});}};var Ze$4=class r{constructor(){this.product=VV.required();this.search=VV.required();}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-xbox-app"]],inputs:{product:[1,"product"],search:[1,"search"]},decls:7,vars:10,consts:[[1,"image",3,"lazyImage","title"],[1,"info"],[1,"name",3,"customInnerHtml","title"],[1,"publisher"],[1,"g-app-publisher-name","pub-name",3,"title"]],template:function(e,t){e&1&&(Eg$1(0,"img",0),Zi$3(1,"div",1),Eg$1(2,"div",2),bb(3,"selectorNameHighlight"),Zi$3(4,"div",3)(5,"span",4),ib(6),kl$2()()()),e&2&&(Ig$1("lazyImage",t.product().box_art_url)("title",t.product().name),AE(2),Ig$1("customInnerHtml",Sb(3,6,t.product().name,t.product().matched_name,t.search()))("title",t.product().name),AE(3),Ig$1("title",t.product().publisher_name),AE(),jl$2(" ",t.product().publisher_name," "));},dependencies:[I$4,r$8,p$9],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
167--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex}[_nghost-%COMP%]   .image[_ngcontent-%COMP%]{object-fit:cover;min-width:32px;min-height:32px;max-height:32px;width:32px;border-radius:8px;overflow:hidden;margin-right:8px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1;flex:1;min-width:0}[_nghost-%COMP%]   .name[_ngcontent-%COMP%]{line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .publisher[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]});}};var et$6=class r{constructor(){this.concept=VV.required();this.search=VV.required();}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-play-station-app"]],inputs:{concept:[1,"concept"],search:[1,"search"]},decls:7,vars:10,consts:[[1,"image",3,"lazyImage","title"],[1,"info"],[1,"name",3,"customInnerHtml","title"],[1,"publisher"],[1,"g-app-publisher-name","pub-name",3,"title"]],template:function(e,t){e&1&&(Eg$1(0,"img",0),Zi$3(1,"div",1),Eg$1(2,"div",2),bb(3,"selectorNameHighlight"),Zi$3(4,"div",3)(5,"span",4),ib(6),kl$2()()()),e&2&&(Ig$1("lazyImage",t.concept().master_image)("title",t.concept().name),AE(2),Ig$1("customInnerHtml",Sb(3,6,t.concept().name,t.concept().matched_name,t.search()))("title",t.concept().name),AE(3),Ig$1("title",t.concept().publishers[0]),AE(),Ug$1(t.concept().publishers[0]));},dependencies:[I$4,r$8,p$9],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
167--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex}[_nghost-%COMP%]   .image[_ngcontent-%COMP%]{object-fit:cover;min-width:32px;min-height:32px;max-height:32px;width:32px;border-radius:8px;overflow:hidden;margin-right:8px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1;flex:1;min-width:0}[_nghost-%COMP%]   .name[_ngcontent-%COMP%]{line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .publisher[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]});}};function Et$3(r,o){if(r&1&&(Zi$3(0,"span",1),ib(1),kl$2()),r&2){let e=NT();AE(),Ug$1(e.appsCountTitle());}}var tt$6=class r{constructor(){this.pub=VV.required();this.search=VV.required();this.translateChoiceService=D$l(o$g);this.appsCountTitle=Pb(()=>this.translateChoiceService.get("appTracker.apps_count",{count:this.pub().app_ids.length}));}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-steam-pub"]],inputs:{pub:[1,"pub"],search:[1,"search"]},decls:3,vars:7,consts:[[1,"name",3,"customInnerHtml","title"],[1,"apps-count"]],template:function(e,t){if(e&1&&(Eg$1(0,"div",0),bb(1,"selectorNameHighlight"),uT(2,Et$3,2,1,"span",1)),e&2){Ig$1("customInnerHtml",Sb(1,3,t.pub().name,t.pub().matched_name,t.search()))("title",t.pub().name);let a=t.pub().app_ids;AE(2),dT(a.length>0?2:-1);}},dependencies:[r$8,p$9],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
167--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column;font-size:14px}[_nghost-%COMP%]   .name[_ngcontent-%COMP%]{line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .apps-count[_ngcontent-%COMP%]{font-size:12px;color:var(--grey-50)}"]});}};function q$6(t,o){if(t&1&&(Ol$2(0,"span",0),ib(1),bb(2,"translate"),Ll$2()),t&2){let e=NT();AE(),Ug$1(_b(2,1,e.tooltipTextCopied()));}}function U$5(t,o){if(t&1&&(Ol$2(0,"span"),ib(1),bb(2,"translate"),Ll$2()),t&2){let e=NT();AE(),Ug$1(_b(2,1,e.tooltipTextCopy()));}}var h$6=class t{constructor(){this.copied=VV.required();this.tooltipTextCopy=VV("buttons.copy_url");this.tooltipTextCopied=VV("buttons.url_copied");}ngAfterViewInit(){this.popper?.update();}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["link-icon-tooltip"]],inputs:{copied:[1,"copied"],tooltipTextCopy:[1,"tooltipTextCopy"],tooltipTextCopied:[1,"tooltipTextCopied"],popper:"popper"},decls:3,vars:1,consts:[[1,"copied"],["data-popper-arrow",""]],template:function(e,r){e&1&&(uT(0,q$6,3,3,"span",0)(1,U$5,3,3,"span"),Dg$1(2,"div",1)),e&2&&dT(r.copied()?0:1);},dependencies:[fe$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
167--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{position:fixed;pointer-events:none!important;background:var(--tooltip-bg);color:var(--tooltip-text);padding:10px;border-radius:5px;text-transform:capitalize;font-size:12px;font-style:normal;font-weight:400;line-height:14px;z-index:100;white-space:nowrap}[data-popper-placement^=bottom][_nghost-%COMP%]   [data-popper-arrow][_ngcontent-%COMP%]{top:-13px;transform:rotate(0)}"]});}};var G$5=["*"];function J$7(t,o){if(t&1&&Dg$1(0,"div",3),t&2){let e=NT();Pg$1("white",e.white());}}var j$6=class t{constructor(){this.disabled=VV(false);this.url=VV();this.white=VV(false);this.placement=VV("bottom");this.tooltipTextCopy=VV("buttons.copy_url");this.tooltipTextCopied=VV("buttons.url_copied");this.copied=fi$4(false);this.tempTooltipTextCopy=fi$4("");this.tempTooltipTextCopied=fi$4("");this.TooltipShowTimeInMs=2e3;this.destroyRef=D$l(st$b);this.element=D$l(Gr$4);this.overlay=D$l(Vt$7);}ngOnDestroy(){this.clearTooltipHideTimeout(),this.disposeOverlay();}mouseenter(){if(this.disabled())return;if(this.overlayRef){this.copied()&&(this.clearTooltipHideTimeout(),this.copied.set(false),this.tempTooltipTextCopy.set(this.tooltipTextCopy()),this.tempTooltipTextCopied.set(this.tooltipTextCopied())),this.ref?.instance.popper.update();return}this.tempTooltipTextCopy.set(this.tooltipTextCopy()),this.tempTooltipTextCopied.set(this.tooltipTextCopied()),this.overlayRef=this.overlay.create();let o=new H$a(h$6);this.ref=this.overlayRef.attach(o),this.ref.instance.popper=new St$7(this.element.nativeElement,this.ref.location.nativeElement,{strategy:"fixed",placement:this.placement(),middleware:[tt$a({mainAxis:12}),bt$9({padding:4}),se$a({element:St$7.getArrowElm(this.ref.location.nativeElement)})]}),this.ref.instance.copied=this.copied,this.ref.instance.tooltipTextCopy=this.tempTooltipTextCopy,this.ref.instance.tooltipTextCopied=this.tempTooltipTextCopied,Ns$2(window,"scroll",{passive:true,capture:true}).pipe(Pt$a(1),U$a(this.destroyRef)).subscribe(()=>{this.copied.set(false),this.clearTooltipHideTimeout(),this.disposeOverlay();});}mouseleave(){this.copied()||(this.clearTooltipHideTimeout(),this.disposeOverlay());}copy(){let o=this.url();if(o){let e=document.createElement("input");document.body.appendChild(e),e.value=o,e.select(),document.execCommand("copy"),document.body.removeChild(e);}this.copied.set(true),this.tempTooltipTextCopy.set(this.tooltipTextCopy()),this.tempTooltipTextCopied.set(this.tooltipTextCopied()),this.overlayRef||this.mouseenter(),this.ref&&this.ref.instance.popper.update(),this.clearTooltipHideTimeout(),this.tooltipHideTimeoutId=setTimeout(()=>{this.copied.set(false),this.mouseleave();},this.TooltipShowTimeInMs),Ns$2(document,"click").pipe(Tn$3(e=>!this.element.nativeElement.contains(e.target)),Pt$a(1),U$a(this.destroyRef)).subscribe(()=>{this.copied.set(false),this.clearTooltipHideTimeout(),this.disposeOverlay();});}disposeOverlay(){this.overlayRef?.dispose(),this.overlayRef=void 0,this.ref=void 0;}clearTooltipHideTimeout(){this.tooltipHideTimeoutId&&(clearTimeout(this.tooltipHideTimeoutId),this.tooltipHideTimeoutId=void 0);}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["link-icon"]],inputs:{disabled:[1,"disabled"],url:[1,"url"],white:[1,"white"],placement:[1,"placement"],tooltipTextCopy:[1,"tooltipTextCopy"],tooltipTextCopied:[1,"tooltipTextCopied"]},ngContentSelectors:G$5,decls:5,vars:1,consts:[["customIcon",""],[1,"link",3,"mouseenter","mouseleave","click"],[1,"link-icon","g-icon-copy",3,"white"],[1,"link-icon","g-icon-copy"]],template:function(e,r){if(e&1&&(AT(),Ol$2(0,"div",1),Mg$1("mouseenter",function(){return r.mouseenter()})("mouseleave",function(){return r.mouseleave()})("click",function(){return r.copy()}),Ol$2(1,"div",null,0),RT(3),Ll$2(),uT(4,J$7,1,2,"div",2),Ll$2()),e&2){let s=FT(2);AE(4),dT(s.hasChildNodes()?-1:4);}},styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
167--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:inline-flex}[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{width:100%;max-width:100%}[_nghost-%COMP%]   .white[_ngcontent-%COMP%]{background:var(--white)}"]});}};var w$5;function Te$5(){if(w$5==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>w$5=!0}));}finally{w$5=w$5||false;}return w$5}function I$3(s){return Te$5()?s:!!s.capture}function M$6(s){return s.buttons===0||s.detail===0}function C$6(s){let i=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return !!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var we$5=new M$g("cdk-input-modality-detector-options"),Me$4={ignoreKeys:[18,17,224,91,16]},Ce$6=650,Q$6={passive:true,capture:true},De$5=(()=>{class s{_platform=D$l(I$9);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new rr$4(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(t=>t===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=_e$9(e));};_onMousedown=e=>{Date.now()-this._lastTouchMs<Ce$6||(this._modality.next(M$6(e)?"keyboard":"mouse"),this._mostRecentTarget=_e$9(e));};_onTouchstart=e=>{if(C$6(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=_e$9(e);};constructor(){let e=D$l($$b),t=D$l(jn$2),n=D$l(we$5,{optional:true});if(this._options=D$m(D$m({},Me$4),n),this.modalityDetected=this._modality.pipe(Nu$2(1)),this.modalityChanged=this.modalityDetected.pipe(Tu$2()),this._platform.isBrowser){let r=D$l(Hr$4).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(t,"keydown",this._onKeydown,Q$6),r.listen(t,"mousedown",this._onMousedown,Q$6),r.listen(t,"touchstart",this._onTouchstart,Q$6)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e());}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),D$9=(function(s){return s[s.IMMEDIATE=0]="IMMEDIATE",s[s.EVENTUAL=1]="EVENTUAL",s})(D$9||{}),Oe$4=new M$g("cdk-focus-monitor-default-options"),x$5=I$3({passive:true,capture:true}),Fe$6=(()=>{class s{_ngZone=D$l($$b);_platform=D$l(I$9);_inputModalityDetector=D$l(De$5);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=D$l(jn$2);_stopInputModalityDetector=new de$c;constructor(){let e=D$l(Oe$4,{optional:true});this._detectionMode=e?.detectionMode||D$9.IMMEDIATE;}_rootNodeFocusAndBlurListener=e=>{let t=_e$9(e);for(let n=t;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n);};monitor(e,t=false){let n=j$d(e);if(!this._platform.isBrowser||n.nodeType!==1)return Ms$2();let r=pe$9(n)||this._document,a=this._elementInfo.get(n);if(a)return t&&(a.checkChildren=true),a.subject;let c={checkChildren:t,subject:new de$c,rootNode:r};return this._elementInfo.set(n,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){let t=j$d(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n));}focusVia(e,t,n){let r=j$d(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([c,A])=>this._originChanged(c,t,A)):(this._setOrigin(t),typeof r.focus=="function"&&r.focus(n));}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===D$9.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program");}_setOrigin(e,t=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===D$9.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?Ce$6:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n);}});}_onFocus(e,t){let n=this._elementInfo.get(t),r=_e$9(e);!n||!n.checkChildren&&t!==r||this._originChanged(t,this._getFocusOrigin(r),n);}_onBlur(e,t){let n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n,null));}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t));}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,x$5),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,x$5);}),this._rootNodeFocusListenerCount.set(t,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(ku$2(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,true);}));}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,x$5),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,x$5),this._rootNodeFocusListenerCount.delete(t));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n,t),this._lastFocusOrigin=t;}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n]);}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return  false;let r=e.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(t))return  true}return  false}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),Ve$5=(()=>{class s{_elementRef=D$l(Gr$4);_focusMonitor=D$l(Fe$6);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new tt$b;get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t);});}
167ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe();}static \u0275fac=function(t){return new(t||s)};static \u0275dir=dw({type:s,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return s})();var B$4;function Ze$3(){if(B$4===void 0&&(B$4=null,typeof window<"u")){let s=window;s.trustedTypes!==void 0&&(B$4=s.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}));}return B$4}function We$4(s){return Ze$3()?.createHTML(s)||s}function ke$5(s,i,e){let t=e.sanitize(Qr$4.HTML,i);s.innerHTML=We$4(t||"");}function $e$3(s){if(s.type==="characterData"&&s.target instanceof Comment)return  true;if(s.type==="childList"){for(let i=0;i<s.addedNodes.length;i++)if(!(s.addedNodes[i]instanceof Comment))return  false;for(let i=0;i<s.removedNodes.length;i++)if(!(s.removedNodes[i]instanceof Comment))return  false;return  true}return  false}var Le$4=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),ze$4=(()=>{class s{_mutationObserverFactory=D$l(Le$4);_observedElements=new Map;_ngZone=D$l($$b);ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t));}observe(e){let t=j$d(e);return new x$g(n=>{let a=this._observeElement(t).pipe(ge$9(c=>c.filter(A=>!$e$3(A))),Tn$3(c=>!!c.length)).subscribe(c=>{this._ngZone.run(()=>{n.next(c);});});return ()=>{a.unsubscribe(),this._unobserveElement(t);}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else {let t=new de$c,n=this._mutationObserverFactory.create(r=>t.next(r));n&&n.observe(e,{characterData:true,childList:true,subtree:true}),this._observedElements.set(e,{observer:n,stream:t,count:1});}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e));}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:t,stream
167:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e);}}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})(),Vt$4=(()=>{class s{_contentObserver=D$l(ze$4);_elementRef=D$l(Gr$4);event=new tt$b;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe();}_disabled=false;get debounce(){return this._debounce}set debounce(e){this._debounce=q$c(e),this._subscribe();}_debounce;_currentSubscription=null;ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe();}ngOnDestroy(){this._unsubscribe();}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(wu$2(this.debounce)):e).subscribe(this.event);}_unsubscribe(){this._currentSubscription?.unsubscribe();}static \u0275fac=function(t){return new(t||s)};static \u0275dir=dw({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",QV],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return s})(),Zt$5=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=cw({type:s});static \u0275inj=dd$2({providers:[Le$4]})}return s})();var Ne$3=new M$g("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),Re$4=new M$g("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ge$4=0,Ye$3=(()=>{class s{_ngZone=D$l($$b);_defaultOptions=D$l(Re$4,{optional:true});_liveElement;_document=D$l(jn$2);_sanitizer=D$l(Fe$8);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=D$l(Ne$3,{optional:true});this._liveElement=e||this._createLiveElement();}announce(e,...t){let n=this._defaultOptions,r,a;return t.length===1&&typeof t[0]=="number"?a=t[0]:[r,a]=t,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:ke$5(this._liveElement,e,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r<t.length;r++)t[r].remove();return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),n.id=`cdk-live-announcer-${Ge$4++}`,this._document.body.appendChild(n),n}_exposeAnnouncerToModals(e){let t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<t.length;n++){let r=t[n],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e);}}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ct$9({token:s,factory:s.\u0275fac})}return s})();var qe$3=200,U$4=class U{_letterKeyStream=new de$c;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new de$c;selectedItem=this._selectedItem;constructor(i,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:qe$3;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(t);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i;}setItems(i){this._items=i;}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(i){this._letterKeyStream.pipe(Lu$2(e=>this._pressedLetters.push(e)),wu$2(i),Tn$3(()=>this._pressedLetters.length>0),ge$9(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;t<this._items.length+1;t++){let n=(this._selectedItemIndex+t)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[];});}};var H$3=class H{_items;_activeItemIndex=fi$4(-1);_activeItem=fi$4(null);_wrap=false;
167_typeaheadSubscription=W$f.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof Li$3?this._itemChangesSubscription=i.changes.subscribe(t=>this._itemsChanged(t.toArray())):gi$5(i)&&(this._effectRef=ef$2(()=>this._itemsChanged(i()),{injector:e}));}tabOut=new de$c;change=new de$c;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=true){return this._wrap=i,this}withVerticalOrientation(i=true){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new U$4(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=true){return this._homeAndEnd=i,this}withPageUpDown(i=true,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex());}onKeydown(i){let e=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(n||Ee$5(i,"shiftKey"))&&this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault();}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return !!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(i){let e=this._getItemsArray(),t=typeof i=="number"?i:e.indexOf(i),n=e[t];this._activeItem.set(n??null),this._activeItemIndex.set(t),this._typeahead?.setCurrentSelectedItemIndex(t);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i);}_setActiveInWrapMode(i){let e=this._getItemsArray();for(let t=1;t<=e.length;t++){let n=(this._activeItemIndex()+i*t+e.length)%e.length,r=e[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex()+i,i);}_setActiveItemByIndex(i,e){let t=this._getItemsArray();if(t[i]){for(;this._skipPredicateFn(t[i]);)if(i+=e,!t[i])return;this.setActiveItem(i);}}_getItemsArray(){return gi$5(this._items)?this._items():this._items instanceof Li$3?this._items.toArray():this._items}_itemsChanged(i){this._typeahead?.setItems(i);let e=this._activeItem();if(e){let t=i.indexOf(e);t>-1&&t!==this._activeItemIndex()&&(this._activeItemIndex.set(t),this._typeahead?.setCurrentSelectedItemIndex(t));}}};var J$6=class J extends H$3{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin);}};var Xe$3=new M$g("MATERIAL_ANIMATIONS"),Se$6=null;function Qe$3(){return D$l(Xe$3,{optional:true}
167)?.animationsDisabled||D$l(ov$1,{optional:true})==="NoopAnimations"?"di-disabled":(Se$6??=D$l(D$j).matchMedia("(prefers-reduced-motion)").matches,Se$6?"reduced-motion":"enabled")}function xe$4(){return Qe$3()!=="enabled"}var l$a=(function(s){return s[s.FADING_IN=0]="FADING_IN",s[s.VISIBLE=1]="VISIBLE",s[s.FADING_OUT=2]="FADING_OUT",s[s.HIDDEN=3]="HIDDEN",s})(l$a||{}),ee$5=class ee{_renderer;element;config;_animationForciblyDisabledThroughCss;state=l$a.HIDDEN;constructor(i,e,t,n=false){this._renderer=i,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=n;}fadeOut(){this._renderer.fadeOutRipple(this);}},Pe$4=I$3({passive:true,capture:true}),te$7=class te{_events=new Map;addHandler(i,e,t,n){let r=this._events.get(e);if(r){let a=r.get(t);a?a.add(n):r.set(t,new Set([n]));}else this._events.set(e,new Map([[t,new Set([n])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,Pe$4);});}removeHandler(i,e,t){let n=this._events.get(i);if(!n)return;let r=n.get(e);r&&(r.delete(t),r.size===0&&n.delete(e),n.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,Pe$4)));}_delegateEventHandler=i=>{let e=_e$9(i);e&&this._events.get(i.type)?.forEach((t,n)=>{(n===e||n.contains(e))&&t.forEach(r=>r.handleEvent(i));});}},Be$5={enterDuration:225,exitDuration:150},Je$3=800,Ue$4=I$3({passive:true,capture:true}),He$4=["mousedown","touchstart"],Ke$3=["mouseup","mouseleave","touchend","touchcancel"],et$5=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=sw({type:s,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[`.mat-ripple {
168  overflow: hidden;
169  position: relative;
170}
171.mat-ripple:not(:empty) {
172  transform: translateZ(0);
173}
174
175.mat-ripple.mat-ripple-unbounded {
176  overflow: visible;
177}
178
179.mat-ripple-element {
180  position: absolute;
181  border-radius: 50%;
182  pointer-events: none;
183  transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
184  transform: scale3d(0, 0, 0);
185  background-color: var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent));
186}
187@media (forced-colors: active) {
188  .mat-ripple-element {
189    display: none;
190  }
191}
192.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
193  display: none;
194}
195`],encapsulation:2})}return s})(),ie$6=class s{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new te$7;constructor(i,e,t,n,r){this._target=i,this._ngZone=e,this._platform=n,n.isBrowser&&(this._containerElement=j$d(t)),r&&r.get(Ce$b).load(et$5);}fadeInRipple(i,e,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=D$m(D$m({},Be$5),t.animation);t.centered&&(i=n.left+n.width/2,e=n.top+n.height/2);let a=t.radius||tt$5(i,e,n),c=i-n.left,A=e-n.top,O=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${c-a}px`,u.style.top=`${A-a}px`,u.style.height=`${a*2}px`,u.style.width=`${a*2}px`,t.color!=null&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${O}ms`,this._containerElement.appendChild(u);let ne=window.getComputedStyle(u),je=ne.transitionProperty,se=ne.transitionDuration,K=je==="none"||se==="0s"||se==="0s, 0s"||n.width===0&&n.height===0,b=new ee$5(this,u,t,K);u.style.transform="scale3d(1, 1, 1)",b.state=l$a.FADING_IN,t.persistent||(this._mostRecentTransientRipple=b);let F=null;return !K&&(O||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let re=()=>{F&&(F.fallbackTimer=null),clearTimeout(oe),this._finishRippleTransition(b);},j=()=>this._destroyRipple(b),oe=setTimeout(j,O+100);u.addEventListener("transitionend",re),u.addEventListener("transitioncancel",j),F={onTransitionEnd:re,onTransitionCancel:j,fallbackTimer:oe};}),this._activeRipples.set(b,F),(K||!O)&&this._finishRippleTransition(b),b}fadeOutRipple(i){if(i.state===l$a.FADING_OUT||i.state===l$a.HIDDEN)return;let e=i.element,t=D$m(D$m({},Be$5),i.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",i.state=l$a.FADING_OUT,(i._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(i);}
195fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut();});}setupTriggerEvents(i){let e=j$d(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,He$4.forEach(t=>{s._eventManager.addHandler(this._ngZone,t,e,this);}));}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ke$3.forEach(e=>{this._triggerElement.addEventListener(e,this,Ue$4);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(i){i.state===l$a.FADING_IN?this._startFadeOutTransition(i):i.state===l$a.FADING_OUT&&this._destroyRipple(i);}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:t}=i.config;i.state=l$a.VISIBLE,!t&&(!e||!this._isPointerDown)&&i.fadeOut();}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=l$a.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove();}_onMousedown(i){let e=M$6(i),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Je$3;!this._target.rippleDisabled&&!e&&!t&&(this._isPointerDown=true,this.fadeInRipple(i.clientX,i.clientY,this._target.rippleConfig));}_onTouchStart(i){if(!this._target.rippleDisabled&&!C$6(i)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let e=i.changedTouches;if(e)for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(i=>{let e=i.state===l$a.VISIBLE||i.config.terminateOnPointerUp&&i.state===l$a.FADING_IN;!i.config.persistent&&e&&i.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(He$4.forEach(e=>s._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(Ke$3.forEach(e=>i.removeEventListener(e,this,Ue$4)),this._pointerUpEventsRegistered=false));}};function tt$5(s,i,e){let t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),n=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(t*t+n*n)}var it$4=new M$g("mat-ripple-global-options"),Ji$1=(()=>{class s{_elementRef=D$l(Gr$4);_animationsDisabled=xe$4();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let e=D$l($$b),t=D$l(I$9),n=D$l(it$4,{optional:true}),r=D$l(ye$7);this._globalOptions=n||{},this._rippleRenderer=new ie$6(this,e,this._elementRef,t,r);}ngOnInit(){this._isInitialized=true,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return {centered:this.centered,radius:this.radius,color:this.color,animation:D$m(D$m(D$m({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(e,t=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,D$m(D$m({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,D$m(D$m({},this.rippleConfig),e))}static \u0275fac=function(t){return new(t||s)};static \u0275dir=dw({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){t&2&&Pg$1("mat-ripple-unbounded",n.unbounded);},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return s})();var nn$2=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=sw({type:s,selectors:[["structural-styles"]],decls:0,vars:0,template:function(t,n){},styles:[`.mat-focus-indicator {
196  position: relative;
197}
198.mat-focus-indicator::before {
199  top: 0;
200  left: 0;
201  right: 0;
202  bottom: 0;
203  position: absolute;
204  box-sizing: border-box;
205  pointer-events: none;
206  display: var(--mat-focus-indicator-display, none);
207  border-width: var(--mat-focus-indicator-border-width, 3px);
208  border-style: var(--mat-focus-indicator-border-style, solid);
209  border-color: var(--mat-focus-indicator-border-color, transparent);
210  border-radius: var(--mat-focus-indicator-border-radius, 4px);
211}
212.mat-focus-indicator:focus-visible::before {
213  content: "";
214}
215
216@media (forced-colors: active) {
217  html {
218    --mat-focus-indicator-display: block;
219  }
220}
221`],encapsulation:2})}return s})();var Qt$4={capture:true},Yt$3=["focus","mousedown","mouseenter","touchstart"],tt$4="mat-ripple-loader-uninitialized",nt$6="mat-ripple-loader-class-name",Ot$3="mat-ripple-loader-centered",V$6="mat-ripple-loader-disabled",Nt$3=(()=>{class a{_document=D$l(jn$2);_animationsDisabled=xe$4();_globalRippleOptions=D$l(it$4,{optional:true});_platform=D$l(I$9);_ngZone=D$l($$b);_injector=D$l(ye$7);_eventCleanups;_hosts=new Map;constructor(){let t=D$l(Hr$4).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Yt$3.map(n=>t.listen(this._document,n,this._onInteraction,Qt$4)));}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n());}configureRipple(t,n){t.setAttribute(tt$4,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(nt$6))&&t.setAttribute(nt$6,n.className||""),n.centered&&t.setAttribute(Ot$3,""),n.disabled&&t.setAttribute(V$6,"");}setDisabled(t,n){let e=this._hosts.get(t);e?(e.target.rippleDisabled=n,!n&&!e.hasSetUpEvents&&(e.hasSetUpEvents=true,e.renderer.setupTriggerEvents(t))):n?t.setAttribute(V$6,""):t.removeAttribute(V$6);}_onInteraction=t=>{let n=_e$9(t);if(n instanceof HTMLElement){let e=n.closest(`[${tt$4}="${this._globalRippleOptions?.namespace??""}"]`);e&&this._createRipple(e);}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",t.getAttribute(nt$6)),t.append(n);let e=this._globalRippleOptions,o=this._animationsDisabled?0:e?.animation?.enterDuration??Be$5.enterDuration,r=this._animationsDisabled?0:e?.animation?.exitDuration??Be$5.exitDuration,s={rippleDisabled:this._animationsDisabled||e?.disabled||t.hasAttribute(V$6),rippleConfig:{centered:t.hasAttribute(Ot$3),terminateOnPointerUp:e?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:r}}},c=new ie$6(s,this._ngZone,n,this._platform,this._injector),C=!s.rippleDisabled;C&&c.setupTriggerEvents(t),this._hosts.set(t,{target:s,renderer:c,hasSetUpEvents:C}),t.removeAttribute(tt$4);}destroyRipple(t){let n=this._hosts.get(t);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(t));}static \u0275fac=function(n){return new(n||a)};static \u0275prov=ct$9({token:a,factory:a.\u0275fac})}return a})();var $t$3=new M$g("MAT_BUTTON_CONFIG");function Lt$2(a){return a==null?void 0:ZV(a)}var Vt$3=(()=>{class a{_elementRef=D$l(Gr$4);_ngZone=D$l($$b);_animationsDisabled=xe$4();_config=D$l($t$3,{optional:true});_focusMonitor=D$l(Fe$6);
221_cleanupClick;_renderer=D$l(fD);_rippleLoader=D$l(Nt$3);_isAnchor;_isFab=false;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled();}_disableRipple=false;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled();}_disabled=false;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t;}showProgress=VV(false,{transform:QV});constructor(){D$l(Ce$b).load(nn$2);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation());}));}static \u0275fac=function(n){return new(n||a)};static \u0275dir=dw({type:a,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,e){n&2&&(vg$1("disabled",e._getDisabledAttribute())("aria-disabled",e._getAriaDisabled())("tabindex",e._getTabIndex()),QT(e.color?"mat-"+e.color:""),Pg$1("mat-mdc-button-progress-indicator-shown",e.showProgress())("mat-mdc-button-disabled",e.disabled)("mat-mdc-button-disabled-interactive",e.disabledInteractive)("mat-unthemed",!e.color)("_mat-animation-noopable",e._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",QV],disabled:[2,"disabled","disabled",QV],ariaDisabled:[2,"aria-disabled","ariaDisabled",QV],disabledInteractive:[2,"disabledInteractive","disabledInteractive",QV],tabIndex:[2,"tabIndex","tabIndex",Lt$2],_tabindex:[2,"tabindex","_tabindex",Lt$2],showProgress:[1,"showProgress"]}})}return a})();var Rn=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275mod=cw({type:a});static \u0275inj=dd$2({imports:[W$c]})}return a})();var Wt$3=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],Xt$4=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];function Kt$4(a,m){a&1&&(Ol$2(0,"div",2),RT(1,3),Ll$2());}var Ut$3=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Zt$4=(()=>{class a extends Vt$3{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text");}_appearance=null;constructor(){super();let t=Jt$4(this._elementRef.nativeElement);t&&this.setAppearance(t);}setAppearance(t){if(t===this._appearance)return;let n=this._elementRef.nativeElement.classList,e=this._appearance?Ut$3.get(this._appearance):null,o=Ut$3.get(t);e&&n.remove(...e),n.add(...o),this._appearance=t;}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=sw({type:a,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[sg$1],ngContentSelectors:Xt$4,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,e){n&1&&(AT(Wt$3),Dg$1(0,"span",0),RT(1),Ol$2(2,"span",1),RT(3,1),Ll$2(),RT(4,2),uT(5,Kt$4,2,0,"div",2),Dg$1(6,"span",3)(7,"span",4)),n&2&&(Pg$1("mdc-button__ripple",!e._isFab)("mdc-fab__ripple",e._isFab),AE(5),dT(e.showProgress()?5:-1));},styles:[`.mat-mdc-button-base {
222  text-decoration: none;
223}
224.mat-mdc-button-base .mat-icon {
225  min-height: fit-content;
226  flex-shrink: 0;
227}
228@media (hover: none) {
229  .mat-mdc-button-base:hover > span.mat-mdc-button-persistent-ripple::before {
230    opacity: 0;
231  }
232}
233
234.mdc-button {
235  -webkit-user-select: none;
236  user-select: none;
237  position: relative;
238  display: inline-flex;
239  align-items: center;
240  justify-content: center;
241  box-sizing: border-box;
242  min-width: 64px;
243  border: none;
244  outline: none;
245  line-height: inherit;
246  -webkit-appearance: none;
247  overflow: visible;
248  vertical-align: middle;
249  background: transparent;
250  padding: 0 8px;
251}
252.mdc-button::-moz-focus-inner {
253  padding: 0;
254  border: 0;
255}
256.mdc-button:active {
257  outline: none;
258}
259.mdc-button:hover {
260  cursor: pointer;
261}
262.mdc-button:disabled {
263  cursor: default;
264  pointer-events: none;
265}
266.mdc-button[hidden] {
267  display: none;
268}
269.mdc-button .mdc-button__label {
270  position: relative;
271}
272
273.mat-mdc-button {
274  padding: 0 var(--mat-button-text-horizontal-padding, 12px);
275  height: var(--mat-button-text-container-height, 40px);
276  font-family: var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));
277  font-size: var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));
278  letter-spacing: var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));
279  text-transform: var(--mat-button-text-label-text-transform);
280  font-weight: var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight));
281}
282.mat-mdc-button, .mat-mdc-button .mdc-button__ripple {
283  border-radius: var(--mat-button-text-container-shape, var(--mat-sys-corner-full));
284}
285.mat-mdc-button:not(:disabled) {
286  color: var(--mat-button-text-label-text-color, var(--mat-sys-primary));
287}
288.mat-mdc-button[disabled], .mat-mdc-button.mat-mdc-button-disabled {
289  cursor: default;
290  pointer-events: none;
291  color: var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
292}
293.mat-mdc-button.mat-mdc-button-disabled-interactive {
294  pointer-events: auto;
295}
296.mat-mdc-button:has(.material-icons, mat-icon, [matButtonIcon]) {
297  padding: 0 var(--mat-button-text-with-icon-horizontal-padding, 16px);
298}
299.mat-mdc-button > .mat-icon {
300  margin-right: var(--mat-button-text-icon-spacing, 8px);
301  margin-left: var(--mat-button-text-icon-offset, -4px);
302}
303[dir=rtl] .mat-mdc-button > .mat-icon {
304  margin-right: var(--mat-button-text-icon-offset, -4px);
305  margin-left: var(--mat-button-text-icon-spacing, 8px);
306}
307.mat-mdc-button .mdc-button__label + .mat-icon {
308  margin-right: var(--mat-button-text-icon-offset, -4px);
309  margin-left: var(--mat-button-text-icon-spacing, 8px);
310}
311[dir=rtl] .mat-mdc-button .mdc-button__label + .mat-icon {
312  margin-right: var(--mat-button-text-icon-spacing, 8px);
313  margin-left: var(--mat-button-text-icon-offset, -4px);
314}
315.mat-mdc-button .mat-ripple-element {
316  background-color: var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
317}
318.mat-mdc-button .mat-mdc-button-persistent-ripple::before {
319  background-color: var(--mat-button-text-state-layer-color, var(--mat-sys-primary));
320}
321.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
322  background-color: var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
323}
324.mat-mdc-button:hover > .mat-mdc-button-persistent-ripple::before {
325  opacity: var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
326}
327.mat-mdc-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
328  opacity: var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
329}
330.mat-mdc-button:active > .mat-mdc-button-persistent-ripple::before {
331  opacity: var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
332}
333.mat-mdc-button .mat-mdc-button-touch-target {
334  position: absolute;
335  top: 50%;
336  height: var(--mat-button-text-touch-target-size, 48px);
337  display: var(--mat-button-text-touch-target-display, block);
338  left: 0;
339  right: 0;
340  transform: translateY(-50%);
341}
342
343.mat-mdc-unelevated-button {
344  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
345  height: var(--mat-button-filled-container-height, 40px);
346  font-family: var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));
347  font-size: var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));
348  letter-spacing: var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));
349  text-transform: var(--mat-button-filled-label-text-transform);
350  font-weight: var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));
351  padding: 0 var(--mat-button-filled-horizontal-padding, 24px);
352}
353.mat-mdc-unelevated-button > .mat-icon {
354  margin-right: var(--mat-button-filled-icon-spacing, 8px);
355  margin-left: var(--mat-button-filled-icon-offset, -8px);
356}
357[dir=rtl] .mat-mdc-unelevated-button > .mat-icon {
358  margin-right: var(--mat-button-filled-icon-offset, -8px);
359  margin-left: var(--mat-button-filled-icon-spacing, 8px);
360}
361.mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
362  margin-right: var(--mat-button-filled-icon-offset, -8px);
363  margin-left: var(--mat-button-filled-icon-spacing, 8px);
364}
365[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
366  margin-right: var(--mat-button-filled-icon-spacing, 8px);
367  margin-left: var(--mat-button-filled-icon-offset, -8px);
368}
369.mat-mdc-unelevated-button .mat-ripple-element {
370  background-color: var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
371}
372.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before {
373  background-color: var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary));
374}
375.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
376  background-color: var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
377}
378.mat-mdc-unelevated-button:hover > .mat-mdc-button-persistent-ripple::before {
379  opacity: var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
380}
381.mat-mdc-unelevated-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
382  opacity: var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
383}
384.mat-mdc-unelevated-button:active > .mat-mdc-button-persistent-ripple::before {
385  opacity: var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
386}
387.mat-mdc-unelevated-button .mat-mdc-button-touch-target {
388  position: absolute;
389  top: 50%;
390  height: var(--mat-button-filled-touch-target-size, 48px);
391  display: var(--mat-button-filled-touch-target-display, block);
392  left: 0;
393  right: 0;
394  transform: translateY(-50%);
395}
396.mat-mdc-unelevated-button:not(:disabled) {
397  color: var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));
398  background-color: var(--mat-button-filled-container-color, var(--mat-sys-primary));
399}
400.mat-mdc-unelevated-button, .mat-mdc-unelevated-button .mdc-button__ripple {
401  border-radius: var(--mat-button-filled-container-shape, var(--mat-sys-corner-full));
402}
403.mat-mdc-unelevated-button .mat-mdc-button-progress-indicator-container {
404  --mat-progress-spinner-active-indicator-color: var(--mat-button-filled-progress-active-indicator-color, var(--mat-sys-on-primary));
405}
406.mat-mdc-unelevated-button[disabled], .mat-mdc-unelevated-button.mat-mdc-button-disabled {
407  cursor: default;
408  pointer-events: none;
409  color: var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
410  background-color: var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
411}
412.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive {
413  pointer-events: auto;
414}
415
416.mat-mdc-raised-button {
417  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
418  box-shadow: var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));
419  height: var(--mat-button-protected-container-height, 40px);
420  font-family: var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));
421  font-size: var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));
422  letter-spacing: var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));
423  text-transform: var(--mat-button-protected-label-text-transform);
424  font-weight: var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));
425  padding: 0 var(--mat-button-protected-horizontal-padding, 24px);
426}
427.mat-mdc-raised-button > .mat-icon {
428  margin-right: var(--mat-button-protected-icon-spacing, 8px);
429  margin-left: var(--mat-button-protected-icon-offset, -8px);
430}
431[dir=rtl] .mat-mdc-raised-button > .mat-icon {
432  margin-right: var(--mat-button-protected-icon-offset, -8px);
433  margin-left: var(--mat-button-protected-icon-spacing, 8px);
434}
435.mat-mdc-raised-button .mdc-button__label + .mat-icon {
436  margin-right: var(--mat-button-protected-icon-offset, -8px);
437  margin-left: var(--mat-button-protected-icon-spacing, 8px);
438}
439[dir=rtl] .mat-mdc-raised-button .mdc-button__label + .mat-icon {
440  margin-right: var(--mat-button-protected-icon-spacing, 8px);
441  margin-left: var(--mat-button-protected-icon-offset, -8px);
442}
443.mat-mdc-raised-button .mat-ripple-element {
444  background-color: var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
445}
446.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before {
447  background-color: var(--mat-button-protected-state-layer-color, var(--mat-sys-primary));
448}
449.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
450  background-color: var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
451}
452.mat-mdc-raised-button:hover > .mat-mdc-button-persistent-ripple::before {
453  opacity: var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
454}
455.mat-mdc-raised-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
456  opacity: var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
457}
458.mat-mdc-raised-button:active > .mat-mdc-button-persistent-ripple::before {
459  opacity: var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
460}
461.mat-mdc-raised-button .mat-mdc-button-touch-target {
462  position: absolute;
463  top: 50%;
464  height: var(--mat-button-protected-touch-target-size, 48px);
465  display: var(--mat-button-protected-touch-target-display, block);
466  left: 0;
467  right: 0;
468  transform: translateY(-50%);
469}
470.mat-mdc-raised-button:not(:disabled) {
471  color: var(--mat-button-protected-label-text-color, var(--mat-sys-primary));
472  background-color: var(--mat-button-protected-container-color, var(--mat-sys-surface));
473}
474.mat-mdc-raised-button, .mat-mdc-raised-button .mdc-button__ripple {
475  border-radius: var(--mat-button-protected-container-shape, var(--mat-sys-corner-full));
476}
477@media (hover: hover) {
478  .mat-mdc-raised-button:hover {
479    box-shadow: var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2));
480  }
481}
482.mat-mdc-raised-button:focus {
483  box-shadow: var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1));
484}
485.mat-mdc-raised-button:active, .mat-mdc-raised-button:focus:active {
486  box-shadow: var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1));
487}
488.mat-mdc-raised-button[disabled], .mat-mdc-raised-button.mat-mdc-button-disabled {
489  cursor: default;
490  pointer-events: none;
491  color: var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
492  background-color: var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
493}
494.mat-mdc-raised-button[disabled].mat-mdc-button-disabled, .mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled {
495  box-shadow: var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0));
496}
497.mat-mdc-raised-button.mat-mdc-button-disabled-interactive {
498  pointer-events: auto;
499}
500
501.mat-mdc-outlined-button {
502  border-style: solid;
503  transition: border 280ms cubic-bezier(0.4, 0, 0.2, 1);
504  height: var(--mat-button-outlined-container-height, 40px);
505  font-family: var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));
506  font-size: var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));
507  letter-spacing: var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));
508  text-transform: var(--mat-button-outlined-label-text-transform);
509  font-weight: var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));
510  border-radius: var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));
511  border-width: var(--mat-button-outlined-outline-width, 1px);
512  padding: 0 var(--mat-button-outlined-horizontal-padding, 24px);
513}
514.mat-mdc-outlined-button > .mat-icon {
515  margin-right: var(--mat-button-outlined-icon-spacing, 8px);
516  margin-left: var(--mat-button-outlined-icon-offset, -8px);
517}
518[dir=rtl] .mat-mdc-outlined-button > .mat-icon {
519  margin-right: var(--mat-button-outlined-icon-offset, -8px);
520  margin-left: var(--mat-button-outlined-icon-spacing, 8px);
521}
522.mat-mdc-outlined-button .mdc-button__label + .mat-icon {
523  margin-right: var(--mat-button-outlined-icon-offset, -8px);
524  margin-left: var(--mat-button-outlined-icon-spacing, 8px);
525}
526[dir=rtl] .mat-mdc-outlined-button .mdc-button__label + .mat-icon {
527  margin-right: var(--mat-button-outlined-icon-spacing, 8px);
528  margin-left: var(--mat-button-outlined-icon-offset, -8px);
529}
530.mat-mdc-outlined-button .mat-ripple-element {
531  background-color: var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
532}
533.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before {
534  background-color: var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary));
535}
536.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
537  background-color: var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
538}
539.mat-mdc-outlined-button:hover > .mat-mdc-button-persistent-ripple::before {
540  opacity: var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
541}
542.mat-mdc-outlined-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
543  opacity: var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
544}
545.mat-mdc-outlined-button:active > .mat-mdc-button-persistent-ripple::before {
546  opacity: var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
547}
548.mat-mdc-outlined-button .mat-mdc-button-touch-target {
549  position: absolute;
550  top: 50%;
551  height: var(--mat-button-outlined-touch-target-size, 48px);
552  display: var(--mat-button-outlined-touch-target-display, block);
553  left: 0;
554  right: 0;
555  transform: translateY(-50%);
556}
557.mat-mdc-outlined-button:not(:disabled) {
558  color: var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));
559  border-color: var(--mat-button-outlined-outline-color, var(--mat-sys-outline));
560}
561.mat-mdc-outlined-button[disabled], .mat-mdc-outlined-button.mat-mdc-button-disabled {
562  cursor: default;
563  pointer-events: none;
564  color: var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
565  border-color: var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
566}
567.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive {
568  pointer-events: auto;
569}
570
571.mat-tonal-button {
572  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
573  height: var(--mat-button-tona
573l-container-height, 40px);
574  font-family: var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));
575  font-size: var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));
576  letter-spacing: var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));
577  text-transform: var(--mat-button-tonal-label-text-transform);
578  font-weight: var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));
579  padding: 0 var(--mat-button-tonal-horizontal-padding, 24px);
580}
581.mat-tonal-button:not(:disabled) {
582  color: var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));
583  background-color: var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container));
584}
585.mat-tonal-button, .mat-tonal-button .mdc-button__ripple {
586  border-radius: var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full));
587}
588.mat-tonal-button[disabled], .mat-tonal-button.mat-mdc-button-disabled {
589  cursor: default;
590  pointer-events: none;
591  color: var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
592  background-color: var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
593}
594.mat-tonal-button.mat-mdc-button-disabled-interactive {
595  pointer-events: auto;
596}
597.mat-tonal-button > .mat-icon {
598  margin-right: var(--mat-button-tonal-icon-spacing, 8px);
599  margin-left: var(--mat-button-tonal-icon-offset, -8px);
600}
601[dir=rtl] .mat-tonal-button > .mat-icon {
602  margin-right: var(--mat-button-tonal-icon-offset, -8px);
603  margin-left: var(--mat-button-tonal-icon-spacing, 8px);
604}
605.mat-tonal-button .mdc-button__label + .mat-icon {
606  margin-right: var(--mat-button-tonal-icon-offset, -8px);
607  margin-left: var(--mat-button-tonal-icon-spacing, 8px);
608}
609[dir=rtl] .mat-tonal-button .mdc-button__label + .mat-icon {
610  margin-right: var(--mat-button-tonal-icon-spacing, 8px);
611  margin-left: var(--mat-button-tonal-icon-offset, -8px);
612}
613.mat-tonal-button .mat-ripple-element {
614  background-color: var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
615}
616.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
617  background-color: var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container));
618}
619.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
620  background-color: var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
621}
622.mat-tonal-button:hover > .mat-mdc-button-persistent-ripple::before {
623  opacity: var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
624}
625.mat-tonal-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
626  opacity: var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
627}
628.mat-tonal-button:active > .mat-mdc-button-persistent-ripple::before {
629  opacity: var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
630}
631.mat-tonal-button .mat-mdc-button-touch-target {
632  position: absolute;
633  top: 50%;
634  height: var(--mat-button-tonal-touch-target-size, 48px);
635  display: var(--mat-button-tonal-touch-target-display, block);
636  left: 0;
637  right: 0;
638  transform: translateY(-50%);
639}
640
641.mat-mdc-button,
642.mat-mdc-unelevated-button,
643.mat-mdc-raised-button,
644.mat-mdc-outlined-button,
645.mat-tonal-button {
646  -webkit-tap-highlight-color: transparent;
647}
648.mat-mdc-button .mat-mdc-button-ripple,
649.mat-mdc-button .mat-mdc-button-persistent-ripple,
650.mat-mdc-button .mat-mdc-button-persistent-ripple::before,
651.mat-mdc-unelevated-button .mat-mdc-button-ripple,
652.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,
653.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
654.mat-mdc-raised-button .mat-mdc-button-ripple,
655.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,
656.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
657.mat-mdc-outlined-button .mat-mdc-button-ripple,
658.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,
659.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
660.mat-tonal-button .mat-mdc-button-ripple,
661.mat-tonal-button .mat-mdc-button-persistent-ripple,
662.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
663  top: 0;
664  left: 0;
665  right: 0;
666  bottom: 0;
667  position: absolute;
668  pointer-events: none;
669  border-radius: inherit;
670}
671.mat-mdc-button .mat-mdc-button-ripple,
672.mat-mdc-unelevated-button .mat-mdc-button-ripple,
673.mat-mdc-raised-button .mat-mdc-button-ripple,
674.mat-mdc-outlined-button .mat-mdc-button-ripple,
675.mat-tonal-button .mat-mdc-button-ripple {
676  overflow: hidden;
677}
678.mat-mdc-button .mat-mdc-button-persistent-ripple::before,
679.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
680.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
681.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
682.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
683  content: "";
684  opacity: 0;
685}
686.mat-mdc-button .mdc-button__label,
687.mat-mdc-button .mat-icon,
688.mat-mdc-unelevated-button .mdc-button__label,
689.mat-mdc-unelevated-button .mat-icon,
690.mat-mdc-raised-button .mdc-button__label,
691.mat-mdc-raised-button .mat-icon,
692.mat-mdc-outlined-button .mdc-button__label,
693.mat-mdc-outlined-button .mat-icon,
694.mat-tonal-button .mdc-button__label,
695.mat-tonal-button .mat-icon {
696  z-index: 1;
697  position: relative;
698}
699.mat-mdc-button .mat-focus-indicator,
700.mat-mdc-unelevated-button .mat-focus-indicator,
701.mat-mdc-raised-button .mat-focus-indicator,
702.mat-mdc-outlined-button .mat-focus-indicator,
703.mat-tonal-button .mat-focus-indicator {
704  top: 0;
705  left: 0;
706  right: 0;
707  bottom: 0;
708  position: absolute;
709  border-radius: inherit;
710}
711.mat-mdc-button:focus-visible > .mat-focus-indicator::before,
712.mat-mdc-unelevated-button:focus-visible > .mat-focus-indicator::before,
713.mat-mdc-raised-button:focus-visible > .mat-focus-indicator::before,
714.mat-mdc-outlined-button:focus-visible > .mat-focus-indicator::before,
715.mat-tonal-button:focus-visible > .mat-focus-indicator::before {
716  content: "";
717  border-radius: inherit;
718}
719.mat-mdc-button._mat-animation-noopable,
720.mat-mdc-unelevated-button._mat-animation-noopable,
721.mat-mdc-raised-button._mat-animation-noopable,
722.mat-mdc-outlined-button._mat-animation-noopable,
723.mat-tonal-button._mat-animation-noopable {
724  transition: none !important;
725  animation: none !important;
726}
727.mat-mdc-button > .mat-icon,
728.mat-mdc-unelevated-button > .mat-icon,
729.mat-mdc-raised-button > .mat-icon,
730.mat-mdc-outlined-button > .mat-icon,
731.mat-tonal-button > .mat-icon {
732  display: inline-block;
733  position: relative;
734  vertical-align: top;
735  font-size: 1.125rem;
736  height: 1.125rem;
737  width: 1.125rem;
738}
739
740.mat-mdc-outlined-button .mat-mdc-button-ripple,
741.mat-mdc-outlined-button .mdc-button__ripple {
742  top: -1px;
743  left: -1px;
744  bottom: -1px;
745  right: -1px;
746}
747
748.mat-mdc-unelevated-button .mat-focus-indicator::before,
749.mat-tonal-button .mat-focus-indicator::before,
750.mat-mdc-raised-button .mat-focus-indicator::before {
751  margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
752}
753
754.mat-mdc-outlined-button .mat-focus-indicator::before {
755  margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1);
756}
757
758.mat-mdc-button-progress-indicator-container {
759  position: absolute;
760  inset-inline-start: 0;
761  inset-block-start: 0;
762  display: flex;
763  align-items: center;
764  justify-content: center;
765  width: 100%;
766  height: 100%;
767  box-sizing: border-box;
768}
769
770.mat-mdc-button-progress-indicator-shown mat-icon,
771.mat-mdc-button-progress-indicator-shown [matButtonIcon],
772.mat-mdc-button-progress-indicator-shown .mdc-button__label {
773  visibility: hidden;
774}
775`,`@media (forced-colors: active) {
776  .mat-mdc-button:not(.mdc-button--outlined),
777  .mat-mdc-unelevated-button:not(.mdc-button--outlined),
778  .mat-mdc-raised-button:not(.mdc-button--outlined),
779  .mat-mdc-outlined-button:not(.mdc-button--outlined),
780  .mat-mdc-button-base.mat-tonal-button,
781  .mat-mdc-icon-button.mat-mdc-icon-button,
782  .mat-mdc-outlined-button .mdc-button__ripple {
783    outline: solid 1px;
784  }
785}
786`],encapsulation:2})}return a})();function Jt$4(a){return a.hasAttribute("mat-raised-button")?"elevated":a.hasAttribute("mat-stroked-button")?"outlined":a.hasAttribute("mat-flat-button")?"filled":a.hasAttribute("mat-button")?"text":null}function tn$1(a,m){if(a&1){let t=DT();Zi$3(0,"div",1)(1,"button",2),_g$1("click",function(){Rd$2(t);let e=NT();return kd$2(e.action())}),ib(2),kl$2()();}if(a&2){let t=NT();AE(2),jl$2(" ",t.data.action," ");}}var nn$1=["label"];function en$2(a,m){}var an$1=Math.pow(2,31)-1,D$8=class D{_overlayRef;instance;containerInstance;_afterDismissed=new de$c;_afterOpened=new de$c;_onAction=new de$c;_durationTimeoutId;_dismissedByAction=false;constructor(m,t){this._overlayRef=t,this.containerInstance=m,m._onExit.subscribe(()=>this._finishDismiss());}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId);}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=true,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId);}closeWithAction(){this.dismissWithAction();}_dismissAfter(m){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(m,an$1));}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete());}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=false;}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Ht$3=new M$g("MatSnackBarData"),x$4=class x{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},on$1=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275dir=dw({type:a,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return a})(),rn$1=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275dir=dw({type:a,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return a})(),sn$1=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275dir=dw({type:a,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return a})(),mn$1=(()=>{class a{snackBarRef=D$l(D$8);data=D$l(Ht$3);action(){this.snackBarRef.dismissWithAction();}get hasAction(){return !!this.data.action}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=sw({type:a,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,e){n&1&&(Zi$3(0,"div",0),ib(1),kl$2(),uT(2,tn$1,3,1,"div",1)),n&2&&(AE(),jl$2(" ",e.data.message,`
787`),AE(),dT(e.hasAction?2:-1));},dependencies:[Zt$4,on$1,rn$1,sn$1],styles:[`.mat-mdc-simple-snack-bar {
788  display: flex;
789}
790.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {
791  max-height: 50vh;
792  overflow: auto;
793}
794`],encapsulation:2})}return a})(),et$4="_mat-snack-bar-enter",at$4="_mat-snack-bar-exit",cn$1=(()=>{class a extends P$e{_ngZone=D$l($$b);_elementRef=D$l(Gr$4);_changeDetectorRef=D$l(WV);_platform=D$l(I$9);_animationsDisabled=xe$4();snackBarConfig=D$l(x$4);_document=D$l(jn$2);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=D$l(ye$7);_announceDelay=150;_announceTimeoutId;_destroyed=false;_portalOutlet;
794_onAnnounce=new de$c;_onExit=new de$c;_onEnter=new de$c;_animationState="void";_live;_label;_role;_liveElementId=D$l(ee$b).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"));}attachComponentPortal(t){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),n}attachTemplatePortal(t){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),n}attachDomPortal=t=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),n};onAnimationEnd(t){t===at$4?this._completeExit():t===et$4&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete();}));}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?oh$2(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(et$4)));},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(et$4);},200)));}exit(){return this._destroyed?Ms$2(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?oh$2(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(at$4)));},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(at$4),200));}),this._onExit)}ngOnDestroy(){this._destroyed=true,this._clearFromModals(),this._completeExit();}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete();});}_afterPortalAttached(){let t=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;
794n&&(Array.isArray(n)?n.forEach(r=>t.classList.add(r)):t.classList.add(n)),this._exposeToModals();let e=this._label.nativeElement,o="mdc-snackbar__label";e.classList.toggle(o,!e.querySelector(`.${o}`));}_exposeToModals(){let t=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let e=0;e<n.length;e++){let o=n[e],r=o.getAttribute("aria-owns");this._trackedModals.add(o),r?r.indexOf(t)===-1&&o.setAttribute("aria-owns",r+" "+t):o.setAttribute("aria-owns",t);}}_clearFromModals(){this._trackedModals.forEach(t=>{let n=t.getAttribute("aria-owns");if(n){let e=n.replace(this._liveElementId,"").trim();e.length>0?t.setAttribute("aria-owns",e):t.removeAttribute("aria-owns");}}),this._trackedModals.clear();}_assertNotAttached(){this._portalOutlet.hasAttached();}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,n=t.querySelector("[aria-hidden]"),e=t.querySelector("[aria-live]");if(n&&e){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(o=document.activeElement),n.removeAttribute("aria-hidden"),e.appendChild(n),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static \u0275fac=function(n){return new(n||a)};static \u0275cmp=sw({type:a,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,e){if(n&1&&xg$1(jt$5,7)(nn$1,7),n&2){let o;OT(o=LT())&&(e._portalOutlet=o.first),OT(o=LT())&&(e._label=o.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,e){n&1&&_g$1("animationend",function(r){return e.onAnimationEnd(r.animationName)})("animationcancel",function(r){return e.onAnimationEnd(r.animationName)}),n&2&&Pg$1("mat-snack-bar-container-enter",e._animationState==="visible")("mat-snack-bar-container-exit",e._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!e._animationsDisabled);},features:[sg$1],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,e){n&1&&(Zi$3(0,"div",1)(1,"div",2,0)(3,"div",3),cg$1(4,en$2,0,0,"ng-template",4),kl$2(),Eg$1(5,"div"),kl$2()()),n&2&&(AE(5),vg$1("aria-live",e._live)("role",e._role)("id",e._liveElementId));},dependencies:[jt$5],styles:[`@keyframes _mat-snack-bar-enter {
795  from {
796    transform: scale(0.8);
797    opacity: 0;
798  }
799  to {
800    transform: scale(1);
801    opacity: 1;
802  }
803}
804@keyframes _mat-snack-bar-exit {
805  from {
806    opacity: 1;
807  }
808  to {
809    opacity: 0;
810  }
811}
812.mat-mdc-snack-bar-container {
813  display: flex;
814  align-items: center;
815  justify-content: center;
816  box-sizing: border-box;
817  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
818  margin: 8px;
819}
820.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container {
821  width: 100vw;
822}
823
824.mat-snack-bar-container-animations-enabled {
825  opacity: 0;
826}
827.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible {
828  opacity: 1;
829}
830.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter {
831  animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
832}
833.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit {
834  animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
835}
836
837.mat-mdc-snackbar-surface {
838  box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
839  display: flex;
840  align-items: center;
841  justify-content: flex-start;
842  box-sizing: border-box;
843  padding-left: 0;
844  padding-right: 8px;
845}
846[dir=rtl] .mat-mdc-snackbar-surface {
847  padding-right: 0;
848  padding-left: 8px;
849}
850.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
851  min-width: 344px;
852  max-width: 672px;
853}
854.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface {
855  width: 100%;
856  min-width: 0;
857}
858@media (forced-colors: active) {
859  .mat-mdc-snackbar-surface {
860    outline: solid 1px;
861  }
862}
863.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
864  color: var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));
865  border-radius: var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));
866  background-color: var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface));
867}
868
869.mdc-snackbar__label {
870  width: 100%;
871  flex-grow: 1;
872  box-sizing: border-box;
873  margin: 0;
874  padding: 14px 8px 14px 16px;
875}
876[dir=rtl] .mdc-snackbar__label {
877  padding-left: 8px;
878  padding-right: 16px;
879}
880.mat-mdc-snack-bar-container .mdc-snackbar__label {
881  font-family: var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));
882  font-size: var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));
883  font-weight: var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));
884  line-height: var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height));
885}
886
887.mat-mdc-snack-bar-actions {
888  display: flex;
889  flex-shrink: 0;
890  align-items: center;
891  box-sizing: border-box;
892}
893
894.mat-mdc-snack-bar-handset,
895.mat-mdc-snack-bar-container,
896.mat-mdc-snack-bar-label {
897  flex: 1 1 auto;
898}
899
900.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed {
901  color: var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary));
902}
903.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {
904  --mat-button-text-state-layer-color: currentColor;
905  --mat-button-text-ripple-color: currentColor;
906}
907.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {
908  opacity: 0.1;
909}
910`],encapsulation:2,changeDetection:1})}return a})(),dn$1=new M$g("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new x$4}),qt$4=(()=>{class a{_live=D$l(Ye$3);_injector=D$l(ye$7);_breakpointObserver=D$l(W$d);_parentSnackBar=D$l(a,{optional:true,skipSelf:true});_defaultConfig=D$l(dn$1);_animationsDisabled=xe$4();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=mn$1;snackBarContainerComponent=cn$1;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t;}openFromComponent(t,n){return this._attach(t,n)}openFromTemplate(t,n){return this._attach(t,n)}open(t,n="",e){let o=D$m(D$m({},this._defaultConfig),e);return o.data={message:t,action:n},o.announcementMessage===t&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,n){let e=n&&n.viewContainerRef&&n.viewContainerRef.injector,o=ye$7.create({parent:e||this._injector,providers:[{provide:x$4,useValue:n}]}),r=new H$a(this.snackBarContainerComponent,n.viewContainerRef,o),s=t.attach(r);return s.instance.snackBarConfig=n,s.instance}_attach(t,n){let e=D$m(D$m(D$m({},new x$4),this._defaultConfig),n),o=this._createOverlay(e),r=this._attachSnackBarContainer(o,e),s=new D$8(r,o);if(t instanceof Vr$4){let c=new x$f(t,null,{$implicit:e.data,snackBarRef:s});s.instance=r.attachTemplatePortal(c);}else {let c=this._createInjector(e,s),C=new H$a(t,void 0,c),Gt=r.attachComponentPortal(C);s.instance=Gt.instance;}return this._breakpointObserver.observe(H$b.HandsetPortrait).pipe(ku$2(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches);}),e.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(e.announcementMessage,e.politeness);}),this._animateSnackBar(s,e),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(t,n){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear();}),n.duration&&n.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter();}_createOverlay(t){let n=new B$b;n.direction=t.direction;let e=Dt$7(this._injector),o=t.direction==="rtl",r=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!o||t.horizontalPosition==="end"&&o,s=!r&&t.horizontalPosition!=="center";return r?e.left("0"):s?e.right("0"):e.centerHorizontally(),t.verticalPosition==="top"?e.top("0"):e.bottom("0"),n.positionStrategy=e,n.disableAnimations=this._animationsDisabled,At$7(this._injector,n)}_createInjector(t,n){let e=t&&t.viewContainerRef&&t.viewContainerRef.injector;return ye$7.create({parent:e||this._injector,providers:[{provide:D$8,useValue:n},{provide:Ht$3,useValue:t.data}]})}static \u0275fac=function(n){return new(n||a)};static \u0275prov=ct$9({token:a,factory:a.\u0275fac})}return a})();var ot$4=class a{constructor(m,t){this.snackBar=m;this.translate=t;}show(m,t=false,n=null){return this.snackBar.open(t?this.translate.instant(m):m,n,{duration:n?1e7:3e3})}static{this.\u0275fac=function(t){return new(t||a)(me$b(qt$4),me$b(x$d))};}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var D$7=class D{};var F$3=class i{constructor(){this.http=D$l(Ue$7);}static{this.GetContractByInviteUrl=`${C$8.baseUrl}/api/v2/contracts/by-invite`;}getContractByInvite(e){let t=new R$a({fromObject:{code:e}});return this.http.get(i.GetContractByInviteUrl,{params:t})}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var w$4=class i{constructor(){this.contractsResource=D$l(F$3);
910this.code="";this.emailDomainAllowed=[];}setEmailDomainAllowed(e){this.emailDomainAllowed=e;}getEmailDomainAllowed(){return this.emailDomainAllowed}setCode(e){this.code=e;}getCode(){return this.code}hasCode(){return !!this.getCode()}getContractByInvite(e){return this.contractsResource.getContractByInvite(e)}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var j$5=class i{constructor(e,t){this.storage=e;this.config=t;this.tokenName=this.config.options.tokenPrefix?[this.config.options.tokenPrefix,this.config.options.tokenName].join(this.config.options.tokenSeparator):this.config.options.tokenName;}getToken(){return this.storage.get(this.tokenName)}getPayload(e=this.getToken()){if(e&&e.split(".").length===3)try{let r=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(this.b64DecodeUnicode(r))}catch(t){return}}setToken(e){if(!e)return;let t;if(typeof e=="string"?t=e:t=this.config.options.resolveToken(e,this.config.options),t){let r=this.getExpirationDate(t);this.storage.set(this.tokenName,t,r?r.toUTCString():"");}}removeToken(){this.storage.remove(this.tokenName);}isAuthenticated(e=this.getToken()){if(e){if(e.split(".").length===3)try{let r=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=JSON.parse(this.b64DecodeUnicode(r)).exp;if(n)return Math.round(new Date().getTime()/1e3)>=n?(this.storage.remove(this.tokenName),!1):!0}catch(t){return  true}return  true}return  false}getExpirationDate(e=this.getToken()){let t=this.getPayload(e);if(t?.exp&&Math.round(new Date().getTime()/1e3)<t.exp){let r=new Date(0);return r.setUTCSeconds(t.exp),r}return null}logout(){return x$g.create(e=>{this.storage.remove(this.tokenName),e.next(void 0),e.complete();})}setStorageType(e){return this.storage.updateStorageType(e)}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(atob(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}static{this.\u0275fac=function(t){return new(t||i)(me$b(D$7),me$b(h$b))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var N$6=class i{constructor(e,t,r){this.http=e;this.shared=t;this.config=r;}login(e,t){return this.http.post(t||N$a(this.config.options.baseUrl,this.config.options.loginUrl),e).pipe(Lu$2(r=>this.shared.setToken(r)))}signup(e,t){return this.http.post(t||N$a(this.config.options.baseUrl,this.config.options.signupUrl),e)}static{this.\u0275fac=function(t){return new(t||i)(me$b(Ue$7),me$b(j$5),me$b(h$b))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var O$4=class i{constructor(){this.popupWindow=null;}open(e,t,r=this.isCordovaApp()){let n=this.stringifyOptions(this.prepareOptions(t.popupOptions)),s=r?"_blank":t.name;return this.closeWindow(this.popupWindow),this.popupWindow=typeof window<"u"?window.open(e,s,n):null,this.popupWindow?(this.popupWindow.focus&&this.popupWindow.focus(),Ms$2(null).pipe(ge$9(()=>this.popupWindow))):Jm$2()}waitForClose(e,t=this.isCordovaApp(),r=d$a()){return (t?this.eventListener(e,r):this.pollPopup(e,r)).pipe(bu$2(()=>this.closeWindow(e)))}closeWindow(e){!e||e.closed||(e.close(),this.popupWindow===e&&(this.popupWindow=null));}eventListener(e,t=d$a()){if(!e)throw new Error("Popup was not created");return iy(Ns$2(e,"exit").pipe(Uu$2(100),ge$9(()=>{throw new Error("Authentication Canceled")})),Ns$2(e,"loadstart")).pipe(Ru$2(r=>{if(!e||e.closed)return Lm$2(new Error("Authentication Canceled"));if(!r.url.startsWith(t))return Jm$2();let n=document.createElement("a");if(n.href=r.url,n.search||n.hash){let s=n.search.substring(1).replace(/\/$/,""),p=n.hash.substring(1).replace(/\/$/,""),m=this.parseQueryString(p),u=this.parseQueryString(s),l=D$m(D$m({},u),m);if(e.close(),l.error)throw l.error;return Ms$2(l)}return Jm$2()}),Pt$a(1))}pollPopup(e,t=d$a()){return As$2(50).pipe(Ru$2(()=>{if(!e||e.closed)return Lm$2(new Error("Authentication Canceled"));let r=d$a(e);if(r&&(t.startsWith(r)||r.startsWith(t))&&(e.location.search||e.location.hash)){let n=e.location.search.substring(1).replace(/\/$/,""),s=e.location.hash.substring(1).replace(/[\/$]/,""),p=this.parseQueryString(s),m=this.parseQueryString(n);e.close();let u=D$m(D$m({},m),p);if(u.error)throw u.error;return Ms$2(u)}return Jm$2()}),Pt$a(1))}prepareOptions(e){e=e||{};let t=e.width||500,r=e.height||500;return D$m({width:t,height:r,left:window.screenX+(window.outerWidth-t)/2,top:window.screenY+(window.outerHeight-r)/2.5,toolbar:e.visibleToolbar?"yes":"no"},e)}stringifyOptions(e){return Object.keys(e).map(t=>e[t]===null||e[t]===void 0?t:t+"="+e[t]).join(",")}parseQueryString(e){let t,r;return e.split("&").reduce((n,s)=>(s&&(r=s.split("="),t=decodeURIComponent(r[0]),n[t]=typeof r[1]<"u"?decodeURIComponent(r[1]):true),n),{})}isCordovaApp(){return typeof cordova=="object"||document.URL.indexOf("http://")===-1&&document.URL.indexOf("https://")===-1}static{this.\u0275fac=function(t){return new(t||i)};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var z$2=class i{constructor(e,t,r){this.http=e;this.popup=t;this.config=r;}open(e,t){let r=this.config.options.baseUrl?N$a(this.config.options.baseUrl,e.url):e.url;return this.popup.open("about:blank",e,this.config.options.cordova).pipe(Ru$2(n=>this.http.post(r,e).pipe(Lu$2(s=>n?n.location.replace([e.authorizationEndpoint,M$b(s)].join("?")):void 0),Ru$2(s=>this.popup.waitForClose(n,this.config.options.cordova,e.redirectUri).pipe(ge$9(p=>({authorizationData:s,oauthData:p}
910)))))),Ru$2(({authorizationData:n,oauthData:s})=>this.exchangeForToken(e,n,s,t)))}exchangeForToken(e,t,r,n){let s={oauthOptions:e,authorizationData:t,oauthData:r,userData:n},{withCredentials:p,baseUrl:m}=this.config.options,{method:u="POST",url:l}=e,c=m?N$a(m,l):l;return this.http.request(u,c,{body:s,withCredentials:p})}static{this.\u0275fac=function(t){return new(t||i)(me$b(Ue$7),me$b(O$4),me$b(h$b))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var P$7=class i{constructor(e,t,r){this.http=e;this.popup=t;this.config=r;}open(e,t){let r=this.getAuthorizationData(e),n=[e.authorizationEndpoint,M$b(r)].join("?");return this.popup.open(n,e,this.config.options.cordova).pipe(Ru$2(s=>s?this.popup.waitForClose(s,this.config.options.cordova,e.redirectUri):Jm$2()),Ru$2(s=>{if(e.responseType==="token"||!e.url)return Ms$2(s);if(s.state&&s.state!==r.state)throw new Error('OAuth "state" mismatch');return this.exchangeForToken(e,r,s,t)}))}exchangeForToken(e,t,r,n){let s={authorizationData:t,oauthData:r,userData:n},{baseUrl:p,withCredentials:m}=this.config.options,{url:u,method:l="POST"}=e,c=p?N$a(p,u):u;return this.http.request(l,c,{body:s,withCredentials:m})}getAuthorizationData(e){let{responseType:t="code",clientId:r,redirectUri:n=d$a()||"",scopeDelimiter:s=",",scope:p,state:m,additionalUrlParams:u}=e,l=typeof m=="function"?m():m;return [["response_type",t],["client_id",r],["redirect_uri",n],...m?[["state",l]]:[],...p?[["scope",p.join(s)]]:[],...u?Object.keys(u).map(c=>{let g=u[c];return typeof g=="string"?[c,g]:typeof g=="function"?[c,g()]:g===null?[c,""]:["",""]}):[]].filter(c=>!!c[0]).reduce((c,g)=>E$9(D$m({},c),{[g[0]]:g[1]}),{})}static{this.\u0275fac=function(t){return new(t||i)(me$b(Ue$7),me$b(O$4),me$b(h$b))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var B$3=class i{constructor(e,t,r,n,s,p){this.http=e;this.shared=t;this.config=r;this.popup=n;this.oauth1=s;this.oauth2=p;}authenticate(e,t){return (this.config.options.providers[e].oauthType==="1.0"?this.oauth1:this.oauth2).open(this.config.options.providers[e],t||{}).pipe(Lu$2(n=>{this.config.options.providers[e].url&&this.shared.setToken(n);}))}unlink(e,t=N$a(this.config.options.baseUrl,this.config.options.unlinkUrl),r="POST"){return this.http.request(r,t,{body:{provider:e}})}static{this.\u0275fac=function(t){return new(t||i)(me$b(Ue$7),me$b(j$5),me$b(h$b),me$b(O$4),me$b(z$2),me$b(P$7))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var $$2=class i{constructor(e,t,r){this.shared=e;this.local=t;this.oauth=r;}login(e,t){return this.local.login(e,t)}signup(e,t){return this.local.signup(e,t)}logout(){return this.shared.logout()}authenticate(e,t){return this.oauth.authenticate(e,t)}link(e,t){return this.oauth.authenticate(e,t)}unlink(e,t){return this.oauth.unlink(e,t)}isAuthenticated(){return this.shared.isAuthenticated()}getToken(){return this.shared.getToken()}setToken(e){this.shared.setToken(e);}removeToken(){this.shared.removeToken();}getPayload(){return this.shared.getPayload()}setStorageType(e){return this.shared.setStorageType(e)}getExpirationDate(){return this.shared.getExpirationDate()}static{this.\u0275fac=function(t){return new(t||i)(me$b(j$5),me$b(N$6),me$b(B$3))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var R$7=class i{constructor(e,t,r){this.ngZone=e;this.authService=t;this.oauth2Service=r;}login(e,t={}){return this.ngZone.runOutsideAngular(()=>{let r=this.getOauthProvider(this.authService),n=this.authService;return r.open(n.oauth.config.options.providers[e],t).pipe(Lu$2(s=>{n.oauth.config.options.providers[e].url&&n.oauth.shared.setToken(s);}))})}getOauthProvider(e){return this.ngZone.runOutsideAngular(()=>{let t=this.oauth2Service,r=t.getAuthorizationData;return t.getAuthorizationData=function(n){let s=r(n);return n.popupRedirectUri&&(s.redirect_uri=n.popupRedirectUri),s},t})}getAuthUrl(e){let t=this.getOauthProvider(this.authService),r=t.config.options.providers[e],n=t.getAuthorizationData(r),s=Object.keys(n).map(p=>n[p]?`${encodeURIComponent(p)}=${encodeURIComponent(n[p])}`:p).join("&");return [r.authorizationEndpoint,s].join("?")}static{this.\u0275fac=function(t){return new(t||i)(me$b($$b),me$b($$2),me$b(P$7))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var x$3=class i{constructor(e){this.httpClient=e;}get(e){return this.httpClient.get(`${C$8.baseUrl}/api/v2/promo-codes/${e}`)}authToken(e){return this.httpClient.get(`${C$8.baseUrl}/api/v2/promo-codes/auth-token/${e}`)}static{this.\u0275fac=function(t){return new(t||i)(me$b(Ue$7))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var M$5=class i{constructor(e,t,r,n){this.localStorageService=e;this.promoCodeResource=t;this.analyticsService=r;this.authTokenService=n;this.promoCode="";this.promoCodeObject={};this.localStorageKey="promoCodeNew";this.promoCode=this.localStorageService.get(this.localStorageKey);}setPromoCode(e){e&&(this.analyticsService.send("set_promo_code",[e]),this.localStorageService.set(this.localStorageKey,e),this.promoCode=e);}getPromoCode(){return this.localStorageService.get(this.localStorageKey)}getDays(){return Math.floor(this.promoCodeObject.seconds/86400)}getHours(){return Math.floor(this.promoCodeObject.seconds%86400/3600)}setPromoCodeObject(e){this.promoCodeObject=e;}requestPromoCode(){let e=this.promoCode;return this.promoCodeResource.get(e).pipe(ge$9(t=>this.setPromoCodeObject(t)))}hasPromoCode(){return this.promoCodeObject.code&&this.promoCodeObject.seconds!==0}isPromoCodeExist(){return this.promoCode!==""&&this.localStorageService.get(this.localStorageKey)}isActualPromoCodeObject(){return this.promoCode!==""&&this.promoCodeObject.code===this.promoCode}removePromoCode(){this.promoCode="",this.promoCodeObject={},this.localStorageService.remove(this.localStorageKey);}authPromoCode(){return this.promoCodeResource.authToken(this.promoCodeObject.code).pipe(ge$9(e=>e.token?(this.authTokenService.setToken(e.token),true):false))}static{this.\u0275fac=function(t){return new(t||i)(me$b(xt$5),me$b(x$3),me$b(L$3),me$b(X$8))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var V$5=class i{constructor(e,t,r,n,s,p,m,u,l,c,g,Re,xe){this.userResource=e;this.contractsService=t;this.centrifugeService=r;this.promoCodeService=n;this.langService=s;this.userService=p;this.authTokenService=m;this.snackbarService=u;this.router=l;this.translateService=c;this.oauthService=g;this.sentryService=Re;this.userConfigService=xe;this.onSuccessLogin=new de$c;this.isLoggingOut=false;this.centrifugeService.events.subscribe(J=>{if(J.event==="user_refresh"&&this.requestUser().pipe(Mu$2()).subscribe(),J.event==="logout"){let je={url:window.location.href,userId:this.userService.user.getValue()?.id,userName:this.userService.user.getValue()?.username};this.sentryService.send("[LOGOUT] Case - centrifuge callback","Logout Statistics",je),this.logout();}});}login(e,t={}){let r=this.promoCodeService.getPromoCode();t.lang=this.langService.getLangValue().id,r&&(t.promoCode=r);let n=this.contractsService.getCode();n&&(t.contract=n,this.contractsService.setCode(""));let s=c=>(this.authTokenService.setToken(c.auth_key),this.userService.setUser(c),this.onSuccessLogin.next(c),c),p=c=>{this.userService.isLoading.next(false);let g=c.status===422?c.error.message:this.translateService.instant("errors.login_fail");throw this.snackbarService.show(g),c};this.userService.isLoading.next(true);let u={email:()=>this.userResource.emailAuth(t),wechat_internal:()=>this.userResource.wechatAuth(t),facebook_mobile:()=>this.userResource.facebookAuth(t),google_redirect:()=>this.userResource.googleAuth(t)};return (u[e]?u[e]:()=>this.oauthService.login(e,t))().pipe(ge$9(s),xs$1(p),Du$2(c=>this.userConfigService.loadConfig().pipe(ge$9(()=>c))))}sendLoginEmail(e){return this.userResource.sendLoginEmail(e)}requestUser(e={}){return e.lang=this.langService.getLangValue().id,this.userResource.get(e).pipe(ge$9(t=>{let r=t;if(r?.username)return this.userService.setUser(r),r;this.authTokenService.setToken(""),this.userService.isGuest()||this.logout(true,fal
910se);}))}logout(e=true,t=true){if(!this.isLoggingOut)if(this.isLoggingOut=true,this.userService.unsetUser(t),this.promoCodeService.isPromoCodeExist()&&this.promoCodeService.removePromoCode(),e){let r=this.router.url;this.router.navigateByUrl(s$k,{skipLocationChange:true}).then(()=>{this.router.navigateByUrl(r,{replaceUrl:true});}).finally(()=>{this.isLoggingOut=false;});}else this.isLoggingOut=false;}static{this.\u0275fac=function(t){return new(t||i)(me$b(P$a),me$b(w$4),me$b(ne$8),me$b(M$5),me$b(v$7),me$b(ve$6),me$b(X$8),me$b(ot$4),me$b(F$4),me$b(x$d),me$b(R$7),me$b(F$6),me$b(fe$5))};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};
911var s$j=class e{onEvent(n){n.target.closest("a")&&n.stopPropagation();}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275dir=dw({type:e,selectors:[["","stopToggleOnLink",""]],hostBindings:function(i,o){i&1&&_g$1("click",function(t){return o.onEvent(t)})("touchend",function(t){return o.onEvent(t)});}});}};var t$h=new Set(["gmail.com","yahoo.com","hotmail.com","aol.com","hotmail.co.uk","hotmail.fr","msn.com","yahoo.fr","wanadoo.fr","orange.fr","comcast.net","yahoo.co.uk","yahoo.com.br","yahoo.co.in","live.com","rediffmail.com","free.fr","gmx.de","web.de","yandex.ru","ymail.com","libero.it","outlook.com","uol.com.br","bol.com.br","mail.ru","cox.net","hotmail.it","sbcglobal.net","sfr.fr","live.fr","verizon.net","live.co.uk","googlemail.com","yahoo.es","ig.com.br","live.nl","bigpond.com","terra.com.br","yahoo.it","neuf.fr","yahoo.de","alice.it","rocketmail.com","att.net","laposte.net","facebook.com","bellsouth.net","yahoo.in","hotmail.es","charter.net","yahoo.ca","yahoo.com.au","rambler.ru","hotmail.de","tiscali.it","shaw.ca","yahoo.co.jp","sky.com","earthlink.net","optonline.net","freenet.de","t-online.de","aliceadsl.fr","virgilio.it","home.nl","qq.com","telenet.be","me.com","yahoo.com.ar","tiscali.co.uk","yahoo.com.mx","voila.fr","gmx.net","mail.com","planet.nl","tin.it","live.it","ntlworld.com","arcor.de","yahoo.co.id","frontiernet.net","hetnet.nl","live.com.au","yahoo.com.sg","zonnet.nl","club-internet.fr","juno.com","optusnet.com.au","blueyonder.co.uk","bluewin.ch","skynet.be","sympatico.ca","windstream.net","mac.com","centurytel.net","chello.nl","live.ca","aim.com","bigpond.net.au"]);var e$e="\\s\\-'.,()0-9",i$b={en:new RegExp(`^[\\p{Script=Latin}${e$e}]*$`,"u"),br:new RegExp(`^[\\p{Script=Latin}${e$e}]*$`,"u"),es:new RegExp(`^[\\p{Script=Latin}${e$e}]*$`,"u"),cn:new RegExp(`^[\\p{Script=Latin}\\p{Script=Han}${e$e}]*$`,"u"),jp:new RegExp(`^[\\p{Script=Latin}\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}${e$e}]*$`,"u"),ko:new RegExp(`^[\\p{Script=Latin}\\p{Script=Hangul}${e$e}]*$`,"u")},n$9=class n{static{this.appPageRegExp=new RegExp("/(iphone|google-play|ipad)/.{1,}/[A-Za-z0-9_\\-,.]{1,}");}static{this.appTrackerRegExp=new RegExp("/notifications/");}static{this.steamPageRegExp=new RegExp(/^\/steam\/\d+(\/dlc|\/playerbase)?(\?.*)?$/);}static getEmail(){return /^[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z](?:[a-zA-Z-]*[a-zA-Z])+?$/}static getPhone(){return /^[0-9+-/(/)]{0,20}$/}static getWeChat(){return /^[a-z0-9_-]*$/i}static getNonTargetEmail(){return /.org$|.edu$|.net$|student|schools|gapps.yrdsb|\.k12\./i}static getInputPatternByLang(o){return i$b[o]??i$b.en}static isPublicEmailDomain(o){let a=o?.split("@")[1]?.toLowerCase();return a?t$h.has(a):false}};var a$9=class a{static{this.MAX_LENGTH=255;}static{this.LOOKS_LIKE_EMAIL_PATTERN=/^[a-zA-Z0-9@._+\-]+$/;}static noWhitespace(){return t=>t.value&&t.value.trim().length===0?{whitespace:true}:null}static publicEmailDomain(){return t=>{let r=typeof t.value=="string"?t.value.trim():"";return r&&n$9.isPublicEmailDomain(r)?{publicEmailDomain:true}:null}}static looksLikeEmail(t){return !t||typeof t!="string"?false:this.LOOKS_LIKE_EMAIL_PATTERN.test(t)&&t.includes("@")}};var t$g="https://sensortower.com/tos",o$e="https://sensortower.com/privacy";var s$i="/legal/PrivacyPolicyTapTalk.pdf";
912var T$4=["*"];function A$4(n,i){n&1&&(qd$2(),Eg$1(0,"path",2));}function D$6(n,i){n&1&&(qd$2(),Eg$1(0,"path",3));}function E$3(n,i){if(n&1&&uT(0,A$4,1,0,":svg:path",2)(1,D$6,1,0,":svg:path",3),n&2){let t,e=NT();dT((t=e.size())===16?0:t===24?1:-1);}}function w$3(n,i){n&1&&(Zi$3(0,"span",1),RT(1),kl$2());}var P$6=class n{constructor(){this.value=VV();this.noText=VV(false);this.lock=VV(false);this.invalid=VV(false);this.toggleTextTooltip=VV();this.anchorSvgTooltipToHost=VV(true);this.featureType=VV();this.size=VV(16);this.onChange=jV();this.onLockClick=jV();this.viewBox=Pb(()=>`0 0 ${this.size()} ${this.size()}`);this.elementRef=D$l(Gr$4);this.destroyRef=D$l(st$b);}ngOnInit(){Ns$2(this.elementRef.nativeElement,"click").pipe(U$a(this.destroyRef)).subscribe(()=>{if(this.lock()){this.onLockClick.emit(this.featureType());return}this.onChange.emit();});}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["am-checkbox"]],hostVars:4,hostBindings:function(t,e){t&2&&Pg$1("size-16",e.size()===16)("size-24",e.size()===24);},inputs:{value:[1,"value"],noText:[1,"noText"],lock:[1,"lock"],invalid:[1,"invalid"],toggleTextTooltip:[1,"toggleTextTooltip"],anchorSvgTooltipToHost:[1,"anchorSvgTooltipToHost"],featureType:[1,"featureType"],size:[1,"size"]},outputs:{onChange:"onChange",onLockClick:"onLockClick"},ngContentSelectors:T$4,decls:3,vars:15,consts:[["fill","none",1,"check-container",3,"textTooltip","textTooltipAnchor"],[1,"content-checkbox"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.9764 3.73778C14.3669 4.1283 14.3669 4.76147 13.9764 5.15199L7.00546 12.1229C6.61494 12.5134 5.98177 12.5134 5.59125 12.1229L2.70711 9.23875C2.31658 8.84823 2.31658 8.21506 2.70711 7.82454L2.73778 7.79386C3.1283 7.40334 3.76147 7.40334 4.15199 7.79386L6.29835 9.94023L12.5315 3.70711C12.922 3.31658 13.5552 3.31658 13.9457 3.70711L13.9764 3.73778Z","fill","black",1,"checkmark-path"],["fill-rule","evenodd","clip-rule","evenodd","d","M20.2369 6.90266C20.6274 7.29318 20.6274 7.92635 20.2369 8.31687L10.7083 17.8455C10.3178 18.236 9.68462 18.236 9.29409 17.8455L5.09883 13.6502C4.70831 13.2597 4.70831 12.6265 5.09883 12.236L5.57023 11.7646C5.96076 11.3741 6.59392 11.374
9121 6.98445 11.7646L10.0012 14.7813L18.3513 6.43125C18.7418 6.04073 19.375 6.04073 19.7655 6.43125L20.2369 6.90266Z","fill","black",1,"checkmark-path"]],template:function(t,e){t&1&&(AT(),qd$2(),Zi$3(0,"svg",0),uT(1,E$3,2,1),kl$2(),uT(2,w$3,2,0,"span",1)),t&2&&(Pg$1("active",e.value())("no-text",e.noText())("lock",e.lock())("invalid",e.invalid()),Ig$1("textTooltip",e.toggleTextTooltip())("textTooltipAnchor",e.anchorSvgTooltipToHost()?e.elementRef:null),vg$1("width",e.size())("height",e.size())("viewBox",e.viewBox()),AE(),dT(e.value()?1:-1),AE(),dT(e.noText()?-1:2));},dependencies:[fe$6],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
912--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:flex-start;min-height:18px;cursor:pointer;-webkit-user-select:none;user-select:none}.cursor-default[_nghost-%COMP%]{cursor:default}.cursor-default[_nghost-%COMP%]   .check-container[_ngcontent-%COMP%]{cursor:default}[_nghost-%COMP%]   .content-checkbox[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.label-position-before[_nghost-%COMP%]   .check-container[_ngcontent-%COMP%]{order:1;margin:0 6px 0 0}.size-16[_nghost-%COMP%]{min-height:16px}.size-16[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{line-height:16px}.size-16[_nghost-%COMP%]   .check-container[_ngcontent-%COMP%]{height:16px;min-height:16px;width:16px;min-width:16px}.size-16[_nghost-%COMP%]   .content-checkbox[_ngcontent-%COMP%]{line-height:16px}.size-24[_nghost-%COMP%]{min-height:24px}.size-24[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{line-height:24px}.size-24[_nghost-%COMP%]   .check-container[_ngcontent-%COMP%]{border-radius:4px;overflow:hidden;height:24px;min-height:24px;width:24px;min-width:24px}.size-24[_nghost-%COMP%]   .content-checkbox[_ngcontent-%COMP%]{line-height:24px}[_nghost-%COMP%]   .check-container[_ngcontent-%COMP%]{display:inline-block;line-height:0;margin:0 8px 0 0;position:relative;vertical-align:middle;white-space:nowrap;cursor:pointer;border-radius:4px;border:2px solid var(--grey-50)}[_nghost-%COMP%]   .check-container.invalid[_ngcontent-%COMP%]{border-color:var(--red-50)}[_nghost-%COMP%]   .check-container.no-text[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   .check-container.lock[_ngcontent-%COMP%]:not(.active){border-color:var(--grey-40);background-color:var(--grey-30)}[_nghost-%COMP%]   .check-container.lock[_ngcontent-%COMP%]:not(.active)   .checkmark-path[_ngcontent-%COMP%]{fill:none}[_nghost-%COMP%]   .check-container.active.lock[_ngcontent-%COMP%]{border-color:var(--grey-30);background-color:var(--grey-30)}[_nghost-%COMP%]   .check-container.active.lock[_ngcontent-%COMP%]   .checkmark-path[_ngcontent-%COMP%]{fill:var(--grey-50);stroke:var(--grey-50)}[_nghost-%COMP%]   .check-container.active[_ngcontent-%COMP%]:not(.lock){border:2px solid var(--yellow-50);background-color:var(--yellow-50)}[_nghost-%COMP%]   .check-container.active[_ngcontent-%COMP%]:not(.lock)   .checkmark-path[_ngcontent-%COMP%]{fill:var(--black);stroke:var(--black)}[_nghost-%COMP%]   .checkbox[_ngcontent-%COMP%]{transition:background-color 90ms cubic-bezier(0,0,.2,.1)}[_nghost-%COMP%]   .checkbox.white[_ngcontent-%COMP%]{fill:var(--white)}[_nghost-%COMP%]   .checkmark[_ngcontent-%COMP%]{position:relative;z-index:1}[_nghost-%COMP%]   .checkmark-path[_ngcontent-%COMP%]{transition:.09s stroke-dashoffset;stroke:none;fill:none}"]});}};var Le$3=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static \u0275fac=function(i){return new(i||n)(Jr$4(fD),Jr$4(Gr$4))};static \u0275dir=dw({type:n})}return n})(),ft$3=(()=>{class n extends Le$3{static \u0275fac=(()=>{let e;return function(r){return (e||(e=Vv$1(n)))(r||n)}})();static \u0275dir=dw({type:n,features:[sg$1]})}return n})(),te$6=new M$g("");var gt$2={provide:te$6,useExisting:Uo$3(()=>We$3),multi:true};function pt$2(){let n=Kl$2()?Kl$2().getUserAgent():"";return /android (\d+)/.test(n.toLowerCase())}var mt$1=new M$g(""),We$3=(()=>{class n extends Le$3{_compositionMode;_composing=false;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!pt$2());}writeValue(e){let i=e??"";this.setProperty("value",i);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=true;}_compositionEnd(e){this._composing=false,this._compositionMode&&this.onChange(e);}static \u0275fac=function(i){return new(i||n)(Jr$4(fD),Jr$4(Gr$4),Jr$4(mt$1,8))};static \u0275dir=dw({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&_g$1("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)});},standalone:false,features:[yb([gt$2]),sg$1]})}return n})();function ve$3(n){return n==null||_e$4(n)===0}function _e$4(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var V$4=new M$g(""),ne$3=new M$g(""),vt$2=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ce$5=class ce{static min(t){return _t$2(t)}static max(t){return yt$1(t)}static required(t){return qe$2(t)}static requiredTrue(t){return Ct$1(t)}static email(t){return Vt$2(t)}static minLength(t){return Dt$3(t)}static maxLength(t){return $e$2(t)}static pattern(t){return ze$3(t)}static nullValidator(t){return $$1()}static compose(t){return Qe$2(t)}static composeAsync(t){return tt$3(t)}};function _t$2(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function yt$1(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function qe$2(n){return ve$3(n.value)?{required:true}:null}function Ct$1(n){return n.value===true?null:{required:true}}function Vt$2(n){return ve$3(n.value)||vt$2.test(n.value)?null:{email:true}}function Dt$3(n){return t=>{let e=t.value?.length??_e$4(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function $e$2(n){return t=>{let e=t.value?.length??_e$4(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function ze$3(n){if(!n)return $$1;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(ve$3(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function $$1(n){return null}function Ze$2(n){return n!=null}function Xe$2(n){return wl$2(n)?je$8(n):n}function Ye$2(n){let t={};
912return n.forEach(e=>{t=e!=null?D$m(D$m({},t),e):t;}),Object.keys(t).length===0?null:t}function Ke$2(n,t){return t.map(e=>e(n))}function bt$2(n){return !n.validate}function Je$2(n){return n.map(t=>bt$2(t)?t:e=>t.validate(e))}function Qe$2(n){if(!n)return null;let t=n.filter(Ze$2);return t.length==0?null:function(e){return Ye$2(Ke$2(e,t))}}function et$3(n){return n!=null?Qe$2(Je$2(n)):null}function tt$3(n){if(!n)return null;let t=n.filter(Ze$2);return t.length==0?null:function(e){let i=Ke$2(e,t).map(Xe$2);return Wm$2(i).pipe(ge$9(Ye$2))}}function nt$5(n){return n!=null?tt$3(Je$2(n)):null}function ke$4(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function it$3(n){return n._rawValidators}function rt$2(n){return n._rawAsyncValidators}function he$4(n){return n?Array.isArray(n)?n:[n]:[]}function z$1(n,t){return Array.isArray(n)?n.includes(t):n===t}function Te$4(n,t){let e=he$4(t);return he$4(n).forEach(r=>{z$1(e,r)||e.push(r);}),e}function je$2(n,t){return he$4(t).filter(e=>!z$1(n,e))}var Z$3=class Z{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=et$3(this._rawValidators);}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=nt$5(this._rawAsyncValidators);}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t);}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[];}reset(t=void 0){this.control?.reset(t);}hasError(t,e){return this.control?this.control.hasError(t,e):false}getError(t,e){return this.control?this.control.getError(t,e):null}},y$1=class y extends Z$3{name;get formDirective(){return null}get path(){return null}};var x$2="VALID",q$5="INVALID",F$2="PENDING",R$6="DISABLED",v$5=class v{},X$6=class X extends v$5{value;source;constructor(t,e){super(),this.value=t,this.source=e;}},P$5=class P extends v$5{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e;}},k$3=class k extends v$5{touched;source;constructor(t,e){super(),this.touched=t,this.source=e;}},w$2=class w extends v$5{status;source;constructor(t,e){super(),this.status=t,this.source=e;}},fe$3=class fe extends v$5{source;constructor(t){super(),this.source=t;}},C$5=class C extends v$5{source;constructor(t){super(),this.source=t;}};function ye$4(n){return (ie$5(n)?n.validators:n)||null}function At$2(n){return Array.isArray(n)?et$3(n):n||null}function Ce$5(n,t){return (ie$5(t)?t.asyncValidators:n)||null}function Mt$2(n){return Array.isArray(n)?nt$5(n):n||null}function ie$5(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function st$4(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new _$7(1e3,"");if(!at$3(i,e))throw new _$7(1001,"")}function ot$3(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new _$7(-1002,"")});}var S$3=class S{_pendingDirty=false;_hasOwnPendingAsyncValidator=null;_pendingTouched=false;_onCollectionChange=()=>{};_updateOn;_hasRequired=fi$4(false);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator();}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t;}get parent(){return this._parent}get status(){return Fb(this.statusReactive)}set status(t){Fb(()=>this.statusReactive.set(t));}_status=Pb(()=>this.statusReactive());statusReactive=fi$4(void 0);get valid(){return this.status===x$2}get invalid(){return this.status===q$5}get pending(){return this.status===F$2}get disabled(){return this.status===R$6}get enabled(){return this.status!==R$6}errors;get pristine(){return Fb(this.pristineReactive)}set pristine(t){Fb(()=>this.pristineReactive.set(t));}_pristine=Pb(()=>this.pristineReactive());pristineReactive=fi$4(true);get dirty(){return !this.pristine}get touched(){return Fb(this.touchedReactive)}set touched(t){Fb(()=>this.touchedReactive.set(t));}_touched=Pb(()=>this.touchedReactive());touchedReactive=fi$4(false);get untouched(){return !this.touched}_events=new de$c;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t);}setAsyncValidators(t){this._assignAsyncValidators(t);}addValidators(t){this.setValidators(Te$4(t,this._rawValidators));}addAsyncValidators(t){this.setAsyncValidators(Te$4(t,this._rawAsyncValidators));}removeValidators(t){this.setValidators(je$2(t,this._rawValidators));}removeAsyncValidators(t){this.setAsyncValidators(je$2(t,this._rawAsyncValidators));}hasValidator(t){return z$1(this._rawValidators,t)}hasAsyncValidator(t){return z$1(this._rawAsyncValidators,t)}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(t={}){let e=this.touched===false;this.touched=true;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(E$9(D$m({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new k$3(true,i));}
912markAllAsDirty(t={}){this.markAsDirty({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t));}markAllAsTouched(t={}){this.markAsTouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t));}markAsUntouched(t={}){let e=this.touched===true;this.touched=false,this._pendingTouched=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:i});}),t.onlySelf||this._parent?._updateTouched(t,i),e&&t.emitEvent!==false&&this._events.next(new k$3(false,i));}markAsDirty(t={}){let e=this.pristine===true;this.pristine=false;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(E$9(D$m({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new P$5(false,i));}markAsPristine(t={}){let e=this.pristine===false;this.pristine=true,this._pendingDirty=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:true,emitEvent:t.emitEvent});}),t.onlySelf||this._parent?._updatePristine(t,i),e&&t.emitEvent!==false&&this._events.next(new P$5(true,i));}markAsPending(t={}){this.status=F$2;let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new w$2(this.status,e)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(E$9(D$m({},t),{sourceControl:e}));}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=R$6,this.errors=null,this._forEachChild(r=>{r.disable(E$9(D$m({},t),{onlySelf:true}));}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new X$6(this.value,i)),this._events.next(new w$2(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(E$9(D$m({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(true));}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x$2,this._forEachChild(i=>{i.enable(E$9(D$m({},t),{onlySelf:true}));}),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent}),this._updateAncestors(E$9(D$m({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(false));}_updateAncestors(t,e){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e));}setParent(t){this._parent=t;}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x$2||this.status===F$2)&&this._runAsyncValidator(i,t.emitEvent);}let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new X$6(this.value,e)),this._events.next(new w$2(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(E$9(D$m({},t),{sourceControl:e}));}_updateTreeValidity(t={emitEvent:true}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?R$6:x$2;}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=F$2,this._hasOwnPendingAsyncValidator={emitEvent:e!==false,shouldHaveEmitted:t!==false};let i=Xe$2(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??false;return this._hasOwnPendingAsyncValidator=null,t}return  false}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==false,this,e.shouldHaveEmitted);}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i?.errors?i.errors[t]:null}hasError(t,e){return !!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new w$2(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i);}_initObservables(){this.valueChanges=new tt$b,this.statusChanges=new tt$b;}_calculateStatus(){return this._allControlsDisabled()?R$6:this.errors?q$5:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F$2)?F$2:this._anyControlsHaveStatus(q$5)?q$5:x$2}
912_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,t.onlySelf||this._parent?._updatePristine(t,e),r&&this._events.next(new P$5(this.pristine,e));}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new k$3(this.touched,e)),t.onlySelf||this._parent?._updateTouched(t,e);}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t;}_setUpdateStrategy(t){ie$5(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn);}_parentMarkedDirty(t){return !t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=At$2(this._rawValidators),this._updateHasRequiredValidator();}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Mt$2(this._rawAsyncValidators);}_updateHasRequiredValidator(){Fb(()=>this._hasRequired.set(this.hasValidator(ce$5.required)));}};function at$3(n,t){return Object.hasOwn(n,t)}function Et$2(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function Vn(n){if(n.tagName!=="INPUT")return  false;let t=n.type;return t==="number"||t==="range"||t==="date"||t==="month"}function Dn(n){return n.tagName==="INPUT"||n.tagName==="TEXTAREA"}function Ft$1(n,t,e,i){switch(e){case "name":n.setAttribute(t,e,i);break;case "disabled":case "readonly":case "required":i?n.setAttribute(t,e,""):n.removeAttribute(t,e);break;case "max":case "min":case "minLength":case "maxLength":i!==void 0?n.setAttribute(t,e,i.toString()):n.removeAttribute(t,e);break}}var ge$4=class ge{kind;context;control;message;constructor({kind:t,context:e,control:i}){this.kind=t,this.context=e,this.control=i;}};function wt$3(n){return typeof n=="number"?n:parseInt(n,10)}var Ve$4=(()=>{class n{_validator=$$1;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):$$1,this._onChange?.();}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e;}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=dw({type:n,features:[Ev$1]})}return n})();var Nt$2={provide:V$4,useExisting:Uo$3(()=>lt$3),multi:true};var lt$3=(()=>{class n extends Ve$4{required;inputName="required";normalizeInput=QV;createValidator=e=>qe$2;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Vv$1(n)))(r||n)}})();static \u0275dir=dw({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&vg$1("required",r._enabled?"":null);},inputs:{required:"required"},standalone:false,features:[yb([Nt$2]),sg$1]})}return n})();var St$2={provide:V$4,useExisting:Uo$3(()=>It$3),multi:true},It$3=(()=>{class n extends Ve$4{maxlength;inputName="maxlength";normalizeInput=e=>wt$3(e);createValidator=e=>$e$2(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=Vv$1(n)))(r||n)}})();static \u0275dir=dw({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&vg$1("maxlength",r._enabled?r.maxlength:null);},inputs:{maxlength:"maxlength"},standalone:false,features:[yb([St$2]),sg$1]})}return n})(),Ot$2={provide:V$4,useExisting:Uo$3(()=>xt$2),multi:true},xt$2=(()=>{class n extends Ve$4{pattern;inputName="pattern";normalizeInput=e=>e;createValidator=e=>ze$3(e);static \u0275fac=(()=>{let e;return function(r){return (e||(e=Vv$1(n)))(r||n)}})();static \u0275dir=dw({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&vg$1("pattern",r._enabled?r.pattern:null);},inputs:{pattern:"pattern"},standalone:false,features:[yb([Ot$2]),sg$1]})}return n})(),Rt$2=new M$g(""),j$4=new M$g("",{factory:()=>re$5}),re$5="always";function ut$4(n,t){return [...t.path,n]}function Y$5(n,t,e=re$5){De$4(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),kt$1(n,t),jt$2(n,t),Tt$2(n,t),Pt$2(n,t);}function K$4(n,t,e=true){let i=()=>{};t?.valueAccessor?.registerOnChange(i),t?.valueAccessor?.registerOnTouched(i),Q$5(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}));}
912function J$5(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t);});}function Pt$2(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i);};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e);});}}function De$4(n,t){let e=it$3(n);t.validator!==null?n.setValidators(ke$4(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=rt$2(n);t.asyncValidator!==null?n.setAsyncValidators(ke$4(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();J$5(t._rawValidators,r),J$5(t._rawAsyncValidators,r);}function Q$5(n,t){let e=false;if(n!==null){if(t.validator!==null){let r=it$3(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=true,n.setValidators(s));}}if(t.asyncValidator!==null){let r=rt$2(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=true,n.setAsyncValidators(s));}}}let i=()=>{};return J$5(t._rawValidators,i),J$5(t._rawAsyncValidators,i),e}function kt$1(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=true,n._pendingDirty=true,n.updateOn==="change"&&dt$2(n,t);});}function Tt$2(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=true,n.updateOn==="blur"&&n._pendingChange&&dt$2(n,t),n.updateOn!=="submit"&&n.markAsTouched();});}function dt$2(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:false}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=false;}function jt$2(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i);};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e);});}function Bt$3(n,t){De$4(n,t);}function Gt$2(n,t){return Q$5(n,t)}function be$4(n,t){if(!n.hasOwnProperty("model"))return  false;let e=n.model;return e.isFirstChange()?true:!Object.is(t,e.currentValue)}function Ut$2(n){return Object.getPrototypeOf(n.constructor)===ft$3}function Ht$2(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=false);});}function Lt$1(n,t){if(!t)return null;let e,i,r;return t.forEach(s=>{s.constructor===We$3?e=s:Ut$2(s)?i=s:r=s;}),r||i||e||null}function Wt$2(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}var Ae$3={provide:Rt$2,useFactory:()=>{let n=D$l(f$9,{self:true});return {setParseErrors:t=>{n.setParseErrorSource(t);},set onReset(t){n.onReset=t;}}}},f$9=class f extends Z$3{_parent=null;name=null;valueAccessor=null;isCustomControlBased=false;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof C$5&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription?.add(this.resetSubscription));}isNativeFormElement=false;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=Lt$1(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,e,i){super(),this.injector=t,this.renderer=e,this.rawValueAccessors=i,this.injector?.get(st$b)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe();});}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(WV);if(!this.control||!t)return;let e=t.markForCheck.bind(t);this.subscription=new W$f,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof C$5&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator);}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>
9120||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=true,t.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:false}),this.control?.markAsDirty(),this.viewToModelUpdate(r);}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched();}),this.customControlBindings={},this.isNativeFormElement=Et$2(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof lt$3));}ngControlUpdate(t,e){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,t.setCustomControlModelInput(i.value)),this.bindControlProperty(t,r,"touched",i.touched),this.bindControlProperty(t,r,"dirty",i.dirty),this.bindControlProperty(t,r,"valid",i.valid),this.bindControlProperty(t,r,"invalid",i.invalid),this.bindControlProperty(t,r,"pending",i.pending),this.bindControlProperty(t,r,"disabled",i.disabled),this.shouldBindRequired&&this.bindControlProperty(t,r,"required",this.isRequired);let s=i.errors;if(r.errors!==s){r.errors=s;let a=this._convertErrors(s);t.setInputOnDirectives("errors",a);}}get isRequired(){return (this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??false}get shouldBindRequired(){return  true}bindControlProperty(t,e,i,r){if(e[i]===r)return;e[i]=r;let s=t.setInputOnDirectives(i,r);this.isNativeFormElement&&!s&&(i==="disabled"||i==="required")&&this.renderer&&Ft$1(this.renderer,t.nativeElement,i,r);}_convertErrors(t){if(t===null)return [];let e=this.control;return Object.entries(t).map(([i,r])=>new ge$4({context:r,kind:i,control:e}))}setParseErrorSource(t){if(t===void 0)return;let e=null,i=Pb(()=>{let r=t();return r.length===0?null:r.reduce((s,a)=>(s[a.kind]=a,s),{})});this.parseErrorsValidator=(()=>e).bind(this),ef$2(()=>{e=i(),this.control?.updateValueAndValidity({emitEvent:false});},{injector:this.injector});}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:false}));}},ee$4=class ee{_cd;constructor(t){this._cd=t;}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return !!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return !!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return !!this._cd?.control?.invalid}get isPending(){return !!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var bn$1=(()=>{class n extends ee$4{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(Jr$4(f$9,2))};static \u0275dir=dw({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Pg$1("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending);},standalone:false,features:[sg$1]})}return n})(),An=(()=>{class n extends ee$4{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(Jr$4(y$1,10))};static \u0275dir=dw({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&Pg$1("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted);},standalone:false,features:[sg$1]})}return n})(),T$3=class T extends S$3{constructor(t,e,i){super(ye$4(e),Ce$5(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;registerControl(t,e){let i=this._find(t);return i||(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}
912){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}removeControl(t,e={}){let i=this._find(t);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(t,e,i={}){let r=this._find(t);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}contains(t){return this._find(t)?.enabled===true}setValue(t,e={}){Fb(()=>{ot$3(this,true,t),Object.keys(t).forEach(i=>{st$4(this,true,i),this.controls[i].setValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this._find(i);r&&r.patchValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,E$9(D$m({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new C$5(this));}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(false,(e,i)=>i._syncPendingControls()?true:e);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e);});}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return  true;return  false}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s);}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return  false;return Object.keys(this.controls).length>0||this.disabled}_find(t){return at$3(this.controls,t)?this.controls[t]:null}};var Mn=T$3;var pe$4=class pe extends T$3{};function Be$4(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}function Ge$3(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var N$5=class N extends S$3{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=false;constructor(t=null,e,i){super(ye$4(e),Ce$5(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator}),ie$5(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ge$3(t)?this.defaultValue=t.value:this.defaultValue=t);}setValue(t,e={}){Fb(()=>{this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==false&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==false)),this.updateValueAndValidity(e);});}patchValue(t,e={}){this.setValue(t,e);}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=false,e?.emitEvent!==false&&this._events.next(new C$5(this));}_updateValue(){}_anyControls(t){return  false}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t);}_unregisterOnChange(t){Be$4(this._onChange,t);}registerOnDisabledChange(t){this._onDisabledChange.push(t);}_unregisterOnDisabledChange(t){Be$4(this._onDisabledChange,t);}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:true,emitModelToViewChange:false}),true):false}_applyFormState(t){Ge$3(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:true,emitEvent:false}):this.enable({onlySelf:true,emitEvent:false}
912)):this.value=this._pendingValue=t;}},Fn=N$5,qt$3=n=>n instanceof N$5;var $t$2={provide:f$9,useExisting:Uo$3(()=>zt$2)},Ue$3=Promise.resolve(),zt$2=(()=>{class n extends f$9{_changeDetectorRef;callSetDisabledState;control=new N$5;static ngAcceptInputType_isDisabled;_registered=false;viewModel;name="";isDisabled;model;options;update=new tt$b;constructor(e,i,r,s,a,I,O,ht){super(O,ht,s),this._changeDetectorRef=a,this.callSetDisabledState=I,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),be$4(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective?.removeControl(this);}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,false);}get shouldBindRequired(){return  false}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=true;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return !this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Y$5(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:false});}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Y$5(this.control,this,e));}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){Ue$3.then(()=>{this.control.setValue(e,{emitViewToModelChange:false}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&QV(i);Ue$3.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?ut$4(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(Jr$4(y$1,9),Jr$4(V$4,10),Jr$4(ne$3,10),Jr$4(te$6,10),Jr$4(WV,8),Jr$4(j$4,8),Jr$4(ye$7,8),Jr$4(fD,8))};static \u0275dir=dw({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:false,features:[yb([$t$2,Ae$3]),sg$1,Ev$1,gw(null)]})}return n})();var wn$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=dw({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:false})}return n})();var me$5=class me extends S$3{constructor(t,e,i){super(ye$4(e),Ce$5(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i);}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent});}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateV
912alueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length}setValue(t,e={}){Fb(()=>{ot$3(this,false,t),t.forEach((i,r)=>{st$4(this,false,r),this.at(r).setValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],E$9(D$m({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new C$5(this));}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}));}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?true:e,false);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i);});}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value);}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t));}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return  false;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);}_find(t){return this.at(t)??null}};var Zt$3=(()=>{class n extends y$1{callSetDisabledState;get submitted(){return Fb(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e);}_submitted=Pb(()=>this._submittedReactive());_submittedReactive=fi$4(false);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){this.onChanges(e);}ngOnDestroy(){this.onDestroy();}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}onDestroy(){this.form&&(Q$5(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this}get path(){return []}addControl(e){let i=this.form.get(e.path);return e._setupWithForm(i,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:false}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}
912removeControl(e){K$4(e.control||null,e,false),Wt$2(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}updateModel(e,i){this.form.get(e.path).setValue(i);}onReset(){this.resetForm();}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(false);}onSubmit(e){return this.submitted=true,Ht$2(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new fe$3(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(K$4(i||null,e),qt$3(r)&&e._setupWithForm(r,this.callSetDisabledState));}),this.form._updateTreeValidity({emitEvent:false});}_setUpFormContainer(e){let i=this.form.get(e.path);Bt$3(i,e),i.updateValueAndValidity({emitEvent:false});}_cleanUpFormContainer(e){let i=this.form?.get(e.path);i&&Gt$2(i,e)&&i.updateValueAndValidity({emitEvent:false});}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{});}_updateValidators(){De$4(this.form,this),this._oldForm&&Q$5(this._oldForm,this);}_checkFormPresent(){this.form;}static \u0275fac=function(i){return new(i||n)(Jr$4(V$4,10),Jr$4(ne$3,10),Jr$4(j$4,8))};static \u0275dir=dw({type:n,features:[sg$1,Ev$1]})}return n})();var Me$3=new M$g(""),Xt$3={provide:f$9,useExisting:Uo$3(()=>Yt$2)},Yt$2=(()=>{class n extends f$9{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new tt$b;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,I,O){super(O,I,r),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&(K$4(i,this,false),this.removeParseErrorsValidator(i)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Y$5(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:false});}be$4(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.form&&K$4(this.form,this,false);}get path(){return []}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_isControlChanged(e){return e.hasOwnProperty("form")}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,true);}static \u0275fac=function(i){return new(i||n)(Jr$4(V$4,10),Jr$4(ne$3,10),Jr$4(te$6,10),Jr$4(Me$3,8),Jr$4(j$4,8),Jr$4(fD,8),Jr$4(ye$7,8))};static \u0275dir=dw({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:false,features:[yb([Xt$3,Ae$3]),sg$1,Ev$1,gw(null)]})}return n})();var Kt$3={provide:f$9,useExisting:Uo$3(()=>Jt$3)},Jt$3=(()=>{class n extends f$9{_ngModelWarningConfig;_added=false;viewModel;control;name=null;set isDisabled(e){}model;update=new tt$b;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,I,O){super(O,I,s),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_setupWithForm(e,i){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Y$5(e,this,i));}ngOnChanges(e){this._added||this._setUpControl(),be$4(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective?.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return ut$4(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=true;}\u0275ngControlCreate(e){super.ngControlCreate(e);}
912\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,true));}static \u0275fac=function(i){return new(i||n)(Jr$4(y$1,13),Jr$4(V$4,10),Jr$4(ne$3,10),Jr$4(te$6,10),Jr$4(Me$3,8),Jr$4(fD,8),Jr$4(ye$7,8))};static \u0275dir=dw({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:false,features:[yb([Kt$3,Ae$3]),sg$1,Ev$1,gw(null)]})}return n})();var Qt$3={provide:y$1,useExisting:Uo$3(()=>en$1)},en$1=(()=>{class n extends Zt$3{form=null;ngSubmit=new tt$b;get control(){return this.form}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Vv$1(n)))(r||n)}})();static \u0275dir=dw({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&_g$1("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[yb([Qt$3]),sg$1]})}return n})();var ct$3=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=cw({type:n});static \u0275inj=dd$2({})}return n})();function He$3(n){return !!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Nn=(()=>{class n{useNonNullable=false;get nonNullable(){let e=new n;return e.useNonNullable=true,e}group(e,i=null){let r=this._reduceControls(e),s={};return He$3(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new T$3(r,s)}record(e,i=null){let r=this._reduceControls(e);return new pe$4(r,i)}control(e,i,r){let s={};return this.useNonNullable?(He$3(i)?s=i:(s.validators=i,s.asyncValidators=r),new N$5(e,E$9(D$m({},s),{nonNullable:true}))):new N$5(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new me$5(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r]);}),i}_createControl(e){if(e instanceof N$5)return e;if(e instanceof S$3)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ct$9({token:n,factory:n.\u0275fac})}return n})();var Sn$1=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:j$4,useValue:e.callSetDisabledState??re$5}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=cw({type:n});static \u0275inj=dd$2({imports:[ct$3]})}return n})(),In=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:Me$3,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:j$4,useValue:e.callSetDisabledState??re$5}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=cw({type:n});static \u0275inj=dd$2({imports:[ct$3]})}return n})();var s$h=class t{constructor(e){this.elementRef=e;}onKeyDown(e){e.keyCode===this.hotkeyClick&&(this.elementRef.nativeElement.click(),e.preventDefault(),e.stopImmediatePropagation());}static{this.\u0275fac=function(i){return new(i||t)(Jr$4(Gr$4))};}static{this.\u0275dir=dw({type:t,selectors:[["","hotkey-click",""]],hostBindings:function(i,k){i&1&&_g$1("keydown",function(y){return k.onKeyDown(y)},VI);},inputs:{hotkeyClick:[0,"hotkey-click","hotkeyClick"]}});}};var Pe$3=class Pe{constructor(){this.urlChange=new de$c;}};var wt$2=(n=>(n.GiftCodeInvalid="gift_code_invalid",n.NoMoreRegistrationsAvailable="no_more_registrations_available",n.GiftCodeExpired="gift_code_expired",n))(wt$2||{});function At$1(t,i){if(t&1&&(Zi$3(0,"div"),Eg$1(1,"div",3),bb(2,"translate"),Eg$1(3,"div",4),bb(4,"translate"),kl$2()),t&2){let e=i.$implicit;AE(),Ig$1("customInnerHtml",_b(2,2,"promo-code."+e+"_header")),AE(2),Ig$1("customInnerHtml",_b(4,4,"promo-code."+e+"_text"));}}var Se$5=class t{constructor(){this.data={keys:[]};this.closeDialog=new tt$b;}ngOnInit(){(!this.data.keys||this.data.keys.length===0)&&(this.data={keys:["gift_code_invalid"]});}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["warning-promo-dialog"]],inputs:{data:"data"},outputs:{closeDialog:"closeDialog"},decls:8,vars:4,consts:[[1,"position-icon-close","g-icon-close",3,"click"],[1,"m-t-xl","text-center"],[1,"g-btn-select",3,"click","hotkey-click"],[1,"headline",3,"customInnerHtml"],[1,"font-size-16","line-height-20","font-normal","m-t",3,"customInnerHtml"]],template:function(e,n){e&1&&(Zi$3(0,"div",0),_g$1("click",function(){return n.closeDialog.emit()}),kl$2(),hT(1,At$1,5,6,"div",null,pT),Zi$3(3,"div",1)(4,"button",2),_g$1("click",function(){return n.closeDialog.emit()}),Zi$3(5,"span"),ib(6),bb(7,"translate"),kl$2()()()),e&2&&(AE(),gT(n.data.keys),AE(3),Ig$1("hotkey-click",13),AE(2),Ug$1(_b(7,2,"buttons.got_it")));},dependencies:[fe$8,s$h,r$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
912--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{box-shadow:var(--shadow-l)}[_nghost-%COMP%]:not(.panel-mode){border-radius:8px;overflow:hidden}@media(max-width:0){[_nghost-%COMP%]:not(.panel-mode){border-radius:0;overflow:initial}}[_nghost-%COMP%]{position:relative;background:var(--white);display:block;text-align:center;padding:64px 84px 54px}@media(max-width:767px){[_nghost-%COMP%]{text-align:left;padding:24px}}@media(max-width:767px){[_nghost-%COMP%]   .position-icon-close[_ngcontent-%COMP%]{right:9px;top:9px}}[_nghost-%COMP%]   .headline[_ngcontent-%COMP%]{font-size:34px;font-weight:400;line-height:40px}@media(max-width:767px){[_nghost-%COMP%]   .headline[_ngcontent-%COMP%]{padding-right:20px}}"]});}};var Me$2=class t{constructor(){this.amDialogService=D$l(y$5);}open(i){let e=this.amDialogService.open(Se$5,{containerClass:"",backdropClass:"am-dialog-backdrop-center",dialogInClass:"am-dialog-in",dialogOutClass:"am-dialog-out",changeUrlStrategy:new Pe$3});e.instance.data=i,e.backdropClick().subscribe(()=>{e.dispose();}),e.instance.closeDialog.subscribe(()=>{e.dispose();});}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};var Y$4={name:"auth.google",value:"google"},K$3={name:"auth.facebook",value:"facebook"},Q$4={name:"auth.wechat",value:"wechat"},J$4={name:"auth.kakaotalk",value:"kakaotalk"},R$5={name:"auth.email",value:"email"},Et$1={main:[R$5],less:[]},We$2={en:{main:[Y$4,R$5],less:[K$3,Q$4,J$4]},br:{main:[Y$4,R$5],less:[K$3,Q$4,J$4]},ko:{main:[Y$4,J$4],less:[R$5,K$3,Q$4]},jp:{main:[Y$4,R$5],less:[K$3,Q$4,J$4]},cn:{main:[R$5,Q$4],less:[Y$4,K$3,J$4]},es:{main:[Y$4,R$5],less:[K$3,Q$4,J$4]}};var re$4=class t{static getProviders(i){return We$2[i.id]||We$2.en}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};var De$3=class t{constructor(){this.backClick=new tt$b;}ngOnInit(){this.currentUrl=window.location.href;}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["wechat-mobile-instruction"]],outputs:{backClick:"backClick"},decls:24,vars:14,consts:[[1,"d-flex","width-100","flex-center","m-b-md","m-t-sm"],["src","/assets/angular2/img/login/wechat.svg",1,""],[1,"step-container"],[1,"step-info","flex-a-c"],[1,"d-flex","flex-a-c","flex-wrap"],[1,"text-item","nowrap"],[1,"m-l-sm"],[1,"m-l-sm",3,"url"],[1,"pos-relative","width-100","d-flex","flex-j-e","m-b",2,"margin-top","40px"],[1,"step-info","step-2"],[1,"text-item"],["src","/assets/angular2/img/login/wechat-info-img.png","alt","",1,"",2,"max-width","100%","width","80%"],[1,"step-info"],[1,"text-blue-hovered","wechat-select-another","text-center",3,"click"]],template:function(e,n){e&1&&(Zi$3(0,"div",0),Eg$1(1,"img",1),kl$2(),Zi$3(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),ib(6),bb(7,"translate"),kl$2(),Zi$3(8,"b",6),ib(9),kl$2()(),Eg$1(10,"link-icon",7),kl$2(),Zi$3(11,"div",8)(12,"div",9)(13,"span",10),ib(14),bb(15,"translate"),kl$2()(),Eg$1(16,"img",11),kl$2(),Zi$3(17,"div",12)(18,"span",10),ib(19),bb(20,"translate"),kl$2()()(),Zi$3(21,"div",13),_g$1("click",function(){return n.backClick.emit()}),ib(22),bb(23,"translate"),kl$2()),e&2&&(AE(6),Ug$1(_b(7,6,"auth.wechat_text_1")),AE(3),Ug$1(n.currentUrl),AE(),Ig$1("url",n.currentUrl),AE(4),Ug$1(_b(15,8,"auth.wechat_text_2")),AE(5),Ug$1(_b(20,10,"auth.wechat_text_3")),AE(3),jl$2(" ",_b(23,12,"auth.wechat_select_another_login"),`
913`));},dependencies:[fe$8,j$6,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
913--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:block;max-width:500px}[_nghost-%COMP%]   .step-info[_ngcontent-%COMP%]{z-index:1;width:fit-content;display:flex;background:var(--white);box-shadow:0 8px 24px #28215826;border-radius:10px;padding:4px 15px;font-size:14px;line-height:24px;margin-bottom:25px;margin-left:15px}[_nghost-%COMP%]   .step-info[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{font-weight:700;margin-right:10px}[_nghost-%COMP%]   .step-container[_ngcontent-%COMP%]{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--grey-40)}[_nghost-%COMP%]   .wechat-login-url[_ngcontent-%COMP%]{max-width:490px;width:100%;background-color:var(--grey-30);display:flex;justify-content:center;align-items:center;word-break:break-all;text-align:center;line-height:16px;padding:20px 15px;border-radius:10px;margin-top:20px}@media(max-width:576px){[_nghost-%COMP%]   .wechat-login-url[_ngcontent-%COMP%]{border-radius:0;max-width:unset;width:calc(100% + 30px);margin:20px -15px 0}}[_nghost-%COMP%]   .wechat-select-another[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;line-height:20px}[_nghost-%COMP%]   .wechat-img[_ngcontent-%COMP%]{max-width:150px}[_nghost-%COMP%]   .wechat-img[_ngcontent-%COMP%]:first-child{margin-right:10px}[_nghost-%COMP%]   .text-item[_ngcontent-%COMP%]{font-size:16px;line-height:20px}[_nghost-%COMP%]   .step-2[_ngcontent-%COMP%]{margin-bottom:0;margin-right:15px;position:absolute;left:0;top:-10px}@media(max-width:400px){[_nghost-%COMP%]   .step-2[_ngcontent-%COMP%]{top:-15px}}"]});}};function Ot$1(t,i){t&1&&Dg$1(0,"span",2);}var Ae$2=class t{constructor(){this.isNew=VV(false);this.textMore="advancedSearch.more_filters";this.textLess="advancedSearch.less_filters";this.lines=false;this.changeShowMore=new tt$b;}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["show-more"]],inputs:{showMore:"showMore",isNew:[1,"isNew"],textMore:"textMore",textLess:"textLess",lines:"lines"},outputs:{changeShowMore:"changeShowMore"},decls:7,vars:12,consts:[[1,"show-more-container",3,"click"],[1,"g-btn-cancel","pos-relative"],[1,"g-has-new-feature-icon","table-col-selector-new-icon"]],template:function(e,n){e&1&&(Ol$2(0,"div",0),Mg$1("click",function(){return n.changeShowMore.emit(!n.showMore)}),Dg$1(1,"i"),Ol$2(2,"button",1),ib(3),bb(4,"translate"),uT(5,Ot$1,1,0,"span",2),Ll$2(),Dg$1(6,"i"),Ll$2()),e&2&&(Pg$1("isShow",n.showMore),AE(),QT(n.lines?"line-icon":"arrow-icon"),AE(),Pg$1("with-lines",n.lines),AE(),jl$2(" ",_b(4,10,n.showMore?n.textLess:n.textMore)," "),AE(2),dT(n.isNew()&&!n.showMore?5:-1),AE(),QT(n.lines?"line-icon":"arrow-icon"));},dependencies:[fe$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
913--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]   .show-more-container[_ngcontent-%COMP%]{display:flex;cursor:pointer;justify-content:space-between;align-items:center}[_nghost-%COMP%]   .table-col-selector-new-icon[_ngcontent-%COMP%]{top:0;right:4px}[_nghost-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{background-image:url(/assets/angular2/img/icons/white-arrow.svg);display:block;width:35px;height:22px}[_nghost-%COMP%]   .line-icon[_ngcontent-%COMP%]{height:1px;flex:1;background:var(--grey-40)}[_nghost-%COMP%]   .with-lines[_ngcontent-%COMP%]{margin:0 8px}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%]   .isShow[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"]});}};function Bt$2(t,i){if(t&1&&(Zi$3(0,"div",1),Eg$1(1,"spinner",2),kl$2()),t&2){let e=NT();AE(),Ig$1("diameter",21)("color",e.SpinnerColorEnum.black);}}var X$5=class t{constructor(){this.disabled=VV(false);this.loading=VV.required();this.text=VV.required();this.SpinnerColorEnum=y$2;}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["btn-spinner"]],inputs:{disabled:[1,"disabled"],loading:[1,"loading"],text:[1,"text"]},decls:4,vars:6,consts:[[1,"g-yellow-btn"],[1,"spinner-container"],[3,"diameter","color"]],template:function(e,n){e&1&&(Zi$3(0,"button",0),ib(1),bb(2,"translate"),kl$2(),uT(3,Bt$2,2,2,"div",1)),e&2&&(Pg$1("disabled",n.disabled()),AE(),jl$2(" ",_b(2,4,n.text()),`
914`),AE(2),dT(n.loading()?3:-1));},dependencies:[fe$8,b$5,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
914--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--yellow-50);position:relative;width:fit-content}[_nghost-%COMP%]:has(.disabled){background:var(--grey-30)}[_nghost-%COMP%]   .spinner-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;position:absolute;border-radius:8px;background:var(--yellow-50)}"]});}};function Pt$1(t){return i=>{if(!i.value||t.length===0)return null;for(let e of t)if(RegExp(`@${e}$`).test(i.value.toLowerCase()))return null;return {emailDomainAllowed:true}}}var ke$3=class t{constructor(i,e,n){this.document=i;this.rendererFactory=e;this.localStorageService=n;this.excludePages=["/free-top"];this.chatScriptElement=null;this.renderer2=e.createRenderer(null,null);}static{this.TURNSTILE_READY_TIMEOUT_MS=15e3;}static{this.TURNSTILE_POLL_INTERVAL_MS=100;}isScriptsAllowed(){let i=this.localStorageService.get(We$7.DISABLED_3PARTY_SCRIPT_KEY);return !this.excludePages.includes(window.location.pathname)&&!i}initScrips(){this.isScriptsAllowed()&&this.initCloudflareTurnstileScript();}initChatScript(){if(!this.isScriptsAllowed()||this.chatScriptElement)return;let i=this.renderer2.createElement("script");i.id="ze-snippet",i.src="https://static.zdassets.com/ekr/snippet.js?key=4d8ba1fe-a62b-412c-9aa2-72bd40005bf0",i.async=true,this.renderer2.appendChild(this.document.body,i),this.chatScriptElement=i;}removeChatScript(){this.chatScriptElement&&(this.document.querySelector('script[src*="zdassets.com"]')?.remove(),this.renderer2.removeChild(this.document.body,this.chatScriptElement),this.chatScriptElement=null);}initCloudflareTurnstileScript(){let i=this.renderer2.createElement("script");i.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",i.async=true,this.renderer2.appendChild(this.document.body,i);}whenTurnstileReady(){let i=this.getTurnstile();return i?Promise.resolve(i):new Promise((e,n)=>{let c=Date.now(),v=()=>{let N=this.getTurnstile();N?e(N):Date.now()-c>=t.TURNSTILE_READY_TIMEOUT_MS?n(new Error("Cloudflare Turnstile did not become available in time")):window.setTimeout(v,t.TURNSTILE_POLL_INTERVAL_MS);};v();})}getTurnstile(){return window.turnstile}static{this.\u0275fac=function(e){return new(e||t)(me$b(jn$2),me$b(Hr$4),me$b(xt$5))};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};var It$2=["captcha"],Tt$1=t=>({email:t});function Vt$1(t,i){t&1&&(Zi$3(0,"div",7),ib(1),bb(2,"translate"),kl$2()),t&2&&(AE(),Ug$1(_b(2,1,"account.email_invalid")));}function Rt$1(t,i){if(t&1){let e=DT();Zi$3(0,"form",2)(1,"div")(2,"div",5),Eg$1(3,"input",6),bb(4,"translate"),vD(),uT(5,Vt$1,3,3,"div",7),kl$2()(),Eg$1(6,"div",8,0),Zi$3(8,"btn-spinner",9),bb(9,"async"),_g$1("click",function(){Rd$2(e);let c=NT();return kd$2(c.handleSubmitClick())}),kl$2()();}if(t&2){let e=NT();Ig$1("formGroup",e.form),AE(3),Ig$1("placeholder",_b(4,6,"account.email")),ED(),AE(2),dT(e.form.controls.email?.errors?.pattern||e.form.controls.email?.errors?.emailDomainAllowed?5:-1),AE(3),Ig$1("disabled",e.form.invalid)("text","buttons.submit")("loading",_b(9,8,e.loading));}}function Nt$1(t,i){if(t&1&&(Zi$3(0,"div",3)(1,"div",10),ib(2),bb(3,"translate"),kl$2(),Zi$3(4,"div",11),ib(5),bb(6,"translate"),kl$2()()),t&2){let e=NT();AE(2),jl$2(" ",Mb(3,2,"auth.login_email_sent_title",Ib(7,Tt$1,e.email.getValue()))," "),AE(3),jl$2(" ",_b(6,5,"auth.login_email_sent_text")," ");}}function jt$1(t,i){if(t&1){let e=DT();Zi$3(0,"div",12),_g$1("click",function(){Rd$2(e);let c=NT();return kd$2(c.backClick.emit())}),ib(1),bb(2,"translate"),kl$2();}t&2&&(AE(),jl$2(" ",_b(2,1,"auth.wechat_select_another_login")," "));}var Oe$3=class t{constructor(){this.emailDomainAllowed=[];this.showButtonAnotherLogin=true;this.backClick=new tt$b;this.emailSubmit=new tt$b;this.localStorageService=D$l(xt$5);this.rootConfigService=D$l(O$a);this.scriptService=D$l(ke$3);this.email=new rr$4("");this.loading=new rr$4(false);this.subscription=new W$f;this.destroyed=false;}ngOnInit(){this.initForm();}ngAfterViewInit(){if(this.rootConfigService.config.turnstileDisable)return;let i=this.localStorageService.get(We$7.TURNSTILE_CUSTOM_SITEKEY)??this.rootConfigService.config.turnstileSitekey;this.scriptService.whenTurnstileReady().then(e=>{this.destroyed||e.render(this.captchaElem.nativeElement,{sitekey:i,size:"flexible",theme:"light",callback:n=>{this.form.controls.captchaResponse.setValue(n);}});}).catch(e=>{K$7()?.captureException(e);});}
914initForm(){let i={email:new N$5("",[ce$5.required,ce$5.pattern(n$9.getEmail()),Pt$1(this.emailDomainAllowed)])};this.rootConfigService.config.turnstileDisable||(i.captchaResponse=new N$5("",[ce$5.required])),this.form=new T$3(i),this.subscription.add(this.form.get("email").valueChanges.subscribe(e=>{this.email.next(e);})),this.subscription.add(this.loginEmailSuccess.subscribe(()=>{this.loading.next(false);})),this.form.get("email").updateValueAndValidity();}handleSubmitClick(){if(this.form.invalid)return;let i=this.form.get("email").value,e=this.form.get("captchaResponse")?.value;this.loading.next(true),this.emailSubmit.emit({email:i,captchaResponse:e});}ngOnDestroy(){this.destroyed=true,this.subscription.unsubscribe();}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["email-login"]],viewQuery:function(e,n){if(e&1&&xg$1(It$2,5),e&2){let c;OT(c=LT())&&(n.captchaElem=c.first);}},inputs:{loginEmailSuccess:"loginEmailSuccess",emailDomainAllowed:"emailDomainAllowed",showButtonAnotherLogin:"showButtonAnotherLogin"},outputs:{backClick:"backClick",emailSubmit:"emailSubmit"},decls:5,vars:4,consts:[["captcha",""],[1,"step-container"],[3,"formGroup"],[1,"email-sent"],[1,"text-blue-hovered","select-another-login-method","text-center"],[1,"email-input"],["type","text","autocomplete","off","formControlName","email",1,"g-search-input",3,"placeholder"],[1,"g-search-input-error"],[1,"captcha"],[3,"click","disabled","text","loading"],[1,"email-sent-title"],[1,"email-sent-text"],[1,"text-blue-hovered","select-another-login-method","text-center",3,"click"]],template:function(e,n){e&1&&(Zi$3(0,"div",1),uT(1,Rt$1,10,10,"form",2),bb(2,"async"),Rl$2(3,Nt$1,7,9,"div",3),kl$2(),uT(4,jt$1,3,3,"div",4)),e&2&&(AE(),dT(_b(2,2,n.loginEmailSuccess)?3:1),AE(3),dT(n.showButtonAnotherLogin?4:-1));},dependencies:[An$3,fe$8,In,wn$1,We$3,bn$1,An,en$1,Jt$3,X$5,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
914--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:block;max-width:500px}[_nghost-%COMP%]   .step-info[_ngcontent-%COMP%]{z-index:1;width:fit-content;display:flex;background:var(--white);box-shadow:0 8px 24px #28215826;border-radius:10px;padding:4px 15px;font-size:14px;line-height:24px;margin-bottom:25px;margin-left:15px}[_nghost-%COMP%]   .step-info[_ngcontent-%COMP%]   .count[_ngcontent-%COMP%]{font-weight:700;margin-right:10px}[_nghost-%COMP%]   .step-container[_ngcontent-%COMP%]{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--grey-40)}[_nghost-%COMP%]   .email-input[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   btn-spinner[_ngcontent-%COMP%]{margin:16px auto auto}[_nghost-%COMP%]   .email-sent[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]   .email-sent-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;line-height:22px;margin-bottom:4px}[_nghost-%COMP%]   .email-sent-text[_ngcontent-%COMP%]{font-size:16px;line-height:24px}[_nghost-%COMP%]   .select-another-login-method[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;line-height:20px}[_nghost-%COMP%]   .captcha[_ngcontent-%COMP%]{margin-top:20px;max-height:65px}"]});}};var Le$2=(t,i)=>({count:t,countDay:i}),Ut$1=t=>({shake:t}),Mt$1=(t,i)=>({terms_of_service_link:t,privacy_policy_link:i});function Wt$1(t,i){t&1&&(Zi$3(0,"div"),Eg$1(1,"img",6),kl$2());}function Ht$1(t,i){t&1&&(Zi$3(0,"div",2),Eg$1(1,"div",7),bb(2,"translate"),kl$2()),t&2&&(AE(),Ig$1("customInnerHtml",_b(2,1,"promo-code.just_one_step_to_accept_invitation")));}function zt$1(t,i){t&1&&Eg$1(0,"img",12);}function Gt$1(t,i){t&1&&Eg$1(0,"img",13);}function qt$2(t,i){if(t&1&&(Zi$3(0,"div",8),uT(1,zt$1,1,0,"img",12),uT(2,Gt$1,1,0,"img",13),kl$2()),t&2){let e=NT(2);AE(),dT(e.hasPromoCode?-1:1),AE(),dT(e.hasPromoCode?2:-1);}}function $t$1(t,i){t&1&&(Zi$3(0,"div",9),ib(1),bb(2,"translate"),kl$2()),t&2&&(AE(),Ug$1(_b(2,1,"auth.login")));}function Yt$1(t,i){t&1&&(Zi$3(0,"div",10),ib(1),bb(2,"translate"),kl$2()),t&2&&(AE(),Ug$1(_b(2,1,"auth.unavailable")));}function Kt$2(t,i){if(t&1&&(Zi$3(0,"span"),ib(1),bb(2,"translateChoice"),kl$2()),t&2){let e=NT(3);AE(),jl$2(" ",Mb(2,1,"promo-code.free_premium",Eb(4,Le$2,e.promoCodeService.getDays(),e.promoCodeService.getDays()))," ");}}function Qt$2(t,i){if(t&1&&(Zi$3(0,"span"),ib(1),bb(2,"translateChoice"),kl$2()),t&2){let e=NT(3);AE(),jl$2(" ",Mb(2,1,"promo-code.free_premium_hours",Eb(4,Le$2,e.promoCodeService.getHours(),e.promoCodeService.getHours()))," ");}}function Jt$2(t,i){if(t&1&&(Zi$3(0,"div",9),uT(1,Kt$2,3,7,"span"),uT(2,Qt$2,3,7,"span"),kl$2()),t&2){let e=NT(2);AE(),dT(e.promoCodeService.getDays()>0?1:-1),AE(),dT(e.promoCodeService.getDays()===0&&e.promoCodeService.getHours()>0?2:-1);}}function Xt$2(t,i){if(t&1&&(Zi$3(0,"div",9),ib(1),kl$2()),t&2){let e=NT(2);AE(),Ug$1(e.text);}}function Zt$2(t,i){if(t&1&&(Zi$3(0,"span"),ib(1),bb(2,"translateChoice"),kl$2()),t&2){let e=NT(4);AE(),jl$2(" ",Mb(2,1,"promo-code.free_premium",Eb(4,Le$2,e.promoCodeService.getDays(),e.promoCodeService.getDays()))," ");}}function ei$3(t,i){if(t&1&&(Zi$3(0,"span"),ib(1),bb(2,"translateChoice"),kl$2()),t&2){let e=NT(4);AE(),jl$2(" ",Mb(2,1,"promo-code.free_premium_hours",Eb(4,Le$2,e.promoCodeService.getHours(),e.promoCodeService.getHours()))," ");}}function ti$3(t,i){if(t&1&&(Zi$3(0,"span"),uT(1,Zt$2,3,7,"span"),uT(2,ei$3,3,7,"span"),Eg$1(3,"br"),kl$2()),t&2){let e=NT(3);AE(),dT(e.promoCodeService.getDays()>0?1:-1),AE(),dT(e.promoCodeService.getDays()===0&&e.promoCodeService.getHours()>0?2:-1);}}function ii$3(t,i){if(t&1&&(Zi$3(0,"div",11),uT(1,ti$3,4,2,"span"),ib(2),bb(3,"translate"),bb(4,"translate"),kl$2()),t&2){let e=NT(2);AE(),dT(e.text&&e.hasPromoCode?1:-1),AE(),qg$1(" ",_b(3,3,"auth.login_description_1")," ",_b(4,5,"auth.login_description_2")," ");}}function ni$2(t,i){if(t&1&&(Zi$3(0,"div",3),uT(1,qt$2,3,2,"div",8),uT(2,$t$1,3,3,"div",9),uT(3,Yt$1,3,3,"div",10),uT(4,Jt$2,3,2,"div",9),uT(5,Xt$2,2,1,"div",9),uT(6,ii$3,5,7,"div",11),kl$2()),t&2){let e=NT();AE(),dT(!e.isContractInvite&&!e.isMobileFacebook?1:-1),AE(),dT(!e.text&&!e.hasPromoCode&&!e.isMobileFacebook?2:-1),AE(),dT(e.isMobileFacebook?3:-1),AE(),dT(!e.text&&e.hasPromoCode?4:-1),AE(),dT(e.text?5:-1),AE(),dT(e.isMobileFacebook?-1:6);}}function oi$2(t,i){if(t&1){let e=DT();Zi$3(0,"div",16)(1,"am-checkbox",20),_g$1("onChange",function(){Rd$2(e);let c=NT(3);return kd$2(c.clickPrivacyPolicy())}),Zi$3(2,"span",21),bb(3,"translate"),_g$1("click",function(c){Rd$2(e);let v=NT(3);return kd$2(v.onTermsClick(c))}),kl$2(),Zi$3(4,"span",22),bb(5,"translate"),_g$1("click",function(c){Rd$2(e);let v=NT(3);return kd$2(v.onTermsClick(c))}),kl$2()()();}if(t&2){let e=NT(3);Ig$1("ngClass",Ib(11,Ut$1,e.shakePolicyBlock)),AE(),Ig$1("value",e.checkPrivacyPolicy)("invalid",e.errorPrivacyPolicy),AE(),Ig$1("customInnerHtml",Mb(3,5,"requestDemo.terms_and_pp",Eb(13,Mt$1,e.TermsOfServicePathConstant,e.PrivacyPolicyPathConstant))),AE(2),Ig$1("customInnerHtml",Mb(5,8,"requestDemo.terms_and_pp_mobile",Eb(16,Mt$1,e.TermsOfServicePathConstant,e.PrivacyPolicyPathConstant)));}}function ri$3(t,i){if(t&1){let e=DT();Zi$3(0,"div",23),_g$1("click",function(){let c=Rd$2(e).$implicit,v=NT(3);return kd$2(v.login(c.value))}),Zi$3(1,"span",24)(2,"span",25),ib(3),bb(4,"translate"),kl$2()()();}if(t&2){let e=i.$implicit;QT(e.value),AE(3),Ug$1(_b(4,3,e.name));}}function ai$3(t,i){if(t&1){let e=DT();Zi$3(0,"div",23),_g$1("click",function(){let c=Rd$2(e).$implicit,v=NT(4);return kd$2(v.login(c.value))}),Zi$3(1,"span",24)(2,"span",25),ib(3),bb(4,"translate"),kl$2()()();}if(t&2){let e=i.$implicit;QT(e.value),AE(3),Ug$1(_b(4,3,e.name));}}function li$3(t,i){if(t&1&&(Zi$3(0,"div",18),Ni$3("g-anim-leave-auto-height"),Si$3("g-anim-enter-auto-height"),Zi$3(1,"div",26),hT(2,ai$3,5,5,"div",17,pT),kl$2()()),t&2){let e=NT(3);AE(2),gT(e.providers.less);}}function ci$3(t,i){if(t&1){let e=DT();Zi$3(0,"show-more",27),_g$1("changeShowMore",function(){Rd$2(e);let c=NT(3);return kd$2(c.clickToggleAsian())}),kl$2();}if(t&2){let e=NT(3);Ig$1("showMore",e.showMore)("textMore","buttons.show_more")("textLess","buttons.show_less")("lines",true);}}function si$3(t,i){if(t&1&&(Zi$3(0,"div",14),uT(1,oi$2,6,19,"div",16),hT(2,ri$3,5,5,"div",17,pT),uT(4,li$3,4,0,"div",18),uT(5,ci$3,1,4,"show-more",19),kl$2()),t&2){let e=NT(2);AE(),dT(e.hasPrivacyPolicy?-1:1),AE(),gT(e.providers.main),AE(2),dT(e.showMore?4:-1),AE(),dT(e.providers.less.length?5:-1);}}function gi$2(t,i){if(t&1){let e=DT();Zi$3(0,"div",15)(1,"wechat-mobile-instruction",28),_g$1("backClick",function(){Rd$2(e);let c=NT(2);return kd$2(c.mobileWechatLogin=false)}),kl$2()();}}function di$2(t,i){if(t&1){let e=DT();Zi$3(0,"div",15)(1,"email-login",29),_g$1("backClick",function(){Rd$2(e);let c=NT(2);return kd$2(c.emailLogin=false)})("emailSubmit",function(c){Rd$2(e);let v=NT(2);return kd$2(v.sendLoginEmail(c))}),kl$2()();}if(t&2){let e=NT(2);AE(),Ig$1("showButtonAnotherLogin",!(e.contractEmailDomainAllowed.length&&e.isContractInvite))("emailDomainAllowed",e.contractEmailDomainAllowed)("loginEmailSuccess",e.loginEmailSuccess);}}function mi$2(t,i){if(t&1&&(uT(0,si$3,6,3,"div",14),uT(1,gi$2,2,0,"div",15),uT(2,di$2,2,3,"div",15)),t&2){let e=NT();dT(!e.mobileWechatLogin&&!e.isMobileFacebook&&!e.emailLogin?0:-1),AE(),dT(e.mobileWechatLogin?1:-1),AE(),dT(e.emailLogin?2:-1);}}function pi$2(t,i){t&1&&(Zi$3(0,"div",5),Eg$1(1,"spinner",30),kl$2()),t&2&&(AE(),Ig$1("diameter",28));}var Z$2="login",Be$3=class t{constructor(){this.isLoading=new rr$4(false);this.loginSuccess=new tt$b;this.warningPromo=new tt$b;this.promoCodeService=D$l(M$5);this.loginService=D$l(V$5);this.localStorageService=D$l(xt$5);this.analyticsService=D$l(L$3);this.rootConfigService=D$l(O$a);this.route=D$l(W$6);this.contractsService=D$l(w$4);this.oauthService=D$l(R$7);this.langService=D$l(v$7);this.snackbarService=D$l(ot$4);this.hasPromoCode=this.promoCodeService.hasPromoCode();this.hasPrivacyPolicy=this.localStorageService.get("hasPrivacyPolicy");this.errorPrivacyPolicy=false;this.mobileWechatLogin=false;this.emailLogin=false;this.loginEmailSuccess=new rr$4(false);this.isMobileFacebook=/fbav|fbios/.test(navigator.userAgent.toLowerCase());this.shakePolicyBlock=false;this.isLoggedIn=new rr$4(false);this.showMore=false;this.TermsOfServicePathConstant=t$g;this.PrivacyPolicyPathConstant=o$e;this.isContractInvite=this.contractsService.hasCode();this.contractEmailDomainAllowed=this.contractsService.getEmailDomainAllowed();this.isMobile=/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i.test(navigator.userAgent);
914this.isWechatApp=/micromessenger/.test(navigator.userAgent.toLowerCase());this.isTelegramBrowser="TelegramWebviewProxy"in window||/telegram/i.test(navigator.userAgent.toLowerCase());}ngOnInit(){this.providers=re$4.getProviders(this.langService.getLangValue()),this.langSubscription=this.langService.lang.subscribe(()=>{this.providers=re$4.getProviders(this.langService.getLangValue());}),this.contractEmailDomainAllowed.length&&this.isContractInvite&&(this.providers=Et$1);let i=this.localStorageService.get(Z$2);if(this.localStorageService.remove(Z$2),i){let e=this.route.snapshot.queryParams.code,n=this.route.snapshot.queryParams.email;this.isMobile&&i.type==="facebook_mobile"&&e&&(delete this.rootConfigService.authProviders.facebook,this.processLogin("facebook_mobile",{code:e,redirectUri:O$a.commonRedirectUri})),this.isWechatApp&&e&&this.processLogin(i.type,{code:e,redirectUri:O$a.commonRedirectUri}),i.type==="email"&&e&&n&&this.processLogin("email",{code:e,email:n}),i.type==="google_redirect"&&e&&this.processLogin("google_redirect",{code:e,redirectUri:O$a.commonRedirectUri});}}ngOnDestroy(){this.loginSubscription&&this.loginSubscription.unsubscribe(),this.langSubscription&&this.langSubscription.unsubscribe();}openUrl(i){this.analyticsService.send("login_dialog_click_link",[i]);}onTermsClick(i){let e=i.target.closest("a");e&&this.openUrl(e.getAttribute("href"));}clickPrivacyPolicy(){this.checkPrivacyPolicy=!this.checkPrivacyPolicy;let i=[this.checkPrivacyPolicy?"1":"0"];this.analyticsService.send("login_dialog_toggle_privacy_policy",i);}clickToggleAsian(){this.showMore=!this.showMore,this.analyticsService.send("login_dialog_show_asian_click",[this.showMore.toString()]);}login(i){if(this.localStorageService.remove("login"),this.loginEmailSuccess.next(false),this.analyticsService.send("login_dialog_login",[i]),!this.checkPrivacyPolicy&&!this.hasPrivacyPolicy){this.errorPrivacyPolicy=!this.checkPrivacyPolicy,this.shakePolicyBlock=true,setTimeout(()=>this.shakePolicyBlock=false,300);return}if(this.isMobile&&!this.isWechatApp&&i==="wechat"){this.mobileWechatLogin=true;return}if(this.isWechatApp){this.localStorageService.set(Z$2,{type:"wechat_internal"}),window.location.href=this.oauthService.getAuthUrl("wechat_internal");return}if(i==="email"){this.localStorageService.set(Z$2,{type:"email"}),this.emailLogin=true;return}if(this.isMobile&&i==="facebook"){this.localStorageService.set(Z$2,{type:"facebook_mobile"}),window.location.href=this.oauthService.getAuthUrl("facebook");return}if(this.isTelegramBrowser&&i==="google"){this.localStorageService.set(Z$2,{type:"google_redirect"}),window.location.href=this.oauthService.getAuthUrl("google");return}this.processLogin(i);}processLogin(i,e={}){this.loginSubscription=this.loginService.login(i,e).subscribe(n=>{n.warnings.length&&this.warningPromo.emit({keys:n.warnings}),this.isLoggedIn.next(true),this.localStorageService.set("hasPrivacyPolicy",true),this.loginSuccess.emit();},()=>{this.isLoading.next(false);});}sendLoginEmail(i){this.loginService.sendLoginEmail({email:i.email,captchaResponse:i.captchaResponse,contract:this.contractsService.getCode(),promo_code:this.promoCodeService.getPromoCode()}).subscribe(e=>{this.loginEmailSuccess.next(!!e.ok),e.too_many_requests&&this.snackbarService.show("auth.email_too_many_attempts",true);});}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["login"]],inputs:{text:"text",isLoading:"isLoading"},outputs:{loginSuccess:"loginSuccess",warningPromo:"warningPromo"},decls:12,vars:13,consts:[[1,"pos-relative","login-container","flex","flex-col"],[1,"pos-relative","flex-center","flex-col"],[1,"m-b-xl","text-center"],[1,"text-center","pos-relative","width-fit","flex-center","flex-col"],[1,"p-b-lg"],[1,"spinner-wrap"],["height","100","src","/assets/angular2/img/login/invite.svg",1,"invite-img"],[1,"invite-title",3,"customInnerHtml"],[1,"magic-finger-container"],[1,"md-display-1"],[1,"md-display-1","login-unavailable"],[1,"font-size-16","line-height-20","font-normal","m-t"],["src","/assets/angular2/img/login/magic-finger.svg"],["src","/assets/angular2/img/login/happy.svg"],[1,"button-container","pos-relative"],[1,"pos-relative"],[1,"m-b-xl","pos-relative","login-consent",3,"ngClass"],[1,"login-button",3,"class"],[1,"g-anim-auto-height","width-100"],[1,"show-more",3,"showMore","textMore","textLess","lines"],[3,"onChange","value","invali
914d"],["stopToggleOnLink","",1,"terms-desktop",3,"click","customInnerHtml"],["stopToggleOnLink","",1,"terms-mobile",3,"click","customInnerHtml"],[1,"login-button",3,"click"],[1,"login-button-name-wrap"],[1,"login-button-name"],[1,"providers-less-inner"],[1,"show-more",3,"changeShowMore","showMore","textMore","textLess","lines"],[3,"backClick"],[3,"backClick","emailSubmit","showButtonAnotherLogin","emailDomainAllowed","loginEmailSuccess"],[3,"diameter"]],template:function(e,n){e&1&&(Zi$3(0,"div",0),uT(1,Wt$1,2,0,"div"),kl$2(),Zi$3(2,"div",1),uT(3,Ht$1,3,3,"div",2),uT(4,ni$2,7,6,"div",3),Zi$3(5,"div",4),uT(6,mi$2,3,3),bb(7,"async"),bb(8,"async"),uT(9,pi$2,2,1,"div",5),bb(10,"async"),bb(11,"async"),kl$2()()),e&2&&(AE(),dT(n.isContractInvite?1:-1),AE(2),dT(n.isContractInvite?3:-1),AE(),dT(n.isContractInvite?-1:4),AE(2),dT(!_b(7,5,n.isLoading)&&!_b(8,7,n.isLoggedIn)?6:-1),AE(3),dT(_b(10,9,n.isLoading)||_b(11,11,n.isLoggedIn)?9:-1));},dependencies:[P$6,An$3,un$2,fe$8,b$5,De$3,Ae$2,r$8,s$j,Oe$3,hn$2,he$8,u$6],styles:['[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
914--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{padding:50px 15px 0;display:flex;justify-content:center;flex-wrap:wrap;flex-direction:column}[_nghost-%COMP%]   .shake[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_shake .3s;animation-iteration-count:1}@keyframes _ngcontent-%COMP%_shake{0%{transform:translate(1px,1px) rotate(0)}20%{transform:translate(-1px,-2px) rotate(-1deg)}40%{transform:translate(-3px) rotate(1deg)}60%{transform:translate(3px,2px) rotate(0)}80%{transform:translate(1px,-1px) rotate(1deg)}to{transform:translate(-1px,2px) rotate(-1deg)}}[_nghost-%COMP%]   .width-fit[_ngcontent-%COMP%]{margin:0 100px 30px;width:fit-content}@media(max-width:767px){[_nghost-%COMP%]   .width-fit[_ngcontent-%COMP%]{margin:0 0 30px}}@media(max-width:767px){[_nghost-%COMP%]{min-width:260px;padding:15px 15px 0}}[_nghost-%COMP%]   .magic-finger-container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:-100px}@media(max-width:767px){[_nghost-%COMP%]   .magic-finger-container[_ngcontent-%COMP%]{position:static}}[_nghost-%COMP%]   .login-unavailable[_ngcontent-%COMP%]{max-width:500px}[_nghost-%COMP%]   .button-container[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;width:240px;margin:0 auto}
914[_nghost-%COMP%]   .login-consent[_ngcontent-%COMP%]{width:440px;display:flex;justify-content:center}@media(max-width:576px){[_nghost-%COMP%]   .login-consent[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .terms-mobile[_ngcontent-%COMP%]{display:none}@media(max-width:576px){[_nghost-%COMP%]   .terms-desktop[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .terms-mobile[_ngcontent-%COMP%]{display:inline}}[_nghost-%COMP%]   .yellow-spinner[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{stroke:var(--yellow-50)!important}[_nghost-%COMP%]   .show-more[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .providers-less-inner[_ngcontent-%COMP%]{overflow:hidden;padding-bottom:16px}@media(max-width:576px){[_nghost-%COMP%]   .button-container[_ngcontent-%COMP%]{max-width:100%;width:100%;min-width:200px}}[_nghost-%COMP%]   .invite-img[_ngcontent-%COMP%]{display:block;margin:0 auto 10px;padding:0 0 0 40px}[_nghost-%COMP%]   .invite-title[_ngcontent-%COMP%]{max-width:300px;margin:0 auto;font-size:34px;line-height:45px}[_nghost-%COMP%]   .login-button[_ngcontent-%COMP%]{font-weight:400;width:100%;color:var(--white);border-radius:8px;height:40px;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;margin-bottom:16px;padding:0 6px}[_nghost-%COMP%]   .login-button[_ngcontent-%COMP%]:before{background-size:contain;background-repeat:no-repeat;display:block;content:"";width:28px;min-width:28px;height:28px}[_nghost-%COMP%]   .login-button[_ngcontent-%COMP%]:last-child{margin-bottom:0}[_nghost-%COMP%]   .login-button.facebook[_ngcontent-%COMP%]{background-color:#4065b4}[_nghost-%COMP%]   .login-button.facebook[_ngcontent-%COMP%]:hover{background-color:#4e72c0}[_nghost-%COMP%]   .login-button.facebook[_ngcontent-%COMP%]:before{background-image:url(/assets/angular2/img/login/facebook.svg)}[_nghost-%COMP%]   .login-button.google[_ngcontent-%COMP%]{background-color:#3184ef}[_nghost-%COMP%]   .login-button.google[_ngcontent-%COMP%]:hover{background-color:#4992f1}[_nghost-%COMP%]   .login-button.google[_ngcontent-%COMP%]:before{background-image:url(/assets/angular2/img/login/google.svg)}[_nghost-%COMP%]   .login-button.kakaotalk[_ngcontent-%COMP%]{background-color:#515151}[_nghost-%COMP%]   .login-button.kakaotalk[_ngcontent-%COMP%]:hover{background-color:#5e5e5e}[_nghost-%COMP%]   .login-button.kakaotalk[_ngcontent-%COMP%]:before{background-image:url(/assets/angular2/img/login/kakaotalk.svg)}[_nghost-%COMP%]   .login-button.wechat[_ngcontent-%COMP%]{background-color:#5fb500}[_nghost-%COMP%]   .login-button.wechat[_ngcontent-%COMP%]:hover{background-color:#6ccf00}[_nghost-%COMP%]   .login-button.wechat[_ngcontent-%COMP%]:before{background-image:url(/assets/angular2/img/login/wechat-white.svg)}[_nghost-%COMP%]   .login-button.email[_ngcontent-%COMP%]{background-color:#02a8b0}[_nghost-%COMP%]   .login-button.email[_ngcontent-%COMP%]:hover{background-color:#02c0c9}[_nghost-%COMP%]   .login-button.email[_ngcontent-%COMP%]:before{background-image:url(/assets/angular2/img/login/email.svg)}[_nghost-%COMP%]   .login-button-name-wrap[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:center;padding:0 4px}[_nghost-%COMP%]   .login-button-name[_ngcontent-%COMP%]{padding-right:28px}[_nghost-%COMP%]   .spinner-wrap[_ngcontent-%COMP%]{margin:24px auto 0;display:flex;justify-content:center}']});}};var Ie$2=class t{constructor(i){this.elementRef=i;this.enableFocus=true;}ngOnInit(){!this.isSmallMobileDevice()&&this.enableFocus&&setTimeout(()=>this.elementRef.nativeElement.focus({preventScroll:true}));}isSmallMobileDevice(){return screen.width<1024}static{this.\u0275fac=function(e){return new(e||t)(Jr$4(Gr$4))};}static{this.\u0275dir=dw({type:t,selectors:[["","desktop-focus",""]],inputs:{enableFocus:[0,"desktop-focus","enableFocus"]}});}};var Te$3=class t{constructor(){this.closeDialog=new tt$b;this.submit=new tt$b;this.isPanelMode=false;this.loading=new rr$4(false);}ngOnInit(){this.nameForm=new T$3({name:new N$5("",{nonNullable:true,validators:[ce$5.required,
914ce$5.maxLength(a$9.MAX_LENGTH)]})});}handleSubmitClick(){if(this.nameForm.invalid)return;let i=this.nameForm.controls.name.value;this.loading.next(true),this.submit.emit(i);}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["wechat-dialog"]],hostVars:2,hostBindings:function(e,n){e&2&&Pg$1("panel-mode",n.isPanelMode);},outputs:{closeDialog:"closeDialog",submit:"submit"},decls:11,vars:17,consts:[[1,"wrap"],[1,"g-icon-close","position-icon-close",3,"click"],[1,"title",3,"customInnerHtml"],[1,"subtitle",3,"customInnerHtml"],[1,"g-search-input-container",3,"formGroup"],["formControlName","name","type","text","autocomplete","off","maxlength","255","required","",1,"g-search-input",3,"desktop-focus","placeholder"],[3,"click","disabled","text","loading"]],template:function(e,n){e&1&&(Zi$3(0,"div",0)(1,"i",1),_g$1("click",function(){return n.closeDialog.emit()}),kl$2(),Eg$1(2,"div",2),bb(3,"translate"),Eg$1(4,"div",3),bb(5,"translate"),Zi$3(6,"form",4),Eg$1(7,"input",5),bb(8,"translate"),vD(),kl$2(),Zi$3(9,"btn-spinner",6),bb(10,"async"),_g$1("click",function(){return n.handleSubmitClick()}),kl$2()()),e&2&&(AE(2),Ig$1("customInnerHtml",_b(3,9,"auth.wechat_modal_title")),AE(2),Ig$1("customInnerHtml",_b(5,11,"auth.wechat_modal_description")),AE(2),Ig$1("formGroup",n.nameForm),AE(),Pg$1("error",n.nameForm.invalid&&n.nameForm.touched),Ig$1("placeholder",_b(8,13,"auth.wechat_modal_input_text")),ED(),AE(2),Ig$1("disabled",n.nameForm.invalid)("text","buttons.submit")("loading",_b(10,15,n.loading)));},dependencies:[An$3,fe$8,r$8,In,wn$1,We$3,bn$1,An,lt$3,It$3,en$1,Jt$3,Ie$2,X$5,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
914--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{max-width:545px;background:var(--white);box-shadow:var(--shadow-l);outline:none;position:relative;width:100%;display:block}.panel-mode[_nghost-%COMP%]{max-height:var(--height);padding-top:60px;width:100%;min-height:100%;box-shadow:none}@media(max-width:767px)and (orientation:landscape){.panel-mode[_nghost-%COMP%]{padding-top:60px}}.panel-mode[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:block}.panel-mode[_nghost-%COMP%]   .panel-title[_ngcontent-%COMP%]{display:flex}.panel-mode[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{display:none}.panel-mode[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{max-height:calc(var(--height) - 60px - 65px)}@media(max-width:767px)and (orientation:landscape){.panel-mode[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{max-height:calc(var(--height) - 65px)}}.panel-mode[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{border-top:1px solid var(--divider);text-align:right;display:flex;justify-content:space-between;position:fixed;bottom:0;padding:16px;height:65px;background:var(--surface-raised);width:100%;border-top:1px solid var(--grey-40)}[_nghost-%COMP%]:not(.panel-mode){border-radius:16px;overflow:hidden}@media(max-width:576px){[_nghost-%COMP%]:not(.panel-mode){border-radius:0;overflow:initial}}@media(max-width:576px){[_nghost-%COMP%]{max-width:var(--height);height:var(--height);width:100vw;display:flex;flex-direction:column;align-items:center;justify-content:center}}[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{font-size:34px;font-weight:400;line-height:40px;margin-bottom:24px}[_nghost-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:16px;line-height:24px;margin-bottom:24px;text-align:left}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{max-width:296px;width:100%;margin-bottom:16px}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;padding:24px 32px}@media(max-width:576px){[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{padding:0 16px}}[_nghost-%COMP%]   .position-icon-close[_ngcontent-%COMP%]{right:32px;top:27px}"]});}};var Ve$3=class t{constructor(){this.analyticsService=D$l(L$3);this.amDialogService=D$l(y$5);this.userConfigService=D$l(fe$5);this.isModalOpened=fi$4(false);}open(){if(this.isModalOpened())return null;let i=new de$c;this.isModalOpened.set(true);let e=this.amDialogService.open(Te$3,{containerClass:"",backdropClass:"am-dialog-backdrop-center",backdropOutClass:"",backdropInClass:"",dialogInClass:"",dialogOutClass:""});return e.backdropClick().subscribe(()=>{this.analyticsService.send("we_chat_modal_close_backdrop"),e.dispose(),i.next(void 0),i.complete();}),e.escEvent().subscribe(n=>{this.analyticsService.send("we_chat_modal_close_esc"),n.preventDefault(),e.dispose(),i.next(void 0),i.complete();}),e.enterEvent().subscribe(n=>{this.analyticsService.send("we_chat_modal_close_esc"),n.preventDefault(),e.dispose(),i.next(void 0),i.complete();}),e.instance.submit.subscribe(n=>{this.analyticsService.send("we_chat_modal_submit",[n]),this.userConfigService.get().get(5).set(n),e.instance.loading.next(false),e.dispose(),i.next(void 0),i.complete();}),e.instance.closeDialog.subscribe(()=>{this.analyticsService.send("we_chat_modal_close"),e.dispose(),i.next(void 0),i.complete();}),e.afterClosed().subscribe(()=>this.isModalOpened.set(false)),i}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};function hi$2(t,i){if(t&1){let e=DT();Zi$3(0,"div",4),_g$1("click",function(){Rd$2(e);let c=NT();return kd$2(c.closeDialog.emit())}),kl$2();}}var Re$3=class t{constructor(i,e){this.analyticsService=i;this.userService=e;this.loginSuccess=new tt$b;this.closeDialog=new tt$b;this.warningPromo=new tt$b;this.data={text:"",closeButton:false};}ngOnInit(){this.analyticsService.send("login_dialog_open");}onLoginSuccess(){this.loginSuccess.emit(),this.userService.isLoading.next(false);}
914onWarningPromo(i){this.warningPromo.emit(i);}static{this.\u0275fac=function(e){return new(e||t)(Jr$4(L$3),Jr$4(ve$6))};}static{this.\u0275cmp=sw({type:t,selectors:[["login-dialog"]],inputs:{data:"data"},outputs:{loginSuccess:"loginSuccess",closeDialog:"closeDialog",warningPromo:"warningPromo"},decls:4,vars:3,consts:[[1,"login-dialog","pos-relative"],[1,"dialog-content"],[1,"position-icon-close","g-icon-close"],[3,"loginSuccess","warningPromo","text","isLoading"],[1,"position-icon-close","g-icon-close",3,"click"]],template:function(e,n){e&1&&(Zi$3(0,"div",0)(1,"div",1),uT(2,hi$2,1,0,"div",2),Zi$3(3,"login",3),_g$1("loginSuccess",function(){return n.onLoginSuccess()})("warningPromo",function(v){return n.onWarningPromo(v)}),kl$2()()()),e&2&&(AE(2),dT(n.data.closeButton?2:-1),AE(),Ig$1("text",n.data.text)("isLoading",n.userService.isLoading));},dependencies:[Be$3],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
914--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}.login-dialog[_ngcontent-%COMP%]{padding:25px}@media(max-width:576px){.login-dialog[_ngcontent-%COMP%]{padding:25px 0}}.login-dialog[_ngcontent-%COMP%]   login[_ngcontent-%COMP%]{padding-top:0}.login-dialog[_ngcontent-%COMP%]   .dialog-content[_ngcontent-%COMP%]{overflow:visible;width:auto}@media(max-width:767px){.login-dialog[_ngcontent-%COMP%]   .dialog-content[_ngcontent-%COMP%]{max-height:none}}.login-dialog[_ngcontent-%COMP%]   .dialog-content[_ngcontent-%COMP%]   .position-icon-close[_ngcontent-%COMP%]{right:15px;top:15px}"]});}};var Dt$2=class t{constructor(){this.analyticsService=D$l(L$3);this.amDialogService=D$l(y$5);this.warningPromoDialogService=D$l(Me$2);this.userConfigService=D$l(fe$5);this.userService=D$l(ve$6);this.wechatDialogService=D$l(Ve$3);this.isModalOpened=fi$4(false);}open(i,e=true){this.isModalOpened.set(true);let n=this.amDialogService.open(Re$3,{containerClass:"login-dialog-container",backdropClass:"am-dialog-backdrop-center",dialogInClass:"am-dialog-in",dialogOutClass:"am-dialog-out"});n.instance.warningPromo.subscribe(v=>{this.warningPromoDialogService.open(v);}),n.instance.data={text:i,closeButton:e},n.backdropClick().subscribe(()=>{this.analyticsService.send("login_dialog_close_backdrop"),n.instance.userService.isLoading.next(false),n.dispose();}),n.escEvent().subscribe(v=>{n.instance.userService.isLoading.next(false),this.analyticsService.send("login_dialog_close_esc"),n.dispose();});let c=new W$f;return c.add(n.instance.closeDialog.subscribe(()=>{this.analyticsService.send("login_dialog_close_cross"),n.instance.userService.isLoading.next(false),n.dispose();})),c.add(n.instance.loginSuccess.subscribe(()=>{n.dispose();})),n.afterClosed().subscribe(()=>{this.isModalOpened.set(false),c.unsubscribe();}),n.instance.loginSuccess.asObservable().pipe(Uu$2(300),Du$2(()=>{let v=this.userConfigService.get().get(5),N=this.userService.getUser();return (N.auth.source==="wechat"||N.auth.source==="wechat_internal"||N.auth.source==="weixin")&&!v.get()?this.wechatDialogService.open():Ms$2(void 0)}),Uu$2(300))}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};
915var n$8=class s{constructor(){this.userService=D$l(ve$6);this.loginDialogService=D$l(Dt$2);this.demoRequestService=D$l(n$e);this.router=D$l(F$4);}checkAccess(e,t,o,i){return this.userService.hasAccessRequirement(e,null,i)?(this.router.navigate(t,{queryParams:o}),true):(this.demoRequestService.open(),false)}checkAccessWithLoginAndRedirectAfter(e,t,o={},i=true){return this.userService.isGuest()&&e?(this.loginDialogService.open().subscribe(()=>{this.checkAccess(e,t,o,i);}),false):this.checkAccess(e,t,o,i)}static{this.\u0275fac=function(t){return new(t||s)};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var X$4=(s,e=c$b,t=true)=>(o,i)=>{let l=D$l(ve$6),f=D$l(F$4),q=D$l(n$8),k=D$l(ot$4);if(l.hasAccessRequirement(s,null,t))return Ms$2(true);let y=o.pathFromRoot.map(c=>c.url.join("/")).filter(c=>c[0]).join("/");return Lm$2("no access").pipe(xs$1(()=>{let c=e===e$h,j=!l.isGuest(),p=e.startsWith("/")?f.navigateByUrl(e):f.navigate([e]);return p.finally(()=>{j&&k.show("screen.no_access",true);}),c?Lm$2("no access"):(p.finally(()=>{q.checkAccessWithLoginAndRedirectAfter(s,[y],o.queryParams,t);}),Lm$2("no access"))}))};var n$7="playstation/:conceptId";var e$d=class e{static getPlayStationPageLink(t,r){let o=`/${n$7.replace(":conceptId",`${t}`)}`;return r?`${o}?country=${r}`:o}static getPlayStationConceptLink(t){return `https://store.playstation.com/en-us
915/concept/${t}`}};
916var e$c="xbox/:productId";var s$g=class s{static getXboxPageLink(t,r){let o=`/${e$c.replace(":productId",t)}`;return r?`${o}?country=${r}`:o}static getXboxStoreLink(t,r){return `https://www.xbox.com/${r}-${r}/games/store/${t}/${t}`}};
917var t$f="notifications",p$7=t$f,o$d="app-metric-updates",c$8=`/${p$7}/${o$d}`,s$f="top-apps-spikes-updates",n$6=`/${p$7}/${s$f}`,e$b="new-apps",i$a=`/${p$7}/${e$b}`,r$7="new-apps-by-pub",U$3=`/${p$7}/${r$7}`;var o$c={app_metric_updates:o$d,top_apps_spikes_updates:s$f,new_apps_by_type:e$b,new_apps_by_pub:r$7};var e$a=(o=>(o.NoPrefix="",o.Dollar="$",o.Percent="%",o))(e$a||{});var e$9="live-ops-calendar",o$b="/live-ops-calendar";var o$a=class e{constructor(r){this.httpClient=r;}get(r){let t=new s$m({fromObject:n$b(r)});return this.httpClient.get(C$8.baseUrl+"/api/v2/top/free",{params:t})}static{this.\u0275fac=function(t){return new(t||e)(me$b(Ue$7))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var c$7=class e{constructor(r){this.iframeTopResource=r;}getData(r){return this.iframeTopResource.get(r)}static{this.\u0275fac=function(t){return new(t||e)(me$b(o$a))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var l$9=class r{constructor(o,i){this.userService=o;this.serverTimeService=i;this.timer=new rr$4("");let t=new W$f;this.userService.user.subscribe(m=>{if(t.unsubscribe(),this.timer.next(""),!m)return;let d=this.serverTimeService.unixTime(),n=ve$6.getUnixUtcMaxPremiumUntil(m.userContracts,m.promoCodesUser)-d;n>0&&n<kt$3.dayInMs&&(t=r.getCountdown(n).subscribe(x=>{this.timer.next(kt$3.format(x,"HH:mm:ss"));}));});}static getCountdown(o){let i=kt$3.unix()+o;return Me$b(0,1e3).pipe(ge$9(()=>i-kt$3.unix()),Ou$2(t=>t>0))}static{this.\u0275fac=function(i){return new(i||r)(me$b(ve$6),me$b(c$d))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var r$6=(t=>(t.appRankingHistory="appRankingHistory",t.appRankingHistoryCategories="appRankingHistoryCategories",t.inAppPurchasesDistribution="inAppPurchasesDistribution",t.adIntDashboardsByPub="adIntDashboardsByPub",t.monIntPlacementPromotion="monIntPlacementPromotion",t.advSearchPubSelect="advSearchPubSelect",t.iapdAssociatedOffers="iapdAssociatedOffers",t.favoritesGroups="favoritesGroups",t.wishlists="wishlists",t.chartByLaunch="chartByLaunch",t.steamRating="steamRating",t.steamPublisher="steamPublisher",t.iapdNewMetrics="iapdNewMetrics",t.chartDownload="chartDownload",t.twitchMetrics="twitchMetrics",t.stAsoTools="stAsoTools",t.steamFollowers="steamFollowers",t))(r$6||{});var i$9=class e{static{this.newFeatures={adIntDashboardsByPub:{startDate:"2025-12-10T00:00:00",durationWeeks:2},monIntPlacementPromotion:{startDate:"2026-01-30T00:00:00",durationWeeks:2},iapdAssociatedOffers:{startDate:"2026-02-02T00:00:00",durationWeeks:2},advSearchPubSelect:{startDate:"2026-02-26T00:00:00",durationWeeks:2},favoritesGroups:{startDate:"2026-02-25T00:00:00",durationWeeks:2},wishlists:{startDate:"2026-03-18T00:00:00",durationWeeks:2},chartByLaunch:{startDate:"2026-03-16T00:00:00",durationWeeks:1},inAppPurchasesDistribution:{startDate:"2026-03-10T00:00:00",durationWeeks:2},steamRating:{startDate:"2026-04-01T00:00:00",durationWeeks:2},appRankingHistory:{startDate:"2026-04-01T00:00:00",durationWeeks:2},steamPublisher:{startDate:"2026-05-25T00:00:00",durationWeeks:2},appRankingHistoryCategories:{startDate:"2026-04-24T00:00:00",durationWeeks:1},iapdNewMetrics:{startDate:"2026-06-25T00:00:00",durationWeeks:2},chartDownload:{startDate:"2026-07-03T00:00:00",durationWeeks:2},twitchMetrics:{startDate:"2026-08-03T00:00:00",durationWeeks:2},stAsoTools:{startDate:"2026-08-20T00:00:00",durationWeeks:2},steamFollowers:{startDate:"2026-09-23T00:00:00",durationWeeks:2}};}static isActualFeature(a){let o=kt$3.getDate(a.startDate),n=kt$3.add(o,a.durationWeeks*7,"d"),d=kt$3.now();return kt$3.isAfter(n,d)}static isNewFeature(a){return !a||!e.newFeatures[a]?false:e.isActualFeature(e.newFeatures[a])}};var h$5=class o{constructor(){this.localStorageService=D$l(xt$5);this.devFeatureToggleService=D$l(D$c);this.themeSignal=fi$4(null);this.darkTheme=Pb(()=>this.themeSignal()==="dark");let t=this.localStorageService.get(o.Key);ef$2(()=>{let e=this.devFeatureToggleService.featuresSignal.themeSwitch(),n=Fb(()=>this.themeSignal());if(!e){if(n&&n!=="light"){this.setTheme("light");return}return}if(n){this.setTheme(n);return}this.setTheme(t||"light");});}static{this.Key="theme";}static{this.KeyAnimationX="--theme-switch-x";}static{this.KeyAnimationY="--theme-switch-y";}toggle(t){let{x:e,y:n}=t.getBoundingClientRect();document.documentElement.style.setProperty(o.KeyAnimationX,`${e}px`),document.documentElement.style.setProperty(o.KeyAnimationY,`${n}px`);let r=this.themeSignal()==="dark"?"light":"dark";document.startViewTransition(()=>{this.setTheme(r),this.localStorageService.set(o.Key,r);});}setTheme(t){this.themeSignal.set(t),document.documentElement.setAttribute(o.Key,t);}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var k$2=class o{constructor(){this.value=VV();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["switch-theme"]],hostVars:2,hostBindings:function(e,n){e&2&&Pg$1("dark",n.value(
917));},inputs:{value:[1,"value"]},decls:7,vars:0,consts:[[1,"wrap"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 640",1,"sun"],["d","M210.2 53.9C217.6 50.8 226 51.7 232.7 56.1L320.5 114.3L408.3 56.1C415 51.7 423.4 50.9 430.8 53.9C438.2 56.9 443.4 63.5 445 71.3L465.9 174.5L569.1 195.4C576.9 197 583.5 202.4 586.5 209.7C589.5 217 588.7 225.5 584.3 232.2L526.1 320L584.3 407.8C588.7 414.5 589.5 422.9 586.5 430.3C583.5 437.7 576.9 443.1 569.1 444.6L465.8 465.4L445 568.7C443.4 576.5 438 583.1 430.7 586.1C423.4 589.1 414.9 588.3 408.2 583.9L320.4 525.7L232.6 583.9C225.9 588.3 217.5 589.1 210.1 586.1C202.7 583.1 197.3 576.5 195.8 568.7L175 465.4L71.7 444.5C63.9 442.9 57.3 437.5 54.3 430.2C51.3 422.9 52.1 414.4 56.5 407.7L114.7 320L56.5 232.2C52.1 225.5 51.3 217.1 54.3 209.7C57.3 202.3 63.9 196.9 71.7 195.4L175 174.6L195.9 71.3C197.5 63.5 202.9 56.9 210.2 53.9zM239.6 320C239.6 275.6 275.6 239.6 320 239.6C364.4 239.6 400.4 275.6 400.4 320C400.4 364.4 364.4 400.4 320 400.4C275.6 400.4 239.6 364.4 239.6 320zM448.4 320C448.4 249.1 390.9 191.6 320 191.6C249.1 191.6 191.6 249.1 191.6 320C191.6 390.9 249.1 448.4 320 448.4C390.9 448.4 448.4 390.9 448.4 320z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 640",1,"moon"],["d","M320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576C388.8 576 451.3 548.8 497.3 504.6C504.6 497.6 506.7 486.7 502.6 477.5C498.5 468.3 488.9 462.6 478.8 463.4C473.9 463.8 469 464 464 464C362.4 464 280 381.6 280 280C280 207.9 321.5 145.4 382.1 115.2C391.2 110.7 396.4 100.9 395.2 90.8C394 80.7 386.6 72.5 376.7 70.3C358.4 66.2 339.4 64 320 64z"],[1,"active"],[1,"active-bg"]],template:function(e,n){e&1&&(Ol$2(0,"div",0),qd$2(),Ol$2(1,"svg",1),Dg$1(2,"path",2),Ll$2(),Ol$2(3,"svg",3),Dg$1(4,"path",4),Ll$2(),Wd$2(),Dg$1(5,"div",5)(6,"div",6),Ll$2());},styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
917--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;width:100%;padding:4px 12px;cursor:pointer}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]:hover   .active-bg[_ngcontent-%COMP%]{transform:scale(1.1)}}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;position:relative;box-shadow:var(--shadow-m);padding:4px 6px;width:60px;height:24px;border-radius:32px;overflow:hidden;background:var(--yellow-40);border:1px solid var(--yellow-70)}.dark[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{background:var(--grey-40);border:1px solid var(--grey-70)}.dark[_nghost-%COMP%]   .active[_ngcontent-%COMP%]{border-color:var(--grey-50);left:35px;transform:scale(.9)}.dark[_nghost-%COMP%]   .active-bg[_ngcontent-%COMP%]{background:var(--grey-80);left:28px}.dark[_nghost-%COMP%]   .moon[_ngcontent-%COMP%]{fill:var(--grey-50);transform:scale(1) rotate(-25deg)}.dark[_nghost-%COMP%]   .sun[_ngcontent-%COMP%]{fill:var(--grey-70);transform:scale(.75) rotate(360deg)}[_nghost-%COMP%]   .sun[_ngcontent-%COMP%], [_nghost-%COMP%]   .moon[_ngcontent-%COMP%]{width:16px;z-index:1;transition:.8s}[_nghost-%COMP%]   .sun[_ngcontent-%COMP%]{fill:var(--yellow-40);transform:scale(1)}[_nghost-%COMP%]   .moon[_ngcontent-%COMP%]{fill:var(--yellow-70);transform:scale(.75) rotate(360deg)}[_nghost-%COMP%]   .active[_ngcontent-%COMP%]{position:absolute;top:1px;left:4px;border-radius:32px;width:20px;height:20px;box-shadow:var(--shadow-m);border:1px solid var(--yellow-40);z-index:2;transition:.2s}[_nghost-%COMP%]   .active-bg[_ngcontent-%COMP%]{position:absolute;top:-13px;left:-16px;width:48px;height:48px;background:var(--yellow-70);border-radius:40px;z-index:0;transition:.6s}"]});}};function Se$4(o,t){o&1&&(Zi$3(0,"span",7),ib(1),bb(2,"translate"),kl$2()),o&2&&(AE(),jl$2("",_b(2,1,"apps.new"),"!"));}function Oe$2(o,t){if(o&1){let e=DT();Zi$3(0,"a",6),_g$1("click",function(){let r=Rd$2(e).$implicit,l=NT();return kd$2(l.valChange.emit(r.value))}),ib(1),bb(2,"translate"),uT(3,Se$4,3,3,"span",7),kl$2();}if(o&2){let e=t.$implicit,n=NT();Ig$1("routerLink",e.value),AE(),jl$2("",_b(2,3,e.name)," "),AE(2),dT(e.name==="favorites.favorites"&&n.isFavoritesNew?3:-1);}}function ke$2(o,t){if(o&1){let e=DT();Zi$3(0,"switch-theme",8),_g$1("click",function(r){Rd$2(e);let l=NT();return kd$2(l.onToggleTheme(r))}),kl$2();}if(o&2){let e=NT();Ig$1("value",e.darkTheme());}}var E$2=class o{constructor(){this.withThemeToggle=VV();this.darkTheme=VV();this.valChange=new tt$b;this.logoutClick=new tt$b;this.toggleTheme=jV();this.isFavoritesNew=i$9.isNewFeature("favoritesGroups");}onToggleTheme(t){this.toggleTheme.emit(t.target);}ngAfterViewInit(){this.popper.update();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["nav-my-selector-panel"]],hostVars:2,hostBindings:function(e,n){e&2&&Pg$1("dark",n.darkTheme());},inputs:{popper:"popper",values:"values",withThemeToggle:[1,"withThemeToggle"],darkTheme:[1,"darkTheme"]},outputs:{valChange:"valChange",logoutClick:"logoutClick",toggleTheme:"toggleTheme"},decls:10,vars:4,consts:[[1,"group-wrap","g-group-wrap"],[1,"g-group-item","group-item",3,"routerLink"],[3,"value"],[1,"logout-wrap"],[1,"g-group-item","group-item",3,"click"],[1,"logout-icon"],[1,"g-group-item","group-item",3,"click","routerLink"],[1,"g-status-label","g-new-color"],[3,"click","value"]],template:function(e,n){e&1&&(Zi$3(0,"div",0),hT(1,Oe$2,4,5,"a",1,pT),uT(3,ke$2,1,1,"switch-theme",2),Zi$3(4,"div",3)(5,"a",4),_g$1("click",function(){return n.logoutClick.emit()}),Zi$3(6,"span"),ib(7),bb(8,"translate"),kl$2(),Eg$1(9,"span",5),kl$2()()()),e&2&&(AE(),gT(n.values),AE(2),dT(n.withThemeToggle()?3:-1),AE(4),jl$2(" ",_b(8,2,"account.logout")," "));},dependencies:[fe$8,oa,$t$4,k$2,he$8],styles:[`[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
917--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column;min-width:148px;width:148px;max-width:100%;background:var(--surface-raised);position:relative;box-sizing:border-box}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{font-size:14px;font-weight:500;display:flex;align-items:center;cursor:pointer;background:var(--surface-raised);width:100%;border:none;margin:4px 0;text-align:left;font-family:Roboto,Helvetica Neue,sans-serif}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:first-child{margin-top:0}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover)}}[_nghost-%COMP%]   .group-item-tooltip[_ngcontent-%COMP%]{display:flex;margin-left:4px}[_nghost-%COMP%]   .panel-title[_ngcontent-%COMP%]{position:absolute;top:20px;display:none}@media(max-width:576px){[_nghost-%COMP%]   .panel-title[_ngcontent-%COMP%]{display:flex}}.panel-mode[_nghost-%COMP%]{max-height:var(--height);padding-top:60px;width:100%;min-height:100%;box-shadow:none}@media(max-width:767px)and (orientation:landscape){.panel-mode[_nghost-%COMP%]{padding-top:60px}}.panel-mode[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:block}.panel-mode[_nghost-%COMP%]   .panel-title[_ngcontent-%COMP%]{display:flex}.panel-mode[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{display:none}.panel-mode[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{max-height:calc(var(--height) - 60px - 65px)}@media(max-width:767px)and (orientation:landscape){.panel-mode[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{max-height:calc(var(--height) - 65px)}}.panel-mode[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{border-top:1px solid var(--divider);text-align:right;display:flex;justify-content:space-between;position:fixed;bottom:0;padding:16px;height:65px;background:var(--surface-raised);width:100%;border-top:1px solid var(--grey-40)}@media(max-width:576px){[_nghost-%COMP%]{padding-top:60px}}@media(max-width:576px){[_nghost-%COMP%]{max-height:var(--height);width:100%;height:100%}}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{padding:16px}[_nghost-%COMP%]   .group-item.child[_ngcontent-%COMP%]{padding-left:25px}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{color:var(--text);padding:12px 16px}[_nghost-%COMP%]   .group-item.selected[_ngcontent-%COMP%]{background:var(--selected);color:var(--on-selected)}[_nghost-%COMP%]   .group-title[_ngcontent-%COMP%]{font-size:12px;text-transform:uppercase;line-height:1;color:var(--text-muted);padding:8px 0 4px 16px}[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:none;z-index:2}@media(max-width:576px){[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   .info-icon[_ngcontent-%COMP%]{cursor:default}[_nghost-%COMP%]   .btn-select[_ngcontent-%COMP%]{border-radius:8px;min-width:88px;min-height:32px;text-transform:uppercase;font-size:14px;font-weight:500}[_nghost-%COMP%]   .btn-cancel[_ngcontent-%COMP%]{min-width:0;background:transparent;text-transform:uppercase}[_nghost-%COMP%]   .btn-cancel[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover)}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{font-size:14px;font-weight:400;display:flex;justify-content:space-between;align-items:center;position:relative;color:var(--text);padding:20px 24px 0}[_nghost-%COMP%]:not(.panel-mode){border-radius:8px;overflow:hidden}@media(max-width:576px){[_nghost-%COMP%]:not(.panel-mode){border-radius:0;overflow:initial}}[_nghost-%COMP%]:not(.panel-mode){border-radius:0 0 0 8px}.dark[_nghost-%COMP%]{background:var(--grey-100)}.dark[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{background:var(--grey-100)}@media(hover:hover)and (pointer:fine){.dark[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:hover:not(.selected){background:var(--grey-80)}}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{padding:8px}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{padding:8px 16px;margin:0;text-transform:capitalize}[_nghost-%COMP%]   .logout-wrap[_ngcontent-%COMP%]{border-top:1px solid var(--grey-40);
917display:flex;margin:8px -8px 0;padding:8px 8px 0}[_nghost-%COMP%]   .logout-wrap[_ngcontent-%COMP%]   .group-item[_ngcontent-%COMP%]{justify-content:space-between;padding-right:8px}[_nghost-%COMP%]   .logout-icon[_ngcontent-%COMP%]{margin-left:8px;width:16px;height:16px;-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M11.5 10.5L14 8M14 8L11.5 5.5M14 8H6M9 11V11.125C9 11.6223 8.80246 12.0992 8.45083 12.4508C8.09919 12.8025 7.62228 13 7.125 13H4.875C4.37772 13 3.90081 12.8025 3.54917 12.4508C3.19754 12.0992 3 11.6223 3 11.125V4.875C3 4.37772 3.19754 3.90081 3.54917 3.54917C3.90081 3.19754 4.37772 3 4.875 3H7.125C7.62228 3 8.09919 3.19754 8.45083 3.54917C8.80246 3.90081 9 4.37772 9 4.875V5" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M11.5 10.5L14 8M14 8L11.5 5.5M14 8H6M9 11V11.125C9 11.6223 8.80246 12.0992 8.45083 12.4508C8.09919 12.8025 7.62228 13 7.125 13H4.875C4.37772 13 3.90081 12.8025 3.54917 12.4508C3.19754 12.0992 3 11.6223 3 11.125V4.875C3 4.37772 3.19754 3.90081 3.54917 3.54917C3.90081 3.19754 4.37772 3 4.875 3H7.125C7.62228 3 8.09919 3.19754 8.45083 3.54917C8.80246 3.90081 9 4.37772 9 4.875V5" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-color:var(--black)}`]});}};var A$3=class A{constructor(t){this.send=t;this.onOpen=()=>{this.send("nav_my_selector_open",[]);},this.closeCancel=()=>{this.send("nav_my_selector_close_cancel",[]);},this.closeApply=e=>{this.send("nav_my_selector_close_apply",e);},this.closeEsc=()=>{this.send("nav_my_selector_close_esc",[]);},this.closeBackdrop=()=>{this.send("nav_my_selector_close_backdrop",[]);};}};var we$4=[{name:"auth.my_account",value:["my-account"]},{name:"favorites.favorites",value:["favorites"]}];var xe$3="features",nt$4="/features";var _e$3="user-config-editor";var T$2=class T{static isDevFeaturesAllowed(t){let e=[23,363,1167,1166,1580,1514,1394,252,1835];return !!t.find(n=>e.some(r=>r===n.contract_id))}};var D$5=class o{constructor(){this.analyticsService=D$l(L$3);this.amDropdownService=D$l(z$5);this.loginService=D$l(V$5);this.userService=D$l(ve$6);this.featureToggleService=D$l(D$c);this.themeService=D$l(h$5);}static getConfig(){return {customStyle:"border-radius: 0 0 0 8px",popperConfig:{middleware:[{name:Jt$7.customShiftName,fn(t){return {x:t.rects.reference.x+t.rects.reference.width-t.rects.floating.width,y:t.rects.reference.y+t.rects.reference.height}}}]}}}open(t){let e=new W$f,n=new A$3((a,Me)=>this.analyticsService.send(a,Me)),r=this.amDropdownService.get(t,E$2,{noBackdrop:o.getConfig()});n.onOpen(),r.open("noBackdrop").pipe(Mu$2(),bu$2(()=>e.unsubscribe())).subscribe(a=>{a==="closeEsc"&&n.closeEsc(),a==="cancel"&&n.closeCancel(),a==="backdrop"&&n.closeBackdrop(),r.close();}),r.instance.withThemeToggle=fi$4(this.featureToggleService.features.themeSwitch.getValue()),r.instance.darkTheme=this.themeService.darkTheme;let l=[...we$4];T$2.isDevFeaturesAllowed(this.userService.getUser()?.userContracts??[])&&l.push({name:"Dev Features",value:[xe$3]}),this.featureToggleService.features.userConfigEditor.getValue()&&l.push({name:"User Config",value:[_e$3]}),r.instance.values=l,e.add(r.instance.valChange.subscribe(a=>{n.closeApply(a);})),e.add(r.instance.logoutClick.subscribe(()=>{n.closeApply(["logout"]),this.loginService.logout(),r.close();})),r.instance.toggleTheme.subscribe(a=>this.themeService.toggle(a));}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var Fe$5=class o{constructor(){this.analyticsService=D$l(L$3);this.loginDialogService=D$l(Dt$2);this.router=D$l(F$4);this.route=D$l(W$6);this.navMySelectorService=D$l(D$5);this.breakpointService=D$l(r$9);this.premiumTimerService=D$l(l$9);this.destroyRef=D$l(st$b);this.headerHeightSubject=new rr$4(0);this.headerHeight=this.headerHeightSubject.asObservable();qm$2([this.breakpointService.isMobLs,this.premiumTimerService.timer]).pipe(U$a(this.destroyRef),ge$9(([t,e])=>t&&!!e)).subscribe(t=>{this.headerHeightSubject.next(t?o.HeaderHeight.big:o.HeaderHeight.normal);});}static{this.HeaderHeight={normal:46,big:70};}handlePricingClick(){this.analyticsService.send("navbar_click_pricing");}handleAccountClick(t){this.navMySelectorService.open(t),this.analyticsService.send("navbar_click_my_account");}handleClickLogo(){this.analyticsService.send("navbar_click_logo");}handleLoginClick(){this.loginDialogService.open().subscribe(()=>
917{let e=this.route.snapshot.queryParamMap.get("stateTo")||this.router.url;this.router.navigateByUrl(s$k,{skipLocationChange:true}).then(()=>{this.router.navigateByUrl(e,{replaceUrl:true});});});}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};
918var v$4=(C=>(C.yellow="yellow",C.black="black",C.white="white",C))(v$4||{});function u$4(e,o){e&1&&(qd$2(),Ol$2(0,"svg",0),Dg$1(1,"path",1)(2,"path",2)(3,"path",3),Ll$2());}function M$4(e,o){e&1&&(qd$2(),Ol$2(0,"svg",0),Dg$1(1,"path",4)(2,"path",5)(3,"path",6)(4,"path",7),Ll$2());}function P$4(e,o){e&1&&(qd$2(),Ol$2(0,"svg",0),Dg$1(1,"path",8),Ll$2());}function b$3(e,o){e&1&&(qd$2(),Ol$2(0,"svg",0),Dg$1(1,"path",9),Ll$2());}var h$4=class e{constructor(){this.value=VV.required();this.color=VV("black");this.size=VV("small");this.Platform=Oe$6;}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["platform-icon"]],hostVars:4,hostBindings:function(n,C){n&2&&(QT(C.color()),Pg$1("large",C.size()==="large"));},inputs:{value:[1,"value"],color:[1,"color"],size:[1,"size"]},decls:4,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 16 16","fill","none"],["d","M10.5833 14.5C11.158 14.5 11.7091 14.2717 12.1154 13.8654C12.5217 13.4591 12.75 12.908 12.75 12.3333V3.66667C12.75 3.09203 12.5217 2.54093 12.1154 2.1346C11.7091 1.72827 11.158 1.5 10.5833 1.5H5.16667C4.59203 1.5 4.04093 1.72827 3.6346 2.1346C3.22827 2.54093 3 3.09203 3 3.66667V12.3333C3 12.908 3.22827 13.4591 3.6346 13.8654C4.04093 14.2717 4.59203 14.5 5.16667 14.5H10.5833ZM4.08333 12.3333V3.66667C4.08333 3.37935 4.19747 3.1038 4.40063 2.90063C4.6038 2.69747 4.87935 2.58333 5.16667 2.58333H10.5833C10.8707 2.58333 11.1462 2.69747 11.3494 2.90063C11.5525 3.1038 11.6667 3.37935 11.6667 3.66667V12.3333C11.6667 12.6207 11.5525 12.8962 11.3494 13.0994C11.1462 13.3025 10.8707 13.4167 10.5833 13.4167H5.16667C4.87935 13.4167 4.6038 13.3025 4.40063 13.0994C4.19747 12.8962 4.08333 12.6207 4.08333 12.3333Z","fill","#FEDA0F"],["d","M5.70841 11.7917H10.0417C10.1854 11.7917 10.3232 11.7346 10.4248 11.6331C10.5263 11.5315 10.5834 11.3937 10.5834 11.25C10.5834 11.1064 10.5263 10.9686 10.4248 10.867C10.3232 10.7654 10.1854 10.7084 10.0417 10.7084H5.70841C5.56476 10.7084 5.42698 10.7654 5.3254 10.867C5.22382 10.9686 5.16675 11.1064 5.16675 11.25C5.16675 11.3937 5.22382 11.5315 5.3254 11.6331C5.42698 11.7346 5.56476 11.7917 5.70841 11.7917Z","fill","#FEDA0F"],["d","M7.33341 4.20833H8.41675C8.56041 4.20833 8.69818 4.15127 8.79976 4.04968C8.90135 3.9481 8.95841 3.81033 8.95841 3.66667C8.95841 3.52301 8.90135 3.38523 8.79976 3.28365C8.69818 3.18207 8.56041 3.125 8.41675 3.125H7.33341C7.18976 3.125 7.05198 3.18207 6.9504 3.28365C6.84882 3.38523 6.79175 3.52301 6.79175 3.66667C6.79175 3.81033 6.84882 3.9481 6.9504 4.04968C7.05198 4.15127 7.18976 4.20833 7.33341 4.20833Z","fill","#FEDA0F"],["fill-rule","evenodd","clip-rule","evenodd","d","M9.00005 6.125C9.00005 4.4 10.4 3 12.125 3C13.85 3 15.25 4.4 15.25 6.125C15.25 7.85 13.85 9.25 12.125 9.25H12C11.1 9.9625 9.97505 10.85 9.11255 11.5125C9.02663 10.6915 8.82404 10.4611 8.62174 10.2309C8.55915 10.1598 8.49659 10.0886 8.43753 10C8.05128 9.42062 7.2599 9.1375 6.73755 9.1375L9.00005 6.25V6.125ZM10.2501 6.125C10.2501 7.16176 11.0883 8 12.1251 8C13.1619 8 14.0001 7.16176 14.0001 6.125C14.0001 5.08824 13.1619 4.25 12.1251 4.25C11.0883 4.25 10.2501 5.08824 10.2501 6.125Z","fill","black"],["d","M6.87492 12.125C6.77492 12.125 6.67492 12.1 6.57492 12.0625L1.08742 9.64999C0.712416 9.48749 0.537416 9.03749 0.699916 8.66249C0.862416 8.28749 1.31242 8.11249 1.68742 8.27499L7.17492 10.675C7.54992 10.8375 7.72492 11.2875 7.56242 11.6625C7.43742 11.9625 7.16242 12.125 6.87492 12.125Z","fill","black"],["d","M6.87499 14C6.08749 14 5.34999 13.65 4.84999 13.05C4.71249 12.8875 4.73749 12.65 4.89999 12.525C5.06249 12.3875 5.29999 12.4125 5.42499 12.575C5.78749 13 6.31249 13.25 6.86249 13.25C7.84999 13.25 8.67499 12.475 8.72499 11.5C8.72499 11.475 8.72499 11.45 8.73749 11.4375C8.73749 11.425 8.73749 11.4 8.73749 11.3875C8.73749 10.3625 7.89999 9.5125 6.87499 9.5125H6.74999C6.59999 9.525 6.46249 9.4375 6.39999 9.3125C6.33749 9.1875 6.34999 9.025 6.43749 8.9125L8.62499 6.125C8.62499 4.2 10.2 2.625 12.125 2.625C14.05 2.625 15.625 4.2 15.625 6.125C15.625 8.05 14.05 9.625 12.125 9.625L9.47499 11.7125C9.31249 13.0125 8.19999 14 6.87499 14ZM7.46249 8.8
918125C8.43749 9.0375 9.21249 9.8125 9.43749 10.7875L11.775 8.95C11.85 8.9 11.9375 8.8625 12.025 8.875C12.0625 8.875 12.1 8.875 12.1375 8.875C13.65 8.875 14.8875 7.6375 14.8875 6.125C14.8875 4.6125 13.65 3.375 12.1375 3.375C10.625 3.375 9.38749 4.6125 9.38749 6.125C9.38749 6.1625 9.38749 6.2 9.38749 6.2375C9.38749 6.325 9.36249 6.4125 9.31249 6.4875L7.46249 8.8125Z","fill","black"],["d","M6.87489 12.5C6.72489 12.5 6.56239 12.4625 6.42489 12.4L0.937385 9.99999C0.374885 9.74999 0.112386 9.08749 0.362386 8.51249C0.487386 8.23749 0.699886 8.02499 0.987386 7.91249C1.26239 7.79999 1.57489 7.81249 1.84989 7.92499L7.33739 10.325C7.89989 10.575 8.16239 11.2375 7.91239 11.8125C7.72489 12.2375 7.32489 12.5 6.87489 12.5ZM1.38739 8.58749C1.33739 8.58749 1.29989 8.59999 1.24989 8.61249C1.16239 8.64999 1.08739 8.72499 1.03739 8.81249C0.949886 8.99999 1.03739 9.22499 1.22489 9.31249L6.71239 11.7125C6.76239 11.7375 6.81239 11.75 6.86239 11.75C7.01239 11.75 7.14989 11.6625 7.21239 11.525C7.29989 11.3375 7.21239 11.1125 7.02489 11.025L1.53739 8.62499C1.48739 8.59999 1.43739 8.58749 1.38739 8.58749Z","fill","black"],["d","M10.7555 9.50476C11.8274 10.8182 12.321 11.8947 12.0718 12.376C11.8807 12.7413 10.6999 13.4549 9.83124 13.7282C9.11504 13.9532 8.17623 14.05 7.40195 13.975C6.47766 13.8855 5.54127 13.5541 4.73795 13.0316C4.06288 12.5913 3.91045 12.4099 3.91045 12.0495C3.91045 11.3262 4.7065 10.0587 6.06874 8.61216C6.84302 7.79214 7.91975 6.8294 8.03831 6.85601C8.26575 6.90681 10.078 8.67264 10.7555 9.50476ZM6.36877 5.28611C5.65015 4.63541 4.96298 3.9823 4.27823 3.7525C3.91045 3.62913 3.88383 3.63639 3.5838 3.94843C2.87727 4.68379 2.2893 5.87633 2.12477 6.90922C1.99411 7.73651 1.97717 7.96872 2.02315 8.37269C2.15864 9.59426 2.44174 10.4385 3.00309 11.2972C3.23295 11.6504 3.29586 11.7157 3.22811 11.5367C3.12649 11.2706 3.22086 10.6296 3.45798 9.98855C3.80398 9.04516 4.76215 7.25755 6.36877 5.28611ZM13.9083 6.82214C13.4994 4.88698 12.2751 3.67025 12.1033 3.67025C11.9266 3.67025 11.5177 3.82748 11.2322 4.00649C10.6684 4.35723 10.2402 4.76604 9.67639 5.28369C10.7023 6.57299 12.1492 8.65571 12.6501 10.1772C12.8146 10.6779 12.8848 11.1714 12.8291 11.4423C12.788 11.6479 12.788 11.6479 12.863 11.5536C13.0106 11.3673 13.3445 10.7965 13.4776 10.5014C13.6567 10.1095 13.8405 9.52895 13.9277 9.08144C14.0317 8.53718 14.022 7.36882 13.9083 6.82214ZM5.2243 2.84781C6.37845 2.78734 7.87862 3.68235 7.98992 3.70412C8.00685 3.70654 8.24156 3.60252 8.51255 3.46948C10.0587 2.71719 10.787 2.84539 11.1112 2.85991C9.56509 1.90926 7.41647 1.65043 5.45174 2.57689C4.88555 2.84539 4.87103 2.86474 5.2243 2.84781Z","fill","black"],["fill-rule","evenodd","clip-rule","evenodd","d","M9.59265 4.61166C9.63651 4.82691 9.62169 5.04724 9.62437 5.26559C9.62622 6.47129 9.62065 7.67747 9.62729 8.88338C9.9899 9.05223 10.3819 9.18111 10.786 9.17683C11.0525 9.18222 11.3215 9.12201 11.5563 8.99529C11.8014 8.86404 12.0031 8.65999 12.1482 8.42439C12.3126 8.15724 12.4114 7.85436 12.467 7.5471C12.5339 7.19347 12.5346 6.83222 12.5232 6.4739
918C12.499 5.92488 12.4169 5.36671 12.1777 4.86684C12.0463 4.59106 11.8673 4.33748 11.6487 4.12386C11.4468 3.91814 11.2108 3.74943 10.9649 3.60017C10.416 3.27423 9.81267 3.05577 9.2067 2.86271C8.8209 2.73818 8.43266 2.6212 8.0432 2.50801C7.36266 2.31498 6.67877 2.12971 5.983 2C5.98251 5.84007 5.98213 9.67969 5.98307 13.5198C6.85142 13.7958 7.7199 14.0712 8.5885 14.3467C8.59055 11.1183 8.5885 7.88984 8.5894 4.66126C8.59472 4.47815 8.62558 4.28307 8.74326 4.136C8.81398 4.0441 8.93607 3.99554 9.05045 4.01735C9.16357 4.04114 9.27603 4.08535 9.36279 4.16369C9.49372 4.27681 9.56176 4.44483 9.59265 4.61166ZM2.78844 11.4394C3.68284 11.1199 4.57638 10.797 5.47175 10.4798C5.47927 10.4198 5.47548 10.3591 5.47621 10.2988C5.47548 9.85383 5.47722 9.40909 5.47548 8.96471C4.34269 9.36422 3.21146 9.76881 2.07923 10.1698C1.80321 10.2705 1.5226 10.3604 1.25214 10.4756C0.938235 10.6077 0.628436 10.7556 0.347508 10.9495C0.226246 11.0321 0.115976 11.1382 0.0528756 11.2728C-0.0124515 11.4077 -0.0163475 11.5689 0.0362134 11.7086C0.0988272 11.8736 0.222176 12.0078 0.359962 12.1143C0.610208 12.3049 0.908111 12.4203 1.20786 12.5072C2.12185 12.8079 3.08627 12.9568 4.04844 12.9351C4.52635 12.9275 5.00201 12.8702 5.47217 12.7859C5.47955 12.7109 5.47502 12.6353 5.47621 12.5601C5.47548 12.1836 5.47777 11.8074 5.47499 11.4313C5.09211 11.5683 4.70995 11.7075 4.3278 11.8459C4.18069 11.9011 4.03219 11.9531 3.87792 11.9834C3.64969 12.0338 3.41555 12.0511 3.18256 12.0549C2.97353 12.0454 2.75911 12.0339 2.56282 11.9542C2.49234 11.9233 2.41578 11.8825 2.3851 11.8076C2.36075 11.744 2.39707 11.6783 2.44163 11.6339C2.53722 11.5393 2.66446 11.4861 2.78844 11.4394ZM15.7442 10.5752C15.5176 10.3717 15.2341 10.2462 14.9511 10.1428C14.7922 10.0924 14.6379 10.0295 14.4784 9.98114C13.666 9.7262 12.8124 9.62063 11.9631 9.61742C11.7049 9.62682 11.4465 9.63377 11.1896 9.66338C10.474 9.74568 9.76324 9.89042 9.08248 10.1294C9.082 10.6511 9.08235 11.1729 9.08224 11.6948C10.0232 11.3663 10.962 11.0327 11.9025 10.7031C12.2156 10.5975 12.5477 10.5569 12.8768 10.5549C13.087 10.5606 13.3022 10.5757 13.4999 10.654C13.5696 10.6843 13.6453 10.7247 13.6771 10.7978C13.7075 10.8812 13.6468 10.9589 13.5848 11.0074C13.4333 11.1285 13.241 11.177 13.0624 11.2436C11.7421 11.7148 10.4219 12.1858 9.10144 12.6558C9.074 12.6608 9.08464 12.6948 9.082 12.7142C9.08276 13.2 9.082 13.6861 9.08224 14.1722C10.8175 13.5483 12.5532 12.9252 14.2887 12.302C14.5731 12.1969 14.8646 12.1076 15.1358 11.9694C15.3905 11.8403 15.6441 11.6926 15.8362 11.4773C15.9371 11.3626 16.0075 11.2133 15.9994 11.0579C15.9978 10.8669 15.8804 10.6995 15.7442 10.5752Z","fill","black"]],template:function(n,C){n&1&&(uT(0,u$4,4,0,":svg:svg",0),uT(1,M$4,5,0,":svg:svg",0),uT(2,P$4,2,0,":svg:svg",0),uT(3,b$3,2,0,":svg:svg",0)),n&2&&(dT(C.value()===C.Platform.mobile?0:-1),AE(),dT(C.value()===C.Platform.steam?1:-1),AE(),dT(C.value()===C.Platform.xbox?2:-1),AE(),dT(C.value()===C.Platform.playStation?3:-1));},styles:["[_nghost-%COMP%]{display:flex;width:16px;height:16px}.yellow[_nghost-%COMP%]{color:var(--yellow-50)}.yellow[_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:var(--yellow-50)}.black[_nghost-%COMP%]{color:var(--static-black)}.black[_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:var(--static-black)}.white[_nghost-%COMP%]{color:var(--white)}.white[_nghost-%COMP%]   path[_ngcontent-%COMP%]{fill:var(--white)}.large[_nghost-%COMP%]{width:24px;height:24px}"]});}};
919var t$e="PlatformInit";var i$8="steam/:appId";var o$9="steam-publisher/:id";var s$e=class a{static{this.Steam="https://store.steampowered.com/";}static getAppLink(e,t){let r=`${a.Steam}app/${e}`;return t?`${r}?cc=${t}`:r}static getDeveloperLink(e){return `${a.Steam}developer/${e.replace(" ","").toLowerCase()}`}static getPublisherLink(e){return `${a.Steam}publisher/${e.replace(" ","").toLowerCase()}`}static getSteamPageLink(e,t=null){let r=`/${i$8.replace(":appId",e)}`;return t?`${r}?country=${t}`:r}static getPubPageLink(e){let t=encodeURIComponent(e).replace(/\(/g,"%28").replace(/\)/g,"%29");return `/${o$9.replace(":id",t)}/`}};
920var f$8=class i{constructor(){this.steamResourceService=D$l(A$7);this.xboxResource=D$l(u$7);this.playstationResource=D$l(u$8);this.initData={steam:null,xbox:null,playStation:null};}get(a){if(this.initData[a])return Ms$2(this.initData[a]);let p={steam:()=>
920this.steamResourceService.getInit().pipe(ge$9(t=>({lastDate:t.last_date,countries:t.countries,categories:t.categories,genres:t.genres,tags:t.tags}))),xbox:()=>this.xboxResource.getInit().pipe(ge$9(t=>({lastDate:t.last_date,countries:t.countries}))),playStation:()=>this.playstationResource.getInit().pipe(ge$9(t=>({lastDate:t.last_date,countries:t.countries})))}[a];return p().pipe(ge$9(t=>(this.initData[a]=t,this.initData[a])),xs$1(t=>Ms$2({lastDate:null,countries:[]})))}getLoaded(a){return this.initData[a]}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var s$d="permissions",i$7=`/articles/${s$d}`,l$8={img:"/assets/angular2/img/articles/_preview/article_permissions.png",link:i$7,title:"articlePermissions.permissions_head",description:null,formatDate:null,author:null,articleType:null};var t$d="custom-data-dumps",s$c=`/articles/${t$d}`;var i$6="basic-plan",t$c=`/articles/${i$6}`;var s$b={img:"/assets/angular2/img/articles/_preview/essentials.png",link:t$c,title:"articleBasicPlan.title",description:"",formatDate:"2022-02-01",articleType:null,author:"articles.by_max_samorukov"};var c$6=class t{constructor(){this.errorSubject=new de$c;this.onError=this.errorSubject.pipe(Tn$3(Boolean));this.adIntErrorOccurred=this.errorSubject.pipe(ge$9(r=>r==="adInt"),Au$2(false));}set(r){this.errorSubject.next(r);}static{this.\u0275fac=function(p){return new(p||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};var g$5=class s{static getParamsDiff(n,e){let t={};return Object.keys(n).forEach(r=>{n[r]!==e[r]?t[r]=n[r]:t[r]=null;}),t}static getQueryString(n){let e=new URLSearchParams;for(let t in n)n[t]!==null&&e.set(t,n[t]);return e.toString()}static transformStateToQueryString(n,e){let t={},r=e,a=Object.fromEntries(Object.entries(n).filter(([i])=>r[i]).map(([i,c])=>{let f=r[i].type.valueToUrl(c);return t[i]=r[i].type.valueToUrl(r[i].default.getValue()),[i,f]})),o=s.getParamsDiff(a,t);return s.getQueryString(o)}};var c$5=class s{constructor(t,e){this.route=t;this.router=e;this.subscription=new W$f;this.defaults=new rr$4({});this.params=new rr$4({});this.paramsWithDefaults=new rr$4({});this.subscription.add(qm$2([this.route.queryParams,this.defaults]).subscribe(([i,r])=>{this.params.next(i);let a=Rs$1(Hp$1(i),Hp$1(r));Object.keys(r).forEach(n=>{Array.isArray(r[n])&&!Array.isArray(a[n])&&(a[n]=[a[n]]);}),this.paramsWithDefaults.next(a);}));}static{this.SkipScrollFlag="skipScroll";}ngOnDestroy(){this.subscription.unsubscribe();}getDefault(){return this.defaults.getValue()}setDefaults(t){this.defaults.next(t);}get(t){return this.paramsWithDefaults.pipe(hy(t),Tu$2())}set(t,e="merge"){let i=g$5.getParamsDiff(t,this.defaults.getValue());this.navigate(i,e);}navigate(t,e="merge"){this.router.navigate([],{queryParams:t,relativeTo:this.route,queryParamsHandling:e});}navigateWithoutScroll(t){this.router.navigate(t,{queryParams:this.route.snapshot.queryParams,state:{[s.SkipScrollFlag]:true}});}setOnly(t){let e=this.defaults.getValue(),i={};Object.keys(e).forEach(r=>{i[r]=null,JSON.stringify(t[r])!==JSON.stringify(e[r])&&(i[r]=t[r]);}),this.navigate(i);}static{this.\u0275fac=function(e){return new(e||s)(me$b(W$6),me$b(F$4))};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac});}};var t$b="how-appmagic-collects-your-data",a$8=`/articles/${t$b}`,r$5={img:"/assets/angular2/img/articles/_preview/how-appmagic-collects-your-data.png",link:a$8,title:"articleHowAppmagicCollectsYourData.title",description:"articleHowAppmagicCollectsYourData.description",formatDate:"2025-08-29",articleType:null,author:"articles.by_zubov"};var t$a="why-we-need-your-data",e$8=`/articles/${t$a}`;var a$7={img:"/assets/angular2/img/articles/_preview/why-we-need-your-data.png",link:e$8,title:"articleWhyWeNeed.title",description:"articleWhyWeNeed.description",formatDate:"2021-05-21",author:"articles.by_max_samorukov",articleType:null};var e$7="research-tools",r$4=`/research/${e$7}`,l$7={img:"/assets/angular2/img/articles/_preview/research-tools.png",link:r$4,title:"How To Use App Mar
920ket Research Tools To Grow Your Business",description:"In this article, I\u2019ll be looking into differences in approaches to market research between rookie and experienced mobile app analysts. We\u2019ll dig into a few methods of investigating the market and answer several questions that often baffle those who are not that research-savvy.",formatDate:"2020-05-29",author:"articles.by_max_samorukov",articleType:2};var n$5="/dashboards/custom";var p$6=class a{constructor(){this.router=D$l(F$4);this.activatedRoute=D$l(W$6);this.translateService=D$l(x$d);this.title=D$l(Yt$4);this.meta=D$l(Gt$3);}static urlTestIsUpdatePage(t){return ![n$9.appPageRegExp,new RegExp("/notifications/"),new RegExp("/publisher/.{1,}/[A-Za-z0-9_\\-,.]{1,}")].some(i=>i.test(t))}static setMetaRobots(t){let e=document.getElementsByName("robots");if(e.length)e[0].content=t;else {let i=document.createElement("meta");i.name="robots",i.content=t,document.getElementsByTagName("head")[0].appendChild(i);}}init(t){this.router.events.pipe(U$a(t),Tn$3(e=>e instanceof P$8),ge$9(()=>this.activatedRoute),ge$9(e=>{for(;e.firstChild;)e=e.firstChild;return e}),Tn$3(e=>e.outlet==="primary"&&a.urlTestIsUpdatePage(this.router.url)),_e$b(e=>e.data)).subscribe(e=>{this.lastMetaKeys=e.meta,this.update(e.meta),a.setMetaRobots("index");}),this.translateService.onLangChange.pipe(wu$2(0),U$a(t)).subscribe(()=>{a.urlTestIsUpdatePage(this.router.url)&&this.update(this.lastMetaKeys);});}getTitle(t,e){return t?`${e?this.translateService.instant(t):t} \u2014 AppMagic`:"AppMagic"}update(t,e=true){let s=yl$1({description:"root.meta_description",keywords:"root.meta_keywords"},t),d=this.getTitle(s.title,e),m=this.translateService.instant(s.description);this.title.setTitle(d),this.meta.updateTag({name:"title",content:d}),this.meta.updateTag({name:"description",content:m}),this.meta.updateTag({name:"keywords",content:this.translateService.instant(s.keywords)}),this.meta.updateTag({name:"og:description",property:"og:description",content:m});}static{this.\u0275fac=function(e){return new(e||a)};}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var n$4=class r{constructor(){this.httpClient=D$l(Ue$7);}apply(e,t){return this.httpClient.post(`${C$8.baseUrl}/api/v2/mailing`,{email:e,subscriptions:t})}get(e){let t=new R$a({fromObject:{email:e}});return this.httpClient.get(`${C$8.baseUrl}/api/v2/mailing`,{params:t})}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var b$2=class r{constructor(){this.resource=D$l(n$4);this.applyLoadingSignal=fi$4(false);this.applyLoading=this.applyLoadingSignal.asReadonly();}apply(e,t){return this.applyLoadingSignal.set(true),this.resource.apply(e,t).pipe(bu$2(()=>this.applyLoadingSignal.set(false)))}get(e){return this.resource.get(e)}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var t$9="dau-mau",e$6=`/tool-descriptions/${t$9}`,l$6={img:"/assets/angular2/img/articles/_preview/dau-mau.png",link:e$6,title:"articleUserBehaviorMetrics.title",description:"articleUserBehaviorMetrics.text_1",formatDate:"2024-04-27",articleType:3,author:"articles.by_vaganov"};var c$4=class r{constructor(e){this.localStorageService=e;this.referrerData=this.localStorageService.get(r.lsKey);}static{this.lsKey="InitialReferrer";}getData(){return this.referrerData?this.referrerData:(this.updateData(),this.referrerData)}updateData(){if(this.referrerData)return;let e=kt$3.now();this.referrerData={url:document.referrer&&document.referrer.indexOf("appmagic.rocks")===-1?document.referrer:"",createdAt:kt$3.format(e,"YYYY-MM-DD HH:mm:ss")},this.localStorageService.set(r.lsKey,this.referrerData);}static{this.\u0275fac=function(s){return new(s||r)(me$b(xt$5))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var o$8="login";var n$3=class e{transform(i,r=32){return m$7.getUrlBySize(i,r)}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275pipe=fw({name:"appIconSize",type:e,pure:true});}};function re$3(t,i){if(t&1&&Eg$1(0,"flag",6),t&2){let e=NT(2);Ig$1("flag",e.pub().headquarter);}}function ae$4(t,i){if(t&1&&(Zi$3(0,"div",0),uT(1,re$3,1,1,"flag",6),Zi$3(2,"span",7),ib(3),kl$2()()),t&2){let e=NT();AE(),dT(e.pub().headquarter?1:-1),AE(2),Ug$1(e.pub().name);}}var N$4=class t{constructor(){this.hasPremium=VV.required();this.pub=VV.required();this.demoPubs=VV.required();this.arrowTextNoPrem=VV.required();this.explainTextKey=Pb(()=>this.demoPubs().length>1?"root.would_you_see_preview_pubs":"root.would_you_see_preview_pub");this.explainTextParams=Pb(()=>{let[i,e]=this.demoPubs();return e?{name1:i.name,flag1:this.getFlagDOM(i.flag),name2:e.name,flag2:this.getFlagDOM(e.flag)}:{name:i.name,flag:this.getFlagDOM(i.flag)}});}getFlagDOM(i){let e=i.toLowerCase();return `<svg class="flag-img" width="17" height="12" preserveAspectRatio="xMidYMid meet" style="display:inline-block;vertical-align:middle;margin-bottom:4px"><use href="#${e}" xlink:href="#${e}"></use></svg>`}static{this.\u0275fac=function(e){return new(e||t)};}
920static{this.\u0275cmp=sw({type:t,selectors:[["view-demo-pub-section"]],inputs:{hasPremium:[1,"hasPremium"],pub:[1,"pub"],demoPubs:[1,"demoPubs"],arrowTextNoPrem:[1,"arrowTextNoPrem"]},decls:9,vars:8,consts:[[1,"pub-content"],[1,"app-arrow-content",2,"margin-bottom","16px"],["width","25","height","12","viewBox","0 0 25 12","fill","none","xmlns","http://www.w3.org/2000/svg",1,"app-arrow"],["d","M8 0L11.6955 4.4358L6.00625 5.41833L8 0ZM23.8481 9.67476C24.1112 9.59085 24.3924 9.73611 24.4764 9.99919C24.5603 10.2623 24.415 10.5436 24.1519 10.6275L23.8481 9.67476ZM24.1519 10.6275C19.9499 11.9677 16.4724 11.8045 13.7859 10.6124C11.0979 9.41955 9.26009 7.22192 8.29677 4.608L9.23508 4.2622C10.1173 6.65594 11.7813 8.62881 14.1915 9.69833C16.603 10.7685 19.8198 10.9595 23.8481 9.67476L24.1519 10.6275Z","fill","black"],[1,"pub-subtext"],[1,"explain-text",3,"customInnerHtml"],[1,"g-flag-margin",3,"flag"],[1,"pub-text"]],template:function(e,o){e&1&&(uT(0,ae$4,4,2,"div",0),Zi$3(1,"div",1),qd$2(),Zi$3(2,"svg",2),Eg$1(3,"path",3),kl$2(),Wd$2(),Zi$3(4,"span",4),ib(5),bb(6,"translate"),kl$2()(),Eg$1(7,"span",5),bb(8,"translate")),e&2&&(dT(o.pub().name?0:-1),AE(5),Ug$1(_b(6,3,o.hasPremium()?"root.ad_int_unlock_to_use_it":o.arrowTextNoPrem())),AE(2),Ig$1("customInnerHtml",Mb(8,5,o.explainTextKey(),o.explainTextParams())));},dependencies:[_$4,fe$8,r$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
920--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .pub-content[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:12px}[_nghost-%COMP%]   .pub-subtext[_ngcontent-%COMP%]{display:block;font-size:14px;line-height:20px;padding-left:30px}[_nghost-%COMP%]   .pub-text[_ngcontent-%COMP%]{font-size:14px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .app-arrow-content[_ngcontent-%COMP%]{display:flex;height:fit-content;position:relative}[_nghost-%COMP%]   .app-arrow[_ngcontent-%COMP%]{position:absolute;top:1px;margin-right:8px}[_nghost-%COMP%]   .explain-text[_ngcontent-%COMP%]{display:block;font-size:14px;line-height:20px}"]});}};var ee$3={name:"Dream Games, Ltd.",flag:"tr",noPremText:"root.need_became_premium_view_pub"};var te$5={name:"Royal Match",icon:"https://images.appmagic.rocks/?uri=https://play-lh.googleusercontent.com/qBdVfwRCsI4KM7qewhJ0AKZKQjyD-DdxPDcdDbsRMhNO9zrwbefggn1vGqRIDZA3fg",noAccessText:"root.ad_int_unlock_to_use_it",noPremText:"root.need_became_premium_view_app"};var ie$4={name:"Merge Mansion",icon:"https://images.appmagic.rocks/?uri=https://is1-ssl.mzstatic.com/image/thumb/Purple221/v4/4b/f7/22/4bf7221c-8470-81d5-d215-5438b66f73f9/AppIcon-0-0-1x_U007emarketing-0-7-0-85-220.png/0x64h.jpg",noAccessText:"root.unlock_liveops_to_use_it",noPremText:"root.need_became_premium_to_use_liveops"};var V$3=class t{constructor(){this.hasPremium=VV.required();this.arrowTextNoPrem=VV.required();this.arrowTextNoAccess=VV.required();this.app=VV.required();this.demoApps=VV.required();this.arrowText=Pb(()=>this.hasPremium()?this.arrowTextNoAccess():this.arrowTextNoPrem());this.explainTextKey=Pb(()=>this.demoApps().length>1?"root.would_you_see_preview_apps":"root.would_you_see_preview_app");this.explainTextParams=Pb(()=>{let[i,e]=this.demoApps();return e?{name1:i.name,name2:e.name}:{name:i.name}});}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["view-demo-app-section"]],inputs:{hasPremium:[1,"hasPremium"],arrowTextNoPrem:[1,"arrowTextNoPrem"],arrowTextNoAccess:[1,"arrowTextNoAccess"],app:[1,"app"],demoApps:[1,"demoApps"]},decls:9,vars:11,consts:[[1,"d-flex","flex-a-c",2,"margin-bottom","16px"],[1,"application-image",3,"title","fallbackImg"],[1,"app-arrow-content"],["width","33","height","9","viewBox","0 0 33 9","fill","none",1,"app-arrow"],["d","M-6.85609e-08 5.56849L4.39733 1.82726L5.43867 7.50607L-6.85609e-08 5.56849ZM32.7123 7.2669C32.9623 7.38412 33.0699 7.68184 32.9527 7.93187C32.8355 8.18189 32.5378 8.28955 32.2877 8.17233L32.7123 7.2669ZM32.2877 8.17233C24.516 4.52858 14.816 3.68326 4.50095 5.25124L4.35067 4.2626C14.7969 2.67468 24.7103 3.5152 32.7123 7.2669L32.2877 8.17233Z","fill","black"],[1,"app-text",3,"customInnerHtml"],[1,"explain-text",3,"customInnerHtml"]],template:function(e,o){e&1&&(Zi$3(0,"div",0),Eg$1(1,"img",1),Zi$3(2,"div",2),qd$2(),Zi$3(3,"svg",3),Eg$1(4,"path",4),kl$2(),Wd$2(),Eg$1(5,"span",5),bb(6,"translate"),kl$2()(),Eg$1(7,"span",6),bb(8,"translate")),e&2&&(AE(),Ig$1("title",o.app().name)("fallbackImg",o.app().icon_url),vg$1("height","64px")("width","64px"),AE(4),Ig$1("customInnerHtml",_b(6,6,o.arrowText())),AE(2),Ig$1("customInnerHtml",Mb(8,8,o.explainTextKey(),o.explainTextParams())));},dependencies:[fe$8,r$8,n$a,he$8],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .application-image[_ngcontent-%COMP%]{font-size:0;border-radius:12px;overflow:hidden;margin-right:12px;flex-shrink:0}[_nghost-%COMP%]   .app-arrow-content[_ngcontent-%COMP%]{display:flex;height:fit-content;position:relative}[_nghost-%COMP%]   .app-text[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:40px;font-size:14px;line-height:16px}[_nghost-%COMP%]   .app-arrow[_ngcontent-%COMP%]{position:absolute;top:1px;margin-right:8px}[_nghost-%COMP%]   .explain-text[_ngcontent-%COMP%]{display:block;font-size:14px;line-height:20px}"]});}};var pe$3=(t,i)=>i.name;
920function le$3(t,i){if(t&1&&Eg$1(0,"view-demo-pub-section",1),t&2){let e=NT();Ig$1("hasPremium",e.hasPremium)("demoPubs",e.displayedDemoPubs)("pub",e.pub)("arrowTextNoPrem",e.displayedDemoPubs[0].noPremText);}}function me$4(t,i){if(t&1&&Eg$1(0,"view-demo-app-section",2),t&2){let e=NT();Ig$1("arrowTextNoPrem",e.displayedDemoApps[0].noPremText)("arrowTextNoAccess",e.displayedDemoApps[0].noAccessText)("hasPremium",e.hasPremium)("app",e.displayedApp)("demoApps",e.displayedDemoApps);}}function se$4(t,i){if(t&1&&(Eg$1(0,"img",5),bb(1,"appIconSize")),t&2){let e=i.$implicit;Ig$1("title",e.name)("fallbackImg",Mb(1,4,e.icon,32)),vg$1("height","32px")("width","32px");}}function ce$4(t,i){if(t&1&&hT(0,se$4,2,7,"img",5,pe$3),t&2){let e=NT();gT(e.displayedDemoApps);}}var I$2=class t{constructor(){this.pricingClick=new tt$b;this.demoClick=new tt$b;this.closeClick=new tt$b;}ngOnInit(){this.displayedApp=this.app?this.app:this.liveOpsApp,this.displayedDemoApps=this.demoApps??[this.app?te$5:ie$4],this.displayedDemoPubs=this.demoPubs??[ee$3];}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["demo-warning-modal"]],inputs:{app:"app",liveOpsApp:"liveOpsApp",pub:"pub",hasPremium:"hasPremium",demoApps:"demoApps",demoPubs:"demoPubs"},outputs:{pricingClick:"pricingClick",demoClick:"demoClick",closeClick:"closeClick"},decls:15,vars:12,consts:[[1,"position-icon-close","g-icon-close",3,"click"],[1,"section-pub",3,"hasPremium","demoPubs","pub","arrowTextNoPrem"],[1,"section-app",3,"arrowTextNoPrem","arrowTextNoAccess","hasPremium","app","demoApps"],[1,"g-btn-select","prices-btn",3,"click"],[1,"g-btn-cancel","preview-btn",3,"click"],[1,"application-image-small",3,"title","fallbackImg"]],template:function(e,o){e&1&&(Zi$3(0,"div",0),_g$1("click",function(){return o.closeClick.emit()}),kl$2(),Zi$3(1,"header"),ib(2),bb(3,"translate"),kl$2(),Zi$3(4,"main"),uT(5,le$3,1,4,"view-demo-pub-section",1),uT(6,me$4,1,5,"view-demo-app-section",2),kl$2(),Zi$3(7,"footer")(8,"div",3),_g$1("click",function(){return o.pricingClick.emit()}),ib(9),bb(10,"translate"),kl$2(),Zi$3(11,"div",4),_g$1("click",function(){return o.demoClick.emit()}),ib(12),bb(13,"translate"),kl$2(),uT(14,ce$4,2,0),kl$2()),e&2&&(AE(2),Ug$1(_b(3,6,o.hasPremium?"root.you_do_not_have_access_to_this_tool":"root.you_are_not_premium_user")),AE(3),dT(o.pub?5:-1),AE(),dT(o.displayedApp?6:-1),AE(3),Ug$1(_b(10,8,"root.see_prices")),AE(3),Ug$1(_b(13,10,"root.see_preview")),AE(2),dT(o.displayedApp?14:-1));},dependencies:[fe$8,n$a,N$4,V$3,he$8,n$3],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
920--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:center;position:relative;background:var(--white);box-shadow:var(--shadow-l);padding:24px 32px 32px;max-width:483px}[_nghost-%COMP%]:not(.panel-mode){border-radius:16px;overflow:hidden}@media(max-width:576px){[_nghost-%COMP%]:not(.panel-mode){border-radius:0;overflow:initial}}@media(max-width:576px){[_nghost-%COMP%]{max-width:100%}}[_nghost-%COMP%]   .position-icon-close[_ngcontent-%COMP%]{top:24px;right:32px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{font-size:24px;line-height:28px;margin-bottom:16px;min-height:32px}[_nghost-%COMP%]   main[_ngcontent-%COMP%]{margin-bottom:24px}[_nghost-%COMP%]   main[_ngcontent-%COMP%]   .section-app[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   footer[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%}[_nghost-%COMP%]   footer[_ngcontent-%COMP%]   .prices-btn[_ngcontent-%COMP%], [_nghost-%COMP%]   footer[_ngcontent-%COMP%]   .preview-btn[_ngcontent-%COMP%]{height:auto;min-height:32px;white-space:nowrap}[_nghost-%COMP%]   footer[_ngcontent-%COMP%]   .prices-btn[_ngcontent-%COMP%]{margin-right:16px;margin-left:0}[_nghost-%COMP%]   footer[_ngcontent-%COMP%]   .preview-btn[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%]   footer[_ngcontent-%COMP%]   .application-image-small[_ngcontent-%COMP%]{font-size:0;border-radius:8px;overflow:hidden;margin-right:8px}"]});}};var oe$3="pricing";var W$5=class t{constructor(i,e,o,P){this.amDialogService=i;this.analyticsService=e;this.router=o;this.userService=P;this.isOpen=false;}open(i,e,o,P,ne){let U=i||o,D=U?[U.name]:e?[e.name]:[],g=new de$c;if(this.isOpen)return g;this.isOpen=true;let n=this.amDialogService.open(I$2,{containerClass:"am-dialog-modal-container",backdropClass:"am-dialog-backdrop-flex-j-c"});n.instance.app=i,n.instance.hasPremium=this.userService.isPremium(),n.instance.pub=e,n.instance.liveOpsApp=o,n.instance.demoPubs=P,n.instance.demoApps=ne;let A=new W$f;return A.add(n.instance.pricingClick.subscribe(()=>{this.analyticsService.send("demo_ad_int_see_pricing",D),this.router.navigate([oe$3]),g.next(false),n.dispose();})),A.add(n.instance.demoClick.subscribe(()=>{this.analyticsService.send("demo_ad_int_see_demo",D),g.next(true),n.dispose();})),A.add(n.instance.closeClick.subscribe(()=>{this.analyticsService.send("demo_ad_int_close",D),g.next(false),n.dispose();})),n.backdropClick().subscribe(()=>{this.analyticsService.send("demo_ad_int_close_backdrop",D),g.next(false),n.dispose();}),n.escEvent().subscribe(()=>{this.analyticsService.send("demo_ad_int_close_esc",D),g.next(false),n.dispose();}),n.afterClosed().subscribe(()=>{this.isOpen=false,A.unsubscribe();}),g}static{this.\u0275fac=function(e){return new(e||t)(me$b(y$5),me$b(L$3),me$b(F$4),me$b(ve$6))};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};
921var t$8=class a{static{this.valuesWithoutDay=["week","month"];}static{this.values=["day","week","month"];}static{this.calendarValues=["day","week","month","quarter","year"];}static getAggregation(e){return a.values.includes(e)?e:void 0}static getValuesWithoutDay(){return [...a.valuesWithoutDay]}static getValues(){return [...a.values]}static getCalendarValues(){return [...a.calendarValues]}static getSelectorValuesWithoutDay(){return a.getValuesWithoutDay().map(e=>({name:"datepicker."+e,value:e}))}static getSelectorValues(){return a.getValues().map(e=>({name:"datepicker."+e,value:e}))}static getSelectorCalendarValues(){return a.getCalendarValues().map(e=>({name:"datepicker."+e,shortName:"datepicker."+e+"_short",value:e}))}};var r$3=class a{static getShortUrlByType(e){switch(e){case "ad-intelligence-by-tag":return "ad-volume-by-tag";case "ad-intelligence-by-pub":return "ad-volume-by-publisher";case "ad-intelligence":return "ad-volume-by-app";case "similarity-aso":return "semantic-core";case "search-ads-by-keyword":return "apple-ads-by-keyword";case "search-ads-by-app":return "apple-ads-by-app";case "aso-by-app":return "store-search-ranking-by-app";case "aso-by-keyword":return "store-search-ranking-by-keyword";default:return e}}static getUrlByType(e){return `/dashboards/${a.getShortUrlByType(e)}`}static getUrlById(e){return `/dashboards/${e}`}};var u$3=class r{static{this.MinCarpuValue=.05;}static{this.premiumTypes=["downloads","revenue","cumulative_arpu"];}static{this.ascendingSortMetrics=["top_free","top_grossing","medianPlace"];}
921static isAscendingSortMetric(e){return r.ascendingSortMetrics.includes(e)}static{this.types=["revenue","downloads","cumulative_arpu","featuring"];}static sortTypes(e){let t=km$1(e);return t.sort((n,i)=>r.types.indexOf(n)-r.types.indexOf(i)),t}static getDefaultTypeByStatus(e=[],t,n,i){let l=e.filter(o=>!!o&&r.types.includes(o)),c=l.length===0?r.types:l,s;i?s=t:s=n;let a=[];return s.forEach(o=>{c.indexOf(o)===-1&&(a=[c[0]]);}),a.length?[a[0]]:[s[0]]}static getExistsType(e,t){return e?"revenue":t?"downloads":"revenue"}static isTopType(e){return e.indexOf("top")!==-1}static getTypeByItems(e,t){let n=t;switch(t){case "revenue":!e.some(i=>i.revenue)&&e.some(i=>i.downloads)&&(n="downloads");break;case "downloads":e.some(i=>i.revenue)&&!e.some(i=>i.downloads)&&(n="revenue");break}return n}static getDefaultType(e=[],t){return r.getDefaultTypeByStatus(e,["revenue","downloads"],["featuring"],t)}static getDefaultTypePublisher(e=[],t){return r.getDefaultTypeByStatus(e,["revenue","downloads"],["featuring"],t)}static overrideTypesForNonPremium(e,t){return t?e:["featuring"]}static filterTypesByNotPremium(e=[],t){return e.filter(n=>t||!t&&!r.premiumTypes.includes(n)?n:false)}static{this.\u0275fac=function(t){return new(t||r)};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var r$2=Object.freeze({maximumFractionDigits:2,minimumFractionDigits:0,prefix:"",suffix:"",specialFormatter:()=>null}),s$a=E$9(D$m({},r$2),{prefix:"$"}),d$8=E$9(D$m({},r$2),{minimumFractionDigits:2,suffix:"%"}),u$2=E$9(D$m({},r$2),{minimumFractionDigits:1,suffix:"%",specialFormatter:(a,e)=>a<.01?"<0.01%":`${e}%`}),b$1=E$9(D$m({},r$2),{specialFormatter:(a,e)=>a<0?`\u2212${e}`:`+${e}`}),W$4=E$9(D$m({},r$2),{specialFormatter:(a,e)=>a<0?`\u2212$${e}`:`+$${e}`}),S$2=E$9(D$m({},d$8),{specialFormatter:(a,e)=>a<0?`\u2212${e}%`:`+${e}%`}),p$5=E$9(D$m({},d$8),{maximumFractionDigits:1,minimumFractionDigits:1}),C$4=Object.freeze({revenue:s$a,web_shop_revenue:s$a,downloads:r$2,featuring:r$2,top_free:r$2,top_grossing:r$2,ad_spend:s$a,total_revenue:s$a,base_revenue:s$a,iap_revenue:s$a,dlc_revenue:s$a,revenue_current:s$a,revenue_previous:s$a,revenue_growth:W$4,ad_revenue:s$a,price_final:s$a,share_paid:d$8,share_organic:d$8,paid_downloads:r$2,organic_downloads:r$2,rating:d$8,share_cross:d$8,affinity_score:r$2,confidence_score_cross:r$2,confidence_score_main:r$2,revenue_share:u$2,offer_revenue:s$a,price:s$a,quantity_share:u$2,first_purchase_quantity_share:u$2,conversion_share:u$2,repeated_purchase_rate:u$2,payer_arppu:s$a,arppu:E$9(D$m({},s$a),{minimumFractionDigits:2}),transactions:E$9(D$m({},r$2),{minimumFractionDigits:2}),high_payers:u$2,mid_payers:u$2,low_payers:u$2,revenue_growth_percent:S$2,downloads_growth_percent:S$2,mau_growth_percent:S$2,dau_growth_percent:S$2,percent:d$8,retention_1:p$5,retention_7:p$5,retention_14:p$5,retention_30:p$5,retention_60:p$5,retention_90:p$5,retention_180:p$5,retention_360:p$5,cumulative_arpu:E$9(D$m({},s$a),{minimumFractionDigits:2,specialFormatter:a=>a<u$3.MinCarpuValue&&a>0?`<$${u$3.MinCarpuValue.toLocaleString()}`:null}),releaseDate:r$2,impression_score:r$2,impression:r$2,arp_dau:E$9(D$m({},s$a),{minimumFractionDigits:2,specialFormatter:a=>a<.01?`<$${.01.toLocaleString()}`:null}),dau:r$2,mau:r$2,wau:r$2,copies_sold:r$2,followers:r$2,price_max:s$a,top_grossing_position:r$2,total_reviews:r$2,top_downloads:r$2,paid_content_revenue:s$a,new_players:r$2,new_players_cum:r$2,new_players_purch_cum:r$2,copies_sold_cum:r$2,place_top_dls:r$2,place_top_rev:r$2,subscriptions:r$2,active_wishlists:r$2,converted_wishlists:r$2,new_wishlists:r$2,PCU:r$2,sov:E$9(D$m({},d$8),{specialFormatter:a=>a>0&&a<1?"<1%":null}),popularity:E$9(D$m({},r$2),{minimumFractionDigits:2}),score:E$9(D$m({},r$2),{minimumFractionDigits:2}),medianPlace:r$2,weight_avg_session_length:E$9(D$m({},r$2),{minimumFractionDigits:2,suffix:" min"}),weight_avg_session_times:E$9(D$m({},r$2),{minimumFractionDigits:2}),downloads_current:r$2,downloads_previous:r$2,downloads_growth:b$1,dau_growth:b$1,dau_current:r$2,dau_previous:r$2,mau_current:r$2,mau_previous:r$2,mau_growth:b$1,place_current:r$2,place_growth:r$2,uniq_streamers:r$2,peak_viewers:r$2,yt_uniq_streamers:r$2,yt_peak_viewers:r$2,yt_views:r$2,avg_playtime_hours:E$9(D$m({},r$2),{suffix:" hrs"})});var w$1=class a{constructor(e,i,t,o,m){this.userService=e;this.translate=i;this.router=t;this.route=o;
921this.urlSerializer=m;this.isAggregationTransferred=false;this.ScreenParamsKey="screenParams";this.defaultScreenParams={appStoreIds:[],types:[],publisherStoreIds:[],stores:[],store:void 0,countries:[],categories:[],adOrigin:[],adTypes:[],platforms:[],datePeriod:void 0,dateStart:void 0,dateEnd:void 0,aggregation:void 0,chartType:void 0,releaseIds:[]};}static renderValues(e,i){let t=C$4[i]||r$2,o=e??NaN,m=Math.abs(o).toLocaleString(void 0,{maximumFractionDigits:t.maximumFractionDigits,minimumFractionDigits:t.minimumFractionDigits}),l=t.specialFormatter(o,m);return l!==null?l:o<0?`\u2212${t.prefix}${m}${t.suffix}`:`${t.prefix}${m}${t.suffix}`}static getPublisherId(e){return e?[m$7.getPubIdFromStoreId(e)]:[]}static getStoreIds(e){return e?[m$7.getAppIdFromStoreId(e)]:[]}static getTypes(e){return u$3.types.includes(e)?[e]:[]}static getStore(e){let i=Number(e);return g$6.defaultStores.some(t=>t===i)?[i]:[]}static getTags(e){if(e)return Array.isArray(e)?e:[e]}static getParamsByQueryString(e){return {publisherStoreIds:a.getPublisherId(e.publisherStoreIds),types:a.getTypes(e.metrics||e.types),appStoreIds:a.getStoreIds(e.appStoreIds),stores:a.getStore(e.stores),store:e.store,sortColumn:e.sortColumn,apps:e.apps?[Number(e.apps)]:[],countries:e.countries?[e.countries]:[],categories:e.categories?[e.categories]:[],tags:a.getTags(e.tags),datePeriod:e.datePeriod,dateStart:e.dateStart?Number(e.dateStart):void 0,dateEnd:e.dateEnd?Number(e.dateEnd):void 0,aggregation:t$8.getAggregation(e.aggregation),keywords:e.keywords}}static getPublisherIdsBySavedScreen(e){return e.data.selectors.publisherStoreIds}static getAppIds(e,i){if(e.appStoreIds.length>0)return e.appStoreIds;if(Object.values(i$c).includes(i.id))return [];let t=i.data.selectors.appStoreIds;return t.length>0?t:[]}static getPublisherIds(e,i){if(e.publisherStoreIds.length>0)return e.publisherStoreIds;if(Object.values(i$c).includes(i.id))return [];let t=a.getPublisherIdsBySavedScreen(i);return t.length>0?t:[]}static getAggregationFromDate(e,i="day"){return kt$3.diff(new Date,new Date(e),"d")>365?"month":i}static getAggregationByApps(e,i){let t="day",o=e.filter(m=>m[i]).map(m=>m[i]).sort();return o.length===0?t:a.getAggregationFromDate(o[0],t)}static getAggregationByMinReleaseDate(e){let i="day",t=e.filter(o=>o.min_release_date).map(o=>o.min_release_date).sort();return t.length===0?i:kt$3.diff(new Date,new Date(t[0]),"d")>365?"month":i}static getDefaultName(e){return e.instant("screen.untitled")}getNewScreen(e){return {id:e,created_at:"",shared:false,updated_at:"",user_id:this.userService.user.getValue()?this.userService.user.getValue().id:null,type:e,data:{},name:a.getDefaultName(this.translate)}}openWindowWithParams(e,i,t){let o=["dashboards",r$3.getShortUrlByType(e)],m=this.router.createUrlTree(o);if(i){let l=window.open(this.urlSerializer.serialize(m),"_blank");l[this.ScreenParamsKey]=t;}else this.router.navigateByUrl(s$k,{skipLocationChange:true}).then(()=>{window[this.ScreenParamsKey]=t,this.router.navigate(o,{replaceUrl:true});});}goToScreen(e,i,t=true){this.openWindowWithParams(e,t,i);}openUrlWithScreenParams(e,i,t){if(t){let o=window.open(this.urlSerializer.serialize(e),"_blank");o[this.ScreenParamsKey]=i;return}window[this.ScreenParamsKey]=i,this.router.navigateByUrl(e);}getScreenParams(){let e=window,i=e[this.ScreenParamsKey],t;i&&(t=i,delete e[this.ScreenParamsKey]);let o=this.route.snapshot.queryParams;if(!i&&o){t=a.getParamsByQueryString(o);let m={};Object.keys(o).forEach(l=>m[l]=void 0),this.router.navigate([],{queryParams:m,queryParamsHandling:"merge",relativeTo:this.route});}return Ss$1(D$m({},t),D$m({},this.defaultScreenParams))}static{this.\u0275fac=function(i){return new(i||a)(me$b(ve$6),me$b(x$d),me$b(F$4),me$b(W$6),me$b(ne$5))};}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var d$7=[{name:"Dream Games, Ltd.",flag:"tr",noPremText:"root.need_became_premium_view_pub_dashboard"},{name:"Microfun Limited",flag:"cn"}];var h$3=class t{constructor(){this.warningModal=D$l(W$5);this.screensService=D$l(w$1);this.userService=D$l(ve$6);this.router=D$l(F$4);}open(r,e,o=true){if(this.userService.isGuest()){this.openLogin(e,o);return}if(this.userService.isPremium()){this.screensService.goToScreen("publisher",e,o);return}this.warningModal.open(null,r,null,d$7).pipe(Mu$2(),Tn$3(n=>n)).subscribe(()=>this.goToScreen(e,o));}goToScreen(r,e){let o=this.userService.isPremium()?r:E$9(D$m({},r),{publisherStoreIds:[],appStoreIds:[],apps:[]});this.screensService.goToScreen("publisher",o,e);}openLogin(r,e){let o=r$3.getUrlByType("publisher"),n=this.router.createUrlTree([o$8],{queryParams:{stateTo:o}});this.screensService.openUrlWithScreenParams(n,r,e);}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};var t$7="ad-intelligence",e$5="/ad-intelligence";var a$6=class n{constructor(){this.isBigSize=false;}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["wechat-qr"]],hostVars:2,hostBindings:function(e,o){e&2&&Pg$1("big-size",o.isBigSize);},inputs:{isBigSize:"isBigSize"}
921,decls:4,vars:0,consts:[[1,"qr-wrap"],[1,"nowrap"],["src","/assets/angular2/img/wechat-qr/qr-appmagic.png"]],template:function(e,o){e&1&&(Ol$2(0,"div",0)(1,"span",1),ib(2,"AppMagic\u516C\u4F17\u53F7"),Ll$2(),Dg$1(3,"img",2),Ll$2());},dependencies:[fe$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
921--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex}@media(max-width:576px){[_nghost-%COMP%]{flex-direction:column}}[_nghost-%COMP%]   .qr-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}@media(max-width:576px){[_nghost-%COMP%]   .qr-wrap[_ngcontent-%COMP%]{margin-bottom:24px}}[_nghost-%COMP%]   .qr-wrap[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-bottom:4px;font-weight:500;font-size:12px;line-height:14px}[_nghost-%COMP%]   .qr-wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:90px;height:90px}.big-size[_nghost-%COMP%]   .qr-wrap[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-bottom:12px;font-size:16px;line-height:18px}.big-size[_nghost-%COMP%]   .qr-wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:160px;height:160px}"]});}};var l$5=class n{constructor(){this.closeDialog=new tt$b;}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["wechat-qr-modal"]],outputs:{closeDialog:"closeDialog"},decls:2,vars:1,consts:[[1,"g-icon-close","visibility-icon-close",3,"click"],[3,"isBigSize"]],template:function(e,o){e&1&&(Zi$3(0,"i",0),_g$1("click",function(){return o.closeDialog.emit()}),kl$2(),Eg$1(1,"wechat-qr",1)),e&2&&(AE(),Ig$1("isBigSize",true));},dependencies:[fe$8,a$6],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
921--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{background:var(--white);outline:none;position:relative;width:fit-content;text-align:center;display:block;box-shadow:var(--shadow-l)}.panel-mode[_nghost-%COMP%]{max-height:var(--height);padding-top:60px;width:100%;min-height:100%;box-shadow:none}@media(max-width:767px)and (orientation:landscape){.panel-mode[_nghost-%COMP%]{padding-top:60px}}.panel-mode[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:block}.panel-mode[_nghost-%COMP%]   .panel-title[_ngcontent-%COMP%]{display:flex}.panel-mode[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{display:none}.panel-mode[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{max-height:calc(var(--height) - 60px - 65px)}@media(max-width:767px)and (orientation:landscape){.panel-mode[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{max-height:calc(var(--height) - 65px)}}.panel-mode[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{border-top:1px solid var(--divider);text-align:right;display:flex;justify-content:space-between;position:fixed;bottom:0;padding:16px;height:65px;background:var(--surface-raised);width:100%;border-top:1px solid var(--grey-40)}[_nghost-%COMP%]:not(.panel-mode){border-radius:16px;overflow:hidden}@media(max-width:576px){[_nghost-%COMP%]:not(.panel-mode){border-radius:0;overflow:initial}}@media(max-width:576px){[_nghost-%COMP%]{max-width:var(--height);height:var(--height);width:100vw;display:flex;flex-direction:column;align-items:center;justify-content:center}[_nghost-%COMP%]   wechat-qr[_ngcontent-%COMP%]{align-items:center;justify-content:center;padding:16px}}[_nghost-%COMP%]   wechat-qr[_ngcontent-%COMP%]{padding:48px}"]});}};var D$4=class n{constructor(){this.analyticsService=D$l(L$3);this.amDialogService=D$l(y$5);}open(){this.analyticsService.send("wechat_qr_popup_open");let t=this.amDialogService.open(l$5,{containerClass:"",backdropClass:"am-dialog-backdrop-center"}),e=new W$f;e.add(t.instance.closeDialog.subscribe(()=>{this.analyticsService.send("wechat_qr_popup_close"),t.dispose();})),e.add(t.backdropClick().subscribe(()=>{this.analyticsService.send("wechat_qr_popup_close_backdrop"),t.dispose();})),e.add(t.escEvent().subscribe(()=>{this.analyticsService.send("wechat_qr_popup_close_esc"),t.dispose();})),t.afterClosed().subscribe(()=>{e.unsubscribe();});}static{this.\u0275fac=function(e){return new(e||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};var a$5=class e{constructor(){this.activeDashboardSignal=fi$4(void 0);this.activeDashboard=Pb(()=>this.activeDashboardSignal());}set(t){this.activeDashboardSignal.set(t);}static{this.\u0275fac=function(r){return new(r||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var f$7=class r{constructor(t){this.elementRef=t;this.actionFn=new tt$b;}onClick(t){let e=t.target.getAttribute("href"),i=this.elementRef.nativeElement.getAttribute("href"),n=e||i;n&&this.actionFn.emit(n);}static{this.\u0275fac=function(e){return new(e||r)(Jr$4(Gr$4))};}static{this.\u0275dir=dw({type:r,selectors:[["","href-click",""]],hostBindings:function(e,i){e&1&&_g$1("click",function(u){return i.onClick(u)});},outputs:{actionFn:"href-click"}});}};var a$4=class t{static group(E,r){let n=E.reduce((e,L)=>{let o=String(L[r]);return (e[o]=e[o]||[]).push(L),e},{});return Object.keys(n).map(e=>({key:e==="undefined"?"":e,value:n[e]}))}transform(E,r){return t.group(E,r)}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275pipe=fw({name:"groupBy",type:t,pure:true});}};var v$3=H$d(c=>{Object.defineProperty(c,"__esModule",{value:true});var y=function(e){if("getBBox"in e){var t=e.getBBox();return Object.freeze({height:t.height,left:0,top:0,width:t.width})}else {var r=window.getComputedStyle(e);return Object.freeze({height:parseFloat(r.height||"0"),left:parseFloat(r.paddingLeft||"0"),top:parseFloat(r.paddingTop||"0"),width:parseFloat(r.width||"0")})}};c.ContentRect=y;});var p$4=H$d(f=>
921{Object.defineProperty(f,"__esModule",{value:true});var z=v$3(),E=(function(){function e(t){this.target=t,this.$$broadcastWidth=this.$$broadcastHeight=0;}return Object.defineProperty(e.prototype,"broadcastWidth",{get:function(){return this.$$broadcastWidth},enumerable:true,configurable:true}),Object.defineProperty(e.prototype,"broadcastHeight",{get:function(){return this.$$broadcastHeight},enumerable:true,configurable:true}),e.prototype.isActive=function(){var t=z.ContentRect(this.target);return !!t&&(t.width!==this.broadcastWidth||t.height!==this.broadcastHeight)},e})();f.ResizeObservation=E;});var b=H$d(h=>{Object.defineProperty(h,"__esModule",{value:true});var m=v$3(),_=(function(){function e(t){this.target=t,this.contentRect=m.ContentRect(t);}return e})();h.ResizeObserverEntry=_;});var M$3=H$d(s=>{Object.defineProperty(s,"__esModule",{value:true});var F=p$4(),k=b(),n=[],R=(function(){function e(t){this.$$observationTargets=[],this.$$activeTargets=[],this.$$skippedTargets=[];var r=A(t);if(r)throw TypeError(r);this.$$callback=t;}return e.prototype.observe=function(t){var r=g("observe",t);if(r)throw TypeError(r);var i=l(this.$$observationTargets,t);i>=0||(this.$$observationTargets.push(new F.ResizeObservation(t)),j(this));},e.prototype.unobserve=function(t){var r=g("unobserve",t);if(r)throw TypeError(r);var i=l(this.$$observationTargets,t);i<0||(this.$$observationTargets.splice(i,1),this.$$observationTargets.length===0&&$(this));},e.prototype.disconnect=function(){this.$$observationTargets=[],this.$$activeTargets=[],$(this);},e})();s.ResizeObserver=R;function j(e){var t=n.indexOf(e);t<0&&(n.push(e),P());}function $(e){var t=n.indexOf(e);t>=0&&(n.splice(t,1),D());}function A(e){if(typeof e>"u")return "Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.";if(typeof e!="function")return "Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function."}function g(e,t){if(typeof t>"u")return "Failed to execute '"+e+"' on 'ResizeObserver': 1 argument required, but only 0 present.";if(!(t&&t.nodeType===window.Node.ELEMENT_NODE))return "Failed to execute '"+e+"' on 'ResizeObserver': parameter 1 is not of type 'Element'."}function l(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return  -1}var O=function(e){n.forEach(function(t){t.$$activeTargets=[],t.$$skippedTargets=[],t.$$observationTargets.forEach(function(r){if(r.isActive()){var i=T(r.target);i>e?t.$$activeTargets.push(r):t.$$skippedTargets.push(r);}});});},C=function(){return n.some(function(e){return !!e.$$activeTargets.length})},q=function(){return n.some(function(e){return !!e.$$skippedTargets.length})},x=function(){var e=1/0;return n.forEach(function(t){if(t.$$activeTargets.length){var r=[];t.$$activeTargets.forEach(function(i){var u=new k.ResizeObserverEntry(i.target);r.push(u),i.$$broadcastWidth=u.contentRect.width,i.$$broadcastHeight=u.contentRect.height;var d=T(i.target);d<e&&(e=d);}),t.$$callback(r,t),t.$$activeTargets=[];}}),e},L=function(){var e=new window.ErrorEvent("ResizeLoopError",{message:"ResizeObserver loop completed with undelivered notifications."});window.dispatchEvent(e);},T=function(e){for(var t=0;e.parentNode;)e=e.parentNode,t+=1;return t},N=function(){var e=0;for(O(e);C();)e=x(),O(e);q()&&L();},o,P=function(){o||w();},w=function(){o=window.requestAnimationFrame(function(){N(),w();});},D=function(){o&&!n.some(function(e){return !!e.$$observationTargets.length})&&(window.cancelAnimationFrame(o),o=void 0);},H=function(){return window.ResizeObserver=R};s.install=H;});var g$4=class m{static{this.getResourceUrl=n=>`/api/v2/image-thumbnail?${new URLSearchParams({url:n})}`;}static getImgUrl(n,i={}){let e=a$g.getPixelRatio(),t=`${v$6.getDomain()}${m.getResourceUrl(n)}`;return i.width&&(t+=`&${new URLSearchParams({width:(i.width*e).toString()})}`),i.height&&(t+=`&${new URLSearchParams({height:(i.height*e).toString()})}`),i.minWidth&&(t+=`&${new URLSearchParams({minWidth:(i.minWidth*e).toString()})}`),i.minHeight&&(t+=`&${new URLSearchParams({minHeight:(i.minHeight*e).toString()})}`),t}};var s$9=class a{constructor(){this.stopPropagation=VV(false,{transform:QV});this.stopImmediate=VV(false,{transform:QV});this.preventDefault=VV(false,{transform:QV});}onClick(t){this.preventDefault()&&t.preventDefault(),this.stopPropagation()&&t.stopPropagation(),this.stopImmediate()&&t.stopImmediatePropagation();}static{this.\u0275fac=function(o){return new(o||a)};}static{this.\u0275dir=dw({type:a,selectors:[["","stopImmediate",""],["","stopPropagation",""],["","preventDefault",""]],hostBindings:function(o,p){o&1&&_g$1("click",function(l){return p.onClick(l)});},inputs:{stopPropagation:[1,"stopPropagation"],stopImmediate:[1,"stopImmediate"],preventDefault:[1,"preventDefault"]}});}};var o$7=class o{static isAppleVideo(e){return e.indexOf("apple.com")!==-1}static isYoutube(e){return e.indexOf("youtube")!==-1}static isWorkPlayType(e){return e.canPlayType("application/x-mpegURL")!==""}
921static getYoutubeThumbnail(e){let i,t=/youtube\.com.*(\?v=|\/embed\/)(.{11})/.exec(e);return t?i=t.pop():(t=/youtu.be\/(.{11})/.exec(e),t&&(i=t.pop())),`https://img.youtube.com/vi/${i}/mqdefault.jpg`}};
922var i$5=(e=>(e.image="image",e.video="video",e.iframe="iframe",e))(i$5||{});var Zt$1=class n{constructor(){this.videoEndEvent=new tt$b;}ended(){this.videoEndEvent.emit();}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275dir=dw({type:n,selectors:[["","videoEndEvent",""]],hostBindings:function(t,i){t&1&&_g$1("ended",function(){return i.ended()});},outputs:{videoEndEvent:"videoEndEvent"}});}};var ps=n=>({onOpen:e=>{n("broken_ads_report_open",e);},closeEsc:e=>{n("broken_ads_report_close_esc",e);},closeBackdrop:e=>{n("broken_ads_report_close_backdrop",e);},closeApply:e=>{n("broken_ads_report_send",e);},closeCancel:e=>{n("broken_ads_report_close_cancel",e);},close:e=>{n("broken_ads_report_close_cancel",e);}});var qt$1=class n{constructor(){this.httpClient=D$l(Ue$7);}adsIssue(e,t,i,s){return this.httpClient.post(`${C$8.baseUrl}/api/v2/support/not-visible-creative`,{url:e,type:t,report_wrong_app:i,report_ads_problem:s})}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};var Zo=["*"],Kt$1=class n{constructor(){this.size=16;}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["am-radio-btn"]],inputs:{size:"size"},ngContentSelectors:Zo,decls:7,vars:4,consts:[[1,"d-flex","width-100","text-overflow"],[1,"circle-container"],[1,"outer-circle"],[1,"inner-circle"],[1,"radio-content","text-overflow"],[1,"radio-content-value"]],template:function(t,i){t&1&&(AT(),Ol$2(0,"div",0)(1,"span",1),Dg$1(2,"span",2)(3,"span",3),Ll$2(),Ol$2(4,"span",4)(5,"span",5),RT(6),Ll$2()()()),t&2&&Pg$1("size-16",i.size===16)("size-24",i.size===24);},styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
922--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{position:relative;display:flex;min-width:70px;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;--enable-color: var(--yellow-70);--disble-color: rgba(153, 153, 153, .6);--lock-color: rgba(153, 153, 153, .6)}.check[_nghost-%COMP%]   .outer-circle[_ngcontent-%COMP%]{border-color:var(--enable-color)}.check[_nghost-%COMP%]   .inner-circle[_ngcontent-%COMP%]{background-color:var(--enable-color);transform:scale(.5);opacity:1}.lock[_nghost-%COMP%]{cursor:default}.lock[_nghost-%COMP%]   .inner-circle[_ngcontent-%COMP%]{background:var(--grey-50)}.lock[_nghost-%COMP%]   .outer-circle[_ngcontent-%COMP%]{background:var(--grey-30);border-color:var(--grey-40)}.cursor-pointer[_nghost-%COMP%]{cursor:pointer}[_nghost-%COMP%]   .size-16[_ngcontent-%COMP%]{font-size:14px;line-height:16px;--size: 16px}[_nghost-%COMP%]   .size-16[_ngcontent-%COMP%]   .outer-circle[_ngcontent-%COMP%]{height:var(--size);width:var(--size)}[_nghost-%COMP%]   .size-16[_ngcontent-%COMP%]   .inner-circle[_ngcontent-%COMP%]{height:var(--size);width:var(--size)}[_nghost-%COMP%]   .size-16[_ngcontent-%COMP%]   .circle-container[_ngcontent-%COMP%]{width:var(--size);min-width:var(--size)}[_nghost-%COMP%]   .size-24[_ngcontent-%COMP%]{font-size:16px;line-height:18px;--size: 24px}[_nghost-%COMP%]   .size-24[_ngcontent-%COMP%]   .outer-circle[_ngcontent-%COMP%]{height:var(--size);width:var(--size)}[_nghost-%COMP%]   .size-24[_ngcontent-%COMP%]   .inner-circle[_ngcontent-%COMP%]{height:var(--size);width:var(--size)}[_nghost-%COMP%]   .size-24[_ngcontent-%COMP%]   .circle-container[_ngcontent-%COMP%]{width:var(--size);min-width:var(--size)}[_nghost-%COMP%]   .outer-circle[_ngcontent-%COMP%]{background-color:var(--white);display:block;left:0;position:absolute;top:0;transition:border-color ease .28s;border-width:2px;border-style:solid;border-radius:50%;border-color:var(--grey-50)}[_nghost-%COMP%]   .inner-circle[_ngcontent-%COMP%]{background-color:var(--yellow-70);border-radius:50%;display:block;left:0;position:absolute;top:0;opacity:0;transition:ease .28s;transform:scale(.001)}[_nghost-%COMP%]   .radio-content[_ngcontent-%COMP%]{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[_nghost-%COMP%]   .radio-content-value[_ngcontent-%COMP%]{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:normal}"]});}};var Qt$1=class n{constructor(){this.closeClick=jV();this.cancelClick=jV();this.reportClick=jV();this.wrongAppCause=fi$4(false);this.adsProblemCause=fi$4(false);}report(){!this.wrongAppCause()&&!this.adsProblemCause()||this.reportClick.emit({reportWrongApp:this.wrongAppCause(),reportAdsProblem:this.adsProblemCause()});}changeWrongAppCause(){this.adsProblemCause.set(false),this.wrongAppCause.set(!this.wrongAppCause());}changeAdsProblemCause(){this.wrongAppCause.set(false),this.adsProblemCause.set(!this.adsProblemCause());}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["ads-report-modal"]],outputs:{closeClick:"closeClick",cancelClick:"cancelClick",reportClick:"reportClick"},decls:29,vars:31,consts:[[1,"g-icon-close","position-icon-close",3,"click"],[1,"radio-value",3,"click"],[1,"g-btn-cancel",3,"click"],[1,"g-btn-select",3,"click","hotkey-click"]],template:function(t,i){t&1&&(Zi$3(0,"i",0),_g$1("click",function(){return i.closeClick.emit()}),kl$2(),Zi$3(1,"header")(2,"span"),ib(3),bb(4,"translate"),kl$2()(),Zi$3(5,"main")(6,"am-radio-btn",1),_g$1("click",function(){return i.changeAdsProblemCause()}),ib(7),bb(8,"translate"),kl$2(),Zi$3(9,"span"),ib(10),bb(11,"translate"),kl$2(),Zi$3(12,"ul")(13,"li"),ib(14),bb(15,"translate"),kl$2(),Zi$3(16,"li"),ib(17),bb(18,"translate"),kl$2()(),Zi$3(19,"am-radio-btn",1),_g$1("click",function(){return i.changeWrongAppCause()}),ib(20),bb(21,"translate"),kl$2()(),Zi$3(22,"footer")(23,"button",2),_g$1("click",function(){return i.cancelClick.emit()}),ib(24),bb(25,"translate"),kl$2(),Zi$3(26,"button",3),_g$1("click",function(){return i.report()}),ib(27),bb(28,"translate"),kl$2()()),t&2&&(AE(3),Ug$1(_b(4,15,"adIntelligence.report_issue")),AE(3),Pg$1("check",i.adsProblemCause()),AE(),jl$2(" ",_b(8,17,"adIntelligence.checkbox_ads_problem")," "),AE(3),Ug$1(_b(11,19,"adIntelligence.report_list")),AE(4),Ug$1(_b(15,21,"adIntelligence.report_list_1")),AE(3),Ug$1(_b(18,23,"adIntelligence.report_list_2")),AE(2),Pg$1("check",i.wrongAppCause()),AE(),jl$2(" ",_b(21,25,"adIntelligence.checkbox_wrong_app")," "),AE(4),Ug$1(_b(25,27,"buttons.cancel")),AE(2),Pg$1("disabled",!i.wrongAppCause()&&!i.adsProblemCause()),Ig$1("hotkey-click",13),AE(),Ug$1(_b(28,29,"adIntelligence.report_btn")));},dependencies:[fe$8,s$h,Kt$1,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
922--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:24px;background:var(--white);position:relative}@media(max-width:576px){[_nghost-%COMP%]{width:100%;justify-content:center;height:calc(100vh - 65px)}}[_nghost-%COMP%]   .radio-value[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:16px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{position:relative;margin-bottom:20px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:24px;line-height:30px}[_nghost-%COMP%]   footer[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end}@media(max-width:576px){[_nghost-%COMP%]   footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;position:fixed;bottom:0;padding:16px;height:65px;background:var(--surface-raised);width:100%;border-top:1px solid var(--grey-40);left:0;right:0}}.position-icon-close[_ngcontent-%COMP%]{top:12px;right:12px}"]});}};var Xt$1=class n{constructor(){this.advUrl=VV.required();this.url=VV.required();this.type=VV.required();this.supportResource=D$l(qt$1);this.analyticsService=D$l(L$3);this.amDialogService=D$l(y$5);this.localStorageService=D$l(xt$5);this.isReported=fi$4(false);this.isIssueSaved=fi$4(false);this.ReportedIssuesKey="ads_reported_issues";this.analytics=ps((e,t)=>this.analyticsService.send(e,t));}static isIssueReported(e,t){return !!e.find(i=>Tu$1(i,t))}ngOnInit(){this.updateIsIssueSavedStatus();}ngOnChanges(e){e.type&&!e.type.firstChange&&(this.updateIsIssueSavedStatus(),this.isReported.set(this.isIssueSaved()));}updateIsIssueSavedStatus(){let e=this.getReportedIssues(),t={url:this.advUrl(),type:this.t
922ype()};this.isIssueSaved.set(n.isIssueReported(e,t));}getReportedIssues(){let e=this.localStorageService.get(this.ReportedIssuesKey);return e?JSON.parse(e):[]}updateReportedIssue(e){this.localStorageService.set(this.ReportedIssuesKey,JSON.stringify(e));}reportDialog(e){if(e.stopPropagation(),this.isReported()||this.isIssueSaved())return;this.analytics.onOpen([]);let t=this.amDialogService.open(Qt$1,{containerClass:"ads-report-dialog-container",backdropClass:"am-dialog-backdrop-center",backdropOutClass:"",backdropInClass:"",dialogInClass:"",dialogOutClass:""});t.backdropClick().subscribe(()=>{this.analytics.closeBackdrop([]),t.dispose();}),t.escEvent().subscribe(s=>{s.stopPropagation(),s.preventDefault(),this.analytics.closeEsc([]),t.dispose();});let i=new W$f;i.add(t.instance.closeClick.subscribe(()=>{this.analytics.close([]),t.dispose();})),i.add(t.instance.cancelClick.subscribe(()=>{this.analytics.closeCancel([]),t.dispose();})),i.add(t.instance.reportClick.subscribe(s=>{this.analytics.closeApply([]),this.clickReport(s.reportWrongApp,s.reportAdsProblem),t.dispose();})),t.afterClosed().subscribe(()=>i.unsubscribe());}postAdsIssie(e,t){let i=this.type()==="iframe"?"html":this.type();this.supportResource.adsIssue(this.url(),i,e,t).subscribe();}clickReport(e,t){if(this.isReported()||this.isIssueSaved())return;
922let i=this.getReportedIssues(),s={url:this.advUrl(),type:this.type()};i.push(s),this.updateReportedIssue(i),this.postAdsIssie(e,t),this.isReported.set(true);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["broken-ads-alert"]],hostVars:4,hostBindings:function(t,i){t&1&&_g$1("click",function(r){return i.reportDialog(r)}),t&2&&Pg$1("reported",i.isReported())("hide",i.isIssueSaved());},inputs:{advUrl:[1,"advUrl"],url:[1,"url"],type:[1,"type"]},features:[Ev$1],decls:3,vars:3,consts:[["width","16px","src","/assets/angular2/img/intelligence/note-icon.svg"],[1,"d-flex","flex-wrap","flex-j-c",3,"customInnerHtml"]],template:function(t,i){t&1&&(Eg$1(0,"img",0)(1,"span",1),bb(2,"translate")),t&2&&(AE(),Ig$1("customInnerHtml",_b(2,1,i.isReported()?"errors.ads_issue_reported":"errors.ads_report_btn")));},dependencies:[fe$8,r$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
922--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;opacity:.5;border:1px solid var(--white);border-radius:13px;min-height:25px;color:var(--white);white-space:nowrap;padding:2px 12px 2px 5px;cursor:pointer}.reported[_nghost-%COMP%]{cursor:default!important}.hide[_nghost-%COMP%]{display:none;pointer-events:none}[_nghost-%COMP%]   span[_ngcontent-%COMP%]{margin-left:8px;white-space:normal;line-height:16px}"]});}};var fs=J$k(M$3());var Jt$1=class n{constructor(){this.loaded=new tt$b;this.crossDomainRedirect=new tt$b;this.element=D$l(Gr$4);this.firstLoad=true;this.handleLoadIframe=()=>{let e=this.element.nativeElement.contentDocument?.defaultView??null;!e&&!this.firstLoad&&this.crossDomainRedirect.emit(),this.firstLoad=false,this.loaded.emit(e),this.loaded.complete();};}ngAfterViewInit(){this.element?.nativeElement?.addEventListener("load",this.handleLoadIframe);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275dir=dw({type:n,selectors:[["","iframeHooks",""]],outputs:{loaded:"loaded",crossDomainRedirect:"crossDomainRedirect"}});}};var ei$2=class ei{static getDirection(e,t){return Math.abs(t)>Math.abs(e)?t>0?"top":"bottom":e>0?"left":"right"}};var et$2=class n{constructor(){this.amSwipeTarget=VV(null);let e=D$l(Gr$4).nativeElement,t=D$l(jn$2);this.amSwipe=F$9(this.amSwipeTarget).pipe(Ru$2(i=>n.listen(i??e,i??t)));}static listen(e,t){let{timeout:i,threshold:s}=l$c;return iy(Ns$2(e,"touchstart",{passive:true}),Ns$2(t,"touchend")).pipe(Su$2(),Tn$3(([r,o])=>!!r.touches.length&&r.touches[0]?.identifier===o.changedTouches[0]?.identifier),ge$9(([r,o])=>{let a=r.touches[0]?.clientX??0,l=r.touches[0]?.clientY??0,c=o.changedTouches[0]?.clientX??0,h=o.changedTouches[0]?.clientY??0,u=a-c,x=l-h,b=o.timeStamp-r.timeStamp;return (Math.abs(u)>s||Math.abs(x)>s)&&b<i?{direction:ei$2.getDirection(u,x),events:[r,o]}:null}),Tn$3(Boolean))}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275dir=dw({type:n,selectors:[["","amSwipe",""]],inputs:{amSwipeTarget:[1,"amSwipeTarget"]},outputs:{amSwipe:"amSwipe"}});}};function Ko(n,e){if(n&1){let t=DT();Zi$3(0,"iframe",3),_g$1("crossDomainRedirect",function(){Rd$2(t);let s=NT();return kd$2(s.crossDomainRedirect())})("loaded",function(s){Rd$2(t);let r=NT();return kd$2(r.loaded(s))})("amSwipe",function(s){Rd$2(t);let r=NT();return kd$2(r.onSwipe.emit(s))}),kl$2();}if(n&2){let t=NT();Lg$1("opacity",t.loading?0:1),Ig$1("amSwipeTarget",t.swipeTarget())("src",t.item.src,Wp$2);}}function Qo(n,e){if(n&1&&(Zi$3(0,"div",1),Eg$1(1,"spinner",4),kl$2()),n&2){let t=NT();AE(),Ig$1("diameter",42)("color",t.SpinnerColorEnum.white);}}function Xo(n,e){n&1&&(Zi$3(0,"span"),ib(1),bb(2,"translate"),kl$2()),n&2&&(AE(),Ug$1(_b(2,1,"adIntelligence.redirected_part_2")));}function Jo(n,e){if(n&1&&(Zi$3(0,"a",7),ib(1),bb(2,"translate"),kl$2()),n&2){let t=NT(2);Ig$1("href",t.item.targetUrl,qp$2),AE(),Ug$1(_b(2,2,"adIntelligence.redirected_part_2"));}}function ea(n,e){if(n&1&&(Zi$3(0,"div",5),Eg$1(1,"img",6),Zi$3(2,"div"),ib(3),bb(4,"translate"),uT(5,Xo,3,3,"span"),uT(6,Jo,3,4,"a",7),ib(7,". "),kl$2()()),n&2){let t=NT();Pg$1("big",t.redirectBig),AE(3),jl$2(" ",_b(4,5,"adIntelligence.redirected_part_1")," "),AE(2),dT(t.item.targetUrl?-1:5),AE(),dT(t.item.targetUrl?6:-1);}}var ti$2=class n{constructor(){this.redirect=false;this.onSwipe=new tt$b;this.loading=true;this.redirectBig=false;this.SpinnerColorEnum=y$2;this.swipeTarget=fi$4(null);this.element=D$l(Gr$4);}ngOnInit(){this.resizeObserver=new fs.ResizeObserver(e=>{e.forEach(t=>{if(this.item.height&&this.item.width){let i=this.item.height,s=this.item.width,r=1,o=1;t.contentRect.height<i&&(r=t.contentRect.height/i),t.contentRect.width<s&&(o=t.contentRect.width/s);let a=Math.min(r,o);this.element.nativeElement.style.transform=`scale(${a})`,this.element.nativeElement.style.width=s+"px",this.element.nativeElement.style.height=i+"px",this.redirectBig=i>300;}});}),this.resizeObserver.observe(this.element.nativeElement.parentElement);}ngOnDestroy(){this.resizeObserver.disconnect();}crossDomainRedirect(){this.redirect=true;}loaded(e){this.loading=false,this.swipeTarget.set(e);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["am-iframe"]],inputs:{item:"item",redirect:"redirect"},outputs:{onSwipe:"onSwipe"},decls:3,vars:3,consts:[["allowfullscreen","","iframeHooks","","sandbox","allow-scripts allow-same-origin","scrolling","no",3,"opacity","amSwipeTarget","src"],["id","iframe-loading",1,"loading"],[1,"redirect",3,"big"],["allowfullscreen","","iframeHooks","","sandbox","allow-scripts allow-same-origin","scrolling","no",3,"crossDomainRedirect","loaded","amSwipe","amSwipeTarget","src"],[1,"spinner",3,"diameter","color"],[1,"redirect"],["src","/assets/angular2/img/icons/link.svg","width","20px","height","20px",1,"link-icon"],["target","_blank",1,"link",3,"href"]],template:function(t,i){t&1&&(uT(0,Ko,1,4,"iframe",0),uT(1,Qo,2,2,"div",1),uT(2,ea,8,7,"div",2)),t&2&&(dT(i.redirect?-1:0),AE(),dT(i.loading?1:-1),AE(),dT(i.redirect?2:-1));},dependencies:[fe$8,b$5,Jt$1,et$2,he$8],styles:["[_nghost-%COMP%]{display:block;position:relative;width:100%;height:100%;flex-shrink:0}[_nghost-%COMP%]   iframe[_ngcontent-%COMP%]{height:100%;width:100%;padding:0;overflow:hidden;outline:1px solid white;border:0;border:none}[_nghost-%COMP%]   .link-icon[_ngcontent-%COMP%]{margin:10px}[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{display:block;height:70px}[_nghost-%COMP%]   .redirect[_ngcontent-%COMP%]{outline:1px solid white;text-align:center;padding:10px;position:absolute;inset:0;background-color:var(--black);display:flex;justify-content:center;align-items:center;color:var(--white);line-height:17px}[_nghost-%COMP%]   .redirect.big[_ngcontent-%COMP%]{padding:100px;flex-direction:column}[_nghost-%COMP%]   .loading[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:var(--black);display:flex;justify-content:center;align-items:center}[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{text-decoration:underline;color:var(--white)!important}"]});}};var ii$2=class n{constructor(e,t){this.element=e;this.localStorageService=t;e.nativeElement.addEventListener("volumechange",this.onVolumeChange(this));let i=this.localStorageService.get("VideoMuteSaveDirective.volume");i!==null&&(e.nativeElement.volume=i??0);let s=this.localStorageService.get("VideoMuteSaveDirective.muted");s!==null&&(e.nativeElement.muted=s);}onVolumeChange(e){return ()=>{this.localStorageService.set("VideoMuteSaveDirective.muted",e.element.nativeElement.muted),this.localStorageService.set("VideoMuteSaveDirective.volume",e.element.nativeElement.volume);}}static{this.\u0275fac=function(t){return new(t||n)(Jr$4(Gr$4),Jr$4(xt$5))};}static{this.\u0275dir=dw({type:n,selectors:[["","videoMuteSave",""]]});}};var ze$2={};function ni$1(n){return Object.isFrozen(n)&&Object.isFrozen(n.raw)}function si$2(n){return n.toString().indexOf("`")===-1}si$2(n=>n``)||si$2(n=>n`\0`)||si$2(n=>n`\n`)||si$2(n=>n`\u0000`);ni$1``&&ni$1`\0`&&ni$1`\n`&&ni$1`\u0000`;var ta="google#safe",ms=ta,Oi=globalThis.trustedTypes,gs=Oi,Di;function ia(){let n=null;if(!gs)return n;try{let e=t=>t;n=gs.createPolicy(ms,{createHTML:e,createScript:e,createScriptURL:e});}catch(e){}return n}function ri$2(){return Di===void 0&&(Di=ia()),Di}
922function Ce$4(n){return {valueOf:n}.valueOf()}var ft$2=class ft{constructor(e,t){this.privateDoNotAccessOrElseWrappedResourceUrl=t;}toString(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""}},na=ft$2;function sa(n){return new na(ze$2,n)}function Mi(n){let e=n,t=ri$2();return sa(t?t.createScriptURL(e):e)}function Ri(n){return n instanceof ft$2}function ce$3(n){if(Ri(n))return n.privateDoNotAccessOrElseWrappedResourceUrl;{let e="";throw new Error(e)}}var gt$1=class gt{constructor(e,t,i,s,r){this.allowedElements=e,this.elementPolicies=t,this.allowedGlobalAttributes=i,this.globalAttributePolicies=s,this.globallyAllowedAttributePrefixes=r;}isAllowedElement(e){return e!=="FORM"&&(this.allowedElements.has(e)||this.elementPolicies.has(e))}getAttributePolicy(e,t){let i=this.elementPolicies.get(t);if(i?.has(e))return i.get(e);if(this.allowedGlobalAttributes.has(e))return {policyAction:j$3.KEEP};let s=this.globalAttributePolicies.get(e);return s||(this.globallyAllowedAttributePrefixes&&[...this.globallyAllowedAttributePrefixes].some(r=>e.indexOf(r)===0)?{policyAction:j$3.KEEP}:{policyAction:j$3.DROP})}},j$3=(function(n){return n[n.DROP=0]="DROP",n[n.KEEP=1]="KEEP",n[n.KEEP_AND_SANITIZE_URL=2]="KEEP_AND_SANITIZE_URL",n[n.KEEP_AND_NORMALIZE=3]="KEEP_AND_NORMALIZE",n[n.KEEP_AND_SANITIZE_STYLE=4]="KEEP_AND_SANITIZE_STYLE",n[n.KEEP_AND_USE_RESOURCE_URL_POLICY=5]="KEEP_AND_USE_RESOURCE_URL_POLICY",n[n.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET=6]="KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET",n})(j$3||{});var ha$1=["ARTICLE","SECTION","NAV","ASIDE","H1","H2","H3","H4","H5","H6","HEADER","FOOTER","ADDRESS","P","HR","PRE","BLOCKQUOTE","OL","UL","LH","LI","DL","DT","DD","FIGURE","FIGCAPTION","MAIN","DIV","EM","STRONG","SMALL","S","CITE","Q","DFN","ABBR","RUBY","RB","RT","RTC","RP","DATA","TIME","CODE","VAR","SAMP","KBD","SUB","SUP","I","B","U","MARK","BDI","BDO","SPAN","BR","WBR","NOBR","INS","DEL","PICTURE","PARAM","TRACK","MAP","TABLE","CAPTION","COLGROUP","COL","TBODY","THEAD","TFOOT","TR","TD","TH","SELECT","DATALIST","OPTGROUP","OPTION","OUTPUT","PROGRESS","METER","FIELDSET","LEGEND","DETAILS","SUMMARY","MENU","DIALOG","SLOT","CANVAS","FONT","CENTER","ACRONYM","BASEFONT","BIG","DIR","HGROUP","STRIKE","TT"],pa$1=[["A",new Map([["href",{policyAction:j$3.KEEP_AND_SANITIZE_URL}]])],["AREA",new Map([["href",{policyAction:j$3.KEEP_AND_SANITIZE_URL}]])],["LINK",new Map([["href",{policyAction:j$3.KEEP_AND_USE_RESOURCE_URL_POLICY,conditions:new Map([["rel",new Set(["alternate","author","bookmark","canonical","cite","help","icon","license","next","prefetch","dns-prefetch","prerender","preconnect","preload","prev","search","subresource"])]])}]])],["SOURCE",new Map([["src",{policyAction:j$3.KEEP_AND_USE_RESOURCE_URL_POLICY}],["srcset",{policyAction:j$3.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])],["IMG",new Map([["src",{policyAction:j$3.KEEP_AND_USE_RESOURCE_URL_POLICY}],["srcset",{policyAction:j$3.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])],["VIDEO",new Map([["src",{policyAction:j$3.KEEP_AND_USE_RESOURCE_URL_POLICY}]])],["AUDIO",new Map([["src",{policyAction:j$3.KEEP_AND_USE_RESOURCE_URL_POLICY}]])]],ua$1=["title","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-current","aria-disabled","aria-dropeffect","aria-expanded","aria-haspopup","aria-hidden","aria-invalid","aria-label","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","alt","align","autocapitalize","autocomplete","autocorrect","autofocus","autoplay","bgcolor","border","cellpadding","cellspacing","checked","cite","color","cols","colspan","controls","controlslist","datetime","disabled","download","draggable","enctype","face","formenctype","frameborder","height","hreflang","hidden","ismap","label","lang","loop","max","maxlength","media","minlength","min","multiple","muted","nonce","open","placeholder","poster","preload","rel","required","reversed","role","rows","rowspan","
922selected","shape","size","sizes","slot","span","spellcheck","start","step","summary","translate","type","valign","value","width","wrap","itemscope","itemtype","itemid","itemprop","itemref"],fa$1=[["dir",{policyAction:j$3.KEEP_AND_NORMALIZE,conditions:Ce$4(()=>new Map([["dir",new Set(["auto","ltr","rtl"])]]))}],["async",{policyAction:j$3.KEEP_AND_NORMALIZE,conditions:Ce$4(()=>new Map([["async",new Set(["async"])]]))}],["loading",{policyAction:j$3.KEEP_AND_NORMALIZE,conditions:Ce$4(()=>new Map([["loading",new Set(["eager","lazy"])]]))}],["target",{policyAction:j$3.KEEP_AND_NORMALIZE,conditions:Ce$4(()=>new Map([["target",new Set(["_self","_blank"])]]))}]];new gt$1(new Set(ha$1),new Map(pa$1),new Set(ua$1),new Map(fa$1),void 0);function Li(n,...e){if(e.length===0)return Mi(n[0]);n[0].toLowerCase();let i=n[0];for(let s=0;s<e.length;s++)i+=encodeURIComponent(e[s])+n[s+1];return Mi(i)}function Ni(n){return xa("script",n)}function xa(n,e=document){var t;let i=(t=e.querySelector)===null||t===void 0?void 0:t.call(e,`${n}[nonce]`);return i==null?"":i.nonce||i.getAttribute("nonce")||""}function ya$1(n){let e=Ni(n.ownerDocument);e&&n.setAttribute("nonce",e);}function ai$2(n,e,t){n.src=ce$3(e),ya$1(n);}var ka=["youtubeContainer"];function Ta(n,e){if(n&1){let t=DT();Zi$3(0,"youtube-player-placeholder",2),_g$1("click",function(){Rd$2(t);let s=NT();return kd$2(s._load(true))}),kl$2();}if(n&2){let t=NT();Ig$1("videoId",t.videoId)("width",t.width)("height",t.height)("isLoading",t._isLoading)("buttonLabel",t.placeholderButtonLabel)("quality",t.placeholderImageQuality);}}var za=/^[a-zA-Z0-9_-]+$/,Fa=(()=>{class n{videoId=VV.required();width=VV.required();height=VV.required();isLoading=VV.required();buttonLabel=VV.required();quality=VV.required();_backgroundImage=Pb(()=>
922{let t=this.quality(),i=this.videoId();if(!za.test(i))return null;let s;return t==="low"?s=`https://i.ytimg.com/vi/${i}/hqdefault.jpg`:t==="high"?s=`https://i.ytimg.com/vi/${i}/maxresdefault.jpg`:s=`https://i.ytimg.com/vi_webp/${i}/sddefault.webp`,`url(${s})`});static \u0275fac=function(i){return new(i||n)};static \u0275cmp=sw({type:n,selectors:[["youtube-player-placeholder"]],hostAttrs:[1,"youtube-player-placeholder"],hostVars:8,hostBindings:function(i,s){i&2&&(Lg$1("background-image",s._backgroundImage())("width",s.width(),"px")("height",s.height(),"px"),Pg$1("youtube-player-placeholder-loading",s.isLoading()));},inputs:{videoId:[1,"videoId"],width:[1,"width"],height:[1,"height"],isLoading:[1,"isLoading"],buttonLabel:[1,"buttonLabel"],quality:[1,"quality"]},decls:4,vars:1,consts:[["type","button",1,"youtube-player-placeholder-button"],["height","100%","version","1.1","viewBox","0 0 68 48","focusable","false","aria-hidden","true"],["d","M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z","fill","#f00"],["d","M 45,24 27,14 27,34","fill","#fff"]],template:function(i,s){i&1&&(Ol$2(0,"button",0),qd$2(),Ol$2(1,"svg",1),Dg$1(2,"path",2)(3,"path",3),Ll$2()()),i&2&&vg$1("aria-label",s.buttonLabel());},styles:[`.youtube-player-placeholder {
923  display: flex;
924  align-items: center;
925  justify-content: center;
926  width: 100%;
927  overflow: hidden;
928  cursor: pointer;
929  background-color: #000;
930  background-position: center center;
931  background-size: cover;
932  transition: box-shadow 300ms ease;
933  box-shadow: inset 0 120px 90px -90px rgba(0, 0, 0, 0.8);
934}
935:fullscreen .youtube-player-placeholder {
936  min-width: 100vw;
937  min-height: 100vh;
938}
939
940.youtube-player-placeholder-button {
941  transition: opacity 300ms ease;
942  -moz-appearance: none;
943  -webkit-appearance: none;
944  background: none;
945  border: none;
946  padding: 0;
947  display: flex;
948}
949.youtube-player-placeholder-button svg {
950  width: 68px;
951  height: 48px;
952}
953
954.youtube-player-placeholder-loading {
955  box-shadow: none;
956}
957.youtube-player-placeholder-loading .youtube-player-placeholder-button {
958  opacity: 0;
959}
960`],encapsulation:2})}return n})(),Da=new M$g("YOUTUBE_PLAYER_CONFIG"),Ss=640,ws=390;function Es(n){return n==null?n:ZV(n,0)}var be$3=(function(n){return n[n.UNSTARTED=-1]="UNSTARTED",n[n.ENDED=0]="ENDED",n[n.PLAYING=1]="PLAYING",n[n.PAUSED=2]="PAUSED",n[n.BUFFERING=3]="BUFFERING",n[n.CUED=5]="CUED",n})(be$3||{}),Cs=(()=>{class n{_ngZone=D$l($$b);_nonce=D$l(iv$1,{optional:true});_changeDetectorRef=D$l(WV);_elementRef=D$l(Gr$4);_player;_pendingPlayer;_existingApiReadyCallback;_pendingPlayerState;_destroyed=new de$c;_playerChanges=new rr$4(void 0);_isLoading=false;_hasPlaceholder=true;_isBrowser;videoId;get height(){return this._height}set height(t){this._height=t==null||isNaN(t)?ws:t;}_height=ws;get width(){return this._width}set width(t){this._width=t==null||isNaN(t)?Ss:t;}_width=Ss;startSeconds;endSeconds;suggestedQuality;playerVars;disableCookies=false;loadApi;disablePlaceholder=false;showBeforeIframeApiLoads=false;placeholderButtonLabel;placeholderImageQuality;ready=new tt$b;stateChange=this._getLazyEmitter("onStateChange");error=this._getLazyEmitter("onError");apiChange=this._getLazyEmitter("onApiChange");playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange");playbackRateChange=this._getLazyEmitter("onPlaybackRateChange");youtubeContainer;constructor(){let t=D$l(rv$1),i=D$l(Da,{optional:true});this.loadApi=i?.loadApi??true,this.disablePlaceholder=!!i?.disablePlaceholder,this.placeholderButtonLabel=i?.placeholderButtonLabel||"Play video",this.placeholderImageQuality=i?.placeholderImageQuality||"standard",this._isBrowser=Qi$3(t);}ngAfterViewInit(){this._conditionallyLoad();}ngOnChanges(t){this._shouldRecreatePlayer(t)?this._conditionallyLoad():this._player&&((t.width||t.height)&&this._setSize(),t.suggestedQuality&&this._setQuality(),(t.startSeconds||t.endSeconds||t.suggestedQuality)&&this._cuePlayer());}ngOnDestroy(){this._pendingPlayer?.destroy(),this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._destroyed.next(),this._destroyed.complete();}playVideo(){this._player?this._player.playVideo():(this._getPendingState().playbackState=be$3.PLAYING,this._load(true));}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=be$3.PAUSED;}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=be$3.CUED;}seekTo(t,i){this._player?this._player.seekTo(t,i):this._getPendingState().seek={seconds:t,allowSeekAhead:i};}mute(){this._player?this._player.mute():this._getPendingState().muted=true;}unMute(){this._player?this._player.unMute():this._getPendingState().muted=false;}
960isMuted(){return this._player?this._player.isMuted():this._pendingPlayerState?!!this._pendingPlayerState.muted:false}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t;}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&this._pendingPlayerState.volume!=null?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t;}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&this._pendingPlayerState.playbackRate!=null?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(!(!this._isBrowser||!window.YT))return this._player?this._player.getPlayerState():this._pendingPlayerState&&this._pendingPlayerState.playbackState!=null?this._pendingPlayerState.playbackState:be$3.UNSTARTED}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}requestFullscreen(t){return K$g(this,null,function*(){let i=this._elementRef.nativeElement;return i.requestFullscreen?i.requestFullscreen(t):Promise.reject(new Error("Fullscreen API not supported by browser."))})}_load(t){this._isBrowser&&(typeof window.YT!="object"||!window.YT||!window.YT.Player||typeof window.YT.Player!="function"?(this.loadApi?(this._isLoading=true,Oa(this._nonce)):this.showBeforeIframeApiLoads,typeof window.onYouTubeIframeAPIReady=="function"&&(this._existingApiReadyCallback=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback?.(),this._ngZone.run(()=>this._createPlayer(t));}):this._createPlayer(t));}_conditionallyLoad(){this._shouldShowPlaceholder()?this.playerVars?.autoplay===1&&this._load(true):this._load(false);}_shouldShowPlaceholder(){return this.disablePlaceholder?false:this._isBrowser?this._hasPlaceholder&&!!this.videoId&&!this._player:true}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_shouldRecreatePlayer(t){let i=t.videoId||t.playerVars||t.disableCookies||t.disablePlaceholder;return !!i&&!i.isFirstChange()}_createPlayer(t){if(this._player?.destroy(),this._pendingPlayer?.destroy(),typeof window.YT>"u"||!this.videoId&&!this.playerVars?.list)return;let i={host:this.disableCookies?"https://www.youtube-nocookie.com":void 0,width:this.width,height:this.height,playerVars:t?E$9(D$m({},this.playerVars||{}),{autoplay:1}):this.playerVars};this.videoId&&(i.videoId=this.videoId);let s=this._ngZone.runOutsideAngular(()=>new window.YT.Player(this.youtubeContainer.nativeElement,i)),r=o=>{this._ngZone.run(()=>{this._isLoading=false,this._hasPlaceholder=false,this._player=s,this._pendingPlayer=void 0,s.removeEventListener("onReady",r),this._playerChanges.next(s),this.ready.emit(o),this._setSize(),this._setQuality(),this._pendingPlayerState&&(this._applyPendingPlayerState(s,this._pendingPlayerState),this._pendingPlayerState=void 0);let a=s.getPlayerState();a===be$3.UNSTARTED||a===be$3.CUED||a==null?this._cuePlayer():(t||this.playerVars?.autoplay===1)&&this.startSeconds&&this.startSeconds>0&&s.seekTo(this.startSeconds,true),this._changeDetectorRef.markForCheck();});};this._pendingPlayer=s,s.addEventListener("onReady",r);}_applyPendingPlayerState(t,i){let{playbackState:s,playbackRate:r,volume:o,muted:a,seek:l}=i;switch(s){case be$3.PLAYING:t.playVideo();break;case be$3.PAUSED:t.pauseVideo();break;case be$3.CUED:t.stopVideo();break}r!=null&&t.setPlaybackRate(r),o!=null&&t.setVolume(o),a!=null&&(a?t.mute():t.unMute
960()),l!=null&&t.seekTo(l.seconds,l.allowSeekAhead);}_cuePlayer(){this._player&&this.videoId&&this._player.cueVideoById({videoId:this.videoId,startSeconds:this.startSeconds,endSeconds:this.endSeconds,suggestedQuality:this.suggestedQuality});}_setSize(){this._player?.setSize(this.width,this.height);}_setQuality(){this._player&&this.suggestedQuality&&this._player.setPlaybackQuality(this.suggestedQuality);}_getLazyEmitter(t){return this._playerChanges.pipe(Ru$2(i=>i?Vu$2(s=>{i.addEventListener(t,s);},s=>{try{i?.removeEventListener?.(t,s);}catch(r){}}):Ms$2()),i=>new x$g(s=>i.subscribe({next:r=>this._ngZone.run(()=>s.next(r)),error:r=>s.error(r),complete:()=>s.complete()})),ku$2(this._destroyed))}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=sw({type:n,selectors:[["youtube-player"]],viewQuery:function(i,s){if(i&1&&xg$1(ka,7),i&2){let r;OT(r=LT())&&(s.youtubeContainer=r.first);}},inputs:{videoId:"videoId",height:[2,"height","height",ZV],width:[2,"width","width",ZV],startSeconds:[2,"startSeconds","startSeconds",Es],endSeconds:[2,"endSeconds","endSeconds",Es],suggestedQuality:"suggestedQuality",playerVars:"playerVars",disableCookies:[2,"disableCookies","disableCookies",QV],loadApi:[2,"loadApi","loadApi",QV],disablePlaceholder:[2,"disablePlaceholder","disablePlaceholder",QV],showBeforeIframeApiLoads:[2,"showBeforeIframeApiLoads","showBeforeIframeApiLoads",QV],placeholderButtonLabel:"placeholderButtonLabel",placeholderImageQuality:"placeholderImageQuality"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},features:[Ev$1],decls:4,vars:3,consts:[["youtubeContainer",""],[3,"videoId","width","height","isLoading","buttonLabel","quality"],[3,"click","videoId","width","height","isLoading","buttonLabel","quality"]],template:function(i,s){i&1&&(uT(0,Ta,1,6,"youtube-player-placeholder",1),Zi$3(1,"div"),Eg$1(2,"div",null,0),kl$2()),i&2&&(dT(s._shouldShowPlaceholder()?0:-1),AE(),Lg$1("display",s._shouldShowPlaceholder()?"none":""));},dependencies:[Fa],styles:[`youtube-player:fullscreen, youtube-player:fullscreen iframe {
961  min-width: 100vw;
962  min-height: 100vh;
963}
964`],encapsulation:2})}return n})(),Vi=false;function Oa(n){if(Vi)return;let e=Li`https://www.youtube.com/iframe_api`,t=document.createElement("script"),i=s=>{t.removeEventListener("load",i),t.removeEventListener("error",i),s.type==="error"&&(Vi=false);};t.addEventListener("load",i),t.addEventListener("error",i),ai$2(t,e),t.async=true,n&&t.setAttribute("nonce",n),Vi=true,document.body.appendChild(t);}var Bs=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=cw({type:n});static \u0275inj=dd$2({})}return n})();var li$2=class n{constructor(e){this.elementRef=e;this.src=VV("");this.id=Pb(()=>n.GetYouTubeID(this.src()));this.playerVars={playsinline:1,autoplay:1};this.videoWidth=fi$4(640);this.subscription=new W$f;}static GetYouTubeID(e){let t=e.split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);return t[2]!==void 0?t[2].split(/[^0-9a-z_\-]/i)[0]:t[0]}ngOnInit(){this.subscription.add(Ns$2(window,"resize").subscribe(e=>{this.onResize(e.target.innerWidth);})),this.onResize(window.innerWidth);}onResize(e){e<720?this.videoWidth.set(e-80):this.videoWidth.set(640);}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(t){return new(t||n)(Jr$4(Gr$4))};}static{this.\u0275cmp=sw({type:n,selectors:[["youtube-iframe"]],inputs:{src:[1,"src"]},decls:1,vars:3,consts:[[1,"player","d-flex","width-100",2,"height","100%",3,"width","videoId","playerVars"]],template:function(t,i){t&1&&Eg$1(0,"youtube-player",0),t&2&&Ig$1("width",i.videoWidth())("videoId",i.id())("playerVars",i.playerVars);},dependencies:[Bs,Cs],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
964--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;width:430px}@media(max-width:576px){[_nghost-%COMP%]{width:calc(100vw - 90px)}}[_nghost-%COMP%]   .player[_ngcontent-%COMP%]{justify-content:center}"]});}};var ci$2=(t=>(t.video="video",t.iframe="iframe",t))(ci$2||{});var Ve$2=class n{static{this.m3u8RegExp=/\.m3u8(\?.*)?$/i;}static isStreamVideo(e){return n.m3u8RegExp.test(e)}static getLoadVideo(e,t){let i=new de$c;if(t==="video"){let a=document.createElement("video");a.src=e;let l=()=>{i.next(),i.complete();},c=()=>i.error(new Error("Failed to load video."));return a.addEventListener("loadeddata",l),a.addEventListener("error",c),a.load(),i.pipe(bu$2(()=>{a.removeEventListener("loadeddata",l),a.removeEventListener("error",c);}))}let s=new Image;s.src=e;let r=()=>{i.next(),i.complete();},o=()=>i.error(new Error("Failed to load image."));return s.addEventListener("load",r),s.addEventListener("error",o),i.pipe(bu$2(()=>{s.removeEventListener("load",r),s.removeEventListener("error",o);}))}};var tt$2=class n{constructor(){this.src=VV.required({alias:"streamVideo"});this.canPlay=VV(true);this.loaded=jV();this.element=D$l(Gr$4);this.destroyRef=D$l(st$b);this.video=fi$4(this.element.nativeElement);this.parsed=fi$4(false);this.destroyed=false;}ngOnInit(){this.destroyRef.onDestroy(()=>this.destroyed=true),import('./chunk-D16PVuMV.js').then(({default:e})=>{if(!this.destroyed){if(e.isSupported()){let t=new e;t.loadSource(this.src()),t.attachMedia(this.video()),t.on(e.Events.MANIFEST_PARSED,()=>{this.destroyed||(this.parsed.set(true),this.canPlay()&&this.video().play(),this.loaded.emit());}),this.destroyRef.onDestroy(()=>t.destroy());return}this.video().canPlayType("application/vnd.apple.mpegurl")&&(this.video().src=this.src());}});}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275dir=dw({type:n,selectors:[["","streamVideo",""]],inputs:{src:[1,"streamVideo","src"],canPlay:[1,"canPlay"]},outputs:{loaded:"loaded"}});}};var Us={wheelSensitivity:.01,touchSensitivity:.01};var _t$1=class n{static distanceBetweenTouches({touches:e}){return Math.hypot((e[0]?.clientX??0)-(e[1]?.clientX??0),(e[0]?.clientY??0)-(e[1]?.clientY??0))}static observeTouchZoom(e,t){return Ns$2(e,"touchstart").pipe(Tn$3(({touches:i})=>i.length>1),Ru$2(i=>Ns$2(e,"touchmove").pipe(Lu$2(s=>s.preventDefault()),yy((s,r)=>{let o=n.distanceBetweenTouches(r);return {event:r,distance:o,delta:(o-s.distance)*t}},{event:i,distance:n.distanceBetweenTouches(i),delta:0}),ge$9(({event:s,delta:r})=>{let o=((s.touches[0]?.clientX??0)+(s.touches[1]?.clientX??0))/2,a=((s.touches[0]?.clientY??0)+(s.touches[1]?.clientY??0))/2;return {clientX:o,clientY:a,delta:r,event:s}}),ku$2(Ns$2(e,"touchend")))))}static observeWheelZoom(e,t){return Ns$2(e,"wheel").pipe(Lu$2(i=>i.preventDefault()),ge$9(i=>({clientX:i.clientX,clientY:i.clientY,delta:-i.deltaY*t,event:i})))}};var di$1=class n{constructor(){let e=D$l(Gr$4).nativeElement,{wheelSensitivity:t,touchSensitivity:i}=Us,s=_t$1.observeTouchZoom(e,i),r=_t$1.observeWheelZoom(e,t);this.amZoom=iy(s,r);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275dir=dw({type:n,selectors:[["","amZoom",""]],hostVars:2,hostBindings:function(t,i){t&2&&Lg$1("touch-action","none");},outputs:{amZoom:"amZoom"}});}};var Be$2=class Be{static areNumbersEqual(e,t,i=1e-10){return Math.abs(e-t)<i}static clamp(e,t,i){return Math.min(i,Math.max(t,e))}static round(e,t=1){let i=Math.pow(10,t);return Math.round(e*i)/i}};var Q$3=class n{static getMovePoint(e,t,i){return e*i-e*t}static getScaleCenter(e,t,i,s,r){let o=i.nativeElement,[a,l]=s;return [(e-a-o.offsetWidth/2)/r,(t-l-o.offsetHeight/2)/r]}static getScaleCenterOnClick(e,t,i,s){let o=i.nativeElement.getBoundingClientRect(),a=e-o.left-o.width/2,l=t-o.top-o.height/2;return [a/s,l/s]}static getGuardedCoordinates(e,t,i){return [Be$2.clamp(e,-i.x,i.x),Be$2.clamp(t,-i.y,i.y)]}static getCoordinatesForCursor(e,t,i,s){if(i.width===0||i.height===0)return [0,0];let r=(e-i.left)/i.width,o=(t-i.top)/i.height,a=(.5-r)*2*s.x,l=(.5-o)*2*s.y;return n.getGuardedCoordinates(a,l,s)}static calculateMinZoom(e,t,i,s,r){if(t>s*r||e>i*r){let a=i*r/e,l=s*r/t;return Be$2.round(Math.min(a,l),4)}return 1}};var hi$1=class n{constructor(){let e=D$l(Gr$4).nativeElement,t=D$l(jn$2),i=Ns$2(e,"touchstart").pipe(Ru$2(()=>Ns$2(t,"touchmove").pipe(Tn$3(({touches:o})=>o.length<2),ge$9(({touches:o})=>o[0])))),s=Ns$2(e,"mousedown").pipe(Ru$2(()=>Ns$2(t,"mousemove"))),r=iy(Ns$2(t,"touchend"),Ns$2(t,"mouseup"));this.amPan=iy(i,s).pipe(ge$9(o=>({clientX:o?.clientX??0,clientY:o?.clientY??0})),Su$2(),ge$9(([o,a])=>{let l=a.clientX-o.clientX,c=a.clientY-o.clientY;return [l,c]}),ku$2(r),gy());}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275dir=dw({type:n,selectors:[["","amPan",""]],outputs:{amPan:"amPan"}});}};var pi$1=class n{constructor(){this.amResize=jV();let e=D$l(Gr$4).nativeElement;this.observer=new ResizeObserver(t=>{this.amResize.emit(t);}),this.observer.observe(e);}ngOnDestroy(){this.observer.disconnect();}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275dir=dw({type:n,selectors:[["","amResize",""]],outputs:{amResize:"amResize"}});}};var Ra=["zoomHost"],La=["*"],ui$1=class n{constructor(){this.analyticsEvents=VV.required();this.zoomRefreshSignal=VV.required();this.zoomable=VV(false,{transform:QV});this.zoomableOnClick=VV(false,{transform:QV});this.pannable=VV(false,{transform:QV});this.zoomFollowsCursor=VV(false,{transform:QV});this.zoomHost=BV.required("zoomHost");this.analyticsService=D$l(L$3);this.elementRef=D$l(Gr$4);this.isInitialized=fi$4(false);this.isSmoothTransition=fi$4(false);this.coordinates=fi$4([0,0]);this.minZoom=fi$4(n.MinScale);this.zoom=fi$4(n.MinScale);this.height=fi$4(0);this.width=fi$4(0);this.isZoomed=Pb(()=>!Be$2.areNumbersEqual(this.zoom(),this.minZoom()));this.wrapperTransform=Pb(()=>{let e=this.zoom(),t=this.coordinates();return `translate(${`${t[0]}px, ${t[1]}px`}) scale(${e})`});this.offsets=Pb(()=>{let e=this.zoom(),t=this.minZoom(),i=this.height(),s=this.width(),r=(e-t)*s/2,o=(e-t)*i/2;return {x:r,y:o}});ef$2(()=>{this.zoomRefreshSignal();let e=Fb(this.zoomHost)?.nativeElement;e&&(this.isSmoothTransition.set(false),this.refresh(e.clientWidth,e.clientHeight));});}static{this.MinScale=1;}static{this.MaxScale=2;}static{this.ClickZoomFactor=1.75;}static{this.InitialScaleCoef=1;}onWindowResize(){let e=this.zoomHost()?.nativeElement;e&&this.refresh(e.clientWidth,e.clientHeight);}onMouseMove(e){if(!this.zoomFollowsCursor()||!this.isZoomed())return;this.isSmoothTransition.set(false);let t=this.elementRef.nativeElement.getBoundingClientRect();this.coordinates.set(Q$3.getCoordinatesForCursor(e.clientX,e.clientY,t,this.offsets()));}onClick(e){this.zoomableOnClick()&&(this.isSmoothTransition.set(true),this.toggleZoomOnClick(e));}onPan(e){if(this.pannable()&&this.isZoomed()){let[t,i]=this.coordinates(),s=Q$3.getGuardedCoordinates(t+e[0],i+e[1],this.offsets());this.coordinates.set(s);}}onResize([e]){this.isSmoothTransition.set(false),e.contentRect&&this.refresh(e.contentRect.width,e.contentRect.height);}onZoom(e){if(!this.zoomable())return;this.isSmoothTransition.set(false);let t=this.zoom(),i=Be$2.clamp(t*(1+e.delta),this.minZoom(),n.MaxScale);if(this.zoom.set(i),this.zoomFollowsCursor()){let h=this.elementRef.nativeElement.getBoundingClientRect();this.coordinates.set(Q$3.getCoordinatesForCursor(e.clientX,e.clientY,h,this.offsets()));return}let s=Q$3.getScaleCenter(e.clientX,e.clientY,this.elementRef,this.coordinates(),t),r=Q$3.getMovePoint(s[0],i,t),o=Q$3.getMovePoint(s[1],i,t),[a,l]=this.coordinates(),c=Q$3.getGuardedCoordinates(a+r,l+o,this.offsets());this.coordinates.set(c);}toggleZoomOnClick(e){let t=this.zoom(),i=this.minZoom();if(t>i){this.zoom.set(i),this.coordinates.set([0,0]),this.analyticsService.send(this.analyticsEvents().onZoomOut);return}if(this.zoom.set(t*n.ClickZoomFactor),this.zoomFollowsCursor()){let s=this.elementRef.nativeElement.getBoundingClientRect();this.coordinates.set(Q$3.getCoordinatesForCursor(e.clientX,e.clientY,s,this.offsets()));}
964else {let[s,r]=this.coordinates(),o=Q$3.getScaleCenterOnClick(e.clientX,e.clientY,this.elementRef,t),a=Q$3.getMovePoint(o[0],this.zoom(),t),l=Q$3.getMovePoint(o[1],this.zoom(),t);this.coordinates.set(Q$3.getGuardedCoordinates(s+a,r+l,this.offsets()));}this.analyticsService.send(this.analyticsEvents().onZoomIn);}refresh(e,t){this.width.set(e),this.height.set(t);let i=n.InitialScaleCoef,s=Q$3.calculateMinZoom(e,t,this.elementRef.nativeElement.clientWidth,this.elementRef.nativeElement.clientHeight,i);this.minZoom.set(s),this.zoom.set(s),this.coordinates.set([0,0]),this.isInitialized()||this.isInitialized.set(true);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["zoom-wrapper"]],viewQuery:function(t,i){t&1&&Rg$1(i.zoomHost,Ra,5),t&2&&PT();},hostBindings:function(t,i){t&1&&_g$1("resize",function(){return i.onWindowResize()},VI)("mousemove",function(r){return i.onMouseMove(r)});},inputs:{analyticsEvents:[1,"analyticsEvents"],zoomRefreshSignal:[1,"zoomRefreshSignal"],zoomable:[1,"zoomable"],zoomableOnClick:[1,"zoomableOnClick"],pannable:[1,"pannable"],zoomFollowsCursor:[1,"zoomFollowsCursor"]},ngContentSelectors:La,decls:3,vars:10,consts:[["zoomHost",""],[1,"zoom-host",3,"click","amPan","amZoom","amResize"]],template:function(t,i){t&1&&(AT(),Zi$3(0,"div",1,0),_g$1("click",function(r){return i.onClick(r)})("amPan",function(r){return i.onPan(r)})("amZoom",function(r){return i.onZoom(r)})("amResize",function(r){return i.onResize(r)}),RT(2),kl$2()),t&2&&(Lg$1("transform",i.wrapperTransform())("visibility",i.isInitialized()?"visible":"hidden"),Pg$1("smooth-transition",i.isSmoothTransition())("click-zoom",i.zoomableOnClick())("click-zoom-active",i.zoomableOnClick()&&i.isZoomed()));},dependencies:[di$1,hi$1,pi$1],styles:["[_nghost-%COMP%]{-webkit-user-select:none;user-select:none;max-height:100%;overflow:hidden;display:flex;justify-content:center;align-items:center;block-size:100%;inline-size:100%}[_nghost-%COMP%]   .zoom-host[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%]   .zoom-host.smooth-transition[_ngcontent-%COMP%]{transition:transform .3s ease-in-out}[_nghost-%COMP%]   .zoom-host[_ngcontent-%COMP%]:hover.click-zoom{cursor:zoom-in}[_nghost-%COMP%]   .zoom-host[_ngcontent-%COMP%]:hover.click-zoom-active{cursor:zoom-out}"]});}};var Na=["previewImg"];function Va(n,e){n&1&&Eg$1(0,"spinner",2),n&2&&Ig$1("diameter",28);}function Ha(n,e){n&1&&(Zi$3(0,"div",3),Eg$1(1,"div",5),kl$2());}function Ga(n,e){if(n&1&&Eg$1(0,"img",4),n&2){let t=NT();Ig$1("hidden",t.showPreload())("ngSrc",t.getYoutubeThumbnail(t.src()));}}function ja(n,e){if(n&1){let t=DT();Zi$3(0,"div",6)(1,"img",7,0),_g$1("load",function(){Rd$2(t);let s=NT(2);return kd$2(s.previewLoad())}),kl$2()();}if(n&2){let t=NT(2);AE(),Ig$1("ngSrc",t.thumbnail());}}function Wa(n,e){if(n&1){let t=DT();Zi$3(0,"video",10),_g$1("loaded",function(){Rd$2(t);let s=NT(3);return kd$2(s.showPreload.set(false))})("loadedmetadata",function(s){Rd$2(t);let r=NT(3);return kd$2(r.emitVideoDimensions(s))}),kl$2();}if(n&2){let t=NT(3);Ig$1("hidden",t.showPreload())("streamVideo",t.src())("canPlay",false);}}function Ya(n,e){if(n&1){let t=DT();Zi$3(0,"video",11,1),_g$1("loadedmetadata",function(s){Rd$2(t);let r=NT(3);return kd$2(r.emitVideoDimensions(s))}),Eg$1(2,"source",12),kl$2();}if(n&2){let t=FT(1),i=NT(3);Ig$1("hidden",i.showPreload()),AE(2),Ig$1("src",i.src())("type",i.isAppleVideo()&&i.isWorkPlayType(t)?"application/x-mpegURL":"video/mp4");}}function $a(n,e){if(n&1&&uT(0,Wa,1,3,"video",8)(1,Ya,3,3,"video",9),n&2){let t=NT(2);dT(t.isStreamVideo()?0:1);}}function Za(n,e){if(n&1&&uT(0,ja,3,1,"div",6)(1,$a,2,1),n&2){let t=NT();dT(t.thumbnail()?0:1);}}var fi$1=class n{constructor(){this.src=VV();this.type=VV("video");this.thumbnail=VV();this.isAppleVideo=VV();this.blur=VV();this.compact=VV(false);this.mediaDimensions=jV();this.isStreamVideo=fi$4(false);this.showPreload=fi$4(true);this.visibleObserverService=D$l(a$d);this.element=D$l(Gr$4);this.destroyRef=D$l(st$b);this.GalleryItemType=ci$2;
964this.getYoutubeThumbnail=o$7.getYoutubeThumbnail;this.isWorkPlayType=o$7.isWorkPlayType;this.previewImg=BV("previewImg");}ngOnInit(){let e=this.type()==="video"&&Ve$2.isStreamVideo(this.src());if(this.showPreload.set(!this.thumbnail()&&!e),e){this.isStreamVideo.set(e);return}if(this.thumbnail())return;let t=()=>{Ve$2.getLoadVideo(this.src(),this.type()).pipe(Mu$2()).subscribe({next:()=>this.showPreload.set(false),error:()=>this.showPreload.set(false)});};this.visibleObserverService.add(this.element.nativeElement,t,this.destroyRef);}previewLoad(){let e=this.previewImg().nativeElement,t=e.naturalWidth/e.naturalHeight*e.clientHeight;e.style.width=`${t}px`,e.style.position="relative",e.naturalWidth&&e.naturalHeight&&this.mediaDimensions.emit({width:e.naturalWidth,height:e.naturalHeight});}emitVideoDimensions(e){let t=e.target;t.videoWidth&&t.videoHeight&&this.mediaDimensions.emit({width:t.videoWidth,height:t.videoHeight});}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["am-video"]],viewQuery:function(t,i){t&1&&Rg$1(i.previewImg,Na,5),t&2&&PT();},hostVars:4,hostBindings:function(t,i){t&2&&Pg$1("blur",i.blur())("compact",i.compact());},inputs:{src:[1,"src"],type:[1,"type"],thumbnail:[1,"thumbnail"],isAppleVideo:[1,"isAppleVideo"],blur:[1,"blur"],compact:[1,"compact"]},outputs:{mediaDimensions:"mediaDimensions"},decls:4,vars:3,consts:[["previewImg",""],["video",""],[1,"spinner",3,"diameter"],[1,"play-container"],["fill","",1,"img",3,"hidden","ngSrc"],[1,"video-play-icon"],[1,"video-preview-wrap"],["fill","",1,"video-preview",3,"load","ngSrc"],["playsinline","","preload","metadata",1,"video",3,"hidden","streamVideo","canPlay"],["playsinline","","preload","metadata",1,"video",3,"hidden"],["playsinline","","preload","metadata",1,"video",3,"loaded","loadedmetadata","hidden","streamVideo","canPlay"],["playsinline","","preload","metadata",1,"video",3,"loadedmetadata","hidden"],[3,"src","type"]],template:function(t,i){t&1&&(uT(0,Va,1,1,"spinner",2)(1,Ha,2,0,"div",3),uT(2,Ga,1,2,"img",4),uT(3,Za,2,1)),t&2&&(dT(i.showPreload()?0:1),AE(2),dT(i.type()===i.GalleryItemType.iframe?2:-1),AE(),dT(i.type()===i.GalleryItemType.video?3:-1));},dependencies:[tr$4,b$5,tt$2],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
964--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:block;position:relative;height:100%;overflow:hidden;border-radius:8px;background:var(--black)}.blur[_nghost-%COMP%]   .video[_ngcontent-%COMP%], .blur[_nghost-%COMP%]   .video-preview[_ngcontent-%COMP%]{filter:blur(var(--image-blur-lg))}.compact[_nghost-%COMP%]   .video-play-icon[_ngcontent-%COMP%]{width:34px;height:34px;background-size:contain}@media(max-width:767px){.compact[_nghost-%COMP%]   .video-play-icon[_ngcontent-%COMP%]{width:28px;height:28px}}[_nghost-%COMP%]   .img[_ngcontent-%COMP%]{position:static!important;object-fit:cover}[_nghost-%COMP%]   .video-preview-wrap[_ngcontent-%COMP%]{width:100%;height:100%;background:var(--grey-20)}[_nghost-%COMP%]   .video-preview[_ngcontent-%COMP%]{object-fit:cover;width:100%}[_nghost-%COMP%]   .play-container[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;align-items:center;justify-content:center;height:100%;z-index:3}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .play-container[_ngcontent-%COMP%]:hover   .video-play-icon[_ngcontent-%COMP%]{transform:translate(-50%,-50%) scale(1.3);transition:transform .1s ease-in-out}}[_nghost-%COMP%]   .video-play-icon[_ngcontent-%COMP%]{background:url(/assets/angular2/img/intelligence/play.svg) no-repeat;position:absolute;left:50%;top:50%;width:50px;height:50px;transform:translate(-50%,-50%) scale(1);transition:transform .1s ease-in-out}[_nghost-%COMP%]   .video[_ngcontent-%COMP%]{height:100%;max-width:100%;width:100%;min-width:-moz-available;min-width:-webkit-fill-available;object-fit:cover;border-radius:8px}[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{position:relative;top:50%;left:50%;transform:translate(-50%,-50%)}"]});}};var qa=["thumbnail"],Ka=(n,e)=>e.src+":"+n;function Qa(n,e){if(n&1){let t=DT();Zi$3(0,"img",9),_g$1("load",function(s){Rd$2(t);let r=NT().$index,o=NT(2);return kd$2(o.onThumbnailLoad(r,s))}),kl$2();}if(n&2){NT();let t=db(0);Ig$1("src",t,qp$2);}}function Xa(n,e){if(n&1){let t=DT();Zi$3(0,"am-video",10),_g$1("mediaDimensions",function(s){Rd$2(t);let r=NT().$index,o=NT(2);return kd$2(o.onVideoDimensions(r,s))}),kl$2();}if(n&2){let t=NT().$implicit,i=NT(2);Ig$1("src",t.src)("type",i.GalleryItemType.video)("isAppleVideo",t.isAppleVideo)("compact",true);}}function Ja(n,e){n&1&&Eg$1(0,"span",7);}function el(n,e){n&1&&Eg$1(0,"span",8);}function tl(n,e){if(n&1){let t=DT();Zg$1(0),Zi$3(1,"button",4,0),_g$1("click",function(){let s=Rd$2(t).$index,r=NT(2);return kd$2(r.handleSelectItem(s))}),uT(3,Qa,1,1,"img",5)(4,Xa,1,4,"am-video",6)(5,Ja,1,0,"span",7),uT(6,el,1,0,"span",8),kl$2();}if(n&2){let t=e.$implicit,i=e.$index,s=NT(2),r=i===s.selectedIndex(),o=ub(s.getThumbnailSrc(t)),a=s.aspectRatios();AE(),Lg$1("aspect-ratio",a[i]),Pg$1("selected",r)("video",s.getThumbnailKind(t)==="video")("iframe",s.getThumbnailKind(t)==="iframe"),vg$1("aria-selected",r)("aria-label",s.getAriaLabel(t,i)),AE(2),dT(o?3:s.showVideoPreviewFallback(t,o)?4:5),AE(3),dT(s.showPlayIcon(t)?6:-1);}}function il(n,e){if(n&1&&(Zi$3(0,"div",1)(1,"div",2),hT(2,tl,7,13,"button",3,Ka),kl$2()()),n&2){let t=NT();AE(2),gT(t.items());}}var mi$1=class n{constructor(){this.items=VV.required();this.selectedIndex=VV.required();this.selectItem=jV();this.GalleryItemType=i$5;this.thumbnails=$V();this.loadedRatios=fi$4({});this.aspectRatios=Pb(()=>{let e=this.loadedRatios();return this.items().map((t,i)=>{let s=e[i];return s?Math.min(s,n.MaxAspectRatio):n.DefaultAspectRatio})});ef$2(()=>{let e=this.selectedIndex(),t=this.thumbnails();this.items(),setTimeout(()=>{t[e]?.nativeElement.scrollIntoView?.({block:"nearest",inline:"nearest"});});});}static{this.ThumbnailSize=120;}static{this.MaxAspectRatio=2.4;}static{this.DefaultAspectRatio=68/96;}static getThumbnailKind(e){return e.type==="video"?"video":e.type==="iframe"&&!e.isYoutube?"iframe":"image"}static getThumbnailSrc(e){if(e.thumb)return e.thumb;if(e.type==="image"){let t=m$7.getUrlBySize(e.src,n.ThumbnailSize);return t!==e.src||!/^https?:\/\//.test(e.src)?t:g$4.getImgUrl(e.src,{height:n.Thumbn
964ailSize})}return e.type==="iframe"&&e.isYoutube&&typeof e.src=="string"?o$7.getYoutubeThumbnail(e.src):null}getThumbnailKind(e){return n.getThumbnailKind(e)}getThumbnailSrc(e){return n.getThumbnailSrc(e)}showPlayIcon(e){return e.type==="video"||e.isYoutube||e.type==="iframe"}showVideoPreviewFallback(e,t){return e.type==="video"&&!t}getAriaLabel(e,t){let i=t+1;return `Open ${this.getThumbnailKind(e)} ${i} of ${this.items().length}`}handleSelectItem(e){this.selectItem.emit(e);}onThumbnailLoad(e,t){let i=t.target;this.setRatio(e,i.naturalWidth,i.naturalHeight);}onVideoDimensions(e,t){this.setRatio(e,t.width,t.height);}setRatio(e,t,i){!t||!i||this.loadedRatios.update(s=>E$9(D$m({},s),{[e]:t/i}));}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["lightbox-thumbnail-rail"]],viewQuery:function(t,i){t&1&&Rg$1(i.thumbnails,qa,5),t&2&&PT();},inputs:{items:[1,"items"],selectedIndex:[1,"selectedIndex"]},outputs:{selectItem:"selectItem"},decls:1,vars:1,consts:[["thumbnail",""],[1,"thumbnail-rail"],["role","listbox",1,"thumbnail-list"],["type","button","role","option",1,"thumbnail",3,"selected","video","iframe","aspect-ratio"],["type","button","role","option",1,"thumbnail",3,"click"],["draggable","false","alt","",3,"src"],[1,"thumbnail-video",3,"src","type","isAppleVideo","compact"],["aria-hidden","true",1,"thumbnail-placeholder"],["aria-hidden","true",1,"thumbnail-play-icon"],["draggable","false","alt","",3,"load","src"],[1,"thumbnail-video",3,"mediaDimensions","src","type","isAppleVideo","compact"]],template:function(t,i){t&1&&uT(0,il,4,0,"div",1),t&2&&dT(i.items().length>1?0:-1);},dependencies:[fi$1],styles:["[_nghost-%COMP%]{position:absolute;right:0;bottom:0;left:0;z-index:12;display:block;pointer-events:none}[_nghost-%COMP%]   .thumbnail-rail[_ngcontent-%COMP%]{height:120px;max-width:100%;padding:8px max(16px,env(safe-area-inset-left)) 12px max(16px,env(safe-area-inset-right));overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;pointer-events:auto;scrollbar-width:thin}@media(max-width:767px){[_nghost-%COMP%]   .thumbnail-rail[_ngcontent-%COMP%]{height:96px;padding-top:6px;padding-bottom:8px}}[_nghost-%COMP%]   .thumbnail-list[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;width:max-content;height:100%;margin-inline:auto}[_nghost-%COMP%]   .thumbnail[_ngcontent-%COMP%]{position:relative;display:block;flex:0 0 auto;height:96px;width:auto;aspect-ratio:68/96;padding:0;overflow:hidden;cursor:pointer;background:var(--grey-80);border:2px solid rgba(255,255,255,.48);border-radius:6px;opacity:.58;transition:border-color .15s ease,opacity .15s ease,transform .15s ease}@media(max-width:767px){[_nghost-%COMP%]   .thumbnail[_ngcontent-%COMP%]{height:76px}}[_nghost-%COMP%]   .thumbnail[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   .thumbnail[_ngcontent-%COMP%]:focus-visible{opacity:.86;border-color:#fffc}[_nghost-%COMP%]   .thumbnail[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--white);outline-offset:2px}[_nghost-%COMP%]   .thumbnail.selected[_ngcontent-%COMP%]{opacity:1;border-color:var(--yellow-50);box-shadow:0 0 0 2px #00000059}[_nghost-%COMP%]   .thumbnail.iframe[_ngcontent-%COMP%]{background:linear-gradient(135deg,var(--grey-90),var(--grey-70))}[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;display:block}[_nghost-%COMP%]   .thumbnail-video[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:0}[_nghost-%COMP%]   .thumbnail-placeholder[_ngcontent-%COMP%]{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--grey-90),var(--grey-70))}[_nghost-%COMP%]   .thumbnail-play-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:34px;height:34px;background:url(/assets/angular2/img/intelligence/play.svg) no-repeat center/contain;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 6px rgba(0,0,0,.55))}@media(max-width:767px){[_nghost-%COMP%]   .thumbnail-play-icon[_ngcontent-%COMP%]{width:28px;height:28px}}"]});}};var Is=Object.defineProperty,Hi=(n,e)=>{let t={};for(var i in n)Is(t,i,{get:n[i],enumerable:true});return Is(t,Symbol.toStringTag,{value:"Module"}),t};var Gi=Math.pow(2,32),W$3=Math.pow(2,32)-1,nl=131072,sl=1024,rl=2048,me$3=class Fs extends ArrayBuffer{constructor(e){super(e),this.fileStart=0,this.usedBytes=0;}static fromArrayBuffer(e,t){let i=new Fs(e.byteLength);return new Uint8Array(i).set(new Uint8Array(e)),i.fileStart=t,i}};var te$4=class T{static{this.ENDIANNESS=new Int8Array(new Int16Array([1]).buffer)[0]>0?2:1;}constructor(e,t,i){this._byteLength=0,this.failurePosition=0,this._dynamicSize=1,this._byteOffset=t||0,e instanceof ArrayBuffer?this.buffer=me$3.fromArrayBuffer(e,0):e instanceof DataView?(this.dataView=e,t&&(this._byteOffset+=t)):this.buffer=new me$3(e||0),this.position=0,this.endianness=i||1;}getPosition(){return this.position}_realloc(e){if(!this._dynamicSize)return;let t=this._byteOffset+this.position+e,i=this._buffer.byteLength;if(t<=i){t>this._byteLength&&(this._byteLength=t);return}for(i<1&&(i=1);t>i;)i*=2;
964let s=new me$3(i),r=new Uint8Array(this._buffer);new Uint8Array(s,0,r.length).set(r),this.buffer=s,this._byteLength=t;}_trimAlloc(){if(this._byteLength===this._buffer.byteLength)return;let e=new me$3(this._byteLength),t=new Uint8Array(e),i=new Uint8Array(this._buffer,0,t.length);t.set(i),this.buffer=e;}get byteLength(){return this._byteLength-this._byteOffset}get buffer(){return this._trimAlloc(),this._buffer}set buffer(e){this._buffer=e,this._dataView=new DataView(e,this._byteOffset),this._byteLength=e.byteLength;}get byteOffset(){return this._byteOffset}set byteOffset(e){this._byteOffset=e,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._buffer.byteLength;}get dataView(){return this._dataView}set dataView(e){this._byteOffset=e.byteOffset,this._buffer=me$3.fromArrayBuffer(e.buffer,0),this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._byteOffset+e.byteLength;}seek(e){let t=Math.max(0,Math.min(this.byteLength,e));this.position=isNaN(t)||!isFinite(t)?0:t;}isEof(){return this.position>=this._byteLength}#e(e){return Array.isArray(e)&&e.length===3&&e[0]==="[]"}mapUint8Array(e){this._realloc(e*1);let t=new Uint8Array(this._buffer,this.byteOffset+this.position,e);return this.position+=e*1,t}readInt32Array(e,t){e=e===void 0?this.byteLength-this.position/4:e;let i=new Int32Array(e);return T.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),T.arrayToNative(i,t??this.endianness),this.position+=i.byteLength,i}readInt16Array(e,t){e=e===void 0?this.byteLength-this.position/2:e;let i=new Int16Array(e);return T.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),T.arrayToNative(i,t??this.endianness),this.position+=i.byteLength,i}readInt8Array(e){e=e===void 0?this.byteLength-this.position:e;let t=new Int8Array(e);return T.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,e*t.BYTES_PER_ELEMENT),this.position+=t.byteLength,t}readUint32Array(e,t){e=e===void 0?this.byteLength-this.position/4:e;let i=new Uint32Array(e);return T.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),T.arrayToNative(i,t??this.endianness),this.position+=i.byteLength,i}readUint16Array(e,t){e=e===void 0?this.byteLength-this.position/2:e;let i=new Uint16Array(e);return T.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),T.arrayToNative(i,t??this.endianness),this.position+=i.byteLength,i}readUint8Array(e){e=e===void 0?this.byteLength-this.position:e;let t=new Uint8Array(e);return T.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,e*t.BYTES_PER_ELEMENT),this.position+=t.byteLength,t}readFloat64Array(e,t){e=e===void 0?this.byteLength-this.position/8:e;let i=new Float64Array(e);return T.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),T.arrayToNative(i,t??this.endianness),this.position+=i.byteLength,i}readFloat32Array(e,t){e=e===void 0?this.byteLength-this.position/4:e;let i=new Float32Array(e);return T.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),T.arrayToNative(i,t??this.endianness),this.position+=i.byteLength,i}readInt32(e){let t=this._dataView.getInt32(this.position,(e??this.endianness)===2);return this.position+=4,t}readInt16(e){let t=this._dataView.getInt16(this.position,(e??this.endianness)===2);return this.position+=2,t}readInt8(){let e=this._dataView.getInt8(this.position);return this.position+=1,e}readUint32(e){let t=this._dataView.getUint32(this.position,(e??this.endianness)===2);return this.position+=4,t}readUint16(e){let t=this._dataView.getUint16(this.position,(e??this.endianness)===2);return this.position+=2,t}readUint8(){let e=this._dataView.getUint8(this.position);return this.position+=1,e}readFloat32(e){let t=this._dataView.getFloat32(this.position,(e??this.endianness)===2);return this.position+=4,t}readFloat64(e){let t=this._dataView.getFloat64(this.position,(e??this.endianness)===2);return this.position+=8,t}static memcpy(e,t,i,s,r){let o=new Uint8Array(e,t,r),a=new Uint8Array(i,s,r);o.set(a);}static arrayToNative(e,t){return t===T.ENDIANNESS?e:this.flipArrayEndianness(e)}static nativeToEndian(e,t){return t&&T.ENDIANNESS===2?e:this.flipArrayEndianness(e)}static flipArrayEndianness(e){let t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);for(let i=0;i<e.byteLength;i+=e.BYTES_PER_ELEMENT)for(let s=i+e.BYTES_PER_ELEMENT-1,r=i;s>r;s--,r++){let o=t[r];t[r]=t[s],t[s]=o;}return e}readString(e,t){return t===void 0||t==="ASCII"?Ps(this.mapUint8Array(e===void 0?this.byteLength-this.position:e)):new TextDecoder(t).decode(this.mapUint8Array(e))}readCString(e){let t=0,i=this.byteLength-this.position,s=new Uint8Array(this._buffer,this._byteOffset+this.position),r=e!==void 0?Math.min(e,i):i;for(;t<r&&s[t]!==0;t++);let o=Ps(this.mapUint8Array(t));return e!==void 0?this.position+=r-t:t!==i&&(this.position+=1),o}readInt64(){return this.readInt32()*Gi+this.readUint32()}readUint64(){return this.readUint32()*Gi+this.readUint32()}readUint24(){return (this.readUint8()<<16)+(this.readUint8()<<8)+this.readUint8()}save(e){let t=new Blob([this.buffer]);if(typeof window<"u"&&typeof document<"u")if(window.URL&&URL.createObjectURL){let i=window.URL.createObjectURL(t),s=document.createElement("a");document.body.appendChild(s),s.setAttribute("href",i),s.setAttribute("download",e),s.setAttribute("target","_self"),s.click(),window.URL.revokeObjectURL(i),document.body.removeChild(s);}
964else throw new Error("DataStream.save: Can't create object URL.");return t}get dynamicSize(){return this._dynamicSize}set dynamicSize(e){e||this._trimAlloc(),this._dynamicSize=e;}shift(e){let t=new me$3(this._byteLength-e),i=new Uint8Array(t),s=new Uint8Array(this._buffer,e,i.length);i.set(s),this.buffer=t,this.position-=e;}writeInt32Array(e,t){if(this._realloc(e.length*4),e instanceof Int32Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)T.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapInt32Array(e.length,t);else for(let i=0;i<e.length;i++)this.writeInt32(e[i],t);}writeInt16Array(e,t){if(this._realloc(e.length*2),e instanceof Int16Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)T.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapInt16Array(e.length,t);else for(let i=0;i<e.length;i++)this.writeInt16(e[i],t);}writeInt8Array(e){if(this._realloc(e.length*1),e instanceof Int8Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)T.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapInt8Array(e.length);else for(let t=0;t<e.length;t++)this.writeInt8(e[t]);}writeUint32Array(e,t){if(this._realloc(e.length*4),e instanceof Uint32Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)T.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapUint32Array(e.length,t);else for(let i=0;i<e.length;i++)this.writeUint32(e[i],t);}writeUint16Array(e,t){if(this._realloc(e.length*2),e instanceof Uint16Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)T.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapUint16Array(e.length,t);else for(let i=0;i<e.length;i++)this.writeUint16(e[i],t);}writeUint8Array(e){if(this._realloc(e.length*1),e instanceof Uint8Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)T.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapUint8Array(e.length);else for(let t=0;t<e.length;t++)this.writeUint8(e[t]);}writeFloat64Array(e,t){if(this._realloc(e.length*8),e instanceof Float64Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)T.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapFloat64Array(e.length,t);else for(let i=0;i<e.length;i++)this.writeFloat64(e[i],t);}writeFloat32Array(e,t){if(this._realloc(e.length*4),e instanceof Float32Array&&this.byteOffset+this.position%e.BYTES_PER_ELEMENT===0)T.memcpy(this._buffer,this.byteOffset+this.position,e.buffer,0,e.byteLength),this.mapFloat32Array(e.length,t);else for(let i=0;i<e.length;i++)this.writeFloat32(e[i],t);}writeInt64(e,t){this._realloc(8),this._dataView.setBigInt64(this.position,BigInt(e),(t??this.endianness)===2),this.position+=8;}writeInt32(e,t){this._realloc(4),this._dataView.setInt32(this.position,e,(t??this.endianness)===2),this.position+=4;}writeInt16(e,t){this._realloc(2),this._dataView.setInt16(this.position,e,(t??this.endianness)===2),this.position+=2;}writeInt8(e){this._realloc(1),this._dataView.setInt8(this.position,e),this.position+=1;}writeUint32(e,t){this._realloc(4),this._dataView.setUint32(this.position,e,(t??this.endianness)===2),this.position+=4;}writeUint16(e,t){this._realloc(2),this._dataView.setUint16(this.position,e,(t??this.endianness)===2),this.position+=2;}writeUint8(e){this._realloc(1),this._dataView.setUint8(this.position,e),this.position+=1;}writeFloat32(e,t){this._realloc(4),this._dataView.setFloat32(this.position,e,(t??this.endianness)===2),this.position+=4;}writeFloat64(e,t){this._realloc(8),this._dataView.setFloat64(this.position,e,(t??this.endianness)===2),this.position+=8;}writeUCS2String(e,t,i){i===void 0&&(i=e.length);let s;for(s=0;s<e.length&&s<i;s++)this.writeUint16(e.charCodeAt(s),t);for(;s<i;s++)this.writeUint16(0);}writeString(e,t,i){let s=0;if(t===void 0||t==="ASCII")if(i!==void 0){let r=Math.min(e.length,i);for(s=0;s<r;s++)this.writeUint8(e.charCodeAt(s));for(;s<i;s++)this.writeUint8(0);}else for(s=0;s<e.length;s++)this.writeUint8(e.charCodeAt(s));else this.writeUint8Array(new TextEncoder(t).encode(e.substring(0,i)));}writeCString(e,t){let i=0;if(t!==void 0){let s=Math.min(e.length,t);for(i=0;i<s;i++)this.writeUint8(e.charCodeAt(i));for(;i<t;i++)this.writeUint8(0);}else {for(i=0;i<e.length;i++)this.writeUint8(e.charCodeAt(i));this.writeUint8(0);}}writeStruct(e,t){for(let i=0;i<e.length;i++){let[s,r]=e[i],o=t[s];this.writeType(r,o,t);}}writeType(e,t,i){if(typeof e=="function")return e(this,t);if(typeof e=="object"&&!(e instanceof Array))return e.set(this,t,i);let s,r="ASCII",o=this.position,a=e;if(typeof e=="string"&&/:/.test(e)){let l=e.split(":");a=l[0],s=parseInt(l[1]);}
964if(typeof a=="string"&&/,/.test(a)){let l=a.split(",");a=l[0],r=l[1];}switch(a){case "uint8":this.writeUint8(t);break;case "int8":this.writeInt8(t);break;case "uint16":this.writeUint16(t,this.endianness);break;case "int16":this.writeInt16(t,this.endianness);break;case "uint32":this.writeUint32(t,this.endianness);break;case "int32":this.writeInt32(t,this.endianness);break;case "float32":this.writeFloat32(t,this.endianness);break;case "float64":this.writeFloat64(t,this.endianness);break;case "uint16be":this.writeUint16(t,1);break;case "int16be":this.writeInt16(t,1);break;case "uint32be":this.writeUint32(t,1);break;case "int32be":this.writeInt32(t,1);break;case "float32be":this.writeFloat32(t,1);break;case "float64be":this.writeFloat64(t,1);break;case "uint16le":this.writeUint16(t,2);break;case "int16le":this.writeInt16(t,2);break;case "uint32le":this.writeUint32(t,2);break;case "int32le":this.writeInt32(t,2);break;case "float32le":this.writeFloat32(t,2);break;case "float64le":this.writeFloat64(t,2);break;case "cstring":this.writeCString(t,s);break;case "string":this.writeString(t,r,s);break;case "u16string":this.writeUCS2String(t,this.endianness,s);break;case "u16stringle":this.writeUCS2String(t,2,s);break;case "u16stringbe":this.writeUCS2String(t,1,s);break;default:if(this.#e(a)){let[,l]=a;for(let c=0;c<t.length;c++)this.writeType(l,t[c]);break}else {this.writeStruct(a,t);break}}s&&(this.position=o,this._realloc(s),this.position=o+s);}writeUint64(e){let t=Math.floor(e/Gi);this.writeUint32(t),this.writeUint32(e&4294967295);}writeUint24(e){this.writeUint8((e&16711680)>>16),this.writeUint8((e&65280)>>8),this.writeUint8(e&255);}adjustUint32(e,t){let i=this.position;this.seek(e),this.writeUint32(t),this.seek(i);}readStruct(e){let t={},i=this.position;for(let s=0;s<e.length;s+=1){let r=e[s][1],o=this.readType(r,t);if(!o){this.failurePosition===0&&(this.failurePosition=this.position),this.position=i;return}t[e[s][0]]=o;}return t}readUCS2String(e,t){return String.fromCharCode.apply(void 0,this.readUint16Array(e,t))}readType(e,t){if(typeof e=="function")return e(this,t);if(typeof e=="object"&&!(e instanceof Array))return e.get(this,t);if(e instanceof Array&&e.length!==3)return this.readStruct(e);let i,s,r="ASCII",o=this.position,a=e;if(typeof a=="string"&&/:/.test(a)){let l=a.split(":");a=l[0],s=parseInt(l[1]);}if(typeof a=="string"&&/,/.test(a)){let l=a.split(",");a=l[0],r=l[1];}switch(a){case "uint8":i=this.readUint8();break;case "int8":i=this.readInt8();break;case "uint16":i=this.readUint16(this.endianness);break;case "int16":i=this.readInt16(this.endianness);break;case "uint32":i=this.readUint32(this.endianness);break;case "int32":i=this.readInt32(this.endianness);break;case "float32":i=this.readFloat32(this.endianness);break;case "float64":i=this.readFloat64(this.endianness);break;case "uint16be":i=this.readUint16(1);break;case "int16be":i=this.readInt16(1);break;case "uint32be":i=this.readUint32(1);break;case "int32be":i=this.readInt32(1);break;case "float32be":i=this.readFloat32(1);break;case "float64be":i=this.readFloat64(1);break;case "uint16le":i=this.readUint16(2);break;case "int16le":i=this.readInt16(2);break;case "uint32le":i=this.readUint32(2);break;case "int32le":i=this.readInt32(2);break;case "float32le":i=this.readFloat32(2);break;case "float64le":i=this.readFloat64(2);break;case "cstring":i=this.readCString(s);break;case "string":i=this.readString(s,r);break;case "u16string":i=this.readUCS2String(s,this.endianness);break;case "u16stringle":i=this.readUCS2String(s,2);break;case "u16stringbe":i=this.readUCS2String(s,1);break;default:if(this.#e(a)){let[,l,c]=a,h=typeof c=="function"?c(t,this,a):typeof c=="string"&&t[c]!==void 0?parseInt(t[c]):typeof c=="number"?c:c==="*"?void 0:parseInt(c);if(typeof l=="string"){let u=l.replace(/(le|be)$/,""),x;switch(/le$/.test(l)?x=2:/be$/.test(l)&&(x=1),u){case "uint8":i=this.readUint8Array(h);break;case "uint16":i=this.readUint16Array(h,x);break;case "uint32":i=this.readUint32Array(h,x);break;case "int8":i=this.readInt8Array(h);break;case "int16":i=this.readInt16Array(h,x);break;case "int32":i=this.readInt32Array(h,x);break;case "float32":i=this.readFloat32Array(h,x);break;case "float64":i=this.readFloat64Array(h,x);break;case "cstring":case "utf16string":case "string":if(h){i=new Array(h);for(let b=0;b<h;b++)i[b]=this.readType(l,t);}else for(i=[];!this.isEof();){let b=this.readType(l,t);if(!b)break;
964i.push(b);}break}}else if(h){i=new Array(h);for(let u=0;u<h;u++){let x=this.readType(l,t);if(!x)return;i[u]=x;}}else for(i=[];;){let u=this.position;try{let x=this.readType(l,t);if(!x){this.position=u;break}i.push(x);}catch(x){this.position=u;break}}break}}return s&&(this.position=o+s),i}mapInt32Array(e,t){this._realloc(e*4);let i=new Int32Array(this._buffer,this.byteOffset+this.position,e);return T.arrayToNative(i,t??this.endianness),this.position+=e*4,i}mapInt16Array(e,t){this._realloc(e*2);let i=new Int16Array(this._buffer,this.byteOffset+this.position,e);return T.arrayToNative(i,t??this.endianness),this.position+=e*2,i}mapInt8Array(e,t){this._realloc(e*1);let i=new Int8Array(this._buffer,this.byteOffset+this.position,e);return this.position+=e*1,i}mapUint32Array(e,t){this._realloc(e*4);let i=new Uint32Array(this._buffer,this.byteOffset+this.position,e);return T.arrayToNative(i,t??this.endianness),this.position+=e*4,i}mapUint16Array(e,t){this._realloc(e*2);let i=new Uint16Array(this._buffer,this.byteOffset+this.position,e);return T.arrayToNative(i,t??this.endianness),this.position+=e*2,i}mapFloat64Array(e,t){this._realloc(e*8);let i=new Float64Array(this._buffer,this.byteOffset+this.position,e);return T.arrayToNative(i,t??this.endianness),this.position+=e*8,i}mapFloat32Array(e,t){this._realloc(e*4);let i=new Float32Array(this._buffer,this.byteOffset+this.position,e);return T.arrayToNative(i,t??this.endianness),this.position+=e*4,i}};function Ps(n){let e=[];for(let t=0;t<n.length;t++)e[t]=n[t];return String.fromCharCode.apply(void 0,e)}var gi$1=new Date,_i=4,As=3,ks=2,Ts=1,Ue$2=_i,d$6={setLogLevel(n){n===this.debug?Ue$2=Ts:n===this.info?Ue$2=ks:n===this.warn?Ue$2=As:(this.error,Ue$2=_i);},debug(n,e){console.debug===void 0&&(console.debug=console.log),Ts>=Ue$2&&console.debug("["+d$6.getDurationString(new Date().getTime()-gi$1.getTime(),1e3)+"]","["+n+"]",e);},log(n,e){this.debug(n.msg);},info(n,e){ks>=Ue$2&&console.info("["+d$6.getDurationString(new Date().getTime()-gi$1.getTime(),1e3)+"]","["+n+"]",e);},warn(n,e){As>=Ue$2&&console.warn("["+d$6.getDurationString(new Date().getTime()-gi$1.getTime(),1e3)+"]","["+n+"]",e);},error(n,e,t){t?.onError?t.onError(n,e):_i>=Ue$2&&console.error("["+d$6.getDurationString(new Date().getTime()-gi$1.getTime(),1e3)+"]","["+n+"]",e);},getDurationString(n,e){let t;function i(l,c){let h=(""+l).split(".");for(;h[0].length<c;)h[0]="0"+h[0];return h.join(".")}n<0?(t=true,n=-n):t=false;let s=n/(e||1),r=Math.floor(s/3600);s-=r*3600;let o=Math.floor(s/60);s-=o*60;let a=s*1e3;return s=Math.floor(s),a-=s*1e3,a=Math.floor(a),(t?"-":"")+r+":"+i(o,2)+":"+i(s,2)+"."+i(a,3)},printRanges(n){let e=n.length;if(e>0){let t="";for(let i=0;i<e;i++)i>0&&(t+=","),t+="["+d$6.getDurationString(n.start(i))+","+d$6.getDurationString(n.end(i))+"]";return t}else return "(empty)"}};function ol(n,e){d$6.debug("ArrayBuffer","Trying to create a new buffer of size: "+(n.byteLength+e.byteLength));let t=new Uint8Array(n.byteLength+e.byteLength);return t.set(new Uint8Array(n),0),t.set(new Uint8Array(e),n.byteLength),t.buffer}var xt$1=class xt extends te$4{constructor(n){super(new ArrayBuffer,0),this.buffers=[],this.bufferIndex=-1,n&&(this.insertBuffer(n),this.bufferIndex=0);}initialized(){if(this.bufferIndex>-1)return  true;if(this.buffers.length>0){let n=this.buffers[0];return n.fileStart===0?(this.buffer=n,this.bufferIndex=0,d$6.debug("MultiBufferStream","Stream ready for parsing"),true):(d$6.warn("MultiBufferStream","The first buffer should have a fileStart of 0"),this.logBufferLevel(),false)}else return d$6.warn("MultiBufferStream","No buffer to start parsing from"),this.logBufferLevel(),false}reduceBuffer(n,e,t){let i=new Uint8Array(t);return i.set(new Uint8Array(n,e,t)),i.buffer.fileStart=n.fileStart+e,i.buffer.usedBytes=0,i.buffer}insertBuffer(n){let e=true,t=0;for(;t<this.buffers.length;t++){let i=this.buffers[t];if(n.fileStart<=i.fileStart){if(n.fileStart===i.fileStart)if(n.byteLength>i.byteLength){this.buffers.splice(t,1),t--;continue}else d$6.warn("MultiBufferStream","Buffer (fileStart: "+n.fileStart+" - Length: "+n.byteLength+") already appended, ignoring");else n.fileStart+n.byteLength<=i.fileStart||(n=this.reduceBuffer(n,0,i.fileStart-n.fileStart)),d$6.debug("MultiBufferStream","Appending new buffer (fileStart: "+n.fileStart+" - Length: "+n.byteLength+")"),this.buffers.splice(t,0,n),t===0&&(this.buffer=n);e=false;break}else if(n.fileStart<i.fileStart+i.byteLength){let s=i.fileStart+i.byteLength-n.fileStart,r=n.byteLength-s;if(r>0)n=this.reduceBuffer(n,s,r);else {e=false;break}}}e&&(d$6.debug("MultiBufferStream","Appending new buffer (fileStart: "+n.fileStart+" - Length: "+n.byteLength+")"),this.buffers.push(n),t===0&&(this.buffer=n));}logBufferLevel(n){let e=[],t="",i,s=0,r=0;for(let a=0;a<this.buffers.length;a++){let l=this.buffers[a];a===0?(i={start:l.fileStart,end:l.fileStart+l.byteLength},e.push(i),t+="["+i.start+"-"):i.end===l.fileStart?i.end=l.fileStart+l.byteLength:(i={start:l.fileStart,end:l.fileStart+l.byteLength},t+=e[e.length-1].end-1+"], ["+i.start+"-",e.push(i)),s+=l.usedBytes,r+=l.byteLength;}e.length>0&&(t+=i.end-1+"]");let o=n?d$6.info:d$6.debug;this.buffers.length===0?o("MultiBufferStream","No more buffer in memory"):o("MultiBufferStream",""+this.buffers.length+" stored buffer(s) ("+s+"/"+r+" bytes), continuous ranges: "+t);}cleanBuffers(){for(let n=0;n<this.buffers.length;n++){let e=this.buffers[n];e.usedBytes===e.byteLength&&(d$6.debug("MultiBufferStream","Removing buffer #"+n),this.buffers.splice(n,1),n--);}}mergeNextBuffer(){if(this.bufferIndex+1<this.buffers.length){let n=this.buffers[this.bufferIndex+1];if(n.fileStart===this.buffer.fileStart+this.buffer.byteLength){let e=this.buffer.byteLength,t=this.buffer.usedBytes,i=this.buffer.fileStart;return this.buffers[this.bufferIndex]=ol(this.buffer,n),this.buffer=this.buffers[this.bufferIndex],this.buffers.splice(this.bufferIndex+1,1),this.buffer.usedBytes=t,this.buffer.fileStart=i,d$6.debug("ISOFile","Concatenating buffer for box parsing (length: "+e+"->"+this.buffer.byteLength+")"),true}else return  false}else return  false}findPosition(n,e,t){let i=-1,s=n===true?0:this.bufferIndex;for(;s<this.buffers.length;){let o=this.buffers[s];if(o&&o.fileStart<=e)i=s,t&&(o.fileStart+o.byteLength<=e?o.usedBytes=o.byteLength:o.usedBytes=e-o.fileStart,this.logBufferLevel());else break;s++;}if(i===-1)return  -1;let r=this.buffers[i];return r.fileStart+r.byteLength>=e?(d$6.debug("MultiBufferStream","Found position in existing buffer #"+i),i):-1}findEndContiguousBuf(n){let e=n!==void 0?n:this.bufferIndex,t=this.buffers[e];if(this.buffers.length>e+1)for(let i=e+1;i<this.buffers.length;i++){let s=this.buffers[i];if(s.fileStart===t.fileStart+t.byteLength)t=s;else break}return t.fileStart+t.byteLength}getEndFilePositionAfter(n){let e=this.findPosition(true,n,false);return e!==-1?this.findEndContiguousBuf(e):n}addUsedBytes(n){this.buffer.usedBytes+=n,this.logBufferLevel();}setAllUsedBytes(){this.buffer.usedBytes=this.buffer.byteLength,this.logBufferLevel();}seek(n,e,t){let i=this.findPosition(e,n,t);return i!==-1?(this.buffer=this.buffers[i],this.bufferIndex=i,this.position=n-this.buffer.fileStart,d$6.debug("MultiBufferStream","Repositioning parser at buffer position: "+this.position),true):(d$6.debug("MultiBufferStream","Position "+n+" not found in buffered data"),false)}getPosition(){return this.bufferIndex===-1||this.buffers[this.bufferIndex]===void 0?0:this.buffers[this.bufferIndex].fileStart+this.position}getLength(){return this.byteLength}getEndPosition(){return this.bufferIndex===-1||this.buffers[this.bufferIndex]===void 0?0:this.buffers[this.bufferIndex].fileStart+this.byteLength}getAbsoluteEndPosition(){if(this.buffers.length===0)return 0;let n=this.buffers[this.buffers.length-1];return n.fileStart+n.byteLength}},f$6=class f{static{this.registryId=Symbol.for("BoxIdentifier");}#e;
964get type(){return this.constructor.fourcc??this.#e}set type(e){this.#e=e;}constructor(e=0){this.size=e;}addBox(e){return this.boxes||(this.boxes=[]),this.boxes.push(e),this[e.type+"s"]?this[e.type+"s"].push(e):this[e.type]=e,e}set(e,t){return this[e]=t,this}addEntry(e,t){let i=t||"entries";return this[i]||(this[i]=[]),this[i].push(e),this}writeHeader(e,t){if(this.size+=8,(this.size>W$3||this.original_size===1)&&(this.size+=8),this.type==="uuid"&&(this.size+=16),d$6.debug("BoxWriter","Writing box "+this.type+" of size: "+this.size+" at position "+e.getPosition()+(t||"")),this.original_size===0?e.writeUint32(0):this.size>W$3||this.original_size===1?e.writeUint32(1):(this.sizePosition=e.getPosition(),e.writeUint32(this.size)),e.writeString(this.type,void 0,4),this.type==="uuid"){let i=new Uint8Array(16);for(let s=0;s<16;s++)i[s]=parseInt(this.uuid.substring(s*2,s*2+2),16);e.writeUint8Array(i);}(this.size>W$3||this.original_size===1)&&(this.sizePosition=e.getPosition(),e.writeUint64(this.size));}write(e){if(this.type==="mdat"){let t=this;if(t.stream){this.size=t.stream.getAbsoluteEndPosition(),this.writeHeader(e);for(let i of t.stream.buffers){let s=new Uint8Array(i);e.writeUint8Array(s);}}else t.data&&(this.size=t.data.length,this.writeHeader(e),e.writeUint8Array(t.data));}else this.size=this.data?this.data.length:0,this.writeHeader(e),this.data&&e.writeUint8Array(this.data);}printHeader(e){this.size+=8,this.size>W$3&&(this.size+=8),this.type==="uuid"&&(this.size+=16),e.log(e.indent+"size:"+this.size),e.log(e.indent+"type:"+this.type);}print(e){this.printHeader(e);}parse(e){this.type!=="mdat"?this.data=e.readUint8Array(this.size-this.hdr_size):this.size===0?e.seek(e.getEndPosition()):e.seek(this.start+this.size);}parseDataAndRewind(e){this.data=e.readUint8Array(this.size-this.hdr_size),e.seek(this.start+this.hdr_size);}parseLanguage(e){this.language=e.readUint16();let t=[];t[0]=this.language>>10&31,t[1]=this.language>>5&31,t[2]=this.language&31,this.languageString=String.fromCharCode(t[0]+96,t[1]+96,t[2]+96);}computeSize(e){let t=e||new xt$1;this.write(t);}isEndOfBox(e){return e.getPosition()===this.start+this.size}},p$3=class p extends f$6{constructor(...n){super(...n),this.flags=0,this.version=0;}writeHeader(n){this.size+=4,super.writeHeader(n," v="+this.version+" f="+this.flags),n.writeUint8(this.version),n.writeUint24(this.flags);}printHeader(n){this.size+=4,super.printHeader(n),n.log(n.indent+"version:"+this.version),n.log(n.indent+"flags:"+this.flags);}parseDataAndRewind(n){this.parseFullHeader(n),this.data=n.readUint8Array(this.size-this.hdr_size),this.hdr_size-=4,n.seek(this.start+this.hdr_size);}parseFullHeader(n){this.version=n.readUint8(),this.flags=n.readUint24(),this.hdr_size+=4;}parse(n){this.parseFullHeader(n),this.data=n.readUint8Array(this.size-this.hdr_size);}},G$4=class G{static{this.registryId=Symbol.for("SampleGroupEntryIdentifier");}constructor(e){this.grouping_type=e;}write(e){e.writeUint8Array(this.data);}parse(e){d$6.warn("BoxParser",`Unknown sample group type: '${this.grouping_type}'`),this.data=e.readUint8Array(this.description_length);}},Ds=class extends p$3{parse(n){this.parseFullHeader(n),this.track_group_id=n.readUint32();}},Os=class extends f$6{constructor(n,e,t,i,s){super(e),this.box_name=t,this.hdr_size=i,this.start=s,this.type=n;}parse(n){this.from_item_ID=n.readUint16();let e=n.readUint16();this.references=[];for(let t=0;t<e;t++)this.references[t]={to_item_ID:n.readUint16()};}},Ms=class extends f$6{constructor(n,e,t,i,s){super(e),this.box_name=t,this.hdr_size=i,this.start=s,this.type=n;}parse(n){this.from_item_ID=n.readUint32();let e=n.readUint16();this.references=[];for(let t=0;t<e;t++)this.references[t]={to_item_ID:n.readUint32()};}},Rs=class extends f$6{constructor(n,e,t,i){super(e),this.hdr_size=t,this.start=i,this.type=n;}parse(n){this.track_ids=n.readUint32Array((this.size-this.hdr_size)/4);}write(n){this.size=this.track_ids.length*4,this.writeHeader(n),n.writeUint32Array(this.track_ids);}},yi$1=["boxes","entries","references","subsamples","items","item_infos","extents","associations","subsegments","ranges","seekLists","seekPoints","esd","levels"],Ls=["compatible_brands","matrix","opcolor","sample_counts","sample_deltas","first_chunk","samples_per_chunk","sample_sizes","chunk_offsets","sample_offsets","sample_description_index","sample_duration"];function Ns(n,e){if(n&&!e)return  false;let t;for(t in n)if(!yi$1.find(i=>i===t)){if(n[t]instanceof f$6||e[t]instanceof f$6)continue;if(typeof n[t]>"u"||typeof e[t]>"u")continue;if(typeof n[t]=="function"||typeof e[t]=="function")continue;
964if("subBoxNames"in n&&n.subBoxNames.indexOf(t.slice(0,4))>-1||"subBoxNames"in e&&e.subBoxNames.indexOf(t.slice(0,4))>-1)continue;if(t==="data"||t==="start"||t==="size"||t==="creation_time"||t==="modification_time")continue;if(Ls.find(i=>i===t))continue;if(n[t]!==e[t])return  false}return  true}function Wi(n,e){if(!Ns(n,e))return  false;for(let t=0;t<yi$1.length;t++){let i=yi$1[t];if(n[i]&&e[i]&&!Wi(n[i],e[i]))return  false}return  true}function Yi(n){let e=n;for(;e;){if("registryId"in e)return e.registryId;e=Object.getPrototypeOf(e);}}var al=n=>{let e=Symbol.for("SampleGroupEntryIdentifier");return Yi(n)===e},ll=n=>{let e=Symbol.for("SampleEntryIdentifier");return Yi(n)===e},cl=n=>{let e=Symbol.for("BoxIdentifier");return Yi(n)===e},ae$3={uuid:{},sampleEntry:{},sampleGroupEntry:{},box:{}};function Vs(n){let e={uuid:{},sampleEntry:{},sampleGroupEntry:{},box:{}};for(let[t,i]of Object.entries(n)){if(al(i)){let s="grouping_type"in i?i.grouping_type:void 0;if(!s)throw new Error(`SampleGroupEntry class ${t} does not have a valid static grouping_type. Please ensure it is defined correctly.`);if(s in e.sampleGroupEntry)throw new Error(`SampleGroupEntry class ${t} has a grouping_type that is already registered. Please ensure it is unique.`);e.sampleGroupEntry[s]=i;continue}if(ll(i)){let s="fourcc"in i?i.fourcc:void 0;if(!s)throw new Error(`SampleEntry class ${t} does not have a valid static fourcc. Please ensure it is defined correctly.`);if(s in e.sampleEntry)throw new Error(`SampleEntry class ${t} has a fourcc that is already registered. Please ensure it is unique.`);e.sampleEntry[s]=i;continue}if(cl(i)){let s="fourcc"in i?i.fourcc:void 0,r="uuid"in i?i.uuid:void 0;if(s==="uuid"){if(!r)throw new Error(`Box class ${t} has a fourcc of 'uuid' but does not have a valid uuid. Please ensure it is defined correctly.`);if(r in e.uuid)throw new Error(`Box class ${t} has a uuid that is already registered. Please ensure it is unique.`);e.uuid[r]=i;continue}e.box[s]=i;continue}throw new Error(`Box class ${t} does not have a valid static fourcc, uuid, or grouping_type. Please ensure it is defined correctly.`)}return ae$3.uuid=D$m({},e.uuid),ae$3.sampleEntry=D$m({},e.sampleEntry),ae$3.sampleGroupEntry=D$m({},e.sampleGroupEntry),ae$3.box=D$m({},e.box),ae$3}var bi={};function Hs(n){return Object.entries(n).forEach(([e,t])=>bi[e]=t),bi}function dl(n){return De$2(n)}function De$2(n){let e="";for(let t=0;t<16;t++){let i=n.readUint8().toString(16);e+=i.length===1?"0"+i:i;}return e}function ge$3(n,e,t){let i,s,r=n.getPosition(),o=0,a;if(n.getEndPosition()-r<8)return d$6.debug("BoxParser","Not enough data in stream to parse the type and size of the box"),{code:0};if(t&&t<8)return d$6.debug("BoxParser","Not enough bytes left in the parent box to parse a new box"),{code:0};let l=n.readUint32(),c=n.readString(4);if(c.length!==4||!/^[\x20-\x7E]{4}$/.test(c))return d$6.error("BoxParser",`Invalid box type: '${c}'`),{code:-1,start:r,type:c};let h=c;if(d$6.debug("BoxParser","Found box of type '"+c+"' and size "+l+" at position "+r),o=8,c==="uuid"){if(n.getEndPosition()-n.getPosition()<16||t-o<16)return n.seek(r),d$6.debug("BoxParser","Not enough bytes left in the parent box to parse a UUID box"),{code:0};a=dl(n),o+=16,h=a;}if(l===1){if(n.getEndPosition()-n.getPosition()<8||t&&t-o<8)return n.seek(r),d$6.warn("BoxParser",'Not enough data in stream to parse the extended size of the "'+c+'" box'),{code:0};s=l,l=n.readUint64(),o+=8;}else if(l===0)if(t)l=t;else {if(c!=="mdat")return d$6.error("BoxParser","Unlimited box size not supported for type: '"+c+"'"),i=new f$6(l),i.type=c,{code:1,box:i,size:i.size};l=n.getEndPosition()-r;}if(l!==0&&l<o)return d$6.error("BoxParser","Box of type "+c+" has an invalid size "+l+" (too small to be a box)"),{code:0,type:c,size:l,hdr_size:o,start:r};if(l!==0&&t&&l>t)return d$6.error("BoxParser","Box of type '"+c+"' has a size "+l+" greater than its container size "+t),{code:0,type:c,size:l,hdr_size:o,start:r};if(l!==0&&r+l>n.getEndPosition())return n.seek(r),d$6.info("BoxParser","Not enough data in stream to parse the entire '"+c+"' box"),{code:0,type:c,size:l,hdr_size:o,start:r,original_size:s};if(e)return {code:1,type:c,size:l,hdr_size:o,start:r};c in ae$3.box?i=new ae$3.box[c](l):c!=="uuid"?(d$6.warn("BoxParser",`Unknown box type: '${c}'`),i=new f$6(l),i.type=c,i.has_unparsed_data=true):a in ae$3.uuid?i=new ae$3.uuid[a](l):(d$6.warn("BoxParser",`Unknown UUID box type: '${a}'`),i=new f$6(l),i.type=c,i.uuid=a,i.has_unparsed_data=true),i.original_size=s,i.hdr_size=o,i.start=r,i.write===f$6.prototype.write&&i.type!=="mdat"&&(d$6.info("BoxParser","'"+h+"' box writing not yet implemented, keeping unparsed data in memory for later write"),i.parseDataAndRewind(n)),i.parse(n);let u=n.getPosition()-(i.start+i.size);return u<0?(d$6.warn("BoxParser","Parsing of box '"+h+"' did not read the entire indicated box data size (missing "+-u+" bytes), seeking forward"),n.seek(i.start+i.size)):u>0&&i.size!==0&&(d$6.error("BoxParser","Parsing of box '"+h+"' read "+u+" more bytes than the indicated box data size, seeking backwards"),n.seek(i.start+i.size)),{code:1,box:i,size:i.size}}var P$3=class P extends f$6{write(n){if(this.size=0,this.writeHeader(n),this.boxes)for(let e=0;e<this.boxes.length;e++)this.boxes[e]&&(this.boxes[e].write(n),this.size+=this.boxes[e].size);d$6.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),n.adju
964stUint32(this.sizePosition,this.size);}print(n){this.printHeader(n);for(let e=0;e<this.boxes.length;e++)if(this.boxes[e]){let t=n.indent;n.indent+=" ",this.boxes[e].print(n),n.indent=t;}}parse(n){let e;for(;n.getPosition()<this.start+this.size;)if(e=ge$3(n,false,this.size-(n.getPosition()-this.start)),e.code===1){let t=e.box;if(this.boxes||(this.boxes=[]),this.boxes.push(t),this.subBoxNames&&this.subBoxNames.indexOf(t.type)!==-1){let i=this.subBoxNames[this.subBoxNames.indexOf(t.type)]+"s";this[i]||(this[i]=[]),this[i].push(t);}else {let i=t.type!=="uuid"?t.type:t.uuid;this[i]?d$6.warn("ContainerBox",`Box of type ${i} already exists in container box ${this.type}.`):this[i]=t;}}else return}},Se$3=class Se extends P$3{static{this.registryId=Symbol.for("SampleEntryIdentifier");}constructor(e,t,i){super(e),this.hdr_size=t,this.start=i;}isVideo(){return  false}isAudio(){return  false}isSubtitle(){return  false}isMetadata(){return  false}isHint(){return  false}getCodec(){return this.type.replace(".","")}getWidth(){return ""}getHeight(){return ""}getChannelCount(){return ""}getSampleRate(){return ""}getSampleSize(){return ""}parseHeader(e){e.readUint8Array(6),this.data_reference_index=e.readUint16(),this.hdr_size+=8;}parse(e){this.parseHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size);}parseDataAndRewind(e){this.parseHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size),this.hdr_size-=8,e.seek(this.start+this.hdr_size);}parseFooter(e){super.parse(e);}writeHeader(e){this.size=8,super.writeHeader(e),e.writeUint8(0),e.writeUint8(0),e.writeUint8(0),e.writeUint8(0),e.writeUint8(0),e.writeUint8(0),e.writeUint16(this.data_reference_index);}writeFooter(e){if(this.boxes)for(let t=0;t<this.boxes.length;t++)this.boxes[t].write(e),this.size+=this.boxes[t].size;d$6.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size);}write(e){this.writeHeader(e),e.writeUint8Array(this.data),this.size+=this.data.length,d$6.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size);}},ji=class extends Se$3{},He$2=class He extends Se$3{isMetadata(){return  true}},Fe$4=class Fe extends Se$3{isSubtitle(){return  true}},Gs=class extends Se$3{},D$3=class D extends Se$3{parse(n){this.parseHeader(n),n.readUint16(),n.readUint16(),n.readUint32Array(3),this.width=n.readUint16(),this.height=n.readUint16(),this.horizresolution=n.readUint32(),this.vertresolution=n.readUint32(),n.readUint32(),this.frame_count=n.readUint16();let e=Math.min(31,n.readUint8());this.compressorname=n.readString(e),e<31&&n.readString(31-e),this.depth=n.readUint16(),n.readUint16(),this.parseFooter(n);}isVideo(){return  true}getWidth(){return this.width}getHeight(){return this.height}write(n){this.writeHeader(n),this.size+=70,n.writeUint16(0),n.writeUint16(0),n.writeUint32(0),n.writeUint32(0),n.writeUint32(0),n.writeUint16(this.width),n.writeUint16(this.height),n.writeUint32(this.horizresolution),n.writeUint32(this.vertresolution),n.writeUint32(0),n.writeUint16(this.frame_count),n.writeUint8(Math.min(31,this.compressorname.length)),n.writeString(this.compressorname,void 0,31),n.writeUint16(this.depth),n.writeInt16(-1),this.writeFooter(n);}},ie$3=class ie extends Se$3{parse(n){this.parseHeader(n),this.version=n.readUint16(),n.readUint16(),n.readUint32(),this.channel_count=n.readUint16(),this.samplesize=n.readUint16(),n.readUint16(),n.readUint16(),this.samplerate=n.readUint32()/65536,n.isofile?.ftyp?.major_brand.includes("qt")&&(this.version===1?this.extensions=n.readUint8Array(16):this.version===2&&(this.extensions=n.readUint8Array(36))),this.parseFooter(n);}isAudio(){return  true}getChannelCount(){return this.channel_count}getSampleRate(){return this.samplerate}getSampleSize(){return this.samplesize}write(n){this.writeHeader(n),this.size+=20,n.writeUint32(0),n.writeUint32(0),n.writeUint16(this.channel_count),n.writeUint16(this.samplesize),n.writeUint16(0),n.writeUint16(0),n.writeUint32(this.samplerate<<16),this.writeFooter(n);}},wi=class extends Se$3{parse(n){this.parseHeader(n),this.parseFooter(n);}write(n){this.writeHeader(n),this.writeFooter(n);}},zs=class extends Array{toString(){let n="<table class='inner-table'>";n+="<thead><tr><th>
964length</th><th>nalu_data</th></tr></thead>",n+="<tbody>";for(let e=0;e<this.length;e++){let t=this[e];n+="<tr>",n+="<td>"+t.length+"</td>",n+="<td>",n+=t.data.reduce(function(i,s){return i+s.toString(16).padStart(2,"0")},"0x"),n+="</td></tr>";}return n+="</tbody></table>",n}},$i=class extends f$6{constructor(...e){super(...e),this.box_name="AVCConfigurationBox";}static{this.fourcc="avcC";}parse(e){this.configurationVersion=e.readUint8(),this.AVCProfileIndication=e.readUint8(),this.profile_compatibility=e.readUint8(),this.AVCLevelIndication=e.readUint8(),this.lengthSizeMinusOne=e.readUint8()&3,this.nb_SPS_nalus=e.readUint8()&31;let t=this.size-this.hdr_size-6;this.SPS=new zs;for(let i=0;i<this.nb_SPS_nalus;i++){let s=e.readUint16();this.SPS.push({length:s,data:e.readUint8Array(s)}),t-=2+s;}this.nb_PPS_nalus=e.readUint8(),t--,this.PPS=new zs;for(let i=0;i<this.nb_PPS_nalus;i++){let s=e.readUint16();this.PPS.push({length:s,data:e.readUint8Array(s)}),t-=2+s;}t>0&&(this.ext=e.readUint8Array(t));}write(e){this.size=7;for(let t=0;t<this.SPS.length;t++)this.size+=2+this.SPS[t].length;for(let t=0;t<this.PPS.length;t++)this.size+=2+this.PPS[t].length;this.ext&&(this.size+=this.ext.length),this.writeHeader(e),e.writeUint8(this.configurationVersion),e.writeUint8(this.AVCProfileIndication),e.writeUint8(this.profile_compatibility),e.writeUint8(this.AVCLevelIndication),e.writeUint8(this.lengthSizeMinusOne+252),e.writeUint8(this.SPS.length+224);for(let t=0;t<this.SPS.length;t++)e.writeUint16(this.SPS[t].length),e.writeUint8Array(this.SPS[t].data);e.writeUint8(this.PPS.length);for(let t=0;t<this.PPS.length;t++)e.writeUint16(this.PPS[t].length),e.writeUint8Array(this.PPS[t].data);this.ext&&e.writeUint8Array(this.ext);}},yt=class extends f$6{constructor(...e){super(...e),this.box_name="MediaDataBox";}static{this.fourcc="mdat";}},js=class extends f$6{constructor(...e){super(...e),this.box_name="ItemDataBox";}static{this.fourcc="idat";}},Ws=class extends f$6{constructor(...e){super(...e),this.box_name="FreeSpaceBox";}static{this.fourcc="free";}},Ys=class extends f$6{constructor(...e){super(...e),this.box_name="FreeSpaceBox";}static{this.fourcc="skip";}},Zi=class extends p$3{constructor(...e){super(...e),this.box_name="HintMediaHeaderBox";}static{this.fourcc="hmhd";}},bt$1=class bt extends p$3{constructor(...e){super(...e),this.box_name="NullMediaHeaderBox";}static{this.fourcc="nmhd";}},$s=class extends p$3{constructor(...e){super(...e),this.box_name="ObjectDescriptorBox";}static{this.fourcc="iods";}},Zs=class extends p$3{constructor(...e){super(...e),this.box_name="XMLBox";}static{this.fourcc="xml ";}},qs=class extends p$3{constructor(...e){super(...e),this.box_name="BinaryXMLBox";}static{this.fourcc="bxml";}},Ks=class extends p$3{constructor(...e){super(...e),this.box_name="ItemProtectionBox",this.sinfs=[];}static{this.fourcc="ipro";}get protections(){return this.sinfs}},vt$1=class vt extends P$3{constructor(...e){super(...e),this.box_name="MovieBox",this.traks=[],this.psshs=[],this.subBoxNames=["trak","pssh"];}static{this.fourcc="moov";}},qi=class extends P$3{constructor(...e){super(...e),this.box_name="TrackBox",this.samples=[];}static{this.fourcc="trak";}},Qs=class extends P$3{constructor(...e){super(...e),this.box_name="EditBox";}static{this.fourcc="edts";}},Ki=class extends P$3{constructor(...e){super(...e),this.box_name="MediaBox";}static{this.fourcc="mdia";}},Qi=class extends P$3{constructor(...e){super(...e),this.box_name="MediaInformationBox";}static{this.fourcc="minf";}},Xi=class extends P$3{constructor(...e){super(...e),this.box_name="DataInformationBox";}static{this.fourcc="dinf";}},Ji=class extends P$3{constructor(...e){super(...e),this.box_name="SampleTableBox",this.sgpds=[],this.sbgps=[],this.subBoxNames=["sgpd","sbgp"];}static{this.fourcc="stbl";}},vi=class extends P$3{constructor(...e){super(...e),this.box_name="MovieExtendsBox",this.trexs=[],this.subBoxNames=["trex"];}static{this.fourcc="mvex";}},en=class extends P$3{constructor(...e){super(...e),this.box_name="MovieFragmentBox",this.trafs=[],this.subBoxNames=["traf"];}static{this.fourcc="moof";}},tn=class extends P$3{constructor(...e){super(...e),this.box_name="TrackFragmentBox",this.truns=[],this.sgpds=[],this.sbgps=[],this.subBoxNames=["trun","sgpd","sbgp"];}static{this.fourcc="traf";}},Xs=class extends P$3{constructor(...e){super(...e),this.box_name="VTTCueBox";}static{this.fourcc="vttc";}},Js=class extends P$3{constructor(...e){super(...e),this.box_name="MovieFragmentRandomAccessBox",this.tfras=[],this.subBoxNames=["tfra"];}static{this.fourcc="mfra";}},er$1=class er extends P$3{constructor(...e){super(...e),this.box_name="AdditionalMetadataContainerBox";}static{this.fourcc="meco";}},tr$1=class tr extends P$3{constructor(...e){super(...e),this.box_name="trackhintinformation",this.subBoxNames=["sdp ","rtp "];}static{this.fourcc="hnti";}},ir$1=class ir extends P$3{constructor(...e){super(...e),this.box_name="hintstatisticsbox",this.maxrs=[],this.subBoxNames=["maxr"];}static{this.fourcc="hinf";}},nr$1=class nr extends P$3{constructor(...e){super(...e),this.box_name="SubTrackBox";}static{this.fourcc="strk";}},sr$1=class sr extends P$3{constructor(...e){super(...e),this.box_name="SubTrackDefinitionBox";}static{this.fourcc="strd";}},rr$1=class rr extends P$3{constructor(...e){super(...e),this.box_name="ProtectionSchemeInfoBox";}static{this.fourcc="sinf";}},or$1=class or extends P$3{constructor(...e){super(...e),this.box_name="RestrictedSchemeInfoBox";}static{this.fourcc="rinf";}},ar$1=class ar extends P$3{constructor(...e){super(...e),this.box_name="SchemeInformationBox";}static{this.fourcc="schi";}},lr$1=class lr extends P$3{constructor(...e){super(...e),this.box_name="TrackGroupBox";}static{this.fourcc="trgr";}},cr$1=class cr extends P$3{constructor(...e){super(...e),this.box_name="UserDataBox",this.kinds=[],this.strks=[],this.subBoxNames=["kind","strk"];}static{this.fourcc="udta";}},dr$1=class dr extends P$3{constructor(...e){super(...e),this.box_name="ItemPropertiesBox",this.ipmas=[],this.subBoxNames=["ipma"];}static{this.fourcc="iprp";}},hr$2=class hr extends P$3{constructor(...e){super(...e),this.box_name="ItemPropertyContainerBox",this.hvcCs=[],this.ispes=[],this.claps=[],this.irots=[],this.subBoxNames=["hvcC","ispe","clap","irot"];}static{this.fourcc="ipco";}},pr$1=class pr extends P$3{constructor(...e){super(...e),this.box_name="GroupsListBox";}static{this.fourcc="grpl";}},ur$1=class ur extends P$3{constructor(...e){super(...e),this.box_name="J2KHeaderInfoBox";}static{this.fourcc="j2kH";}},fr$2=class fr extends P$3{constructor(...e){super(...e),this.box_name="ExtendedTypeBox",this.tycos=[],this.subBoxNames=["tyco"];}static{this.fourcc="etyp";}},mr$1=class mr extends P$3{constructor(...e){super(...e),this.box_name="ProjectedOmniVideoBox",this.subBoxNames=["prfr"];}static{this.fourcc="povd";}},nn=class extends p$3{constructor(...e){super(...e),this.box_name="DataReferenceBox";}static{this.fourcc="dref";}parse(e){this.parseFullHeader(e),this.entries=[];let t=e.readUint32();for(let i=0;i<t;i++){let s=ge$3(e,false,this.size-(e.getPosition()-this.start));if(s.code===1){let r=s.box;this.entries.push(r);}else return}}write(e){this.version=0,this.flags=0,this.size=4,this.writeHeader(e),e.writeUint32(this.entries.length);for(let t=0;t<this.entries.length;t++)this.entries[t].write(e),this.size+=this.entries[t].size;d$6.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size);}},sn=class extends p$3{constructor(...e){super(...e),this.box_name="ExtendedLanguageBox";}static{this.fourcc="elng";}parse(e){this.parseFullHeader(e),this.extended_language=e.readString(this.size-this.hdr_size);}write(e){this.version=0,this.flags=0,this.size=this.extended_language.length,this.writeHeader(e),e.writeString(this.extended_language);}},rn=class extends f$6{constructor(...e){super(...e),this.box_name="FileTypeBox";}static{this.fourcc="ftyp";}parse(e){let t=this.size-this.hdr_size;this.major_brand=e.readString(4),this.minor_version=e.readUint32();let i=String.fromCharCode(this.minor_version>>24,this.minor_version>>16&255,this.minor_version>>8&255,this.minor_version&255);i.match("[a-zA-Z0-9]{4}")&&(this.minor_version=i),t-=8,this.compatible_brands=[];let s=0;for(;t>=4;)this.compatible_brands[s]=e.readString(4),t-=4,s++;}write(e){this.size=8+4*this.compatible_brands.length,this.writeHeader(e),e.writeString(this.major_brand,void 0,4),typeof this.minor_version=="number"?e.writeUint32(this.minor_version):e.writeString(this.minor_version,void 0,4);for(let t=0;t<this.compatible_brands.length;t++)e.writeString(this.compatible_brands[t],void 0,4);}},on=class extends p$3{constructor(...e){super(...e),this.box_name="HandlerBox";}static{this.fourcc="hdlr";}parse(e){if(this.parseFullHeader(e),this.version===0&&(e.readUint32(),this.handler=e.readString(4),e.readUint32Array(3),!this.isEndOfBox(e))){let t=this.start+this.size-e.getPosition();this.name=e.readCString();let i=this.start+this.size-1;e.seek(i),e.readUint8()!==0&&t>1&&(d$6.info("BoxParser","Warning: hdlr name is not null-terminated, possibly length-prefixed string. Trimming first byte."),this.name=this.name.slice(1));}}write(e){this.size=20+this.name.length+1,this.version=0,this.flags=0,this.writeHeader(e),e.writeUint32(0),e.writeString(this.handler,void 0,4),e.writeUint32Array([0,0,0]),e.writeCString(this.name);}},an=class extends f$6{constructor(...e){super(...e),this.box_name="HEVCConfigurationBox";}static{this.fourcc="hvcC";}parse(e){this.configurationVersion=e.readUint8();let t=e.readUint8();
964this.general_profile_space=t>>6,this.general_tier_flag=(t&32)>>5,this.general_profile_idc=t&31,this.general_profile_compatibility=e.readUint32(),this.general_constraint_indicator=e.readUint8Array(6),this.general_level_idc=e.readUint8(),this.min_spatial_segmentation_idc=e.readUint16()&4095,this.parallelismType=e.readUint8()&3,this.chroma_format_idc=e.readUint8()&3,this.bit_depth_luma_minus8=e.readUint8()&7,this.bit_depth_chroma_minus8=e.readUint8()&7,this.avgFrameRate=e.readUint16(),t=e.readUint8(),this.constantFrameRate=t>>6,this.numTemporalLayers=(t&13)>>3,this.temporalIdNested=(t&4)>>2,this.lengthSizeMinusOne=t&3,this.nalu_arrays=[];let i=e.readUint8();for(let s=0;s<i;s++){let r=[];this.nalu_arrays.push(r),t=e.readUint8(),r.completeness=(t&128)>>7,r.nalu_type=t&63;let o=e.readUint16();for(let a=0;a<o;a++){let l=e.readUint16();r.push({data:e.readUint8Array(l)});}}}write(e){this.size=23;for(let t=0;t<this.nalu_arrays.length;t++){this.size+=3;for(let i=0;i<this.nalu_arrays[t].length;i++)this.size+=2+this.nalu_arrays[t][i].data.length;}this.writeHeader(e),e.writeUint8(this.configurationVersion),e.writeUint8((this.general_profile_space<<6)+(this.general_tier_flag<<5)+this.general_profile_idc),e.writeUint32(this.general_profile_compatibility),e.writeUint8Array(this.general_constraint_indicator),e.writeUint8(this.general_level_idc),e.writeUint16(this.min_spatial_segmentation_idc+251658240),e.writeUint8(this.parallelismType+252),e.writeUint8(this.chroma_format_idc+252),e.writeUint8(this.bit_depth_luma_minus8+248),e.writeUint8(this.bit_depth_chroma_minus8+248),e.writeUint16(this.avgFrameRate),e.writeUint8((this.constantFrameRate<<6)+(this.numTemporalLayers<<3)+(this.temporalIdNested<<2)+this.lengthSizeMinusOne),e.writeUint8(this.nalu_arrays.length);for(let t=0;t<this.nalu_arrays.length;t++){e.writeUint8((this.nalu_arrays[t].completeness<<7)+this.nalu_arrays[t].nalu_type),e.writeUint16(this.nalu_arrays[t].length);for(let i=0;i<this.nalu_arrays[t].length;i++)e.writeUint16(this.nalu_arrays[t][i].data.length),e.writeUint8Array(this.nalu_arrays[t][i].data);}}},ln=class extends p$3{constructor(...e){super(...e),this.box_name="MediaHeaderBox";}static{this.fourcc="mdhd";}parse(e){this.parseFullHeader(e),this.version===1?(this.creation_time=e.readUint64(),this.modification_time=e.readUint64(),this.timescale=e.readUint32(),this.duration=e.readUint64()):(this.creation_time=e.readUint32(),this.modification_time=e.readUint32(),this.timescale=e.readUint32(),this.duration=e.readUint32()),this.parseLanguage(e),e.readUint16();}write(e){let t=this.modification_time>W$3||this.creation_time>W$3||this.duration>W$3||this.version===1;this.version=t?1:0,this.size=20,this.size+=t?12:0,this.flags=0,this.writeHeader(e),t?(e.writeUint64(this.creation_time),e.writeUint64(this.modification_time),e.writeUint32(this.timescale),e.writeUint64(this.duration)):(e.writeUint32(this.creation_time),e.writeUint32(this.modification_time),e.writeUint32(this.timescale),e.writeUint32(this.duration)),e.writeUint16(this.language),e.writeUint16(0);}},cn=class extends p$3{constructor(...e){super(...e),this.box_name="MovieExtendsHeaderBox";}static{this.fourcc="mehd";}parse(e){this.parseFullHeader(e),this.flags&1&&(d$6.warn("BoxParser","mehd box incorrectly uses flags set to 1, converting version to 1"),this.version=1),this.version===1?this.fragment_duration=e.readUint64():this.fragment_duration=e.readUint32();}write(e){let t=this.fragment_duration>W$3||this.version===1;this.version=t?1:0,this.size=4,this.size+=t?4:0,this.flags=0,this.writeHeader(e),t?e.writeUint64(this.fragment_duration):e.writeUint32(this.fragment_duration);}},gr$1=class gr extends p$3{constructor(...e){super(...e),this.box_name="ItemInfoEntry";}static{this.fourcc="infe";}parse(e){if(this.parseFullHeader(e),(this.version===0||this.version===1)&&(this.item_ID=e.readUint16(),this.item_protection_index=e.readUint16(),this.item_name=e.readCString(),this.content_type=e.readCString(),this.isEndOfBox(e)||(this.content_encoding=e.readCString())),this.version===1){this.extension_type=e.readString(4),d$6.warn("BoxParser","Cannot parse extension type"),e.seek(this.start+this.size);return}this.version>=2&&(this.version===2?this.item_ID=e.readUint16():this.version===3&&(this.item_ID=e.readUint32()),this.item_protection_index=e.readUint16(),this.item_type=e.readString(4),this.item_name=e.readCString(),this.item_type==="mime"?(this.content_type=e.readCString(),this.content_encoding=e.readCString()):this.item_type==="uri "&&(this.item_uri_type=e.readCString()));}},_r$2=class _r extends p$3{constructor(...e){super(...e),this.box_name="ItemInfoBox";}static{this.fourcc="iinf";}parse(e){this.parseFullHeader(e),this.version===0?this.entry_count=e.readUint16():this.entry_count=e.readUint32(),this.item_infos=[];for(let t=0;t<this.entry_count;t++){let i=ge$3(e,false,this.size-(e.getPosition()-this.start));if(i.code===1){let s=i.box;s.type==="infe"?this.item_infos[t]=s:d$6.error("BoxParser","Expected 'infe' box, got "+i.box.type,e.isofile);}else return}}},xr$2=class xr extends p$3{constructor(...e){super(...e),this.box_name="ItemLocationBox";}static{this.fourcc="iloc";}parse(e){this.parseFullHeader(e);let t;t=e.readUint8(),this.offset_size=t>>4&15,this.length_size=t&15,t=e.readUint8(),this.base_offset_size=t>>4&15,this.version===1||this.version===2?this.index_size=t&15:this.index_size=0,this.items=[];let i=0;if(this.version<2)i=e.readUint16();else if(this.version===2)i=e.readUint32();else throw new Error("version of iloc box not supported");for(let s=0;s<i;s++){let r=0,o=0,a=0;if(this.version<2)r=e.readUint16();else if(this.version===2)r=e.readUint32();else throw new Error("version of iloc box not supported");this.version===1||this.version===2?o=e.readUint16()&15:o=0;let l=e.readUint16();switch(this.base_offset_size){case 0:a=0;break;case 4:a=e.readUint32();break;case 8:a=e.readUint64();break;default:throw new Error("Error reading base offset size")}let c=[],h=e.readUint16();for(let u=0;u<h;u++){let x=0,b=0,z=0;if(this.version===1||this.version===2)switch(this.index_size){case 0:x=0;break;case 4:x=e.readUint32();break;case 8:x=e.readUint64();break;default:throw new Error("Error reading extent index")}switch(this.offset_size){case 0:b=0;break;case 4:b=e.readUint32();break;case 8:b=e.readUint64();break;default:throw new Error("Error reading extent index")}switch(this.length_size){case 0:z=0;break;case 4:z=e.readUint32();break;case 8:z=e.readUint64();break;default:throw new Error("Error reading extent index")}c.push({extent_index:x,extent_length:z,extent_offset:b});}this.items.push({base_offset:a,construction_method:o,item_ID:r,data_reference_index:l,extents:c});}}},hl={auxl:"Auxiliary image item",base:"Pre-derived image item base",cdsc:"Item describes referenced item",dimg:"Derived image item",dpnd:"Item coding dependency",eroi:"Region",evir:"EVC slice",exbl:"Scalable image item","fdl ":"File delivery",font:"Font item",iloc:"Item data location",mask:"Region mask",mint:"Data integrity",pred:"Predictively coded item",prem:"Pre-multiplied item",tbas:"HEVC tile track base item",text:"Text item",thmb:"Thumbn
964ail image item"},yr$2=class br extends p$3{constructor(...t){super(...t),this.box_name="ItemReferenceBox",this.references=[];}static{this.fourcc="iref";}static{this.allowed_types=["auxl","base","cdsc","dimg","dpnd","eroi","evir","exbl","fdl ","font","iloc","mask","mint","pred","prem","tbas","text","thmb"];}parse(t){for(this.parseFullHeader(t),this.references=[];t.getPosition()<this.start+this.size;){let i=ge$3(t,true,this.size-(t.getPosition()-this.start));if(i.code===1){let s="Unknown item reference";br.allowed_types.includes(i.type)?s=hl[i.type]:d$6.warn("BoxParser",`Unknown item reference type: '${i.type}'`);let r=this.version===0?new Os(i.type,i.size,s,i.hdr_size,i.start):new Ms(i.type,i.size,s,i.hdr_size,i.start);r.write===f$6.prototype.write&&r.type!=="mdat"&&(d$6.warn("BoxParser",r.type+" box writing not yet implemented, keeping unparsed data in memory for later write"),r.parseDataAndRewind(t)),r.parse(t),this.references.push(r);}else return}}},vr$2=class vr extends p$3{constructor(...e){super(...e),this.box_name="PrimaryItemBox";}static{this.fourcc="pitm";}parse(e){this.parseFullHeader(e),this.version===0?this.item_id=e.readUint16():this.item_id=e.readUint32();}},Sr$2=class Sr extends p$3{constructor(...e){super(...e),this.box_name="MetaBox",this.isQT=false;}static{this.fourcc="meta";}parse(e){let t=e.getPosition();if(this.size>8){switch(e.readUint32(),e.readString(4)){case "hdlr":case "mhdr":case "keys":case "ilst":case "ctry":case "lang":this.isQT=true;break;}e.seek(t);}this.isQT||this.parseFullHeader(e),P$3.prototype.parse.call(this,e);}},dn=class extends p$3{constructor(...e){super(...e),this.box_name="MovieFragmentHeaderBox";}static{this.fourcc="mfhd";}parse(e){this.parseFullHeader(e),this.sequence_number=e.readUint32();}write(e){this.version=0,this.flags=0,this.size=4,this.writeHeader(e),e.writeUint32(this.sequence_number);}},hn=class extends p$3{constructor(...e){super(...e),this.box_name="MovieHeaderBox";}static{this.fourcc="mvhd";}parse(e){this.parseFullHeader(e),this.version===1?(this.creation_time=e.readUint64(),this.modification_time=e.readUint64(),this.timescale=e.readUint32(),this.duration=e.readUint64()):(this.creation_time=e.readUint32(),this.modification_time=e.readUint32(),this.timescale=e.readUint32(),this.duration=e.readUint32()),this.rate=e.readUint32(),this.volume=e.readUint16()>>8,e.readUint16(),e.readUint32Array(2),this.matrix=e.readInt32Array(9),e.readUint32Array(6),this.next_track_id=e.readUint32();}write(e){let t=this.modification_time>W$3||this.creation_time>W$3||this.duration>W$3||this.version===1;this.version=t?1:0,this.size=96,this.size+=t?12:0,this.flags=0,this.writeHeader(e),t?(e.writeUint64(this.creation_time),e.writeUint64(this.modification_time),e.writeUint32(this.timescale),e.writeUint64(this.duration)):(e.writeUint32(this.creation_time),e.writeUint32(this.modification_time),e.writeUint32(this.timescale),e.writeUint32(this.duration)),e.writeUint32(this.rate),e.writeUint16(this.volume<<8),e.writeUint16(0),e.writeUint32(0),e.writeUint32(0),e.writeInt32Array(this.matrix),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(0),e.writeUint32(this.next_track_id);}print(e){super.printHeader(e),e.log(e.indent+"creation_time: "+this.creation_time),e.log(e.indent+"modification_time: "+this.modification_time),e.log(e.indent+"timescale: "+this.timescale),e.log(e.indent+"duration: "+this.duration),e.log(e.indent+"rate: "+this.rate),e.log(e.indent+"volume: "+(this.volume>>8)),e.log(e.indent+"matrix: "+this.matrix.join(", ")),e.log(e.indent+"next_track_id: "+this.next_track_id);}},wr$2=class wr extends He$2{static{this.fourcc="mett";}parse(e){this.parseHeader(e),this.content_encoding=e.readCString(),this.mime_format=e.readCString(),this.parseFooter(e);}},Er$2=class Er extends He$2{static{this.fourcc="metx";}parse(e){this.parseHeader(e),this.content_encoding=e.readCString(),this.namespace=e.readCString(),this.schema_location=e.readCString(),this.parseFooter(e);}},Cr$2=class Cr extends f$6{constructor(...e){super(...e),this.box_name="AV1CodecConfigurationBox";}static{this.fourcc="av1C";}parse(e){let t=e.readUint8();if((t>>7&1)!==1){d$6.error("BoxParser","av1C marker problem",e.isofile);return}if(this.version=t&127,this.version!==1){d$6.error("BoxParser","av1C version "+this.version+" not supported",e.isofile);return}if(t=e.readUint8(),this.seq_profile=t>>5&7,this.seq_level_idx_0=t&31,t=e.readUint8(),this.seq_tier_0=t>>7&1,this.high_bitdepth=t>>6&1,this.twelve_bit=t>>5&1,this.monochrome=t>>4&1,this.chroma_subsampling_x=t>>3&1,this.chroma_subsampling_y=t>>2&1,this.chroma_sample_position=t&3,t=e.readUint8(),this.reserved_1=t>>5&7,this.reserved_1!==0){d$6.error("BoxParser","av1C reserved_1 parsing problem",e.isofile);return}if(this.initial_presentation_delay_present=t>>4&1,this.initial_presentation_delay_present===1)this.initial_presentation_delay_minus_one=t&15;else if(this.reserved_2=t&15,this.reserved_2!==0){d$6.error("BoxParser","av1C reserved_2 parsing problem",e.isofile);return}let i=this.size-this.hdr_size-4;this.configOBUs=e.readUint8Array(i);}},Br$2=class Br extends p$3{constructor(...e){super(...e),this.box_name="ElementaryStreamDescriptorBox";}static{this.fourcc="esds";}parse(e){this.parseFullHeader(e);let t=e.readUint8Array(this.size-this.hdr_size);if("MPEG4DescriptorParser"in bi){let i=new bi.MPEG4DescriptorParser;this.esd=i.parseOneDescriptor(new te$4(t.buffer,0));}}},Ur$2=class Ur extends P$3{constructor(...e){super(...e),this.box_name="siDecompressionParamBox";}static{this.fourcc="wave";}},Ir$2=class Ir extends f$6{constructor(...e){super(...e),this.box_name="LCEVCConfigurationBox";}static{this.fourcc="lvcC";}parse(e){if(this.configurationVersion=e.readUint8(),this.configurationVersion!==1){d$6.error("BoxParser","lvcC version "+this.configurationVersion+" not supported",e.isofile);return}this.LCEVCProfileIndication=e.readUint8(),this.LCEVCLevelIndication=e.readUint8();let t=e.readUint8();this.chroma_format_idc=t>>6&3,this.bit_depth_luma_minus8=t>>3&7,this.bit_depth_chroma_minus8=t&7,t=e.readUint8(),this.lengthSizeMinusOne=t>>6&3;let i=t&63;if(i!==63){d$6.error("BoxParser","lvcC reserved parsing problem",e.isofile);return}
964if(this.pic_width_in_luma_samples=e.readUint32(),this.pic_height_in_luma_samples=e.readUint32(),t=e.readUint8(),this.sc_in_stream=t>>7&1,this.gc_in_stream=t>>6&1,this.ai_in_stream=t>>5&1,i=t&31,i!==31){d$6.error("BoxParser","lvcC reserved parsing problem",e.isofile);return}this.nalu_arrays=[];let s=e.readUint8();for(let r=0;r<s;r++){let o=[];if(this.nalu_arrays.push(o),t=e.readUint8(),i=t>>6&3,i!==0){d$6.error("BoxParser","lvcC reserved parsing problem",e.isofile);return}o.nalu_type=t&63;let a=e.readUint16();for(let l=0;l<a;l++){let c=e.readUint16();o.push({data:e.readUint8Array(c)});}}}},Pr$1=class Pr extends p$3{constructor(...e){super(...e),this.box_name="VPCodecConfigurationRecord";}static{this.fourcc="vpcC";}parse(e){if(this.parseFullHeader(e),this.version===1){this.profile=e.readUint8(),this.level=e.readUint8();let t=e.readUint8();this.bitDepth=t>>4,this.chromaSubsampling=t>>1&7,this.videoFullRangeFlag=t&1,this.colourPrimaries=e.readUint8(),this.transferCharacteristics=e.readUint8(),this.matrixCoefficients=e.readUint8(),this.codecIntializationDataSize=e.readUint16(),this.codecIntializationData=e.readUint8Array(this.codecIntializationDataSize);}else {this.profile=e.readUint8(),this.level=e.readUint8();let t=e.readUint8();this.bitDepth=t>>4&15,this.colorSpace=t&15,t=e.readUint8(),this.chromaSubsampling=t>>4&15,this.transferFunction=t>>1&7,this.videoFullRangeFlag=t&1,this.codecIntializationDataSize=e.readUint16(),this.codecIntializationData=e.readUint8Array(this.codecIntializationDataSize);}}},Ar$2=class Ar extends p$3{constructor(...e){super(...e),this.box_name="VvcConfigurationBox";}static{this.fourcc="vvcC";}parse(e){this.parseFullHeader(e);let t={held_bits:void 0,num_held_bits:0,stream_read_1_bytes:function(o){this.held_bits=o.readUint8(),this.num_held_bits=8;},stream_read_2_bytes:function(o){this.held_bits=o.readUint16(),this.num_held_bits=16;},extract_bits:function(o){let a=this.held_bits>>this.num_held_bits-o&(1<<o)-1;return this.num_held_bits-=o,a}};if(t.stream_read_1_bytes(e),t.extract_bits(5),this.lengthSizeMinusOne=t.extract_bits(2),this.ptl_present_flag=t.extract_bits(1),this.ptl_present_flag){if(t.stream_read_2_bytes(e),this.ols_idx=t.extract_bits(9),this.num_sublayers=t.extract_bits(3),this.constant_frame_rate=t.extract_bits(2),this.chroma_format_idc=t.extract_bits(2),t.stream_read_1_bytes(e),this.bit_depth_minus8=t.extract_bits(3),t.extract_bits(5),t.stream_read_2_bytes(e),t.extract_bits(2),this.num_bytes_constraint_info=t.extract_bits(6),this.general_profile_idc=t.extract_bits(7),this.general_tier_flag=t.extract_bits(1),this.general_level_idc=e.readUint8(),t.stream_read_1_bytes(e),this.ptl_frame_only_constraint_flag=t.extract_bits(1),this.ptl_multilayer_enabled_flag=t.extract_bits(1),this.general_constraint_info=new Uint8Array(this.num_bytes_constraint_info),this.num_bytes_constraint_info){for(let o=0;o<this.num_bytes_constraint_info-1;o++){let a=t.extract_bits(6);t.stream_read_1_bytes(e);let l=t.extract_bits(2);this.general_constraint_info[o]=a<<2|l;}this.general_constraint_info[this.num_bytes_constraint_info-1]=t.extract_bits(6);}else t.extract_bits(6);if(this.num_sublayers>1){t.stream_read_1_bytes(e),this.ptl_sublayer_present_mask=0;for(let o=this.num_sublayers-2;o>=0;--o){let a=t.extract_bits(1);this.ptl_sublayer_present_mask|=a<<o;}for(let o=this.num_sublayers;o<=8&&this.num_sublayers>1;++o)t.extract_bits(1);this.sublayer_level_idc=[];for(let o=this.num_sublayers-2;o>=0;--o)this.ptl_sublayer_present_mask&1<<o&&(this.sublayer_level_idc[o]=e.readUint8());}if(this.ptl_num_sub_profiles=e.readUint8(),this.general_sub_profile_idc=[],this.ptl_num_sub_profiles)for(let o=0;o<this.ptl_num_sub_profiles;o++)this.general_sub_profile_idc.push(e.readUint32());this.max_picture_width=e.readUint16(),this.max_picture_height=e.readUint16(),this.avg_frame_rate=e.readUint16();}let i=12,s=13;this.nalu_arrays=[];let r=e.readUint8();for(let o=0;o<r;o++){let a=[];this.nalu_arrays.push(a),t.stream_read_1_bytes(e),a.completeness=t.extract_bits(1),t.extract_bits(2),a.nalu_type=t.extract_bits(5);let l=1;a.nalu_type!==s&&a.nalu_type!==i&&(l=e.readUint16());for(let c=0;c<l;c++){let h=e.readUint16();a.push({data:e.readUint8Array(h),length:h});}}
964}},kr$2=class kr extends f$6{constructor(...e){super(...e),this.box_name="ColourInformationBox";}static{this.fourcc="colr";}parse(e){if(this.colour_type=e.readString(4),this.colour_type==="nclx"){this.colour_primaries=e.readUint16(),this.transfer_characteristics=e.readUint16(),this.matrix_coefficients=e.readUint16();let t=e.readUint8();this.full_range_flag=t>>7;}else this.colour_type==="rICC"?this.ICC_profile=e.readUint8Array(this.size-4):this.colour_type==="prof"&&(this.ICC_profile=e.readUint8Array(this.size-4));}};function it$2(n,e){let t=Number(n).toString(16);for(e=typeof e>"u"?2:e;t.length<e;)t="0"+t;return t}var Ei=class extends D$3{getCodec(){let n=super.getCodec();return this.avcC?`${n}.${it$2(this.avcC.AVCProfileIndication)}${it$2(this.avcC.profile_compatibility)}${it$2(this.avcC.AVCLevelIndication)}`:n}},Tr$2=class Tr extends Ei{constructor(...e){super(...e),this.box_name="AVCSampleEntry";}static{this.fourcc="avc1";}},zr$2=class zr extends Ei{constructor(...e){super(...e),this.box_name="AVC2SampleEntry";}static{this.fourcc="avc2";}},Fr$1=class Fr extends Ei{constructor(...e){super(...e),this.box_name="AVCSampleEntry";}static{this.fourcc="avc3";}},Dr$2=class Dr extends Ei{constructor(...e){super(...e),this.box_name="AVC2SampleEntry";}static{this.fourcc="avc4";}},Or$2=class Or extends D$3{constructor(...e){super(...e),this.box_name="AV1SampleEntry";}static{this.fourcc="av01";}getCodec(){let e=super.getCodec(),t=this.av1C.seq_level_idx_0,i=t<10?"0"+t:t,s;return this.av1C.seq_profile===2&&this.av1C.high_bitdepth===1?s=this.av1C.twelve_bit===1?"12":"10":this.av1C.seq_profile<=2&&(s=this.av1C.high_bitdepth===1?"10":"08"),e+"."+this.av1C.seq_profile+"."+i+(this.av1C.seq_tier_0?"H":"M")+"."+s}},Mr$2=class Mr extends D$3{static{this.fourcc="dav1";}},Ci$1=class Ci extends D$3{getCodec(){let n=super.getCodec();if(this.hvcC){switch(n+=".",this.hvcC.general_profile_space){case 0:n+="";break;case 1:n+="A";break;case 2:n+="B";break;case 3:n+="C";break}n+=this.hvcC.general_profile_idc,n+=".";let e=this.hvcC.general_profile_compatibility,t=0;for(let r=0;r<32&&(t|=e&1,r!==31);r++)t<<=1,e>>=1;n+=it$2(t,0),n+=".",this.hvcC.general_tier_flag===0?n+="L":n+="H",n+=this.hvcC.general_level_idc;let i=false,s="";for(let r=5;r>=0;r--)(this.hvcC.general_constraint_indicator[r]||i)&&(s="."+it$2(this.hvcC.general_constraint_indicator[r],0)+s,i=true);n+=s;}return n}},Rr$2=class Rr extends Ci$1{constructor(...e){super(...e),this.box_name="HEVCSampleEntry";}static{this.fourcc="hvc1";}},Lr$2=class Lr extends Ci$1{static{this.fourcc="hvc2";}},Nr$1=class Nr extends Ci$1{constructor(...e){super(...e),this.box_name="HEVCSampleEntry",this.colrs=[],this.subBoxNames=["colr"];}static{this.fourcc="hev1";}},Vr$2=class Vr extends Ci$1{static{this.fourcc="hev2";}},Hr$2=class Hr extends D$3{constructor(...e){super(...e),this.box_name="HEVCTileSampleSampleEntry";}static{this.fourcc="hvt1";}},Gr$2=class Gr extends D$3{constructor(...e){super(...e),this.box_name="LHEVCSampleEntry";}static{this.fourcc="lhe1";}},jr$2=class jr extends D$3{constructor(...e){super(...e),this.box_name="LHEVCSampleEntry";}static{this.fourcc="lhv1";}},Wr$2=class Wr extends D$3{constructor(...e){super(...e),this.box_name="LCEVCSampleEntry";}static{this.fourcc="lvc1";}getCodec(){let e=super.getCodec();return this.lvcC&&(e+=".",e+="vprf",e+=this.lvcC.LCEVCProfileIndication,e+=".",e+="vlev",e+=this.lvcC.LCEVCLevelIndication),e}},Yr$2=class Yr extends D$3{static{this.fourcc="dvh1";}},$r$2=class $r extends D$3{static{this.fourcc="dvhe";}},Zr$2=class Zr extends D$3{getCodec(){let n=super.getCodec();if(this.vvcC){n+="."+this.vvcC.general_profile_idc,this.vvcC.general_tier_flag?n+=".H":n+=".L",n+=this.vvcC.general_level_idc;let e="";if(this.vvcC.general_constraint_info){let t=[],i=0;i|=this.vvcC.ptl_frame_only_constraint_flag<<7,i|=this.vvcC.ptl_multilayer_enabled_flag<<6;let s;for(let r=0;r<this.vvcC.general_constraint_info.length;++r)i|=this.vvcC.general_constraint_info[r]>>2&63,t.push(i),i&&(s=r),i=this.vvcC.general_constraint_info[r]>>2&3;if(s===void 0)e=".CA";else {e=".C";let r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",o=0,a=0;for(let l=0;l<=s;++l)for(o=o<<8|t[l],a+=8;a>=5;){let c=o>>a-5&31;e+=r[c],a-=5,o&=(1<<a)-1;}a&&(o<<=5-a,e+=r[o&31]);}}n+=e;}return n}},qr$2=class qr extends Zr$2{constructor(...e){super(...e),this.box_name="VvcSampleEntry";}static{this.fourcc="vvc1";}},Kr$2=class Kr extends Zr$2{constructor(...e){super(...e),this.box_name="VvcSampleEntry";}static{this.fourcc="vvi1";}},Qr$2=class Qr extends D$3{constructor(...e){super(...e),this.box_name="VvcSampleEntry";}static{this.fourcc="vvs1";}},Xr$2=class Xr extends D$3{constructor(...e){super(...e),this.box_name="VvcNonVCLSampleEntry";}static{this.fourcc="vvcN";}},Jr$2=class Jr extends D$3{getCodec(){let n=super.getCodec(),e=this.vpcC.level;e===0&&(e="00");let t=this.vpcC.bitDepth;return t===8&&(t="08"),`${n}.0${this.vpcC.profile}.${e}.${t}`}},eo=class extends Jr$2{static{this.fourcc="vp08";}},to=class extends Jr$2{static{this.fourcc="vp09";}},io=class extends D$3{static{this.fourcc="avs3";}},no=class extends D$3{constructor(...e){super(...e),this.box_name="J2KSampleEntry";}static{this.fourcc="j2ki";}},so$1=class so extends D$3{static{this.fourcc="mjp2";}},ro=class extends D$3{static{this.fourcc="mjpg";}},oo=class extends D$3{constructor(...e){super(...e),this.box_name="UncompressedVideoSampleEntry";}static{this.fourcc="uncv";}},ao$1=class ao extends D$3{constructor(...e){super(...e),this.box_name="MP4VisualSampleEntry";}static{this.fourcc="mp4v";}},pn=class extends ie$3{constructor(...e){super(...e),this.box_name="MP4AudioSampleEntry";}static{this.fourcc="mp4a";}getCodec(){let e=super.getCodec(),t=this.esds??this.wave?.esds;if(t&&t.esd){let i=t.esd.getOTI(),s=t.esd.getAudioConfig();return e+"."+it$2(i)+(s?"."+s:"")}else return e}},lo$1=class lo extends ie$3{static{this.fourcc="m4ae";}}
964,co$1=class co extends ie$3{static{this.fourcc="ac-3";}},ho=class extends ie$3{static{this.fourcc="ac-4";}},po$1=class po extends ie$3{static{this.fourcc="ec-3";}},uo$1=class uo extends ie$3{static{this.fourcc="Opus";}},fo=class extends ie$3{static{this.fourcc="mha1";}},mo$1=class mo extends ie$3{static{this.fourcc="mha2";}},go$1=class go extends ie$3{static{this.fourcc="mhm1";}},_o=class extends ie$3{static{this.fourcc="mhm2";}},xo=class extends ie$3{static{this.fourcc="fLaC";}},yo$1=class yo extends D$3{static{this.fourcc="encv";}},bo=class extends ie$3{static{this.fourcc="enca";}},vo=class extends Fe$4{constructor(...e){super(...e),this.subBoxNames=["sinf"],this.sinfs=[];}static{this.fourcc="encu";}},So=class extends wi{constructor(...e){super(...e),this.subBoxNames=["sinf"],this.sinfs=[];}static{this.fourcc="encs";}},wo$1=class wo extends wi{static{this.fourcc="mp4s";}},Eo=class extends Gs{constructor(...e){super(...e),this.subBoxNames=["sinf"],this.sinfs=[];}static{this.fourcc="enct";}},Co=class extends He$2{constructor(...e){super(...e),this.subBoxNames=["sinf"],this.sinfs=[];}static{this.fourcc="encm";}},Bo=class extends D$3{constructor(...e){super(...e),this.box_name="RestrictedVideoSampleEntry";}static{this.fourcc="resv";}},Uo=class extends Fe$4{static{this.fourcc="sbtt";}parse(e){this.parseHeader(e),this.content_encoding=e.readCString(),this.mime_format=e.readCString(),this.parseFooter(e);}},un=class extends Fe$4{static{this.fourcc="stpp";}parse(e){this.parseHeader(e),this.namespace=e.readCString(),this.schema_location=e.readCString(),this.auxiliary_mime_types=e.readCString(),this.parseFooter(e);}write(e){this.writeHeader(e),this.size+=this.namespace.length+1+this.schema_location.length+1+this.auxiliary_mime_types.length+1,e.writeCString(this.namespace),e.writeCString(this.schema_location),e.writeCString(this.auxiliary_mime_types),this.writeFooter(e);}},Io=class extends Fe$4{static{this.fourcc="stxt";}parse(e){this.parseHeader(e),this.content_encoding=e.readCString(),this.mime_format=e.readCString(),this.parseFooter(e);}getCodec(){let e=super.getCodec();return this.mime_format?e+"."+this.mime_format:e}},Po$1=class Po extends Fe$4{static{this.fourcc="tx3g";}parse(e){this.parseHeader(e),this.displayFlags=e.readUint32(),this.horizontal_justification=e.readInt8(),this.vertical_justification=e.readInt8(),this.bg_color_rgba=e.readUint8Array(4),this.box_record=e.readInt16Array(4),this.style_record=e.readUint8Array(12),this.parseFooter(e);}},Ao=class extends He$2{static{this.fourcc="wvtt";}parse(e){this.parseHeader(e),this.parseFooter(e);}},ko=class extends p$3{constructor(...e){super(...e),this.box_name="SampleToGroupBox";}static{this.fourcc="sbgp";}parse(e){this.parseFullHeader(e),this.grouping_type=e.readString(4),this.version===1?this.grouping_type_parameter=e.readUint32():this.grouping_type_parameter=0,this.entries=[];let t=e.readUint32();for(let i=0;i<t;i++)this.entries.push({sample_count:e.readInt32(),group_description_index:e.readInt32()});}write(e){this.grouping_type_parameter?this.version=1:this.version=0,this.flags=0,this.size=8+8*this.entries.length+(this.version===1?4:0),this.writeHeader(e),e.writeString(this.grouping_type,void 0,4),this.version===1&&e.writeUint32(this.grouping_type_parameter),e.writeUint32(this.entries.length);for(let t=0;t<this.entries.length;t++){let i=this.entries[t];e.writeInt32(i.sample_count),e.writeInt32(i.group_description_index);}}},To=class extends p$3{constructor(...e){super(...e),this.box_name="SampleDependencyTypeBox";}static{this.fourcc="sdtp";}parse(e){this.parseFullHeader(e);let t=this.size-this.hdr_size;this.is_leading=[],this.sample_depends_on=[],this.sample_is_depended_on=[],this.sample_has_redundancy=[];for(let i=0;i<t;i++){let s=e.readUint8();this.is_leading[i]=s>>6,this.sample_depends_on[i]=s>>4&3,this.sample_is_depended_on[i]=s>>2&3,this.sample_has_redundancy[i]=s&3;}}},zo=class extends p$3{constructor(...e){super(...e),this.box_name="SampleGroupDescriptionBox";}static{this.fourcc="sgpd";}parse(e){this.parseFullHeader(e),this.grouping_type=e.readString(4),d$6.debug("BoxParser","Found Sample Groups of type "+this.grouping_type),this.version===1?this.default_length=e.readUint32():this.default_length=0,this.version>=2&&(this.default_group_description_index=e.readUint32()),this.entries=[];let t=e.readUint32();for(let i=0;i<t;i++){let s;this.grouping_type in ae$3.sampleGroupEntry?s=new ae$3.sampleGroupEntry[this.grouping_type](this.grouping_type):s=new G$4(this.grouping_type),this.entries.push(s),this.version===1?this.default_length===0?s.description_length=e.readUint32():s.description_length=this.default_length:s.description_length=this.default_length,s.write===G$4.prototype.write&&(d$6.info("BoxParser","SampleGroup for type "+this.grouping_type+" writing not yet implemented, keeping unparsed data in memory for later write"),s.data=e.readUint8Array(s.description_length),e.seek(e.getPosition()-s.description_length)),s.parse(e);}}write(e){this.flags=0,this.size=12;for(let t=0;t<this.entries.length;t++){let i=this.entries[t];this.version===1&&(this.default_length===0&&(this.size+=4),this.size+=i.data.length);}this.writeHeader(e),e.writeString(this.grouping_type,void 0,4),this.version===1&&e.writeUint32(this.default_length),this.version>=2&&e.writeUint32(this.default_sample_description_index),e.writeUint32(this.entries.length);for(let t=0;t<this.entries.length;t++){let i=this.entries[t];this.version===1&&this.default_length===0&&e.writeUint32(i.description_length),i.write(e);}}},Fo$1=class Fo extends p$3{constructor(...e){super(...e),this.box_name="CompressedSegmentIndexBox";}static{this.fourcc="sidx";}parse(e){this.parseFullHeader(e),this.reference_ID=e.readUint32(),this.timescale=e.readUint32(),this.version===0?(this.earliest_presentation_time=e.readUint32(),this.first_offset=e.readUint32()):(this.earliest_presentation_time=e.readUint64(),this.first_offset=e.readUint64()),e.readUint16(),this.references=[];let t=e.readUint16();for(let i=0;i<t;i++){let s=e.readUint32(),r=e.readUint32(),o=e.readUint32();this.references.push({reference_type:s>>31&1,referenced_size:s&2147483647,subsegment_duration:r,starts_with_SAP:o>>31&1,SAP_type:o>>28&7,SAP_delta_time:o&268435455});}}write(e){let t=this.earliest_presentation_time>W$3||this.first_offset>W$3||this.version===1;this.version=t?1:0,this.size=12+12*this.references.length,this.size+=t?16:8,this.flags=0,this.writeHeader(e),e.writeUint32(this.reference_ID),e.writeUint32(this.timescale),t?(e.writeUint64(this.earliest_presentation_time),e.writeUint64(this.first_offset)):(e.writeUint32(this.earliest_presentation_time),e.writeUint32(this.first_offset)),e.writeUint16(0),e.
964writeUint16(this.references.length);for(let i=0;i<this.references.length;i++){let s=this.references[i];e.writeUint32(s.reference_type<<31|s.referenced_size),e.writeUint32(s.subsegment_duration),e.writeUint32(s.starts_with_SAP<<31|s.SAP_type<<28|s.SAP_delta_time);}}},fn=class extends p$3{constructor(...e){super(...e),this.box_name="SoundMediaHeaderBox";}static{this.fourcc="smhd";}parse(e){this.parseFullHeader(e),this.balance=e.readUint16(),e.readUint16();}write(e){this.version=0,this.size=4,this.writeHeader(e),e.writeUint16(this.balance),e.writeUint16(0);}},mn=class extends p$3{constructor(...e){super(...e),this.box_name="ChunkOffsetBox";}static{this.fourcc="stco";}parse(e){this.parseFullHeader(e);let t=e.readUint32();if(this.chunk_offsets=[],this.version===0)for(let i=0;i<t;i++)this.chunk_offsets.push(e.readUint32());}write(e){this.version=0,this.flags=0,this.size=4+4*this.chunk_offsets.length,this.writeHeader(e),e.writeUint32(this.chunk_offsets.length),e.writeUint32Array(this.chunk_offsets);}unpack(e){for(let t=0;t<this.chunk_offsets.length;t++)e[t].offset=this.chunk_offsets[t];}},gn=class extends p$3{constructor(...e){super(...e),this.box_name="SubtitleMediaHeaderBox";}static{this.fourcc="sthd";}},_n=class extends p$3{constructor(...e){super(...e),this.box_name="SampleToChunkBox";}static{this.fourcc="stsc";}parse(e){this.parseFullHeader(e);let t=e.readUint32();if(this.first_chunk=[],this.samples_per_chunk=[],this.sample_description_index=[],this.version===0)for(let i=0;i<t;i++)this.first_chunk.push(e.readUint32()),this.samples_per_chunk.push(e.readUint32()),this.sample_description_index.push(e.readUint32());}write(e){this.version=0,this.flags=0,this.size=4+12*this.first_chunk.length,this.writeHeader(e),e.writeUint32(this.first_chunk.length);for(let t=0;t<this.first_chunk.length;t++)e.writeUint32(this.first_chunk[t]),e.writeUint32(this.samples_per_chunk[t]),e.writeUint32(this.sample_description_index[t]);}unpack(e){let t=0,i=0;for(let s=0;s<this.first_chunk.length;s++)for(let r=0;r<(s+1<this.first_chunk.length?this.first_chunk[s+1]:1/0);r++){i++;for(let o=0;o<this.samples_per_chunk[s];o++){if(e[t])e[t].description_index=this.sample_description_index[s],e[t].chunk_index=i;else return;t++;}}}},xn=class extends p$3{constructor(...e){super(...e),this.box_name="SampleDescriptionBox";}static{this.fourcc="stsd";}parse(e){this.parseFullHeader(e),this.entries=[];let t=e.readUint32();for(let i=1;i<=t;i++){let s=ge$3(e,true,this.size-(e.getPosition()-this.start));if(s.code===1){let r;s.type in ae$3.sampleEntry?(r=new ae$3.sampleEntry[s.type](s.size),r.hdr_size=s.hdr_size,r.start=s.start):(d$6.warn("BoxParser",`Unknown sample entry type: '${s.type}'`),r=new Se$3(s.size,s.hdr_size,s.start),r.type=s.type),r.write===Se$3.prototype.write&&(d$6.info("BoxParser","SampleEntry "+r.type+" box writing not yet implemented, keeping unparsed data in memory for later write"),r.parseDataAndRewind(e)),r.parse(e),this.entries.push(r);}else return}}write(e){this.version=0,this.flags=0,this.size=0,this.writeHeader(e),e.writeUint32(this.entries.length),this.size+=4;for(let t=0;t<this.entries.length;t++)this.entries[t].write(e),this.size+=this.entries[t].size;d$6.debug("BoxWriter","Adjusting box "+this.type+" with new size "+this.size),e.adjustUint32(this.sizePosition,this.size);}},yn=class extends p$3{constructor(...e){super(...e),this.box_name="SampleSizeBox";}static{this.fourcc="stsz";}parse(e){if(this.parseFullHeader(e),this.sample_sizes=[],this.version===0){this.sample_size=e.readUint32(),this.sample_count=e.readUint32();for(let t=0;t<this.sample_count;t++)this.sample_size===0?this.sample_sizes.push(e.readUint32()):this.sample_sizes[t]=this.sample_size;}}write(e){let t=true;this.version=0,this.flags=0,this.sample_sizes.length>0&&this.sample_size===0&&(t=false),this.size=8,t||(this.size+=4*this.sample_sizes.length),this.writeHeader(e),e.writeUint32(this.sample_size),e.writeUint32(this.sample_sizes.length),t||e.writeUint32Array(this.sample_sizes);}unpack(e){for(let t=0;t<this.sample_sizes.length;t++)e[t].size=this.sample_sizes[t];}},bn=class extends p$3{constructor(...e){super(...e),this.box_name="TimeToSampleBox",this.sample_counts=[],this.sample_deltas=[];}static{this.fourcc="stts";}parse(e){this.parseFullHeader(e);let t=e.readUint32();if(this.sample_counts.length=0,this.sample_deltas.length=0,this.version===0)for(let i=0;i<t;i++){this.sample_counts.push(e.readUint32());let s=e.readInt32();
964s<0&&(d$6.warn("BoxParser","File uses negative stts sample delta, using value 1 instead, sync may be lost!"),s=1),this.sample_deltas.push(s);}}write(e){this.version=0,this.flags=0,this.size=4+8*this.sample_counts.length,this.writeHeader(e),e.writeUint32(this.sample_counts.length);for(let t=0;t<this.sample_counts.length;t++)e.writeUint32(this.sample_counts[t]),e.writeUint32(this.sample_deltas[t]);}unpack(e){let t=0;for(let i=0;i<this.sample_counts.length;i++)for(let s=0;s<this.sample_counts[i];s++)t===0?e[t].dts=0:e[t].dts=e[t-1].dts+this.sample_deltas[i],t++;}},vn=class extends p$3{constructor(...e){super(...e),this.box_name="TrackFragmentBaseMediaDecodeTimeBox";}static{this.fourcc="tfdt";}parse(e){this.parseFullHeader(e),this.version===1?this.baseMediaDecodeTime=e.readUint64():this.baseMediaDecodeTime=e.readUint32();}write(e){let t=this.baseMediaDecodeTime>W$3||this.version===1;this.version=t?1:0,this.size=4,this.size+=t?4:0,this.flags=0,this.writeHeader(e),t?e.writeUint64(this.baseMediaDecodeTime):e.writeUint32(this.baseMediaDecodeTime);}},Sn=class extends p$3{constructor(...e){super(...e),this.box_name="TrackFragmentHeaderBox";}static{this.fourcc="tfhd";}parse(e){this.parseFullHeader(e);let t=0;this.track_id=e.readUint32(),this.size-this.hdr_size>t&&this.flags&1?(this.base_data_offset=e.readUint64(),t+=8):this.base_data_offset=0,this.size-this.hdr_size>t&&this.flags&2?(this.default_sample_description_index=e.readUint32(),t+=4):this.default_sample_description_index=0,this.size-this.hdr_size>t&&this.flags&8?(this.default_sample_duration=e.readUint32(),t+=4):this.default_sample_duration=0,this.size-this.hdr_size>t&&this.flags&16?(this.default_sample_size=e.readUint32(),t+=4):this.default_sample_size=0,this.size-this.hdr_size>t&&this.flags&32?(this.default_sample_flags=e.readUint32(),t+=4):this.default_sample_flags=0;}write(e){this.version=0,this.size=4,this.flags&1&&(this.size+=8),this.flags&2&&(this.size+=4),this.flags&8&&(this.size+=4),this.flags&16&&(this.size+=4),this.flags&32&&(this.size+=4),this.writeHeader(e),e.writeUint32(this.track_id),this.flags&1&&e.writeUint64(this.base_data_offset),this.flags&2&&e.writeUint32(this.default_sample_description_index),this.flags&8&&e.writeUint32(this.default_sample_duration),this.flags&16&&e.writeUint32(this.default_sample_size),this.flags&32&&e.writeUint32(this.default_sample_flags);}},wn=class extends p$3{constructor(...e){super(...e),this.box_name="TrackHeaderBox",this.layer=0,this.alternate_group=0;}static{this.fourcc="tkhd";}parse(e){this.parseFullHeader(e),this.version===1?(this.creation_time=e.readUint64(),this.modification_time=e.readUint64(),this.track_id=e.readUint32(),e.readUint32(),this.duration=e.readUint64()):(this.creation_time=e.readUint32(),this.modification_time=e.readUint32(),this.track_id=e.readUint32(),e.readUint32(),this.duration=e.readUint32()),e.readUint32Array(2),this.layer=e.readInt16(),this.alternate_group=e.readInt16(),this.volume=e.readInt16()>>8,e.readUint16(),this.matrix=e.readInt32Array(9),this.width=e.readUint32(),this.height=e.readUint32();}write(e){let t=this.modification_time>W$3||this.creation_time>W$3||this.duration>W$3||this.version===1;this.version=t?1:0,this.size=80,this.size+=t?12:0,this.flags=this.flags??3,this.writeHeader(e),t?(e.writeUint64(this.creation_time),e.writeUint64(this.modification_time),e.writeUint32(this.track_id),e.writeUint32(0),e.writeUint64(this.duration)):(e.writeUint32(this.creation_time),e.writeUint32(this.modification_time),e.writeUint32(this.track_id),e.writeUint32(0),e.writeUint32(this.duration)),e.writeUint32Array([0,0]),e.writeInt16(this.layer),e.writeInt16(this.alternate_group),e.writeInt16(this.volume<<8),e.writeInt16(0),e.writeInt32Array(this.matrix),e.writeUint32(this.width),e.writeUint32(this.height);}print(e){super.printHeader(e),e.log(e.indent+"creation_time: "+this.creation_time),e.log(e.indent+"modification_time: "+this.modification_time),e.log(e.indent+"track_id: "+this.track_id),e.log(e.indent+"duration: "+this.duration),e.log(e.indent+"volume: "+(this.volume>>8)),e.log(e.indent+"matrix: "+this.matrix.join(", ")),e.log(e.indent+"layer: "+this.layer),e.log(e.indent+"alternate_group: "+this.alternate_group),e.log(e.indent+"width: "+this.width),e.log(e.indent+"height: "+this.height);}},Si=class extends p$3{constructor(...e){super(...e),this.box_name="TrackExtendsBox";}static{this.fourcc="trex";}parse(e){this.parseFullHeader(e),this.track_id=e.readUint32(),this.default_sample_description_index=e.readUint32(),this.default_sample_duration=e.readUint32(),this.default_sample_size=e.readUint32(),this.default_sample_flags=e.readUint32();}write(e){this.version=0,this.flags=0,this.size=20,this.writeHeader(e),e.writeUint32(this.track_id),e.writeUint32(this.default_sample_description_index),e.writeUint32(this.default_sample_duration),e.writeUint32(this.default_sample_size),e.writeUint32(this.default_sample_flags);}},En=class extends p$3{constructor(...e){super(...e),this.box_name="TrackRunBox",this.sample_duration=[],this.sample_size=[],this.sample_flags=[],this.sample_composition_time_offset=[];}static{this.fourcc="trun";}parse(e){this.parseFullHeader(e);let t=0;if(this.sample_count=e.readUint32(),t+=4,this.size-this.hdr_size>t&&this.flags&1?(this.data_offset=e.readInt32(),t+=4):this.data_offset=0,this.size-this.hdr_size>t&&this.flags&4?(this.first_sample_flags=e.readUint32(),t+=4):this.first_sample_flags=0,this.sample_duration=[],this.sample_size=[],this.sample_flags=[],this.sample_composition_time_offset=[],this.size-this.hdr_size>t)for(let i=0;i<this.sample_count;i++)this.flags&256&&(this.sample_duration[i]=e.readUint32()),this.flags&512&&(this.sample_size[i]=e.readUint32()),this.flags&1024&&(this.sample_flags[i]=e.readUint32()),this.flags&2048&&(this.version===0?this.sample_composition_time_offset[i]=e.readUint32():this.sample_composition_time_offset[i]=e.readInt32());}write(e){this.size=4,this.flags&1&&(this.size+=4),this.flags&4&&(this.size+=4),this.flags&256&&(this.size+=4*this.sample_duration.length),this.flags&512&&(this.size+=4*this.sample_size.length),this.flags&1024&&(this.size+=4*this.sample_flags.length),this.flags&2048&&(this.size+=4*this.sample_composition_time_offset.length),this.writeHeader(e),e.writeUint32(this.sample_count),this.flags&1&&(this.data_offset_position=e.getPosition(),e.
964writeInt32(this.data_offset)),this.flags&4&&e.writeUint32(this.first_sample_flags);for(let t=0;t<this.sample_count;t++)this.flags&256&&e.writeUint32(this.sample_duration[t]),this.flags&512&&e.writeUint32(this.sample_size[t]),this.flags&1024&&e.writeUint32(this.sample_flags[t]),this.flags&2048&&(this.version===0?e.writeUint32(this.sample_composition_time_offset[t]):e.writeInt32(this.sample_composition_time_offset[t]));}},Cn=class extends p$3{constructor(...e){super(...e),this.box_name="DataEntryUrlBox";}static{this.fourcc="url ";}parse(e){this.parseFullHeader(e),this.flags!==1&&(this.location=e.readCString());}write(e){this.version=0,this.location?(this.flags=0,this.size=this.location.length+1):(this.flags=1,this.size=0),this.writeHeader(e),this.location&&e.writeCString(this.location);}},Bn=class extends p$3{constructor(...e){super(...e),this.box_name="VideoMediaHeaderBox";}static{this.fourcc="vmhd";}parse(e){this.parseFullHeader(e),this.graphicsmode=e.readUint16(),this.opcolor=e.readUint16Array(3);}write(e){this.version=0,this.size=8,this.writeHeader(e),e.writeUint16(this.graphicsmode),e.writeUint16Array(this.opcolor);}},xi=class{constructor(n,e,t){this.grouping_type=n,this.grouping_type_parameter=e,this.sbgp=t,this.last_sample_in_run=-1,this.entry_index=-1;}},Do$1=class ve{constructor(e,t=true){this.boxes=[],this.mdats=[],this.moofs=[],this.isProgressive=false,this.moovStartFound=false,this.moovStartSent=false,this.readySent=false,this.sampleListBuilt=false,this.fragmentedTracks=[],this.extractedTracks=[],this.isFragmentationInitialized=false,this.sampleProcessingStarted=false,this.nextMoofNumber=0,this.itemListBuilt=false,this.sidxSent=false,this.items=[],this.entity_groups=[],this.itemsDataSize=0,this.lastMoofIndex=0,this.samplesDataSize=0,this.lastBoxStartPosition=0,this.nextParsePosition=0,this.discardMdatData=true,this.discardMdatData=t,e?(this.stream=e,this.parse()):this.stream=new xt$1,this.stream.isofile=this;}setSegmentOptions(e,t,i){let{sizePerSegment:s=Number.MAX_SAFE_INTEGER,rapAlignement:r=true,normalizeAudioSampleEntriesForMSE:o=true}=i,a=i.nbSamples??i.nbSamplesPerFragment??1e3,l=i.nbSamplesPerFragment??a;if(a<=0||l<=0||s<=0){d$6.error("ISOFile",`Invalid segment options: nbSamples=${a}, nbSamplesPerFragment=${l}, sizePerSegment=${s}`);return}if(a<l&&(d$6.warn("ISOFile",`nbSamples (${a}) is less than nbSamplesPerFragment (${l}), setting nbSamples to nbSamplesPerFragment`),a=l),this.fragmentedTracks.some(h=>h.nb_samples!==a)){d$6.error("ISOFile",`Cannot set segment options for track ${e}: nbSamples (${a}) does not match existing tracks`);return}let c=this.getTrackById(e);if(c){let h={id:e,user:t,trak:c,segmentStream:void 0,nb_samples:a,nb_samples_per_fragment:l,size_per_segment:s,rapAlignement:r,normalizeAudioSampleEntriesForMSE:o,state:{lastFragmentSampleNumber:0,lastSegmentSampleNumber:0,accumulatedSize:0}};this.fragmentedTracks.push(h),c.nextSample=0;}this.discardMdatData&&d$6.warn("ISOFile","Segmentation options set but discardMdatData is true, samples will not be segmented");}unsetSegmentOptions(e){let t=-1;for(let i=0;i<this.fragmentedTracks.length;i++)this.fragmentedTracks[i].id===e&&(t=i);t>-1&&this.fragmentedTracks.splice(t,1);}setExtractionOptions(e,t,{nbSamples:i=1e3}={}){let s=this.getTrackById(e);s&&(this.extractedTracks.push({id:e,user:t,trak:s,nb_samples:i,samples:[]}),s.nextSample=0),this.discardMdatData&&d$6.warn("ISOFile","Extraction options set but discardMdatData is true, samples will not be extracted");}unsetExtractionOptions(e){let t=-1;for(let i=0;i<this.extractedTracks.length;i++)this.extractedTracks[i].id===e&&(t=i);t>-1&&this.extractedTracks.splice(t,1);}parse(){if(!(this.restoreParsePosition&&!this.restoreParsePosition()))for(;;)if(this.hasIncompleteMdat&&this.hasIncompleteMdat()){if(this.processIncompleteMdat())continue;return}else {this.saveParsePosition&&this.saveParsePosition();let t=ge$3(this.stream,false);if(t.code===0)if(this.processIncompleteBox){if(this.processIncompleteBox(t))continue;return}else return;else if(t.code===1){let i=t.box;if(this.boxes.push(i),i.type==="uuid")this[i.uuid]!==void 0&&d$6.warn("ISOFile","Duplicate Box of uuid: "+i.uuid+", overriding previous occurrence"),this[i.uuid]=i;else switch(i.type){case "mdat":this.mdats.push(i),this.transferMdatData(i);break;case "moof":this.moofs.push(i);break;case "free":case "skip":break;case "moov":this.moovStartFound=true,this.mdats.length===0&&(this.isProgressive=true);default:this[i.type]!==void 0?Array.isArray(this[i.type+"s"])?(d$6.info("ISOFile",`Found multiple boxes of type ${i.type} in ISOFile, adding to array`),this[i.type+"s"].push(i)):(d$6.warn("ISOFile",`Found multiple boxes of type ${i.type} but no array exists. Creating array dynamically.`),this[i.type+"s"]=[this[i.type],i]):(this[i.type]=i,Array.isArray(this[i.type+"s"])&&this[i.type+"s"].push(i));break}this.updateUsedBytes&&this.updateUsedBytes(i,t);}else if(t.code===-1){d$6.error("ISOFile",`Invalid data found while parsing box of type '${t.type}' at position ${t.start}. Aborting parsing.`,this);break}}}checkBuffer(e){if(!e)throw new Error("Buffer must be defined and non empty");return e.byteLength===0?(d$6.warn("ISOFile","Ignoring empty buffer (fileStart: "+e.fileStart+")"),this.stream.logBufferLevel(),false):(d$6.info("ISOFile","Processing buffer (fileStart: "+e.fileStart+")"),e.usedBytes=0,this.stream.insertBuffer(e),this.stream.logBufferLevel(),this.stream.initialized()?true:(d$6.warn("ISOFile","Not ready to start parsing"),false))}appendBuffer(e,t){let i;if(this.checkBuffer(e))return this.parse(),this.moovStartFound&&!this.moovStartSent&&(this.moovStartSent=true,this.onMoovStart&&this.onMoovStart()),this.moov?(this.sampleListBuilt||(this.buildSampleLists(),this.sampleListBuilt=true),this.updateSampleLists(),this.onReady&&!this.readySe
964nt&&(this.readySent=true,this.onReady(this.getInfo())),this.processSamples(t),this.nextSeekPosition?(i=this.nextSeekPosition,this.nextSeekPosition=void 0):i=this.nextParsePosition,this.stream.getEndFilePositionAfter&&(i=this.stream.getEndFilePositionAfter(i))):this.nextParsePosition?i=this.nextParsePosition:i=0,this.sidx&&this.onSidx&&!this.sidxSent&&(this.onSidx(this.sidx),this.sidxSent=true),this.meta&&(this.flattenItemInfo&&!this.itemListBuilt&&(this.flattenItemInfo(),this.itemListBuilt=true),this.processItems&&this.processItems(this.onItem)),this.stream.cleanBuffers&&(d$6.info("ISOFile","Done processing buffer (fileStart: "+e.fileStart+") - next buffer to fetch should have a fileStart position of "+i),this.stream.logBufferLevel(),this.stream.cleanBuffers(),this.stream.logBufferLevel(true),d$6.info("ISOFile","Sample data size in memory: "+this.getAllocatedSampleDataSize())),i}getFragmentDuration(){let e=this.getBox("mvex");if(!e)return;if(e.mehd)return {num:e.mehd.fragment_duration,den:this.moov.mvhd.timescale};let t=this.getBoxes("trak",false),i={num:0,den:1};for(let s of t){let r=s.samples_duration,o=s.mdia.mdhd.timescale;r&&o&&r/o>i.num/i.den&&(i={num:r,den:o});}return i}getInfo(){if(!this.moov)return {hasMoov:false,mime:""};let e=new Date("1904-01-01T00:00:00Z").getTime(),t=this.getBox("mvex")!==void 0,i={hasMoov:true,duration:this.moov.mvhd.duration,timescale:this.moov.mvhd.timescale,isFragmented:t,fragment_duration:this.getFragmentDuration(),isProgressive:this.isProgressive,hasIOD:this.moov.iods!==void 0,brands:[this.ftyp.major_brand].concat(this.ftyp.compatible_brands),created:new Date(e+this.moov.mvhd.creation_time*1e3),modified:new Date(e+this.moov.mvhd.modification_time*1e3),tracks:[],audioTracks:[],videoTracks:[],subtitleTracks:[],metadataTracks:[],hintTracks:[],otherTracks:[],mime:""};for(let s=0;s<this.moov.traks.length;s++){let r=this.moov.traks[s],o=r.mdia.minf.stbl.stsd.entries[0],a=r.samples_size,l=r.mdia.mdhd.timescale,c=r.samples_duration,h={samples_duration:c,bitrate:a*8*l/c,size:a,timescale:l,alternate_group:r.tkhd.alternate_group,codec:o.getCodec(),created:new Date(e+r.tkhd.creation_time*1e3),cts_shift:r.mdia.minf.stbl.cslg,duration:r.mdia.mdhd.duration,id:r.tkhd.track_id,kind:r.udta&&r.udta.kinds.length?r.udta.kinds[0]:{schemeURI:"",value:""},language:r.mdia.elng?r.mdia.elng.extended_language:r.mdia.mdhd.languageString,layer:r.tkhd.layer,matrix:r.tkhd.matrix,modified:new Date(e+r.tkhd.modification_time*1e3),movie_duration:r.tkhd.duration,movie_timescale:i.timescale,name:r.mdia.hdlr.name,nb_samples:r.samples.length,references:[],track_height:r.tkhd.height/65536,track_width:r.tkhd.width/65536,volume:r.tkhd.volume};if(i.tracks.push(h),r.tref)for(let u=0;u<r.tref.references.length;u++)h.references.push({type:r.tref.references[u].type,track_ids:r.tref.references[u].track_ids});r.edts!==void 0&&r.edts.elst!==void 0&&(h.edits=r.edts.elst.entries),o instanceof ie$3?(h.type="audio",i.audioTracks.push(h),h.audio={sample_rate:o.getSampleRate(),channel_count:o.getChannelCount(),sample_size:o.getSampleSize()}):o instanceof D$3?(h.type="video",i.videoTracks.push(h),h.video={width:o.getWidth(),height:o.getHeight()}):o instanceof Fe$4?(h.type="subtitles",i.subtitleTracks.push(h)):o instanceof ji?(h.type="metadata",i.hintTracks.push(h)):o instanceof He$2?(h.type="metadata",i.metadataTracks.push(h)):(h.type="metadata",i.otherTracks.push(h));}i.videoTracks&&i.videoTracks.length>0?i.mime+='video/mp4; codecs="':i.audioTracks&&i.audioTracks.length>0?i.mime+='audio/mp4; codecs="':i.mime+='application/mp4; codecs="';for(let s=0;s<i.tracks.length;s++)s!==0&&(i.mime+=","),i.mime+=i.tracks[s].codec;return i.mime+='"; profiles="',i.mime+=this.ftyp.compatible_brands.join(),i.mime+='"',i}setNextSeekPositionFromSample(e){e&&(this.nextSeekPosition?this.nextSeekPosition=Math.min(e.offset+e.alreadyRead,this.nextSeekPosition):this.nextSeekPosition=e.offset+e.alreadyRead);}processSamples(e){if(this.sampleProcessingStarted){if(this.isFragmentationInitialized&&this.onSegment!==void 0){let t=new Set;for(;t.size<this.fragmentedTracks.length&&this.fragmentedTracks.some(i=>i.trak.nextSample<i.trak.samples.length)&&this.sampleProcessingStarted;)for(let i of this.fragmentedTracks){let s=i.trak;
964if(!t.has(i.id)){let r=s.nextSample<s.samples.length?this.getSample(s,s.nextSample):void 0;if(!r){this.setNextSeekPositionFromSample(s.samples[s.nextSample]),t.add(i.id);continue}i.state.accumulatedSize+=r.size;let o=s.nextSample+1,a=o-i.state.lastFragmentSampleNumber>i.nb_samples_per_fragment,l=o-i.state.lastSegmentSampleNumber>i.nb_samples,c=a||o%i.nb_samples_per_fragment===0,h=l||o%i.nb_samples===0,u=i.state.accumulatedSize>=i.size_per_segment,x=!i.rapAlignement||r.is_sync,b=e||s.nextSample+1>=s.samples.length;if(b&&!x&&d$6.warn("ISOFile","Flushing track #"+i.id+" at sample #"+s.nextSample+" which is not a RAP, this may lead to playback issues"),c=c&&x,h=h&&x,u=u&&x,c||u||b){a?d$6.warn("ISOFile","Fragment on track #"+i.id+" is overdue, creating it with samples ["+i.state.lastFragmentSampleNumber+", "+s.nextSample+"]"):d$6.debug("ISOFile","Creating media fragment on track #"+i.id+" for samples ["+i.state.lastFragmentSampleNumber+", "+s.nextSample+"]");let z=this.createFragment(i.id,i.state.lastFragmentSampleNumber,s.nextSample,i.segmentStream);if(z)i.segmentStream=z,i.state.lastFragmentSampleNumber=s.nextSample+1;else {t.add(i.id);continue}}(h||u||b)&&(l?d$6.warn("ISOFile","Segment on track #"+i.id+" is overdue, sending it with samples ["+Math.max(0,s.nextSample-i.nb_samples)+", "+(s.nextSample-1)+"]"):d$6.info("ISOFile","Sending fragmented data on track #"+i.id+" for samples ["+Math.max(0,s.nextSample-i.nb_samples)+", "+(s.nextSample-1)+"]"),d$6.info("ISOFile","Sample data size in memory: "+this.getAllocatedSampleDataSize()),this.onSegment&&this.onSegment(i.id,i.user,i.segmentStream.buffer,s.nextSample+1,e||s.nextSample+1>=s.samples.length),i.segmentStream=void 0,i.state.accumulatedSize=0,i.state.lastSegmentSampleNumber=s.nextSample+1),s.nextSample++;}}}if(this.onSamples!==void 0)for(let t=0;t<this.extractedTracks.length;t++){let i=this.extractedTracks[t],s=i.trak;for(;s.nextSample<s.samples.length&&this.sampleProcessingStarted;){d$6.debug("ISOFile","Exporting on track #"+i.id+" sample #"+s.nextSample);let r=this.getSample(s,s.nextSample);if(r)s.nextSample++,i.samples.push(r);else {this.setNextSeekPositionFromSample(s.samples[s.nextSample]);break}if((s.nextSample%i.nb_samples===0||s.nextSample>=s.samples.length)&&(d$6.debug("ISOFile","Sending samples on track #"+i.id+" for sample "+s.nextSample),this.onSamples&&this.onSamples(i.id,i.user,i.samples),i.samples=[],i!==this.extractedTracks[t]))break}}}}getBox(e){let t=this.getBoxes(e,true);return t.length?t[0]:void 0}getBoxes(e,t){let i=[],s=r=>{r instanceof f$6&&r.type&&r.type===e&&i.push(r);let o=[];r.boxes&&o.push(...r.boxes),r.entries&&o.push(...r.entries),r.item_infos&&o.push(...r.item_infos),r.references&&o.push(...r.references);for(let a of o){if(i.length&&t)return;s(a);}};return s(this),i}getTrackSamplesInfo(e){let t=this.getTrackById(e);if(t)return t.samples}getTrackSample(e,t){let i=this.getTrackById(e);return this.getSample(i,t)}releaseUsedSamples(e,t){let i=0,s=this.getTrackById(e);s.lastValidSample||(s.lastValidSample=0);for(let r=s.lastValidSample;r<t;r++)i+=this.releaseSample(s,r);d$6.info("ISOFile","Track #"+e+" released samples up to "+t+" (released size: "+i+", remaining: "+this.samplesDataSize+")"),s.lastValidSample=t;}start(){this.sampleProcessingStarted=true,this.processSamples(false);}stop(){this.sampleProcessingStarted=false;}flush(){d$6.info("ISOFile","Flushing remaining samples"),this.updateSampleLists(),this.processSamples(true),this.stream.cleanBuffers(),this.stream.logBufferLevel(true);}seekTrack(e,t,i){let s=0,r=0,o;if(i.samples.length===0)return d$6.info("ISOFile","No sample in track, cannot seek! Using time "+d$6.getDurationString(0,1)+" and offset: 0"),{offset:0,time:0};for(let l=0;l<i.samples.length;l++){let c=i.samples[l];if(l===0)r=0,o=c.timescale;else if(c.cts>e*c.timescale){r=l-1;break}t&&c.is_sync&&(s=l);}for(t&&(r=s),e=i.samples[r].cts,i.nextSample=r,this.resetFragmentedTrackStateAfterSeek(i,r),this.resetExtractedTrackStateAfterSeek(i);i.samples[r].alreadyRead===i.samples[r].size&&i.samples[r+1];)r++;let a=i.samples[r].offset+i.samples[r].alreadyRead;return d$6.info("ISOFile","Seeking to "+(t?"RAP":"")+" sample #"+i.nextSample+" on track "+i.tkhd.track_id+", time "+d$6.getDurationString(e,o)+" and offset: "+a),{offset:a,time:e/o}}resetFragmentedTrackStateAfterSeek(e,t){let i=this.fragmentedTracks.find(s=>s.trak===e);i&&(i.state.lastFragmentSampleNumber=t,i.state.lastSegmentSampleNumber=t,i.state.accumulatedSize=0,i.segmentStream=void 0);}resetExtractedTrackStateAfterSeek(e){let t=this.extractedTracks.find(i=>i.trak===e);t&&(t.samples=[]);}getTrackDuration(e){if(!e.samples)return 1/0;let t=e.samples[e.samples.length-1];return (t.cts+t.duration)/t.timescale}seek(e,t){let i=this.moov,s={offset:1/0,time:1/0};if(this.moov){for(let r=0;r<i.traks.length;r++){let o=i.traks[r];if(e>this.getTrackDuration(o))continue;let a=this.seekTrack(e,t,o);a.offset<s.offset&&(s.offset=a.offset),a.time<s.time&&(s.time=a.time);}return d$6.info("ISOFile","Seeking at time "+d$6.getDurationString(s.time,1)+" needs a buffer with a fileStart position of "+s.offset),s.offset===1/0?s={offset:this.nextParsePosition,time:0}:s.offset=this.stream.getEndFilePositionAfter(s.offset),d$6.info("ISOFile","Adjusted seek position (after checking data already in buffer): "+s.offset),s}else throw new Error("Cannot seek: moov not received!")}equal(e){let t=0;for(;t<this.boxes.length&&t<e.boxes.length;){let i=this.boxes[t],s=e.boxes[t];if(!Wi(i,s))return  false;t++;}return  true}write(e){for(let t=0;t<this.boxes.length;t++)this.boxes[t].write(e);}createFragment(e,t,i,s){if(i<t)return d$6.warn("ISOFile",`Skipping fragment creation on track #${e}
964: invalid sample range [${t}, ${i}]`),s||new te$4;let r=[];for(let h=t;h<=i;h++){let u=this.getTrackById(e),x=this.getSample(u,h);if(!x){this.setNextSeekPositionFromSample(u.samples[h]);return}r.push(x);}let o=s||new te$4,a=this.createMoof(r);a.write(o),a.trafs[0].truns[0].data_offset=a.size+8,d$6.debug("MP4Box","Adjusting data_offset with new value "+a.trafs[0].truns[0].data_offset),o.adjustUint32(a.trafs[0].truns[0].data_offset_position,a.trafs[0].truns[0].data_offset);let l=new yt;l.stream=new xt$1;let c=0;for(let h of r)if(h.data){let u=me$3.fromArrayBuffer(h.data.buffer,c);l.stream.insertBuffer(u),c+=h.data.byteLength;}return l.write(o),o}static writeInitializationSegment(e,t,i,s){d$6.debug("ISOFile","Generating initialization segment");let r=new te$4;e.write(r);let o=ve.normalizeAudioSampleEntriesForMSEFragmentedInit(t.traks,s);try{let a=t.addBox(new vi);if(i){let l=a.addBox(new cn);l.fragment_duration=i;}for(let l=0;l<t.traks.length;l++){let c=a.addBox(new Si);c.track_id=t.traks[l].tkhd.track_id,c.default_sample_description_index=1,c.default_sample_duration=t.traks[l].samples[0]?.duration??0,c.default_sample_size=0,c.default_sample_flags=65536;}t.write(r);}finally{for(let a=o.length-1;a>=0;a--)o[a]();}return r.buffer}save(e){let t=new te$4;return t.isofile=this,this.write(t),t.save(e)}getBuffer(){let e=new te$4;return e.isofile=this,this.write(e),e}static normalizeAudioSampleEntriesForMSEFragmentedInit(e,t){let i=[];for(let s of e)if(t?.has(s.tkhd.track_id))for(let r of s.mdia.minf.stbl.stsd?.entries??[]){if(!(r instanceof pn))continue;let o=r.wave?.esds;if(r.esds||!o)continue;let a=r.esds,l=r.wave,c=r.boxes;i.push(()=>{r.esds=a,r.wave=l,r.boxes=c;});let h=Array.isArray(r.boxes)?r.boxes.filter(u=>u?.type!=="wave"&&u?.type!=="esds"):[];r.esds=o,r.boxes=[...h,o],r.wave=void 0;}return i}initializeSegmentation(e){if(this.onSegment||d$6.warn("MP4Box","No segmentation callback set!"),e!==void 0&&e!=="combined"&&e!=="per-track")throw new Error(`Invalid segmentation mode: ${e}`);this.isFragmentationInitialized||(this.isFragmentationInitialized=true,this.resetTables());let t=[];for(let o of this.fragmentedTracks){let a=this.getTrackById(o.id);if(!a){d$6.warn("ISOFile",`Track with id ${o.id} not found, skipping fragmentation initialization`);continue}t.push({id:o.id,user:o.user,trak:a});}let i=this.moov?.mvex?.mehd?.fragment_duration,s=new Set(this.fragmentedTracks.filter(o=>o.normalizeAudioSampleEntriesForMSE!==false).map(o=>o.id));if(e==="per-track")return t.map(({id:o,user:a,trak:l})=>{let c=new vt$1;return c.addBox(this.moov.mvhd),c.addBox(l),{id:o,user:a,buffer:ve.writeInitializationSegment(this.ftyp,c,i,s)}});let r=new vt$1;r.addBox(this.moov.mvhd);for(let o of t)r.addBox(o.trak);return {tracks:t.map(({id:o,user:a})=>({id:o,user:a})),buffer:ve.writeInitializationSegment(this.ftyp,r,i,s)}}resetTables(){this.initial_duration=this.moov.mvhd.duration,this.moov.mvhd.duration=0;for(let e=0;e<this.moov.traks.length;e++){let t=this.moov.traks[e];t.tkhd.duration=0,t.mdia.mdhd.duration=0;let i=t.mdia.minf.stbl.stco||t.mdia.minf.stbl.co64;i.chunk_offsets=[];let s=t.mdia.minf.stbl.stsc;s.first_chunk=[],s.samples_per_chunk=[],s.sample_description_index=[];let r=t.mdia.minf.stbl.stsz||t.mdia.minf.stbl.stz2;r.sample_sizes=[];let o=t.mdia.minf.stbl.stts;o.sample_counts=[],o.sample_deltas=[];let a=t.mdia.minf.stbl.ctts;a&&(a.sample_counts=[],a.sample_offsets=[]);let l=t.mdia.minf.stbl.stss,c=t.mdia.minf.stbl.boxes.indexOf(l);c!==-1&&(t.mdia.minf.stbl.boxes[c]=void 0);}}static initSampleGroups(e,t,i,s,r){t&&(t.sample_groups_info=[]),e.sample_groups_info||(e.sample_groups_info=[]);for(let o=0;o<i.length;o++){let a=i[o].grouping_type+"/"+i[o].grouping_type_parameter,l=new xi(i[o].grouping_type,i[o].grouping_type_parameter,i[o]);t&&(t.sample_groups_info[a]=l),e.sample_groups_info[a]||(e.sample_groups_info[a]=l);for(let c=0;c<s.length;c++)s[c].grouping_type===i[o].grouping_type&&(l.description=s[c],l.description.used=true);if(r)for(let c=0;c<r.length;c++)r[c].grouping_type===i[o].grouping_type&&(l.fragment_description=r[c],l.fragment_description.used=true,l.is_fragment=true);}if(t){if(r){for(let o=0;o<r.length;o++)if(!r[o].used&&r[o].version>=2){let a=r[o].grouping_type+"/0",l=new xi(r[o].grouping_type,0);l.is_fragment=true,t.sample_groups_info[a]||(t.sample_groups_info[a]=l);}}}else for(let o=0;o<s.length;o++)if(!s[o].used&&s[o].version>=2){let a=s[o].grouping_type+"/0",l=new xi(s[o].grouping_type,0);e.sample_groups_info[a]||(e.sample_groups_info[a]=l);}}static setSampleGroupProperties(e,t,i,s){t.sample_groups=[];for(let r in s)if(t.sample_groups[r]={grouping_type:s[r].grouping_type,grouping_type_parameter:s[r].grouping_type_parameter},i>=s[r].last_sample_in_run&&(s[r].last_sample_in_run<0&&(s[r].last_sample_in_run=0),s[r].entry_index++,s[r].entry_index<=s[r].sbgp.entries.length-1&&(s[r].last_sample_in_run+=s[r].sbgp.entries[s[r].entry_index].sample_count)),s[r].entry_index<=s[r].sbgp.entries.length-1?t.sample_groups[r].group_description_index=s[r].sbgp.entries[s[r].entry_index].group_description_index:t.sample_groups[r].group_description_index=-1,t.sample_groups[r].group_description_index!==0){let o;if(s[r].fragment_description?o=s[r].fragment_description:o=s[r].description,t.s
964ample_groups[r].group_description_index>0){let a;t.sample_groups[r].group_description_index>65535?a=(t.sample_groups[r].group_description_index>>16)-1:a=t.sample_groups[r].group_description_index-1,o&&a>=0&&(t.sample_groups[r].description=o.entries[a]);}else o&&o.version>=2&&o.default_group_description_index>0&&(t.sample_groups[r].description=o.entries[o.default_group_description_index-1]);}}static process_sdtp(e,t,i){t&&(e?(t.is_leading=e.is_leading[i],t.depends_on=e.sample_depends_on[i],t.is_depended_on=e.sample_is_depended_on[i],t.has_redundancy=e.sample_has_redundancy[i]):(t.is_leading=0,t.depends_on=0,t.is_depended_on=0,t.has_redundancy=0));}buildSampleLists(){for(let e=0;e<this.moov.traks.length;e++)this.buildTrakSampleLists(this.moov.traks[e]);}buildTrakSampleLists(e){let t,i,s,r,o,a;e.samples=[],e.samples_duration=0,e.samples_size=0;let l=e.mdia.minf.stbl.stco||e.mdia.minf.stbl.co64,c=e.mdia.minf.stbl.stsc,h=e.mdia.minf.stbl.stsz||e.mdia.minf.stbl.stz2,u=e.mdia.minf.stbl.stts,x=e.mdia.minf.stbl.ctts,b=e.mdia.minf.stbl.stss,z=e.mdia.minf.stbl.stsd,F=e.mdia.minf.stbl.subs,Z=e.mdia.minf.stbl.stdp,X=e.mdia.minf.stbl.sbgps,de=e.mdia.minf.stbl.sgpds,Y=-1,L=-1,pe=-1,rt=-1,Et=0,ne=0,_e=0;if(ve.initSampleGroups(e,void 0,X,de),!(typeof h>"u")){for(t=0;t<h.sample_sizes.length;t++){let C={number:t,track_id:e.tkhd.track_id,timescale:e.mdia.mdhd.timescale,alreadyRead:0,size:h.sample_sizes[t]};e.samples[t]=C,e.samples_size+=C.size,t===0?(s=1,i=0,C.chunk_index=s,C.chunk_run_index=i,a=c.samples_per_chunk[i],o=0,i+1<c.first_chunk.length?r=c.first_chunk[i+1]-1:r=1/0):t<a?(C.chunk_index=s,C.chunk_run_index=i):(s++,C.chunk_index=s,o=0,s<=r||(i++,i+1<c.first_chunk.length?r=c.first_chunk[i+1]-1:r=1/0),C.chunk_run_index=i,a+=c.samples_per_chunk[i]),C.description_index=c.sample_description_index[C.chunk_run_index]-1,C.description=z.entries[C.description_index],C.offset=l.chunk_offsets[C.chunk_index-1]+o,o+=C.size,t>Y&&(L++,Y<0&&(Y=0),Y+=u.sample_counts[L]),t>0?(e.samples[t-1].duration=u.sample_deltas[L],e.samples_duration+=e.samples[t-1].duration,C.dts=e.samples[t-1].dts+e.samples[t-1].duration):C.dts=0,x?(t>=pe&&(rt++,pe<0&&(pe=0),pe+=x.sample_counts[rt]),C.cts=e.samples[t].dts+x.sample_offsets[rt]):C.cts=C.dts,b?(t===b.sample_numbers[Et]-1?(C.is_sync=true,Et++):(C.is_sync=false,C.degradation_priority=0),F&&F.entries[ne].sample_delta+_e===t+1&&(C.subsamples=F.entries[ne].subsamples,_e+=F.entries[ne].sample_delta,ne++)):C.is_sync=true,ve.process_sdtp(e.mdia.minf.stbl.sdtp,C,C.number),Z?C.degradation_priority=Z.priority[t]:C.degradation_priority=0,F&&F.entries[ne].sample_delta+_e===t&&(C.subsamples=F.entries[ne].subsamples,_e+=F.entries[ne].sample_delta),(X.length>0||de.length>0)&&ve.setSampleGroupProperties(e,C,t,e.sample_groups_info);}t>0&&(e.samples[t-1].duration=Math.max(e.mdia.mdhd.duration-e.samples[t-1].dts,0),e.samples_duration+=e.samples[t-1].duration);}}updateSampleLists(){let e,t,i,s,r;if(this.moov!==void 0)for(;this.lastMoofIndex<this.moofs.length;){let o=this.moofs[this.lastMoofIndex];if(this.lastMoofIndex++,o.type==="moof"){let a=o;for(let l=0;l<a.trafs.length;l++){let c=a.trafs[l],h=this.getTrackById(c.tfhd.track_id),u=this.getTrexById(c.tfhd.track_id);c.tfhd.flags&2?e=c.tfhd.default_sample_description_index:e=u?u.default_sample_description_index:1,c.tfhd.flags&8?t=c.tfhd.default_sample_duration:t=u?u.default_sample_duration:0,c.tfhd.flags&16?i=c.tfhd.default_sample_size:i=u?u.default_sample_size:0,c.tfhd.flags&32?s=c.tfhd.default_sample_flags:s=u?u.default_sample_flags:0,c.sample_number=0,c.sbgps.length>0&&ve.initSampleGroups(h,c,c.sbgps,h.mdia.minf.stbl.sgpds,c.sgpds);for(let x=0;x<c.truns.length;x++){let b=c.truns[x];for(let z=0;z<b.sample_count;z++){let F=e-1,Z=s;b.flags&1024?Z=b.sample_flags[z]:z===0&&b.flags&4&&(Z=b.first_sample_flags);let X=i;b.flags&512&&(X=b.sample_size[z]),h.samples_size+=X;let de=t;b.flags&256&&(de=b.sample_duration[z]),h.samples_duration+=de;let Y;h.first_traf_merged||z>0?Y=h.samples[h.samples.length-1].dts+h.samples[h.samples.length-1].duration:(c.tfdt?Y=c.tfdt.baseMediaDecodeTime:Y=0,h.first_traf_merged=true);let L=Y;b.flags&2048&&(L=Y+b.sample_composition_time_offset[z]);let pe=!!(c.tfhd.flags&1),rt=!!(c.tfhd.flags&131072),Et=!!(b.flags&1),ne=0;pe?ne=c.tfhd.base_data_offset:rt||x===0?ne=a.start:ne=r;let _e;x===0&&z===0?Et?_e=ne+b.data_offset:_e=ne:_e=r,r=_e+X;let C=c.sample_number;c.sample_number++;let zi={cts:L,description_index:F,description:h.mdia.minf.stbl.stsd.entries[F],dts:Y,duration:de,moof_number:this.lastMoofIndex,number_in_traf:C,number:h.samples.length,offset:_e,size:X,timescale:h.mdia.mdhd.timescale,track_id:h.tkhd.track_id,is_sync:!(Z>>16&1),is_leading:Z>>26&3,depends_on:Z>>24&3,is_depended_on:Z>>
96422&3,has_redundancy:Z>>20&3,degradation_priority:Z&65535};c.first_sample_index=h.samples.length,h.samples.push(zi),(c.sbgps.length>0||c.sgpds.length>0||h.mdia.minf.stbl.sbgps.length>0||h.mdia.minf.stbl.sgpds.length>0)&&ve.setSampleGroupProperties(h,zi,zi.number_in_traf,c.sample_groups_info);}}if(c.subs){h.has_fragment_subsamples=true;let x=c.first_sample_index;for(let b=0;b<c.subs.entries.length;b++){x+=c.subs.entries[b].sample_delta;let z=h.samples[x-1];z.subsamples=c.subs.entries[b].subsamples;}}}}}}getSample(e,t){let i=e.samples[t];if(this.moov){if(!i.data)i.data=new Uint8Array(i.size),i.alreadyRead=0,this.samplesDataSize+=i.size,d$6.debug("ISOFile","Allocating sample #"+t+" on track #"+e.tkhd.track_id+" of size "+i.size+" (total: "+this.samplesDataSize+")");else if(i.alreadyRead===i.size)return i;for(;;){let s=this.stream,r=s.findPosition(true,i.offset+i.alreadyRead,false),o,a;if(r>-1)o=s.buffers[r],a=o.fileStart;else for(let l of this.mdats){if(!l.stream){d$6.debug("ISOFile","mdat stream not yet fully read for #"+this.mdats.indexOf(l)+" mdat");continue}if(r=l.stream.findPosition(true,i.offset+i.alreadyRead-l.start-l.hdr_size,false),r>-1){s=l.stream,o=l.stream.buffers[r],a=l.start+l.hdr_size+o.fileStart;break}}if(o){let l=o.byteLength-(i.offset+i.alreadyRead-a);if(i.size-i.alreadyRead<=l)return d$6.debug("ISOFile","Getting sample #"+t+" data (alreadyRead: "+i.alreadyRead+" offset: "+(i.offset+i.alreadyRead-a)+" read size: "+(i.size-i.alreadyRead)+" full size: "+i.size+")"),te$4.memcpy(i.data.buffer,i.alreadyRead,o,i.offset+i.alreadyRead-a,i.size-i.alreadyRead),o.usedBytes+=i.size-i.alreadyRead,s.logBufferLevel(),i.alreadyRead=i.size,i;if(l===0)return;d$6.debug("ISOFile","Getting sample #"+t+" partial data (alreadyRead: "+i.alreadyRead+" offset: "+(i.offset+i.alreadyRead-a)+" read size: "+l+" full size: "+i.size+")"),te$4.memcpy(i.data.buffer,i.alreadyRead,o,i.offset+i.alreadyRead-a,l),i.alreadyRead+=l,o.usedBytes+=l,s.logBufferLevel();}else return}}}releaseSample(e,t){let i=e.samples[t];return i.data?(this.samplesDataSize-=i.size,i.data=void 0,i.alreadyRead=0,i.size):0}getAllocatedSampleDataSize(){return this.samplesDataSize}getCodecs(){let e="";for(let t=0;t<this.moov.traks.length;t++){let i=this.moov.traks[t];t>0&&(e+=","),e+=i.mdia.minf.stbl.stsd.entries[0].getCodec();}return e}getTrexById(e){if(!(!this.moov||!this.moov.mvex))for(let t=0;t<this.moov.mvex.trexs.length;t++){let i=this.moov.mvex.trexs[t];if(i.track_id===e)return i}}getTrackById(e){if(this.moov)for(let t=0;t<this.moov.traks.length;t++){let i=this.moov.traks[t];if(i.tkhd.track_id===e)return i}}flattenItemInfo(){let e=this.items,t=this.entity_groups,i=this.meta;if(!(!i||!i.hdlr||!i.iinf)){for(let s=0;s<i.iinf.item_infos.length;s++){let r=i.iinf.item_infos[s].item_ID;e[r]={id:r,name:i.iinf.item_infos[s].item_name,ref_to:[],content_type:i.iinf.item_infos[s].content_type,content_encoding:i.iinf.item_infos[s].content_encoding,item_uri_type:i.iinf.item_infos[s].item_uri_type,type:i.iinf.item_infos[s].item_type?i.iinf.item_infos[s].item_type:"mime",protection:i.iinf.item_infos[s].item_protection_index>0?i.ipro.protections[i.iinf.item_infos[s].item_protection_index-1]:void 0};}if(i.grpl)for(let s=0;s<i.grpl.boxes.length;s++){let r=i.grpl.boxes[s];t[r.group_id]={id:r.group_id,entity_ids:r.entity_ids,type:r.type};}if(i.iloc)for(let s=0;s<i.iloc.items.length;s++){let r=i.iloc.items[s],o=e[r.item_ID];r.data_reference_index!==0&&(d$6.warn("Item storage with reference to other files: not supported"),o.source=i.dinf.boxes[r.data_reference_index-1]),o.extents=[],o.size=0;for(let a=0;a<r.extents.length;a++)o.extents[a]={offset:r.extents[a].extent_offset+r.base_offset,length:r.extents[a].extent_length,alreadyRead:0},r.construction_method===1&&(o.extents[a].offset+=i.idat.start+i.idat.hdr_size),o.size+=o.extents[a].length;}if(i.pitm){let s=i.pitm.item_id;e[s]?e[s].primary=true:d$6.warn("ISOFile","Primary item_id #"+s+" does not exist in items");}if(i.iref)for(let s=0;s<i.iref.references.length;s++){let r=i.iref.references[s];for(let o=0;o<r.references.length;o++)e[r.from_item_ID].ref_to.push({type:r.type,id:r.references[o]});}if(i.iprp)for(let s=0;s<i.iprp.ipmas.length;s++){let r=i.iprp.ipmas[s];for(let o=0;o<r.associations.length;o++){let a=r.associations[o],l=e[a.id]??t[a.id];if(l){l.properties===void 0&&(l.properties={boxes:[]});for(let c=0;c<a.props.length;c++){let h=a.props[c];if(h.property_index>0&&h.property_index-1<i.iprp.ipco.boxes.length){let u=i.iprp.ipco.boxes[h.property_index-1];l.properties[u.type]=u,l.properties.boxes.push(u);}}}}}}}getItem(e){if(!this.meta)return;let t=this.items[e];if(!t.data&&t.size)t.data=new Uint8Array(t.size),t.alreadyRead=0,this.itemsDataSize+=t.size,d$6.debug("ISOFile","Allocating item #"+e+" of size "+t.size+" (total: "+this.itemsDataSize+")");else if(t.alreadyRead===t.size)return t;for(let i=0;i<t.extents.length;i++){let s=t.extents[i];if(s.alreadyRead!==s.length){let r=this.stream.findPosition(true,s.offset+s.alreadyRead,false);
964if(r>-1){let o=this.stream.buffers[r],a=o.byteLength-(s.offset+s.alreadyRead-o.fileStart);if(s.length-s.alreadyRead<=a)d$6.debug("ISOFile","Getting item #"+e+" extent #"+i+" data (alreadyRead: "+s.alreadyRead+" offset: "+(s.offset+s.alreadyRead-o.fileStart)+" read size: "+(s.length-s.alreadyRead)+" full extent size: "+s.length+" full item size: "+t.size+")"),te$4.memcpy(t.data.buffer,t.alreadyRead,o,s.offset+s.alreadyRead-o.fileStart,s.length-s.alreadyRead),(!this.parsingMdat||this.discardMdatData)&&(o.usedBytes+=s.length-s.alreadyRead),this.stream.logBufferLevel(),t.alreadyRead+=s.length-s.alreadyRead,s.alreadyRead=s.length;else {d$6.debug("ISOFile","Getting item #"+e+" extent #"+i+" partial data (alreadyRead: "+s.alreadyRead+" offset: "+(s.offset+s.alreadyRead-o.fileStart)+" read size: "+a+" full extent size: "+s.length+" full item size: "+t.size+")"),te$4.memcpy(t.data.buffer,t.alreadyRead,o,s.offset+s.alreadyRead-o.fileStart,a),s.alreadyRead+=a,t.alreadyRead+=a,(!this.parsingMdat||this.discardMdatData)&&(o.usedBytes+=a),this.stream.logBufferLevel();return}}else return}}if(t.alreadyRead===t.size)return t}releaseItem(e){let t=this.items[e];if(t.data){this.itemsDataSize-=t.size,t.data=void 0,t.alreadyRead=0;for(let i=0;i<t.extents.length;i++){let s=t.extents[i];s.alreadyRead=0;}return t.size}else return 0}processItems(e){for(let t in this.items){let i=this.items[t];this.getItem(i.id),e&&!i.sent&&(e(i),i.sent=true,i.data=void 0);}}hasItem(e){for(let t in this.items){let i=this.items[t];if(i.name===e)return i.id}return  -1}getMetaHandler(){if(this.meta)return this.meta.hdlr.handler}getPrimaryItem(){if(this.meta&&this.meta.pitm)return this.getItem(this.meta.pitm.item_id)}itemToFragmentedTrackFile({itemId:e}={}){let t;if(e?t=this.getItem(e):t=this.getPrimaryItem(),!t)return;let i=new ve;i.discardMdatData=false;let s={type:t.type,description_boxes:t.properties.boxes};t.properties.ispe&&(s.width=t.properties.ispe.image_width,s.height=t.properties.ispe.image_height);let r=i.addTrack(s);if(r)return i.addSample(r,t.data),i}processIncompleteBox(e){if(e.type==="mdat"){let t=new yt(e.size);return this.parsingMdat=t,this.boxes.push(t),this.mdats.push(t),t.start=e.start,t.hdr_size=e.hdr_size,t.original_size=e.original_size,this.stream.addUsedBytes(t.hdr_size),this.lastBoxStartPosition=t.start+t.size,this.stream.seek(t.start+t.size,false,this.discardMdatData)?(this.transferMdatData(),this.parsingMdat=void 0,true):(this.moovStartFound?this.nextParsePosition=this.stream.findEndContiguousBuf():this.nextParsePosition=t.start+t.size,false)}else return e.type==="moov"&&(this.moovStartFound=true,this.mdats.length===0&&(this.isProgressive=true)),this.stream.mergeNextBuffer&&this.stream.mergeNextBuffer()?(this.nextParsePosition=this.stream.getEndPosition(),true):(e.type?this.moovStartFound?this.nextParsePosition=this.stream.getEndPosition():this.nextParsePosition=this.stream.getPosition()+e.size:this.nextParsePosition=this.stream.getEndPosition(),false)}hasIncompleteMdat(){return this.parsingMdat!==void 0}transferMdatData(e){let t=e??this.parsingMdat;if(this.discardMdatData){d$6.debug("ISOFile","Discarding 'mdat' data, not transferring it to the mdat box stream");return}if(!t){d$6.warn("ISOFile","Cannot transfer 'mdat' data, no mdat box is being parsed");return}let i=this.stream.findPosition(true,t.start+t.hdr_size,false),s=this.stream.findPosition(true,t.start+t.size,false);if(i===-1||s===-1){d$6.warn("ISOFile","Cannot transfer 'mdat' data, start or end buffer not found");return}t.stream=new xt$1;for(let r=i;r<=s;r++){let o=this.stream.buffers[r],a=r===i?t.start+t.hdr_size-o.fileStart:0,l=r===s?t.start+t.size-o.fileStart:o.byteLength;if(l>a){d$6.debug("ISOFile","Transferring 'mdat' data from buffer #"+r+" ("+a+" to "+l+")");let c=l-a,h=new me$3(c),u=t.stream.getAbsoluteEndPosition();te$4.memcpy(h,0,o,a,c),h.fileStart=u,t.stream.insertBuffer(h),o.usedBytes+=c;}}}processIncompleteMdat(){let e=this.parsingMdat;return this.stream.seek(e.start+e.size,false,this.discardMdatData)?(d$6.debug("ISOFile","Found 'mdat' end in buffered data"),this.transferMdatData(),this.parsingMdat=void 0,true):(this.nextParsePosition=this.stream.findEndContiguousBuf(),false)}restoreParsePosition(){return this.stream.seek(this.lastBoxStartPosition,true,this.discardMdatData)}saveParsePosition(){this.lastBoxStartPosition=this.stream.getPosition();}updateUsedBytes(e,t){this.stream.addUsedBytes&&(e.type==="mdat"?(this.stream.addUsedBytes(e.hdr_size),this.discardMdatData&&this.stream.addUsedBytes(e.size-e.hdr_size)):this.stream.addUsedBytes(e.size));}addBox(e){return f$6.prototype.addBox.call(this,e)}init(e={}){let t=this.addBox(new rn);t.major_brand=e.brands&&e.brands[0]||"iso4",t.minor_version=0,t.compatible_brands=e.brands||["iso4"];let i=this.addBox(new vt$1);i.addBox(new vi);let s=i.addBox(new hn);return s.timescale=e.timescale||600,s.rate=e.rate||65536,s.creation_time=0,s.modification_time=0,s.duration=e.duration||0,s.volume=e.width?0:256,s.matrix=[65536,0,0,0,65536,0,0,0,1073741824],s.next_track_id=1,this}addTrack(e={}){this.moov||this.init(e);let t=e||{};t.width=t.width||320,t.height=t.height||320,t.id=t.id||this.moov.mvhd.next_track_id,t.type=t.type||"avc1";let i=this.moov.addBox(new qi);
964this.moov.mvhd.next_track_id=t.id+1;let s=i.addBox(new wn);s.flags=7,s.creation_time=0,s.modification_time=0,s.track_id=t.id,s.duration=t.duration||0,s.layer=t.layer||0,s.alternate_group=0,s.volume=1,s.matrix=[65536,0,0,0,65536,0,0,0,1073741824],s.width=t.width<<16,s.height=t.height<<16;let r=i.addBox(new Ki),o=r.addBox(new ln);o.creation_time=0,o.modification_time=0,o.timescale=t.timescale||1,o.duration=t.media_duration||0,o.language=t.language||"und";let a=r.addBox(new on);a.handler=t.hdlr||"vide",a.name=t.name||"Track created with MP4Box.js";let l=r.addBox(new sn);l.extended_language=t.language||"fr-FR";let c=r.addBox(new Qi),h=ae$3.sampleEntry[t.type];if(!h)return;let u=new h;if(u.data_reference_index=1,u instanceof D$3){let L=u,pe=c.addBox(new Bn);pe.graphicsmode=0,pe.opcolor=[0,0,0],L.width=t.width,L.height=t.height,L.horizresolution=72<<16,L.vertresolution=72<<16,L.frame_count=1,L.compressorname=t.type+" Compressor",L.depth=24,t.avcDecoderConfigRecord?L.addBox(new $i(t.avcDecoderConfigRecord.byteLength)).parse(new te$4(t.avcDecoderConfigRecord)):t.hevcDecoderConfigRecord&&L.addBox(new an(t.hevcDecoderConfigRecord.byteLength)).parse(new te$4(t.hevcDecoderConfigRecord));}else if(u instanceof ie$3){let L=u,pe=c.addBox(new fn);pe.balance=t.balance||0,L.channel_count=t.channel_count||2,L.samplesize=t.samplesize||16,L.samplerate=t.samplerate||65536;}else u instanceof ji?c.addBox(new Zi):u instanceof Fe$4?(c.addBox(new gn),u instanceof un&&(u.namespace=t.namespace||"nonamespace",u.schema_location=t.schema_location||"",u.auxiliary_mime_types=t.auxiliary_mime_types||"")):u instanceof He$2?c.addBox(new bt$1):u instanceof wi?c.addBox(new bt$1):c.addBox(new bt$1);t.description&&u.addBox.call(u,t.description),t.description_boxes&&t.description_boxes.forEach(function(L){u.addBox.call(u,L);});let x=c.addBox(new Xi).addBox(new nn),b=new Cn;b.flags=1,x.addEntry(b);let z=c.addBox(new Ji);z.addBox(new xn).addEntry(u);let F=z.addBox(new bn);F.sample_counts=[],F.sample_deltas=[];let Z=z.addBox(new _n);Z.first_chunk=[],Z.samples_per_chunk=[],Z.sample_description_index=[];let X=z.addBox(new mn);X.chunk_offsets=[];let de=z.addBox(new yn);de.sample_sizes=[];let Y=this.moov.mvex.addBox(new Si);return Y.track_id=t.id,Y.default_sample_description_index=t.default_sample_description_index||1,Y.default_sample_duration=t.default_sample_duration||0,Y.default_sample_size=t.default_sample_size||0,Y.default_sample_flags=t.default_sample_flags||0,this.buildTrakSampleLists(i),t.id}addSample(e,t,{sample_description_index:i,duration:s=1,cts:r=0,dts:o=0,is_sync:a=false,is_leading:l=0,depends_on:c=0,is_depended_on:h=0,has_redundancy:u=0,degradation_priority:x=0,subsamples:b,offset:z=0}={}){let F=this.getTrackById(e);if(F===void 0)return;let Z=i?i-1:0,X={number:F.samples.length,track_id:F.tkhd.track_id,timescale:F.mdia.mdhd.timescale,description_index:Z,description:F.mdia.minf.stbl.stsd.entries[Z],data:t,size:t.byteLength,alreadyRead:t.byteLength,duration:s,cts:r,dts:o,is_sync:a,is_leading:l,depends_on:c,is_depended_on:h,has_redundancy:u,degradation_priority:x,offset:z,subsamples:b};F.samples.push(X),F.samples_size+=X.size,F.samples_duration+=X.duration,F.first_dts===void 0&&(F.first_dts=o),this.processSamples();let de=this.addBox(this.createMoof([X]));de.computeSize(),de.trafs[0].truns[0].data_offset=de.size+8;let Y=this.addBox(new yt);return Y.data=new Uint8Array(t),X}createMoof(e){if(e.length===0)return;if(e.some(h=>h.track_id!==e[0].track_id))throw new Error("Cannot create moof for samples from different tracks: "+e.map(h=>h.track_id).join(", "));let t=e[0].track_id,i=this.getTrackById(t);if(!i)throw new Error("Cannot create moof for non-existing track: "+t);let s=new en,r=s.addBox(new dn);r.sequence_number=++this.nextMoofNumber;let o=s.addBox(new tn),a=o.addBox(new Sn);a.track_id=t,a.flags=nl;let l=o.addBox(new vn);l.baseMediaDecodeTime=e[0].dts-(i.first_dts||0);let c=o.addBox(new En);c.flags=769|sl|rl,c.data_offset=0,c.first_sample_flags=0,c.sample_count=e.length;for(let h of e){let u=0;h.is_sync?u=1<<25:u=65536,c.sample_duration.push(h.duration),c.sample_size.push(h.size),c.sample_flags.push(u),c.sample_composition_time_offset.push(h.cts-h.dts);}return s}print(e){e.indent="";for(let t=0;t<this.boxes.length;t++)this.boxes[t]&&this.boxes[t].print(e);}};function Bi(n=false,e){return new Do$1(e,!n)}var Oo=class extends p$3{constructor(...e){super(...e),this.box_name="EventMessageBox";}static{this.fourcc="emsg";}parse(e){this.parseFullHeader(e),this.version===1?(this.timescale=e.readUint32(),this.presentation_time=e.readUint64(),this.event_duration=e.readUint32(),this.id=e.readUint32(),this.scheme_id_uri=e.readCString(),this.value=e.readCString()):(this.scheme_id_uri=e.readCString(),this.value=e.readCString(),this.timescale=e.readUint32(),this.presentation_time_delta=e.readUint32(),this.event_duration=e.readUint32(),this.id=e.readUint32());let t=this.size-this.hdr_size-(16+(this.scheme_id_uri.length+1)+(this.value.length+1));this.version===1&&(t-=4),this.message_data=e.readUint8Array(t);}write(e){this.version=0,this.flags=0,this.size=16+this.message_data.length+(this.scheme_id_uri.length+1)+(this.value.length+1),this.writeHeader(e),e.writeCString(this.scheme_id_uri),e.writeCString(this.value),e.writeUint32(this.timescale),e.writeUint32(this.presentation_time_delta),e.writeUint32(this.event_duration),e.writeUint32(this.id
964),e.writeUint8Array(this.message_data);}},Mo$1=class Mo extends p$3{constructor(...e){super(...e),this.box_name="CompressedSubsegmentIndexBox";}static{this.fourcc="ssix";}parse(e){this.parseFullHeader(e),this.subsegments=[];let t=e.readUint32();for(let i=0;i<t;i++){let s={};this.subsegments.push(s),s.ranges=[];let r=e.readUint32();for(let o=0;o<r;o++){let a={};s.ranges.push(a),a.level=e.readUint8(),a.range_size=e.readUint24();}}}},Ro$1=class Ro extends f$6{constructor(...e){super(...e),this.box_name="SegmentTypeBox";}static{this.fourcc="styp";}parse(e){let t=this.size-this.hdr_size;this.major_brand=e.readString(4),this.minor_version=e.readUint32(),t-=8,this.compatible_brands=[];let i=0;for(;t>=4;)this.compatible_brands[i]=e.readString(4),t-=4,i++;}write(e){this.size=8+4*this.compatible_brands.length,this.writeHeader(e),e.writeString(this.major_brand,void 0,4),e.writeUint32(this.minor_version);for(let t=0;t<this.compatible_brands.length;t++)e.writeString(this.compatible_brands[t],void 0,4);}};var pl=Hi({Descriptor:()=>Ge$2,ES_Descriptor:()=>Ho,MPEG4DescriptorParser:()=>_l}),Lo=3,Pi=4,Un=5,No=6,Ge$2=class Vo{constructor(e,t){this.tag=e,this.size=t,this.descs=[];}parse(e){this.data=e.readUint8Array(this.size);}findDescriptor(e){for(let t=0;t<this.descs.length;t++)if(this.descs[t].tag===e)return this.descs[t]}parseOneDescriptor(e){let t=0,i=e.readUint8(),s=e.readUint8();for(;s&128;)t=(t<<7)+(s&127),s=e.readUint8();t=(t<<7)+(s&127),d$6.debug("Descriptor","Found "+(Ii[i]||"Descriptor "+i)+", size "+t+" at position "+e.getPosition());let r=Ii[i]?new gl[Ii[i]](t):new Vo(t);return r.parse(e),r}parseRemainingDescriptors(e){let t=e.getPosition();for(;e.getPosition()<t+this.size;){let i=this.parseOneDescriptor?.(e);this.descs.push(i);}}},Ho=class extends Ge$2{constructor(n){super(Lo,n);}parse(n){if(this.ES_ID=n.readUint16(),this.flags=n.readUint8(),this.size-=3,this.flags&128?(this.dependsOn_ES_ID=n.readUint16(),this.size-=2):this.dependsOn_ES_ID=0,this.flags&64){let e=n.readUint8();this.URL=n.readString(e),this.size-=e+1;}else this.URL="";this.flags&32?(this.OCR_ES_ID=n.readUint16(),this.size-=2):this.OCR_ES_ID=0,this.parseRemainingDescriptors(n);}getOTI(){let n=this.findDescriptor(Pi);return n?n.oti:0}getAudioConfig(){let n=this.findDescriptor(Pi);if(!n)return;let e=n.findDescriptor(Un);if(e&&e.data){let t=(e.data[0]&248)>>3;return t===31&&e.data.length>=2&&(t=32+((e.data[0]&7)<<3)+((e.data[1]&224)>>5)),t}}},ul=class extends Ge$2{constructor(n){super(Pi,n);}parse(n){this.oti=n.readUint8(),this.streamType=n.readUint8(),this.upStream=(this.streamType>>1&1)!==0,this.streamType=this.streamType>>>2,this.bufferSize=n.readUint24(),this.maxBitrate=n.readUint32(),this.avgBitrate=n.readUint32(),this.size-=13,this.parseRemainingDescriptors(n);}},fl=class extends Ge$2{constructor(n){super(Un,n);}},ml=class extends Ge$2{constructor(n){super(No,n);}},gl={Descriptor:Ge$2,ES_Descriptor:Ho,DecoderConfigDescriptor:ul,DecoderSpecificInfo:fl,SLConfigDescriptor:ml},Ii={[Lo]:"ES_Descriptor",[Pi]:"DecoderConfigDescriptor",[Un]:"DecoderSpecificInfo",[No]:"SLConfigDescriptor"},_l=class{constructor(){this.parseOneDescriptor=Ge$2.prototype.parseOneDescriptor;}getDescriptorName(n){return Ii[n]}};var xl=class extends f$6{constructor(...e){super(...e),this.box_name="AV1LayeredImageIndexingProperty";}static{this.fourcc="a1lx";}parse(e){let t=((e.readUint8()&1)+1)*16;this.layer_size=[];for(let i=0;i<3;i++)t===16?this.layer_size[i]=e.readUint16():this.layer_size[i]=e.readUint32();}},yl=class extends f$6{constructor(...e){super(...e),this.box_name="OperatingPointSelectorProperty";}static{this.fourcc="a1op";}parse(e){this.op_index=e.readUint8();}},bl=class extends p$3{constructor(...e){super(...e),this.box_name="AuxiliaryTypeProperty";}static{this.fourcc="auxC";}parse(e){this.parseFullHeader(e),this.aux_type=e.readCString();let t=this.size-this.hdr_size-(this.aux_type.length+1);this.aux_subtype=e.readUint8Array(t);}},vl=class extends f$6{constructor(...e){super(...e),this.box_name="BitRateBox";}static{this.fourcc="btrt";}parse(e){this.bufferSizeDB=e.readUint32(),this.maxBitrate=e.readUint32(),this.avgBitrate=e.readUint32();}},Sl=class extends p$3{constructor(...e){super(...e),this.box_name="CodingConstraintsBox";}static{this.fourcc="ccst";}parse(e){this.parseFullHeader(e);let t=e.readUint8();this.all_ref_pics_intra=(t&128)===128,this.intra_pred_used=(t&64)===64,this.max_ref_per_pic=(t&63)>>2,e.readUint24();}},wl=class extends f$6{constructor(...e){super(...e),this.box_name="ComponentDefinitionBox";}static{this.fourcc="cdef";}
964parse(e){this.channel_count=e.readUint16(),this.channel_indexes=[],this.channel_types=[],this.channel_associations=[];for(let t=0;t<this.channel_count;t++)this.channel_indexes.push(e.readUint16()),this.channel_types.push(e.readUint16()),this.channel_associations.push(e.readUint16());}},El=class extends f$6{constructor(...e){super(...e),this.box_name="CleanApertureBox";}static{this.fourcc="clap";}parse(e){this.cleanApertureWidthN=e.readUint32(),this.cleanApertureWidthD=e.readUint32(),this.cleanApertureHeightN=e.readUint32(),this.cleanApertureHeightD=e.readUint32(),this.horizOffN=e.readUint32(),this.horizOffD=e.readUint32(),this.vertOffN=e.readUint32(),this.vertOffD=e.readUint32();}},Cl=class extends f$6{constructor(...e){super(...e),this.box_name="ContentLightLevelBox";}static{this.fourcc="clli";}parse(e){this.max_content_light_level=e.readUint16(),this.max_pic_average_light_level=e.readUint16();}},Bl=class extends f$6{constructor(...e){super(...e),this.box_name="CameraExtrinsicMatrixProperty";}static{this.fourcc="cmex";}parse(e){this.flags&1&&(this.pos_x=e.readInt32()),this.flags&2&&(this.pos_y=e.readInt32()),this.flags&4&&(this.pos_z=e.readInt32()),this.flags&8&&(this.version===0?this.flags&16?(this.quat_x=e.readInt32(),this.quat_y=e.readInt32(),this.quat_z=e.readInt32()):(this.quat_x=e.readInt16(),this.quat_y=e.readInt16(),this.quat_z=e.readInt16()):this.version),this.flags&32&&(this.id=e.readUint32());}},Ul=class extends f$6{constructor(...e){super(...e),this.box_name="CameraIntrinsicMatrixProperty";}static{this.fourcc="cmin";}parse(e){this.focal_length_x=e.readInt32(),this.principal_point_x=e.readInt32(),this.principal_point_y=e.readInt32(),this.flags&1&&(this.focal_length_y=e.readInt32(),this.skew_factor=e.readInt32());}},Il=class extends p$3{constructor(...e){super(...e),this.box_name="CompressionConfigurationBox";}static{this.fourcc="cmpC";}parse(e){this.parseFullHeader(e),this.compression_type=e.readString(4),this.compressed_unit_type=e.readUint8();}},Pl=class extends f$6{constructor(...e){super(...e),this.box_name="ComponentDefinitionBox";}static{this.fourcc="cmpd";}parse(e){this.component_count=e.readUint32(),this.component_types=[],this.component_type_urls=[];for(let t=0;t<this.component_count;t++){let i=e.readUint16();this.component_types.push(i),i>=32768&&this.component_type_urls.push(e.readCString());}}},Al=class extends p$3{constructor(...e){super(...e),this.box_name="ChunkLargeOffsetBox";}static{this.fourcc="co64";}parse(e){this.parseFullHeader(e);let t=e.readUint32();if(this.chunk_offsets=[],this.version===0)for(let i=0;i<t;i++)this.chunk_offsets.push(e.readUint64());}write(e){this.version=0,this.flags=0,this.size=4+8*this.chunk_offsets.length,this.writeHeader(e),e.writeUint32(this.chunk_offsets.length);for(let t=0;t<this.chunk_offsets.length;t++)e.writeUint64(this.chunk_offsets[t]);}},kl=class extends p$3{constructor(...e){super(...e),this.box_name="ContentLightLevelBox";}static{this.fourcc="CoLL";}parse(e){this.parseFullHeader(e),this.maxCLL=e.readUint16(),this.maxFALL=e.readUint16();}},Tl=class{toString(){let n="centre_azimuth: ";return n+=this.centre_azimuth,n+=" (",n+=this.centre_azimuth*2**-16,n+="\xB0), centre_elevation: ",n+=this.centre_elevation,n+=" (",n+=this.centre_elevation*2**-16,n+="\xB0), centre_tilt: ",n+=this.centre_tilt,n+=" (",n+=this.centre_tilt*2**-16,n+="\xB0)",this.range_included_flag&&(n+=", azimuth_range: ",n+=this.azimuth_range,n+=" (",n+=this.azimuth_range*2**-16,n+="\xB0), elevation_range: ",n+=this.elevation_range,n+=" (",n+=this.elevation_range*2**-16,n+="\xB0)"),this.interpolate_included_flag&&(n+=", interpolate: ",n+=this.interpolate),n}},zl=class{toString(){let n="";return this.view_idc&&(n+="view_idc: ",n+=this.view_idc,n+=", "),n+="sphere_region: {",n+=this.sphere_region,n+="}",n}},Fl=class extends p$3{constructor(...e){super(...e),this.box_name="CoverageInformationBox";}static{this.fourcc="covi";}parse(e){this.parseFullHeader(e),this.coverage_shape_type=e.readUint8();let t=e.readUint8(),i=e.readInt8(),s=i&128;s&&(this.default_view_idc=(i&96)>>5),this.coverage_regions=new Array;for(let r=0;r<t;r++){let o=new zl;s&&(o.view_idc=e.readUint8()>>6),o.sphere_region=this.parseSphereRegion(e,true,true),this.coverage_regions.push(o);}}
964parseSphereRegion(e,t,i){let s=new Tl;return s.centre_azimuth=e.readInt32(),s.centre_elevation=e.readInt32(),s.centre_tilt=e.readInt32(),s.range_included_flag=t,t&&(s.azimuth_range=e.readUint32(),s.elevation_range=e.readUint32()),s.interpolate_included_flag=i,i&&(s.interpolate=(e.readUint8()&128)===128),s}},Dl=class extends p$3{constructor(...e){super(...e),this.box_name="CopyrightBox";}static{this.fourcc="cprt";}parse(e){this.parseFullHeader(e),this.parseLanguage(e),this.notice=e.readCString();}},Ol=class extends p$3{constructor(...e){super(...e),this.box_name="CompatibleSchemeTypeBox";}static{this.fourcc="csch";}parse(e){this.parseFullHeader(e),this.scheme_type=e.readString(4),this.scheme_version=e.readUint32(),this.flags&1&&(this.scheme_uri=e.readCString());}},St$1=2147483647,Ml=class extends p$3{constructor(...e){super(...e),this.box_name="CompositionToDecodeBox";}static{this.fourcc="cslg";}parse(e){this.parseFullHeader(e),this.version===0?(this.compositionToDTSShift=e.readInt32(),this.leastDecodeToDisplayDelta=e.readInt32(),this.greatestDecodeToDisplayDelta=e.readInt32(),this.compositionStartTime=e.readInt32(),this.compositionEndTime=e.readInt32()):this.version===1&&(this.compositionToDTSShift=e.readInt64(),this.leastDecodeToDisplayDelta=e.readInt64(),this.greatestDecodeToDisplayDelta=e.readInt64(),this.compositionStartTime=e.readInt64(),this.compositionEndTime=e.readInt64());}write(e){this.version=0,(this.compositionToDTSShift>St$1||this.leastDecodeToDisplayDelta>St$1||this.greatestDecodeToDisplayDelta>St$1||this.compositionStartTime>St$1||this.compositionEndTime>St$1)&&(this.version=1),this.flags=0,this.version===0?(this.size=20,this.writeHeader(e),e.writeInt32(this.compositionToDTSShift),e.writeInt32(this.leastDecodeToDisplayDelta),e.writeInt32(this.greatestDecodeToDisplayDelta),e.writeInt32(this.compositionStartTime),e.writeInt32(this.compositionEndTime)):this.version===1&&(this.size=40,this.writeHeader(e),e.writeInt64(this.compositionToDTSShift),e.writeInt64(this.leastDecodeToDisplayDelta),e.writeInt64(this.greatestDecodeToDisplayDelta),e.writeInt64(this.compositionStartTime),e.writeInt64(this.compositionEndTime));}},Rl=class extends p$3{constructor(...e){super(...e),this.box_name="CompositionOffsetBox";}static{this.fourcc="ctts";}parse(e){this.parseFullHeader(e);let t=e.readUint32();if(this.sample_counts=[],this.sample_offsets=[],this.version===0)for(let i=0;i<t;i++){this.sample_counts.push(e.readUint32());let s=e.readInt32();s<0&&d$6.warn("BoxParser","ctts box uses negative values without using version 1"),this.sample_offsets.push(s);}else if(this.version===1)for(let i=0;i<t;i++)this.sample_counts.push(e.readUint32()),this.sample_offsets.push(e.readInt32());}write(e){this.version=this.sample_offsets.some(t=>t<0)?1:0,this.flags=0,this.size=4+8*this.sample_counts.length,this.writeHeader(e),e.writeUint32(this.sample_counts.length);for(let t=0;t<this.sample_counts.length;t++)e.writeUint32(this.sample_counts[t]),this.version===1?e.writeInt32(this.sample_offsets[t]):e.writeUint32(this.sample_offsets[t]);}unpack(e){let t=0;for(let i=0;i<this.sample_counts.length;i++)for(let s=0;s<this.sample_counts[i];s++)e[t].pts=e[t].dts+this.sample_offsets[i],t++;}},Ll=class extends f$6{constructor(...e){super(...e),this.box_name="AC3SpecificBox";}static{this.fourcc="dac3";}parse(e){let t=e.readUint8(),i=e.readUint8(),s=e.readUint8();this.fscod=t>>6,this.bsid=t>>1&31,this.bsmod=(t&1)<<2|i>>6&3,this.acmod=i>>3&7,this.lfeon=i>>2&1,this.bit_rate_code=i&3|s>>5&7;}},Nl=class extends f$6{constructor(...e){super(...e),this.box_name="EC3SpecificBox";}static{this.fourcc="dec3";}parse(e){let t=e.readUint16();this.data_rate=t>>3,this.num_ind_sub=t&7,this.ind_subs=[];for(let i=0;i<this.num_ind_sub+1;i++){let s=e.readUint8(),r=e.readUint8(),o=e.readUint8(),a={fscod:s>>6,bsid:s>>1&31,bsmod:(s&1)<<4|r>>4&15,acmod:r>>1&7,lfeon:r&1,num_dep_sub:o>>1&15};this.ind_subs.push(a),a.num_dep_sub>0&&(a.chan_loc=(o&1)<<8|e.readUint8());}}},Vl=class extends p$3{constructor(...e){super(...e),this.box_name="FLACSpecificBox";}static{this.fourcc="dfLa";}parse(e){this.parseFullHeader(e);let t=127,i=128,s=[],r=["STREAMINFO","PADDING","APPLICATION","SEEKTABLE","VORBIS_COMMENT","CUESHEET","PICTURE","RESERVED"],o;do{o=e.readUint8();let a=Math.min(o&t,r.length-1);a?e.readUint8Array(e.readUint24()):(e.readUint8Array(13),this.samplerate=e.readUint32()>>12,e.readUint8Array(20)),s.push(r[a]);}while(o&i);this.numMetadataBlocks=s.length+" ("+s.join(", ")+")";}},Hl=class extends f$6{constructor(...e){super(...e),this.box_name="hintimmediateBytesSent";}static{this.fourcc="dimm";}parse(e){this.bytessent=e.readUint64();}},Gl=class extends f$6{constructor(...e){super(...e),this.box_name="hintlongestpacket";}static{this.fourcc="dmax";}parse(e){this.time=e.readUint32();}},jl=class extends f$6{constructor(...e){super(...e),this.box_name="hintmediaBytesSent";}static{this.fourcc="dmed";}parse(e){this.bytessent=e.readUint64();}},Wl=class extends f$6{constructor(...e){super(...e),this.box_name="OpusSpecificBox";}static{this.fourcc="dOps";}parse(e){if(this.Version=e.readUint8(),this.OutputChannelCount=e.readUint8(),this.PreSkip=e.readUint16(),this.InputSampleRate=e.readUint32(),this.OutputGain=e.readInt16(),this.ChannelMappingFamily=e.readUint8(),this.ChannelMappingFamily!==0){this.StreamCount=e.readUint8(),this.CoupledCount=e.readUint8(),this.ChannelMapping=[];for(let t=0;t<this.OutputChannelCount;t++)this.ChannelMapping[t]=e.readUint8();}}write(e){if(this.size=11,this.ChannelMappingFamily!==0&&(this.size+=2+this.OutputChannelCount),this.writeHeader(e),e.writeUint8(this.Version),e.writeUint8(this.OutputChannelCount),e.writeUint16(this.PreSkip),e.writeUint32(this.InputSampleRate),e.writeInt16(this.OutputGain),e.writeUint8(this.ChannelMappingFamily),this.ChannelMappingFamily!==0){e.writeUint8(this.StreamCount),e.writeUint8(this.CoupledCount);for(let t=0;t<this.OutputChannelCount;t++)e.writeUint8(this.ChannelMapping[t]);}}},Yl=class extends f$6{constructor(...e){super(...e),this.box_name="hintrepeatedBytesSent";}static{this.fourcc="drep";}parse(e){this.bytessent=e.readUint64();}},$l=class extends p$3{constructor(...e){super(...e),this.box_name="EditListBox";}static{this.fourcc="elst";}parse(e){this.parseFullHeader(e),this.entries=[];let t=e.readUint32();for(let i=0;i<t;i++){let s={segment_duration:this.version===1?e.readUint64():e.readUint32(),media_time:this.version===1?e.readInt64():e.readInt32(),media_rate_integer:e.readInt16(),media_rate_fraction:e.readInt16()};this.entries.push(s);}}write(e){let t=this.entries.some(i=>i.segment_duration>W$3||i.media_time>W$3)||this.version===1;this.version=t?1:0,this.size=4+12*this.entries.length,this.size+=t?8*this.entries.length:0,this.writeHeader(e),e.writeUint32(this.entries.length);for(let i=0;i<this.entries.length;i++){let s=this.entries[i];t?(e.writeUint64(s.segment_duration),e.writeInt64(s.media_time)):(e.writeUint32(s.segment_duration),e.writeInt32(s.media_time)),e.
964writeInt16(s.media_rate_integer),e.writeInt16(s.media_rate_fraction);}}},q$4=class q extends p$3{parse(n){this.parseFullHeader(n),this.group_id=n.readUint32(),this.num_entities_in_group=n.readUint32(),this.entity_ids=[];for(let e=0;e<this.num_entities_in_group;e++){let t=n.readUint32();this.entity_ids.push(t);}}},Zl=class extends q$4{constructor(...e){super(...e),this.box_name="Auto exposure bracketing";}static{this.fourcc="aebr";}},ql=class extends q$4{constructor(...e){super(...e),this.box_name="Flash exposure information";}static{this.fourcc="afbr";}},Kl=class extends q$4{constructor(...e){super(...e),this.box_name="Album collection";}static{this.fourcc="albc";}},Ql=class extends q$4{constructor(...e){super(...e),this.box_name="Alternative entity";}static{this.fourcc="altr";}},Xl=class extends q$4{constructor(...e){super(...e),this.box_name="Burst image";}static{this.fourcc="brst";}},Jl=class extends q$4{constructor(...e){super(...e),this.box_name="Depth of field bracketing";}static{this.fourcc="dobr";}},ec=class extends q$4{constructor(...e){super(...e),this.box_name="Equivalent entity";}static{this.fourcc="eqiv";}},tc=class extends q$4{constructor(...e){super(...e),this.box_name="Favorites collection";}static{this.fourcc="favc";}},ic=class extends q$4{constructor(...e){super(...e),this.box_name="Focus bracketing";}static{this.fourcc="fobr";}},nc=class extends q$4{constructor(...e){super(...e),this.box_name="Image item with an audio track";}static{this.fourcc="iaug";}},sc=class extends q$4{constructor(...e){super(...e),this.box_name="Panorama";}static{this.fourcc="pano";}},rc=class extends q$4{constructor(...e){super(...e),this.box_name="Slideshow";}static{this.fourcc="slid";}},oc=class extends q$4{constructor(...e){super(...e),this.box_name="Stereo";}static{this.fourcc="ster";}},ac=class extends q$4{constructor(...e){super(...e),this.box_name="Time-synchronized capture";}static{this.fourcc="tsyn";}},lc=class extends q$4{constructor(...e){super(...e),this.box_name="White balance bracketing";}static{this.fourcc="wbbr";}},cc=class extends q$4{constructor(...e){super(...e),this.box_name="Progressive rendering";}static{this.fourcc="prgr";}},dc=class extends q$4{constructor(...e){super(...e),this.box_name="Image pyramid";}static{this.fourcc="pymd";}parse(e){this.parseFullHeader(e),this.group_id=e.readUint32(),this.num_entities_in_group=e.readUint32(),this.entity_ids=[];for(let t=0;t<this.num_entities_in_group;t++){let i=e.readUint32();this.entity_ids.push(i);}this.tile_size_x=e.readUint16(),this.tile_size_y=e.readUint16(),this.layer_binning=[],this.tiles_in_layer_column_minus1=[],this.tiles_in_layer_row_minus1=[];for(let t=0;t<this.num_entities_in_group;t++)this.layer_binning[t]=e.readUint16(),this.tiles_in_layer_row_minus1[t]=e.readUint16(),this.tiles_in_layer_column_minus1[t]=e.readUint16();}},hc=class extends f$6{constructor(...e){super(...e),this.box_name="FieldHandlingBox";}static{this.fourcc="fiel";}parse(e){this.fieldCount=e.readUint8(),this.fieldOrdering=e.readUint8();}},pc=class extends f$6{constructor(...e){super(...e),this.box_name="OriginalFormatBox";}static{this.fourcc="frma";}parse(e){this.data_format=e.readString(4);}},uc=class extends f$6{constructor(...e){super(...e),this.box_name="ImageMirror";}static{this.fourcc="imir";}parse(e){let t=e.readUint8();this.reserved=t>>7,this.axis=t&1;}},fc=class extends p$3{constructor(...e){super(...e),this.box_name="ItemPropertyAssociationBox";}static{this.fourcc="ipma";}parse(e){this.parseFullHeader(e);let t=e.readUint32();this.associations=[];for(let i=0;i<t;i++){let s=this.version<1?e.readUint16():e.readUint32(),r=[],o=e.readUint8();for(let a=0;a<o;a++){let l=e.readUint8();r.push({essential:(l&128)>>7===1,property_index:this.flags&1?(l&127)<<8|e.readUint8():l&127});}this.associations.push({id:s,props:r});}}},mc=class extends f$6{constructor(...e){super(...e),this.box_name="ImageRotation";}static{this.fourcc="irot";}parse(e){this.angle=e.readUint8()&3;}},gc=class extends p$3{constructor(...e){super(...e),this.box_name="ImageSpatialExtentsProperty";}static{this.fourcc="ispe";}parse(e){this.parseFullHeader(e),this.image_width=e.readUint32(),this.image_height=e.readUint32();}},_c=class extends p$3{constructor(...e){super(...e),this.box_name="TAITimestampBox";}static{this.fourcc="itai";}parse(e){this.TAI_timestamp=e.readUint64();let t=e.readUint8();this.sychronization_state=t>>7&1,this.timestamp_generation_failure=t>>6&1,this.timestamp_is_modified=t>>5&1;}},xc=class extends p$3{constructor(...e){super(...e),this.box_name="KindBox";}static{this.fourcc="kind";}parse(e){this.parseFullHeader(e),this.schemeURI=e.readCString(),this.isEndOfBox(e)||(this.value=e.readCString());}write(e){this.version=0,this.flags=0,this.size=this.schemeURI.length+1+(this.value?this.value.length+1:0),this.writeHeader(e),e.writeCString(this.schemeURI),this.value&&e.writeCString(this.value);}},yc=class extends p$3{constructor(...e){super(...e),this.box_name="LevelAssignmentBox";}static{this.fourcc="leva";}parse(e){this.parseFullHeader(e);let t=e.readUint8();this.levels=[];for(let i=0;i<t;i++){let s={};this.levels[i]=s,s.track_ID=e.readUint32();let r=e.readUint8();switch(s.padding_flag=r>>7,s.assignment_type=r&127,s.assignment_type){case 0:s.grouping_type=e.readString(4);break;case 1:s.grouping_type=e.readString(4),s.grouping_type_parameter=e.readUint32();break;case 2:break;case 3:break;case 4:s.sub_track_id=e.readUint32();break;default:d$6.warn("BoxParser",`Unknown level assignment type: ${s.assignment_type}`);}}}},bc=class extends f$6{constructor(...e){super(...e),this.box_name="LHEVCConfigurationBox";}static{this.fourcc="lhvC";}parse(e){this.configurationVersion=e.readUint8(),this.min_spatial_segmentation_idc=e.readUint16()&4095,this.parallelismType=e.readUint8()&3;let t=e.readUint8();this.numTemporalLayers=(t&13)>>3,this.temporalIdNested=(t&4)>
964>2,this.lengthSizeMinusOne=t&3,this.nalu_arrays=[];let i=e.readUint8();for(let s=0;s<i;s++){let r=[];this.nalu_arrays.push(r),t=e.readUint8(),r.completeness=(t&128)>>7,r.nalu_type=t&63;let o=e.readUint16();for(let a=0;a<o;a++){let l=e.readUint16();r.push({data:e.readUint8Array(l)});}}}},vc=class extends f$6{constructor(...e){super(...e),this.box_name="LayerSelectorProperty";}static{this.fourcc="lsel";}parse(e){this.layer_id=e.readUint16();}},Sc=class extends f$6{constructor(...e){super(...e),this.box_name="hintmaxrate";}static{this.fourcc="maxr";}parse(e){this.period=e.readUint32(),this.bytes=e.readUint32();}},Ui=class{constructor(n,e){this.x=n,this.y=e;}toString(){return "("+this.x+","+this.y+")"}},wc=class extends f$6{constructor(...e){super(...e),this.box_name="MasteringDisplayColourVolumeBox";}static{this.fourcc="mdcv";}parse(e){this.display_primaries=[],this.display_primaries[0]=new Ui(e.readUint16(),e.readUint16()),this.display_primaries[1]=new Ui(e.readUint16(),e.readUint16()),this.display_primaries[2]=new Ui(e.readUint16(),e.readUint16()),this.white_point=new Ui(e.readUint16(),e.readUint16()),this.max_display_mastering_luminance=e.readUint32(),this.min_display_mastering_luminance=e.readUint32();}},Ec=class extends p$3{constructor(...e){super(...e),this.box_name="MovieFragmentRandomAccessOffsetBox";}static{this.fourcc="mfro";}parse(e){this.parseFullHeader(e),this._size=e.readUint32();}},Cc=class extends p$3{constructor(...e){super(...e),this.box_name="MaskConfigurationProperty";}static{this.fourcc="mskC";}parse(e){this.parseFullHeader(e),this.bits_per_pixel=e.readUint8();}},Bc=class extends f$6{constructor(...e){super(...e),this.box_name="hintPacketsSent";}static{this.fourcc="npck";}parse(e){this.packetssent=e.readUint32();}},Uc=class extends f$6{constructor(...e){super(...e),this.box_name="hintPacketsSent";}static{this.fourcc="nump";}parse(e){this.packetssent=e.readUint64();}},Ic=class{constructor(n,e){this.pad1=n,this.pad2=e;}},Pc=class extends p$3{constructor(...e){super(...e),this.box_name="PaddingBitsBox";}static{this.fourcc="padb";}parse(e){this.parseFullHeader(e);let t=e.readUint32();this.padbits=[];for(let i=0;i<Math.floor((t+1)/2);i++){let s=e.readUint8(),r=(s&112)>>4,o=s&7;this.padbits.push(new Ic(r,o));}}},Ac=class extends f$6{constructor(...e){super(...e),this.box_name="PixelAspectRatioBox";}static{this.fourcc="pasp";}parse(e){this.hSpacing=e.readUint32(),this.vSpacing=e.readUint32();}},kc=class extends f$6{constructor(...e){super(...e),this.box_name="CuePayloadBox";}static{this.fourcc="payl";}parse(e){this.text=e.readString(this.size-this.hdr_size);}},Tc=class extends f$6{constructor(...e){super(...e),this.box_name="hintpayloadID";}static{this.fourcc="payt";}parse(e){this.payloadID=e.readUint32();let t=e.readUint8();this.rtpmap_string=e.readString(t);}},zc=class extends p$3{constructor(...e){super(...e),this.box_name="ProgressiveDownloadInfoBox",this.rate=[],this.initial_delay=[];}static{this.fourcc="pdin";}parse(e){this.parseFullHeader(e);let t=(this.size-this.hdr_size)/8;for(let i=0;i<t;i++)this.rate[i]=e.readUint32(),this.initial_delay[i]=e.readUint32();}},Fc=class extends p$3{constructor(...e){super(...e),this.box_name="PixelInformationProperty";}static{this.fourcc="pixi";}parse(e){this.parseFullHeader(e),this.num_channels=e.readUint8(),this.bits_per_channels=[];for(let t=0;t<this.num_channels;t++)this.bits_per_channels[t]=e.readUint8();}},Dc=class extends f$6{constructor(...e){super(...e),this.box_name="hintlargestpacket";}static{this.fourcc="pmax";}parse(e){this.bytes=e.readUint32();}},Oc=class extends p$3{constructor(...e){super(...e),this.box_name="ProgressiveDerivedImageItemInformationProperty";}static{this.fourcc="prdi";}parse(e){if(this.parseFullHeader(e),this.step_count=e.readUint16(),this.item_count=[],this.flags&2)for(let t=0;t<this.step_count;t++)this.item_count[t]=e.readUint16();}},Mc=class extends p$3{constructor(...e){super(...e),this.box_name="ProjectionFormatBox";}static{this.fourcc="prfr";}parse(e){this.parseFullHeader(e),this.projection_type=e.readUint8()&31;}},Rc=class extends p$3{constructor(...e){super(...e),this.box_name="ProducerReferenceTimeBox";}static{this.fourcc="prft";}parse(e){this.parseFullHeader(e),this.ref_track_id=e.readUint32(),this.ntp_timestamp=e.readUint64(),this.version===0?this.media_time=e.readUint32():this.media_time=e.readUint64();}},Lc=class extends p$3{constructor(...e){super(...e),this.box_name="ProtectionSystemSpecificHeaderBox";}static{this.fourcc="pssh";}parse(e){if(this.parseFullHeader(e),this.system_id=De$2(e),this.kid=[],this.version>0){let i=e.readUint32();for(let s=0;s<i;s++)this.kid[s]=De$2(e);}let t=e.readUint32();t>0&&(this.protection_data=e.readUint8Array(t));}},Nc=class extends p$3{constructor(...e){super(...e),this.box_name="TrackCleanApertureDimensionsBox";}static{this.fourcc="clef";}parse(e){this.parseFullHeader(e),this.width=e.readUint32(),this.height=e.readUint32();}};function Vc(n,e){if(n===wt$1.Types.UTF8)return new TextDecoder("utf-8").decode(e);let t=new DataView(e.buffer);if(n===wt$1.Types.BE_UNSIGNED_INT){if(e.length===1)return t.getUint8(0);if(e.length===2)return t.getUint16(0,false);
964if(e.length===4)return t.getUint32(0,false);if(e.length===8)return t.getBigUint64(0,false);throw new Error("Unsupported ITIF_TYPE_BE_UNSIGNED_INT length "+e.length)}else if(n===wt$1.Types.BE_SIGNED_INT){if(e.length===1)return t.getInt8(0);if(e.length===2)return t.getInt16(0,false);if(e.length===4)return t.getInt32(0,false);if(e.length===8)return t.getBigInt64(0,false);throw new Error("Unsupported ITIF_TYPE_BE_SIGNED_INT length "+e.length)}else if(n===wt$1.Types.BE_FLOAT32)return t.getFloat32(0,false);d$6.warn("DataBox","Unsupported or unimplemented itif data type: "+n);}var wt$1=class wt extends f$6{constructor(...e){super(...e),this.box_name="DataBox";}static{this.fourcc="data";}static{this.Types={RESERVED:0,UTF8:1,UTF16:2,SJIS:3,UTF8_SORT:4,UTF16_SORT:5,JPEG:13,PNG:14,BE_SIGNED_INT:21,BE_UNSIGNED_INT:22,BE_FLOAT32:23,BE_FLOAT64:24,BMP:27,QT_ATOM:28,BE_SIGNED_INT8:65,BE_SIGNED_INT16:66,BE_SIGNED_INT32:67,BE_FLOAT32_POINT:70,BE_FLOAT32_DIMENSIONS:71,BE_FLOAT32_RECT:72,BE_SIGNED_INT64:74,BE_UNSIGNED_INT8:75,BE_UNSIGNED_INT16:76,BE_UNSIGNED_INT32:77,BE_UNSIGNED_INT64:78,BE_FLOAT64_AFFINE_TRANSFORM:79};}parse(e){this.valueType=e.readUint32(),this.country=e.readUint16(),this.country>255&&(e.seek(e.getPosition()-2),this.countryString=e.readString(2)),this.language=e.readUint16(),this.language>255&&(e.seek(e.getPosition()-2),this.parseLanguage(e)),this.raw=e.readUint8Array(this.size-this.hdr_size-8),this.value=Vc(this.valueType,this.raw);}},Hc=class extends p$3{constructor(...e){super(...e),this.box_name="TrackEncodedPixelsDimensionsBox";}static{this.fourcc="enof";}parse(e){this.parseFullHeader(e),this.width=e.readUint32(),this.height=e.readUint32();}},Gc=class extends f$6{constructor(...e){super(...e),this.box_name="IlstBox";}static{this.fourcc="ilst";}parse(e){this.list={};let t=this.size-this.hdr_size;for(;t>0;){let i=e.readUint32(),s=e.readUint32(),r=ge$3(e,false,i-8);r.code===1&&(this.list[s]=r.box),t-=i;}}},jc=class extends p$3{constructor(...e){super(...e),this.box_name="KeysBox";}static{this.fourcc="keys";}parse(e){this.parseFullHeader(e),this.count=e.readUint32(),this.keys={};for(let t=0;t<this.count;t++){let i=e.readUint32();this.keys[t+1]=e.readString(i-4);}}},Wc=class extends p$3{constructor(...e){super(...e),this.box_name="TrackProductionApertureDimensionsBox";}static{this.fourcc="prof";}parse(e){this.parseFullHeader(e),this.width=e.readUint32(),this.height=e.readUint32();}},Yc=class extends P$3{constructor(...e){super(...e),this.box_name="TrackApertureModeDimensionsBox",this.clefs=[],this.profs=[],this.enofs=[],this.subBoxNames=["clef","prof","enof"];}static{this.fourcc="tapt";}},$c=class extends f$6{constructor(...e){super(...e),this.box_name="rtpmoviehintinformation";}static{this.fourcc="rtp ";}parse(e){this.descriptionformat=e.readString(4),this.sdptext=e.readString(this.size-this.hdr_size-4);}},Zc=class extends p$3{constructor(...e){super(...e),this.box_name="SampleAuxiliaryInformationOffsetsBox";}static{this.fourcc="saio";}parse(e){this.parseFullHeader(e),this.flags&1&&(this.aux_info_type=e.readString(4),this.aux_info_type_parameter=e.readUint32()),this.entry_count=e.readUint32(),this.offset=[];for(let t=0;t<this.entry_count;t++)this.version===0?this.offset[t]=e.readUint32():this.offset[t]=e.readUint64();}},qc=class extends p$3{constructor(...e){super(...e),this.box_name="SampleAuxiliaryInformationSizesBox";}static{this.fourcc="saiz";}parse(e){if(this.parseFullHeader(e),this.flags&1&&(this.aux_info_type=e.readString(4),this.aux_info_type_parameter=e.readUint32()),this.default_sample_info_size=e.readUint8(),this.sample_count=e.readUint32(),this.sample_info_size=[],this.default_sample_info_size===0)for(let t=0;t<this.sample_count;t++)this.sample_info_size[t]=e.readUint8();}},Kc=class{constructor(n,e){this.bad_pixel_row=n,this.bad_pixel_column=e;}toString(){return "[row: "+this.bad_pixel_row+", column: "+this.bad_pixel_column+"]"}},Qc=class extends p$3{constructor(...e){super(...e),this.box_name="SensorBadPixelsMapBox";}static{this.fourcc="sbpm";}parse(e){this.parseFullHeader(e),this.component_count=e.readUint16(),this.component_index=[];for(let i=0;i<this.component_count;i++)this.component_index.push(e.readUint16());let t=e.readUint8();this.correction_applied=(t&128)===128,this.num_bad_rows=e.readUint32(),this.num_bad_cols=e.readUint32(),this.num_bad_pixels=e.readUint32(),this.bad_rows=[],this.bad_columns=[],this.bad_pixels=[];for(let i=0;i<this.num_bad_rows;i++)this.bad_rows.push(e.readUint32());for(let i=0;i<this.num_bad_cols;i++)this.bad_columns.push(e.readUint32());for(let i=0;i<this.num_bad_pixels;i++){let s=e.readUint32(),r=e.readUint32();this.bad_pixels.push(new Kc(s,r));}}},Xc=class extends p$3{constructor(...e){super(...e),this.box_name="SchemeTypeBox";}static{this.fourcc="schm";}parse(e){this.parseFullHeader(e),this.scheme_type=e.readString(4),this.scheme_version=e.readUint32(),this.flags&1&&(this.scheme_uri=e.readString(this.size-this.hdr_size-8));}},Jc=class extends f$6{constructor(...e){super(...e),this.box_name="rtptracksdphintinformation";}static{this.fourcc="sdp ";}parse(e){this.sdptext=e.readString(this.size-this.hdr_size);}},ed$1=class ed extends p$3{constructor(...e){super(...e),this.box_name="SampleEncryptionBox";}static{this.fourcc="senc";}},td$1=class td extends p$3{constructor(...e){super(...e),this.box_name="SMPTE2086MasteringDisplayMetadataBox";}static{this.fourcc="SmDm";}parse(e){this.parseFullHeader(e),this.primaryRChromaticity_x=e.readUint16(),this.primaryRChromaticity_y=e.readUint16(),this.primaryGChromaticity_x=e.readUint16(),this.primaryGChromaticity_y=e.readUint16(),this.primaryBChromaticity_x=e.readUint16(),this.primaryBChromaticity_y=e.readUint16(),this.whitePointChromaticity_x=e.readUint16(),this.whitePointChromaticity_y=e.readUint16(),this.luminanceMax=e.readUint32(),this.luminanceMin=e.readUint32();}},id$1=class id extends p$3{constructor(...e){super(...e),this.box_name="SamplingRateBox";}static{this.fourcc="srat";}parse(e){this.parseFullHeader(e),this.sampling_rate=e.readUint32();}},nd$1=class nd extends p$3{constructor(...e){super(...e),this.box_name="DegradationPriorityBox";}static{this.fourcc="stdp";}parse(e){this.parseFullHeader(e);let t=(this.size-this.hdr_size)/2;this.priority=[];for(let i=0;i<t;i++)this.priority[i]=e.readUint16();}},sd$1=class sd extends p$3{constructor(...e){super(...e),this.box_name="SubTrackInformationBox";}
964static{this.fourcc="stri";}parse(e){this.parseFullHeader(e),this.switch_group=e.readUint16(),this.alternate_group=e.readUint16(),this.sub_track_id=e.readUint32();let t=(this.size-this.hdr_size-8)/4;this.attribute_list=[];for(let i=0;i<t;i++)this.attribute_list[i]=e.readUint32();}},rd$1=class rd extends p$3{constructor(...e){super(...e),this.box_name="SubTrackSampleGroupBox";}static{this.fourcc="stsg";}parse(e){this.parseFullHeader(e),this.grouping_type=e.readUint32();let t=e.readUint16();this.group_description_index=[];for(let i=0;i<t;i++)this.group_description_index[i]=e.readUint32();}},od$1=class od extends p$3{constructor(...e){super(...e),this.box_name="ShadowSyncSampleBox";}static{this.fourcc="stsh";}parse(e){this.parseFullHeader(e);let t=e.readUint32();if(this.shadowed_sample_numbers=[],this.sync_sample_numbers=[],this.version===0)for(let i=0;i<t;i++)this.shadowed_sample_numbers.push(e.readUint32()),this.sync_sample_numbers.push(e.readUint32());}write(e){this.version=0,this.flags=0,this.size=4+8*this.shadowed_sample_numbers.length,this.writeHeader(e),e.writeUint32(this.shadowed_sample_numbers.length);for(let t=0;t<this.shadowed_sample_numbers.length;t++)e.writeUint32(this.shadowed_sample_numbers[t]),e.writeUint32(this.sync_sample_numbers[t]);}},ad$1=class ad extends p$3{constructor(...e){super(...e),this.box_name="SyncSampleBox";}static{this.fourcc="stss";}parse(e){this.parseFullHeader(e);let t=e.readUint32();if(this.version===0){this.sample_numbers=[];for(let i=0;i<t;i++)this.sample_numbers.push(e.readUint32());}}write(e){this.version=0,this.flags=0,this.size=4+4*this.sample_numbers.length,this.writeHeader(e),e.writeUint32(this.sample_numbers.length),e.writeUint32Array(this.sample_numbers);}},ld$1=class ld extends p$3{constructor(...e){super(...e),this.box_name="StereoVideoBox";}static{this.fourcc="stvi";}parse(e){this.parseFullHeader(e);let t=e.readUint32();this.single_view_allowed=t&3,this.stereo_scheme=e.readUint32();let i=e.readUint32();for(this.stereo_indication_type=e.readString(i),this.boxes=[];e.getPosition()<this.start+this.size;){let s=ge$3(e,false,this.size-(e.getPosition()-this.start));if(s.code===1){let r=s.box;this.boxes.push(r),this[r.type]=r;}else return}}},cd$1=class cd extends p$3{constructor(...e){super(...e),this.box_name="CompactSampleSizeBox";}static{this.fourcc="stz2";}parse(e){if(this.parseFullHeader(e),this.sample_sizes=[],this.version===0){this.reserved=e.readUint24(),this.field_size=e.readUint8();let t=e.readUint32();if(this.field_size===4)for(let i=0;i<t;i+=2){let s=e.readUint8();this.sample_sizes[i]=s>>4&15,this.sample_sizes[i+1]=s&15;}else if(this.field_size===8)for(let i=0;i<t;i++)this.sample_sizes[i]=e.readUint8();else if(this.field_size===16)for(let i=0;i<t;i++)this.sample_sizes[i]=e.readUint16();else d$6.error("BoxParser","Error in length field in stz2 box",e.isofile);}}},dd$1=class dd extends p$3{constructor(...e){super(...e),this.box_name="SubSampleInformationBox";}static{this.fourcc="subs";}parse(e){this.parseFullHeader(e);let t=e.readUint32();this.entries=[];let i;for(let s=0;s<t;s++){let r={};if(this.entries[s]=r,r.sample_delta=e.readUint32(),r.subsamples=[],i=e.readUint16(),i>0)for(let o=0;o<i;o++){let a={};r.subsamples.push(a),this.version===1?a.size=e.readUint32():a.size=e.readUint16(),a.priority=e.readUint8(),a.discardable=e.readUint8(),a.codec_specific_parameters=e.readUint32();}}}},hd$1=class hd extends p$3{constructor(...e){super(...e),this.box_name="TAIClockInfoBox";}static{this.fourcc="taic";}parse(e){this.time_uncertainty=e.readUint64(),this.clock_resolution=e.readUint32(),this.clock_drift_rate=e.readInt32();let t=e.readUint8();this.clock_type=(t&192)>>6;}},pd$1=class pd extends p$3{constructor(...e){super(...e),this.box_name="TrackEncryptionBox";}static{this.fourcc="tenc";}parse(e){if(this.parseFullHeader(e),e.readUint8(),this.version===0)e.readUint8();else {let t=e.readUint8();this.default_crypt_byte_block=t>>4&15,this.default_skip_byte_block=t&15;}this.default_isProtected=e.readUint8(),this.default_Per_Sample_IV_Size=e.readUint8(),this.default_KID=De$2(e),this.default_isProtected===1&&this.default_Per_Sample_IV_Size===0&&(this.default_constant_IV_size=e.readUint8(),this.default_constant_IV=e.readUint8Array(this.default_constant_IV_size));}},ud$1=class ud{},fd$1=class fd extends p$3{constructor(...e){super(...e),this.box_name="TrackFragmentRandomAccessBox";}static{this.fourcc="tfra";}parse(e){this.parseFullHeader(e),this.track_ID=e.readUint32(),e.readUint24();let t=e.readUint8();this.length_size_of_traf_num=t>>4&3,this.length_size_of_trun_num=t>>2&3,this.length_size_of_sample_num=t&3,this.entries=[];let i=e.readUint32();for(let s=0;s<i;s++){let r=new ud$1;this.version===1?(r.time=e.readUint64(),r.moof_offset=e.readUint64()):(r.time=e.readUint32(),r.moof_offset=e.readUint32()),r.traf_number=e["readUint"+8*(this.length_size_of_traf_num+1)](),r.trun_number=e["readUint"+8*(this.length_size_of_trun_num+1)](),r.sample_delta=e["readUint"+8*(this.length_size_of_sample_num+1)](),this.entries.push(r);}}},md$1=class md extends f$6{constructor(...e){super(...e),this.box_name="hintmaxrelativetime";}static{this.fourcc="tmax";}parse(e){this.time=e.readUint32();}},gd$1=class gd extends f$6{constructor(...e){super(...e),this.box_name="hintminrelativetime";}static{this.fourcc="tmin";}parse(e){this.time=e.readUint32();}},_d$1=class _d extends f$6{constructor(...e){super(...e),this.box_name="hintBytesSent";}static{this.fourcc="totl";}parse(e){this.bytessent=e.readUint32();}},xd$1=class xd extends f$6{constructor(...e){super(...e),this.box_name="hintBytesSent";}static{this.fourcc="tpay";}parse(e){this.bytessent=e.readUint32();}},yd$1=class yd extends f$6{constructor(...e){super(...e),this.box_name="hintBytesSent";}static{this.fourcc="tpyl";}parse(e){this.bytessent=e.readUint64();}},bd$1=class bd extends Ds{static{this.fourcc="msrc";}},vd$1=class Go extends f$6{constructor(...t){super(...t),this.box_name="TrackReferenceBox",this.references=[];}static{this.fourcc="tref";}static{this.allowed_types=["hint","cdsc","font","hind","vdep","vplx","subt","thmb","auxl","cdtg","shsc","aest"];}parse(t){for(;t.getPosition()<this.start+this.size;){let i=ge$3(t,true,this.size-(t.getPosition()-this.start));if(i.code===1){Go.allowed_types.includes(i.type)||d$6.warn("BoxParser",`Unknown track reference type: '${i.type}'`);let s=new Rs(i.type,i.size,i.hdr_size,i.start);s.write===f$6.prototype.write&&s.type!=="mdat"&&(d$6.info("BoxParser","TrackReference "+s.type+" box writing not yet implemented, keeping unparsed data in memory for later write"),s.parseDataAndRewind(t)),s.parse(t),this.references.push(s);}else return}}},Sd$1=class Sd extends p$3{constructor(...e){super(...e),this.box_name="TrackExtensionPropertiesBox";}static{this.fourcc="trep";}parse(e){for(this.parseFullHeader(e),this.track_ID=e.readUint32(),this.boxes=[];e.getPosition()<this.start+this.size;){let t=ge$3(e,false,this.size-(e.getPosition()-this.start));if(t.code===1){let i=t.box;this.boxes.push(i);}else return}}},wd$1=class wd extends f$6{constructor(...e){super(...e),this.box_name="hintBytesSent";}static{this.fourcc="trpy";}parse(e){this.bytessent=e.readUint64();}},Ed$1=class Ed extends p$3{constructor(...e){super(...e),this.box_name="TrackSelectionBox";}static{this.fourcc="tsel";}parse(e){this.parseFullHeader(e),this.switch_group=e.readUint32();let t=(this.size-this.hdr_size-4)/4;this.attribute_list=[];for(let i=0;i<t;i++)this.attribute_list[i]=e.readUint32();}},Cd$1=class Cd extends p$3{constructor(...e){super(...e),this.box_name="TextConfigBox";}static{this.fourcc="txtc";}parse(e){this.parseFullHeader(e),this.config=e.readCString();}},Bd$1=class Bd extends f$6{constructor(...e){super(...e),this.box_name="TypeCombinationBox";}static{this.fourcc="tyco";}parse(e){let t=(this.size-this.hdr_size)/4;this.compatible_brands=[];for(let i=0;i<t;i++)this.compatible_brands[i]=e.readString(4);}},Ud$1=class Ud extends p$3{constructor(...e){super(...e),this.box_name="UserDescriptionProperty";}static{this.fourcc="udes";}parse(e){this.parseFullHeader(e),this.lang=e.readCString(),this.name=e.readCString(),this.description=e.readCString(),this.tags=e.readCString();}},Id$1=class Id extends p$3{constructor(...e){super(...e),this.box_name="UncompressedFrameConfigBox";}static{this.fourcc="uncC";}parse(e){if(this.parseFullHeader(e),this.profile=e.readString(4),this.version!==1){if(this.version===0){this.component_count=e.readUint32(),this.component_index=[],this.component_bit_depth_minus_one=[],this.component_format=[],this.component_align_size=[];for(let i=0;i<this.component_count;i++)this.component_index.push(e.readUint16()),this.component_bit_depth_minus_one.push(e.readUint8()),this.component_format.push(e.readUint8()),this.component_align_size.push(e.readUint8());this.sampling_type=e.readUint8(),this.interleave_type=e.readUint8(),this.block_size=e.readUint8();let t=e.readUint8();this.component_little_endian=t>>7&1,this.block_pad_lsb=t>>6&1,this.block_little_endian=t>>5&1,this.block_reversed=t>>4&1,this.pad_unknown=t>>3&1,this.pixel_size=e.readUint32(),this.row_align_size=e.readUint32(),this.tile_align_size=e.readUint32(),this.num_tile_cols_minus_one=e.readUint32(),this.num_tile_rows_minus_one=e.readUint32();}}}},Pd$1=class Pd extends p$3{constructor(...e){super(...e),this.box_name="DataEntryUrnBox";}static{this.fourcc="urn ";}parse(e){this.parseFullHeader(e),this.name=e.readCString(),this.size-this.hdr_size-this.name.length-1>0&&(this.location=e.readCString());}write(e){this.version=0,this.flags=0,this.size=this.name.length+1+(this.location?this.location.length+1:0),this.writeHeader(e),e.writeCString(this.name),this.location&&e.writeCString(this.location);}},Ad$1=class Ad extends f$6{constructor(...e){super(...e),this.box_name="WebVTTConfigurationBox";}static{this.fourcc="vttC";}parse(e){this.text=e.readString(this.size-this.hdr_size);}}
964,kd$1=class kd extends p$3{constructor(...e){super(...e),this.box_name="VvcNALUConfigBox";}static{this.fourcc="vvnC";}parse(e){this.parseFullHeader(e);let t=e.readUint8();this.lengthSizeMinusOne=t&3;}},Td$1=class Td extends G$4{static{this.grouping_type="alst";}parse(e){let t=e.readUint16();this.first_output_sample=e.readUint16(),this.sample_offset=[];for(let s=0;s<t;s++)this.sample_offset[s]=e.readUint32();let i=this.description_length-4-4*t;this.num_output_samples=[],this.num_total_samples=[];for(let s=0;s<i/4;s++)this.num_output_samples[s]=e.readUint16(),this.num_total_samples[s]=e.readUint16();}},zd$1=class zd extends G$4{static{this.grouping_type="avll";}parse(e){this.layerNumber=e.readUint8(),this.accurateStatisticsFlag=e.readUint8(),this.avgBitRate=e.readUint16(),this.avgFrameRate=e.readUint16();}},Fd$1=class Fd extends G$4{static{this.grouping_type="avss";}parse(e){this.subSequenceIdentifier=e.readUint16(),this.layerNumber=e.readUint8();let t=e.readUint8();this.durationFlag=t>>7,this.avgRateFlag=t>>6&1,this.durationFlag&&(this.duration=e.readUint32()),this.avgRateFlag&&(this.accurateStatisticsFlag=e.readUint8(),this.avgBitRate=e.readUint16(),this.avgFrameRate=e.readUint16()),this.dependency=[];let i=e.readUint8();for(let s=0;s<i;s++)this.dependency.push({subSeqDirectionFlag:e.readUint8(),layerNumber:e.readUint8(),subSequenceIdentifier:e.readUint16()});}},Dd$1=class Dd extends G$4{static{this.grouping_type="dtrt";}parse(e){d$6.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed");}},Od$1=class Od extends G$4{static{this.grouping_type="mvif";}parse(e){d$6.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed");}},Md$1=class Md extends G$4{static{this.grouping_type="prol";}parse(e){this.roll_distance=e.readInt16();}},Rd$1=class Rd extends G$4{static{this.grouping_type="rap ";}parse(e){let t=e.readUint8();this.num_leading_samples_known=t>>7,this.num_leading_samples=t&127;}},Ld$1=class Ld extends G$4{static{this.grouping_type="rash";}parse(e){if(this.operation_point_count=e.readUint16(),this.description_length!==2+(this.operation_point_count===1?2:this.operation_point_count*6)+9)d$6.warn("BoxParser","Mismatch in "+this.grouping_type+" sample group length"),this.data=e.readUint8Array(this.description_length-2);else {if(this.operation_point_count===1)this.target_rate_share=e.readUint16();else {this.target_rate_share=[],this.available_bitrate=[];for(let t=0;t<this.operation_point_count;t++)this.available_bitrate[t]=e.readUint32(),this.target_rate_share[t]=e.readUint16();}this.maximum_bitrate=e.readUint32(),this.minimum_bitrate=e.readUint32(),this.discard_priority=e.readUint8();}}},Nd$1=class Nd extends G$4{static{this.grouping_type="roll";}parse(e){this.roll_distance=e.readInt16();}},Vd$1=class Vd extends G$4{static{this.grouping_type="scif";}parse(e){d$6.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed");}},Hd$1=class Hd extends G$4{static{this.grouping_type="scnm";}parse(e){d$6.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed");}},Gd$1=class Gd extends G$4{static{this.grouping_type="seig";}parse(e){this.reserved=e.readUint8();let t=e.readUint8();this.crypt_byte_block=t>>4,this.skip_byte_block=t&15,this.isProtected=e.readUint8(),this.Per_Sample_IV_Size=e.readUint8(),this.KID=De$2(e),this.constant_IV_size=0,this.constant_IV=0,this.isProtected===1&&this.Per_Sample_IV_Size===0&&(this.constant_IV_size=e.readUint8(),this.constant_IV=e.readUint8Array(this.constant_IV_size));}},jd$1=class jd extends G$4{static{this.grouping_type="stsa";}parse(e){d$6.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed");}},Wd$1=class Wd extends G$4{static{this.grouping_type="sync";}parse(e){let t=e.readUint8();this.NAL_unit_type=t&63;}},Yd$1=class Yd extends G$4{static{this.grouping_type="tele";}parse(e){let t=e.readUint8();this.level_independently_decodable=t>>7;}},$d$1=class $d extends G$4{static{this.grouping_type="tsas";}parse(e){d$6.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed");}},Zd$1=class Zd extends G$4{static{this.grouping_type="tscl";}parse(e){d$6.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed");}},qd$1=class qd extends G$4{static{this.grouping_type="vipr";}parse(e){d$6.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed");}},jo=class extends f$6{static{this.fourcc="uuid";}},nt$3=class nt extends p$3{static{this.fourcc="uuid";}},Kd$1=class Kd extends nt$3{constructor(...e){super(...e),this.box_name="LiveServerManifestBox";}static{this.uuid="a5d40b30e81411ddba2f0800200c9a66";}parse(e){this.parseFullHeader(e),this.LiveServerManifest=e.readString(this.size-this.hdr_size).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");}},Qd$1=class Qd extends nt$3{constructor(...e){super(...e),this.box_name="PiffProtectionSystemSpecificHeaderBox";}static{this.uuid="d08a4f1810f34a82b6c832d8aba183d3";}parse(e){this.parseFullHeader(e),this.system_id=De$2(e);let t=e.readUint32();t>0&&(this.data=e.readUint8Array(t));}},Xd$1=class Xd extends nt$3{constructor(...e){super(...e),this.box_name="PiffSampleEncryptionBox";}static{this.uuid="a2394f525a9b4f14a2446c427c648df4";}},Jd$1=class Jd extends nt$3{constructor(...e){super(...e),this.box_name="PiffTrackEncryptionBox";}static{this.uuid="8974dbce7be74c5184f97148f9882554";}parse(e){this.parseFullHeader(e),this.default_AlgorithmID=e.readUint24(),this.default_IV_size=e.readUint8(),this.default_KID=De$2(e);}},eh=class extends nt$3{constructor(...e){super(...e),this.box_name="TfrfBox";}static{this.uuid="d4807ef2ca3946958e5426cb9e46a79f";}
964parse(e){this.parseFullHeader(e),this.fragment_count=e.readUint8(),this.entries=[];for(let t=0;t<this.fragment_count;t++){let i=0,s=0;this.version===1?(i=e.readUint64(),s=e.readUint64()):(i=e.readUint32(),s=e.readUint32()),this.entries.push({absolute_time:i,absolute_duration:s});}}},th$1=class th extends nt$3{constructor(...e){super(...e),this.box_name="TfxdBox";}static{this.uuid="6d1d9b0542d544e680e2141daff757b2";}parse(e){this.parseFullHeader(e),this.version===1?(this.absolute_time=e.readUint64(),this.duration=e.readUint64()):(this.absolute_time=e.readUint32(),this.duration=e.readUint32());}},ih$1=class ih extends jo{constructor(...e){super(...e),this.box_name="ItemContentIDProperty";}static{this.uuid="261ef3741d975bbaacbd9d2c8ea73522";}parse(e){this.content_id=e.readCString();}},nh=class extends jo{constructor(...e){super(...e),this.box_name="ItemComponentContentIDProperty";}static{this.uuid="9db9dd6e373c5a4e811021fc83a911fd";}parse(e){this.number_of_components=e.readUint32(),this.content_ids=[];for(let t=0;t<this.number_of_components;t++){let i=e.readCString();this.content_ids.push(i);}}},sh$1=Hi({CoLLBox:()=>kl,ItemComponentContentIDPropertyBox:()=>nh,ItemContentIDPropertyBox:()=>ih$1,OpusSampleEntry:()=>uo$1,SmDmBox:()=>td$1,a1lxBox:()=>xl,a1opBox:()=>yl,ac_3SampleEntry:()=>co$1,ac_4SampleEntry:()=>ho,aebrBox:()=>Zl,afbrBox:()=>ql,albcBox:()=>Kl,alstSampleGroupEntry:()=>Td$1,altrBox:()=>Ql,auxCBox:()=>bl,av01SampleEntry:()=>Or$2,av1CBox:()=>Cr$2,avc1SampleEntry:()=>Tr$2,avc2SampleEntry:()=>zr$2,avc3SampleEntry:()=>Fr$1,avc4SampleEntry:()=>Dr$2,avcCBox:()=>$i,avllSampleGroupEntry:()=>zd$1,avs3SampleEntry:()=>io,avssSampleGroupEntry:()=>Fd$1,brstBox:()=>Xl,btrtBox:()=>vl,bxmlBox:()=>qs,ccstBox:()=>Sl,cdefBox:()=>wl,clapBox:()=>El,clefBox:()=>Nc,clliBox:()=>Cl,cmexBox:()=>Bl,cminBox:()=>Ul,cmpCBox:()=>Il,cmpdBox:()=>Pl,co64Box:()=>Al,colrBox:()=>kr$2,coviBox:()=>Fl,cprtBox:()=>Dl,cschBox:()=>Ol,cslgBox:()=>Ml,cttsBox:()=>Rl,dOpsBox:()=>Wl,dac3Box:()=>Ll,dataBox:()=>wt$1,dav1SampleEntry:()=>Mr$2,dec3Box:()=>Nl,dfLaBox:()=>Vl,dimmBox:()=>Hl,dinfBox:()=>Xi,dmax:()=>Gl,dmedBox:()=>jl,dobrBox:()=>Jl,drefBox:()=>nn,drepBox:()=>Yl,dtrtSampleGroupEntry:()=>Dd$1,dvh1SampleEntry:()=>Yr$2,dvheSampleEntry:()=>$r$2,ec_3SampleEntry:()=>po$1,edtsBox:()=>Qs,elngBox:()=>sn,elstBox:()=>$l,emsgBox:()=>Oo,encaSampleEntry:()=>bo,encmSampleEntry:()=>Co,encsSampleEntry:()=>So,enctSampleEntry:()=>Eo,encuSampleEntry:()=>vo,encvSampleEntry:()=>yo$1,enofBox:()=>Hc,eqivBox:()=>ec,esdsBox:()=>Br$2,etypBox:()=>fr$2,fLaCSampleEntry:()=>xo,favcBox:()=>tc,fielBox:()=>hc,fobrBox:()=>ic,freeBox:()=>Ws,frmaBox:()=>pc,ftypBox:()=>rn,grplBox:()=>pr$1,hdlrBox:()=>on,hev1SampleEntry:()=>Nr$1,hev2SampleEntry:()=>Vr$2,hinfBox:()=>ir$1,hmhdBox:()=>Zi,hntiBox:()=>tr$1,hvc1SampleEntry:()=>Rr$2,hvc2SampleEntry:()=>Lr$2,hvcCBox:()=>an,hvt1SampleEntry:()=>Hr$2,iaugBox:()=>nc,idatBox:()=>js,iinfBox:()=>_r$2,ilocBox:()=>xr$2,ilstBox:()=>Gc,imirBox:()=>uc,infeBox:()=>gr$1,iodsBox:()=>$s,ipcoBox:()=>hr$2,ipmaBox:()=>fc,iproBox:()=>Ks,iprpBox:()=>dr$1,irefBox:()=>yr$2,irotBox:()=>mc,ispeBox:()=>gc,itaiBox:()=>_c,j2kHBox:()=>ur$1,j2kiSampleEntry:()=>no,keysBox:()=>jc,kindBox:()=>xc,levaBox:()=>yc,lhe1SampleEntry:()=>Gr$2,lhv1SampleEntry:()=>jr$2,lhvCBox:()=>bc,lselBox:()=>vc,lvc1SampleEntry:()=>Wr$2,lvcCBox:()=>Ir$2,m4aeSampleEntry:()=>lo$1,maxrBox:()=>Sc,mdatBox:()=>yt,mdcvBox:()=>wc,mdhdBox:()=>ln,mdiaBox:()=>Ki,mecoBox:()=>er$1,mehdBox:()=>cn,metaBox:()=>Sr$2,mettSampleEntry:()=>wr$2,metxSampleEntry:()=>Er$2,mfhdBox:()=>dn,mfraBox:()=>Js,mfroBox:()=>Ec,mha1SampleEntry:()=>fo,mha2SampleEntry:()=>mo$1,mhm1SampleEntry:()=>go$1,mhm2SampleEntry:()=>_o,minfBox:()=>Qi,mjp2SampleEntry:()=>so$1,mjpgSampleEntry:()=>ro,moofBox:()=>en,moovBox:()=>vt$1,mp4aSampleEntry:()=>pn,mp4sSampleEntry:()=>wo$1,mp4vSampleEntry:()=>ao$1,mskCBox:()=>Cc,msrcTrackGroupTypeBox:()=>bd$1,mvexBox:()=>vi,mvhdBox:()=>hn,mvifSampleGroupEntry:()=>Od$1,nmhdBox:()=>bt$1,npckBox:()=>Bc,numpBox:()=>Uc,padbBox:()=>Pc,panoBox:()=>sc,paspBox:()=>Ac,paylBox:()=>kc,paytBox:()=>Tc,pdinBox:()=>zc,piffLsmBox:()=>Kd$1,piffPsshBox:()=>Qd$1,piffSencBox:()=>Xd$1,piffTencBox:()=>Jd$1,piffTfrfBox:()=>eh,piffTfxdBox:()=>th$1,pitmBox:()=>vr$2,pixiBox:()=>Fc,pmaxBox:()=>Dc,povdBox:()=>mr$1,prdiBox:()=>Oc,prfrBox:()=>Mc,prftBox:()=>Rc,prgrBox:()=>cc,profBox:()=>Wc,prolSampleGroupEntry:()=>Md$1,psshBox:()=>Lc,pymdBox:()=>dc,rapSampleGroupEntry:()=>
964Rd$1,rashSampleGroupEntry:()=>Ld$1,resvSampleEntry:()=>Bo,rinfBox:()=>or$1,rollSampleGroupEntry:()=>Nd$1,rtp_Box:()=>$c,saioBox:()=>Zc,saizBox:()=>qc,sbgpBox:()=>ko,sbpmBox:()=>Qc,sbttSampleEntry:()=>Uo,schiBox:()=>ar$1,schmBox:()=>Xc,scifSampleGroupEntry:()=>Vd$1,scnmSampleGroupEntry:()=>Hd$1,sdp_Box:()=>Jc,sdtpBox:()=>To,seigSampleGroupEntry:()=>Gd$1,sencBox:()=>ed$1,sgpdBox:()=>zo,sidxBox:()=>Fo$1,sinfBox:()=>rr$1,skipBox:()=>Ys,slidBox:()=>rc,smhdBox:()=>fn,sratBox:()=>id$1,ssixBox:()=>Mo$1,stblBox:()=>Ji,stcoBox:()=>mn,stdpBox:()=>nd$1,sterBox:()=>oc,sthdBox:()=>gn,stppSampleEntry:()=>un,strdBox:()=>sr$1,striBox:()=>sd$1,strkBox:()=>nr$1,stsaSampleGroupEntry:()=>jd$1,stscBox:()=>_n,stsdBox:()=>xn,stsgBox:()=>rd$1,stshBox:()=>od$1,stssBox:()=>ad$1,stszBox:()=>yn,sttsBox:()=>bn,stviBox:()=>ld$1,stxtSampleEntry:()=>Io,stypBox:()=>Ro$1,stz2Box:()=>cd$1,subsBox:()=>dd$1,syncSampleGroupEntry:()=>Wd$1,taicBox:()=>hd$1,taptBox:()=>Yc,teleSampleGroupEntry:()=>Yd$1,tencBox:()=>pd$1,tfdtBox:()=>vn,tfhdBox:()=>Sn,tfraBox:()=>fd$1,tkhdBox:()=>wn,tmaxBox:()=>md$1,tminBox:()=>gd$1,totlBox:()=>_d$1,tpayBox:()=>xd$1,tpylBox:()=>yd$1,trafBox:()=>tn,trakBox:()=>qi,trefBox:()=>vd$1,trepBox:()=>Sd$1,trexBox:()=>Si,trgrBox:()=>lr$1,trpyBox:()=>wd$1,trunBox:()=>En,tsasSampleGroupEntry:()=>$d$1,tsclSampleGroupEntry:()=>Zd$1,tselBox:()=>Ed$1,tsynBox:()=>ac,tx3gSampleEntry:()=>Po$1,txtcBox:()=>Cd$1,tycoBox:()=>Bd$1,udesBox:()=>Ud$1,udtaBox:()=>cr$1,uncCBox:()=>Id$1,uncvSampleEntry:()=>oo,urlBox:()=>Cn,urnBox:()=>Pd$1,viprSampleGroupEntry:()=>qd$1,vmhdBox:()=>Bn,vp08SampleEntry:()=>eo,vp09SampleEntry:()=>to,vpcCBox:()=>Pr$1,vttCBox:()=>Ad$1,vttcBox:()=>Xs,vvc1SampleEntry:()=>qr$2,vvcCBox:()=>Ar$2,vvcNSampleEntry:()=>Xr$2,vvi1SampleEntry:()=>Kr$2,vvnCBox:()=>kd$1,vvs1SampleEntry:()=>Qr$2,waveBox:()=>Ur$2,wbbrBox:()=>lc,wvttSampleEntry:()=>Ao,xmlBox:()=>Zs});Vs(sh$1);Hs(pl);var we$3={BANDWIDTH:"BANDWIDTH",AUDIO:"AUDIO",GROUP_ID:"GROUP-ID",URI:"URI",BYTERANGE:"BYTERANGE"},st$3=class st{static resolveUrl(e,t){return new URL(e,t).toString()}static parseAttributes(e){let t={},i=/([A-Z0-9-]+)=(?:"([^"]*)"|([^,]*))/g,s;for(;s=i.exec(e);)t[s[1]]=s[2]!==void 0?s[2]:s[3];return t}static parseByteRange(e,t){let[i,s]=e.split("@");return {length:Number(i),offset:s!==void 0?Number(s):t}}static parseMasterPlaylist(e,t){let i=e.split(/\r?\n/),s=[],r=[];for(let o=0;o<i.length;o++){let a=i[o].trim();if(a.startsWith("#EXT-X-MEDIA:")&&/TYPE=AUDIO/.test(a)){let l=this.parseAttributes(a);l[we$3.GROUP_ID]&&l[we$3.URI]&&r.push({groupId:l[we$3.GROUP_ID],uri:this.resolveUrl(l[we$3.URI],t)});continue}if(a.startsWith("#EXT-X-STREAM-INF:")){let l=this.parseAttributes(a),c=i[o+1]?.trim();if(c&&!c.startsWith("#")){let h=Number(l[we$3.BANDWIDTH]);s.push({bandwidth:Number.isFinite(h)?h:0,audioGroupId:l[we$3.AUDIO],uri:this.resolveUrl(c,t)});}}}return {variants:s,audioRenditions:r}}static parseMediaPlaylist(e,t){let i=e.split(/\r?\n/),s,r=[],o,a=0;for(let l of i){let c=l.trim();if(!c)continue;if(c.startsWith("#EXT-X-MAP:")){let b=this.parseAttributes(c);b[we$3.URI]&&(s={url:this.resolveUrl(b[we$3.URI],t)},b[we$3.BYTERANGE]&&(s.byteRange=this.parseByteRange(b[we$3.BYTERANGE],0),a=s.byteRange.offset+s.byteRange.length));continue}let h="#EXT-X-BYTERANGE:";if(c.startsWith(h)){o=this.parseByteRange(c.slice(h.length),a);continue}if(c.startsWith("#"))continue;let x={url:this.resolveUrl(c,t)};o?(x.byteRange=o,a=o.offset+o.length,o=void 0):a=0,r.push(x);}return {initSegment:s,segments:r}}static pickBestVariant(e){return e.reduce((t,i)=>!t||i.bandwidth>t.bandwidth?i:t,void 0)}};var Ai=class n{constructor(){this.http=D$l(Ue$7);}remuxToMp4(e){return this.fetchText(e).pipe(Ru$2(t=>{let{variants:i,audioRenditions:s}=st$3.parseMasterPlaylist(t,e),r=st$3.pickBestVariant(i);if(!r)return Lm$2(()=>new Error("No playable HLS variant found in master playlist."));let o=s.find(a=>a.groupId===r.audioGroupId);return Wm$2([this.fetchTrackBuffer(r.uri),o?this.fetchTrackBuffer(o.uri):Ms$2(void 0)])}),Ru$2(([t,i])=>Wm$2([this.demux(t),i?this.demux(i):Ms$2(void 0)])),ge$9(([t,i])=>this.remux(t,i)))}fetchText(e){return this.http.get(e,{responseType:"text"})}
964fetchTrackBuffer(e){return this.fetchText(e).pipe(Ru$2(t=>{let i=st$3.parseMediaPlaylist(t,e),s=i.initSegment?[i.initSegment,...i.segments]:i.segments;return Wm$2(s.map(r=>this.fetchSegment(r)))}),ge$9(t=>this.concatBuffers(t)))}fetchSegment(e){let t={};if(e.byteRange){let{offset:i,length:s}=e.byteRange;t.Range=`bytes=${i}-${i+s-1}`;}return this.http.get(e.url,{headers:t,responseType:"arraybuffer"})}concatBuffers(e){let t=e.reduce((r,o)=>r+o.byteLength,0),i=new Uint8Array(t),s=0;for(let r of e)i.set(new Uint8Array(r),s),s+=r.byteLength;return i.buffer}demux(e){return new x$g(t=>{let i=Bi(),s=[];i.onError=(r,o)=>t.error(new Error(`${r}: ${o}`)),i.onSamples=(r,o,a)=>{s.push(...a);},i.onReady=r=>{let o=r.tracks[0];i.setExtractionOptions(o.id,null,{nbSamples:o.nb_samples}),i.start();let l=i.getTrackById(o.id).mdia.minf.stbl.stsd.entries[0];t.next({type:l.type,timescale:o.timescale,samplesDuration:o.samples_duration,language:o.language,width:o.video?.width,height:o.video?.height,channelCount:o.audio?.channel_count,sampleSize:o.audio?.sample_size,sampleRate:o.audio?.sample_rate,samples:s,description:l.avcC??l.hvcC??l.esds}),t.complete();},i.appendBuffer(me$3.fromArrayBuffer(e,0)),i.flush();})}remux(e,t){let i=Bi(),s=i.addTrack({id:1,type:e.type,hdlr:"vide",width:e.width,height:e.height,timescale:e.timescale,media_duration:e.samplesDuration,language:e.language,description:e.description});for(let r of e.samples)i.addSample(s,this.sampleData(r),{duration:r.duration,dts:r.dts,cts:r.cts,is_sync:r.is_sync});if(t){let r=i.addTrack({id:2,type:t.type,hdlr:"soun",timescale:t.timescale,media_duration:t.samplesDuration,language:t.language,channel_count:t.channelCount,samplesize:t.sampleSize,samplerate:t.sampleRate,description:t.description});for(let o of t.samples)i.addSample(r,this.sampleData(o),{duration:o.duration,dts:o.dts,cts:o.cts,is_sync:true});}return i.getBuffer().buffer}sampleData(e){if(!e.data)throw new Error("Extracted sample is missing data.");return e.data}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};var ki=class n{constructor(){this.videoRemuxService=D$l(Ai);}download(e){return this.videoRemuxService.remuxToMp4(e).pipe(ge$9(t=>{this.triggerDownload(t,this.deriveFilename(e));}))}triggerDownload(e,t){let i=new Blob([e],{type:"video/mp4"}),s=URL.createObjectURL(i),r=document.createElement("a");r.href=s,r.download=t,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(s);}deriveFilename(e){let t=e.split("?")[0];return `${t.substring(t.lastIndexOf("/")+1).replace(/\.m3u8$/i,"")||"video"}.mp4`}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};var rh$1=["zoomWrapper"],oh$1=["video"];function ah$1(n,e){if(n&1){let t=DT();Zi$3(0,"broken-ads-alert",12),_g$1("click",function(){Rd$2(t);let s=NT();return kd$2(s.itemClick.set(true))}),kl$2();}if(n&2){let t=NT();Ig$1("type",t.galleryItem().type)("url",t.galleryItem().creativeUrl)("advUrl",t.galleryItem().adsUrl);}}function lh$1(n,e){if(n&1){let t=DT();Zi$3(0,"div",13),_g$1("click",function(s){Rd$2(t);let r=NT();return kd$2(r.onClickPrev(s))}),Eg$1(1,"i",14),kl$2();}if(n&2){let t=NT();Pg$1("with-thumbnail-rail",t.galleryItems.length>1);}}function ch$1(n,e){if(n&1){let t=DT();Zi$3(0,"div",15),_g$1("click",function(s){Rd$2(t);let r=NT();return kd$2(r.onClickNext(s))}),Eg$1(1,"i",16),kl$2();}if(n&2){let t=NT();Pg$1("with-thumbnail-rail",t.galleryItems.length>1);}}function dh$1(n,e){if(n&1){let t=DT();
964Zi$3(0,"zoom-wrapper",17,0),Zg$1(2),Zi$3(3,"img",19),_g$1("load",function(){Rd$2(t);let s=db(2),r=NT(2);return kd$2(r.renderedSrc.set(s))})("error",function(){Rd$2(t);let s=db(2),r=NT(2);return kd$2(r.renderedSrc.set(s))})("click",function(){Rd$2(t);let s=NT(2);return kd$2(s.itemClick.set(true))})("contextmenu",function(){Rd$2(t);let s=NT(2);return kd$2(s.clickContextMenu())}),kl$2()();}if(n&2){let t=NT(2);Ig$1("zoomRefreshSignal",t.galleryItem().src)("zoomable",true)("pannable",t.isTouchDevice)("zoomableOnClick",!t.isTouchDevice)("zoomFollowsCursor",!t.isTouchDevice)("analyticsEvents",t.zoomAnalyticsEvents),AE(2);let i=ub(t.galleryItem().src);AE(),QT(t.imageAnimationClass()),Pg$1("image-loading",t.isImageLoading()),Ig$1("src",i,qp$2);}}function hh$1(n,e){if(n&1&&(Zi$3(0,"div",18),Eg$1(1,"spinner",20),kl$2()),n&2){let t=NT(2);AE(),Ig$1("color",t.SpinnerColorEnum.white)("diameter",42);}}function ph$1(n,e){if(n&1&&(Zi$3(0,"div",8),uT(1,dh$1,4,12,"zoom-wrapper",17),uT(2,hh$1,2,2,"div",18),kl$2()),n&2){let t=NT();AE(),dT(t.galleryItem().loaded()?1:-1),AE(),dT(!t.galleryItem().loaded()||t.isImageLoading()?2:-1);}}function uh$1(n,e){if(n&1){let t=DT();Zi$3(0,"am-iframe",23),_g$1("click",function(s){return s.stopPropagation()})("touchstart",function(s){return s.stopPropagation()})("touchend",function(s){return s.stopPropagation()})("onSwipe",function(s){Rd$2(t);let r=NT(2);return kd$2(r.onSwipe(s))}),kl$2();}if(n&2){let t=NT(2);Ig$1("item",t.galleryItem());}}function fh$1(n,e){if(n&1&&(Zi$3(0,"youtube-iframe",24),_g$1("click",function(i){return i.stopPropagation()}),kl$2()),n&2){let t=NT(2);Ig$1("src",t.galleryItem().src);}}function mh$1(n,e){if(n&1&&(Zi$3(0,"div",9),uT(1,uh$1,1,1,"am-iframe",21),uT(2,fh$1,1,1,"youtube-iframe",22),kl$2()),n&2){let t=NT();AE(),dT(t.galleryItem().isYoutube?-1:1),AE(),dT(t.galleryItem().isYoutube?2:-1);}}function gh$1(n,e){if(n&1&&Eg$1(0,"spinner",28),n&2){let t=NT(3);Ig$1("diameter",14)("color",t.SpinnerColor.white);}}function _h$1(n,e){if(n&1){let t=DT();Zi$3(0,"i",30),_g$1("click",function(){Rd$2(t);let s=NT(3);return kd$2(s.downloadVideo())}),kl$2();}}function xh$1(n,e){if(n&1){let t=DT();Zi$3(0,"video",26),_g$1("click",function(s){Rd$2(t);let r=NT(2);return kd$2(r.clickVideo(s))})("contextmenu",function(s){Rd$2(t);let r=NT(2);return kd$2(r.clickVideo(s))})("touchstart",function(s){Rd$2(t);let r=NT(2);return kd$2(r.clickVideo(s))})("videoEndEvent",function(){Rd$2(t);let s=NT(2);return kd$2(s.nextClick())}),kl$2(),Zi$3(1,"div",27),uT(2,gh$1,1,2,"spinner",28)(3,_h$1,1,0,"i",29),kl$2();}if(n&2){let t=NT(2);Ig$1("streamVideo",t.galleryItem().src),AE(2),dT(t.isVideoDownloading()?2:3);}}function yh$1(n,e){if(n&1){let t=DT();Zi$3(0,"video",31,1),_g$1("click",function(s){Rd$2(t);let r=NT(2);return kd$2(r.clickVideo(s))})("contextmenu",function(s){Rd$2(t);let r=NT(2);return kd$2(r.clickVideo(s))})("touchstart",function(s){Rd$2(t);let r=NT(2);return kd$2(r.clickVideo(s))})("videoEndEvent",function(){Rd$2(t);let s=NT(2);return kd$2(s.nextClick())}),Eg$1(2,"source",32),kl$2();}if(n&2){let t=FT(1),i=NT(2);AE(2),Ig$1("src",i.galleryItem().src)("type",i.galleryItem().isAppleVideo&&i.isWorkPlayType(t)?"application/x-mpegURL":"video/mp4");}}function bh$1(n,e){if(n&1&&(Zi$3(0,"div",10),uT(1,xh$1,4,2)(2,yh$1,3,2,"video",25),kl$2()),n&2){let t=NT();AE(),dT(t.isStreamVideo()?1:2);}}var Ti=class n{constructor(){this.index=fi$4(0);this.galleryItems=[];this.disableArrows=false;this.showReportBtn=true;this.closeClick=new tt$b;this.zoomWrapper=BV("zoomWrapper");this.galleryItem=Pb(()=>this.galleryItems[this.index()]);this.isStreamVideo=Pb(()=>Ve$2.isStreamVideo(this.galleryItem().src));this.animateImgChangeTimeout=200;this.SpinnerColorEnum=y$2;this.GalleryItemType=i$5;this.zoomAnalyticsEvents={onZoomIn:"photoswipe_zoom_in_click",onZoomOut:"photoswipe_zoom_out_click"};this.imageAnimationClass=fi$4("");this.renderedSrc=fi$4(null);this.isImageLoading=Pb(()=>this.renderedSrc()!==this.galleryItem().src);this.loading=true;this.changingVideo=fi$4(false);this.itemClick=fi$4(false);this.isWorkPlayType=o$7.isWorkPlayType;this.isTouchDevice=a$g.isTouchDevice();this.isVideoDownloading=fi$4(false);this.SpinnerColor=y$2;this.breakpointService=D$l(r$9);this.analyticsService=D$l(L$3);this.cdr=D$l(WV);this.snackbarService=D$l(ot$4);this.hlsVideoDownloadService=D$l(ki);this.imageAnimationToggle=false;this.isMobLs=L$4(this.breakpointService.isMobLs);}static getAnimateIndex(e,t,i){return e===t?0:e===i&&t===0?1:e===0&&t===i?-1:t>e?1:-1}ngOnInit(){this.selectIndex=new rr$4(this.index()),this.subscription=Ns$2(document,"keydown").subscribe(e=>{e.keyCode===39&&(this.nextClick(),e.preventDefault()),e.keyCode===37&&(this.prevClick(),e.preventDefault()),e.keyCode===27&&this.analyticsService.send("photoswipe_close_esc");}
964),this.galleryItems.forEach(e=>{e.loaded=fi$4(false);}),this.subscription.add(this.selectIndex.pipe(Au$2(this.index()),Su$2()).subscribe(([e,t])=>{this.changingVideo.set(true);let i=t+1<this.galleryItems.length?t+1:0;[t-1>=0?t-1:this.galleryItems.length-1,t,i].forEach(o=>{let a=this.galleryItems[o];if(a.type!=="image"||a.loaded())return;let l=new Image;l.src=a.src,l.onload=()=>{this.galleryItems[o].loaded.set(true);};});let r=n.getAnimateIndex(e,t,this.galleryItems.length);this.setImageAnimationClass(this.galleryItems[e]?.type==="image"?r:0),setTimeout(()=>{this.changingVideo.set(false);},this.animateImgChangeTimeout-1),setTimeout(()=>{this.changingVideo.set(false),this.index.set(t),this.imageAnimationClass.set(""),this.galleryItem().type==="video"&&this.videoElm&&(this.videoElm.nativeElement.load(),this.videoElm.nativeElement.play()),this.cdr.markForCheck();},this.animateImgChangeTimeout);}));}onClick(){if(this.itemClick()){this.itemClick.set(false);return}this.closeClick.emit(),this.analyticsService.send("photoswipe_backdrop_click");}onSwipe(e){if(this.zoomWrapper()?.isZoomed())return;let t=e.direction;if(t==="left"){this.nextClick();return}if(t==="right"){this.prevClick();return}}ngAfterViewInit(){this.galleryItem().type==="video"&&this.videoElm&&this.videoElm.nativeElement.play();}close(e){e.stopImmediatePropagation(),this.closeClick.emit(),this.analyticsService.send("photoswipe_close_click");}clickContextMenu(){this.itemClick.set(true);}downloadVideo(){this.itemClick.set(true),!this.isVideoDownloading()&&(this.analyticsService.send("photoswipe_video_download_click"),this.isVideoDownloading.set(true),this.hlsVideoDownloadService.download(this.galleryItem().src).pipe(Pt$a(1),bu$2(()=>this.isVideoDownloading.set(false))).subscribe({error:()=>{this.snackbarService.show("errors.video_download_failed",true);}}));}clickVideo(e){this.itemClick.set(true),e.stopImmediatePropagation();}onClickNext(e){e.stopImmediatePropagation(),this.nextClick();}onClickPrev(e){e.stopImmediatePropagation(),this.prevClick();}prevClick(){this.itemClick.set(true),this.selectIndex.next(this.index()===0?this.galleryItems.length-1:this.index()-1),this.analyticsService.send("photoswipe_prev_click");}nextClick(){this.itemClick.set(true),this.selectIndex.next(this.index()+1===this.galleryItems.length?0:this.index()+1),this.analyticsService.send("photoswipe_next_click");}selectItemClick(e){this.itemClick.set(true),this.analyticsService.send("photoswipe_select_item_click",[e.toString()]),this.selectIndex.next(e);}ngOnDestroy(){this.subscription.unsubscribe();}setImageAnimationClass(e){if(!e){this.imageAnimationClass.set("");return}this.imageAnimationToggle=!this.imageAnimationToggle;let t=this.imageAnimationToggle?"primary":"secondary";this.imageAnimationClass.set(e>0?`lightbox-image-next-${t}`:`lightbox-image-prev-${t}`);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=sw({type:n,selectors:[["lightbox-dialog"]],viewQuery:function(t,i){if(t&1&&(Rg$1(i.zoomWrapper,rh$1,5),xg$1(oh$1,5)),t&2){PT();let s;OT(s=LT())&&(i.videoElm=s.first);}},hostVars:2,hostBindings:function(t,i){t&2&&Pg$1("no-padding",i.isMobLs()&&i.galleryItem().type===i.GalleryItemType.image);},inputs:{galleryItems:"galleryItems",disableArrows:"disableArrows",showReportBtn:"showReportBtn"},outputs:{closeClick:"closeClick"},decls:10,vars:10,consts:[["zoomWrapper",""],["video",""],[1,"close-container"],[1,"broken-ads-alert",3,"type","url","advUrl"],[1,"g-icon-close-white","position-icon-close",3,"click"],[1,"arrow-before","arrow-icon-content",3,"with-thumbnail-rail"],[1,"arrow-next","arrow-icon-content",3,"with-thumbnail-rail"],[1,"lightbox-stage","flex-center","pos-relative",2,"height","100%","margin-left","env(safe-area-inset-left)",3,"click","amSwipe"],[1,"zoom-wrap"],[1,"flex-center","pos-relative","iframe-content",2,"height","100%"],[1,"video-wrap"],[3,"selectItem","items","selectedIndex"],[1,"broken-ads-alert",3,"click","type","url","advUrl"],[1,"arrow-before","arrow-icon-content",3,"click"],[1,"g-icon-keyboard-left-white","keyboard-left-icon"],[1,"arrow-next","arrow-icon-content",3,"click"],[1,"g-icon-keyboard-right-white"],[3,"zoomRefreshSignal","zoomable","pannable","zoomableOnClick","zoomFollowsCursor","analyticsEvents"],[1,"img-preload-wrap"],[3,"load","error","click","contextmenu","src"],[3,"color","diameter"],[3,"item"],[3,"src"],[3,"click","touchstart","touchend","onSwipe","item"],[3,"click","
964src"],["videoMuteSave","","playsinline","","controls",""],["videoMuteSave","","playsinline","","controls","",3,"click","contextmenu","touchstart","videoEndEvent","streamVideo"],[1,"icon-wrap"],[3,"diameter","color"],["stopImmediate","",1,"g-icon-download-arrow","lightbox-download-icon"],["stopImmediate","",1,"g-icon-download-arrow","lightbox-download-icon",3,"click"],["videoMuteSave","","playsinline","","controls","",3,"click","contextmenu","touchstart","videoEndEvent"],[3,"src","type"]],template:function(t,i){t&1&&(Zi$3(0,"div",2),uT(1,ah$1,1,3,"broken-ads-alert",3),Zi$3(2,"i",4),_g$1("click",function(r){return i.close(r)}),kl$2()(),uT(3,lh$1,2,2,"div",5),uT(4,ch$1,2,2,"div",6),Zi$3(5,"div",7),_g$1("click",function(){return i.onClick()})("amSwipe",function(r){return i.onSwipe(r)}),uT(6,ph$1,3,2,"div",8),uT(7,mh$1,3,2,"div",9),uT(8,bh$1,3,1,"div",10),kl$2(),Zi$3(9,"lightbox-thumbnail-rail",11),_g$1("selectItem",function(r){return i.selectItemClick(r)}),kl$2()),t&2&&(AE(),dT(i.galleryItem().isAds&&i.showReportBtn?1:-1),AE(2),dT(i.disableArrows?-1:3),AE(),dT(i.disableArrows?-1:4),AE(),Pg$1("with-thumbnail-rail",i.galleryItems.length>1),AE(),dT(i.galleryItem().type===i.GalleryItemType.image?6:-1),AE(),dT(i.galleryItem().type===i.GalleryItemType.iframe?7:-1),AE(),dT(i.galleryItem().type===i.GalleryItemType.video&&!i.changingVideo()?8:-1),AE(),Ig$1("items",i.galleryItems)("selectedIndex",i.index()));},dependencies:[Zt$1,Xt$1,b$5,ti$2,ii$2,li$2,tt$2,ui$1,et$2,mi$1,s$9],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
964--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:block;position:relative;height:var(--height);max-height:var(--height);width:100%;text-align:center;padding:52px 75px 35px}@media(max-width:1279px){[_nghost-%COMP%]{padding:60px 45px 35px}}@media(max-width:576px){[_nghost-%COMP%]{padding:65px 45px 35px}}.no-padding[_nghost-%COMP%]{padding:0}[_nghost-%COMP%]   .material-icons[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}[_nghost-%COMP%]   .iframe-content[_ngcontent-%COMP%]{max-width:calc(100vw - 90px)}[_nghost-%COMP%]   .close-icon[_ngcontent-%COMP%]{font-size:32px;transition:.15s transform}[_nghost-%COMP%]   .broken-ads-alert[_ngcontent-%COMP%]{margin-left:15px}[_nghost-%COMP%]   .close-container[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;z-index:10;display:flex;align-items:center}@media(max-width:767px){[_nghost-%COMP%]   .close-container[_ngcontent-%COMP%]{right:0}}[_nghost-%COMP%]   .position-icon-close[_ngcontent-%COMP%]{margin:8px;position:initial;transform:translateZ(0)}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .position-icon-close[_ngcontent-%COMP%]:hover{transform:scale(1.3)}}[_nghost-%COMP%]   .icon-wrap[_ngcontent-%COMP%]{position:absolute;top:15px;right:0;height:24px;width:24px;display:flex;align-items:center;justify-content:center;background-color:#00000080}[_nghost-%COMP%]   .lightbox-download-icon[_ngcontent-%COMP%]{background-color:var(--white);cursor:pointer}[_nghost-%COMP%]   .arrow-icon-content[_ngcontent-%COMP%]{display:flex;align-items:center;z-index:9;
964cursor:pointer;position:absolute;color:var(--white);top:0;width:30vw;min-width:150px;max-width:420px;height:100%;transform:translateZ(0)}@media(max-width:767px){[_nghost-%COMP%]   .arrow-icon-content[_ngcontent-%COMP%]{width:60px;min-width:60px;justify-content:center}}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .arrow-icon-content[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%]{transform:scale(1.3)}[_nghost-%COMP%]   .arrow-icon-content[_ngcontent-%COMP%]:hover   i.keyboard-left-icon[_ngcontent-%COMP%]{transform:scale(1.3) rotate(180deg)}}@media(max-width:767px){[_nghost-%COMP%]   .arrow-icon-content[_ngcontent-%COMP%]{width:40px;min-width:40px;padding:45px 0}}[_nghost-%COMP%]   .arrow-icon-content.with-thumbnail-rail[_ngcontent-%COMP%]{height:calc(100% - 120px)}@media(max-width:767px){[_nghost-%COMP%]   .arrow-icon-content.with-thumbnail-rail[_ngcontent-%COMP%]{height:calc(100% - 96px)}}[_nghost-%COMP%]   .arrow-icon-content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{width:24px;height:24px;margin:45px 18px;transition:.15s transform}@media(max-width:767px){[_nghost-%COMP%]   .arrow-icon-content[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:45px 0}}[_nghost-%COMP%]   .arrow-before[_ngcontent-%COMP%]{left:0;margin-left:env(safe-area-inset-left);margin-right:env(safe-area-inset-right)}[_nghost-%COMP%]   .arrow-next[_ngcontent-%COMP%]{right:0;justify-content:flex-end;padding-left:90px}@media(max-width:767px){[_nghost-%COMP%]   .arrow-next[_ngcontent-%COMP%]{padding-left:0}}[_nghost-%COMP%]   iframe[_ngcontent-%COMP%], [_nghost-%COMP%]   video[_ngcontent-%COMP%]{outline:none;padding:15px 0;border:0;width:100%;border:none}[_nghost-%COMP%]   iframe[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]   .video-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:relative;height:100%;min-height:100%}[_nghost-%COMP%]   video[_ngcontent-%COMP%]{max-height:100%;min-height:100%;z-index:10}@media(orientation:portrait){[_nghost-%COMP%]   video[_ngcontent-%COMP%]{min-height:0;width:100%}}[_nghost-%COMP%]   .lightbox-stage[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   .lightbox-stage.with-thumbnail-rail[_ngcontent-%COMP%]{padding-bottom:120px}@media(max-width:767px){[_nghost-%COMP%]   .lightbox-stage.with-thumbnail-rail[_ngcontent-%COMP%]{padding-bottom:96px}}[_nghost-%COMP%]   .zoom-wrap[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;position:relative;max-height:100%;overflow:hidden;display:flex;justify-content:center;width:100%;height:100%}[_nghost-%COMP%]   .zoom-wrap[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin:auto;min-width:0;min-height:0;max-height:100%;max-width:100%;object-fit:contain;transition:opacity .25s ease-out}[_nghost-%COMP%]   .zoom-wrap[_ngcontent-%COMP%]   img.image-loading[_ngcontent-%COMP%]{opacity:0;visibility:hidden}[_nghost-%COMP%]   .img-preload-wrap[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;animation:_ngcontent-%COMP%_lightbox-spinner-in .1s .2s both}@keyframes _ngcontent-%COMP%_lightbox-spinner-in{0%{opacity:0}to{opacity:1}}.lightbox-image-next-primary[_ngcontent-%COMP%], .lightbox-image-next-secondary[_ngcontent-%COMP%], .lightbox-image-prev-primary[_ngcontent-%COMP%], .lightbox-image-prev-secondary[_ngcontent-%COMP%]{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:both}.lightbox-image-next-primary[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_lightbox-image-next-primary}.lightbox-image-next-secondary[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_lightbox-image-next-secondary}.lightbox-image-prev-primary[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_lightbox-image-prev-primary}.lightbox-image-prev-secondary[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_lightbox-image-prev-secondary}@keyframes _ngcontent-%COMP%_lightbox-image-next-primary{0%{transform:translate(0);opacity:1}to{transform:translate(-75%);opacity:0}}@keyframes _ngcontent-%COMP%_lightbox-image-next-secondary{0%{transform:translate(0);opacity:1}to{transform:translate(-75%);opacity:0}
964}@keyframes _ngcontent-%COMP%_lightbox-image-prev-primary{0%{transform:translate(0);opacity:1}to{transform:translate(75%);opacity:0}}@keyframes _ngcontent-%COMP%_lightbox-image-prev-secondary{0%{transform:translate(0);opacity:1}to{transform:translate(75%);opacity:0}}"]});}};var Wo=class n{constructor(){this.updateElements=new rr$4(false);this.amDialogsService=D$l(y$5);this.analyticsService=D$l(L$3);}open(e,t,i=false){this.dialog=this.amDialogsService.open(Ti,{containerClass:"img-gallery-dialog-overlay",backdropClass:"img-gallery-dialog-backdrop",dialogInClass:"am-dialog-in",dialogOutClass:"am-dialog-out"}),this.dialog.instance.galleryItems=t,this.dialog.instance.index.set(e),this.dialog.instance.showReportBtn=i,this.dialog.instance.disableArrows=t.length<=1;let s=new W$f;s.add(this.dialog.escEvent().subscribe(()=>{this.dialog.dispose();})),s.add(this.dialog.backdropClick().subscribe(()=>{this.dialog.dispose();})),s.add(this.dialog.instance.closeClick.subscribe(()=>{this.dialog.dispose();})),this.dialog.afterClosed().subscribe(()=>s.unsubscribe());}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275prov=G$f({token:n,factory:n.\u0275fac,providedIn:"root"});}};
965var I$1=class c{constructor(){this.galleryGroups=[];this.updateElements=new rr$4(false);this.openGalleryIndex=new rr$4({imgIndex:0,groupIndex:0});this.destroySubject=new de$c;this.sanitizer=D$l(Fe$8);this.galleryService=D$l(Wo);this.updateElements.pipe(Tn$3(s=>s),wu$2(0),ku$2(this.destroySubject)).subscribe(s=>{this.collectElements();}),this.indexObserve().subscribe(s=>{this.galleryService.open(s.index,s.items,false);});}
965ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete();}detectNewMedia(){this.updateElements.next(true);}indexObserve(){return this.openGalleryIndex.pipe(Nu$2(1),ku$2(this.destroySubject),ge$9(s=>({index:s.imgIndex,items:this.galleryGroups[s.groupIndex]})))}collectElements(){setTimeout(()=>{this.destroyElementsEvents(),this.elementSubscription=new W$f;let s=document.querySelectorAll("img[photoswipe]"),l=document.querySelectorAll("iframe[photoswipe]"),x=document.querySelectorAll("video[photoswipe]"),r={};l.forEach(t=>{let e=t.getAttribute("photoswipe"),i={src:this.sanitizer.bypassSecurityTrustResourceUrl(t.getAttribute("src")),type:"iframe"};e?(r[e]=r[e]?r[e]:[],r[e].push(i)):this.galleryGroups.push([i]);}),x.forEach(t=>{let e=t.getAttribute("photoswipe"),o=t.getElementsByTagName("source")[0],i=this.sanitizer.bypassSecurityTrustResourceUrl(o.getAttribute("src"));e?(r[e]=r[e]?r[e]:[],r[e].push({src:i,type:"video"})):this.galleryGroups.push([{src:i,type:"video"}]);}),s.forEach(t=>{let e=t.getAttribute("photoswipe"),o=t.getAttribute("src");o===null&&(o=t.getAttribute("photoswipe-src"));let i={src:o,type:"image",element:t};e?(r[e]=r[e]?r[e]:[],r[e].push(i)):this.galleryGroups.push([i]);}),Object.values(r).forEach(t=>this.galleryGroups.push(t)),this.galleryGroups.forEach((t,e)=>{t.forEach((o,i)=>{o.element&&this.elementSubscription.add(Ns$2(o.element,"click").pipe(ku$2(this.destroySubject)).subscribe(E=>{this.openGalleryIndex.next({imgIndex:i,groupIndex:e});}));});});},100);}destroyElementsEvents(){this.elementSubscription&&this.elementSubscription.unsubscribe(),this.galleryGroups=[];}static{this.\u0275fac=function(l){return new(l||c)};}static{this.\u0275prov=G$f({token:c,factory:c.\u0275fac,providedIn:"root"});}};var S$1={group_dashboards:[1,2,3,4,5,6,7,12,13,14,15,16,30],group_featuring:[],group_top_charts:[8,9],group_favorites:[],group_others:[]};var C$3=class C{static getAnalyticsEvent(t){return {onOpen:e=>{t("tip_of_the_day_selector_open",e);},closeCancel:e=>{t("tip_of_the_day_selector_close_cancel",e);},closeApply:e=>{t("tip_of_the_day_selector_close_apply",e);},closeEsc:e=>{t("tip_of_the_day_selector_close_esc",e);},closeBackdrop:e=>{t("tip_of_the_day_selector_close_backdrop",e);}}}static getTipUrl(){return [{url:"^/top-charts/publishers",tipId:9},{url:"^/top-charts/soft-launches",tipId:17},{url:"^/top-charts/apps",tipId:8},{url:"^/notifications",tipId:21},{url:"^/top-charts/advanced-search",tipId:25},{url:"^/success-meter",tipId:34},{url:"^/live-ops-calendar",tipId:35},{url:"^/app-transfers",tipId:20},{url:"^/favorites(/apps)?$",tipId:28},{url:"^/favorites/creatives",tipId:31},{url:"^/favorites/publishers",tipId:32},{url:"^/favorites/keywords",tipId:33},{url:"^/favorites/offers",tipId:36},{url:"^/dashboards",dashboardsType:"similarity",tipId:19},{url:"^/dashboards",dashboardsType:"custom",tipId:1},{url:"^/dashboards",dashboardsType:"publisher",tipId:4},{url:"^/dashboards",dashboardsType:"market-segment",tipId:22},{url:"^/dashboards",dashboardsType:"market-segment-compare",tipId:23}]}static getAllTipGroups(){return {group_dashboards:[1,2,3,4,5,6,7,12,13,14,15,16,19,22,23,30],group_top_charts:[8,9,17,25,26,27],group_featuring:[10,11],group_favorites:[28,31,32,33,36],group_others:[20,21,29,34,35]}}static getTipGroupsByPlatform(){return {steam:S$1,xbox:S$1,playStation:S$1}}static getTipGroupsForPlatform(t){return this.getTipGroupsByPlatform()[t]??this.getAllTipGroups()}};function _e$2(o,t){if(o&1&&(Ol$2(0,"span",6),ib(1),bb(2,"translate"),Ll$2()),o&2){let e=NT(2).$implicit;AE(),Ug$1(_b(2,1,"tips."+e.key));}}function ye$3(o,t){if(o&1){let e=DT();Ol$2(0,"li",5)(1,"div"),uT(2,_e$2,3,3,"span",6),Ol$2(3,"span",7),Mg$1("click",function(){let i=Rd$2(e).$implicit,r=NT(2);return kd$2(r.selectValue.emit(i.value))}),ib(4),Ll$2()()();}if(o&2){let e=t.$implicit,n=t.$index,i=NT(2);Pg$1("selected",e.value===i.value),AE(2),dT(n===0?2:-1),AE(2),jl$2(" ",e.name," ");}}function xe$2(o,t){if(o&1&&(Ol$2(0,"ul"),hT(1,ye$3,5,4,"li",4,pT),Ll$2()),o&2){let e=t.$implicit;AE(),gT(e.value);}}var A$2=class o{constructor(){this.selectValue=new tt$b;
965this.cancel=new tt$b;}ngAfterViewInit(){this.popper.update();}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["tip-select-panel"]],inputs:{value:"value",groupedValues:"groupedValues",popper:"popper"},outputs:{selectValue:"selectValue",cancel:"cancel"},decls:8,vars:3,consts:[[1,"tip-container"],[1,"group-wrap"],[1,"d-flex","flex-j-e","btn-close-wrap"],[1,"g-btn-cancel",3,"click"],[1,"group-item","d-inline-block",3,"selected"],[1,"group-item","d-inline-block"],[1,"header"],[1,"group-item-text",3,"click"]],template:function(e,n){e&1&&(Ol$2(0,"div",0)(1,"div",1),hT(2,xe$2,3,0,"ul",null,pT),Ll$2(),Ol$2(4,"div",2)(5,"div",3),Mg$1("click",function(){return n.cancel.emit()}),ib(6),bb(7,"translate"),Ll$2()()()),e&2&&(AE(2),gT(n.groupedValues),AE(4),jl$2(" ",_b(7,1,"buttons.close")));},dependencies:[fe$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
965--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{font-size:14px;font-weight:500;display:flex;align-items:center;cursor:pointer;background:var(--surface-raised);width:100%;border:none;margin:4px 0;text-align:left;font-family:Roboto,Helvetica Neue,sans-serif}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:first-child{margin-top:0}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover)}}[_nghost-%COMP%]   .group-item-tooltip[_ngcontent-%COMP%]{display:flex;margin-left:4px}[_nghost-%COMP%]{display:block;max-width:100%;width:360px;max-height:calc(var(--height) - 30px);background:var(--surface-raised);padding-top:60px;padding-bottom:15px;position:relative;box-sizing:border-box}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:calc(var(--height) - 90px)}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{color:var(--blue-80)}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{color:var(--blue-90)}}[_nghost-%COMP%]   .group-item.disabled[_ngcontent-%COMP%]{color:var(--grey-50);pointer-events:none}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{text-transform:uppercase;padding:12px 8px 12px 22px;border-left:3px solid transparent}[_nghost-%COMP%]   .group-item.selected[_ngcontent-%COMP%]{border-color:var(--accent);color:var(--text)}[_nghost-%COMP%]   .group-item.disabled[_ngcontent-%COMP%]{cursor:default;color:var(--text-muted);pointer-events:none}.small[_nghost-%COMP%]{width:120px}@media(max-width:576px){.small[_nghost-%COMP%]{width:100%}}.small[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{padding:8px}[_nghost-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{font-size:20px;line-height:15px;position:relative;top:3px;color:var(--text-secondary)}[_nghost-%COMP%]:not(.panel-mode){border-radius:8px;overflow:hidden}@media(max-width:576px){[_nghost-%COMP%]:not(.panel-mode){border-radius:0;overflow:initial}}[_nghost-%COMP%]{width:530px;max-height:calc(var(--height) - 32px);padding:0}@media(max-width:576px){[_nghost-%COMP%]{padding:0 0 65px;width:100%;max-height:100%}}[deviceType]:not([deviceType=touchOnly])   [_nghost-%COMP%]   .tip-container[_ngcontent-%COMP%]{scrollbar-width:thin}[deviceType]:not([deviceType=touchOnly])   [_nghost-%COMP%]   .tip-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--surface-sunken)!important;border-right:6px solid var(--white);border-radius:3px}[deviceType]:not([deviceType=touchOnly])   [_nghost-%COMP%]   .tip-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px;height:6px;background-color:transparent!important}[deviceType]:not([deviceType=touchOnly])   [_nghost-%COMP%]   .tip-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{width:6px;height:6px;border-radius:3px 8px 8px 3px/3px 6px 6px 3px;border-right:6px solid var(--white);background-color:var(--grey-50)!important}[_nghost-%COMP%]   .tip-container[_ngcontent-%COMP%]{display:block;height:100%;overflow-y:auto}@media(max-width:576px){[_nghost-%COMP%]   .tip-container[_ngcontent-%COMP%]{width:100%;max-height:var(--height)}}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{display:block;columns:2;width:100%;padding:24px 0;max-height:unset}@media(max-width:576px){[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{columns:1;padding:24px 0}}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:0;list-style-type:none}@media(max-width:576px){[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap;justify-content:space-between}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-bottom:0;max-width:100%;width:100%}}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]:last-child   .group-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}[_nghost-%COMP%]   .btn-close-wrap[_ngcontent-%COMP%]{height:65px;border-top:1px solid var(--grey-40);
965display:none;position:fixed;padding:16px;bottom:0;left:0;width:100%;background:var(--white)}@media(max-width:576px){[_nghost-%COMP%]   .btn-close-wrap[_ngcontent-%COMP%]{display:flex;align-items:center}}[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{display:list-item;width:fit-content;margin:0;border:none;padding:0 24px 16px;color:var(--black);cursor:default;background:none;break-inside:avoid}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]:hover{background:none;color:var(--black)}}@media(max-width:576px){[_nghost-%COMP%]   .group-item[_ngcontent-%COMP%]{padding:0 16px 16px;width:100%}}[_nghost-%COMP%]   .group-item.selected[_ngcontent-%COMP%]{pointer-events:none}[_nghost-%COMP%]   .group-item.selected[_ngcontent-%COMP%]   .group-item-text[_ngcontent-%COMP%]{cursor:default;color:var(--grey-70)}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:500}[_nghost-%COMP%]   .group-item-text[_ngcontent-%COMP%]{color:var(--blue-80)}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .group-item-text[_ngcontent-%COMP%]:hover{color:var(--blue-90)}}[_nghost-%COMP%]   .group-item-text.disabled[_ngcontent-%COMP%]{color:var(--grey-50);pointer-events:none}[_nghost-%COMP%]   .group-item-text[_ngcontent-%COMP%]{display:inline;-webkit-box-decoration-break:clone;box-decoration-break:clone;cursor:pointer;text-transform:none;line-height:18px;padding:4px 8px;margin:-4px -8px;border-radius:6px}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .group-item-text[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover)}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{display:block;padding-bottom:16px}"]});}};var D$2=class o{constructor(t,e){this.element=t;this.amDropdownService=e;this.changed=new tt$b;this.cancel=new tt$b;this.isPanelOpen=new rr$4(false);}open(){this.isPanelOpen.next(true);let t=new W$f,e=this.amDropdownService.get(this.element,A$2,{noBackdrop:{fullMob:true}});e.open("noBackdrop").pipe(Mu$2()).subscribe(n=>{n==="backdrop"&&this.analyticEvents.closeBackdrop([this.value.toString()]),n==="closeEsc"&&this.analyticEvents.closeEsc([this.value.toString()]),this.isPanelOpen.next(false),t.unsubscribe(),e.close();}),e.instance.value=this.value,e.instance.groupedValues=this.groupedValues,t.add(e.instance.cancel.subscribe(()=>{this.isPanelOpen.next(false),e.close("cancel"),this.analyticEvents.closeCancel([this.value.toString()]);})),t.add(e.instance.selectValue.subscribe(n=>{this.changed.emit(n),e.close(),this.isPanelOpen.next(false),this.analyticEvents.closeApply([n.toString()]);})),this.analyticEvents.onOpen([this.value.toString()]);}static{this.\u0275fac=function(e){return new(e||o)(Jr$4(Gr$4),Jr$4(z$5))};}static{this.\u0275cmp=sw({type:o,selectors:[["tip-select"]],inputs:{value:"value",groupedValues:"groupedValues",analyticEvents:"analyticEvents"},outputs:{changed:"changed",cancel:"cancel"},decls:6,vars:7,consts:[[1,"tip-selector","d-flex","flex-a-c",3,"click"],[1,"text"],[1,"g-selector-arrow"]],template:function(e,n){e&1&&(Ol$2(0,"div",0),Mg$1("click",function(){return n.open()}),Ol$2(1,"span",1),ib(2),bb(3,"translate"),Ll$2(),Dg$1(4,"span",2),bb(5,"async"),Ll$2()),e&2&&(AE(2),Ug$1(_b(3,3,"tips.tip_of_the_day")),AE(2),Pg$1("flip",_b(5,5,n.isPanelOpen)));},dependencies:[An$3,fe$8,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
965--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:block;width:100%;max-width:100%}.small[_nghost-%COMP%]{width:120px}[_nghost-%COMP%]{max-width:calc(100% - 30px)}[_nghost-%COMP%]{width:auto}.tip-selector[_ngcontent-%COMP%]{display:flex;align-items:center;text-transform:uppercase;position:relative;cursor:pointer;outline:none;background-color:var(--surface-hover);border-radius:8px;font-weight:400;font-size:14px;line-height:16px;padding:8px 8px 8px 12px;height:32px;box-sizing:border-box;transition:.09s border;border:1px solid transparent}@media(hover:hover)and (pointer:fine){.tip-selector[_ngcontent-%COMP%]:hover{border-color:var(--border)}}.tip-selector[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}.tip-selector[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{padding-right:8px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tip-selector[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{font-size:32px;line-height:24px;position:absolute;top:2px;color:var(--blue-70);right:8px}.tip-selector[_ngcontent-%COMP%]   .flip[_ngcontent-%COMP%]{transform:rotate(180deg)}.tip-selector[_ngcontent-%COMP%]{padding:0 8px 0 12px}.tip-selector[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{white-space:nowrap}"]});}};var Pe$2=(o,t)=>({num:o,total:t}),k$1=class o{constructor(){this.galleryDetectorService=D$l(I$1);this.analyticsService=D$l(L$3);this.translateService=D$l(x$d);this.selectorAnalyticsEvents=C$3.getAnalyticsEvent((t,e)=>this.analyticsService.send(t,e));this.groupedSelectorValues=[];this.selectorValues=[];this.selectorIndex=0;this.closeEmitter=new tt$b;this.changeTip=new tt$b;}ngOnInit(){this.galleryDetectorService.detectNewMedia(),this.groupedSelectorValues=a$4.group(this.generateSelectorValue(),"group"),this.selectorValues=[].concat(...this.groupedSelectorValues.map(t=>t.value)),this.selectorIndex=this.selectorValues.findIndex(t=>t.value===this.tipId);}generateSelectorValue(){return this.tips.map(t=>{let e=this.translateService.instant(`tips.${t.header}`);return {group:t.group,value:t.tipId,name:e}})}sendAnalytics(t){this.analyticsService.send("tips_click_href",[t]);}select(t,e){this.galleryDetectorService.detectNewMedia(),this.tipId=t,this.selectorIndex=this.selectorValues.findIndex(n=>n.value===t),this.changeTip.emit({event:e,tipId:t});}next(){let t=this.selectorValues.length>this.selectorIndex+1?this.selectorIndex+1:0;this.select(this.selectorValues[t].value,"tips_dialog_right");}prev(){let t=this.selectorIndex===0?this.selectorValues.length-1:this.selectorIndex-1;this.select(this.selectorValues[t].value,"tips_dialog_left");}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["tip-of-the-day"]],inputs:{tipId:"tipId",tips:"tips"},outputs:{closeEmitter:"closeEmitter",changeTip:"changeTip"},decls:21,vars:21,consts:[[1,"content"],[1,"header"],[3,"changed","value","groupedValues","analyticEvents"],[1,"header-page","m-x","not-mob-ls"],[1,"g-icon-close","visibility-icon-close",3,"click"],[1,"heading"],[1,"tip-of-the-day-body",3,"href-click","customInnerHtml"],[1,"footer","g-selector-footer"],[1,"buttons"],[1,"g-btn-cancel","button",3,"click"],[1,"g-btn-select","button",3,"click","hotkey-click"],[1,"g-icon-long-arrow-left"],[1,"g-icon-long-arrow-right"]],template:function(e,n){e&1&&(Zi$3(0,"div",0)(1,"div",1)(2,"tip-select",2),_g$1("changed",function(r){return n.select(r,"")}),kl$2(),Zi$3(3,"div",3),ib(4),bb(5,"translate"),kl$2(),Zi$3(6,"i",4),_g$1("click",function(){return n.closeEmitter.emit()}),kl$2()(),Zi$3(7,"div",5),ib(8),bb(9,"translate"),kl$2(),Zi$3(10,"div",6),bb(11,"translate"),_g$1("href-click",function(r){return n.sendAnalytics(r)}),kl$2()(),Zi$3(12,"div",7)(13,"div",8)(14,"button",9),_g$1("click",function(){return n.closeEmitter.emit()}),ib(15),bb(16,"translate"),kl$2(),Zi$3(17,"button",10),_g$1("click",function(){return n.prev()}),Eg$1(18,"i",11),kl$2(),Zi$3(19,"button",10),_g$1("click",function(){return n.next()}),Eg$1(20,"i",12),kl$2()()()),e&2&&(AE(2),Ig$1("value",n.tipId)("groupedValues",n.groupedSelectorValues)("analyticEvents",n.selectorAnalyticsEvents),AE(2),jl$2(" ",Mb(5,9,"tips.tips_count",Eb(18,Pe$2,n.selectorIndex+1,n.tips.length))," "),AE(4),Ug$1(_b(9,12,"tips.tip_"+n.tipI
965d+".header")),AE(2),Ig$1("customInnerHtml",_b(11,14,"tips.tip_"+n.tipId+".body")),AE(5),jl$2(" ",_b(16,16,"buttons.close")," "),AE(2),Ig$1("hotkey-click",37),AE(2),Ig$1("hotkey-click",39));},dependencies:[D$2,f$7,s$h,fe$8,r$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
965--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}[_nghost-%COMP%]{background:var(--white);min-width:340px;display:flex;flex-direction:column;justify-content:space-between;min-height:76vh;width:100%;--border-radius: 16px;border-radius:var(--border-radius);box-shadow:var(--shadow-l);max-width:100%}@media(max-width:1279px){[_nghost-%COMP%]{min-height:550px}}@media(max-width:767px){[_nghost-%COMP%]{--border-radius: 0px;height:var(--height);min-height:var(--height)}}[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:none}@media(max-width:576px){[_nghost-%COMP%]   .visibility-icon-close[_ngcontent-%COMP%]{display:block;top:0;right:2px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{height:100%;padding:30px 45px 0;min-height:0;flex:1}@media(max-width:767px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding:16px;overflow:auto}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;position:relative}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .buttons-header[_ngcontent-%COMP%]{top:22px;right:45px}@media(max-width:767px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .buttons-header[_ngcontent-%COMP%]{right:25px}}@media(max-width:360px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .buttons-header[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .buttons-header[_ngcontent-%COMP%]   .btn-left[_ngcontent-%COMP%]{margin:0 7px 0 0}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .buttons-header[_ngcontent-%COMP%]   .btn-right[_ngcontent-%COMP%]{margin:0 0 0 7px!important}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .buttons-header[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{height:36px;width:67px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .header-title[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .header-page[_ngcontent-%COMP%]{line-height:24px;font-size:16px}@media screen and (max-width:767px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .header-page[_ngcontent-%COMP%]{font-size:14px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{margin:25px 0 35px;font-size:34px;line-height:1.5}@media screen and (max-width:576px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{margin:20px 0 30px;font-size:26px;line-height:1.3}}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{padding:16px 45px;height:64px;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;position:sticky;bottom:0;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}@media(min-width:768px){[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{border-top:none}}@media(max-width:767px){[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{padding:16px;width:100%;background:var(--white)}}@media(max-width:576px){[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-end}}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]   .checkbox-container[_ngcontent-%COMP%]{min-height:35px;align-items:center;display:flex}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{white-space:nowrap;display:flex;flex-wrap:wrap}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{height:32px;line-height:20px;min-width:67px;padding:0 16px}[_nghost-%COMP%]   .footer[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:auto}"]});}};var L$1=class o{constructor(t,e,n,i,r){this.analyticsService=t;this.localStorageService=e;this.amDialogService=n;this.router=i;this.activeDashboardService=r;}static{this.lsLastShownTipKey="tipOfTheDay.lastShowTipId";}static{this.lsLastPlatformKey="last-platform";}static getIndexByUrl(t,e,n){return t.findIndex(i=>{let r=new RegExp(i.url).test(e);return i.dashboardsType?r&&i.dashboardsType===n:r})}static getTips(t){return t$k(t).reduce((e,n)=>e.concat(t[n].map(i=>({group:n,header:`tip_${i}.header`,body:`tip_${i}.body`,tipId:i}
965))),[]).sort((e,n)=>{if(e.group!==n.group){if(e.group==="group_others")return 1;if(n.group==="group_others")return  -1}return e.tipId-n.tipId})}show(t,e={}){let n=this.getTipsForCurrentPlatform();if(!n.find(r=>r.tipId===t)&&t){let r=this.localStorageService.get(o.lsLastShownTipKey);if(!n.find(u=>u.tipId===r))return;t=r;}e.containerClass="tip-dialog-container",e.backdropClass="am-dialog-backdrop-flex-j-c";let i=this.openModal(e);i.instance.tips=n,i.instance.tipId=t,i.instance.changeTip.subscribe(r=>{r.event&&this.analyticsService.send(r.event,[r.tipId.toString()]),this.localStorageService.set(o.lsLastShownTipKey,r.tipId);let u=document.getElementsByClassName("tip-dialog-overlay")[0];u&&u.parentElement.scrollTo({top:0});});}openModal(t={}){let e=this.amDialogService.open(k$1,t);return e.backdropClick().subscribe(()=>{this.analyticsService.send("tips_dialog_close_backdrop"),e.dispose();}),e.escEvent().subscribe(n=>{this.analyticsService.send("tips_dialog_close_esc"),e.dispose();}),e.instance.closeEmitter.subscribe(()=>{this.analyticsService.send("tips_dialog_close_close"),e.dispose();}),e}getDefaultTipId(){let t=this.getTipsForCurrentPlatform(),e=z=>!!z&&t.some(ve=>ve.tipId===z),n=C$3.getTipUrl(),i=o.getIndexByUrl(n,this.router.routerState.snapshot.url,this.activeDashboardService.activeDashboard()),r=this.localStorageService.get(o.lsLastShownTipKey);if(i===-1)return e(r)?r:1;let u=n[i].tipId;return e(u)?u:e(r)?r:1}getTipsForCurrentPlatform(){let t=this.localStorageService.get(o.lsLastPlatformKey),e=C$3.getTipGroupsForPlatform(t);return o.getTips(e)}static{this.\u0275fac=function(e){return new(e||o)(me$b(L$3),me$b(xt$5),me$b(y$5),me$b(F$4),me$b(a$5))};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var f$5=class a{constructor(e,r,i){this.localStorageService=e;this.userService=r;this.sentryService=i;this.learnEvent=new tt$b;this.learnActive=new rr$4(false);}static{this.learnKey="learning";}static isNewUserByCreatedAt(e){let r=kt$3.getDate(e),i=kt$3.now();return kt$3.diff(i,r,"d")<=30}sendSentryLogs(e,r,i){let t={data:JSON.stringify(e),funcName:i,tipId:r};this.sentryService.send("TIPS LEARN DATA BUG","Data",t);}getLeaningData(){let e=this.localStorageService.get(a.learnKey);return !Array.isArray(e)&&e!==null&&this.sendSentryLogs(e,null,"getLeaningData"),this.localStorageService.get(a.learnKey)??[]}setLeaningData(e){(!Array.isArray(e)||e.length===0)&&this.sendSentryLogs(e,null,"setLeaningData"),this.localStorageService.set(a.learnKey,e);}showTip(e,r=false,i=true){if(this.userService.isGuest()||i&&!a.isNewUserByCreatedAt(this.userService.user.getValue().created_at))return;let t=this.getLeaningData();(!t||t.some(o=>!o))&&this.sendSentryLogs(t,e,"showTip");let n=t.findIndex(o=>o.tipId===e||o.index===e-1);n===-1&&(t.push({tipId:e,count:0,look:false}),n=t.length-1),!(!r&&t[n].count>=3)&&(t[n].look||(this.learnEvent.emit({tipId:e,name:`tips.tip_${e}.header`}),t[n].count++,this.setLeaningData(t)));}tipLooked(e){let r=this.getLeaningData(),i=r.findIndex(t=>t.tipId===e);r[i].look=true,this.setLeaningData(r);}static{this.\u0275fac=function(r){return new(r||a)(me$b(xt$5),me$b(ve$6),me$b(F$6))};}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var x$1=class i{constructor(){this.httpClient=D$l(Ue$7);}getZendeskChatToken(){return this.httpClient.get(`${C$8.baseUrl}/api/v2/zendesk/chat-token`)}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};var _$1=class i{constructor(){this.localStorageService=D$l(xt$5);this.userService=D$l(ve$6);this.chatResource=D$l(x$1);this.userTrashy=new rr$4(void 0);this.chat=new ar$4;this.isOpened=fi$4(false);}static isNewUser(t){let e=kt$3.now(),n=kt$3.getDate(t);return kt$3.diff(e,n,"d")<10}initChat(){this.localStorageService.get(We$7.DISABLED_3PARTY_SCRIPT_KEY)||this.initInterval||(this.initInterval=setInterval(()=>{let t=window.zE;t&&(this.initialize(t),this.chat.next(t),clearInterval(this.initInterval));},1e3));}initialize(t){t("messenger:on","open",()=>{this.isOpened.set(true);let n=[];this.userService.isPremium()&&n.push("premium"),t("messenger:set","conversationTags",n);}),t("messenger:on","close",()=>{this.isOpened.set(false);});let e=false;this.userService.user.subscribe(n=>{if(n&&!e){e=true;try{t("messenger","loginUser",r=>{this.chatResource.getZendeskChatToken().subscribe({next:({token:F})=>r(F),error:F=>console.error("Zendesk chat auth failed",F)});});}catch(r){}}else if(!n&&e){e=false;try{t("messenger","logoutUser");}catch(r){}}});}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275prov=G$f({token:i,factory:i.\u0275fac,providedIn:"root"});}};function ne$2(i,t){if(i&1){let e=DT();Ol$2(0,"div",5),Mg$1("click",function(){Rd$2(e);let r=NT();return kd$2(r.openTipOfTheDay())}),qd$2(),Ol$2(1,"svg",6),Dg$1(2,"path",7)(3,"path",8)(4,"path",9)(5,"path",10),Ll$2()();}}function ie$2(i,t){if(i&1){let e=DT();Ol$2(0,"div",11),Mg$1("click",function(){Rd$2(e);let r=NT();return kd$2(r.openLearnTip())}),Ol$2(1,"span",12),ib(2),bb(3,"translate"),bb(4,"translate"),Ll$2(),qd$2(),Ol$2(5,"svg",13),Dg$1(6,"path",14)(7,"path",15)(8,"path",16)(9,"path",17)(10,"path",18)(11,"path",19)(12,"path",20),Ll$2()();}if(i&2){let e,n=NT();AE(2),qg$1("",_b(3,4,"tips.learn_more")," ",_b(4,6,(e=n.learnEvent())==null?null:e.name)),AE(3),Pg$1("rays",n.animationTick());}}function oe$2(i,t){if(i&1){let e=DT();Ol$2(0,"div",21),bb(1,"async"),Mg$1("click",function(){Rd$2(e);let r=NT();return kd$2(r.openWechatModal())}),qd$2(),Ol$2(2,"svg",22),Dg$1(3,"path",23),Ll$2()();}if(i&2){let e=NT();Pg$1("disabled",_b(1,2,e.chatService.userTrashy));}}function re$2(i,t){if(i&1){let e=DT();Ol$2(0,"div",24),bb(1,"async"),Mg$1("click",function(){Rd$2(e);let r=NT();return kd$2(r.openChat())}),qd$2(),Ol$2(2,"svg",25),Dg$1(3,"path",26)(4,"rect",27)(5,"path",28)(6,"path",29),Ll$2()();}if(i&2){let e=NT();Pg$1("disabled",_b(1,2,e.chatService.userTrashy));}}var te$3=class i{constructor(){this.showTips=VV(true);this.tipOfTheDayService=D$l(L$1);this.analyticsService=D$l(L$3);this.chatService=D$l(_$1);this.langService=D$l(v$7);this.learningService=D$l(f$5);this.wechatQrModalService=D$l(D$4);this.elementRef=D$l(Gr$4);this.router=D$l(F$4);this.learnEvent=fi$4(null);this.animationTick=fi$4(false);this.learnActive=fi$4(false);this.isCnLang=Pb(()=>this.langService.langSignal().id==="cn");this.isGuest=L$4(D$l(ve$6).isGuestObserver,{initialValue:true});let t,e;this.learningService.learnEvent.subscribe(n=>{this.analyticsService.send("tips_blink_hint",[n.name]),clearTimeout(t),clearInterval(e),this.learnEvent.set(n),this.learningService.learnActive.next(true),e=setInterval(()=>{this.animationTick.update(r=>!r);},1e3),t=setTimeout(()=>{this.learningService.learnActive.next(false),clearInterval(e),this.animationTick.set(false);},3e4);}),this.router.events.pipe(Tn$3(n=>n instanceof P$8)).subscribe(()=>{this.learningService.learnActive.next(false);}),this.learningService.learnActive.subscribe(n=>{this.learnActive.set(n);});}
965ngOnInit(){this.chatService.initChat();}openWechatModal(){this.wechatQrModalService.open();}openChat(){this.chatService.userTrashy.getValue()!==true&&(this.analyticsService.send("navbar_click_chat"),this.chatService.chat.pipe(Mu$2()).subscribe(t=>{this.chatService.isOpened()?t("messenger","close"):t("messenger","open");}));}openTipOfTheDay(){let t=this.tipOfTheDayService.getDefaultTipId();this.tipOfTheDayService.show(t,{openFrom:this.elementRef.nativeElement,closeTo:this.elementRef.nativeElement}),this.analyticsService.send("navbar_click_tips",[`${t}`]);}openLearnTip(){this.tipOfTheDayService.show(this.learnEvent().tipId,{openFrom:this.elementRef.nativeElement,closeTo:this.elementRef.nativeElement}),this.learningService.learnActive.next(false),this.learningService.tipLooked(this.learnEvent().tipId),this.analyticsService.send("show_learning_tip",[this.learnEvent().tipId.toString()]);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=sw({type:i,selectors:[["bottom-menu"]],hostVars:2,hostBindings:function(e,n){e&2&&Pg$1("active",n.learnActive());},inputs:{showTips:[1,"showTips"]},decls:5,vars:3,consts:[[1,"tab-wrap"],["id","tip-of-the-day-button",1,"item"],["id","tip-of-the-day-button-learn",1,"item"],["tabindex","-1",1,"item",2,"width","45px",3,"disabled"],["tabindex","-1",1,"item",3,"disabled"],["id","tip-of-the-day-button",1,"item",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","36","height","36","viewBox","0 0 28 28","fill","none",1,"item-icon"],["fill-rule","evenodd","clip-rule","evenodd","d",`M14 26.6C20.9588 26.6 26.6 20.9588 26.6 14C26.6
966      7.04121 20.9588 1.4 14 1.4C7.04121 1.4 1.4 7.04121 1.4 14C1.4 20.9588 7.04121 26.6 14 26.6ZM28 14C28
967      21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14Z`,"fill","black",1,"hover-fill"],["d",`M7.80518 20.1094C8.23486 20.1094 8.5083 19.8281 8.5083 19.3828V9.99219H11.5083C11.9067 9.99219
968      12.1802 9.73438 12.1802 9.35938C12.1802 8.98438 11.9067 8.72656 11.5083 8.72656H4.10205C3.70361 8.72656
969      3.43018 8.98438 3.43018 9.35938C3.43018 9.73438 3.70361 9.99219 4.10205 9.99219H7.10205V19.3828C7.10205
970      19.8281 7.37549 20.1094 7.80518 20.1094Z`,"fill","black",1,"hover-fill"],["d",`M14.2505 20.1094C14.6802 20.1094 14.9536 19.8281 14.9536 19.3828V9.34375C14.9536 8.89844 14.6802
971      8.61719 14.2505 8.61719C13.8208 8.61719 13.5474 8.89844 13.5474 9.34375V19.3828C13.5474 19.8281 13.8208
972      20.1094 14.2505 20.1094Z`,"fill","black",1,"hover-fill"],["d",`M17.8442 20.1094C18.2739 20.1094 18.5474 19.8281 18.5474 19.3828V15.9766H21.1489C23.2661 15.9766
973      24.7739 14.4844 24.7739 12.3438C24.7739 10.2109 23.2817 8.72656 21.1646 8.72656H17.8442C17.4146 8.72656
974      17.1411 9.00781 17.1411 9.45312V19.3828C17.1411 19.8281 17.4146 20.1094 17.8442 20.1094ZM18.5474
975      14.7266V9.97656H20.7974C22.4146 9.97656 23.3286 10.8516 23.3286 12.3438C23.3286 13.8438 22.4067 14.7266
976      20.7974 14.7266H18.5474Z`,"fill","black",1,"hover-fill"],["id","tip-of-the-day-button-learn",1,"item",3,"click"],[1,"event-text","text-blue-hovered","font-size-12","font-500","p-r-sm","outline-none"],["width","41","height","36","viewBox","0 0 41 36","fill","none","xmlns","http://www.w3.org/2000/svg",1,"learn-item-icon"],["fill-rule","evenodd","clip-rule","evenodd","d",`M27 30.6C33.9588 30.6 39.6 24.9588 39.6 18C39.6 11.0412
977      33.9588 5.4 27 5.4C20.0412 5.4 14.4 11.0412 14.4 18C14.4 24.9588 20.0412 30.6 27 30.6ZM41 18C41 25.732
978      34.732 32 27 32C19.268 32 13 25.732 13 18C13 10.268 19.268 4 27 4C34.732 4 41 10.268 41 18Z`,"fill","#FEDA0F",1,"icon"],["d",`M20.8047 24.1094C21.2344 24.1094 21.5078 23.8281 21.5078 23.3828V13.9922H24.5078C24.9062 13.9922
979      25.1797 13.7344 25.1797 13.3594C25.1797 12.9844 24.9062 12.7266 24.5078 12.7266H17.1016C16.7031 12.7266
980      16.4297 12.9844 16.4297 13.3594C16.4297 13.7344 16.7031 13.9922 17.1016 13.9922H20.1016V23.3828C20.1016
981      23.8281 20.375 24.1094 20.8047 24.1094Z`,"fill","#FEDA0F",1,"icon"],["d",`M27.25 24.1094C27.6797 24.1094 27.9531 23.8281 27.9531 23.3828
981V13.3438C27.9531 12.8984 27.6797
982      12.6172 27.25 12.6172C26.8203 12.6172 26.5469 12.8984 26.5469 13.3438V23.3828C26.5469 23.8281 26.8203
983      24.1094 27.25 24.1094Z`,"fill","#FEDA0F",1,"icon"],["d",`M30.8438 24.1094C31.2734 24.1094 31.5469 23.8281 31.5469 23.3828V19.9766H34.1484C36.2656 19.9766
984      37.7734 18.4844 37.7734 16.3438C37.7734 14.2109 36.2812 12.7266 34.1641 12.7266H30.8438C30.4141 12.7266
985      30.1406 13.0078 30.1406 13.4531V23.3828C30.1406 23.8281 30.4141 24.1094 30.8438 24.1094ZM31.5469
986      18.7266V13.9766H33.7969C35.4141 13.9766 36.3281 14.8516 36.3281 16.3438C36.3281 17.8438 35.4062
987      18.7266 33.7969 18.7266H31.5469Z`,"fill","#FEDA0F",1,"icon"],["d","M8 1L14.5 5","stroke","#FEDA0F","stroke-width","2","stroke-linecap","round",1,"ray"],["d","M1.5 18H8.5","stroke","#FEDA0F","stroke-width","2","stroke-linecap","round",1,"ray"],["d","M8 35L14.5 31","stroke","#FEDA0F","stroke-width","2","stroke-linecap","round",1,"ray"],["tabindex","-1",1,"item",2,"width","45px",3,"click"],["width","28","height","28","viewBox","0 0 28 28","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M25.1272 23.3269C26.8798 22.0561 27.9999 20.1782 27.9999 18.0898C27.9999 14.2649 24.2773 11.1633 19.6865 11.1633C15.0957 11.1633 11.3732 14.2649 11.3732 18.0898C11.3732 21.9158 15.0957 25.0174 19.6865 25.0174C20.6353 25.0174 21.5507 24.8828 22.4005 24.6379L22.6443 24.6011C22.8042 24.6011 22.9491 24.6505 23.0859 24.7287L24.9064 25.7798L25.0662 25.8316C25.2192 25.8316 25.3434 25.7074 25.3434 25.5544L25.2985 25.352L24.9236 23.9548L24.8949 23.7777C24.8949 23.5914 24.9869 23.4269 25.1272 23.3269ZM10.3762 3.51486C4.86651 3.51486 0.399902 7.23627 0.399902 11.8282C0.399902 14.3329 1.7431 16.5881 3.84646 18.1118C4.01551 18.2314 4.12591 18.4292 4.12591 18.6535L4.09141 18.8651L3.64176 20.5418L3.58771 20.7844C3.58771 20.9684 3.73721 21.1179 3.92006 21.1179L4.11326 21.0558L6.29711 19.7943C6.46041 19.7 6.63406 19.6413 6.82611 19.6413L7.11936 19.685C8.13826 19.9783 9.23766 20.1416 10.3762 20.1416L10.9236 20.1278C10.7074 19.4792 10.5889 18.7961 10.5889 18.0911C10.5889 13.904 14.6622 10.5092 19.6866 10.5092L20.2282 10.523C19.4773 6.55202 15.3522 3.51486 10.3762 3.51486ZM16.9151 16.9824C16.3033 16.9824 15.8077 16.4856 15.8077 15.8738C15.8077 15.2609 
98716.3033 14.7652 16.9151 14.7652C17.5281 14.7652 18.0237 15.2609 18.0237 15.8738C18.0237 16.4856 17.5281 16.9824 16.9151 16.9824ZM22.458 16.9824C21.8451 16.9824 21.3494 16.4856 21.3494 15.8738C21.3494 15.2609 21.8451 14.7652 22.458 14.7652C23.0698 14.7652 23.5655 15.2609 23.5655 15.8738C23.5655 16.4856 23.0698 16.9824 22.458 16.9824ZM7.05059 10.4976C6.31574 10.4976 5.72119 9.90186 5.72119 9.16816C5.72119 8.4333 6.31574 7.8376 7.05059 7.8376C7.78545 7.8376 8.38115 8.4333 8.38115 9.16816C8.38115 9.90186 7.78545 10.4976 7.05059 10.4976ZM13.7011 10.4976C12.9662 10.4976 12.3717 9.90186 12.3717 9.16816C12.3717 8.4333 12.9662 7.8376 13.7011 7.8376C14.4359 7.8376 15.0316 8.4333 15.0316 9.16816C15.0316 9.90186 14.4359 10.4976 13.7011 10.4976Z","fill","#5FB500"],["tabindex","-1",1,"item",3,"click"],["width","37","height","36","viewBox","0 0 29 28","fill","none","xmlns","http://www.w3.org/2000/svg",1,"item-icon"],["d",`M13.9978 0C6.27871 0 0 6.28018 0 13.9993C0 21.7183 6.28018 28 13.9993 28H27.6542C27.9364 28
988      28.1899 27.8301 28.2994 27.5694C28.4074 27.3087 28.3469 27.0092 28.1481 26.809L24.5465 23.2074C26.7786
989      20.6555 27.9998 17.4138 27.9998 14.0007C27.9969 6.28055 21.7167 0 13.998 0H13.9978ZM13.9978 26.6028C7.04774
990      26.6028 1.39392 20.9489 1.39392 13.9989C1.39392 7.04885 7.04774 1.3965 13.9978 1.3965C20.9478 1.3965
991      26.6017 7.05032 26.6017 13.9989C26.6017 17.2722 25.3531 20.3727 23.0849 22.7318C23.0849 22.7318 23.0835
992      22.7318 23.0835 22.7332L23.0821 22.7347C23.0792 22.7376 23.0777 22.739 23.0749 22.7419C23.0533 22.7635
993      23.0461 22.7923 23.0273 22.8153C22.9899 22.8657 22.951 22.9147 22.928 22.9723C22.915 23.0011 22.9179
994      23.0342 22.9092 23.0645C22.8948 23.1206 22.879 23.1768 22.8804 23.2329C22.8804 23.2718 22.8963 23.3064
995      22.902 23.3438C22.9107 23.3942 22.915 23.4446 22.9337 23.4922C22.9525 23.5368 22.9856 23.5714 23.0129
996      23.6131C23.036 23.6463 23.0518 23.6866 23.0821 23.7183L23.0907 23.7269V23.7283L25.9637 26.6028L13.998
997      26.6042L13.9978 26.6028Z`,"fill","black",1,"hover-fill"],["x","8.1165","y","9.28328","width","11.7667","height","1.26667","rx","0.633333","fill","black","stroke","black","stroke-width","0.1",1,"hover-fill"],["d",`M8.74984 13.95C8.40006 13.95 8.1165 14.2336 8.1165 14.5833C8.1165 14.9331 8.40006 15.2167
998       8.74984 15.2167H14.5832C14.933 15.2167 15.2165 14.9331 15.2165 14.5833C15.2165 14.2336 14.933
999       13.95 14.5832 13.95H8.74984Z`,"fill","black","stroke","black","stroke-width","0.1",1,"hover-fill"],["d",`M8.74984 18.6167C8.40006 18.6167 8.1165 18.9003 8.1165 19.2501C8.1165 19.5998 8.40006 19.8834
1000       8.74984 19.8834H16.9165C17.2663 19.8834 17.5498 19.5998 17.5498 19.2501C17.5498 18.9003 17.2663 18.6167
1001       16.9165 18.6167H8.74984Z`,"fill","black","stroke","black","stroke-width","0.1",1,"hover-fill"]],template:function(e,n){e&1&&(Ol$2(0,"div",0),uT(1,ne$2,6,0,"div",1),uT(2,ie$2,13,8,"div",2),uT(3,oe$2,4,4,"div",3)(4,re$2,7,4,"div",4),Ll$2()),e&2&&(AE(),dT(n.showTips()?1:-1),AE(),dT(n.learnActive()?2:-1),AE(),dT(n.isCnLang()?3:n.isGuest()?-1:4));},dependencies:[An$3,fe$8,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1001--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]:not(:has(.tab-wrap *)){display:none}[_nghost-%COMP%]{position:fixed;background:var(--white);box-shadow:var(--shadow-m);border-radius:45px;right:45px;bottom:40px;z-index:10;overflow:hidden;transition:.2s width,.2s height,.2s border-radius;will-change:width,height;height:50px;padding:5px 3px}@media(max-width:767px){[_nghost-%COMP%]{right:25px}}[_nghost-%COMP%]   #tip-of-the-day-button-learn[_ngcontent-%COMP%]{display:none}.active[_nghost-%COMP%]{width:261px}.active[_nghost-%COMP%]   #tip-of-the-day-button-learn[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between;padding-left:20px}.active[_nghost-%COMP%]   #tip-of-the-day-button[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   img[_ngcontent-%COMP%], [_nghost-%COMP%]   svg[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]   img[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]   img[_ngcontent-%COMP%]:active, [_nghost-%COMP%]   svg[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]   svg[_ngcontent-%COMP%]:active{outline:none}[_nghost-%COMP%]   .item-icon[_ngcontent-%COMP%]{color:var(--black);outline:none;padding:4px}[_nghost-%COMP%]   .learn-item-icon[_ngcontent-%COMP%]{outline:none;position:absolute;right:8px}[_nghost-%COMP%]   .learn-item-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{fill:var(--blue-80)}[_nghost-%COMP%]   .learn-item-icon[_ngcontent-%COMP%]   .ray[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%]   .learn-item-icon.rays[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{fill:var(--yellow-50)}[_nghost-%COMP%]   .learn-item-icon.rays[_ngcontent-%COMP%]   .ray[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:0 4px;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;border-right:1px solid var(--grey-30)}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]   .hover-stroke[_ngcontent-%COMP%], [_nghost-%COMP%]   .item[_ngcontent-%COMP%]   .hover-fill[_ngcontent-%COMP%]{fill:var(--black);transition:stroke .4s cubic-bezier(.25,.8,.25,1),fill .4s cubic-bezier(.25,.8,.25,1)}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:hover   .hover-stroke[_ngcontent-%COMP%]{stroke:var(--blue-80)}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:hover   .hover-fill[_ngcontent-%COMP%]{fill:var(--blue-80)}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]   .item[_ngcontent-%COMP%]:active{outline:none}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:focus   .hover-stroke[_ngcontent-%COMP%], [_nghost-%COMP%]   .item[_ngcontent-%COMP%]:active   .hover-stroke[_ngcontent-%COMP%]{stroke:var(--black)}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:focus   .hover-fill[_ngcontent-%COMP%], [_nghost-%COMP%]   .item[_ngcontent-%COMP%]:active   .hover-fill[_ngcontent-%COMP%]{fill:var(--black)}[_nghost-%COMP%]   .item.active[_ngcontent-%COMP%]{padding:8px 12px 16px;border-bottom:7px solid var(--yellow-50);margin-bottom:-2px}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:last-child{border-right:none}[_nghost-%COMP%]   .item.disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%]   .item-more[_ngcontent-%COMP%]{padding:0;display:flex;align-items:center;height:45px}[_nghost-%COMP%]   .tab-wrap[_ngcontent-%COMP%]{display:flex;overflow:hidden;width:100%;height:100%;max-height:63px;justify-content:flex-end}[_nghost-%COMP%]   .chat-btn-wrap[_ngcontent-%COMP%]{display:flex;margin-left:auto}[_nghost-%COMP%]   .event-text[_ngcontent-%COMP%]{max-width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-height:14px;-webkit-line-clamp:2;-webkit-box-orient:vertical}"]});}};var t$6="consultation-and-support",n$2=`/articles/${t$6}`;var c$3="access-type",t$5=`/articles/${c$3}`;var e$4="market-segment-dashboard",r$1=`/articles/${e$4}`,s$8={img:"/assets/angular2/img/articles/_preview/market-segment-compare.png",link:r$1,title:"articleMarketSegmentCompareDashboard.title",description:"articleMarketSegmentCompareDashboard.description",formatDate:"2021-08-30",articleType:null,author:"articles.by_max_samorukov"};var t$4="market-segment-dashboard",e$3=`/articles/${t$4}`,l$4={img:"/assets/angular2/img/articles/market-segments-analysis.png",link:e$3,title:"articleMarketSegmentDashboard.title",description:"articleMarketSegmentDashboard.preview_text",formatDate:"2021-08-30",articleType:null,author:"articles.by_max_samorukov"};var i$4="genre-classification",s$7=`/tool-descriptions/${i$4}`;var e$2="d2c-revenue",t$3=`/tool-descriptions/${e$2}`;var e$1=(a=>(a[a.Blog=1]="Blog",a[a.Research=2]="Research",a[a.ToolDescriptions=3]="ToolDescriptions",a[a.ReleaseNotes=4]="ReleaseNotes",a))(e$1||{});var vt="live-ops-frozen-city",Dt$1=`/research/${vt}`,U$2={img:"/assets/angular2/img/articles/_preview/live-ops-frozen-city.png",link:Dt$1,title:"articleLiveOpsFrozenCity.title",description:"articleLiveOpsFrozenCity.description",formatDate:"2024-06-06",author:"articles.by_doroshenko_and_zubov",articleType:2};var _t="live-ops-monopoly-go",Lt=`/research/${_t}`,G$3={img:"/assets/angular2/img/articles/_preview/live-ops-monopoly-go.png",link:Lt,title:"articleLiveOpsMonopolyGo.title",description:"articleLiveOpsMonopolyGo.description",formatDate:"2024-05-16",author:"articles.by_baikalov_and_zubov",articleType:2};var xt="merge-games",Tt=`/research/${xt}`,w={img:"/assets/angular2/img/articles/_preview/merge-games.png",link:Tt,title:"articleMergeGames.title",description:"articleMergeGames.description",formatDate:"2022-07-22",author:"articles.by_max_and_olgs",articleType:2};var St="monopoly-go-revenue-spike",Et=`/research/${St}`,$={img:"/assets/angular2/img/articles/_preview/monopoly-go-revenue-spike.png",link:Et,title:"articleMonopolyGoRevenueSpike.title",description:"articleMonopolyGoRevenueSpike.description",formatDate:"2024-0
10017-16",articleType:2,author:"articles.by_baikalov_and_zubov"};var kt="squad-busters-revenue",Rt=`/research/${kt}`,M$2={img:"/assets/angular2/img/articles/_preview/squad-busters-revenue.png",link:Rt,title:"articleSquadBustersRevenue.title",description:"articleSquadBustersRevenue.description",formatDate:"2024-07-04",author:"articles.by_dedyukhina_and_zubov",articleType:2};var bt="casual-gaming-2024-h1",Ut=`/research/${bt}`,C$2={img:"/assets/angular2/img/articles/_preview/casual-gaming-2024h1.png",link:Ut,title:"articleCasualGaming2024h1.title",description:"articleCasualGaming2024h1.description",formatDate:"2024-08-20",articleType:2,author:"articles.by_doroshenko_and_zubov"};var Gt="advanced-research-tools",wt=`/research/${Gt}`,I={img:"/assets/angular2/img/articles/_preview/research-tools.png",link:wt,title:"How To Use App Market Research Tools To Grow Your Business",description:"In this article, I\u2019ll be looking into differences in approaches to market research between rookie and experienced mobile app analysts. We\u2019ll dig into a few methods of investigating the market and answer several questions that often baffle those who are not that research-savvy.",formatDate:"2020-05-29",author:"articles.by_max_samorukov",articleType:2};var O$3={img:"/assets/angular2/img/articles/_preview/genre_classification-f.png",link:s$7,title:"articleGenreClassification.title",description:"articleGenreClassification.text_1",formatDate:"2020-02-27",author:"articles.by_max_samorukov",articleType:3,icon:"/assets/angular2/img/articles/genre.svg",selectedIcon:"/assets/angular2/img/articles/genre-black.svg"};var $t="industry-contacts",z=`/tool-descriptions/${$t}`;var P$2={img:"/assets/angular2/img/articles/_preview/industry-contacts.png",link:z,title:"pricing.contact_information",description:"articleIndustryContacts.description",formatDate:"2024-03-14",author:"articles.by_vaganov",articleType:3};var Mt="similarity-analysis",Ct=`/tool-descriptions/${Mt}`,F$1={img:"/assets/angular2/img/articles/_preview/article_similarity.png",link:Ct,title:"articleSimilarity.title",description:"articleSimilarity.description",formatDate:"2019-07-31",author:"articles.by_dave_barton_only_br",articleType:3};var It$1="featuring",Ot=`/tool-descriptions/${It$1}`,V$2={img:"/assets/angular2/img/articles/_preview/featuring_head-f.png",link:Ot,title:"articleFeaturing.featuring_head",description:"articleFeaturing.featuring_description",formatDate:"2018-10-19",author:"articles.by_max_samorukov",articleType:3};var zt="settings-classification",Pt=`/tool-descriptions/${zt}`,H$2={img:"/assets/angular2/img/articles/_preview/settings_classification-f.png",link:Pt,title:"articleSettingsClassification.title",description:"articleSettingsClassification.text_1",formatDate:"2020-04-15",author:"articles.by_max_samorukov",articleType:3};var Ft="lessons-learned-launching-games",Vt=`/research/${Ft}`,B$2={img:"/assets/angular2/img/articles/article-lessons-learned-launching-games/01.jpg",link:Vt,title:"Not so trivial lessons learned from launching mid-core games",description:"I want to cover several lessons which I have learned last year while trying to scale a couple of mid-core games at Crazy Panda, a Russian game development company, where I work as a Chief Products Officer along with managing AppMagic. Those lessons were both unexpected and very costly.",formatDate:"2019-10-21",author:"articles.by_max_samorukov",articleType:2};var Ht="report-categories",Bt$1=`/research/${Ht}
1001`,N$3={img:"/assets/angular2/img/articles/_preview/article-report-categories-f.png",link:Bt$1,title:"AppMagic: Report On App Categories",description:"After we released our latest report on mobile game genres, we\u2019ve been often asked to do similar research into non-gaming apps. So here it is! This research studies how market shares of different categories of apps have been shifting over time and what app types perform best.",formatDate:"2020-04-27",author:"articles.by_max_samorukov",articleType:2};var Nt="appmagic-report-1",yo=`/research/${Nt}`,q$3={img:"/assets/angular2/img/articles/_preview/appmagic-report-1-f.png",link:"/research/appmagic-report-1",title:"What Genres Were Booming In 2020",description:"Here is the 4th edition of our research dedicated to game genres, looking into how market shares shift across genres and what genres perform best.This research is based on our unique manual classification of apps by genre, with over 250,000 of top-performing titles tagged as of today.",formatDate:"2021-02-03",author:"articles.by_max_samorukov",articleType:2};var qt="product-strategy",Wt=`/research/${qt}`,W$2={img:"/assets/angular2/img/articles/_preview/product-strategy-f.png",link:Wt,title:"Building Your Product Strategy Based On Market Research",description:"In this article, I will share my ideas on developing a product strategy for a mobile gaming company and on how various market research tools can help you do this job better.",formatDate:"2020-04-30",author:"articles.by_max_samorukov",articleType:2};var Kt="casual-mobile-gaming-2023",jt=`/research/${Kt}`,K$2={img:"/assets/angular2/img/articles/_preview/casual-mobile-gaming-2023.png",link:jt,title:"articleCasualGaming2023.title",description:"articleCasualGaming2023.description",formatDate:"2024-02-19",author:"articles.by_alexandra_doroshenko_only_cn",articleType:2};var Xt="casual-mobile-gaming-h1-2023",Yt=`/research/${Xt}`,j$2={img:"/assets/angular2/img/articles/_preview/casual-mobile-gaming-h1-2023.png",link:Yt,title:"articleCasualGamingH1_2023.title",description:"articleCasualGamingH1_2023.description",formatDate:"2023-07-27",author:"articles.by_vaganov",articleType:2};var Jt="mobile-gaming-in-2022",Qt=`/research/${Jt}`,X$3={img:"/assets/angular2/img/articles/_preview/mobile-gaming-2022.png",link:Qt,title:"articleMobileGames2022.title",description:"articleMobileGames2022.description",formatDate:"2023-02-22",author:"articles.by_vaganov_ahmad",articleType:2};var Zt="idle-tycoon-games-market-overview",er=`/research/${Zt}`,Y$3={img:"/assets/angular2/img/articles/_preview/idle-tycoon.png",link:er,title:"articleIdleTycoonGamesMarketOverview.title",description:"articleIdleTycoonGamesMarketOverview.description",formatDate:"2022-05-04",author:"articles.by_max_samorukov",articleType:2};var tr="report-on-genres",rr=`/research/${tr}`,J$3={img:"/assets/angular2/img/articles/_preview/report-on-genres.png",link:rr,title:"articleReportOnGenres.title",description:"articleReportOnGenres.description",formatDate:"2022-01-24",author:"articles.by_max_samorukov",articleType:2};var ir="picking-setting-2021",or=`/research/${ir}`,Q$2={img:"/assets/angular2/img/articles/_preview/picking-setting.png",link:or,title:"articlePickingSetting2021.title",description:"articlePickingSetting2021.text_2",formatDate:"2022-01-19",author:"articles.by_max_samorukov",articleType:2};var ar="evaluate-ideas",sr=`/research/${ar}`,Z$1={img:"/assets/angular2/img/articles/_preview/evaluate-ideas.png",link:sr,title:"articleEvaluateIdeas.title",description:"articleEvaluateIdeas.description",formatDate:"2021-06-28",author:"articles.by_max_samorukov",articleType:2};var lr="picking-setting-2020",cr=`/research/${lr}`,ee$2={img:"/assets/angular2/img/articles/_preview/picking-setting.png",link:cr,title:"A Statistics-Based Approach To Picking A Game Setting That Best Matches Your Chosen Genre 2020",description:"In this research, we\u2019ll figure out what mobile game settings are the most common across top performing titles, also taking into consideration genres of mobile games. This study is based on our unique manual classification of apps, with over 250,000 top performing titles tagged as of today.",formatDate:"2020-07-01",author:"articles.by_max_samorukov",articleType:2};var nr="new-four-x-strategies",pr=`/research/${nr}`,te$2={img:"/assets/angular2/img/articles/_preview/new-four-x-strategies.png",link:pr,title:"articleNewFourXStrategies.title",description:"articleNewFourXStrategies.description",formatDate:"2024-10-15",articleType:2,author:"articleNewFourXStrategies.author"};var mr="supercell-ip",Ar$1=`/research/${mr}`,re$1={img:"/assets/angular2/img/articles/_preview/supercell-ip.png",link:Ar$1,title:"articleSupercellIp.main_title",description:"articleSupercellIp.description",formatDate:"2024-11-14",author:"articles.by_baikalov_and_zubov",articleType:2};var gr="casual-gaming-2024",ur=`/research/${gr}`,ie$1={img:"/assets/angular2/img/articles/_preview/casual-gaming-2024.png",link:ur,title:"articleCasualGaming2024.title",description:"articleCasualGaming2024.description",formatDate:"2025-01-29",articleType:2,author:"articles.by_doroshenko_and_zubov"};var fr$1="original-games-with-am",hr$1=`/research/${fr$1}`,oe$1={img:"/assets/angular2/img/articles/_preview/original-games-with-am.png",link:hr$1,title:"articleOriginalGamesWithAm.title",description:"articleOriginalGamesWithAm.description",formatDate:"2025-03-12",articleType:2,author:"articles.by_doroshenko_and_zubov"};var dr="squad-busters-v2",yr$1=`/research/${dr}`,ae$2={img:"/assets/angular2/img/articles/_preview/squad-busters-v2.png",link:yr$1,title:"articleSquadBustersV2.title",description:"articleSquadBustersV2.description",formatDate:"2025-06-26",author:"articles.by_kalashnikova_and_zubov",articleType:2};var vr$1="live-ops-report-h1-2025",Dr$1=`/research/${vr$1}`,se$3={img:"/assets/angular2/img/articles/_preview/live-ops-report-h1-2025.png",link:Dr$1,title:"articleLoReportH12025.title",description:"articleLoReportH12025.description",formatDate:"2025-07-30",author:"articles.by_alina_zlotnik",articleType:2};var _r$1="casual-report-h1-2025",Lr$1=`/research/${_r$1}`,le$2={img:"/assets/angular2/img/articles/_preview/casual-report-h1-2025.png",link:Lr$1,title:"articleCasualReportH12025.title",description:"articleCasualReportH12025.description",formatDate:"2025-08-0
10017",author:"articles.by_zubov_and_kalashnikova",articleType:2};var xr$1="play-ventures",Tr$1=`/research/${xr$1}`,ce$2={img:"/assets/angular2/img/articles/_preview/play-ventures.png",link:Tr$1,title:"articlePlayVentures.title",description:"articlePlayVentures.description",formatDate:"2025-09-04",articleType:2,author:"articles.by_kalashnikova_and_beliaeva"};var Sr$1="monetization-intelligence",ne$1=`/tool-descriptions/${Sr$1}`;var pe$2={img:"/assets/angular2/img/articles/_preview/monetization-intelligence.png",link:ne$1,title:"monetizationInt.title",description:"articleMonetizationInt.description2",formatDate:"2024-05-26",author:"articles.by_zubov_and_knutova",articleType:3};var Er$1="notifications",me$2=`/tool-descriptions/${Er$1}`;var Ae$1={img:"/assets/angular2/img/articles/_preview/app-tracker.png",link:me$2,title:"articleAppTracker.title",description:"articleAppTracker.description",formatDate:"2020-07-23",author:"articles.by_max_samorukov",articleType:3};var kr$1="ip-usage-intelligence",Rr$1=`/tool-descriptions/${kr$1}`,ge$2={img:"/assets/angular2/img/articles/_preview/ip-usage-intelligence.png",link:Rr$1,title:"pricing.ip_usage_intelligence_title",description:"articleIpUsageIntelligence.description",formatDate:"2024-05-24",author:"articles.by_max_samorukov",articleType:3};var br$1="gender-split",ue$3=`/tool-descriptions/${br$1}`;var fe$2={img:"/assets/angular2/img/articles/_preview/gender-split.png",link:ue$3,title:"articleGenderSplit.title",description:"articleGenderSplit.description",formatDate:"2024-06-19",articleType:3,author:"articles.by_diana_levintova"};var Ur$1="aso-intelligence-toolkit",Gr$1=`/tool-descriptions/${Ur$1}`,he$3={img:"/assets/angular2/img/articles/_preview/aso-intelligence-toolkit.png",link:Gr$1,title:"pricing.aso_intelligence_toolset_title",description:"articleAsoIntelligenceToolkit.description",formatDate:"2024-06-23",author:"articles.by_zubov",articleType:3};var wr$1="sdk",de$3=`/tool-descriptions/${wr$1}`;var ye$2={img:"/assets/angular2/img/articles/_preview/sdk.png",link:de$3,title:"selectors.sdk_int_title",description:"selectors.sdk_int_description",formatDate:"2024-02-28",author:"articles.by_vaganov",articleType:3};var $r$1="app-page-history",ve$2=`/tool-descriptions/${$r$1}`;var Mr$1="apple-ads-intelligence",De$1=`/tool-descriptions/${Mr$1}`;var _e$1={img:"/assets/angular2/img/articles/_preview/search-ads-int.png",link:De$1,title:"pricing.search_ads_intelligence_title",description:"articleSearchAdsInt.description",formatDate:"2024-07-16",articleType:3,author:"articles.by_zubov"};var Cr$1="live-ops-adv-search",Le$1=`/tool-descriptions/${Cr$1}`;var xe$1={img:"/assets/angular2/img/articles/_preview/live-ops-adv-search.png",link:Le$1,title:"articleLiveOpsAdvSearch.title",description:"articleLiveOpsAdvSearch.description",formatDate:"2025-06-23",ignoreNewStatus:true,author:"articles.by_zubov_and_kozlov",articleType:3};var Ir$1="live-ops",Te$2=`/tool-descriptions/${Ir$1}`;var Se$2={img:"/assets/angular2/img/articles/_preview/live-ops.png",link:Te$2,title:"articleLiveOps.title",description:"articleLiveOps.description",formatDate:"2024-02-11",articleType:3,author:"articles.by_dedyukhina_and_zubov"};var Or$1="api",zr$1=`/tool-descriptions/${Or$1}`,Ee$1={img:"/assets/angular2/img/articles/_preview/api.png",link:zr$1,title:"articleApi.title",description:"articleApi.text_1",formatDate:"2024-02-14",articleType:3,author:"articles.by_vaganov"};var Pr="store-search-ranking-dashboards",ke$1=`/tool-descriptions/${Pr}`;var Re$2={img:"/assets/angular2/img/articles/_preview/store-search-ranking-dashboards.png",link:ke$1,title:"articleStoreSearchRankingDashboards.title",description:"articleStoreSearchRankingDashboards.description",formatDate:"2025-07-18",author:"articles.by_beliaeva",articleType:3};var Fr="semantic-core",be$2=`/tool-descriptions/${Fr}`;var Ue$1={img:"/assets/angular2/img/articles/_preview/semantic-core.png",link:be$2,title:"nav.aso_semantic_core_graph_title",description:"articleSemanticCore.description",formatDate:"2024-06-19",articleType:3,author:"articles.by_diana_levintova"};var Vr$1="period-compare",Ge$1=`/tool-descriptions/${Vr$1}`;var we$2={img:"/assets/angular2/img/articles/_preview/period-compare.png",link:Ge$1,title:"createScreen.period_compare_screen_name",description:"articlePeriodCompare.description",formatDate:"2025-08-12",articleType:3,author:"articles.by_kalashnikova_and_zubov"};var Hr$1="advanced-search",$e$1=`/tool-descriptions/${Hr$1}`;
1001var Me$1={img:"/assets/angular2/img/articles/_preview/advanced-search.png",link:$e$1,title:"articleAdvancedSearch.title",description:"articleAdvancedSearch.text_1",formatDate:"2022-02-23",articleType:3,author:"articles.by_max_samorukov"};var Br$1="market-segment-analysis",Ce$3=`/tool-descriptions/${Br$1}`;var Ie$1={img:"/assets/angular2/img/articles/_preview/market-segments-analysis.png",link:Ce$3,title:"articleMarketSegmentAnalysis.title",description:"articleMarketSegmentAnalysis.description",formatDate:"2022-02-01",author:"articles.by_max_samorukov",articleType:3};var Nr="success-meter",Oe$1=`/tool-descriptions/${Nr}`;var ze$1={img:"/assets/angular2/img/articles/_preview/success_meter.png",link:Oe$1,title:"successMeter.main_title",description:"articleSuccessMeter.text_1",formatDate:"2024-02-29",author:"articles.by_vaganov",articleType:3};var qr$1="ad-intelligence",Pe$1=`/tool-descriptions/${qr$1}`;var Fe$3={img:"/assets/angular2/img/articles/_preview/ad-intelligence.png",link:Pe$1,title:"articleAdIntelligence.title",description:"articleAdIntelligence.description",formatDate:"2021-05-24",author:"articles.by_max_samorukov",articleType:3};var Wr$1="app-transfers",Ve$1=`/tool-descriptions/${Wr$1}`;var He$1={img:"/assets/angular2/img/articles/_preview/article_app_transfers-f.png",link:Ve$1,title:"App Transfers",description:"This feature is designed to show how apps move between publisher accounts.You can specify a genre and store category to address the market niche of your interest.You can also specify the time period to focus more on what you need.",formatDate:"2020-06-19",author:"articles.by_max_samorukov",articleType:3};var Kr$1="similarity-graph",Be$1=`/tool-descriptions/${Kr$1}`;var Ne$2={img:"/assets/angular2/img/articles/_preview/similarity-graph-f.png",link:Be$1,title:"articleSimilarityGraph.title",description:"articleSimilarityGraph.description",formatDate:"2020-05-15",author:"articles.by_max_samorukov",articleType:3};var jr$1="soft-launches",qe$1=`/tool-descriptions/${jr$1}`;var We$1={img:"/assets/angular2/img/articles/_preview/soft-launches-f.png",link:qe$1,title:"articleSoftLaunches.title",description:"articleSoftLaunches.text_1",formatDate:"2020-05-15",author:"articles.by_max_samorukov",articleType:3};var Xr$1="live-store-rankings",Yr$1=`/tool-descriptions/${Xr$1}`,Ke$1={img:"/assets/angular2/img/articles/_preview/live-store-rankings.png",link:Yr$1,title:"articleLiveOpsRankings.title",description:"articleLiveOpsRankings.description",formatDate:"2025-09-26",author:null,articleType:3};var Jr$1="steam",je$1=`/tool-descriptions/${Jr$1}`;var Xe$1={author:null,img:"/assets/angular2/img/articles/_preview/steam.jpg",link:je$1,title:"articleSteam.title",description:"articleSteam.description",formatDate:"2025-10-08",articleType:3};var Qr$1="update-for-free-access",Ye$1=`/tool-descriptions/${Qr$1}`;var Je$1={img:"/assets/angular2/img/articles/_preview/update-for-free-access-new.png",link:Ye$1,title:"articleUpdateForFreeAccess.title",description:"articleUpdateForFreeAccess.description",formatDate:"2025-10-21",articleType:3,author:null};var Zr$1="user-behavior-metrics",Qe$1=`/tool-descriptions/${Zr$1}`;var Ze$1={img:"/assets/angular2/img/articles/_preview/retention.png",link:Qe$1,title:"articleUserBehaviorMetrics.title",description:"articleUserBehaviorMetrics.description",formatDate:"2024-04-27",articleType:3,author:"articles.by_vaganov"};var et$1={img:"/assets/angular2/img/articles/_preview/d2c-revenue.png",link:t$3,title:"articleD2CRevenue.title",description:"articleD2CRevenue.description",formatDate:"2025-12-22",articleType:3,author:null};var ei$1="4x-strategy-monetization",ti$1=`/research/${ei$1}`,tt$1={img:"/assets/angular2/img/articles/_preview/4x-strategy-monetization.png",link:ti$1,title:"article4xStrategyMonetization.title",description:"article4xStrategyMonetization.description",formatDate:"2025-10-16",author:"articles.by_kalashnikova_zlotnik_duamentes",articleType:2,isNew:true};var ri$1="monetization-report-2025",rt$1=`/research/${ri$1}`;var it$1={img:"/assets/angular2/img/articles/_preview/monetization-report-2025.png",link:rt$1,title:"articleMonetizationReport2025.title",description:"articleMonetizationReport2025.description",formatDate:"2025-11-25",author:"articles.by_alina_zlotnik",articleType:2};var ii$1="gossip-harbor-liveops",ot$2=`/research/${ii$1}`;var at$2={img:"/assets/angular2/img/articles/_preview/gossip-harbor-liveops.jpg",link:ot$2,title:"articleGossipHarborLiveOps.title",description:"articleGossipHarborLiveOps.description",formatDate:"2025-12-11",author:"articles.by_bolshman_zlotnik",articleType:2};var oi$1="steam-pricing-research",st$2=`/research/${oi$1}`;var lt$2={img:"/assets/angular2/img/articles/_preview/steam-pricing-research.png",link:st$2,title:"articleSteamPricingResearch.title",description:"articleSteamPricingResearch.description",formatDate:"2025-12-18",author:"articles.by_kalashnikova_zubov_zlotnik",articleType:2};var ai$1="liveops-report-2025",ct$2=`/research/${ai$1}`;var nt$2={img:"/assets/angular2/img/articles/_preview/liveops-report-2025.png",link:ct$2,title:"articleLiveOpsReport2025.title",description:"articleLiveOpsReport2025.description",formatDate:"2026-01-14",author:"articles.by_zlotnik_and_zelenina",articleType:2};var si$1="mobile-landscape-report-2026",li$1=`/research/${si$1}`,pt$1={img:"/assets/angular2/img/articles/_preview/mobile-landscape-report-2026.png",link:li$1,title:"articleMobileLandscapeReport2026.title",description:"articleMobileLandscapeReport2026.description",formatDate:"2026-02-05",articleType:2,author:"articles.by_zlotnik_and_zelenina"};var ci$1="casual-report-2025",mt=`/research/${ci$1}`;var At={img:"/assets/angular2/img/articles/_preview/casual-report-2025.png",link:mt,title:"articleCasualReport2025.title",description:"articleCasualReport2025.description",formatDate:"2026-02-19",author:"articles.by_zubov_and_kalashnikova",articleType:2};var gt={img:"/assets/angular2/img/articles/_preview/history.png",link:ve$2,title:"appHistory.app_page_history",description:"articleAppPageHistory.description",formatDate:"2024-06-16",articleType:3,author:"articles.by_zubov"};var ut$3=[ge$2,he$3,ye$2,gt,_e$1,pe$2,xe$1,Se$2,Ke$1,Ee$1,fe$2,Re$2,Ue$1,we$2,Ze$1,Me$1,Ie$1,ze$1,Fe$3,Ae$1,He$1,Ne$2,We$1,Xe$1,et$1,Je$1];var ft$1=[At,pt$1,nt$2,lt$2,at$2,it$1,ce$2,tt$1,le$2,se$3,ae$2,oe$1,ie$1,re$1,te$2,C$2,$,M$2,U$2,G$3,K$2,j$2,X$3,w,Y$3,J$3,Q$2,Z$1,{img:"/assets/angular2/img/articles/_preview/why-we-need-your-
1001data.png",link:"/articles/why-we-need-your-data",title:"articleWhyWeNeed.title",description:"articleWhyWeNeed.description",formatDate:"2021-05-21",author:"articles.by_max_samorukov",articleType:null},{img:"/assets/angular2/img/articles/_preview/article_permissions.png",link:"/articles/permissions",title:"articlePermissions.permissions_head",description:"articlePermissions.permissions_description",articleType:null,author:null},q$3,ee$2,I,W$2,N$3,H$2,O$3,V$2,B$2,F$1,P$2,...ut$3];var g$3=class l{constructor(r){this.http=r;}getData(r,i){let o={type:String(r)};return i&&(o.lang=i),this.http.get(C$8.baseUrl+"/api/v2/blog",{params:o})}getArticle(r,i){let o={alias:r};return i&&(o.lang=i),this.http.get(C$8.baseUrl+"/api/v2/blog/article",{params:o})}static{this.\u0275fac=function(i){return new(i||l)(me$b(Ue$7))};}static{this.\u0275prov=G$f({token:l,factory:l.\u0275fac,providedIn:"root"});}};var ht$1={1:e$l.Blog,2:e$l.Research,3:e$l.ToolDescriptions,4:e$l.ReleaseNotes};var s$6=class l{static getCombinedKey(r,i){return typeof r=="string"?`${r}-${i}`:`${r.alias}-${r.lang}`}static updateMap(r,i){for(let o of i){let a=l.getCombinedKey(o);r.set(a,o);}}static getViewArticles(r){return r.data.map(i=>l.getViewArticle(i))}static getViewArticle(r){let i=ht$1[r.article_type]??e$l.Blog;return {img:r.preview_image,alias:r.alias,link:`${i}/${r.alias}`,group:r.group,title:r.title,description:r.description,formatDate:kt$3.format(kt$3.getDate(r.publish_date)),author:r.author??"",content:r.content,lang:r.lang??"en",articleType:r.article_type}}};var dt$1=class l{constructor(){this.articlesBlog=new rr$4([]);this.articlesResearch=new rr$4([]);this.articlesToolDescriptions=new rr$4([]);this.articlesReleaseNotes=new rr$4([]);this.allArticlesMap=new Map;this.loading=new rr$4(false);this.blogCache=new Map;this.researchCache=new Map;this.toolDescriptionsCache=new Map;this.releaseNotesCache=new Map;this.loadedLangs=new Set;this.articlesListResource=D$l(g$3);this.langService=D$l(v$7);this.staticResearchItems=ft$1.filter(r=>r.articleType===2);this.loadData(),ef$2(()=>{this.langService.langSignal(),this.loading.getValue()||this.loadData();});}loadData(){let r=this.langService.getLangValue();if(this.loadedLangs.has(r.id)){this.articlesBlog.next(this.blogCache.get(r.id)),this.articlesResearch.next(this.researchCache.get(r.id)),this.articlesToolDescriptions.next(this.toolDescriptionsCache.get(r.id)),this.articlesReleaseNotes.next(this.releaseNotesCache.get(r.id));return}this.loading.next(true),this.subscription&&this.subscription.unsubscribe(),this.subscription=Wm$2({blog:this.articlesListResource.getData(1,r.id),research:this.articlesListResource.getData(2,r.id),toolDescriptions:this.articlesListResource.getData(3,r.id),releaseNotes:this.articlesListResource.getData(4,r.id)}).subscribe({next:({blog:i,research:o,toolDescriptions:a,releaseNotes:n})=>{let yt=[...i.data,...o.data,...a.data,...n.data];s$6.updateMap(this.allArticlesMap,yt),this.loadedLangs.add(r.id);let h=s$6.getViewArticles(i),d=this.getResearchArticles(s$6.getViewArticles(o)),y=s$6.getViewArticles(a),v=s$6.getViewArticles(n);this.blogCache.set(r.id,h),this.researchCache.set(r.id,d),this.toolDescriptionsCache.set(r.id,y),this.releaseNotesCache.set(r.id,v),this.articlesBlog.next(h),this.articlesResearch.next(d),this.articlesToolDescriptions.next(y),this.articlesReleaseNotes.next(v),this.loading.next(false);},error:()=>this.loading.next(false)});}getResearchArticles(r){let i=new Map;for(let o of [...r,...this.staticResearchItems])i.set(o.link,o);return Array.from(i.values()).sort((o,a)=>kt$3.unix(a.formatDate)-kt$3.unix(o.formatDate))}getArticle(r,i){let o=s$6.getCombinedKey(r,i),a=this.allArticlesMap.get(o);return a?Ms$2(s$6.getViewArticle(a)):this.articlesListResource.getArticle(r).pipe(Lu$2(n=>s$6.updateMap(this.allArticlesMap,n.data)),ge$9(()=>{let n=this.allArticlesMap.get(s$6.getCombinedKey(r,i))??this.allArticlesMap.get(s$6.getCombinedKey(r,"en"));return s$6.getViewArticle(n)}))}static{this.\u0275fac=function(i){return new(i||l)};}static{this.\u0275prov=G$f({token:l,factory:l.\u0275fac,providedIn:"root"});}};var y=class a{constructor(e,r){this.localStorageService=e;this.articlesService=r;this.newArticles=qm$2([this.articlesService.articlesBlog,this.articlesService.articlesResearch,this.articlesService.articlesToolDescriptions]).pipe(ge$9(([i,o,s])=>a.getNewArticles(i,[...o,...ft$1.filter(t=>t.articleType===3),...s],kt$3.now())));}static{this.ViewedNewStoreKey="viewedNew";}static{this.ArticleConsideredAsNewDays=7;}static getNewArticles(e,r,i){let o=r.filter(t=>t.formatDate&&!t.ignoreNewStatus&&a.isNewArticle(t.formatDate,i)),s=e.filter(t=>a.isNewArticle(t.formatDate,i));return {blog:s.map(t=>t.alias),research:o.filter(t=>t.articleType===2).map(t=>
1001t.link.split("/").slice(-1)[0]),"tool-descriptions":o.filter(t=>t.articleType===3).map(t=>t.link.split("/").slice(-1)[0]),"release-notes":[]}}static getCombineViewedWithGroup(e,r,i,o){let s=new Set;e.forEach(c=>s.add(c));let t=[];return a.forEachByEveryNavItem(r,c=>{let l=c.value;["blog","tool-descriptions","research"].includes(l)&&i[l].forEach(A=>t.push(A)),c.newFeatureType&&o(c.newFeatureType)&&t.push(c.newFeatureType);}),t.forEach(c=>s.add(c)),Array.from(s)}static isNewArticle(e,r){return !!e&&kt$3.diff(r,e,"d")<a.ArticleConsideredAsNewDays}static isNavItemNew(e,r,i){return e.value?!!r[e.value]?.length:i(e.newFeatureType)}static forEachByEveryNavItem(e,r){e.forEach(i=>{i.forEach(o=>{let s=[];o.childrenGroups&&o.childrenGroups.forEach(t=>t.children.forEach(c=>s.push(c))),o.children&&o.children.forEach(t=>s.push(t)),s.forEach(t=>r(t));});});}static getNavGroupWithIsNew(e,r){let i=Hp$1(e);return a.forEachByEveryNavItem(i,o=>o.isNew=r(o)),i}static isNavItemWithNotViewedNew(e,r,i){return e.isNew?e.value?!!r[e.value].find(s=>!i.includes(s)):!e.newFeatureType||e.newFeatureType&&!i.includes(e.newFeatureType):false}static getNavGroupWithViewedNew(e,r,i){let o=Hp$1(e);return o.forEach(s=>{s.forEach(t=>{let c=[];a.forEachByEveryNavItem([[t]],l=>{c.push(a.isNavItemWithNotViewedNew(l,r,i));}),t.hasNotViewedNew=c.find(l=>l);});}),o}static getNavGroupWithIsNewAndViewedNew(e,r,i,o){let s=a.getNavGroupWithIsNew(e,t=>a.isNavItemNew(t,r,o));return a.getNavGroupWithViewedNew(s,r,i)}static getArticlesWithIsNew(e,r){return e.map(i=>{let o=i.link.split("/").slice(-1)[0];return E$9(D$m({},i),{isNew:r.includes(o)})})}getViewedNew(){return this.localStorageService.get(a.ViewedNewStoreKey)||[]}isFeatureViewed(e){return this.getViewedNew().includes(e)}setViewedFeature(e){if(this.isFeatureViewed(e))return;let r=[...this.getViewedNew(),e];this.localStorageService.set(a.ViewedNewStoreKey,r);}updatedViewedNewFromNavGroups(e){return this.newArticles.pipe(Mu$2(),ge$9(r=>{let i=this.getViewedNew(),o=a.getCombineViewedWithGroup(i,e,r,s=>i$9.isNewFeature(s));return this.localStorageService.set(a.ViewedNewStoreKey,o),o}))}getNavGroupWithIsNewAndViewedNew(e,r,i){return a.getNavGroupWithIsNewAndViewedNew(e,r,i,o=>i$9.isNewFeature(o))}static{this.\u0275fac=function(r){return new(r||a)(me$b(xt$5),me$b(dt$1))};}static{this.\u0275prov=G$f({token:a,factory:a.\u0275fac,providedIn:"root"});}};var o$6=class e{constructor(t){this.http=t;}get(t){let r=new s$m({fromObject:n$b(t)});return this.http.get(C$8.baseUrl+"/api/v2/search",{params:r})}static{this.\u0275fac=function(r){return new(r||e)(me$b(Ue$7))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};
1001var l$3=class r{constructor(t,e){this.element=t;this.renderer=e;this.hiddenContentElement=VV();this.hiddenContentPadding=VV();this.touchMoveDisable=VV();this.start=null;this.transformX=0;this.subscription=new W$f;}ngOnInit(){this.subscription.add(Ns$2(document,"touchstart").subscribe(t=>{let e=this.hiddenContentElement().contains(t.target);!this.element.nativeElement.contains(t.target)&&this.start&&!e&&this.renderer.setStyle(this.element.nativeElement,"transform","translate(0, 0)");})),this.subscription.add(Ns$2(this.element.nativeElement,"touchstart").subscribe(t=>{this.renderer.setStyle(this.element.nativeElement,"transition",null),this.start=t.touches[0].clientX,this.transformX=0;})),this.subscription.add(Ns$2(this.element.nativeElement,"touchmove").subscribe(t=>{if(this.touchMoveDisable())return;let e=this.start-t.touches[0].clientX;if(e<0)return;let n=this.hiddenContentElement().clientWidth+this.hiddenContentPadding();this.transformX<n&&(this.transformX=e,this.renderer.setStyle(this.element.nativeElement,"transform",`translate(${-this.transformX}px, 0)`));})),this.subscription.add(Ns$2(this.element.nativeElement,"touchend").subscribe(()=>{this.renderer.setStyle(this.element.nativeElement,"transition",".2s transform");let t=this.hiddenContentElement().clientWidth+this.hiddenContentPadding(),e=this.transformX>t/2?-t:0;this.renderer.setStyle(this.element.nativeElement,"transform",`translate(${e}px, 0)`),e===0?this.renderer.removeClass(this.element.nativeElement,"active"):this.renderer.addClass(this.element.nativeElement,"active");}));}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(e){return new(e||r)(Jr$4(Gr$4),Jr$4(fD))};}static{this.\u0275dir=dw({type:r,selectors:[["","touchMove",""]],inputs:{hiddenContentElement:[1,"hiddenContentElement"],hiddenContentPadding:[1,"hiddenContentPadding"],touchMoveDisable:[1,"touchMoveDisable"]}});}};var X$2=["*"],R$4=class r{constructor(){this.btnIndentRight=VV(0);this.btnPadding=VV(16);this.btnText=VV("appPage.view_as_graph");this.rowMargin=VV(8);this.hiddenContentPadding=VV(28);this.disable=VV();this.disableSwipe=VV();this.selected=VV(false);this.clickAction=jV();}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275cmp=sw({type:r,selectors:[["selector-row-action-wrap"]],inputs:{btnIndentRight:[1,"btnIndentRight"],btnPadding:[1,"btnPadding"],btnText:[1,"btnText"],rowMargin:[1,"rowMargin"],hiddenContentPadding:[1,"hiddenContentPadding"],disable:[1,"disable"],disableSwipe:[1,"disableSwipe"],selected:[1,"selected"]},outputs:{clickAction:"clickAction"},ngContentSelectors:X$2,decls:7,vars:17,consts:[["appBtn",""],["touchMove","",1,"wrap",3,"hiddenContentElement","hiddenContentPadding","touchMoveDisable"],[1,"dash-btn-wrap",3,"hidden"],[1,"btn","btn-dash",3,"click","mouseenter"]],template:function(e,n){if(e&1){let d=DT();AT(),Zi$3(0,"div",1),RT(1),kl$2(),Zi$3(2,"div",2)(3,"div",3,0),_g$1("click",function(o){return Rd$2(d),o.stopImmediatePropagation(),o.preventDefault(),kd$2(n.clickAction.emit())})("mouseenter",function(o){return Rd$2(d),o.stopImmediatePropagation(),kd$2(o.preventDefault())}),ib(5),bb(6,"translate"),kl$2()();}if(e&2){let d=FT(4);Lg$1("--row-margin",n.rowMargin(),"px"),Pg$1("selected",n.selected()),Ig$1("hiddenContentElement",d)("hiddenContentPadding",n.hiddenContentPadding())("touchMoveDisable",n.disable()||n.disableSwipe()),AE(2),Lg$1("right",n.btnIndentRight(),"px")("--btn-padding",n.btnPadding(),"px"),Ig$1("hidden",n.disable()),AE(),Pg$1("selected",n.selected()),AE(2),jl$2(" ",_b(6,15,n.btnText())," ");}},dependencies:[fe$8,l$3,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1001--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{width:100%;display:flex;align-items:center;position:relative}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]{background:transparent}[_nghost-%COMP%]:hover   .dash-btn-wrap[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;background:var(--white);max-width:100%;width:100%;margin:0;padding:0 8px;border-radius:0;z-index:2}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{margin:0 var(--row-margin);max-width:calc(100% - var(--row-margin) * 2);padding:0;z-index:0;border-radius:8px}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]:hover{background-color:var(--grey-30)}}[_nghost-%COMP%]   .wrap.selected[_ngcontent-%COMP%]{background-color:var(--selected);border-radius:8px}@media(max-width:1279px){[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{padding:0}}[_nghost-%COMP%]   .dash-btn-wrap[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:flex-end;cursor:pointer;width:100%;padding:0 var(--btn-padding);inset:0;height:100%;z-index:0;border-top:2px solid var(--white);border-bottom:2px solid var(--white);background:var(--yellow-50);overflow:hidden}@media(max-width:576px){[_nghost-%COMP%]   .dash-btn-wrap[_ngcontent-%COMP%]{height:100%;top:0;bottom:0}}@media(max-width:1279px){[_nghost-%COMP%]   .dash-btn-wrap[_ngcontent-%COMP%]{border-radius:8px}}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .dash-btn-wrap[_ngcontent-%COMP%]{border-top:2px solid transparent;border-bottom:2px solid transparent;top:50%;transform:translateY(-50%);height:33px;z-index:1;min-width:0;width:auto;left:auto;background:transparent;display:none}}[_nghost-%COMP%]   .btn-dash[_ngcontent-%COMP%]{background:var(--static-white);border-radius:8px;padding:6px 16px;font-weight:500;font-size:14px;line-height:16px;text-transform:uppercase;display:flex;align-items:center}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .btn-dash[_ngcontent-%COMP%]:hover{background:var(--yellow-50)}}"]});}};var m$4=class r{static getShort(t){if(t<1e3)return t.toLocaleString();if(t<1e6){let i=t/1e3;return `${r.fmt(i,0)}K`}if(t<1e8){let i=t/1e6;return `${r.fmt(i,1)}M`}if(t<1e9){let i=t/1e6;return `${r.fmt(i,0)}M`}let n=t/1e9;return `${r.fmt(n,1)}B`}static fmt(t,n){return t.toLocaleString(void 0,{maximumFractionDigits:n,useGrouping:false})}transform(t,n="$",i=""){return `${n}${r.getShort(t)}${i}`}static{this.\u0275fac=function(n){return new(n||r)};}static{this.\u0275pipe=fw({name:"shortNumber",type:r,pure:true});}};var i$3=(s=>(s.appSearchRanking="app_search_ranking",s.semanticCore="similarity_aso",s.appHistory="app_page_history",s.successMeter="success_meter",s.liveOps="live_ops",s.liveOpsAdvSearch="live_ops_adv_search",s.similarityGraph="similarity_graph",s.notifications="app_tracker",s.softLaunches="soft_launches",s.tagDashboards="tag_dashboards",s.searchAdsInt="search_ads_intelligence",s.sdks="sdks",s.adInt="ad_int",s.adIntDashboards="ad_int_dashboards",s.adIntImpressions="ad_int_impressions",s.dauMau="dau_mau",s.apiAccess="api_access",s.contactInformation="contact_information",s.appTransfers="app_transfers",s.advancedSearch="advanced_search",s.userBehaviorMetrics="user_behavior_metrics",s.tagsIp="ip_tags",s.monetizationInt="monetization_int",s.adSpend="ad_spend",s.downloadsSource="downloads_source",s.webShops="web_shops",s.genderBalance="gender_balance",s.steam="steam",s.steamMetrics="steamMetrics",s.steamRetention="steamRetention",s.steamUserActivity="steamUserActivity",s.steamUserAcquisition="steam_user_acquisition",s.xbox="xbox",s.playstation="playstation",s.periodComparison="period_comparison",s.csvExport="csv_export",s.webShopRevenue="web_shop_revenue",s.inAppPurchaseDistribution="revenue_distribution",s.audienceOverlap="audience_overlap",s.featureLibrary="feature_library",s))(i$3||{});var h$2=[{name:"Royal Match",icon:"https://images.appmagic.rocks/?uri=https://play-lh.googleusercontent.com/qBdVfwRCsI4KM7qewhJ0AKZKQjyD-DdxPDcdDbsRMhNO9zrwbefggn1vGqRIDZA3fg",noPremText:"root.need_became_premium_view_app_comparison"},{name:"Gossip Harbor",icon:"https://images.appmagic.rocks/?uri=https://is1-ssl.mzstatic.
1001com/image/thumb/PurpleSource221/v4/bb/7f/20/bb7f2027-f6d6-48ae-efa8-2e41bf17b05d/Placeholder.mill/0x514h.jpg"}];var g$2=class t{constructor(){this.warningModal=D$l(W$5);this.screensService=D$l(w$1);this.userService=D$l(ve$6);this.router=D$l(F$4);}open(r,e,o=true){if(this.userService.isGuest()){this.openLogin(e,o);return}if(this.userService.isPremium()){this.screensService.goToScreen("custom",e,o);return}this.warningModal.open(r,null,null,void 0,h$2).pipe(Mu$2(),Tn$3(n=>n)).subscribe(()=>this.goToScreen(e,o));}goToScreen(r,e){let o=this.userService.isPremium()?r:E$9(D$m({},r),{publisherStoreIds:[],appStoreIds:[],apps:[]});this.screensService.goToScreen("custom",o,e);}openLogin(r,e){let o=r$3.getUrlByType("custom"),n=this.router.createUrlTree([o$8],{queryParams:{stateTo:o}});this.screensService.openUrlWithScreenParams(n,r,e);}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275prov=G$f({token:t,factory:t.\u0275fac,providedIn:"root"});}};
1002var e=class{static{this.openAppPageLink="go_to_app_page";}static{this.openPubPageLink="go_to_publisher_screen";}};var t$2=(n=>(n.apps="apps",n.creatives="creatives",n.publishers="publishers",n.keywords="keywords",n.offers="offers",n))(t$2||{});var s$5="monetization-intelligence",i$2="/monetization-intelligence";var n$1=class n{static getDiffDays(e,t){let u=kt$3.diff(t,e,"h"),f=Math.round(u/24);return f>0?f:1}static getDoubtfulness(e,t){if(t===0)return "no";let u=e/t;return u===0||u>=1e3?"no":u<1e3&&u>=333?"middle":u<333&&u>0?"high":"no"}static getLtvDoubtfulness(e){let t="no",u=kt$3.add(kt$3.getDate(e),3,"M");return e&&kt$3.isAfter(u,kt$3.now())&&(t="high"),e&&e===R$9&&(t="middle"),t}static getCarpuDoubtfulness(e,t){return e==="high"||t==="high"?"high":e==="middle"||t==="middle"?"middle":"no"}};var o$5=30,f$4=class n{constructor(e){this.userService=e;}transform(e,t={}){return !this.userService.isPremium()||t.disabled?null:e?t.minDate?n$1.getLtvDoubtfulness(t.minDate):n$1.getDoubtfulness(e,n.getDiffDays(t)):"no"}static getDiffDays(e){return e.start!==void 0&&e.end!==void 0?n$1.getDiffDays(e.start,e.end):e.days??o$5}static{this.\u0275fac=function(t){return new(t||n)(Jr$4(ve$6,16))};}static{this.\u0275pipe=fw({name:"doubtfulness",type:n,pure:true});}};var s$4=class o{constructor(){this.showClickText=true;}ngAfterViewInit(){this.popper.update();}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["doubtful-tooltip"]],inputs:{text:"text",popper:"popper",showClickText:"showClickText"},decls:6,vars:7,consts:[[1,"popper-tooltip"],[1,"text",3,"customInnerHtml"],["data-popper-arrow",""]],template:function(t,p){t&1&&(Zi$3(0,"div",0),Eg$1(1,"div",1),bb(2,"translate"),bb(3,"translate"),bb(4,"translate"),kl$2(),Eg$1(5,"div",2)),t&2&&(AE(),Ig$1("customInnerHtml",p.showClickText?_b(2,1,p.text)+" "+_b(3,3,"appPopup.featuring_tooltip"):_b(4,5,p.text)));},dependencies:[fe$8,r$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1002--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{pointer-events:none;height:auto}[_nghost-%COMP%]   .popper-tooltip[_ngcontent-%COMP%]{border-radius:var(--app-info-border-radius);background-color:var(--tooltip-bg);color:var(--tooltip-text)}[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{position:relative;font-size:14px;line-height:20px;padding:8px 12px;max-width:367px;width:100%}"]});}};var _="/research/essentials-new";var O$2=class o{constructor(){this.doubtfulType=VV(null,{alias:"doubtfulnessTooltip"});this.doubtfulDisable=VV(false);this.metric=VV();this.showClickText=true;this.isVisible=fi$4(false);this.element=D$l(Gr$4);this.analyticsService=D$l(L$3);this.userService=D$l(ve$6);this.router=D$l(F$4);this.amTooltipService=D$l(w$7);this.visibleObserverService=D$l(a$d);this.destroyRef=D$l(st$b);this.metricArticleUrlMap=new Map([["web_shop_revenue",t$3]]);ef$2(()=>{this.isVisible()&&this.doubtfulType()&&(this.spanElement?.remove(),this.doubtfulType()!=="no"&&this.appendSpanElement());});}ngOnInit(){this.visibleObserverService.add(this.element.nativeElement,()=>{this.isVisible.set(true),this.createTooltip();},this.destroyRef);}createTooltip(){this.amTooltip=this.amTooltipService.getTooltip(this.element,s$4,{popper:{placement:"top",middleware:[ut$8({fallbackPlacements:["top","left","bottom","right"],padding:{top:8,left:16,bottom:8,right:16}})]},analyticsEvent:"doubtfulness_open_tooltip",analyticsEventValues:[this.doubtfulType()]}),this.amTooltip.onElementHover.pipe(U$a(this.destroyRef),Tn$3(()=>!!this.text&&this.allowShowDoubtful())).subscribe(e=>{this.amTooltip.open(),this.amTooltip.instance.text=this.text,this.amTooltip.instance.showClickText=this.showClickText;}),Ns$2(this.element.nativeElement,"click").pipe(U$a(this.destroyRef)).subscribe(e=>{if(this.allowShowDoubtful()){e.stopPropagation(),this.analyticsService.send("doubtfulness_open_article");let t=this.getArticleUrl();window.open(t,"_blank");}});}textTooltip(){return this.doubtfulType()==="high"?"appPopup.inaccurate_number":"appPopup.doubtful_number"}allowShowDoubtful(){let e=this.doubtfulType();return this.userService.isPremium()&&!this.doubtfulDisable()&&!!e&&e!=="no"}appendSpanElement(){this.element.nativeElement.style.cursor="pointer",this.text=this.textTooltip(),this.spanElement=document.createElement("span"),this.spanElement.innerText="\u2248  ",this.spanElement.className=this.doubtfulType()==="high"?"text-red font-size-14":"text-black font-size-14",this.element.nativeElement.insertAdjacentElement("afterbegin",this.spanElement);}getArticleUrl(){let e=this.metric();return (e?this.metricArticleUrlMap.get(e):null)||_}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275dir=dw({type:o,selectors:[["","doubtfulnessTooltip",""]],inputs:{doubtfulType:[1,"doubtfulnessTooltip","doubtfulType"],doubtfulDisable:[1,"doubtfulDisable"],metric:[1,"metric"]}});}};var o$4=(n=>(n.retention_1="retention_1",n.retention_7="retention_7",n.retention_14="retention_14",n.retention_30="retention_30",n.retention_60="retention_60",n.retention_90="retention_90",n.retention_180="retention_180",n.retention_360="retention_360",n))(o$4||{});var r=(e=>(e.Dau="dau",e.Wau="wau",e.Mau="mau",e.ArpDau="arp_dau",e))(r||{}),h$1=Object.values(r),l$2=["dau","mau","arp_dau"];var p$2=(s=>(s.avgSessionLength="weight_avg_session_length",s.avgSessionTimes="weight_avg_session_times",s))(p$2||{});var i$1=(a=>(a.AdSpend="ad_spend",a))(i$1||{});var t$1=(e=>(e.PaidDownloads="paid_downloads",e.OrganicDownloads="organic_downloads",e.SharePaid="share_paid",e.ShareOrganic="share_organic",e))(t$1||{});var u$1=(a=>(a.avgPlaytimeHours="avg_playtime_hours",a))(u$1||{});var v$2=(_=>(_.activeWishlists="active_wishlists",_.convertedWishlists="converted_wishlists",_.newWishlists="new_wishlists",_))(v$2||{});var m$3=(s=>(s.peakViewers="peak_viewers",s.uniqStreamers="uniq_streamers",s))(m$3||{});var d$5=(s=>(s.peakViewers="yt_peak_viewers",s.uniqStreamers="yt_uniq_streamers",s))(d$5||{});var g$1=(a=>(a.views="yt_views",a))(g$1||{});var o$3=class t{constructor(l,i){this.elementRef=l;this.analyticsService=i;Ns$2(this.elementRef.nativeElement,"keydown").pipe(wu$2(500)).subscribe(u=>{let n=u.target;if(n.value){let r=[n.value];this.eventValue&&r.unshift(this.eventValue),this.eventName&&this.analyticsService.send(this.eventName,r);}});}static{this.\u0275fac=function(i){return new(i||t)(Jr$4(Gr$4),Jr$4(L$3))};}static{this.\u0275dir=dw({type:t,selectors:[["","inputAnalyticEvent",""]],inputs:{eventName:[0,"inputAnalyticEvent","eventName"],eventValue:"eventValue"}});}};var de$2=["*"];function he$2(o,a){if(o&1){let t=DT();Ol$2(0,"div",1)(1,"div",2),ib(2),Ll$2(),Ol$2(3,"div",3),Mg$1("click",function(){Rd$2(t);let p=NT();return kd$2(p.close.emit())}),Ll$2(),Dg$1(4,"div",4),Ll$2();}if(o&2){let t=NT();QT("warning--"+t.position()),AE(2),jl$2(" ",t.message()," ");}}var f$3=class o{constructor(){this.show=VV(false);this.position=VV("auto");this.message=VV("");this.close=jV();}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["tooltip-warning"]],inputs:{show:[1,"show"],position:[1,"position"],message:[1,"message"]},outputs:{close:"close"},ngContentSelectors:de$2,decls:2,vars:1,consts:[[1,"tooltip-warning",3,"class"],[1,"tooltip-warning"],[1,"text","d-inline-block","text-left","word-wrap"],[1,"g-icon-close-16-white","icon-close",3,"click"],["data-popper-arrow",""]],template:function(t,e){t&1&&(AT(),RT(0),uT(1,he$2,5,3,"div",0)),t&2&&(AE(),dT(e.show()?1:-1));},styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1002--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;width:100%}[_nghost-%COMP%]   .tooltip-warning[_ngcontent-%COMP%]{position:absolute;width:100%;max-width:165px;padding:8px 12px;border-radius:var(--app-info-border-radius);background-color:var(--tooltip-bg);color:var(--tooltip-text);z-index:10}[_nghost-%COMP%]   .tooltip-warning[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{max-width:120px}[_nghost-%COMP%]   .tooltip-warning[_ngcontent-%COMP%]   .icon-close[_ngcontent-%COMP%]{top:8px;right:8px}[_nghost-%COMP%]   .tooltip-warning[_ngcontent-%COMP%]   [data-popper-arrow][_ngcontent-%COMP%]{position:absolute}[_nghost-%COMP%]   .tooltip-warning.warning--right[_ngcontent-%COMP%]{top:50%;left:100%;transform:translate(14px,-50%)}[_nghost-%COMP%]   .tooltip-warning.warning--right[_ngcontent-%COMP%]   [data-popper-arrow][_ngcontent-%COMP%]{left:-17px;top:50%;transform:translateY(-50%) rotate(-90deg)}[_nghost-%COMP%]   .tooltip-warning.warning--bottom[_ngcontent-%COMP%]{top:100%;left:50%;transform:translate(-50%,14px)}[_nghost-%COMP%]   .tooltip-warning.warning--bottom[_ngcontent-%COMP%]   [data-popper-arrow][_ngcontent-%COMP%]{top:-13px;left:50%;transform:translate(-50%) rotate(0)}[_nghost-%COMP%]   .tooltip-warning.warning--auto[_ngcontent-%COMP%]{top:50%;left:100%;transform:translate(14px,-50%)}[_nghost-%COMP%]   .tooltip-warning.warning--auto[_ngcontent-%COMP%]   [data-popper-arrow][_ngcontent-%COMP%]{left:-17px;top:50%;transform:translateY(-50%) rotate(-90deg)}@media(max-width:767px){[_nghost-%COMP%]   .tooltip-warning.warning--auto[_ngcontent-%COMP%]{top:100%;left:50%;transform:translate(-50%,14px)}[_nghost-%COMP%]   .tooltip-warning.warning--auto[_ngcontent-%COMP%]   [data-popper-arrow][_ngcontent-%COMP%]{top:-13px;left:50%;transform:translate(-50%) rotate(0)}}"]});}};var ue$2=["input"],be$1=o=>({count:o});function Ce$2(o,a){o&1&&Eg$1(0,"div",1);}function Fe$2(o,a){o&1&&(Zi$3(0,"div",2),Eg$1(1,"spinner",7),kl$2()),o&2&&(AE(),Ig$1("diameter",14));}function ve$1(o,a){if(o&1&&(Zi$3(0,"div",5),ib(1),bb(2,"translate"),kl$2()),o&2){let t=NT();AE(),Ug$1(_b(2,1,t.invalidText()));}}function we$1(o,a){if(o&1){let t=DT();Zi$3(0,"div",8),_g$1("click",function(){Rd$2(t);let p=NT();return kd$2(p.handleClearClick())}),kl$2();}if(o&2){let t=NT();Pg$1("small-icon",t.useSmallClearImg());}}var se$2=class o{constructor(){this.search=VV("");this.isInvalidValue=VV(false);this.invalidText=VV("");this.showErrorMessageInPlaceholder=VV(false);this.eventValue=VV(null);this.maxlength=VV(255);this.showMaxLengthWarning=VV(false);this.maxLengthWarningPosition=VV("auto");this.shake=VV(false);this.inputDebounce=VV(300);this.analyticEvent=VV("");this.placeholder=VV("");this.searchIconShow=VV(true);this.enableFocus=VV(true);this.useSmallClearImg=VV(false);this.loadIconShow=VV(false);this.lock=VV(false);this.changeSearch=jV();this.inputElement=BV("input");this.destroyRef=D$l(st$b);this.tempSearch=Vb(()=>this.search());this.regex=new RegExp("\\s+","g");this.isMaxLengthWarningVisible=Vb({source:()=>this.tempSearch(),computation:a=>this.showMaxLengthWarning()&&a?.length>=this.maxlength()});this.viewPlaceholder=Pb(()=>this.showErrorMessageInPlaceholder()&&this.isInvalidValue()?this.invalidText():this.placeholder());F$9(this.tempSearch).pipe(Nu$2(1),Tu$2(),wu$2(this.inputDebounce()),Tn$3(a=>this.search()!==a),U$a(this.destroyRef)).subscribe(a=>this.changeSearch.emit(a));}handleClearClick(){this.lock()||(this.changeSearch.emit(""),this.inputElement()?.nativeElement.focus());}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["selector-search"]],viewQuery:function(t,e){t&1&&Rg$1(e.inputElement,ue$2,5),t&2&&PT();},inputs:{search:[1,"search"],isInvalidValue:[1,"isInvalidValue"],invalidText:[1,"invalidText"],showErrorMessageInPlaceholder:[1,"showErrorMessageInPlaceholder"],eventValue:[1,"eventValue"],maxlength:[1,"maxlength"],showMaxLengthWarning:[1,"showMaxLengthWarning"],maxLengthWarningPosition:[1,"maxLengthWarningPosition"],shake:[1,"shake"],inputDebounce:[1,"inputDebounce"],analyticEvent:[1,"analyticEvent"],placeholder:[1,"placeholder"],searchIconShow:[1,"searchIconShow"],enableFocus:[1,"enableFocus"],useSmallClearImg:[1,"useSmallClearImg"],loadIconShow:[1,"loadIconShow"],lock:[1,"lock"]},outputs:{changeSearch:"changeSearch"},decls:9,vars:31,consts:[["input",""],[1,"g-search-icon-16"],[1,"spinner-container"],[3,"close","show","position","message"],["data-testid","selector-search","autocomplete","off","name","selector_input","type","text",1,"g-search-input",3,"input","desktop-focus","maxlength","disabled","ngModel","eventValue","inputAnalyticEvent"],[1,"g-search-input-error"],["data-testid","selector-search-clear",1,"g-clear-search-icon",3,"small-icon"],[3,"diameter"],["data-testid","selector-search-clear",1,"g-clear-search-icon",3,"click"]],template:function(t,e){t&1&&(uT(0,Ce$2,1,0,"div",1),uT(1,Fe$2,2,1,"div",2),Zi$3(2,"tooltip-warning",3),bb(3,"translate"),_g$1("close",function(){return e.isMaxLengthWarningVisible.set(false)}),Zi$3(4,"input",4,0),bb(6,"translate"),_g$1("input",function(ge){return e.tempSearch.set(ge.target.value.replace(e.regex," "))}),kl$2(),vD(),kl$2(),uT(7,ve$1,3,3,"div",5),uT(8,we$1,1,2,"div",6)),t&2&&(dT(e.searchIconShow()?0:-1),AE(),dT(e.loadIconShow()?1:-1),AE(),Ig$1("show",e.isMaxLengthWarningVisible())("position",e.maxLengthWarningPosition())("message",Mb(3,24,"search.max_length",Ib(29,be$1,e.maxlength()))),AE(2),Pg$1("shake",e.shake()
1002)("error-placeholder",e.showErrorMessageInPlaceholder()&&e.isInvalidValue())("g-search-icon-with-icon",e.searchIconShow()||e.loadIconShow())("g-search-input-with-clear",e.search())("warning",e.isMaxLengthWarningVisible()),Ig$1("desktop-focus",e.enableFocus())("maxlength",e.maxlength())("disabled",e.lock())("ngModel",e.tempSearch())("eventValue",e.eventValue())("inputAnalyticEvent",e.analyticEvent()),vg$1("placeholder",_b(6,27,e.viewPlaceholder())),ED(),AE(3),dT(e.isInvalidValue()&&!e.showErrorMessageInPlaceholder()?7:-1),AE(),dT(e.search()?8:-1));},dependencies:[Sn$1,We$3,bn$1,It$3,zt$2,Ie$2,o$3,fe$8,b$5,f$3,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1002--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;min-height:32px;width:auto;position:relative}[_nghost-%COMP%]   .shake[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_shake .3s;animation-iteration-count:1}@keyframes _ngcontent-%COMP%_shake{0%{transform:translate(1px,1px) rotate(0)}20%{transform:translate(-1px,-2px) rotate(-1deg)}40%{transform:translate(-3px) rotate(1deg)}60%{transform:translate(3px,2px) rotate(0)}80%{transform:translate(1px,-1px) rotate(1deg)}to{transform:translate(-1px,2px) rotate(-1deg)}}[_nghost-%COMP%]   .small-icon[_ngcontent-%COMP%]{width:16px;height:16px}[_nghost-%COMP%]   .spinner-container[_ngcontent-%COMP%]{position:absolute;left:10px;min-width:16px;display:flex;align-items:center;justify-content:center}"]});}};var ce$1=["games","apps"];var x=class e{static{this.GROUPS=[{groupTitle:null,needGroupSeparator:false,types:["domain"]},{groupTitle:null,needGroupSeparator:false,types:["meta"]},{groupTitle:null,needGroupSeparator:false,types:["games","apps","native_steam"]},{groupTitle:"themes",needGroupSeparator:true,types:["themes"]},{groupTitle:"features",needGroupSeparator:true,types:["features"]},{groupTitle:"ip",needGroupSeparator:true,types:["ip"]},{groupTitle:"settings",needGroupSeparator:true,types:["settings"]},{groupTitle:"artstyles",needGroupSeparator:true,types:["artstyles"]}];}static compareByPriority(t,s){let r=e.getPriority(s)-e.getPriority(t);if(r!==0)return r;let n=(t.name??"").localeCompare(s.name??"");return n!==0?n:t.id-s.id}static getOrderedGroups(t,s){let r=e.filterVisibleTags(t,s);return r.length?e.GROUPS.reduce((n,i)=>{let c=e.sortGroupTags(r.filter(a=>i.types.includes(a.type)));return c.length===0||n.push({needGroupSeparator:i.needGroupSeparator,groupTitle:i.groupTitle,groupId:c.map(a=>a.id).join(","),tags:c}),n},[]):[]}static sortGroupTags(t){if(t.length<=1)return [...t];let s=new Map(t.map(u=>[u.id,u])),r=new Map,n=[];t.forEach(u=>
1002{let h=u.parent_ids?.find(d=>d!==u.id&&s.has(d));if(h===void 0){n.push(u.id);return}let l=r.get(h)??[];l.push(u.id),r.set(h,l);});let i=[],c=new Set,a=u=>[...u].sort((h,l)=>{let d=s.get(h),p=s.get(l);return !d||!p?0:e.compareByPriority(d,p)}),o=u=>{if(c.has(u))return;let h=s.get(u);h&&(c.add(u),i.push(h),a(r.get(u)??[]).forEach(l=>o(l)));};return a(n).forEach(u=>o(u)),a(t.map(u=>u.id).filter(u=>!c.has(u))).forEach(u=>o(u)),i}static filterVisibleTags(t,s){return t?.length?t.filter(r=>!!r&&(!r.status||r.status===3)&&(s||r.type!=="ip")):[]}static getPriority(t){return t.priority??-1}};function v$1(e){return Array.isArray?Array.isArray(e):Ae(e)==="[object Array]"}function _e(e){if(typeof e=="string")return e;if(typeof e=="bigint")return e.toString();let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function W$1(e){return e==null?"":_e(e)}function C$1(e){return typeof e=="string"}function L(e){return typeof e=="number"}function Ie(e){return e===true||e===false||De(e)&&Ae(e)=="[object Boolean]"}function Te$1(e){return typeof e=="object"}function De(e){return Te$1(e)&&e!==null}function M$1(e){return e!=null}function N$2(e){return !e.trim().length}function Ae(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var we="Incorrect 'index' type",U$1="Invalid doc index: must be a non-negative integer within the bounds of the docs array",Be=e=>`Invalid value for key ${e}`,ke=e=>`Pattern length exceeds max of ${e}.`,Re$1=e=>`Missing ${e} property in key`,xe=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ne$1="Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.",ae$1=Object.prototype.hasOwnProperty,Le=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(s=>{let r=ye$1(s);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight;}),this._keys.forEach(s=>{s.weight/=t;});}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function ye$1(e){let t=null,s=null,r=null,n=1,i=null;if(C$1(e)||v$1(e))r=e,t=ue$1(e),s=O$1(e);else {if(!ae$1.call(e,"name"))throw new Error(Re$1("name"));let c=e.name;if(r=c,ae$1.call(e,"weight")&&e.weight!==void 0&&(n=e.weight,n<=0))throw new Error(xe(O$1(c)));t=ue$1(c),s=O$1(c),i=e.getFn??null;}return {path:t,id:s,weight:n,src:r,getFn:i}}function ue$1(e){return v$1(e)?e:e.split(".")}function O$1(e){return v$1(e)?e.join("."):e}function Oe(e,t){let s=[],r=false,n=(i,c,a,o)=>{if(M$1(i))if(!c[a])s.push(o!==void 0?{v:i,i:o}:i);else {let u=i[c[a]];if(!M$1(u))return;if(a===c.length-1&&(C$1(u)||L(u)||Ie(u)||typeof u=="bigint"))s.push(o!==void 0?{v:W$1(u),i:o}:W$1(u));else if(v$1(u)){r=true;for(let h=0,l=u.length;h<l;h+=1)n(u[h],c,a+1,h);}else c.length&&n(u,c,a+1,o);}};return n(e,C$1(t)?t.split("."):t,0),r?s:s[0]}var Pe={includeMatches:false,findAllMatches:false,minMatchCharLength:1},Ge={isCaseSensitive:false,ignoreDiacritics:false,includeScore:false,keys:[],shouldSort:true,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},$e={location:0,threshold:.6,distance:100},je={useExtendedSearch:false,useTokenSearch:false,tokenize:void 0,tokenMatch:"any",getFn:Oe,ignoreLocation:false,ignoreFieldNorm:false,fieldNormWeight:1},f$2=Object.freeze(D$m(D$m(D$m(D$m({},Ge),Pe),$e),je));function ze(e=1,t=3){let s=new Map,r=Math.pow(10,t);return {get(n){let i=1,c=false;for(let o=0;o<n.length;o++)n.charCodeAt(o)===32?c||(i++,c=true):c=false;if(s.has(i))return s.get(i);let a=Math.round(r/Math.pow(i,.5*e))/r;return s.set(i,a),a},clear(){s.clear();}}}var q$2=class q{constructor({getFn:e=f$2.getFn,fieldNormWeight:t=f$2.fieldNormWeight}={}){this.norm=ze(t,3),this.getFn=e,this.isCreated=false,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords();}setSources(e=[]){this.docs=e;}setIndexRecords(e=[]){this.records=e;}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((t,s)=>{this._keysMap[t.id]=s;});}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=true;let e=this.docs.length;this.records=new Array(e);let t=0;if(C$1(this.docs[0]))for(let s=0;s<e;s++){let r=this._createStringRecord(this.docs[s],s);r&&(this.records[t++]=r);}else for(let s=0;s<e;s++)this.records[t++]=this._createObjectRecord(this.docs[s],s);this.records.length=t,this.norm.clear();}
1002add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(U$1);if(C$1(e)){let r=this._createStringRecord(e,t);return r&&this.records.push(r),r}let s=this._createObjectRecord(e,t);return this.records.push(s),s}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(U$1);for(let t=0,s=this.records.length;t<s;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,s=this.records.length;t<s;t+=1)this.records[t].i>e&&(this.records[t].i-=1);}removeAll(e){let t=new Set;for(let r of e)Number.isInteger(r)&&r>=0&&t.add(r);if(t.size===0)return;this.records=this.records.filter(r=>!t.has(r.i));let s=Array.from(t).sort((r,n)=>r-n);for(let r of this.records){let n=0,i=s.length;for(;n<i;){let c=n+i>>>1;s[c]<r.i?n=c+1:i=c;}r.i-=n;}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return !M$1(e)||N$2(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){let s={i:t,$:{}};for(let r=0,n=this.keys.length;r<n;r++){let i=this.keys[r],c=i.getFn?i.getFn(e):this.getFn(e,i.path);if(M$1(c)){if(v$1(c)){let a=[];for(let o=0,u=c.length;o<u;o+=1){let h=c[o];if(M$1(h)){if(C$1(h)){if(!N$2(h)){let l={v:h,i:o,n:this.norm.get(h)};a.push(l);}}else if(M$1(h.v)){let l=C$1(h.v)?h.v:W$1(h.v);if(!N$2(l)){let d={v:l,i:h.i,n:this.norm.get(l)};a.push(d);}}}}s.$[r]=a;}else if(C$1(c)&&!N$2(c)){let a={v:c,n:this.norm.get(c)};s.$[r]=a;}}}return s}toJSON(){return {keys:this.keys.map(s=>{var r=s,{getFn:e}=r,t=G$g(r,["getFn"]);return t}),records:this.records}}};function he$1(e,t,{getFn:s=f$2.getFn,fieldNormWeight:r=f$2.fieldNormWeight}={}){let n=new q$2({getFn:s,fieldNormWeight:r});return n.setKeys(e.map(ye$1)),n.setSources(t),n.create(),n}function He(e,{getFn:t=f$2.getFn,fieldNormWeight:s=f$2.fieldNormWeight}={}){let{keys:r,records:n}=e,i=new q$2({getFn:t,fieldNormWeight:s});return i.setKeys(r),i.setIndexRecords(n),i}function Ke(e=[],t=f$2.minMatchCharLength){let s=[],r=-1,n=-1,i=0;for(let c=e.length;i<c;i+=1){let a=e[i];a&&r===-1?r=i:!a&&r!==-1&&(n=i-1,n-r+1>=t&&s.push([r,n]),r=-1);}return e[i-1]&&i-r>=t&&s.push([r,i-1]),s}function We(e,t,s,{location:r=f$2.location,distance:n=f$2.distance,threshold:i=f$2.threshold,findAllMatches:c=f$2.findAllMatches,minMatchCharLength:a=f$2.minMatchCharLength,includeMatches:o=f$2.includeMatches,ignoreLocation:u=f$2.ignoreLocation}={}){if(t.length>32)throw new Error(ke(32));let h=t.length,l=e.length,d=Math.max(0,Math.min(r,l)),p=i,g=d,m=(A,y)=>{let E=A/h;if(u)return E;let w=Math.abs(d-y);return n?E+w/n:w?1:E},T=a>1||o,F=T?Array(l):[],I;for(;(I=e.indexOf(t,g))>-1;){let A=m(0,I);if(p=Math.min(A,p),g=I+h,T){let y=0;for(;y<h;)F[I+y]=1,y+=1;}}g=-1;let _=[],k=1,re=0,R=h+l,be=1<<h-1;for(let A=0;A<h;A+=1){let y=0,E=R;for(;y<E;)m(A,d+E)<=p?y=E:R=E,E=Math.floor((R-y)/2+y);R=E;let w=Math.max(1,d-E+1),j=c?l:Math.min(d+E,l)+h,D=Array(j+2);D[j+1]=(1<<A)-1;for(let S=j;S>=w;S-=1){let z=S-1,ve=s[e[z]];if(D[S]=(D[S+1]<<1|1)&ve,A&&(D[S]|=(_[S+1]|_[S])<<1|1|_[S+1]),D[S]&be&&(k=m(A,z),k<=p)){if(p=k,g=z,re=A,g<=d)break;w=Math.max(1,2*d-g);}}if(m(A+1,d)>p)break;_=D;}if(T&&g>=0){let A=Math.min(l-1,g+h-1+re);for(let y=g;y<=A;y+=1)s[e[y]]&&(F[y]=1);}let $={isMatch:g>=0,score:Math.max(.001,k)};if(T){let A=Ke(F,a);A.length?o&&($.indices=A):$.isMatch=false;}return $}function Ue(e){let t={};for(let s=0,r=e.length;s<r;s+=1){let n=e.charAt(s);t[n]=(t[n]||0)|1<<r-s-1;}return t}function ee$1(e){if(e.length<=1)return e;e.sort((s,r)=>s[0]-r[0]||s[1]-r[1]);let t=[e[0]];for(let s=1,r=e.length;s<r;s+=1){let n=t[t.length-1],i=e[s];i[0]<=n[1]+1?n[1]=Math.max(n[1],i[1]):t.push(i);}return t}var Ce$1={\u0142:"l",\u0141:"L",\u0111:"d",\u0110:"D",\u00F8:"o",\u00D8:"O",\u0127:"h",\u0126:"H",\u0167:"t",\u0166:"T",\u0131:"i",\u00DF:"ss"},Ve=new RegExp("["+Object.keys(Ce$1).join("")+"]","g"),B$1=typeof String.prototype.normalize=="function"?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A7
10025\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(Ve,t=>Ce$1[t]):e=>e,te$1=class te{constructor(e,{location:t=f$2.location,threshold:s=f$2.threshold,distance:r=f$2.distance,includeMatches:n=f$2.includeMatches,findAllMatches:i=f$2.findAllMatches,minMatchCharLength:c=f$2.minMatchCharLength,isCaseSensitive:a=f$2.isCaseSensitive,ignoreDiacritics:o=f$2.ignoreDiacritics,ignoreLocation:u=f$2.ignoreLocation}={}){if(this.options={location:t,threshold:s,distance:r,includeMatches:n,findAllMatches:i,minMatchCharLength:c,isCaseSensitive:a,ignoreDiacritics:o,ignoreLocation:u},e=a?e:e.toLowerCase(),e=o?B$1(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let h=(d,p)=>{this.chunks.push({pattern:d,alphabet:Ue(d),startIndex:p});},l=this.pattern.length;if(l>32){let d=0,p=l%32,g=l-p;for(;d<g;)h(this.pattern.substr(d,32),d),d+=32;if(p){let m=l-32;h(this.pattern.substr(m),m);}}else h(this.pattern,0);}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:s,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=s?B$1(e):e,this.pattern===e){let g={isMatch:true,score:0};return r&&(g.indices=[[0,e.length-1]]),g}let{location:n,distance:i,threshold:c,findAllMatches:a,minMatchCharLength:o,ignoreLocation:u}=this.options,h=[],l=0,d=false;this.chunks.forEach(({pattern:g,alphabet:m,startIndex:T})=>{let{isMatch:F,score:I,indices:_}=We(e,g,m,{location:n+T,distance:i,threshold:c,findAllMatches:a,minMatchCharLength:o,includeMatches:r,ignoreLocation:u});F&&(d=true),l+=I,F&&_&&h.push(..._);});let p={isMatch:d,score:d?l/this.chunks.length:1};return d&&r&&(p.indices=ee$1(h)),p}},Qe=new Set(["fuzzy","include"]);function Ye(e){return e.startsWith("inverse")}var V$1=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){let s=t===e;return {isMatch:s,score:s?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let s=0,r,n=[],i=e.length;for(;(r=t.indexOf(e,s))>-1;)s=r+i,n.push([r,s-1]);let c=!!n.length;return {isMatch:c,score:c?0:1,indices:n}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){let s=t.startsWith(e);return {isMatch:s,score:s?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){let s=!t.startsWith(e);return {isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){let s=!t.endsWith(e);return {isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){let s=t.endsWith(e);return {isMatch:s,score:s?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){let s=t.indexOf(e)===-1;return {isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let s=new te$1(e,{location:t.location??f$2.location,threshold:t.threshold??f$2.threshold,distance:t.distance??f$2.distance,includeMatches:t.includeMatches??f$2.includeMatches,findAllMatches:t.findAllMatches??f$2.findAllMatches,minMatchCharLength:t.minMatchCharLength??f$2.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??f$2.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??f$2.ignoreDiacritics,ignoreLocation:t.ignoreLocation??f$2.ignoreLocation});return {type:"fuzzy",search(r){return s.searchIn(r)}
1002}}}],le$1=V$1.length,Je="\0",Xe="|";function Ze(e){let t=[],s=e.length,r=0;for(;r<s;){for(;r<s&&e[r]===" ";)r++;if(r>=s)break;let n=r;for(;n<s&&e[n]!==" "&&e[n]!=='"';)n++;if(n<s&&e[n]==='"'){for(n++;n<s;){if(e[n]==='"'){let i=n+1;if(i>=s||e[i]===" "){n++;break}if(e[i]==="$"&&(i+1>=s||e[i+1]===" ")){n+=2;break}}n++;}t.push(e.substring(r,n)),r=n;}else {for(;n<s&&e[n]!==" ";)n++;t.push(e.substring(r,n)),r=n;}}return t}function de$1(e,t){let s=e.match(t);return s?s[1]:null}function qe(e,t={}){return e.replace(/\\\|/g,Je).split(Xe).map(s=>{let r=Ze(s.replace(/\u0000/g,"|").trim()).filter(i=>i&&!!i.trim()),n=[];for(let i=0,c=r.length;i<c;i+=1){let a=r[i],o=false,u=-1;for(;!o&&++u<le$1;){let h=V$1[u],l=de$1(a,h.multiRegex);l&&(n.push(h.create(l,t)),o=true);}if(!o)for(u=-1;++u<le$1;){let h=V$1[u],l=de$1(a,h.singleRegex);if(l){n.push(h.create(l,t));break}}}return n})}var et=class{constructor(e,{isCaseSensitive:t=f$2.isCaseSensitive,ignoreDiacritics:s=f$2.ignoreDiacritics,includeMatches:r=f$2.includeMatches,minMatchCharLength:n=f$2.minMatchCharLength,ignoreLocation:i=f$2.ignoreLocation,findAllMatches:c=f$2.findAllMatches,location:a=f$2.location,threshold:o=f$2.threshold,distance:u=f$2.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:s,includeMatches:r,minMatchCharLength:n,findAllMatches:c,ignoreLocation:i,location:a,threshold:o,distance:u},e=t?e:e.toLowerCase(),e=s?B$1(e):e,this.pattern=e,this.query=qe(this.pattern,this.options);}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return {isMatch:false,score:1};let{includeMatches:s,isCaseSensitive:r,ignoreDiacritics:n}=this.options;e=r?e:e.toLowerCase(),e=n?B$1(e):e;let i=0,c=[],a=0,o=false;for(let u=0,h=t.length;u<h;u+=1){let l=t[u];c.length=0,i=0,o=false;for(let d=0,p=l.length;d<p;d+=1){let g=l[d],{isMatch:m,indices:T,score:F}=g.search(e);if(m)i+=1,a+=F,Ye(g.type)&&(o=true),s&&(Qe.has(g.type)?c.push(...T):c.push(T));else {a=0,i=0,c.length=0,o=false;break}}if(i){let d={isMatch:true,score:a/i};return o&&(d.hasInverse=true),s&&(d.indices=ee$1(c)),d}}return {isMatch:false,score:1}}},Q$1=[];function se$1(...e){Q$1.push(...e);}function P$1(e,t){for(let s=0,r=Q$1.length;s<r;s+=1){let n=Q$1[s];if(n.condition(e,t))return new n(e,t)}return new te$1(e,t)}var G$2={AND:"$and",OR:"$or"},Y$2={PATH:"$path",PATTERN:"$val"},J$2=e=>!!(e[G$2.AND]||e[G$2.OR]),tt=e=>!!e[Y$2.PATH],st$1=e=>!v$1(e)&&Te$1(e)&&!J$2(e),fe$1=e=>({[G$2.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ge$1(e,t,{auto:s=true}={}){let r=n=>{if(C$1(n)){let o={keyId:null,pattern:n};return s&&(o.searcher=P$1(n,t)),o}let i=Object.keys(n),c=tt(n);if(!c&&i.length>1&&!J$2(n))return r(fe$1(n));if(st$1(n)){let o=c?n[Y$2.PATH]:i[0],u=c?n[Y$2.PATTERN]:n[o];if(!C$1(u))throw new Error(Be(o));let h={keyId:O$1(o),pattern:u};return s&&(h.searcher=P$1(u,t)),h}let a={children:[],operator:i[0]};return i.forEach(o=>{let u=n[o];v$1(u)&&u.forEach(h=>
1002{a.children.push(r(h));});}),a};return J$2(e)||(e=fe$1(e)),r(e)}function X$1(e,{ignoreFieldNorm:t=f$2.ignoreFieldNorm}){let s=1;return e.forEach(({key:r,norm:n,score:i})=>{let c=r?r.weight:null;s*=Math.pow(i===0&&c?Number.EPSILON:i,(c||1)*(t?1:n));}),s}function rt(e,{ignoreFieldNorm:t=f$2.ignoreFieldNorm}){e.forEach(s=>{s.score=X$1(s.matches,{ignoreFieldNorm:t});});}var nt$1=class nt{constructor(e){this.limit=e,this.heap=[];}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0));}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let s=e-1>>1;if(t[e].score<=t[s].score)break;let r=t[e];t[e]=t[s],t[s]=r,e=s;}}_sinkDown(e){let t=this.heap,s=t.length,r=e;do{e=r;let n=2*e+1,i=2*e+2;if(n<s&&t[n].score>t[r].score&&(r=n),i<s&&t[i].score>t[r].score&&(r=i),r!==e){let c=t[e];t[e]=t[r],t[r]=c;}}while(r!==e)}};function it(e){let t=[];return e.matches.forEach(s=>{if(!M$1(s.indices)||!s.indices.length)return;let r={indices:s.indices,value:s.value};s.key&&(r.key=s.key.id),s.idx>-1&&(r.refIndex=s.idx),t.push(r);}),t}function ot$1(e,t,{includeMatches:s=f$2.includeMatches,includeScore:r=f$2.includeScore}={}){return e.map(n=>{let{idx:i}=n,c={item:t[i],refIndex:i};return s&&(c.matches=it(n)),r&&(c.score=n.score),c})}var ct$1=/[\p{L}\p{M}\p{N}_]+/gu,pe$1=new WeakSet;function at$1(e){pe$1.has(e)||(pe$1.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`));}function ut$2(e){if(typeof e=="function"){let t=false;return s=>{let r=e(s);if(!t&&(t=true,!Array.isArray(r)||r.some(n=>typeof n!="string")))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?"array containing non-strings":typeof r}.`);return r}}return e instanceof RegExp?(e.global||at$1(e),t=>t.match(e)||[]):t=>t.match(ct$1)||[]}function Z({isCaseSensitive:e=false,ignoreDiacritics:t=false,tokenize:s}={}){let r=ut$2(s);return {tokenize(n){return e||(n=n.toLowerCase()),t&&(n=B$1(n)),r(n)}}}var ht=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Z({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let s=this.analyzer.tokenize(e),{df:r,fieldCount:n}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let i of s){this.termSearchers.push(new te$1(i,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:true}));let c=r.get(i)||0,a=Math.log(1+(n-c+.5)/(c+.5));this.idfWeights.push(a);}this.combineAll=t.tokenMatch==="all",this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31;}searchIn(e){if(!this.termSearchers.length)return {isMatch:false,score:1};let t=[],s=0,r=0,n=0,i=0,c=this.combineAll&&!this.useMask?new Set:null;for(let u=0;u<this.termSearchers.length;u++){let h=this.termSearchers[u].searchIn(e),l=this.idfWeights[u];r+=l,h.isMatch&&(n++,s+=l*(1-h.score),h.indices&&t.push(...h.indices),this.combineAll&&(this.useMask?i|=1<<u:c.add(u)));}if(n===0)return {isMatch:false,score:1};let a=r>0?1-s/r:0,o={isMatch:true,score:Math.max(.001,a)};return this.options.includeMatches&&t.length&&(o.indices=ee$1(t)),this.combineAll&&(this.useMask?o.matchedMask=i:o.matchedTerms=c,o.termCount=this.numTerms),o}};function K$1(e,t,s,r){let n=r.tokenize(t);if(!n.length)return;e.fieldCount++,e.docFieldCount.set(s,(e.docFieldCount.get(s)||0)+1);let i=new Set(n),c=e.docTermFieldHits.get(s);c||(c=new Map,e.docTermFieldHits.set(s,c));for(let a of i)c.set(a,(c.get(a)||0)+1),e.df.set(a,(e.df.get(a)||0)+1);}function Me(e,t,s,r){let{i:n,v:i,$:c}=t;if(i!==void 0){K$1(e,i,n,r);return}if(c)for(let a=0;a<s;a++){let o=c[a];if(o)if(Array.isArray(o))for(let u of o)K$1(e,u.v,n,r);
1002else K$1(e,o.v,n,r);}}function lt$1(e,t,s){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let n of e)Me(r,n,t,s);return r}function dt(e,t,s,r){Me(e,t,s,r);}function ft(e,t){let s=e.docFieldCount.get(t);if(s===void 0)return;e.fieldCount-=s,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[n,i]of r){let c=(e.df.get(n)||0)-i;c<=0?e.df.delete(n):e.df.set(n,c);}e.docTermFieldHits.delete(t);}}function me$1(e,t){if(t.length===0)return;let s=Array.from(new Set(t)).sort((a,o)=>a-o);for(let a of s)ft(e,a);let r=a=>{let o=0,u=s.length;for(;o<u;){let h=o+u>>>1;s[h]<a?o=h+1:u=h;}return a-o},n=s[0],i=new Map;for(let[a,o]of e.docFieldCount)i.set(a>n?r(a):a,o);e.docFieldCount=i;let c=new Map;for(let[a,o]of e.docTermFieldHits)c.set(a>n?r(a):a,o);e.docTermFieldHits=c;}var Ee=(()=>{let e=class{constructor(t,s,r){this.options=D$m(D$m({},f$2),s),this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Le(this.options.keys),this._docs=t,this._myIndex=null,this._invertedIndex=null,this.setCollection(t,r),this._lastQuery=null,this._lastSearcher=null;}_getSearcher(t){if(this._lastQuery===t)return this._lastSearcher;let s=P$1(t,this._invertedIndex?E$9(D$m({},this.options),{_invertedIndex:this._invertedIndex}):this.options);return this._lastQuery=t,this._lastSearcher=s,s}setCollection(t,s){if(this._docs=t,s&&!(s instanceof q$2))throw new Error(we);if(this._myIndex=s||he$1(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let r=Z({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=lt$1(this._myIndex.records,this._myIndex.keys.length,r);}this._invalidateSearcherCache();}add(t){if(!M$1(t))return;this._docs.push(t);let s=this._myIndex.add(t,this._docs.length-1);if(this._invertedIndex&&s){let r=Z({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});dt(this._invertedIndex,s,this._myIndex.keys.length,r);}this._invalidateSearcherCache();}remove(t=()=>false){let s=[],r=[];for(let n=0,i=this._docs.length;n<i;n+=1)t(this._docs[n],n)&&(s.push(this._docs[n]),r.push(n));if(r.length){this._invertedIndex&&me$1(this._invertedIndex,r);let n=new Set(r);this._docs=this._docs.filter((i,c)=>!n.has(c)),this._myIndex.removeAll(r),this._invalidateSearcherCache();}return s}removeAt(t){if(!Number.isInteger(t)||t<0||t>=this._docs.length)throw new Error(U$1);this._invertedIndex&&me$1(this._invertedIndex,[t]);let s=this._docs.splice(t,1)[0];return this._myIndex.removeAt(t),this._invalidateSearcherCache(),s}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null;}getIndex(){return this._myIndex}search(t,s){let{limit:r=-1}=s||{},{includeMatches:n,includeScore:i,shouldSort:c,sortFn:a,ignoreFieldNorm:o}=this.options;if(C$1(t)&&!t.trim()){let l=this._docs.map((d,p)=>({item:d,refIndex:p}));return L(r)&&r>-1&&(l=l.slice(0,r)),l}let u=L(r)&&r>0&&C$1(t),h;if(u){let l=new nt$1(r);C$1(this._docs[0])?this._searchStringList(t,{heap:l,ignoreFieldNorm:o}):this._searchObjectList(t,{heap:l,ignoreFieldNorm:o}),h=l.extractSorted(a);}else h=C$1(t)?C$1(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t),rt(h,{ignoreFieldNorm:o}),c&&h.sort(a),L(r)&&r>-1&&(h=h.slice(0,r));return ot$1(h,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(t,{heap:s,ignoreFieldNorm:r}={}){let n=this._getSearcher(t),i=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:c}=this._myIndex,a=s?null:[];return c.forEach(({v:o,i:u,n:h})=>{if(!M$1(o))return;let l=n.searchIn(o);if(l.isMatch){let d={score:l.score,value:o,norm:h,indices:l.indices};i&&(d.matchedMask=l.matchedMask,d.matchedTerms=l.matchedTerms,d.termCount=l.termCount);let p=[d];if(!i||this._coversAllTokens(p)){let g={item:o,idx:u,matches:p};s?(g.score=X$1(g.matches,{ignoreFieldNorm:r}),s.shouldInsert(g.score)&&s.insert(g)):a.push(g);}}}),a}_searchLogical(t){let s=ge$1(t,this.options),r=(a,o,u)=>{if(!("children"in a)){let{keyId:p,searcher:g}=a,m;return p===null?(m=[],this._myIndex.keys.forEach((T,F)=>{m.push(...this._findMatches({key:T,value:o[F],searcher:g}));})):m=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(o,p),searcher:g}),m&&m.length?[{idx:u,item:o,matches:m}]:[]}let{children:h,operator:l}=a,d=[];for(let p=0,g=h.length;p<g;p+=1){let m=h[p],T=r(m,o,u);if(T.length)d.push(...T);else if(l===G$2.AND)return []}return d},n=this._myIndex.records,i=new Map,c=[];
1002return n.forEach(({$:a,i:o})=>{if(M$1(a)){let u=r(s,a,o);u.length&&(i.has(o)||(i.set(o,{idx:o,item:a,matches:[]}),c.push(i.get(o))),u.forEach(({matches:h})=>{i.get(o).matches.push(...h);}));}}),c}_searchObjectList(t,{heap:s,ignoreFieldNorm:r}={}){let n=this._getSearcher(t),i=this.options.useTokenSearch&&this.options.tokenMatch==="all",{keys:c,records:a}=this._myIndex,o=s?null:[];return a.forEach(({$:u,i:h})=>{if(!M$1(u))return;let l=[],d=false,p=false;if(c.forEach((g,m)=>{let T=this._findMatches({key:g,value:u[m],searcher:n});T.length?(l.push(...T),T[0].hasInverse&&(p=true)):d=true;}),!(p&&d)&&l.length&&(!i||this._coversAllTokens(l))){let g={idx:h,item:u,matches:l};s?(g.score=X$1(g.matches,{ignoreFieldNorm:r}),s.shouldInsert(g.score)&&s.insert(g)):o.push(g);}}),o}_findMatches({key:t,value:s,searcher:r}){if(!M$1(s))return [];let n=[];if(v$1(s))s.forEach(({v:i,i:c,n:a})=>{if(!M$1(i))return;let o=r.searchIn(i);if(o.isMatch){let u={score:o.score,key:t,value:i,idx:c,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(u.matchedMask=o.matchedMask,u.matchedTerms=o.matchedTerms,u.termCount=o.termCount),n.push(u);}});else {let{v:i,n:c}=s,a=r.searchIn(i);if(a.isMatch){let o={score:a.score,key:t,value:i,norm:c,indices:a.indices,hasInverse:a.hasInverse};a.termCount!==void 0&&(o.matchedMask=a.matchedMask,o.matchedTerms=a.matchedTerms,o.termCount=a.termCount),n.push(o);}}return n}_coversAllTokens(t){let s=t.length?t[0].termCount:void 0;if(s===void 0)return  true;if(s<=31){let n=0;for(let i=0;i<t.length;i++)n|=t[i].matchedMask||0;return n===2**s-1}let r=new Set;for(let n=0;n<t.length;n++){let i=t[n].matchedTerms;if(i)for(let c of i)r.add(c);}return r.size===s}};return e.version="7.4.2",e.createIndex=he$1,e.parseIndex=He,e.config=f$2,e.match=function(t,s,r){if(r&&r.useTokenSearch)throw new Error(Ne$1);return P$1(t,D$m(D$m({},f$2),r)).searchIn(s)},e.parseQuery=ge$1,e})();se$1(et);se$1(ht);Ee.use=function(...e){e.forEach(t=>se$1(t));};var Fe$1=Ee;var Se$1=class e{static{this.MaxFreeTagDepth=2;}static{this.tagsMap={domain:["domain"],meta:["meta"],"":["apps","games","native_steam"],themes:["themes"],features:["features"],ip:["ip"],settings:["settings"],artstyles:["artstyles"]};}static{this.orderTagGroupTypes=["domain","meta","games","apps","native_steam","themes","features","ip","settings","artstyles","complexity"];}static{this.NoTitleTagTypes=["apps","games","meta","domain"];}static{this.MajorTagTypes=["apps","native_steam","games","meta","domain","complexity"];}static{this.PremiumTagTypes=["artstyles","complexity","features","ip","settings","themes"];}static isTagAccessible(t,s,r,n){return s?t.type==="ip"?r:true:(t.path||e.calculateTagPath(t.id,n||new Map)).length>e.MaxFreeTagDepth?false:!e.PremiumTagTypes.includes(t.type)}static calculateTagPath(t,s){let r=[],n=t;for(;n;){r.unshift(n);let c=s.get(n)?.parent_ids?.[0];if(!c)break;n=c;}return r}static isArticleClassificationTag(t){return t.type==="domain"?["Apps","Games"].includes(t.name):t.type==="meta"||ce$1.some(s=>s===t.type)}static getTagGroups(t,s){if(!t||t.length===0)return [];t=x.filterVisibleTags(t,s);let i=e.orderTagsIdsByParent(t).map(a=>t.find(o=>o.id===a)).filter(a=>!!a).sort((a,o)=>a.priority!==o.priority?o.priority-a.priority:0),c=[];return Object.keys(e.tagsMap).forEach(a=>{let o=[],u=null;if(e.NoTitleTagTypes.includes(a)||(u=a),i.forEach(h=>{if(e.tagsMap[a].includes(h.type)){let l=h;o.push(l);}}),o.length){let h={needGroupSeparator:["settings","artstyles","ip","themes","features"].includes(u),groupTitle:u,groupId:o.map(l=>l.id).join(","),tags:o};c.push(h);}}),c}static getTagNames(t,s,r=null){if(!t||t.length===0)return "";let n=[];return e.getTagGroups(t,s).forEach(c=>{let a=c.tags.map(o=>r?r("tags."+o.name):o.name).join(",");n.push(a);}),n.join(",")}static groupTagsByParent(t){let s=t.filter(n=>n.type==="meta").map(n=>n.id),r=(n,i,c=[])=>{let a=i||n.filter(u=>!u.parent_ids.length),o=n.filter(u=>!!u.parent_ids.length);return a.forEach(u=>{let h=[...c,u.id];if(u.path=h,u.expanded=false,u.children=[],s.includes(u.id))return a;let l=o.filter(d=>d.parent_ids.includes(u.id));l.length>0&&(u.children=e.sortByTagName(l),u.children=r(n,u.children,h));}),a};return r(t)}static orderTagsIdsByParent(t){let s=t.map(a=>a.id),r=a=>{let o=[];return a.forEach(u=>{s.includes(u.id)&&o.push(u.id);let h=t.filter(l=>l.parent_ids.includes(u.id));h.length>
10020&&r(h).forEach(l=>{!o.includes(l)&&s.includes(u.id)&&o.push(l);});}),o},n=e.orderTagGroupTypes,i=[],c=[];return n.forEach(a=>{i=[],t.forEach(o=>{a.includes(o.type)&&i.push(o);}),i=i.sort((o,u)=>{if(o.parent_ids.filter(h=>u.parent_ids.includes(h)).length>0){if(o.name<u.name)return  -1;if(o.name>u.name)return 1}return o.parent_ids.length===0?-1:o.parent_ids.includes(u.id)?1:u.parent_ids.includes(o.id)?-1:0}),r(i).forEach(o=>{c.includes(o)||c.push(o);});}),c}static sortByTagName(t){return t.sort((s,r)=>s.name<r.name?-1:s.name>r.name?1:0)}static getTag(t,s){let r=n=>{let i;for(let c of n)if(c.id===t&&(i=c),!i&&c.children.length&&(i=r(c.children)),i)return i};return r(s)}static getTagType(t,s){let r=parseInt(t,10),n=e.getTag(r,s);return n?n.type:""}static getTagsBySearchString(t,s){let r=new RegExp(h$8.getRegExpFromString(s),"i");return t.map(n=>(n.children=[...n.children],Object.assign({},n))).filter(n=>(n.children=e.getTagsBySearchString(n.children,s),n.expanded=true,r.test(n.name.toLowerCase())?(n.highLightName=e.getHighlightName(n.name,s),true):n.children.length>0))}static getTagsByFuseJs(t,s){let n=new Fe$1(t.map(i=>i.name),{includeMatches:true,shouldSort:false,threshold:.3}).search(s);return t.filter(i=>(i.children=e.getTagsByFuseJs(i.children,s),i.expanded=true,n.some(a=>a.item===i.name?(i.highLightName=e.getHighlightFusejsName(i.name,a),true):false)?true:i.children.length>0))}static getExpandedTags(t,s,r=[]){return t.map(n=>{if(n.expanded=false,n.highLightName="",s.includes(n.id)&&(n.expanded=true,r.length&&r.forEach(i=>{i.expanded=true;})),n.children.length){let i=[];i.push(...r),i.push(n),n.children=e.getExpandedTags(n.children,s,i);}return n})}static getHighlightName(t,s){return h$8.highlightOrOriginal(t,s)}static getHighlightFusejsName(t,s){let r="",n=0;return s.matches[0].indices.forEach(i=>{let c=i[1]+1;r+=[t.substring(n,i[0]),'<span class="font-bold">',t.substring(i[0],c),"</span>"].join(""),n=c;}),r+=t.substring(n),r}};var l$1=class s{constructor(){this.http=D$l(Ue$7);this.cacheService=D$l(X$7);}static{this.GetUrl=`${C$8.baseUrl}/api/v2/tags`;}static{this.GetArticleAppTreeByCountryUrl=`${C$8.baseUrl}/api/v2/tags/top-apps-tree`;}static{this.GetTopAppsByTagsUrl=`${C$8.baseUrl}/api/v2/top/apps-by-tags`;}static{this.GetTopTagsUrl=`${C$8.baseUrl}/api/v2/tops/tags-v2`;}static{this.GetTagAppCountUrl=`${C$8.baseUrl}/api/v2/tags/apps-count`;}get(a){let e=s.GetUrl,t={};a&&(t.onlyWithAggregatedData=true);let r=this.http.get(e,{params:t}),p={url:e,params:t};return this.cacheService.cacheObs(r,p)}getArticleAppTreeByCountry(a){let e=this.http.get(`${s.GetArticleAppTreeByCountryUrl}?country=${a}`),t={url:`${s.GetArticleAppTreeByCountryUrl}?country=${a}`,params:{}};return this.cacheService.cacheObs(e,t)}getTagAppData(a){let e=this.http.post(s.GetTopAppsByTagsUrl,a),t={url:s.GetTopAppsByTagsUrl,params:a};return this.cacheService.cacheObs(e,t)}getScoreTags(a=null){let e=new R$a;a&&(e=e.append("tags",a.join(",")));let t=this.http.get(s.GetTagAppCountUrl,{params:e}),r={url:s.GetTagAppCountUrl,params:a};return this.cacheService.cacheObs(t,r)}getTopApps(a){let e=this.http.post(s.GetTopTagsUrl,a),t={url:s.GetTopTagsUrl,params:a};return this.cacheService.cacheObs(e,t)}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var R$3=class s{constructor(a,e){this.tagResource=a;this.langService=e;this.appDataLoading=new rr$4(false);this.tagAppDataLoading=new rr$4(false);this.tags=new rr$4([]);this.rawTags=new rr$4([]);this.rawTagsById=new rr$4(new Map);this.loading=new rr$4(false);this.appTreeTags=new rr$4([]);this.appTreeTagsLoading=new rr$4(false);}static getExistTagsIds(a,e,t,r){return a.filter(p=>{let o=e.get(p);return o?Se$1.isTagAccessible(o,t,r,e):false})}static getUrlAllowedTagIds(a,e){return x.filterVisibleTags(a,e).map(t=>t.id)}static getExistTagsIdsByTree(a,e){let t=(r,p)=>r.children.length===0?r.id===p:r.children.some(o=>o.id===p||t(o,p));return a.filter(r=>e.some(p=>p.id===r||t(p,r)))}static filterTagsByTypes(a,e){return a.filter(t=>e.includes(t.type))}static getTagsWithLinkInfo(a,e,t,r,p,o,U){return x.filterVisibleTags(a,o).map(m=>{let B=Se$1.isTagAccessible(m,p,o,U);return {tag:m,linkData:B?{linkEvent:e,linkText:t,tag_id:m.id,link:r(m)}:null}})}getTagData(a){return this.loading.next(true),this.tagResource.get(a).pipe(ge$9(e=>{let t=Se$1.orderTagGroupTypes;return e.data.filter(r=>{let p=r.type==="complexity",o=r.status===3&&t.includes(r.type);return !p&&o})}),Lu$2(e=>{this.rawTags.next(e),this.rawTagsById.next(new Map(e.map(r=>[r.id,r]))),this.loading.next(false);let t=Se$1.groupTagsByParent(e);return this.tags.next(t),e},xs$1(e=>(this.loading.next(false),Lm$2(e)))),xs$1(()=>Ms$2([])))}loadTags(){return this.getTagData().pipe(Mu$2()).toPromise()}loadAppTreeTagsByCountry(){this.getAppTreeTagsByCountry().pipe(Mu$2()).subscribe();}getAppTreeTagsByCountry(){let a=this.langService.getLangValue().flag.toUpperCase();return this.appTreeTagsLoading.next(true),this.tagResource.getArticleAppTreeByCountry(a).pipe(ge$9(e=>e.data)).pipe(Lu$2(e=>{this.appTreeTags.next(e),this.appTreeTagsLoading.next(false);}),xs$1(e=>(this.appTreeTagsLoading.next(false),Lm$2(e))))}getTopApps(a){return this.appDataLoading.next(true),this.tagResource.getTopApps(a).pipe(bu$2(()=>this.appDataLoading.next(false)))}getScoreTags(a=null){return !a||a.length===0?Ms$2([]):this.tagResource.getScoreTags(a).pipe(ge$9(e=>e.data),ge$9(e=>e.map(t=>({tags:t.tags,score:t.count}))))}getComplexityTags(){return this.tags.pipe(ge$9(a=>a.filter(e=>e.type==="complexity")))}getTagAppData(a){this.tagAppDataLoading.next(true);let e={store:5,countries:["WW"],tag_combinations:a.map(t=>[t]),sort:"score"};return this.tagResource.getTagAppData(e).pipe(ge$9(t=>(this.tagAppDataLoading.next(false),t.data)),xs$1(t=>(this.tagAppDataLoading.next(false),Lm$2(t))))}static{this.\u0275fac=function(e){return new(e||s)(me$b(l$1),me$b(v$7))};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var s$3=(t=>(t.Apps="apps",t.Artstyles="artstyles",t.Games="games",t.Meta="meta",t.Settings="settings",t.Domain="domain",t.Complexity="complexity",t.Themes="themes",t.Features="features",t.IP="ip",t.NativeSteam="native_steam",t))(s$3||{});
1002var m$2=(e=>(e.day="day",e.week="week",e.month="month",e))(m$2||{});var t=(e=>(e.Research="research",e.ToolDescriptions="tool-descriptions",e))(t||{});var n=class{static{this.stores=["google-play","iphone","ipad"];}static getStoreById(e){return this.stores[e-1]}static getStoreIdByName(e){return this.stores.indexOf(e)+1}};var a$3=class a{static{this.charsMap={$:"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)",\u00AA:"a","\xAE":"(r)",\u00BA:"o",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00C6:"AE",\u00C7:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00DD:"Y",\u00DE:"TH",\u00DF:"ss",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00E6:"ae",\u00E7:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00FD:"y",\u00FE:"th",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u010C:"C",\u010D:"c",\u010E:"D",\u010F:"d",\u0110:"DJ",\u0111:"dj",\u0112:"E",\u0113:"e",\u0116:"E",\u0117:"e",\u0118:"e",\u0119:"e",\u011A:"E",\u011B:"e",\u011E:"G",\u011F:"g",\u0122:"G",\u0123:"g",\u0128:"I",\u0129:"i",\u012A:"i",\u012B:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0136:"k",\u0137:"k",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u0141:"L",\u0142:"l",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",\u0154:"R",\u0155:"r",\u0158:"R",\u0159:"r",\u015A:"S",\u015B:"s",\u015E:"S",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u0164:"T",\u0165:"t",\u0168:"U",\u0169:"u",\u016A:"u",\u016B:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01C8:"LJ",\u01C9:"lj",\u01CB:"NJ",\u01CC:"nj",\u0218:"S",\u0219:"s",\u021A:"T",\u021B:"t","\u02DA":"o",\u0386:"A",\u0388:"E",\u0389:"H",\u038A:"I",\u038C:"O",\u038E:"Y",\u038F:"W",\u0390:"i",\u0391:"A",\u0392:"B",\u0393:"G",\u0394:"D",\u0395:"E",\u0396:"Z",\u0397:"H",\u0398:"8",\u0399:"I",\u039A:"K",\u039B:"L",\u039C:"M",\u039D:"N",\u039E:"3",\u039F:"O",\u03A0:"P",\u03A1:"R",\u03A3:"S",\u03A4:"T",\u03A5:"Y",\u03A6:"F",\u03A7:"X",\u03A8:"PS",\u03A9:"W",\u03AA:"I",\u03AB:"Y",\u03AC:"a",\u03AD:"e",\u03AE:"h",\u03AF:"i",\u03B0:"y",\u03B1:"a",\u03B2:"b",\u03B3:"g",\u03B4:"d",\u03B5:"e",\u03B6:"z",\u03B7:"h",\u03B8:"8",\u03B9:"i",\u03BA:"k",\u03BB:"l",\u03BC:"m",\u03BD:"n",\u03BE:"3",\u03BF:"o",\u03C0:"p",\u03C1:"r",\u03C2:"s",\u03C3:"s",\u03C4:"t",\u03C5:"y",\u03C6:"f",\u03C7:"x",\u03C8:"ps",\u03C9:"w",\u03CA:"i",\u03CB:"y",\u03CC:"o",\u03CD:"y",\u03CE:"w",\u0401:"Yo",\u0402:"DJ",\u0404:"Ye",\u0406:"I",\u0407:"Yi",\u0408:"J",\u0409:"LJ",\u040A:"NJ",\u040B:"C",\u040F:"DZ",\u0410:"A",\u0411:"B",\u0412:"V",\u0413:"G",\u0414:"D",\u0415:"E",\u0416:"Zh",\u0417:"Z",\u0418:"I",\u0419:"J",\u041A:"K",\u041B:"L",\u041C:"M",\u041D:"N",\u041E:"O",\u041F:"P",\u0420:"R",\u0421:"S",\u0422:"T",\u0423:"U",\u0424:"F",\u0425:"H",\u0426:"C",\u0427:"Ch",\u0428:"Sh",\u0429:"Sh",\u042A:"U",\u042B:"Y",\u042C:" ",\u042D:"E",\u042E:"Yu",\u042F:"Ya",\u0430:"a",\u0431:"b",\u0432:"v",\u0433:"g",\u0434:"d",\u0435:"e",\u0436:"zh",\u0437:"z",\u0438:"i",\u0439:"j",\u043A:"k",\u043B:"l",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"p",\u0440:"r",\u0441:"s",\u0442:"t",\u0443:"u",\u0444:"f",\u0445:"h",\u0446:"c",\u0447:"ch",\u0448:"sh",\u0449:"sh",\u044A:"u",\u044B:"y",\u044C:" ",\u044D:"e",\u044E:"yu",\u044F:"ya",\u0451:"yo",\u0452:"dj",\u0454:"ye",\u0456:"i",\u0457:"yi",\u0458:"j",\u0459:"lj",\u045A:"nj",\u045B:"c",\u045D:"u",\u045F:"dz",\u0490:"G",\u0491:"g",\u0492:"GH",\u0493:"gh",\u049A:"KH",\u049B:"kh",\u04A2:"NG",\u04A3:"ng",\u04AE:"UE",\u04AF:"ue",\u04B0:"U",\u04B1:"u",\u04BA:"H",\u04BB:"h",\u04D8:"AE",\u04D9:"ae",\u04E8:"OE",\u04E9:"oe","\u0E3F":"baht",\u10D0:"a",\u10D1:"b",\u10D2:"g",\u10D3:"d",\u10D4:"e",\u10D5:"v",\u10D6:"z",\u10D7:"t",\u10D8:"i",\u10D9:"k",\u10DA:"l",\u10DB:"m",\u10DC:"n",\u10DD:"o",\u10DE:"p",\u10DF:"zh",\u10E0:"r",\u10E1:"s",\u10E2:"t",\u10E3:"u",\u10E4:"f",\u10E5:"k",\u10E6:"gh",\u10E7:"q",\u10E8:"sh",\u10E9:"ch",\u10EA:"ts",\u10EB:"dz",\u10EC:"ts",\u10ED:"ch",\u10EE:"kh",\u10EF:"j",\u10F0:"h",\u1E80:"W",\u1E81:"w",\u1E82:"W",\u1E83:"w",\u1E84:"W",\u1E85:"w","\u1E9E":"SS",\u1EA0:"A",\u1EA1:"a",\u1EA2:"A",\u1EA3:"a",\u1EA4:"A",\u1EA5:"a",\u1EA6:"A",\u1EA7:"a",\u1EA8:"A",\u1EA9:"a",\u1EAA:"A",\u1EAB:"a",\u1EAC:"A",\u1EAD:"a",\u1EAE:"A",\u1EAF:"a",\u1EB0:"A",\u1EB1:"a",\u1EB2:"A",\u1EB3:"a",\u1EB4:"A",\u1EB5:"a",\u1EB6:"A",\u1EB7:"a",\u1EB8:"E",\u1EB9:"e",\u1EBA:"E",\u1EBB:"e",\u1EBC:"E",\u1EBD:"e",\u1EBE:"E",\u1EBF:"e",\u1EC0:"E",\u1EC1:"e",\u1EC2:"E",\u1EC3:"e",\u1EC4:"E",\u1EC
10025:"e",\u1EC6:"E",\u1EC7:"e",\u1EC8:"I",\u1EC9:"i",\u1ECA:"I",\u1ECB:"i",\u1ECC:"O",\u1ECD:"o",\u1ECE:"O",\u1ECF:"o",\u1ED0:"O",\u1ED1:"o",\u1ED2:"O",\u1ED3:"o",\u1ED4:"O",\u1ED5:"o",\u1ED6:"O",\u1ED7:"o",\u1ED8:"O",\u1ED9:"o",\u1EDA:"O",\u1EDB:"o",\u1EDC:"O",\u1EDD:"o",\u1EDE:"O",\u1EDF:"o",\u1EE0:"O",\u1EE1:"o",\u1EE2:"O",\u1EE3:"o",\u1EE4:"U",\u1EE5:"u",\u1EE6:"U",\u1EE7:"u",\u1EE8:"U",\u1EE9:"u",\u1EEA:"U",\u1EEB:"u",\u1EEC:"U",\u1EED:"u",\u1EEE:"U",\u1EEF:"u",\u1EF0:"U",\u1EF1:"u",\u1EF2:"Y",\u1EF3:"y",\u1EF4:"Y",\u1EF5:"y",\u1EF6:"Y",\u1EF7:"y",\u1EF8:"Y",\u1EF9:"y","\u2018":"'","\u2019":"'","\u201C":'\\"',"\u201D":'\\"',"\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love",\u5143:"yuan",\u5186:"yen","\uFDFC":"rial","#":" ","\uFF0D":" ","\uFF1A":" ","\u2024":" ","\xB7":" "};}static{this.toDashChars=[" ","\u2014","\u2013",";","?",":","@","&","=","+","$",",","/",".","!","~","*","'","(",")"];}static getSlug(e){return e?.replace(/([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|[\u2764]|[\u2122]|\uD83E[\uDD10-\uDDFF])/g,"").replace(/&#39;/i,"").split("").map(t=>{let r=this.charsMap,s=r[t]?r[t]:t;return this.toDashChars.includes(s)?"-":s}).filter(t=>t.charCodeAt(0)!==65039).join("").trim().replace(/-{2,}/g,"-").toLowerCase()}};var d$4=class o{static buildUrl(e,t){let r=e.map(u=>new ee$6(u,{})),i={root:new m$5(r,{}),queryParams:t||{},fragment:null};return new Y$6().serialize(i)}static getStoreLink(e,t,r=""){let s=`https://play.google.com/store/apps/details?id=${t}`,i=r?`https://apps.apple.com/${r}/app/id${t}`:`https://apps.apple.com/app/id${t}`;return e===1?s:i}static getPublisherStoreLink(e,t){return e!==1?`https://apps.apple.com/developer/id${t}`:+t?`https://play.google.com/store/apps/dev?id=${t}`:`https://play.google.com/store/apps/developer?${new URLSearchParams({id:t}).toString()}`}static getAppPageHrefByUnited(e,t){let{store:r,store_application_id:s}=m$7.getAppIdFromStoreId(e);return this.getAppPageHref(r,s,t)}static getAppPageHref(e,t,r){let s=[n.getStoreById(e),a$3.getSlug(r),t];return this.buildUrl(s)}static getPublisherHref(e){let t=u$3.getExistsType(e.revenue,e.downloads),r={types:[t],publisherStoreIds:`${e.publisherIds[0].store}_${e.publisherIds[0].store_publisher_id}`,sortColumn:t};return this.buildUrl(["dashboards","publisher"],r)}static{this.ACCEPTED_SORT=new Set(["name","revenue","downloads","countries","releaseDate"]);}static getPublisherPageLink(e,t,r="",s){let i=r&&o.ACCEPTED_SORT.has(r)?{sort:r}:{};s&&(i.publisher_ids=`${s.store}_${s.store_publisher_id}`);let u=["publisher",a$3.getSlug(t),`${e.store}_${e.store_publisher_id}`];return this.buildUrl(u,i)}static getPublisherPageLinkFromUnitedApp(e){return this.getPublisherPageLink(e.publisherIds[0],e.unitedPublisher.name)}
1002static getPublisherPageLinkFromUnitedPub(e){return this.getPublisherPageLink(e.publisherIds[0],e.name,"")}};
1003var a$2=class t{transform(r,e){let i=r,s=i.publisherIds?i.publisherIds[0]:r,p=i.unitedPublisher?i.unitedPublisher.name:r.name;return d$4.getPublisherPageLink({store_publisher_id:s.store_publisher_id.toString(),store:+s.store},p,"",e?.store_publisher_id?{store:+e.store,store_publisher_id:e.store_publisher_id.toString()}:void 0)}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275pipe=fw({name:"pubPageLink",type:t,pure:true});}};var a$1=class n{transform(i){if(i.id){let{store_ids:m,name:c}=i;return d$4.getAppPageHrefByUnited(m[0],c)}let{store_application_id:t,name:o,store:r}=i,s=Array.isArray(r)?r[0]:r;return d$4.getAppPageHref(s,t,o)}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275pipe=fw({name:"appPageLink",type:n,pure:true});}};var c$2=new Set(["ltd","llc","ooo","inc","gmbh","co","spa","corporation","limited","the","pty","pvt","international","srl","corp","pte","entertainment","free","ltda","bhd","groups","group","aps","pro","android","plc","pl","sa","ag","lp","llp","plus","enterprise","north","east","jsc","mbh","ict","abu","uab","games","studios","corps","mobile","oy"]),m$1=Array.from(c$2).join("|"),u=new RegExp(`\\b(${m$1})\\b`,"gi"),p$1=class t{constructor(e){this.translate=e;}transform(e){return e?t.format(e.name,e.head_company_name,this.translate):""}static format(e,r,n){if(!e)return "";let a=e;if(r&&!t.isHeadCompanyNameEqual(r,e)){let l=n.instant("appPage.publisher_head_company",{company_name:r});a+=` ${l}`;}return a}static isHeadCompanyNameEqual(e,r){let n=t.cleanCompanyName(e),a=t.cleanCompanyName(r);return n.toLowerCase()===a.toLowerCase()}static cleanCompanyName(e){return e.replace(u,"").replace(/[,.]/g," ").replace(/\s+/g," ").trim()}static{this.\u0275fac=function(r){return new(r||t)(Jr$4(x$d,16))};}static{this.\u0275pipe=fw({name:"formatPublisherName",type:t,pure:true});}};function E$1(o,n){if(o&1&&(Eg$1(0,"img",0),bb(1,"translate"),bb(2,"translate")),o&2){let e=NT();Ig$1("title",_b(1,5,e.googlePlayTitle()))("src",e.removedFromGooglePlay()?"/assets/angular2/img/googleStoreRemoved.svg":"/assets/angular2/img/googleStore.svg",qp$2)("textTooltip",_b(2,7,e.googlePlayTooltip()))("minHoverDuration",5)("placement","top");}}function P(o,n){if(o&1&&(Eg$1(0,"img",0),bb(1,"translate"),bb(2,"translate")),o&2){let e=NT();Ig$1("title",_b(1,5,e.appStoreTitle()))("src",e.removedFromAppStore()?"/assets/angular2/img/appleStoreRemoved.svg":"/assets/angular2/img/appleStore.svg",qp$2)("textTooltip",_b(2,7,e.appStoreTooltip()))("minHoverDuration",5)("placement","top");}}function B(o,n){o&1&&(Zi$3(0,"span"),ib(1," + "),kl$2());}function T$1(o,n){if(o&1&&(Zi$3(0,"span",2),bb(1,"translate"),uT(2,B,2,0,"span"),ib(3),bb(4,"translate"),kl$2()),o&2){let e=n.$implicit,t=n.$index;Ig$1("title",_b(1,3,e)),AE(2),dT(t!==0?2:-1),AE(),jl$2("",_b(4,5,e)," ");}}function O(o,n){if(o&1&&(Zi$3(0,"span",1),hT(1,T$1,5,7,"span",2,pT),kl$2()),o&2){let e=NT();AE(),gT(e.storesName());}}var N$1=class o{constructor(){this.stores=VV([]);this.removedStores=VV([]);this.showNamesForAllStores=VV(false);this.showStoreName=VV(true);this.shortStoreName=VV(false);this.size=VV(12);this.grey=VV(false);this.singleStores=Pb(()=>g$6.convertUnitedStoresToSingle(this.stores()));this.storesName=Pb(()=>this.showNamesForAllStores()?g$6.getAllStoresTitle(this.singleStores()):this.shortStoreName()?["appRow."+this.singleStores()[0]]:[g$6.getStoreTitle(this.singleStores())]);this.removedFromGooglePlay=Pb(()=>this.removedStores().includes(1));this.removedFromAppStore=Pb(()=>{let n=this.stores().filter(t=>t===2||t===3),e=this.removedStores().filter(t=>t===2||t===3);return n.length>0&&n.every(t=>e.includes(t))});this.googlePlayTitle=Pb(()=>this.removedFromGooglePlay()?"":"stores.1");this.googlePlayTooltip=Pb(()=>this.removedFromGooglePlay()?"stores.removed":"");this.appStoreTitle=Pb(()=>this.removedFromAppStore()?"":g$6.getStoreTitle(this.singleStores().filter(n=>n!==1)));this.appStoreTooltip=Pb(()=>this.removedFromAppStore()?"stores.removed":"");}get sizeClass(){return this.size()?`size-${this.size()}`:""}get greyClass(){return this.grey()}static{this.\u0275fac=function(e){return new(e||o)};}static{this.\u0275cmp=sw({type:o,selectors:[["stores-info"]],hostVars:4,hostBindings:function(e,t){e&2&&(QT(t.sizeClass),Pg$1("grey",t.greyClass));},inputs:{stores:[1,"stores"],removedStores:[1,"removedStores"],showNamesForAllStores:[1,"showNamesForAllStores"],showStoreName:[1,"showStoreName"],shortStoreName:[1,"shortStoreName"],size:[1,"size"],grey:[1,"grey"]},decls:3,vars:3,consts:[["width","16","height","16",1,"store-icon",3,"title","src","textTooltip","minHoverDuration","placement"],[1,"store-icon-name"],[3,"title"]],template:function(e,t){e&1&&(uT(0,E$1,3,9,"img",0),uT(1,P,3,9,"img",0),uT(2,O,3,0,"span",1)),e&2&&(dT(t.singleStores().includes(1)?0:-1),AE(),dT(t.singleStores().includes(2)||t.singleStores().includes(3)?1:-1),AE(),dT(t.showStoreName()?2:-1));},dependencies:[fe$8,fe$6,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1003--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{white-space:nowrap;display:block}.grey[_nghost-%COMP%]   .store-icon-name[_ngcontent-%COMP%]{color:var(--grey-70)}.size-16[_nghost-%COMP%]   .store-icon[_ngcontent-%COMP%]{width:16px;padding-right:4px}.size-14[_nghost-%COMP%]   .store-icon-name[_ngcontent-%COMP%]{font-size:14px;line-height:20px}.size-12[_nghost-%COMP%]   .store-icon-name[_ngcontent-%COMP%]{font-size:12px;line-height:16px}[_nghost-%COMP%]   .store-icon[_ngcontent-%COMP%]{box-sizing:content-box;min-width:16px;vertical-align:text-top;line-height:12px;padding-right:2px}@media(max-width:767px){[_nghost-%COMP%]   .store-icon[_ngcontent-%COMP%]{min-width:14px;height:14px;width:14px}}[_nghost-%COMP%]   .store-icon-name[_ngcontent-%COMP%]{margin-right:5px;margin-left:2px;font-size:12px}@media(max-width:767px){[_nghost-%COMP%]   .store-icon-name[_ngcontent-%COMP%]{line-height:14px;font-size:12px}}"]});}};var f$1=class u{static{this.regExpEmoji=/[\u{1f300}-\u{1f5ff}\u{1f900}-\u{1f9ff}\u{1f600}-\u{1f64f}\u{1f680}-\u{1f6ff}\u{2600}-\u{26ff}\u{2700}-\u{27bf}\u{1f1e6}-\u{1f1ff}\u{1f191}-\u{1f251}\u{1f004}\u{1f0cf}\u{1f170}-\u{1f171}\u{1f17e}-\u{1f17f}\u{1f18e}\u{3030}\u{2b50}\u{2b55}\u{2934}-\u{2935}\u{2b05}-\u{2b07}\u{2b1b}-\u{2b1c}\u{3297}\u{3299}\u{303d}\u{00a9}\u{00ae}\u{2122}\u{23f3}\u{24c2}\u{23e9}-\u{23ef}\u{25b6}\u{23f8}-\u{23fa}]/gu;}static getSanitizeForRegExp(e){for(e=e.replace(/[.?{}()+*!\[\]]/gi,"\\$&").replace(/(^NOT\|)|(\|NOT\|)|(\|OR\|)|(\|AND\|)/gi,"|").replace(/(^NOT )|( NOT )|( OR )|( AND )/gi,"|").replace(/[^0-9\p{L}\s"]/giu,"|").replace(/\s{2,}/gi," ").replace(u.regExpEmoji,"").replace(/"\s+/g,'"').replace(/\s+"/g,'"'),(e.match(new RegExp('"',"ig"))||[]).length>=2&&(e=e.replace(/"/gi,"\\b"));e.indexOf("||")!==-1;)e=e.replace("||","|");return e=e.replace(/\|$/,"").trim().replace(/^\|/,"").trim(),e=e.replace(/\|\\b\|/g,"|").replace(/^\\b\|/,"").replace(/\|\\b$/,""),e}static getRegExpFromString(e){let i=this.getSanitizeForRegExp(e);return i?new RegExp(i,"ig"):new RegExp("a^")}static replaceSpaces(e){let i=0,t="";for(let r of e)r==='"'&&(i+=1),r===" "?t+=i%2===1?" ":"|":t+=r;return t}static testHighlight(e,i){let t=qm$1(i),r=qm$1(e);return this.getRegExpFromString(u.replaceSpaces(t)).test(r)}static getHighlight(e,i,t='<span class="font-bold">$&</span>'){let r=qm$1(i),c=u.replaceSpaces(r),n=this.getRegExpFromString(c);return h$8.applyHighlightByPositions(e,qm$1(e),n,t)}static highlightOrOriginal(e,i,t){return i?this.getHighlight(e,i,t):e}};var a=class{static capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)}};var f=class s{constructor(e){this.httpClient=e;}get(){return this.httpClient.get(C$8.baseUrl+"/api/v2/last-date")}static{this.\u0275fac=function(t){return new(t||s)(me$b(Ue$7))};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var g=class s{constructor(){this.http=D$l(Ue$7);this.cacheService=D$l(X$7);}static{this.TopUrl=`${C$8.baseUrl}/api/v2/dmint/tops/creativeInfos`;}static{this.StatsUrl=`${C$8.baseUrl}/api/v2/dmint/tops/creatives/stats`;}static{this.MasScoreUrl=`${C$8.baseUrl}/api/v2/dmint/tops/creatives/maxScore`;}static{this.CreativeUrl=`${C$8.baseUrl}/api/v2/dmint/creatives`;}static{this.FilterValuesUrl=`${C$8.baseUrl}/api/v2/dmint/filterValues`;}static{this.DatesUrl=`${C$8.baseUrl}/api/v2/dmint/dates`;}static{this.SeriesUrl=`${C$8.baseUrl}/api/v2/dmint/series`;}static{this.AppSeriesUrl=`${C$8.baseUrl}/api/v2/dmint/appSeries`;}static{this.DownloadCreativesUrl=`${C$8.baseUrl}/api/v2/dmint/creatives/download/multi`;}static{this.DownloadCreativeUrl=`${C$8.baseUrl}/api/v2/dmint/creatives/download`;}static{this.CreativeStatsUrl=`${C$8.baseUrl}/api/v2/dmint/creatives/stats`;}stats(e){let t=new R$a({fromObject:n$b(e)}),r=s.StatsUrl,i=this.http.get(r,{params:t}),c={url:r,params:e};return this.cacheService.cacheObs(i,c,"AD-INT")}top(e){let t=new R$a({fromObject:n$b(e)}),r=s.TopUrl,i=this.http.get(r,{params:t}),c={url:r,params:e};return this.cacheService.cacheObs(i,c,"AD-INT")}creativesStats(e){let t=s.CreativeStatsUrl,r=this.http.post(s.CreativeStatsUrl,e),i={url:t,params:e};return this.cacheService.cacheObs(r,i,"AD-INT")}maxScore(e){let t=new R$a({fromObject:n$b(e)}),r=this.http.get(s.MasScoreUrl,{params:t}),i={url:s.MasScoreUrl,params:e};return this.cacheService.cacheObs(r,i,"AD-INT")}creative(e){let t=new R$a({fromObject:n$b(e)}),r=s.CreativeUrl,i=this.http.get(r,{params:t}),c={url:r,params:e};return this.cacheService.cacheObs(i,c,"AD-INT")}getFilterValues(){return this.http.get(s.FilterValuesUrl)}
1003getLastDate(){return this.http.get(s.DatesUrl)}series(e){return this.http.post(s.SeriesUrl,e)}appSeries(e){return this.http.post(s.AppSeriesUrl,e)}static{this.\u0275fac=function(t){return new(t||s)};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var D$1=class s{constructor(){this.resource=D$l(g);}getTopCreatives(e){let t=v$6.deepCopy(e);return t.tagSets&&(t.tagSets=t.tagSets[0].join(",")),this.resource.top(t).pipe(ge$9(r=>r?.data))}getStats(e){return this.resource.stats(e)}getCreativesStats(e){return this.resource.creativesStats(e)}getMaxScore(e){return this.resource.maxScore(e).pipe(ge$9(t=>t?.maxScore))}getCreative(e,t,r){let i={id:e,country:t,scoreMetric:"impression"};return r&&(i.type=r),this.resource.creative(i)}getFilterValues(){return this.resource.getFilterValues()}getLastDate(){return this.resource.getLastDate()}getSeries(e){return this.resource.series(e).pipe(ge$9(t=>t.data??[]))}getAppSeries(e){return this.resource.appSeries(e).pipe(ge$9(t=>t.data??[]))}static{this.\u0275fac=function(t){return new(t||s)};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var C=class s{constructor(){this.http=D$l(Ue$7);this.cacheService=D$l(X$7);}static{this.GetGamesUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/games`;}static{this.GetLiveOpsUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/live-ops`;}static{this.GetLiveOpsUrlV2=`${C$8.baseUrl}/api/v2/feature-intelligence/live-ops-v2`;}static{this.GetLiveOpsCalendarUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/live-ops-calendar`;}static{this.GetOffersUrl=`${C$8.baseUrl}/api/v2/monetization-intelligence/offers`;}static{this.GetComparisonUrl=`${C$8.baseUrl}/api/v2/monetization-intelligence/offers/comparison`;}static{this.GetDatesUrl=`${C$8.baseUrl}/api/v2/monetization-intelligence/offers/dates`;}static{this.GetUpdatesUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/updates`;}static{this.GetChartDataUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/chart-data`;}static{this.GetLOTagsCountUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/live-ops/count-by-tags`;}static{this.GetLODatesUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/live-ops/dates`;}static{this.GetLORevenueTrendPeriodAllStoresUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/revenue-impact-periods-all-stores`;}static{this.GetDetailedDescriptionUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/detailed-description`;}static{this.GetLiveOpsInsightsUrl=`${C$8.baseUrl}/api/v2/feature-intelligence/insights`;}getLORevenueImpactAllStoresPeriods(e){let t=new R$a({fromObject:n$b(e)}),r=s.GetLORevenueTrendPeriodAllStoresUrl,i=this.http.get(r,{params:t}),c={url:r,params:e};return this.cacheService.cacheObs(i,c,"FEATURE-INT")}getLODates(){let e=s.GetLODatesUrl,t=this.http.get(e,{}),r={url:e,params:{}};return this.cacheService.cacheObs(t,r,"FEATURE-INT")}getLiveOpsTagsCount(e){let t=this.http.post(s.GetLOTagsCountUrl,e),r={url:s.GetLOTagsCountUrl,params:e};return this.cacheService.cacheObs(t,r,"FEATURE-INT",["featureIntShowAllApps"])}getLiveOpsInsights(e){let t=this.http.post(s.GetLiveOpsInsightsUrl,e),r={url:s.GetLiveOpsInsightsUrl,params:e};return this.cacheService.cacheObs(t,r,"FEATURE-INT",["featureIntShowAllApps"])}getLiveOpsChartData(e){let t=this.http.post(s.GetChartDataUrl,e),r={url:s.GetChartDataUrl,params:e};return this.cacheService.cacheObs(t,r,"FEATURE-INT")}getDates(){let e=this.http.get(s.GetDatesUrl),t={url:s.GetDatesUrl,params:{}};return this.cacheService.cacheObs(e,t,"FEATURE-INT")}getLiveOpsUpdatesDescription(e){let t=this.http.get(s.GetLiveOpsUrl,{params:{gameName:e}}),r={url:s.GetLiveOpsUrl,params:{gameName:e}};return this.cacheService.cacheObs(t,r,"FEATURE-INT",["featureIntShowAllApps"])}getLiveOpsUpdatesCalendar(e){let t=this.http.get(s.GetLiveOpsCalendarUrl,{params:{gameName:e}}),r={url:s.GetLiveOpsCalendarUrl,params:{gameName:e}};return this.cacheService.cacheObs(t,r,"FEATURE-INT")}searchLiveOps(e){let t=this.http.post(s.GetLiveOpsUrl,D$m({},e)),r={url:s.GetLiveOpsUrl,params:e};return this.cacheService.cacheObs(t,r,"FEATURE-INT",["featureIntShowAllApps"])}liveOpsV2(e){let t=this.http.post(s.GetLiveOpsUrlV2,D$m({},e)),r={url:s.GetLiveOpsUrlV2,params:e};return this.cacheService.cacheObs(t,r,"FEATURE-INT")}
1003getLiveOpsUpdates(e){let t=this.http.get(s.GetUpdatesUrl,{params:{gameName:e}}),r={url:s.GetUpdatesUrl,params:{gameName:e}};return this.cacheService.cacheObs(t,r,"FEATURE-INT")}getGames(){let e=this.http.get(s.GetGamesUrl),t={url:s.GetGamesUrl,params:{}};return this.cacheService.cacheObs(e,t,"FEATURE-INT")}getUnitedOffers(e){let t=this.http.post(s.GetOffersUrl,e),r={url:s.GetOffersUrl,params:e};return this.cacheService.cacheObs(t,r,"FEATURE-INT")}getComparisonData(e){let t=new R$a({fromObject:n$b(e)}),r=this.http.get(s.GetComparisonUrl,{params:t}),i={url:s.GetComparisonUrl,params:e};return this.cacheService.cacheObs(r,i,"FEATURE-INT")}getDetailedDescription(e){let t=s.GetDetailedDescriptionUrl;return this.http.get(t,{params:{id:e}})}static{this.\u0275fac=function(t){return new(t||s)};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var S=class s{constructor(){this.httpClient=D$l(Ue$7);this.cacheService=D$l(X$7);}static{this.GetUrl=C$8.baseUrl+"/api/v2/period-comparison/compare";}static{this.GetCustomAppsUrl=C$8.baseUrl+"/api/v2/period-comparison/custom-apps";}static{this.GetLastDateUrl=C$8.baseUrl+"/api/v2/period-comparison/last-date";}getChart(e){let t=s.GetUrl,r=this.httpClient.post(t,e),i={url:t,params:e};return this.cacheService.cacheObs(r,i)}getCharByCustomApps(e){let t=s.GetCustomAppsUrl,r=this.httpClient.post(t,e),i={url:t,params:e};return this.cacheService.cacheObs(r,i)}getLastDate(){return this.httpClient.get(s.GetLastDateUrl)}static{this.\u0275fac=function(t){return new(t||s)};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var F=class s{constructor(e,t,r,i,c,$,M,z){this.adIntelligenceRequestService=e;this.lastDateResource=t;this.featureIntResource=r;this.periodCompareResource=i;this.centrifugeService=c;this.rootConfigService=$;this.cacheService=M;this.userService=z;this.adIntLastDate=new rr$4(null);this.adIntFirstDate=new rr$4(null);this.monetizationIntLastDate=new rr$4(null);this.monetizationIntFirstDate=new rr$4(null);this.periodCompareLastDate=new rr$4(null);this.periodCompareFirstDate=new rr$4(R$9);this.lastTimeRequest=0;setInterval(()=>{this.getLastDate().subscribe(({lastDate:O})=>this.updateLastDate(O)),this.getAdIntLastDate().subscribe();},kt$3.hourInMs),this.lastDate=new rr$4($.config.lastDate),this.centrifugeService.events.subscribe(O=>{O.event==="updateLastDate"&&this.updateLastDate(O.data);});}static isLastDayOf(e,t){let r=kt$3.getTimeUnitByAggregation(t),i=kt$3.getDate(e),c=kt$3.endOf(i,r);return e===kt$3.format(c)}updateLastDate(e){this.lastDate.getValue()!==e&&(this.cacheService.clearGroupCache("GENERAL"),this.lastDate.next(e));}updateAdIntDates(e){let t=this.adIntLastDate.getValue()!==e.lastDate,r=this.adIntFirstDate.getValue()!==e.firstDate;(t||r)&&this.cacheService.clearGroupCache("AD-INT"),t&&this.adIntLastDate.next(e.lastDate),r&&this.adIntFirstDate.next(e.firstDate);}updateMonetizationIntDates(e){let t=this.monetizationIntLastDate.getValue()!==e.lastDate,r=this.monetizationIntFirstDate.getValue()!==e.firstDate;(t||r)&&this.cacheService.clearGroupCache("FEATURE-INT"),t&&this.monetizationIntLastDate.next(e.lastDate),r&&this.monetizationIntFirstDate.next(e.firstDate);}updatePeriodCompareDates(e){this.periodCompareLastDate.getValue()!==e&&this.periodCompareLastDate.next(e);}getLastDate(){return this.lastDateResource.get().pipe(Mu$2())}getMonetizationIntDates(){return this.featureIntResource.getDates().pipe(Tn$3(e=>!!e),Lu$2(e=>{this.updateMonetizationIntDates({firstDate:e.firstDate,lastDate:e.lastDate});}),Mu$2())}getPeriodCompareLastDate(){return this.periodCompareResource.getLastDate().pipe(ge$9(e=>e.date),Lu$2(e=>this.updatePeriodCompareDates(e)))}getAdIntLastDate(e){return e=this.userService.isGuest()?e:true,!(performance.now()-this.lastTimeRequest>=kt$3.hourInMs)&&this.adIntLastDate.getValue()||!e?Ms$2({lastDate:this.adIntLastDate.getValue(),firstDate:this.adIntFirstDate.getValue()}):(this.lastTimeRequest=performance.now()-50,this.adIntelligenceRequestService.getLastDate().pipe(Mu$2(),ge$9(r=>(this.updateAdIntDates(r),r))))}static{this.\u0275fac=function(t){return new(t||s)(me$b(D$1),me$b(f),me$b(C),me$b(S),me$b(ne$8),me$b(O$a),me$b(X$7),me$b(ve$6))};}static{this.\u0275prov=G$f({token:s,factory:s.\u0275fac,providedIn:"root"});}};var i=class{constructor(e){this.id=e.id,this.name=e.name,this.parentCategory=e.parent_category,this.store=e.store,this.storeCategoryId=e.store_category_id;}};var d$3=[4,16,17,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56,57,58,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,91,103,104,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,136,137,138,139,140,141,142,143,144,145,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,237,238,239,135,48],m=d$3;var c$1=class o{constructor(e){this.rootConfigService=e;this.excludeTypes=["downloads","revenue"];this.excludedCategoryIds=m;let r=this.rootConfigService.config.categories||[];this.categories=r.filter(t=>!this.excludedCategoryIds.includes(t.id)).map(t=>new i(t));}static{this.overallName="Overall";}static getCategoryById(e,r){return r.find(t=>
1003t.id===e)}static isOverallSelection(e){return e.length===1&&e[0]===""}getOverallCategoryIds(){return this.categories.filter(e=>e.name===o.overallName).map(e=>e.id)}getCategoryById(e){return this.categories.find(r=>r.id===e)}getName(e,r="categories.Overall"){if(!e||e==="")return r;try{let t=e.split(","),n=this.getFirstCategoryByStringIds(t);return n?"categories."+n.name:r}catch(t){return e}}getFirstCategoryByStringIds(e){return this.categories.find(r=>r.id===parseInt(e[0],10))}getFullCategoryNameByStringId(e){if(!e)return o.overallName;let r=this.getFirstCategoryByStringIds([String(e)]);return this.getFullCategoryNameById(`${r.id}`)}getFullCategoryNameById(e){let r=typeof e=="string"?e.split(","):e;if(r[0]==="")return o.overallName;let t=this.getCategoryById(+r[0]);return this.getCategoryById(t.parentCategory).name+" \u2014 "+t.name}isCategoryDisallowedByType(e){return this.excludeTypes.indexOf(e)!==-1}categoriesToStores(e){let r=new Set;return this.categories.forEach(t=>{(e.includes("")||e.includes(String(t.id)))&&r.add(t.store);}),[...r]}getGameCategoriesIds(){let e=this.categories.filter(t=>t.name==="Games").map(t=>t.id),r=this.categories.filter(t=>e.includes(t.parentCategory)).map(t=>t.id);return e.concat(r)}static{this.\u0275fac=function(r){return new(r||o)(me$b(O$a))};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var d$2=class r{constructor(e,s){this.http=e;this.cacheService=s;}static{this.ApplicationsUrl=`${C$8.baseUrl}/api/v2/search/applications`;}static{this.SearchByIdsUrl=`${C$8.baseUrl}/api/v2/united-applications/search-by-ids`;}static{this.DataCountriesUrl=`${C$8.baseUrl}/api/v2/united-applications/data-countries`;}static{this.SuggestTagsUrl=`${C$8.baseUrl}/api/v2/support/suggest-application-tags`;}static{this.AppInfoByIdsUrl=`${C$8.baseUrl}/api/v2/applications/app-info`;}static{this.AppInfoReleasesUrl=`${C$8.baseUrl}/api/v2/applications/app-info/releases`;}static{this.GroupedReleasesUrl=`${C$8.baseUrl}/api/v2/applications/grouped-releases`;}static{this.AppSdkUrl=`${C$8.baseUrl}/api/v2/applications/sdks`;}static{this.AdvSearchV2Url=`${C$8.baseUrl}/api/v2/search/advanced`;}static{this.AdvSearchAIUrl=`${C$8.baseUrl}/api/v2/search/advanced/ai`;}static{this.AdvSearchSdkUrl=`${C$8.baseUrl}/api/v2/sdks`;}static{this.AppInfoRpdUrl=`${C$8.baseUrl}/api/v2/applications/rpd`;}static{this.SuggestMergeUrl=`${C$8.baseUrl}/api/v2/applications/suggest-merge`;}applications(e={}){let s=e.onlyWithAdvImp||e.onlyWithPubImp?"AD-INT":"GENERAL",t=new s$m({fromObject:n$b(e)}),p=this.http.get(r.ApplicationsUrl,{params:t}),i={url:r.ApplicationsUrl,params:e};return this.cacheService.cacheObs(p,i,s)}searchByIds(e={ids:[]}){let s=this.http.post(r.SearchByIdsUrl,e),t={url:r.SearchByIdsUrl,params:e};return this.cacheService.cacheObs(s,t)}appSdk(e){let s=this.http.post(r.AppSdkUrl,e),t={url:r.AppSdkUrl,params:e};return this.cacheService.cacheObs(s,t)}appInfo(e){let s=this.http.post(r.AppInfoByIdsUrl,e),t={url:r.AppInfoByIdsUrl,params:e};return this.cacheService.cacheObs(s,t)}appInfoReleases(e){let s=this.http.post(r.AppInfoReleasesUrl,e),t={url:r.AppInfoReleasesUrl,params:e};return this.cacheService.cacheObs(s,t)}groupedReleases(e){let s=this.http.post(r.GroupedReleasesUrl,e),t={url:r.GroupedReleasesUrl,params:e};return this.cacheService.cacheObs(s,t)}rpd(e){return this.http.get(r.AppInfoRpdUrl,{params:{united_application_id:e}})}dataCountries(e){let s=new R$a({fromObject:n$b({united_application_id:e})});return this.http.get(r.DataCountriesUrl,{params:s})}suggestTags(e,s,t){return this.http.post(r.SuggestTagsUrl,{store:e,store_application_id:s,message:t})}search(e){let s=this.http.post(r.AdvSearchV2Url,e),t={url:r.AdvSearchV2Url,params:e};return this.cacheService.cacheObs(s,t)}advancedSearchAI(e){return this.http.post(r.AdvSearchAIUrl,e)}getSdk(e){let s=this.http.get(r.AdvSearchSdkUrl,{params:e}),t={url:r.AdvSearchSdkUrl,params:e};return this.cacheService.cacheObs(s,t)}suggestMerge(e){let s=this.http.post(r.SuggestMergeUrl,{text:e}),t={url:r.SuggestMergeUrl,params:{text:e}};return this.cacheService.cacheObs(s,t)}static{this.\u0275fac=function(s){return new(s||r)(me$b(Ue$7),me$b(X$7))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};
1003var h=class r{constructor(e){this.resource=e;}static getSortedAppsByAppIds(e,s){if(!e||e.length===0)return [];let t=[];return s.forEach(p=>{let i=`${p.store}_${p.store_application_id}`,l=e.find(m=>m.store_ids.includes(i));l&&!t.find(m=>m.id===l.id)&&t.push(l);}),t}getApps(e={}){return this.resource.applications(e).pipe(ge$9(s=>s.data))}searchByIds(e={ids:[]}){let s=a$c.getQueriesChunks(e.ids,100);return Wm$2(s.map(t=>this.resource.searchByIds({ids:t}))).pipe(ge$9(t=>{let p={data:[]};return t.forEach(i=>p.data=p.data.concat(i.data)),r.getSortedAppsByAppIds(p.data,e.ids)}))}appInfoReleases(e){return this.resource.appInfoReleases(e).pipe(ge$9(s=>s.releases))}groupedReleases(e){return this.resource.groupedReleases(e).pipe(ge$9(s=>s.data))}getAppInfo(e){return this.resource.appInfo(e).pipe(ge$9(s=>s?.data))}getRpd(e){return this.resource.rpd(e).pipe(ge$9(s=>s.data))}getDataCountries(e){return this.resource.dataCountries(e)}suggestTags(e,s,t){return this.resource.suggestTags(e,s,t)}search(e){return this.resource.search(e)}advancedSearchAI(e){return this.resource.advancedSearchAI(e)}getSdk(e){return this.resource.getSdk(e).pipe(ge$9(s=>s.data),xs$1(()=>Ms$2([])))}getAppSdk(e){return this.resource.appSdk(e)}static{this.\u0275fac=function(s){return new(s||r)(me$b(d$2))};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var l=class m{constructor(o){this.router=o;this.urlChange=this.router.events.pipe(Tn$3(r=>r instanceof P$8),ge$9(r=>r.url),Au$2(this.router.url),Su$2(),Tn$3(([r,t])=>!m.isSameUrl(r,t)),ge$9(()=>{}));}static isSameUrl(o,r){let t=[o,r].map(p=>p.split("?")[0]);return t[0]===t[1]}};var s$2=(e,l,n=[])=>({onOpen:c=>{e(l,c.concat(n));},onSearch:c=>{e("country_select_single_search",c.concat(n));},closeBackdrop:c=>{e("country_select_single_close_backdrop",c.concat(n));},closeEsc:c=>{e("country_select_single_close_esc",c.concat(n));},closeCancel:c=>{e("country_select_single_close_cancel",c.concat(n));},closeApply:c=>{e("country_select_single_select_country",c.concat(n));}});var o$2=(t=>(t.recentlyUsed="recently_used",t.noLongerAvailable="no_longer_available",t.country="country",t.region="region",t))(o$2||{});var p=["AU","IN","TH","CN","JP","KR","HK","TW","ID","MY","SG","PH","VN","BD","CX","AM","BN","KH","GE","KG","LA","MO","MV","MN","MM","PS","LK","TJ","TL","TM","UZ","AQ","BV","IO","CC","CK","FJ","PF","NP","TF","GU","HM","KI","FM","NR","AN","NC","NZ","NU","NF","MP","PW","PG","PN","WS","SB","GS","TK","TO","TV","VU","WF","MH"],R$2=["RU","FR","IT","DE","GB","ES","NL","CH","SE","PL","BE","NO","AT","DK","IE","AX","AL","AD","AZ","BY","BA","BG","HR","CZ","EE","FO","FI","GI","GR","GG","VA","HU","IS","IM","JE","LV","LI","LT","LU","MK","MT","MD","MC","ME","PT","RO","SM","RS","SK","SI","SJ","UA","CY","SA","TR","IR","AE","EG","IL","JO","SY","LB","IQ","PK","AF","KW","BH","QA","YE","OM","NG","ZA","DZ","AO","BJ","BW","BF","BI","CM","CV","CF","TD","KM","CG","CD","CI","DJ","GQ","ER","ET","GA","GM","GH","GN","GW","KZ","KE","LS","LR","LY","MG","MW","ML","MR","MU","YT","MA","MZ","NA","NE","RE","RW","SH","ST","SN","SC","SL","SO","SD","SZ","TZ","TG","TN","UG","EH","ZM","ZW"],M=["US","CA","BR","MX","AR","CO","AI","AG","AW","BS","BB","BZ","BM","BT","BO","KY","CL","CR","CU","DM","DO","EC","SV","FK","GF","GL","GD","GP","GT","GY","HT","HN","JM","MQ","MS","NI","PA","PY","PE","PR","BL","KN","LC","MF","PM","VC","SR","TT","TC","UY","VE","VG","VI","UM"];var d$1=(i=>(i.WW="WW",i.E1="E1",i.W1="W1",i))(d$1||{});var c=class r{constructor(){this.multiCountries={WW:[],E1:[],W1:[]};this.translateService=D$l(x$d);this.localStorageService=D$l(xt$5);this.rootConfigService=D$l(O$a);this.init();}static{this.regions=["WW","W1","E1"];}static{this.pricingCountries={EU:["AT","BE","BG","HU","DE","GR","DK","IE","ES","IT","CY","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","FI","FR","HR","CZ","SE","EE"],bigAsians:["CN","JP","SG","KR","TW","HK"]};}static{this.countryRegionKey="countrySelect.country_region";}static{this.CountrySelectRecentlyUsedKey="CountrySelectRecentlyUsed";}static{this.SingleCountryRecentlyUsedLimit=5;}
1003static{this.MultiCountryRecentlyUsedLimit=8;}static{this.OtherCountriesKey="Other";}init(){let t=this.rootConfigService.config;this.countries=t.parserCountries||[];for(let e in t.countries)r.regions.includes(e)&&(this.multiCountries[e]=t.countries[e].filter(i=>this.countries.includes(i)));this.appCrossUsageCountries=this.rootConfigService.config.appCrossUsageCountries??[];}static getFlag(t){return t.length>1||t[0]&&r.regions.includes(t[0])||t[0]?.includes("-")?null:t[0]}static sortCountries(t,e){let i=t,n=i.map(s=>e("countries."+s));return n.sort(),i.sort((s,o)=>{if(s===r.OtherCountriesKey)return 0;let l=n.indexOf(e("countries."+s)),a=n.indexOf(e("countries."+o));return l<0?1:a<0?-1:l-a}),i}getRecentlyUsedCountries(t=false){let e=this.localStorageService.get(r.CountrySelectRecentlyUsedKey)??[],i=t?r.MultiCountryRecentlyUsedLimit:r.SingleCountryRecentlyUsedLimit;return e.slice(0,i)}setRecentlyUsedCountries(t){this.localStorageService.set(r.CountrySelectRecentlyUsedKey,t);}setRecentlyUsedCountry(t,e=false){if(!this.getCountries().includes(t))return;let i=this.getRecentlyUsedCountries(e).filter(s=>s!==t);i.unshift(t);let n=Math.max(r.MultiCountryRecentlyUsedLimit,r.SingleCountryRecentlyUsedLimit);this.setRecentlyUsedCountries(i.slice(0,n));}static getCountriesFromItem(t){return Array.from(new Set([...t.countries??[],...t.dataCountries??[]]))}static regionExists(t){return r.regions.includes(t)}static getViewCountriesList(t){return [{key:"NT",values:M.filter(e=>t.includes(e))},{key:"AS",values:p.filter(e=>t.includes(e))},{key:"EM",values:R$2.filter(e=>t.includes(e))}]}static getAllCountriesByMultiCountries(t){return t?t.WW:[]}getTierOneWestCountries(){return [...this.multiCountries.W1??[]]}getTierOneEastCountries(){return [...this.multiCountries.E1??[]]}static sortRegions(t){return t.sort((e,i)=>{let n=r.regions,s=n.indexOf(e),o=n.indexOf(i);return s<0?1:o<0?-1:s-o}),t}static getRegions(){return r.sortRegions(r.regions)}isChinaUser(){return ["cn","hk"].includes(this.rootConfigService.config.country)}getCountriesListName(t=false){return this.isChinaUser()||t?r.countryRegionKey:"countrySelect.country"}getCountries(t=false){let e=this.countries;return t?this.sortCountriesByTranslations(e):e}getAllCountries(t=false){let e=this.rootConfigService.config.countries.WW;return t?this.sortCountriesByTranslations(e):e}getMultiCountries(t=[]){let e={};return t$k(this.multiCountries).forEach(i=>{e[i]=this.multiCountries[i].filter(n=>t.length===0||t.includes(n));}),e}sortCountries(t){return r.sortCountries(t,e=>this.translateService.instant(e))}getRegionsByCountries(t){let e=Object.assign({},this.getMultiCountries()),i=["WW"];for(let n in e)e[n].forEach(s=>{r.regions.includes(n)&&i.indexOf(n)===-1&&t.indexOf(s)!==-1&&i.push(n);});return r.sortRegions(i)}sortCountriesByTranslations(t){let e=t.map(n=>({country:n,value:this.translateService.instant("countries."+n)}));return Ul$1(e,"value").map(n=>n.country)}static{this.\u0275fac=function(e){return new(e||r)};}static{this.\u0275prov=G$f({token:r,factory:r.\u0275fac,providedIn:"root"});}};var s$1=class s{static fromApplication(e,t={}){if(e.applications)return D$m({unitedApplication:e},t);let r=e.store;return D$m({parentId:{store:Array.isArray(r)?r[0]:e.store,store_application_id:e.store_application_id}},t)}static fromStoreId(e,t={}){return D$m({parentId:m$7.getAppIdFromStoreId(e)},t)}static convertUnitedForAppInfo(e,t){if(t.selectedStore=t.selectedStore?t.selectedStore:5,!t.selectedApp){let r=[...e.applications].sort((i,c)=>c.score-i.score),p=r.filter(i=>t.selectedStore===5||t.selectedStore===i.store[0]||t.selectedStore===4&&(i.store[0]===2||i.store[0]===3))[0]??r[0];t.selectedApp={store_application_id:p.store_application_id,store:p.store[0]};}return t.unitedApplication=e,t}};var Q=(r=>(r.info="info",r.featuring="featuring",r.competitors="competitors",r.history="history",r))(Q||{});var k=(g=>(g.ContentRating="content_rating",g.Description="description",g.EulaUrl="eula_url",g.IconUrl="icon_url",g.InAppPurchases="in_app_purchases",g.Languages="languages",g.Name="name",g.PriceInfo="price_info",g.PrivacyPolicyUrl="privacy_policy_url",g.PublisherAddress="publisher_address",g.PublisherId="publisher_id",g.PublisherName="publisher_name",g.PublisherUrl="publisher_url",g.Screenshots="screenshot_urls",g.Subtitle="subtitle",g.Supp
1003ortEmail="support_email",g.SupportUrl="support_url",g.VideoUrl="video_url",g.WebsiteUrl="website_url",g))(k||{}),j$1=Object.values(k);var J$1=(t=>(t.appHistoryFields="appHistoryFields",t.country="country",t))(J$1||{});var ot={country:void 0,appHistoryFields:Object.values(j$1).sort()};var Ce=(e=>(e.infoCountry="infoCountry",e))(Ce||{});var st={infoCountry:void 0};var Te=(i=>(i.featuringCountry="featuringCountry",i.featuringDate="featuringDate",i.featuringTypes="featuringTypes",i))(Te||{});var pt=[{value:1,name:"featuring.types.1"},{value:2,name:"featuring.types.2"},{value:3,name:"featuring.types.3"},{value:4,name:"featuring.types.4"},{value:5,name:"featuring.types.5"},{value:6,name:"featuring.types.6"},{value:7,name:"featuring.types.7"},{value:8,name:"featuring.types.8"},{value:9,name:"featuring.types.9"},{value:10,name:"featuring.types.10"},{value:11,name:"featuring.types.11"}];var R$1=class o{constructor(e,t){this.translateService=e;this.send=t;this.valueItemAll={value:o.valueAll,name:"adIntelligence.all_types"};this.valueItemOther=pt;this.valueAll=o.valueAll;this.panelTitle="featuring.types_title";this.title="featuring.types_title";this.valuesTitle="featuring.types";this.values=this.translateService.onLangChange.pipe(Au$2(this.translateService.currentLang),wu$2(0),ge$9(i=>{let r=this.valueItemOther.map(s=>E$9(D$m({},s),{name:this.translateService.instant(s.name)}));return [E$9(D$m({},this.valueItemAll),{name:this.translateService.instant(this.valueItemAll.name)}),...r.sort((s,a)=>s.name>a.name?1:-1)]})),this.analytics={onOpen:i=>{this.send("app_feature_type_selector_open",o.parseAnalyticsServiceValue(i));},onChange:i=>{this.send("app_feature_type_selector_change",o.parseAnalyticsServiceValue(i));},closeBackdrop:i=>{this.send("app_feature_type_selector_close_backdrop",o.parseAnalyticsServiceValue(i));},closeEsc:i=>{this.send("app_feature_type_selector_close_esc",o.parseAnalyticsServiceValue(i));},closeApply:i=>{this.send("app_feature_type_selector_close_apply",o.parseAnalyticsServiceValue(i));},closeCancel:i=>{this.send("app_feature_type_selector_close_cancel",o.parseAnalyticsServiceValue(i));},onSelectAll:i=>{this.send("app_feature_type_selector_select_all",o.parseAnalyticsServiceValue(i));},tooltipText:"app_feature_type_selector_show_help_tooltip"};}static{this.valueAll="";}static parseAnalyticsServiceValue(e){return e.map(t=>t.toString())}};var at={featuringCountry:void 0,featuringDate:void 0,featuringTypes:[R$1.valueAll]};var Y$1={history:D$m({},ot),info:D$m({},st),featuring:D$m({},at)};var d=class o{static{this.SavedSelectorsStateKey="AppPageSavedSelectorsStateKey";}static getState(e){let t=e.get(o.SavedSelectorsStateKey);return t?D$m(D$m({},Y$1),t):(o.setState(D$m({},Y$1),e),D$m({},Y$1))}static setState(e,t){return t.set(o.SavedSelectorsStateKey,e)}static getStateByKey(e,t){return o.getState(t)[e]}static setStateByKey(e,t,i){let r=o.getState(i);r[e]=t,o.setState(r,i);}};var X=class{static get(e,t){return e||(t.store===1?`http://play.google.com/store/apps/details?id=${t.store_application_id}`:`https://apps.apple.com/us/app/id${t.store_application_id}`)}};var q$1=class o{static get(e,t,i,r,s){if(!t){let p=g$6.convertUnitedStoresToSingle([r.store]);return e.find(l=>l.applications[0].store_application_id===r.store_application_id&&l.mergedStores.some(c=>p.includes(c)))}let a=o.filterByStore(e,s),m=(i??[]).map(p=>a.find(l=>l.applications[0].store_application_id===p.store_application_id&&l.mergedStores.includes(p.store))).find(Boolean);return m||a.reduce((p,l)=>l.applications[0].score>p.applications[0].score?l:p,a[0])}static filterByStore(e,t){if(!t||t===5)return e;let i=g$6.convertUnitedStoresToSingle([t]),r=e.filter(s=>s.mergedStores.some(a=>i.includes(a)));return r.length?r:e}static resolveStore(e,t){let i=g$6.convertUnitedStoresToSingle([t]);return e.find(r=>i.includes(r))??e[0]}};var ee=class{constructor(e,t,i,r,s,a,m,p,l,c){this.appInfoData=t;this.selectAppByPriority=i;this.infoAppLang=r;this.infoRepository=s;this.infoAppGallery=a;this.onInfoDataLoad=m;this.categoryService=p;this.countriesService=l;this.featureToggleService=c;
1003this.childAppSubject=new rr$4(null);this.childApp=this.childAppSubject.asObservable();this.currentCountry=new rr$4(null);this.infoDataRes=new rr$4(null);this.infoDataReleases=fi$4([]);this.sdkValues=new rr$4(null);this.requestLoading=new rr$4(false);this.webShops=[];this.webShopSdks=new rr$4([]);this.mergedChildApps=g$6.mergeIphoneIpadApps(e),this.currentAppId=new rr$4({store:this.appInfoData.selectedApp.store,store_application_id:this.appInfoData.selectedApp.store_application_id}),this.appId=this.currentAppId.asObservable();let h=this.appInfoData.childInfo?.appsPriority||e.apps_priority,F=q$1.get(this.mergedChildApps,this.selectAppByPriority,h,this.appInfoData.selectedApp,this.appInfoData.selectedStore),Pe=h.find(f=>f.store_application_id===F.applications[0].store_application_id&&F.mergedStores.includes(f.store))?.country,mt=q$1.resolveStore(F.mergedStores,this.appInfoData.selectedApp.store);this.selectApp({store:mt,store_application_id:F.applications[0].store_application_id}),Pe&&this.changeCountry(Pe),this.appUrl=this.childApp.pipe(ge$9(f=>d$4.getAppPageHref(f.mergedStores[0],f.applications[0].store_application_id,f.applications[0].name)),ge$9(f=>`${window.origin}${f}`)),this.appLangString=this.infoAppLang.getString(this.childApp,this.appInfoData.selectedLanguages??[]),this.data=this.infoDataRes.asObservable(),this.storeAppUrl=this.infoDataRes.pipe(ge$9(f=>X.get(f?.application_url,this.getCurrentAppId))),this.slides=this.infoDataRes.pipe(ge$9(f=>this.infoAppGallery.getItems(f?.screenshot_urls?f.screenshot_urls:[],this.getCurrentAppId.store,f?.video_url))),this.countries=this.childApp.pipe(ge$9(f=>f?{all:f.applications[0].countries_with_app_info,active:f.mergedCountriesWithActiveAppInfo}:{all:[],active:[]})),this.highlightedDescription=this.infoDataRes.pipe(Tn$3(f=>!!f),ge$9(f=>f$1.highlightOrOriginal(f.description,this.appInfoData.childInfo?.searchDescription,'<span class="background-bright-yellow">$&</span>'))),this.webShops=e.web_shops;}get selectedCountry(){return this.currentCountry.asObservable()}get getCurrentAppId(){return this.currentAppId.getValue()}get loading(){return this.requestLoading.asObservable()}get sdk(){return this.sdkValues.asObservable()}getChildAppById(e){return this.mergedChildApps.find(t=>t.applications[0].store_application_id===e.store_application_id&&t.mergedStores.includes(e.store))}changeCountry(e){if(e===this.currentCountry.getValue())return;let t=this.currentAppId.getValue(),i=this.childAppSubject.getValue().getByAppId(t),r=i.countries_with_app_info.includes(e);this.currentCountry.next(r?e:i.countries_with_app_info[0]),this.updateInfoData();}selectApp(e,t=null){this.currentAppId.next(e);let i=this.getChildAppById(e);this.childAppSubject.next(i);let r=i.applications[0].countries_with_app_info;t&&r?this.currentCountry.next(r.some(s=>s===t)?t:r[0]):this.currentCountry.next(r?r[0]:null),this.updateInfoData();}updateInfoData(){if(!this.currentCountry.getValue()){this.infoDataRes.next(null),this.infoDataReleases.set([]);return}this.requestLoading.next(true);let e=this.childAppSubject.getValue(),t=e.applications[0].categories.map(p=>{let l=this.categoryService.getCategoryById(parseInt(p,10));return l?l.name:""}).filter(p=>p!=="Overall"&&p!=="");this.appCategories=[...new Set(t)];let i=this.infoRepository.getRequestData({store:this.getCurrentAppId.store,storeApplicationID:this.getCurrentAppId.store_application_id,country:this.currentCountry.getValue()}).pipe(Lu$2(({data:p,releases:l})=>{this.infoDataRes.next(p),this.infoDataReleases.set(l),this.onInfoDataLoad(p);})),r={store:e.mergedStores[0],storeApplicationID:e.applications[0].store_application_id},s=this.infoRepository.getAppSdk(r).pipe(Lu$2(p=>this.sdkValues.next(p))),a=[i,s],m=e.applications[0].web_shop_sdks;if(m?.length>0){let p=this.infoRepository.getSdkByIds({ids:m}).pipe(Lu$2(l=>this.webShopSdks.next(l)));a.push(p);}else this.webShopSdks.next([]);Wm$2(a).subscribe(()=>this.requestLoading.next(false));}};var te=class o{constructor(e){this.translateService=e;}static getTranslatedLang(e,t,i){let r=a.capitalize(i.instant("languages."+e));return t.includes(e)?`<b>${r}</b>`:r}static getPrepareLang(e,t,i){return e?e?.reduce((r,s)=>r.concat(o.getTranslatedLang(s,t,i)),[]).sort().join(", "):""}getString(e,t){return qm$2([e,this.translateService.onTranslationChange.pipe(Au$2(null))]).pipe(ge$9(([i,r])=>o.getPrepareLang(i?.applications[0].languages,t,this.translateService)))}};var ie=class{constructor(e){this.applicationsResource=e;this.query={store:null,storeApplicationID:"",country:""};}getRequestData(e){let t=new de$c;this.requestSubscription?.unsubscribe(),this.query=e;let i=this.applicationsResource.getAppInfo(this.query).pipe(Lu$2(r=>this.query.country=r?r.country:this.query.country));return this.requestSubscription=i.pipe(Du$2(r=>this.getReleasesRequest(r,e).pipe(ge$9(s=>({data:r,releases:s||[]})))),Mu$2()).subscribe(r=>{t.next(r);}),t.asObservable().pipe(Mu$2())}getReleasesRequest(e,t){if(!e)return Ms$2([]);let i={country:e.country,store:t.store,storeApplicationID:t.storeApplicationID};return this.applicationsResource.appInfoReleases(i)}getAppSdk(e){return this.applicationsResource.getAppSdk(e).pipe(Mu$2())}getSdkByIds(e){return this.applicationsResource.getSdk(e).pipe(Mu$2())}};var re=class{getItems(e,t,i){let r=e.map(s=>({src:m$7.fixImageSize(s),thumb:m$7.fixImageSize(s,250),type:"image"}));return i?[{src:i,type:t===1?"iframe":"video",isYoutube:o$7.isYoutube(i),isAppleVideo:o$7.isAppleVideo(i)},...r]:r}};var oe=class{constructor(e){this.send=e;this.onOpen=t=>{this.send("history_type_change_open",this.getValue(t));},this.onChange=t=>{this.send("history_type_change_change",this.getValue(t));},this.closeBackdrop=t=>{this.send("history_type_change_close_backdrop",this.getValue(t));},this.closeEsc=t=>{this.send("history_type_change_close_esc",this.getValue(t));},this.closeApply=t=>{this.send("history_type_change_close_apply",this.getValue(t));},this.closeCancel=t=>{this.send("history_type_change_close_cancel",this.getValue(t));},this.onSelectAll=t=>{this.send("history_type_change_select_all",this.getValue(t));},this.onDeselectAll=t=>{this.send("history_type_change_deselect_all",this.getValue(t));};}getValue(e){return e.map(t=>JSON.stringify(t))}};var Re=(s=>(s.metadata="metadata",s.creatives="creatives",s.appDetails="appDetails",s.publisher="publisher",s.monetization="monetization",s))(Re||{}),nt={metadata:"appHistory.group_metadata",creatives:"appHistory.group_creatives",appDetails:"appHistory.group_app_details",publisher:"appHistory.group_publisher",monetization:"appHistory.group_monetization"},lt={metadata:new Set(["name","subtitle","description"]),creatives:new Set(["icon_url","screenshot_urls","video_url"]),appDetails:new Set(["content_rating","languages","eula_url","privacy_policy_url","support_email","support_url","website_url"]),publisher:new Set(["publisher_name","publisher_id","publisher_address","publisher_url"]),monetization:new Set(["in_app_purchases","price_info"])};var Fe={name:"advancedSearch.name",subtitle:"appHistory.subtitle",description:"advancedSearch.description",icon_url:"appHistory.application_icon",screenshot_urls:"advancedSearch.screenshots",video_url:"appHistory.video",content_rating:"appHistory.content_rating",languages:"selectors.languages",eula_url:"appHistory.eula_url",privacy_policy_url:"appHistory.privacy_policy_url",support_email:"appPage.support_email",support_url:"appPage.support_url",website_url:"appHistory.website_url",publisher_name:"appHistory.publisher_name",publisher_id:"appHistory.publisher_id",publisher_address:"appHistory.publisher_address",publisher_url:"appHistory.publisher_url",in_app_purchases:"appPage.top_purchases_title",price_info:"appHistory.price_info"},E=E$9(D$m({},Fe),{application_url:"appHistory.application_url",original_description:"appHistory.original_description",privacy_policy_text_url:"appHistory.privacy_policy_text_url",contains_ads:"appHistory.contains_ads",free:"appHistory.free",has_in_app_purchases:"appHistory.has_in_app_purchases"});var se=class{constructor(e){this.send=e;this.values=Object.values(Re).flatMap(t=>[...lt[t]].map(i=>({value:i,name:Fe[i],highLightName:null,group:t,groupTitle:nt[t]}))),this.analyticEvents=new oe(this.send);}};var H$1=(p=>(p.text="text",p.screens="screens",p.iconUrl="iconUrl",p.boolean="boolean",p.textArray="textArray",p.priceInfo="priceInfo",p.purchases="purchases",p.video="video",p))(H$1||{});var G$1=class o{static getSortedByDate(e){let t=t$k(e).reduce((i,r)=>(e[r].forEach(s=>{i[s.date]||(i[s.date]={}),i[s.date][r]=s.value;}),i),{});return Object.keys(t).map(i=>({date:i,history:t[i]})).sort((i,r)=>kt$3.diff(new Date(r.date),new Date(i.date),"d"))}static getClosestOldValue(e,t,i){let r=e.slice(t).find(s=>!!s.history[i]);return r?r.history[i]:null}static getClosestOldValueIncludingNull(e,t,i){let r=e.slice(t).find(s=>Object.prototype.hasOwnProperty.call(s.history,i));return r?r.history[i]:null}static getByDateWithDiffs(e,t){let i=o.getSortedByDate(e);return i.map((r,s)=>({date:r.date,history:Object.keys(r.history).reduce((a,m)=>{let p=()=>({current:r.history[m],old:m==="price_info"?o.getClosestOldValueIncludingNull(i,s+1,m):o.getClosestOldValue(i,s+1,m)});return a.concat(t.getAppHistoryForField(m,p()))},[])}))}static getByDateWithRemovedEmptyDiff(e){return e.map((t,i,r)=>{let s=i===r.length-1;return E$9(D$m({},t),{history:t.history.filter(a=>{let{old:m,current:p}=a.diff,l=m&&p,c=a.type==="video"&&(m||p),h=a.type==="priceInfo"&&(m||p)&&!(s&&!m);return l||c||h})})}).filter(t=>!!t.history.length)}};var pe=class{constructor(e,t,i,r,s,a,m,p,l){this.appObservable=e;this.onSelectedCountryNotExistFn=r;this.appHistoryCountries=s;this.historyTypeGenerate=a;this.historyChangeSelect=m;this.appHistoryResource=p;this.localStorageService=l;this.history=new rr$4(void 0);this.selectedSubjects={country:new rr$4(void 0),historyTypes:new rr$4(j$1)};
1003this.countriesSubject=new rr$4([]);this.countriesLoadingSubject=new rr$4(false);this.historyLoading=new rr$4(false);this.selected={country:this.selectedSubjects.country.asObservable(),historyTypes:this.selectedSubjects.historyTypes.asObservable()};this.countries=this.countriesSubject.asObservable();this.countriesLoading=this.countriesLoadingSubject.asObservable();this.selectCountry(t),this.selectTypes(i),this.countriesAnalyticEvents=this.appHistoryCountries.countriesAnalyticEvents,this.loading=qm$2([this.countriesLoading.pipe(Au$2(false)),this.historyLoading.pipe(Au$2(false))]).pipe(ge$9(([c,h])=>c||h)),this.historyByDate=this.history.pipe(ge$9(c=>c?G$1.getByDateWithDiffs(c.history,this.historyTypeGenerate):[]),ge$9(c=>G$1.getByDateWithRemovedEmptyDiff(c)),No$3()),this.storeAppUrl=this.history.pipe(ge$9(c=>c?.application_url));}observeApp(){return this.appObservable.pipe(Tu$2(Tu$1),Tn$3(e=>(this.countriesSubject.next([]),this.history.next(void 0),!e.isRemoved)),Lu$2(e=>this.childAppId={store:e.mergedStores[0],store_application_id:e.applications[0].store_application_id}),Du$2(e=>this.getCountries(this.childAppId)),Tn$3(()=>this.countriesSubject.getValue().length>0&&!this.historyLoading.getValue()),Du$2(e=>this.getHistory()))}observeSelectors(){return qm$2({country:this.selectedSubjects.country.pipe(Tu$2(),Tn$3(e=>!!e)),historyTypes:this.selectedSubjects.historyTypes.pipe(Tu$2(Tu$1))}).pipe(Tn$3(()=>this.countriesSubject.getValue().length>0&&!this.historyLoading.getValue()),Du$2(()=>this.getHistory()))}getHistory(){return this.selectedSubjects.historyTypes.getValue()?.length?(this.historyLoading.next(true),this.appHistoryResource.info({store:this.childAppId.store,storeApplicationID:this.childAppId.store_application_id,country:this.selectedSubjects.country.getValue(),fields:this.selectedSubjects.historyTypes.getValue()}).pipe(bu$2(()=>this.historyLoading.next(false)),Lu$2(e=>{this.history.next(e);}))):(this.history.next(void 0),Ms$2(null))}getCountries(e){return this.countriesLoadingSubject.next(true),this.appHistoryCountries.requestCountries(e).pipe(bu$2(()=>this.countriesLoadingSubject.next(false)),Lu$2(t=>{if(this.countriesSubject.next(t),!t.length){this.onSelectedCountryNotExistFn(void 0);return}let i=this.selectedSubjects.country.getValue();if(!t.find(r=>r.value===i)||!i){let r=t.find(a=>a.value==="US"),s=r?r.value:t[0].value;this.selectedSubjects.country.next(s),this.onSelectedCountryNotExistFn(s);}}))}selectCountry(e){this.selectedSubjects.country.next(e);}saveCountryInLs(e){let t=d.getStateByKey("history",this.localStorageService);t.country=e,d.setStateByKey("history",t,this.localStorageService);}selectTypes(e){this.selectedSubjects.historyTypes.next(e);}saveTypesInLs(e){let t=d.getStateByKey("history",this.localStorageService);t.appHistoryFields=e,d.setStateByKey("history",t,this.localStorageService);}};var A$1=class A{constructor(e,t,i){this.type=e;this.diff=t;this.title=i;}};var v=class{constructor(e){this.current=e.current,this.old=e.old;}};var ae=class extends A$1{constructor(e,t){super("text",new v(e),t);}};var ne=class extends A$1{constructor(e){super("screens",new v(e),"advancedSearch.screenshots");}};var le=class extends A$1{constructor(e,t){super("boolean",new v(e),t);}};var N=class extends A$1{constructor(e){super("textArray",new v(e),"selectors.languages");}};var ce=class extends A$1{constructor(e){super("purchases",new v(e),"appPage.top_purchases_title");}};var ue=class extends A$1{constructor(e,t){super("video",new v(e),t);}};var me=class extends A$1{constructor(e){super("priceInfo",new v(e),"appHistory.price_info");}};var fe=class extends A$1{constructor(e,t){super("iconUrl",new v(e),"appHistory.application_icon");}};var de=class o{constructor(e){this.translateService=e;this.historyTypes={text:{fields:[],get:(t,i)=>new ae(t,E[i])},screens:{fields:["screenshot_urls"],get:t=>new ne(t)},iconUrl:{fields:["icon_url"],get:t=>new fe(t,E.application_url)},boolean:{fields:["contains_ads","free","has_in_app_purchases"],get:(t,i)=>new le(t,E[i])},textArray:{fields:["languages"],get:(t,i)=>i==="languages"?new N({current:t.current?.map(r=>a.capitalize(this.translateService.instant(`languages.${r}`))),old:t.old?.map(r=>a.capitalize(this.translateService.instant(`languages.${r}`)))}):new N(t)},priceInfo:{fields:["price_info"],get:t=>new me(t)},purchases:{fields:["in_app_purchases"],get:t=>new ce(t)},video:{fields:["video_url"],get:(t,i)=>new ue(t,E[i])}};}static{this.defaultType="text";}getTypeForField(e){return Object.keys(this.historyTypes).find(t=>this.historyTypes[t].fields.includes(e))}getAppHistoryForField(e,t){let i=this.getTypeForField(e);return this.historyTypes[i||o.defaultType].get(t,e)}};var ye=class o{constructor(e,t,i){this.appHistoryResource=e;this.countriesService=t;this.send=i;this.countriesAnalyticEvents=s$2((r,s)=>this.send(r,s),"app_history_country_select_open");}static getCountriesFromSummaryRes(e){let t=e.data;return Object.keys(t).filter(i=>!!Object.keys(t[i]).find(r=>j$1.includes(r)))}requestCountries(e){return this.appHistoryResource.summary({store:e.store,storeApplicationID:e.store_application_id}).pipe(ge$9(t=>o.getCountriesFromSummaryRes(t)),ge$9(t=>this.getCountries(t)),Tu$2((t,i)=>[...t].sort().join()===[...i].sort().join()))}getCountries(e){return this.countriesService.sortCountriesByTranslations(e).map(i=>({value:i,name:"countries."+i,group:"country"}))}};var ct=(e=>(e.featuring="featuring",e))(ct||{});var ge=class o{constructor(e,t,i){this.featuringResource=e;this.unitedApp=t;this.mergeChildApps=i;this.appId=new rr$4(null);this.country=new rr$4("WW");this.date=new rr$4(null);this.types=new rr$4([R$1.valueAll]);this.offset=new rr$4(0);this.sort=new rr$4("featuring");this.order=new rr$4("desc");this.loading=new rr$4(false);this.items=new rr$4([]);this.hasMore=new rr$4(true);this.subscription=new W$f;this.childApp=this.appId.pipe(ge$9(r=>r?this.mergeChildApps.find(s=>s.getByAppId(r)):null));}static{this.responseDataLength=25;}static mergeUniqueByTrackId(e,t){let i=new Set(e.map(s=>s.trackId)),r=t.filter(s=>!i.has(s.trackId));return [...e,...r]}static formatData(e,t){return e.map(i=>{let r=t.find(a=>a.store[0]===i.store&&a.store_application_id===i.store_application_id),s=`${i.store}_${i.store_application_id}_${i.country}_${i.category_id}_${i.type}`;return E$9(D$m({},i),{app:r,trackId:s})})}static getAppIdsForRequest(e,t){return t?t.store===1?[{store:1,store_application_id:t.store_application_id}]:[{store:2,store_application_id:t.store_application_id},{store:3,store_application_id:t.store_application_id}]:e.applications.map(i=>({store:i.store[0],store_application_id:i.store_application_id}))}setDate(e,t){let i=e?new Date(e):new Date,r=kt$3.isAfter(i,new Date(t));this.changeDate(r?t:e);}changeDate(e){this.resetPagination(),this.date.next(e);}changeCountry(e){this.resetPagination(),this.country.next(e);}changeTypes(e){this.resetPagination(),this.types.next(e);}changeApp(e){this.resetPagination(),this.appId.next(e);}resetPagination(){this.offset.next(0),this.hasMore.next(true);}changeSort(e){let t=this.order.getValue();if(this.sort.next(e),this.order.next(t==="asc"?"desc":"asc"),this.items.getValue().length<o.responseDataLength){this.localSort();return}this.offset.next(0),this.get();}loadMore(){this.loading.getValue()||this.get(true);}get(e=false){if(this.cancelActiveQuery(),!this.hasMore.getValue())return;this.loading.next(true),e||this.items.next([]);
1003let t=this.getRequestParams();this.subscription=this.featuringResource.get(t).pipe(Mu$2()).subscribe({next:i=>{let r=o.formatData(i.data,this.unitedApp.applications).filter(s=>s.app);e?this.items.next(o.mergeUniqueByTrackId(this.items.getValue(),r)):this.items.next(r),this.hasMore.next(i.data.length>=o.responseDataLength),this.offset.next(this.offset.getValue()+o.responseDataLength),this.loading.next(false);},error:()=>{this.loading.next(false);}});}cancelActiveQuery(){this.subscription.unsubscribe(),this.subscription=new W$f;}localSort(){let e=this.sort.getValue(),t=[...this.items.getValue()].sort((i,r)=>this.order.getValue()==="asc"?i[e]>r[e]?1:-1:i[e]<r[e]?1:-1);this.items.next(t);}getRequestParams(){let e=this.types.getValue().filter(i=>i!==R$1.valueAll);return {app_ids:o.getAppIdsForRequest(this.unitedApp,this.appId.getValue()),offset:this.offset.getValue(),limit:o.responseDataLength,date:this.date.getValue(),order:this.order.getValue(),sort:this.sort.getValue(),country:this.country.getValue(),types:e.length?e:null}}};var he=class o{constructor(e,t){this.http=e;this.cacheService=t;}static{this.ApplicationsHistoryUrl=`${C$8.baseUrl}/api/v2/applications/history`;}static{this.ApplicationsHistorySummary=`${C$8.baseUrl}/api/v2/applications/history/summary`;}info(e){let t=this.http.post(o.ApplicationsHistoryUrl,e),i={url:o.ApplicationsHistoryUrl,params:e};return this.cacheService.cacheObs(t,i)}summary(e){let t=this.http.post(o.ApplicationsHistorySummary,e),i={url:o.ApplicationsHistorySummary,params:e};return this.cacheService.cacheObs(t,i)}static{this.\u0275fac=function(t){return new(t||o)(me$b(Ue$7),me$b(X$7))};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var ve=class o{constructor(){this.http=D$l(Ue$7);}static{this.GetUrl=`${C$8.baseUrl}/api/v2/featuring`;}get(e){return this.http.post(o.GetUrl,e)}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var Se=class o{constructor(e,t,i,r,s,a,m,p,l){this.applicationsResource=e;this.localStorageService=t;this.categoryService=i;this.countriesService=r;this.analyticsService=s;this.appHistoryResource=a;this.translateService=m;this.featuringResource=p;this.featureToggleService=l;}getFeaturingManager(e,t){return new ge(this.featuringResource,e,t)}getInfoApp(e,t,i,r=()=>{}){return new ee(e,t,i,new te(this.translateService),new ie(this.applicationsResource),new re,r,this.categoryService,this.countriesService,this.featureToggleService)}getAppHistoryManager(e,t,i,r){return new pe(e,t,i,r,new ye(this.appHistoryResource,this.countriesService,(s,a)=>this.analyticsService.send(s,a)),new de(this.translateService),new se((s,a)=>this.analyticsService.send(s,a)),this.appHistoryResource,this.localStorageService)}static{this.\u0275fac=function(t){return new(t||o)(me$b(h),me$b(xt$5),me$b(c$1),me$b(c),me$b(L$3),me$b(he),me$b(x$d),me$b(ve),me$b(D$c))};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var be=class o{constructor(){this.amDialogsService=D$l(y$5);this.infoService=D$l(Se);this.analyticsService=D$l(L$3);this.localStorageService=D$l(xt$5);this.lastDateService=D$l(F);this.userService=D$l(ve$6);this.router=D$l(F$4);}openDialog(e,t=true){return K$g(this,null,function*(){if(this.dialog)return;let{AppInfoDialogComponent:i}=yield import('./chunk-DS0Pmbkw.js'),r=new W$f,s=new rr$4("info"),a=this.infoService.getInfoApp(e.unitedApplication,e,t),m=this.infoService.getFeaturingManager(e.unitedApplication,a.mergedChildApps),p=d.getStateByKey("history",this.localStorageService),l$1=this.infoService.getAppHistoryManager(qm$2([a.childApp,s.pipe(Tn$3(h=>h==="history"))]).pipe(ge$9(([h])=>h)),p.country,p.appHistoryFields,h=>l$1.selectCountry(h));this.dialog=this.amDialogsService.open(i,{containerClass:"app-info-dialog-container",backdropClass:"am-dialog-backdrop",changeUrlStrategy:new l(this.router),closeOnBrowserBack:true});let c=this.dialog.instance;c.unitedApp=e.unitedApplication,c.appInfoData=e,c.featuringScrollContainer=".am-dialog-backdrop",c.activeTab=s,c.infoApp=a,c.featuringManager=m,c.appHistoryManager=l$1,r.add(l$1.observeApp().subscribe()),r.add(l$1.observeSelectors().subscribe()),r.add(c.childAppChange.subscribe(h=>
1003{a.selectApp(h);let F=d.getStateByKey("history",this.localStorageService);l$1.selectCountry(F.country),l$1.selectTypes(F.appHistoryFields);})),r.add(a.appUrl.subscribe(h=>c.appUrl=h)),this.handleHistorySelectorsUpdate(l$1),this.handleHistoryOutput(r,c,l$1),this.handleNativeAppsSelectorsUpdate(a),this.handleNativeAppsOutput(r,c),this.handleFeaturingSelectorsUpdate(m,e),this.handleFeaturingOutput(r,c),r.add(c.tabChange.subscribe(h=>{c.activeTab.next(h);})),r.add(c.closed.subscribe(()=>{this.analyticsService.send("app_info_close_cross"),this.closeDialog();})),r.add(this.dialog.backdropClick().subscribe(()=>{this.analyticsService.send("app_info_close_backdrop"),this.closeDialog();})),r.add(this.dialog.escEvent().subscribe(()=>{this.analyticsService.send("app_info_close_esc"),this.closeDialog();})),this.dialog.afterClosed().subscribe(()=>{this.closeDialog(),r.unsubscribe();});})}handleHistorySelectorsUpdate(e){let t=d.getStateByKey("history",this.localStorageService);t.country&&e.selectCountry(t.country),t.appHistoryFields&&e.selectTypes(t.appHistoryFields);}handleHistoryOutput(e,t,i){e.add(t.historyTypesChange.subscribe(r=>i.selectTypes(r))),e.add(t.historyTypesApply.subscribe(r=>{i.saveTypesInLs(r),i.selectTypes(r);})),e.add(t.historyOpenWithTypes.subscribe(r=>{i.selectTypes(r),t.activeTab.next("history");})),e.add(t.historyCountryChange.subscribe(r=>{i.selectCountry(r);let s=d.getStateByKey("history",this.localStorageService);s.country=r,d.setStateByKey("history",s,this.localStorageService);}));}handleNativeAppsSelectorsUpdate(e){let t=d.getStateByKey("info",this.localStorageService);t.infoCountry&&e.changeCountry(t.infoCountry);}handleNativeAppsOutput(e,t){e.add(t.nativeAppsCountryChange.subscribe(i=>{let r=d.getStateByKey("info",this.localStorageService);r.infoCountry=i,d.setStateByKey("info",r,this.localStorageService);}));}handleFeaturingSelectorsUpdate(e,t){let i=d.getStateByKey("featuring",this.localStorageService);if(i.featuringCountry||t.selectedFeaturingCountry?.length===2){let s=i.featuringCountry;t.selectedFeaturingCountry?.length===2&&(s=t.selectedFeaturingCountry),e.changeCountry(s);}let r=this.userService.isPremium()?t.selectedFeaturingDate??i.featuringDate:void 0;i.featuringDate?e.changeDate(r):e.setDate(r,this.lastDateService.lastDate.getValue()),i.featuringTypes&&e.changeTypes(i.featuringTypes);}handleFeaturingOutput(e,t){e.add(t.featuringCountryChange.subscribe(i=>{let r=d.getStateByKey("featuring",this.localStorageService);r.featuringCountry=i,d.setStateByKey("featuring",r,this.localStorageService);})),e.add(t.featuringTypesChange.subscribe(i=>{let r=d.getStateByKey("featuring",this.localStorageService);r.featuringTypes=i,d.setStateByKey("featuring",r,this.localStorageService);}));}closeDialog(){this.dialog?.dispose(),this.dialog=null;}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275prov=G$f({token:o,factory:o.\u0275fac,providedIn:"root"});}};var ut$1=class o{constructor(){this.loaded=new tt$b;this.loadingClass="app-info-loading";this.element=D$l(Gr$4);this.analyticsService=D$l(L$3);this.appInfoDialogService=D$l(be);this.snackbarService=D$l(ot$4);this.applicationsResource=D$l(h);this.ngZone=D$l($$b);}showAppInfo(){this.element.nativeElement.classList.contains(this.loadingClass)||this.element.nativeElement.classList.add(this.loadingClass);let e=new rr$4(null);this.appData.unitedApplication?e.next(this.appData.unitedApplication):this.loadApplication(this.appData.parentId).subscribe(t=>{if(t){this.ngZone.run(()=>e.next(t));return}this.removeLoading();}),e.pipe(Tn$3(t=>!!t),Mu$2()).subscribe(t=>{let i=s$1.convertUnitedForAppInfo(t,D$m({},this.appData));this.analyticsService.send(this.openEvent,[t.id.toString(),t.name]),this.appInfoDialogService.openDialog(i,!this.appData.selectedApp);},()=>{},()=>{this.removeLoading();});}removeLoading(){this.element.nativeElement.classList.contains(this.loadingClass)&&(this.element.nativeElement.classList.remove(this.loadingClass),this.loaded.emit());}loadApplication(e){return this.applicationsResource.searchByIds({ids:[e]}).pipe(Mu$2(),ge$9(t=>t?.length?t[0]:(this.snackbarService.show("Error while downloading applications"),null)))}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275dir=dw({type:o,selectors:[["","appInfo",""]],hostBindings:function(t,i){t&1&&_g$1("click",function(){return i.showAppInfo()});},inputs:{appData:[0,"appInfo","appData"],openEvent:"openEvent"},outputs:{loaded:"loaded"}});}};
1004var A=class g{constructor(){this.appData=VV.required();this.src=VV.required();this.title=VV(null);this.size=VV(40);this.openEvent=VV("top_charts_app_info");this.opened=jV();this.element=D$l(Gr$4);}ngOnInit(){if(this.element.nativeElement.classList.add(`size${this.size()}`),a$g.isTouchDevice()){this.element.nativeElement.classList.add("touch");return}this.element.nativeElement.onmouseenter=()=>{this.element.nativeElement.classList.add("visible");},this.element.nativeElement.onmouseleave=()=>{this.element.nativeElement.classList.remove("visible");};}infoOpen(t){this.element.nativeElement.classList.contains("loaded")||this.element.nativeElement.classList.add("loading"),t.preventDefault(),t.stopPropagation(),this.opened.emit();}handleLoadImg(){this.element.nativeElement.classList.add("loaded");}static{this.\u0275fac=function(i){return new(i||g)};}static{this.\u0275cmp=sw({type:g,selectors:[["app-info-lazy"]],inputs:{appData:[1,"appData"],src:[1,"src"],title:[1,"title"],size:[1,"size"],openEvent:[1,"openEvent"]},outputs:{opened:"opened"},decls:7,vars:13,consts:[[1,"application-image",3,"lazyLoaded","lazyImage","t
1004itle"],[1,"app-info-icon-wrapper",3,"click","loaded","appInfo","openEvent"],[3,"diameter"],[1,"app-info-icon","g-app-info-lang-small-text"]],template:function(i,e){i&1&&(Zi$3(0,"img",0),bb(1,"appIconSize"),_g$1("lazyLoaded",function(){return e.handleLoadImg()}),kl$2(),Zi$3(2,"div",1),_g$1("click",function(x){return e.infoOpen(x)})("loaded",function(){return e.element.nativeElement.classList.remove("loading")}),Eg$1(3,"spinner",2),Zi$3(4,"div",3),ib(5),bb(6,"translate"),kl$2()()),i&2&&(Ig$1("lazyImage",Mb(1,8,e.src(),e.size()))("title",e.title()),vg$1("height",e.size()+"px")("width",e.size()+"px"),AE(2),Ig$1("appInfo",e.appData())("openEvent",e.openEvent()),AE(),Ig$1("diameter",21),AE(2),jl$2(" ",_b(6,11,"appPopup.app_info_icon")," "));},dependencies:()=>[An$3,I$4,ut$1,b$5,fe$8,n$3,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1004--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:inline-flex;cursor:pointer;outline:none;overflow:hidden;--size: 40px;width:var(--size);height:var(--size);min-width:var(--size)}.size18[_nghost-%COMP%]{--size: 18px}.size32[_nghost-%COMP%]{--size: 32px}.size36[_nghost-%COMP%]{--size: 36px}.size38[_nghost-%COMP%]{--size: 38px}.size40[_nghost-%COMP%]{--size: 40px}.size48[_nghost-%COMP%]{--size: 48px}.size48[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%], .size48[_nghost-%COMP%]   .app-info-icon[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.size54[_nghost-%COMP%]{--size: 54px}.size54[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%], .size54[_nghost-%COMP%]   .app-info-icon[_ngcontent-%COMP%]{font-size:16px;line-height:16px}.visible[_nghost-%COMP%]   .application-image[_ngcontent-%COMP%]{opacity:0!important}.visible[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%], .visible[_nghost-%COMP%]   .app-info-icon[_ngcontent-%COMP%]{visibility:visible}.touch[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%]{visibility:visible}.touch[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%]   .app-info-icon[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]   .app-info-icon[_ngcontent-%COMP%]{position:static;inset:0;outline:none}[_nghost-%COMP%]   .application-image[_ngcontent-%COMP%]{font-size:0;border-radius:var(--app-info-border-radius);overflow:hidden}[_nghost-%COMP%]   .application-image.loaded[_ngcontent-%COMP%]{background:transparent}[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%]{position:static;z-index:1;white-space:normal;visibility:hidden;margin-left:-100%;width:100%;height:100%;border-radius:var(--app-info-border-radius);box-sizing:border-box}[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%]:active{outline:none}[_nghost-%COMP%]   .app-info-icon-wrapper.app-info-loading[_ngcontent-%COMP%]{position:relative;background:var(--white);border:1px solid var(--grey-50);visibility:visible}[_nghost-%COMP%]   .app-info-icon-wrapper.app-info-loading[_ngcontent-%COMP%]   .app-info-icon[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .app-info-icon-wrapper.app-info-loading[_ngcontent-%COMP%]   spinner[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%]   spinner[_ngcontent-%COMP%]{display:none;width:20px;height:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%]   .app-info-icon-wrapper[_ngcontent-%COMP%]   spinner[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{stroke:var(--yellow-50);stroke-width:3px}[_nghost-%COMP%]   .app-info-icon[_ngcontent-%COMP%]{padding:2px;box-sizing:border-box;text-transform:uppercase;border:1px solid var(--grey-50);height:100%;background:var(--white);display:flex;align-items:center;text-align:center;color:var(--blue-80);font-weight:600;border-radius:var(--app-info-border-radius)}[_nghost-%COMP%]   .app-info-icon[_ngcontent-%COMP%]:hover{color:var(--blue-90)}"]});}};var H=t=>({count:t});function U(t,i){if(t&1&&(Eg$1(0,"img",8),bb(1,"appIconSize")),t&2){let e=NT();Lg$1("min-width",e.size+"px"),Ig$1("height",e.size)("width",e.size)("lazyImage",Mb(1,5,e.iconUrl,e.size));}}function V(t,i){if(t&1&&Eg$1(0,"app-info-lazy",1),t&2){let e=NT();Ig$1("src",e.iconUrl)("appData",e.appData)("size",e.size)("openEvent",e.appInfoOpenEvent);}}function j(t,i){if(t&1&&Eg$1(0,"stores-info",4),t&2){let e=NT();Ig$1("stores",e.stores)("removedStores",e.removedStores)("showStoreName",false);}}function R(t,i){if(t&1){let e=DT();Zi$3(0,"a",9),_g$1("click",function(){Rd$2(e);let d=NT();return kd$2(d.appLinkClick.emit())}),kl$2();}if(t&2){let e=NT();Ig$1("href",e.appLink,qp$2)("title",e.appTitle)("customInnerHtml",e.appName);}}function W(t,i){if(t&1&&Eg$1(0,"span",6),t&2){let e=NT();Ig$1("title",e.appTitle)("customInnerHtml",e.appName);}}function q(t,i){if(t&1&&(Zi$3(0,"div",7),ib(1),bb(2,"translateChoice"),kl$2()),t&2){let e=NT();AE(),Ug$1(Mb(2,1,"appTracker.apps_count",Ib(4,H,e.appsCount)));}}function G(t,i){if(t&1){let e=DT();Zi$3(0,"a",12),_g$1("click",function(){Rd$2(e);let d=NT(2);return kd$2(d.pubLinkClick.emit())}),ib(1),kl$2();}if(t&2){let e=NT(2);Ig$1("href",e.pubLink,qp$2)("title",e.pubName),AE(),jl$2(" ",e.formatPublisherName(e.pubName,e.pubHeadCompanyName,e.translateService)," ");}}function J(t,i){if(t&1&&(Zi$3(0,"span",11),ib(1),kl$2()),t&2){let e=NT(2);Ig$1("title",e.pubName),AE(),jl$2(" ",e.formatPublisherName(e.pubName,e.pubHeadCompanyName,e.translateService)," ");}}function K(t,i){if(t&1&&(uT(0,G,2,3,"a",10),uT(1,J,2,2,"span",11)),t&2){let e=NT();dT(e.pubLink?0:-1),AE(),dT(e.pubLink?-1:1);}}var T=class t{constructor(){this.translateService=D$l(x$d);this.stores=[];this.removedStores=[];this.size=32;this.appInfoOpenEvent="open_app_info";this.isDisabled=false;this.appLinkClick=new tt$b;this.pubLinkClick=new tt$b;this.formatPublisherName=p$1.format;}static{this.\u0275fac=function(e){return new(e||t)};}static{this.\u0275cmp=sw({type:t,selectors:[["app-name-pub"]],hostVars:2,hostBindings:function(e,a){e&2&&Pg$1("disabled",a.isDisabled);},inputs:{iconUrl:"iconUrl",appName:"appName",appTitle:"appTitle",pubName:"pubName",appLink:"appLink",pub
1004Link:"pubLink",stores:"stores",removedStores:"removedStores",size:"size",appInfoOpenEvent:"appInfoOpenEvent",appsCount:"appsCount",appData:"appData",isDisabled:"isDisabled",pubHeadCompanyName:"pubHeadCompanyName"},outputs:{appLinkClick:"appLinkClick",pubLinkClick:"pubLinkClick"},decls:9,vars:7,consts:[[1,"app-img","g-app-img","g-app-icon",3,"height","width","minWidth","lazyImage"],[1,"g-app-img",3,"src","appData","size","openEvent"],[1,"info-wrap"],[1,"d-flex"],[1,"line-height-18",3,"stores","removedStores","showStoreName"],["data-testid","item-name","target","_blank","stopPropagation","",1,"g-app-name","g-link","text-overflow","line-height-16",3,"href","title","customInnerHtml"],["data-testid","item-name",1,"g-app-name","text-overflow","line-height-16",3,"title","customInnerHtml"],[1,"apps-count"],[1,"app-img","g-app-img","g-app-icon",3,"height","width","lazyImage"],["data-testid","item-name","target","_blank","stopPropagation","",1,"g-app-name","g-link","text-overflow","line-height-16",3,"click","href","title","customInnerHtml"],["target","_blank","stopPropagation","",1,"g-app-publisher-name","publisher-name","g-link","text-overflow",3,"href","title"],[1,"g-app-publisher-name","publisher-name","text-overflow",3,"title"],["target","_blank","stopPropagation","",1,"g-app-publisher-name","publisher-name","g-link","text-overflow",3,"click","href","title"]],template:function(e,a){e&1&&(uT(0,U,2,8,"img",0),uT(1,V,1,4,"app-info-lazy",1),Zi$3(2,"div",2)(3,"div",3),uT(4,j,1,3,"stores-info",4),uT(5,R,1,3,"a",5),uT(6,W,1,2,"span",6),uT(7,q,3,6,"div",7),kl$2(),uT(8,K,2,2),kl$2()),e&2&&(dT(a.appData?-1:0),AE(),dT(a.appData?1:-1),AE(3),dT(a.stores.length>0?4:-1),AE(),dT(a.appLink?5:-1),AE(),dT(a.appLink?-1:6),AE(),dT(a.appsCount?7:-1),AE(),dT(a.pubName?8:-1));},dependencies:()=>[N$1,s$9,A,I$4,r$8,n$3,u$6],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1004--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.disabled[_nghost-%COMP%]   .app-img[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   stores-info[_ngcontent-%COMP%]{opacity:.3}.disabled[_nghost-%COMP%]   .publisher-name[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .g-app-name[_ngcontent-%COMP%]{color:var(--grey-70)}[_nghost-%COMP%]   .info-wrap[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}[_nghost-%COMP%]   .publisher-name[_ngcontent-%COMP%]{margin-top:2px}[_nghost-%COMP%]   .app-img[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%]   stores-info[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .apps-count[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:10px;font-weight:400;line-height:12px;letter-spacing:0;color:var(--text-secondary);margin-left:6px}"]});}};var s=(c=>(c.asc="asc",c.desc="desc",c))(s||{});var o$1=(r=>(r.EN="en",r.CN="cn",r.JP="jp",r.KO="ko",r.BR="br",r.ES="es",r))(o$1||{});var o=(e=>(e.revenue="revenue",e.webShopRevenue="web_shop_revenue",e.downloads="downloads",e.featuring="featuring",e.topFree="top_free",e.topGrossing="top_grossing",e.RpD="cumulative_arpu",e.releaseDate="releaseDate",e))(o||{});var wp=H$d(()=>{});var Rp=H$d((Pr,Dp)=>{(function(e,o){typeof Pr=="object"?Dp.exports=Pr=o():typeof define=="function"&&define.amd?define([],o):e.CryptoJS=o();})(Pr,function(){var e=e||(function(o,t){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof global<"u"&&global.crypto&&(r=global.crypto),!r&&typeof F$e=="function")try{r=wp();}catch(h){}var i=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch(h){}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch(h){}}throw new Error("Native crypto module could not be used to get secure random number.")},n=Object.create||(function(){function h(){}return function(F){var z;return h.prototype=F,z=new h,h.prototype=null,z}})(),g={},m=g.lib={},B=m.Base=(function(){return {extend:function(h){var F=n(this);return h&&F.mixIn(h),(!F.hasOwnProperty("init")||this.init===F.init)&&(F.init=function(){F.$super.init.apply(this,arguments);}),F.init.prototype=F,F.$super=this,F},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var F in h)h.hasOwnProperty(F)&&(this[F]=h[F]);h.hasOwnProperty("toString")&&(this.toString=h.toString);},clone:function(){return this.init.prototype.extend(this)}}})(),E=m.WordArray=B.extend({init:function(h,F){h=this.words=h||[],F!=t?this.sigBytes=F:this.sigBytes=h.length*4;},toString:function(h){return (h||U).stringify(this)},concat:function(h){var F=this.words,z=h.words,G=this.sigBytes,re=h.sigBytes;if(this.clamp(),G%4)for(var le=0;le<re;le++){var ht=z[le>>>2]>>>24-le%4*8&255;F[G+le>>>2]|=ht<<24-(G+le)%4*8;}else for(var Be=0;Be<re;Be+=4)F[G+Be>>>2]=z[Be>>>2];return this.sigBytes+=re,this},clamp:function(){var h=this.words,F=this.sigBytes;h[F>>>2]&=4294967295<<32-F%4*8,h.length=o.ceil(F/4);},clone:function(){var h=B.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var F=[],z=0;z<h;z+=4)F.push(i());return new E.init(F,h)}}),j=g.enc={},U=j.Hex={stringify:function(h){for(var F=h.words,z=h.sigBytes,G=[],re=0;re<z;re++){var le=F[re>>>2]>>>24-re%4*8&255;G.push((le>>>4).toString(16)),G.push((le&15).toString(16));}return G.join("")},parse:function(h){for(var F=h.length,z=[],G=0;G<F;G+=2)z[G>>>3]|=parseInt(h.substr(G,2),16)<<24-G%8*4;return new E.init(z,F/2)}},H=j.Latin1={stringify:function(h){for(var F=h.words,z=h.sigBytes,G=[],re=0;re<z;re++){var le=F[re>>>2]>>>24-re%4*8&255;G.push(String.fromCharCode(le));}return G.join("")},parse:function(h){for(var F=h.length,z=[],G=0;G<F;G++)z[G>>>
10042]|=(h.charCodeAt(G)&255)<<24-G%4*8;return new E.init(z,F)}},P=j.Utf8={stringify:function(h){try{return decodeURIComponent(escape(H.stringify(h)))}catch(F){throw new Error("Malformed UTF-8 data")}},parse:function(h){return H.parse(unescape(encodeURIComponent(h)))}},T=m.BufferedBlockAlgorithm=B.extend({reset:function(){this._data=new E.init,this._nDataBytes=0;},_append:function(h){typeof h=="string"&&(h=P.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes;},_process:function(h){var F,z=this._data,G=z.words,re=z.sigBytes,le=this.blockSize,ht=le*4,Be=re/ht;h?Be=o.ceil(Be):Be=o.max((Be|0)-this._minBufferSize,0);var ct=Be*le,Rt=o.min(ct*4,re);if(ct){for(var ft=0;ft<ct;ft+=le)this._doProcessBlock(G,ft);F=G.splice(0,ct),z.sigBytes-=Rt;}return new E.init(F,Rt)},clone:function(){var h=B.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0});m.Hasher=T.extend({cfg:B.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset();},reset:function(){T.reset.call(this),this._doReset();},update:function(h){return this._append(h),this._process(),this},finalize:function(h){h&&this._append(h);var F=this._doFinalize();return F},blockSize:512/32,_createHelper:function(h){return function(F,z){return new h.init(z).finalize(F)}},_createHmacHelper:function(h){return function(F,z){return new ae.HMAC.init(h,z).finalize(F)}}});var ae=g.algo={};return g})(Math);return e});});var Ep=H$d((Fr,Op)=>{(function(e,o){typeof Fr=="object"?Op.exports=Fr=o(Rp()):typeof define=="function"&&define.amd?define(["./core"],o):o(e.CryptoJS);})(Fr,function(e){return (function(o){var t=e,r=t.lib,i=r.WordArray,n=r.Hasher,g=t.algo,m=[];(function(){for(var P=0;P<64;P++)m[P]=o.abs(o.sin(P+1))*4294967296|0;})();var B=g.MD5=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878]);},_doProcessBlock:function(P,T){for(var ee=0;ee<16;ee++){var ae=T+ee,h=P[ae];P[ae]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360;}var F=this._hash.words,z=P[T+0],G=P[T+1],re=P[T+2],le=P[T+3],ht=P[T+4],Be=P[T+5],ct=P[T+6],Rt=P[T+7],ft=P[T+8],Oo=P[T+9],Eo=P[T+10],ko=P[T+11],To=P[T+12],No=P[T+13],Bo=P[T+14],Io=P[T+15],b=F[0],_=F[1],S=F[2],x=F[3];b=E(b,_,S,x,z,7,m[0]),x=E(x,b,_,S,G,12,m[1]),S=E(S,x,b,_,re,17,m[2]),_=E(_,S,x,b,le,22,m[3]),b=E(b,_,S,x,ht,7,m[4]),x=E(x,b,_,S,Be,12,m[5]),S=E(S,x,b,_,ct,17,m[6]),_=E(_,S,x,b,Rt,22,m[7]),b=E(b,_,S,x,ft,7,m[8]),x=E(x,b,_,S,Oo,12,m[9]),S=E(S,x,b,_,Eo,17,m[10]),_=E(_,S,x,b,ko,22,m[11]),b=E(b,_,S,x,To,7,m[12]),x=E(x,b,_,S,No,12,m[13]),S=E(S,x,b,_,Bo,17,m[14]),_=E(_,S,x,b,Io,22,m[15]),b=j(b,_,S,x,G,5,m[16]),x=j(x,b,_,S,ct,9,m[17]),S=j(S,x,b,_,ko,14,m[18]),_=j(_,S,x,b,z,20,m[19]),b=j(b,_,S,x,Be,5,m[20]),x=j(x,b,_,S,Eo,9,m[21]),S=j(S,x,b,_,Io,14,m[22]),_=j(_,S,x,b,ht,20,m[23]),b=j(b,_,S,x,Oo,5,m[24]),x=j(x,b,_,S,Bo,9,m[25]),S=j(S,x,b,_,le,14,m[26]),_=j(_,S,x,b,ft,20,m[27]),b=j(b,_,S,x,No,5,m[28]),x=j(x,b,_,S,re,9,m[29]),S=j(S,x,b,_,Rt,14,m[30]),_=j(_,S,x,b,To,20,m[31]),b=U(b,_,S,x,Be,4,m[32]),x=U(x,b,_,S,ft,11,m[33]),S=U(S,x,b,_,ko,16,m[34]),_=U(_,S,x,b,Bo,23,m[35]),b=U(b,_,S,x,G,4,m[36]),x=U(x,b,_,S,ht,11,m[37]),S=U(S,x,b,_,Rt,16,m[38]),_=U(_,S,x,b,Eo,23,m[39]),b=U(b,_,S,x,No,4,m[40]),x=U(x,b,_,S,z,11,m[41]),S=U(S,x,b,_,le,16,m[42]),_=U(_,S,x,b,ct,23,m[43]),b=U(b,_,S,x,Oo,4,m[44]),x=U(x,b,_,S,To,11,m[45]),S=U(S,x,b,_,Io,16,m[46]),_=U(_,S,x,b,re,23,m[47]),b=H(b,_,S,x,z,6,m[48]),x=H(x,b,_,S,Rt,10,m[49]),S=H(S,x,b,_,Bo,15,m[50]),_=H(_,S,x,b,Be,21,m[51]),b=H(b,_,S,x,To,6,m[52]),x=H(x,b,_,S,le,10,m[53]),S=H(S,x,b,_,Eo,15,m[54]),_=H(_,S,x,b,G,21,m[55]),b=H(b,_,S,x,ft,6,m[56]),x=H(x,b,_,S,Io,10,m[57]),S=H(S,x,b,_,ct,15,m[58]),_=H(_,S,x,b,No,21,m[59]),b=H(b,_,S,x,ht,6,m[60]),x=H(x,b,_,S,ko,10,m[61]),S=H(S,x,b,_,re,15,m[62]),_=H(_,S,x,b,Oo,21,m[63]),F[0]=F[0]+b|0,F[1]=F[1]+_|0,F[2]=F[2]+S|0,F[3]=F[3]+x|0;},_doFinalize:function(){var P=this._data,T=P.words,ee=this._nDataBytes*8,ae=P.sigBytes*8;T[ae>>>5]|=128<<24-ae%32;var h=o.floor(ee/4294967296),F=ee;T[(ae+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,T[(ae+64>>>9<<4)+14]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,P.sigBytes=(T.length+1)*4,this._process();for(var z=this._hash,G=z.words,re=0;re<4;re++){var le=G[re];G[re]=(le<<8|le>>>24)&16711935|(le<<24|le>>>8)&4278255360;}return z},clone:function(){var P=n.clone.call(this);return P._hash=this._hash.clone(),P}});function E(P,T,ee,ae,h,F,z){var G=P+(T&ee|~T&ae)+h+z;return (G<<F|G>>>32-F)+T}function j(P,T,ee,ae,h,F,z){var G=P+(T&ae|ee&~ae)+h+z;return (G<<F|G>>>32-F)+T}function U(P,T,ee,ae,h,F,z){var G=P+(T^ee^ae)+h+z;return (G<<F|G>>>32-F)+T}function H(P,T,ee,ae,h,F,z){var G=P+(ee^(T|~ae))+h+z;return (G<<F|G>>>32-F)+T}t.MD5=n._createHelper(B),t.HmacMD5=n._createHmacHelper(B);})(Math),e.MD5});});var hr=class e{constructor(o,t){this._platform=t;this._document=o;}ngOnDestroy(){let o=this._containerElement;o?.parentNode&&o.parentNode.removeChild(o);}getContainerElement(){let o=document.getElementsByClassName("cdk-overlay-container");for(let r of o)r.hasChildNodes()||r.remove();let t=document.createElement("div");return t.classList.add("cdk-overlay-container"),document.body.appendChild(t),this._containerElement=t,t}static{this.\u0275fac=function(t){return new(t||e)(me$b(jn$2),me$b(I$9))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac});}};function la(e){return typeof e<"u"&&e!==null}var fr=class{constructor(){this.templateMatcher=/%([^%\s]*)%/g;}interpolate(o,t){let r;
1004return typeof o=="string"?r=this.interpolateString(o,t):typeof o=="function"?r=this.interpolateFunction(o,t):r=o,r}getValue(o,t){let r=typeof t=="string"?t.split("."):[t];t="";do t+=r.shift(),la(o)&&la(o[t])&&(typeof o[t]=="object"||!r.length)?(o=o[t],t=""):r.length?t+=".":o=void 0;while(r.length);return o}interpolateFunction(o,t){return o(t)}interpolateString(o,t){return t?o.replace(this.templateMatcher,(r,i)=>{let n=this.getValue(t,i);return la(n)?n:r}):o}};var vr=class{handle(o){let t=o.key.split(/\.(.+)/);return t[0].match(/\s/g)?o.key:t[1]}};var fp={useDefaultLang:true,defaultLanguage:"en",parser:{provide:C$a,useClass:fr},missingTranslationHandler:{provide:D$f,useClass:vr}};var vp="--bottom-alerts-offset",Cr=class e{constructor(){this.document=D$l(jn$2);this.windowObserver=null;this.dialogObserver=null;this.resizeObserver=null;}init(){if(typeof MutationObserver>"u"||typeof ResizeObserver>"u"||!this.document.defaultView?.Osano)return;let t=this.document.querySelector(".osano-cm-window");if(t){this.attach(t);return}this.windowObserver=new MutationObserver(()=>{let r=this.document.querySelector(".osano-cm-window");r&&(this.windowObserver?.disconnect(),this.windowObserver=null,this.attach(r));}),this.windowObserver.observe(this.document.body,{childList:true,subtree:true});}attach(o){this.dialogObserver=new MutationObserver(()=>this.sync()),this.dialogObserver.observe(o,{attributes:true,attributeFilter:["class"],childList:true,subtree:true}),this.sync();}sync(){this.resizeObserver?.disconnect(),this.resizeObserver=null;let o=this.document.querySelector(".osano-cm-dialog:not(.osano-cm-dialog--hidden)");if(!o){this.document.documentElement.style.removeProperty(vp);return}this.resizeObserver=new ResizeObserver(()=>this.updateOffset(o)),this.resizeObserver.observe(o),this.updateOffset(o);}updateOffset(o){this.document.documentElement.style.setProperty(vp,`${o.offsetHeight}px`);}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var og={en:"en",cn:"zh-CN",jp:"ja",ko:"ko",br:"pt-BR",es:"es"},yr=class e{constructor(){this.document=D$l(jn$2);}init(){this.consentManager?.addEventListener("osano-cm-initialized",()=>this.apply());}setLocale(o){let t=og[o];t&&(this.desiredLocale=t,this.apply());}apply(){let o=this.consentManager;if(!(!o||!this.desiredLocale))try{o.locale=this.desiredLocale;}catch(t){}}get consentManager(){return this.document.defaultView?.Osano?.cm}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var ca=15,rg=60,ig=2400,ng=1.4,ag=.05;function Cp(e){let o=Math.abs(e)-ca;if(o<=0)return 0;let t=rg*(o/ca+1)**ng;return Math.sign(e)*Math.min(t,ig)}var br=class{constructor(o,t,r){this.target=o;this.origin=t;this.onDetached=r;this.frameId=null;this.lastFrameTime=null;this.moved=false;this.onFrame=o=>{this.tick(o),this.frameId!==null&&(this.frameId=requestAnimationFrame(this.onFrame));};this.pointer=t;}get hasMoved(){return this.moved}start(){this.frameId=requestAnimationFrame(this.onFrame);}setPointer(o){this.pointer=o,Math.hypot(o.x-this.origin.x,o.y-this.origin.y)>ca&&(this.moved=true);}tick(o){let t=this.target.element;if(!t.isConnected){this.stop(),this.onDetached();return}let r=this.lastFrameTime===null?0:Math.min((o-this.lastFrameTime)/1e3,ag);this.lastFrameTime=o,this.target.axes.y&&(t.scrollTop+=Cp(this.pointer.y-this.origin.y)*r),this.target.axes.x&&(t.scrollLeft+=Cp(this.pointer.x-this.origin.x)*r);}stop(){this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null);}};var ma="g-autoscroll-marker",pa="g-autoscrolling",_r=class{constructor(){this.element=null;this.bodyModifierClass=null;}show(o,t){this.hide();let r=lg(t),i=document.createElement("div");i.classList.add(ma),i.style.left=`${o.x}px`,i.style.top=`${o.y}px`,t.y&&i.appendChild(yp("y")),t.x&&i.appendChild(yp("x")),document.body.appendChild(i),this.bodyModifierClass=`${pa}-${r}`,document.body.classList.add(pa,this.bodyModifierClass),this.element=i;}hide(){this.element?.remove(),this.element=null,document.body.classList.remove(pa),this.bodyModifierClass&&(document.body.classList.remove(this.bodyModifierClass),this.bodyModifierClass=null);}};function lg(e){return e.x&&e.y?"xy":e.y?"y":"x"}function yp(e){let o=document.createElement("span");return o.classList.add(`${ma}-axis`,`${ma}-axis-${e}`),o}var sg=1,cg='a[href], input, textarea, [contenteditable=""], [contenteditable="true"]',Sr=class e{constructor(){this.document=D$l(jn$2);this.ngZone=D$l($$b);this.marker=new _r;this.gesture=null;this.gestureAbort=null;this.suppressNextClick=false;this.onMouseDown=o=>{if(this.gesture){o.preventDefault(),o.stopPropagation(),this.stop(true);return}if(o.button!==sg||a$g.isTouchDevice()||this.isSkippedTarget(o.target))return;let t=de$a(o.target);t&&(o.preventDefault(),this.start(t,{x:o.clientX,y:o.clientY}));};this.onMouseMove=o=>{this.gesture?.setPointer({x:o.clientX,y:o.clientY});};this.onMouseUp=()=>{this.gesture?.hasMoved&&this.stop(true);};this.onKeyDown=o=>{o.key==="Escape"&&this.stop(false);};this.onCancel=()=>{this.stop(false);};this.onClick=o=>{this.suppressNextClick&&(this.suppressNextClick=false,o.preventDefault(),o.stopPropagation());};this.ngZone.runOutsideAngular(()=>{this.document.addEventListener("mousedown",this.onMouseDown,{capture:true,passive:false}),this.document.addEventListener("click",this.onClick,{capture:true}),this.document.addEventListener("auxclick",this.onClick,{capture:true});});}start(o,t){this.gestureAbort=new AbortController;let r={signal:this.gestureAbort.signal};this.gesture=new br(o,t,()=>this.stop(false)),this.gesture.start(),this.marker.show(t,o.axes),this.suppressNextClick=true,this.document.addEventListener("mousemove",this.onMouseMove,r),this.document.addEventListener("mouseup",this.onMouseUp,r),this.document.addEventListener("keydown",this.onKeyDown,r),this.document.addEventListener("wheel",this.onCancel,r),this.document.addEventListener("visibilitychange",this.onCancel,r),window.addEventListener("blur",this.onCancel,r);}stop(o){this.gesture?.stop(),this.gesture=null,this.gestureAbort?.abort(),this.gestureAbort=null,this.marker.hide(),this.suppressNextClick=o;}isSkippedTarget(o){return o instanceof Element&&!!o.closest(cg)}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var xr=class e{constructor(){this.destroyRef=D$l(st$b);this.document=D$l(jn$2);this.router=D$l(F$4);this.userService=D$l(ve$6);this.analyticsService=D$l(L$3);this.translateService=D$l(x$d);this.initialReferrerService=D$l(c$4);this.metaService=D$l(p$6);this.localStorageService=D$l(xt$5);this.route=D$l(W$6);this.scriptService=D$l(ke$3);this.osanoBottomOffsetService=D$l(Cr);this.osanoLocaleService=D$l(yr);this.snackbarService=D$l(ot$4);this.deviceService=D$l(a$g);this.themeService=D$l(h$5);this.countriesService=D$l(c);this.httpErrorNotificationService=D$l(c$6);this.middleButtonAutoscrollService=D$l(Sr);this.lsChunkLoadErrorReloadClickCount="ChunkLoadErrorReloadClickCount";this.lsNavigationErrorCount="NavigationErrorCount";this.lsMainChunkLoadErrorReloadClickCount="MainChunkLoadErrorReloadClickCount";this.metaService.init(this.destroyRef),this.initChunkReloadLogger(),this.route.queryParams.pipe(U$a(this.destroyRef)).subscribe(o=>{Number(o.newUser)&&this.userService.user.getValue()&&(this.userService.user.getValue().created_at=kt$3.format(kt$3.now(),"YYYY-MM-DD HH:mm:ss")),o.CACHE_DISABLED!==void 0&&this.localStorageService.set(We$7.CACHE_DISABLED_KEY,o.CACHE_DISABLED==="true"),o.contract&&this.router.navigate([],{queryParams:{contract:void 0},relativeTo:this.route,queryParamsHandling:"merge",replaceUrl:true});}),this.userService.user.pipe(Tn$3(o=>!!o),U$a(this.destroyRef)).subscribe(o=>{if(o.promoCodeSuccess){let t=this.userService.getLastPromoCode().code;this.analyticsService.send("apply_promo_code",[t]);}}),this.userService.user.pipe(U$a(this.destroyRef)).subscribe(o=>{o?this.scriptService.initChatScript():this.scriptService.removeChatScript();}),this.translateService.onLangChange.pipe(U$a(this.destroyRef)).subscribe(o=>{document.documentElement.setAttribute("lang",o.lang),this.osanoLocaleService.setLocale(o.lang);}),this.initialReferrerService.updateData(),this.countriesService.isChinaUser()&&document.documentElement.classList.add("china-user");}ngOnInit(){this.setAppHeight(),this.deviceService.setDeviceTypeAttribute(),this.scriptService.initScrips(),this.osanoBottomOffsetService.init(),this.osanoLocaleService.init();}initChunkReloadLogger(){this.router.events.pipe(U$a(this.destroyRef)).subscribe(o=>{if((o instanceof P$8||o instanceof $$3||o instanceof de$4)&&(this.document.getElementById("app-spinner")?.remove(),window.angularPageLoadTime=new Date().getTime()-window.htmlLoadTime),o instanceof P$8){let i=this.router.getCurrentNavigation()?.extras.state?.[c$5.SkipScrollFlag],n=o.urlAfterRedirects.split("?")[0];this.lastUrlState!==n&&(this.lastUrlState=n,i||setTimeout(()=>{window.scrollTo(0,0);},0)),this.analyticsService.send("open_page"),localStorage.removeItem(this.lsChunkLoadErrorReloadClickCount),localStorage.removeItem(this.lsMainChunkLoadErrorReloadClickCount),localStorage.removeItem(this.lsNavigationErrorCount),this.httpErrorNotificationService.set(null);}let t=localStorage.getItem(this.lsChunkLoadErrorReloadClickCount);if(o instanceof de$4){if(o.error.message.includes("Failed to fetch dynamically imported module")){if(!t){localStorage.setItem(this.lsChunkLoadErrorReloadClickCount,"0"),this.reloadAfterChunkError(o.url);return}this.analyticsService.send("chunk_load_error",[o.error.message]),this.snackbarService.show("Something went wrong, please reload the page",false,"Reload").onAction().pipe(Mu$2()).subscribe(()=>{let g=+t+1;this.analyticsService.send("chunk_error_reload_click",[o.error.message,`${g}`]),localStorage.setItem(this.lsChunkLoadErrorReloadClickCount,g.toString()),this.reloadAfterChunkError(o.url);});return}let i=localStorage.getItem(this.lsNavigationErrorCount),n=i?+i:0;n===0&&(this.analyticsService.send("navigation_error_undefined",[o.error.message]),localStorage.setItem(this.lsNavigationErrorCount,(n+1).toString()),this.router.navigateByUrl(O$a.DefaultNavigateUrl));}});}reloadAfterChunkError(o){o.split("?")[0].endsWith(`/${s$k}`)?window.location.reload():window.location.href=o;}windowResize(){this.setAppHeight(),this.deviceService.setDeviceTypeAttribute();}setAppHeight(){this.document.documentElement.style?.setProperty("--height",`${window.innerHeight}px`);}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["app-root"]],hostBindings:function(t,r){t&1&&_g$1("resize",function(){return r.windowResize()},VI);},decls:1,vars:0,template:function(t,r){t&1&&Eg$1(0,"router-outlet");},dependencies:[br$2],encapsulation:2});}};var Ar=class e extends D$7{constructor(t){super();this.config=t;this.store={};this.storageType="memory";this.updateStorageType(t.options.storageType)||console.warn(t.options.storageType+" is not available.");}updateStorageType(t){return this.checkIsStorageAvailable(t)?(this.storageType=t,true):false}get(t){switch(this.storageType){case "cookie":case "sessionCookie":return this.getCookie(t);case "localStorage":case "sessionStorage":return window[this.storageType].getItem(t);case "memory":return this.store[t];case "none":default:return null}}set(t,r,i){switch(this.storageType){case "cookie":case "sessionCookie":this.setCookie(t,r,this.storageType==="cookie"?i:"");break;case "localStorage":case "sessionStorage":window[this.storageType].setItem(t,r);break;case "memory":this.store[t]=r;break;}}remove(t){switch(this.storageType){case "cookie":case "sessionCookie":this.removeCookie(t);break;case "localStorage":case "sessionStorage":window[this.storageType].removeItem(t);break;case "memory":delete this.store[t];break;}}checkIsStorageAvailable(t){switch(t){case "cookie":case "sessionCookie":return this.isCookieStorageAvailable();case "localStorage":case "sessionStorage":return this.isWindowStorageAvailable(t);case "none":case "memory":return  true;default:return  false}}isWindowStorageAvailable(t){try{let r=window&&t in window&&window[t]!==null;if(r){let i=Math.random().toString(36).substring(7);window[t].setItem(i,""),window[t].removeItem(i);}return r}catch(r){return  false}}isCookieStorageAvailable(){try{if(document&&"cookie"in document){let r=Math.random().toString(36).substring(7);this.setCookie(r,"test",new Date(Date.now()+60*1e3).toUTCString());let i=this.getCookie(r);return this.removeCookie(r),i==="test"}return !1}catch(t){return  false}}setCookie(t,r,i="",n="/"){document.cookie=`${t}=${r}${i?`; expires=${i}`:""}; path=${n}`;}removeCookie(t,r="/"){this.setCookie(t,"",new Date(0).toUTCString(),r);}getCookie(t){return document.cookie.replace(new RegExp(`(?:(?:^|.*;\\s*)${t}\\s*\\=\\s*([^;]*).*$)|^.*$`),"$1")}static{this.\u0275fac=function(r){return new(r||e)(me$b(h$b))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac});}};var Mr=class{constructor({method:o,url:t,status:r,userId:i,requestTimeInSeconds:n,data:g=null}){this.method=o,this.url=t,this.status=r,this.requestTimeInSeconds=n,this.data=g,this.userId=i;}};var bp=Object.values(wt$2);var _p=(o=>(o.NoCorporativeEmailDomain="pricing.corporative_email_domain_error",o))(_p||{}),Sp=Object.values(_p);var pg=e=>({code:e.oauthData.code,clientId:e.authorizationData.client_id,redirectUri:e.authorizationData.redirect_uri,promoCode:e.userData.promoCode,contract:e.userData.contract,lang:e.userData.lang}),mg=(e,o,t,r)=>{let i=r.get(c$6),n=r.get(x$d),g=r.get(ve$6),m=r.get(X$8),B=r.get(F$6),E=r.get(V$5),j=r.get(ot$4),U=r.get(L$3);e?.url?.includes("dmint")&&e.status>=500&&i.set("adInt");let P="";switch(e.status){case 0:break;case 500:P=n.instant("errors.500"),console.error("Server error occurred!");break;case 404:P=n.instant("errors.404");break;case 401:if(m.getToken())return B.send("[LOGOUT] 401 status on request","Logout Statistics",{url:window.location.href}
1004),E.logout(true,false),Lm$2(e);break;default:P=e.error?.message||P,P.includes(`
1005`)&&(P=P.split(`
1006`).pop()?.trim()||P);}return P&&!bp.includes(P)&&!Sp.includes(P)&&j.show(P),xp(e,t,o.method,o.body,g,U),navigator.onLine||console.error("No internet connection!"),Lm$2(e)},xp=(e,o,t,r,i,n)=>{let g=e.statusText,m=(Date.now()-o)/1e3,B=i.isGuest()?0:i.user.getValue().id,E=new Mr({method:t,url:e.url??"",status:g,userId:B,requestTimeInSeconds:m,data:r});n.sendRequestInfo(E);},Ap=(e,o)=>{let t=D$l(ye$7),r=D$l(x$d),i=D$l(ve$6),n=D$l(X$8),g=D$l(D$c),m=t.get(L$3),B=n.getToken();if(B&&(e.url.startsWith("/")||/^https:\/\/([^\/]+\.)?appmagic\.rocks/.exec(e.url))&&(e=e.clone({headers:e.headers.set("Authorization",`Bearer ${B}`)})),r.currentLang){let U={cn:"zh",jp:"ja",br:"pt"}[r.currentLang]||r.currentLang;e=e.clone({headers:e.headers.set("Content-Language",U)});}if(e.body?.oauthData?.code){let U=pg(e.body);e=e.clone({body:U});}let E=[];g.features.steamDevData.getValue()&&E.push("steamDevData"),g.features.adIntDev.getValue()&&E.push("adIntDev"),g.features.featureIntShowAllApps.getValue()&&E.push("featureIntShowAllApps"),g.features.platformCrossLinks.getValue()&&E.push("platformCrossLinks"),E.length>0&&(e=e.clone({headers:e.headers.set("X-Dev-Features",E.join(","))}));let j=Date.now();return o(e).pipe(Lu$2(U=>{U instanceof C$9&&U.url&&xp(U,j,e.method,e.body,i,m);}),xs$1(U=>mg(U,e,j,t)))};var dg=/\/(users|sentry)\b/i,ug=new Set(["POST","PUT","PATCH","DELETE"]);function gg(e){if(!e.body)return null;if(dg.test(e.url))return "[filtered]";try{let o=typeof e.body=="string"?e.body:JSON.stringify(e.body);return o.length>4096?o.slice(0,4096)+"\u2026[truncated]":o}catch(o){return "[non-serializable]"}}var Mp=(e,o)=>(ug.has(e.method)&&K$7()?.addBreadcrumb({category:"http.body",message:`${e.method} ${e.urlWithParams}`,data:{body:gg(e)},level:"info"}),o(e));var ao=class e{constructor(o,t,r,i,n,g,m){this.userService=o;this.authTokenService=t;this.loginService=r;this.warningPromoDialogService=i;this.promoCodeService=n;this.contractsService=g;this.router=m;}authPromoCode(){return this.promoCodeService.isPromoCodeExist()?this.authTokenService.getToken()?Ms$2(false):this.promoCodeService.promoCodeObject.create_user?this.promoCodeService.authPromoCode():Ms$2(false):Ms$2(false)}validatePromoCodeOrRemove(){return !this.promoCodeService.isPromoCodeExist()||this.promoCodeService.isActualPromoCodeObject()?Ms$2(null):this.promoCodeService.requestPromoCode().pipe(xs$1(o=>{if(o.status===422){let t=o.error.message?.trim();t&&this.router.events.pipe(Tn$3(r=>r instanceof P$8),Mu$2()).subscribe(()=>{this.warningPromoDialogService.open({keys:[t]});});}return this.promoCodeService.removePromoCode(),Ms$2(null)}),ge$9(()=>null))}validateContract(){let o=this.contractsService.getCode();return o?this.contractsService.getContractByInvite(o).pipe(ge$9(t=>{let r=this.userService.getUser();return t.contract&&!r?.userContracts.find(n=>n.contract_id===t.contract.id)?(this.loginService.logout(false,false),this.contractsService.setEmailDomainAllowed(t.contract.email_domain_allowed)):this.contractsService.setCode(""),null})):Ms$2(null)}user(){if(!!!this.authTokenService.getToken())return Ms$2(null);if(!this.userService.isGuest())return Ms$2(null);let t={};return this.promoCodeService.promoCode&&(t.promoCode=this.promoCodeService.promoCode),this.loginService.requestUser(t).pipe(ge$9(r=>{let i=r;if(!i)return null;let n=this.userService.user.getValue().promoCodeSuccess;return this.promoCodeService.removePromoCode(),n||i.warnings.length&&this.router.events.pipe(Tn$3(g=>g instanceof P$8),Mu$2()).subscribe(g=>{this.warningPromoDialogService.open({keys:i.warnings});}),null}))}trackPixels(){return this.userService.addTrackPixelsToPage(),Ms$2(null)}static{this.\u0275fac=function(t){return new(t||e)(me$b(ve$6),me$b(X$8),me$b(V$5),me$b(Me$2),me$b(M$5),me$b(w$4),me$b(F$4))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var Fp=(e,o)=>{let t=D$l(ao),r=D$l(fe$5);return t.validatePromoCodeOrRemove().pipe(Du$2(()=>t.authPromoCode().pipe(Du$2(()=>t.user().pipe(Du$2(()=>Wm$2([t.validateContract(),r.loadConfig(),t.trackPixels()])))))),xs$1(i=>(console.error(i),Ms$2(null))))};var kp=J$k(Ep());var wr=class e{constructor(o){this.uidService=o;}static getGroup(o,t=.5){let r=(0, kp.default)(o).toString().substr(0,6),i=parseInt("0x"+r,16),n=parseInt("0xffffff",16);return i/n>t}
1006inTestGroup(o){if(this.group!==void 0)return this.group;let t=this.uidService.getUid();return e.getGroup(t+"-"+o)}setGroup(o){this.group=o;}static{this.\u0275fac=function(t){return new(t||e)(me$b(g$8))};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var fg=e=>{switch(e.toLowerCase().trim()){case "true":case "yes":case "1":return  true;case "false":case "no":case "0":case null:return  false;default:return !!e}},Tp=e=>{let o=D$l(v$7),t=D$l(V$5),r=D$l(X$8),i=D$l(M$5),n=D$l(w$4),g=D$l(wr),m=D$l(D$c),{hl:B,approved_count:E,promoCode:j,contract:U,abGroup:H}=e.queryParams,P=e.queryParams[N$9],T=e.queryParams[U$7];if(j&&i.setPromoCode(j),U&&n.setCode(U),H&&g.setGroup(fg(H)),E&&o.setApprovedCount(E,false),(P||T)&&m.applyFromQuery(P,T),B){let ae=B==="en"?"en-us":B,h=v$7.findLangByLocale(ae);h&&o.selectLangById(h.id);}let ee=r.getToken()&&!j?t.requestUser({}):Ms$2(null);return Wm$2({translations:o.loadCurrentTranslations(),user:ee})};function vg(e,o){e&1&&Eg$1(0,"img",2);}var lo=class e{constructor(o,t,r){this.elementRef=o;this.userService=t;this.bpService=r;this.accountClick=new tt$b;let i=t.user.getValue();this.photo=i.picture?i.picture:e.promoPhoto;}static{this.promoPhoto="/assets/angular2/img/account/no_image_available.svg";}static{this.\u0275fac=function(t){return new(t||e)(Jr$4(Gr$4),Jr$4(ve$6),Jr$4(r$9))};}static{this.\u0275cmp=sw({type:e,selectors:[["my-account-button"]],inputs:{isActive:"isActive"},outputs:{accountClick:"accountClick"},decls:5,vars:9,consts:[[1,"account-container",3,"click","routerLinkActive"],[1,"photo",3,"src"],["src","/assets/angular2/img/account/star.svg",1,"star-premium"]],template:function(t,r){t&1&&(Zi$3(0,"a",0),_g$1("click",function(){return r.accountClick.emit(r.elementRef)}),Eg$1(1,"img",1),bb(2,"async"),uT(3,vg,1,0,"img",2),bb(4,"async"),kl$2()),t&2&&(Ig$1("routerLinkActive","active"),AE(),Pg$1("premium",_b(2,5,r.userService.isPremiumObserver)),Ig$1("src",r.photo,qp$2),AE(2),dT(_b(4,7,r.userService.isPremiumObserver)?3:-1));},dependencies:[An$3,fe$8,ta$1,hn$2],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;height:100%;position:relative;padding-right:var(--head-padding, 0px)}[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{width:40px;height:40px}[_nghost-%COMP%]   .account-container[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;cursor:pointer}[_nghost-%COMP%]   .account-container.active[_ngcontent-%COMP%]{border-color:var(--yellow-50)}@media(max-width:767px){[_nghost-%COMP%]   .account-container[_ngcontent-%COMP%]{height:32px;width:100%;justify-content:space-between;padding:0 0 0 16px}}[_nghost-%COMP%]   .photo[_ngcontent-%COMP%]{min-width:24px;width:24px;height:24px;top:0;position:relative;border:2px var(--white) solid;border-radius:100%;background-color:var(--white)}@media(max-width:767px){[_nghost-%COMP%]   .photo[_ngcontent-%COMP%]{border:none;margin-right:8px}}[_nghost-%COMP%]   .photo.premium[_ngcontent-%COMP%]{border:2px var(--yellow-50) solid}[_nghost-%COMP%]   .star-premium[_ngcontent-%COMP%]{position:absolute;top:-6px;right:-13px;height:13px;width:14px}@media(max-width:767px){[_nghost-%COMP%]   .star-premium[_ngcontent-%COMP%]{top:-2px;right:-2px}}"]});}};var Cg=e=>[e];function yg(e,o){e&1&&Eg$1(0,"i",1);}var Dr=class e{constructor(){this.isPremium=false;this.clickPricing=new tt$b;this.PricingUrl=e$h;}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["pricing-button"]],inputs:{isPremium:"isPremium"},outputs:{clickPricing:"clickPricing"},decls:4,vars:8,consts:[[1,"pos-relative",3,"click","routerLink","routerLinkActive"],[1,"star-premium"]],template:function(t,r){t&1&&(Zi$3(0,"a",0),_g$1("click",function(){return r.clickPricing.emit()}),ib(1),bb(2,"translate"),uT(3,yg,1,0,"i",1),kl$2()),t&2&&(Ig$1("routerLink",Ib(6,Cg,r.PricingUrl))("routerLinkActive","active"),AE(),jl$2(" ",_b(2,4,"screenList.demo_screens")," "),AE(2),dT(r.isPremium?-1:3));},dependencies:[fe$8,$t$4,ta$1,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;width:fit-content}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{display:flex;color:var(--static-white);font-size:14px;font-weight:500;line-height:16px}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--yellow-50)!important}[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover   .name[_ngcontent-%COMP%]{color:var(--yellow-50)!important}[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover   .arrow[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{stroke:var(--yellow-50)!important}}[_nghost-%COMP%]   a.active[_ngcontent-%COMP%]{cursor:default;color:var(--yellow-50)!important}[_nghost-%COMP%]   .star-premium[_ngcontent-%COMP%]{margin-left:4px;width:16px;height:16px;background:url(/assets/angular2/img/icons/pricing-star.svg) no-repeat 0}"]});}};var bg=e=>({time:e}),Rr=class e{constructor(o){this.premiumTimerService=o;}static{this.\u0275fac=function(t){return new(t||e)(Jr$4(l$9))};}static{this.\u0275cmp=sw({type:e,selectors:[["premium-timer"]],decls:10,vars:11,consts:[[1,"time-wrap"],[1,"dot"],[1,"time-left"]],template:function(t,r){t&1&&(Ol$2(0,"div",0)(1,"span"),ib(2),bb(3,"translate"),Ol$2(4,"span",1),ib(5,"."),Ll$2()(),Ol$2(6,"span",2),ib(7),bb(8,"async"),bb(9,"translate"),Ll$2()()),t&2&&(AE(2),Ug$1(_b(3,2,"screen.premium")),AE(5),jl$2(" ",Mb(9,6,"root.time_left",Ib(9,bg,_b(8,4,r.premiumTimerService.timer)))));},dependencies:[An$3,fe$8,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;background:var(--yellow-50);width:auto;font-weight:400;font-size:12px;line-height:14px;padding:4px 16px 4px 12px}[_nghost-%COMP%]   .time-wrap[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]   .dot[_ngcontent-%COMP%]{display:none}@media(max-width:767px){[_nghost-%COMP%]   .dot[_ngcontent-%COMP%]{display:inline}}[_nghost-%COMP%]   .time-left[_ngcontent-%COMP%]{white-space:nowrap;display:block}@media(max-width:767px){[_nghost-%COMP%]   .time-left[_ngcontent-%COMP%]{display:inline}}"]});}};var Or=class{getOnClose(o){let t=iy(Ns$2(document,"mousedown",{capture:true}).pipe(ge$9(()=>true)),Ns$2(document,"mouseup").pipe(ge$9(()=>false))).pipe(ge$9(i=>i),Au$2(false)),r=i=>!!i&&o.safeElements.some(n=>n.contains(i));return iy(ay([qm$2([Ns$2(document,"mousemove"),t]).pipe(Tn$3(([i,n])=>!n),ge$9(([i])=>i.target)),Ns$2(document,"touchstart",{capture:true,passive:false}).pipe(Tn$3(i=>!r(i.target)),Lu$2(i=>{i.preventDefault(),i.stopImmediatePropagation();}),ge$9(i=>i.target))]).pipe(Tn$3(i=>!r(i))),O$7.getOutOfDocumentEventObserve(),Ns$2(window,"resize"),Ns$2(window,"keyup")).pipe(Mu$2())}};var Np=(e,o)=>({count:e,countDay:o});function _g(e,o){if(e&1&&(Ol$2(0,"span"),ib(1),bb(2,"translateChoice"),Ll$2()),e&2){let t=NT();AE(),jl$2(" ",Mb(2,1,"promo-code.free_premium",Eb(4,Np,t.days,t.days))," ");}}function Sg(e,o){if(e&1&&(Ol$2(0,"span"),ib(1),bb(2,"translateChoice"),Ll$2()),e&2){let t=NT();AE(),jl$2(" ",Mb(2,1,"promo-code.free_premium_hours",Eb(4,Np,t.days,t.hours))," ");}}var Er=class e{ngAfterViewInit(){this.popper.update();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["promo-code-panel"]],inputs:{days:"days",hours:"hours",popper:"popper",overlayRef:"overlayRef"},decls:9,vars:2,consts:[["id","promo-code-dialog",1,"p-x-lg","flex","flex-a-c"],[1,"img-container"],["src","/assets/angular2/img/promo-code/happy.svg"],[1,"font-size-16","message"],[1,"g-icon-close",3,"click"],["data-popper-arrow","",1,"white"]],template:function(t,r){t&1&&(Ol$2(0,"div",0)(1,"div",1),Dg$1(2,"img",2),Ll$2(),Ol$2(3,"div",3),uT(4,_g,3,7,"span"),uT(5,Sg,3,7,"span"),Ll$2(),Ol$2(6,"div")(7,"i",4),Mg$1("click",function(){return r.overlayRef.dispose()}),Ll$2()()(),Dg$1(8,"div",5)),t&2&&(AE(4),dT(r.days>0?4:-1),AE(),dT(r.days===0&&r.hours>0?5:-1));},dependencies:[fe$8,u$6],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}#promo-code-dialog[_ngcontent-%COMP%]{position:relative;background:var(--white);box-shadow:var(--shadow-l);color:var(--black);border-radius:var(--app-info-border-radius);min-width:266px;height:70px;pointer-events:all}#promo-code-dialog[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]{flex-shrink:0;margin-right:16px}#promo-code-dialog[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{flex:1;padding-right:36px}"]});}};var so=class e{constructor(o,t,r,i){this.promoCodeService=o;this.overlay=t;this.elementRef=r;this.breakpointService=i;this.isShow=false;}ngOnChanges(o){if(o.isShow.currentValue&&this.promoCodeService.hasPromoCode()&&!this.breakpointService.get(i$h.isMobLs)){this.openInfoPanel();return}this.hideInfoPanel();}openInfoPanel(){this.tooltip=this.overlay.create(),this.tooltip.backdropClick().subscribe(()=>{this.tooltip.dispose();});let o=new H$a(Er),t=this.tooltip.attach(o);t.instance.days=this.promoCodeService.getDays(),t.instance.hours=this.promoCodeService.getHours(),t.instance.overlayRef=this.tooltip,t.instance.popper=new St$7(this.elementRef.nativeElement,this.tooltip.overlayElement,Jt$7.mergePopperConfig(Jt$7.getTooltipConfig("bottom-end"),{middleware:[se$a({element:St$7.getArrowElm()})]}));}hideInfoPanel(){this.tooltip&&this.tooltip.dispose();}ngOnDestroy(){this.hideInfoPanel();}static{this.\u0275fac=function(t){return new(t||e)(Jr$4(M$5),Jr$4(Vt$7),Jr$4(Gr$4),Jr$4(r$9))};}static{this.\u0275dir=dw({type:e,selectors:[["","promoCode",""]],inputs:{isShow:[0,"promoCode","isShow"]},features:[Ev$1]});}};var Bp=e=>({$implicit:e}),xg=(e,o)=>o.name;function Ag(e,o){if(e&1&&(Zi$3(0,"span",3)(1,"span",4),ib(2),bb(3,"translate"),kl$2(),Tg$1(4,5),Eg$1(5,"img",6),kl$2()),e&2){let t=NT(2).$implicit,r=NT(),i=FT(3);Ig$1("textTooltip",r.getTooltipText(t))("closeOnClick",true)("nested",true)("analyticsEvent","navbar_app_tracker_only_premium_help_tooltip")("placement","right"),AE(2),Ug$1(_b(3,8,t.name)),AE(2),Ig$1("ngTemplateOutlet",i)("ngTemplateOutletContext",Ib(10,Bp,t));}}function Mg(e,o){e&1&&Eg$1(0,"img",7);}function Pg(e,o){if(e&1&&(ib(0),bb(1,"translate"),uT(2,Mg,1,0,"img",7),Tg$1(3,5)),e&2){let t=NT(2).$implicit,r=db(6);NT();let i=FT(3);jl$2(" ",_b(1,4,t.name)," "),AE(2),dT(r?2:-1),AE(),Ig$1("ngTemplateOutlet",i)("ngTemplateOutletContext",Ib(6,Bp,t));}}function Fg(e,o){if(e&1){let t=DT();Zi$3(0,"a",2),_g$1("click",function(i){Rd$2(t);let n=NT().$implicit,g=NT();return kd$2(g.handleClickNav(n,i))}),uT(1,Ag,6,12,"span",3)(2,Pg,4,8),kl$2();}if(e&2){let t=NT(),r=t.$implicit,i=t.$index,n=db(4),g=db(5),m=db(6);Pg$1("firstItem",i===0)("active",r.isActive())("lock",g)("only-mobile",m),Ig$1("href",r.url,qp$2),AE(),dT(n?1:2);}}function wg(e,o){if(e&1&&(Zg$1(0),bb(1,"async"),Zg$1(2),bb(3,"async"),Zg$1(4)(5)(6),uT(7,Fg,3,10,"a",1)),e&2){let t=o.$implicit,r=NT(),i=t.accessName??t.lockAccessName,n=!i||r.userService.hasAccess(i),g=_b(1,1,r.userService.isPremiumObserver)??false,m=_b(3,3,r.userService.isGuestObserver)??false;AE(4);let B=ub(!!i&&!n||t.onlyPremium&&!g||t.onlyLogin&&m),E=t.isHidden==null?null:t.isHidden();AE(),ub(t.soon||B),AE();let j=ub(t.url==="/demo-request");AE(),dT(!E&&!(j&&g)?7:-1);}}function Dg(e,o){e&1&&(Zi$3(0,"span",8),ib(1),bb(2,"translate"),kl$2()),e&2&&(AE(),jl$2(" ",_b(2,1,"apps.new"),"! "));}function Rg(e,o){e&1&&(Zi$3(0,"span",9),ib(1),kl$2()),e&2&&(AE(),Ug$1("dev"));}function Og(e,o){e&1&&(Zi$3(0,"span",10),ib(1),bb(2,"translate"),kl$2()),e&2&&(AE(),jl$2(" ",_b(2,1,"publisherPage.soon")," "));}function Eg(e,o){if(e&1&&(uT(0,Dg,3,3,"span",8),uT(1,Rg,2,1,"span",9),uT(2,Og,3,3,"span",10)),e&2){let t=o.$implicit;dT(t.isNew?0:-1),AE(),dT(t.dev?1:-1),AE(),dT(t.soon?2:-1);}}var kr=class e{constructor(){this.hoverFirstItem=false;this.clickNav=new tt$b;this.userService=D$l(ve$6);}getTooltipText(o){return v$6.getLockTooltipText(this.userService,o.accessName??o.lockAccessName)}handleClickNav(o,t){t.ctrlKey||t.metaKey||(t.preventDefault(),this.clickNav.emit(o));}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["nav-select-panel-children"]],hostVars:4,hostBindings:function(t,r){t&2&&Pg$1("dark",r.dark)("first-item-hover",r.hoverFirstItem);}
1006,inputs:{items:"items",dark:"dark",hoverFirstItem:"hoverFirstItem"},outputs:{clickNav:"clickNav"},decls:4,vars:0,consts:[["navBadges",""],[1,"menu-item",3,"href","firstItem","active","lock","only-mobile"],[1,"menu-item",3,"click","href"],[1,"outline-none","pos-relative","lock-item",3,"textTooltip","closeOnClick","nested","analyticsEvent","placement"],[1,""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["width","16","height","16","src","/assets/angular2/img/icons/lock-grey-70.svg","alt","","aria-hidden","true",1,"lock-icon"],["src","/assets/angular2/img/icons/pricing-star.svg","width","16","height","16","alt","",1,"demo-star"],[1,"g-status-label","g-new-color"],[1,"g-status-label","g-dev-color"],[1,"g-status-label","g-new-color","text-lowercase"]],template:function(t,r){t&1&&(hT(0,wg,8,8,null,null,xg),cg$1(2,Eg,3,3,"ng-template",null,0,Ab)),t&2&&gT(r.items);},dependencies:[An$3,dn$3,fe$8,fe$6,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column}.first-item-hover[_nghost-%COMP%]   .menu-item.firstItem[_ngcontent-%COMP%]:not(.active,.lock):first-child{background-color:var(--surface-hover)!important}.first-item-hover.dark[_nghost-%COMP%]   .menu-item.firstItem[_ngcontent-%COMP%]:not(.active,.lock):first-child{background-color:var(--grey-80)!important}@media(hover:hover)and (pointer:fine){.dark[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]:hover:not(.active,.lock){background-color:var(--grey-80)}}.dark[_nghost-%COMP%]   .menu-item.active[_ngcontent-%COMP%]:not(.lock){background:var(--yellow-50);color:var(--on-accent)}[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--black);border-radius:4px;font-size:14px;height:auto;min-height:auto;padding:8px 16px;line-height:16px;position:relative;display:flex;align-items:center;margin:0 8px 4px;white-space:normal}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]:hover:not(.active,.lock){background-color:var(--surface-hover)}}[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--black)}[_nghost-%COMP%]   .menu-item.active[_ngcontent-%COMP%]:not(.lock){background:var(--selected);color:var(--on-selected)}[_nghost-%COMP%]   .menu-item.lock[_ngcontent-%COMP%]{cursor:default}[_nghost-%COMP%]   .lock-item[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;padding-right:4px}[_nghost-%COMP%]   .lock-icon[_ngcontent-%COMP%]{position:relative;right:-4px}[_nghost-%COMP%]   .demo-star[_ngcontent-%COMP%]{margin-left:4px}@media(min-width:768px){[_nghost-%COMP%]   .only-mobile[_ngcontent-%COMP%]{display:none}}"]});}};var Ip="my-account/:id",Lp="my-account/";var Up="favorites/:type",Gp="favorites";var Br=e=>[e],Hp=(e,o)=>o.name+o.children?.length+o.childrenGroups?.length;function kg(e,o){if(e&1){let t=DT();Zi$3(0,"btn-spinner",7),bb(1,"async"),_g$1("click",function(){Rd$2(t);let i=NT(2);return kd$2(i.loginClick.emit())}),kl$2();}if(e&2){let t=NT(2);Ig$1("promoCode",t.showPromo)("text","auth.login")("loading",_b(1,3,t.userService.isLoading));}}function Tg(e,o){e&1&&(Zi$3(0,"span",11),ib(1),bb(2,"translate"),kl$2()),e&2&&(AE(),jl$2("",_b(2,1,"apps.new"),"!"));}function Ng(e,o){if(e&1&&(Zi$3(0,"div",8)(1,"span"),ib(2),bb(3,"translate"),uT(4,Tg,3,3,"span",11),kl$2()()),e&2){let t=NT(3);Ig$1("routerLink",Ib(6,Br,t.myFavoritesBasicShortUrl))("routerLinkActive","active"),AE(2),Ug$1(_b(3,4,"favorites.favorites")),AE(2),dT(t.is
1006FavoritesNew?4:-1);}}function Bg(e,o){if(e&1&&(Zi$3(0,"div",8),ib(1),kl$2()),e&2){let t=NT(3);Ig$1("routerLink",Ib(3,Br,t.devFeaturesShortUrl))("routerLinkActive","active"),AE(),jl$2(" ","Dev Features"," ");}}function Ig(e,o){if(e&1&&(Zi$3(0,"div",8),ib(1),kl$2()),e&2){let t=NT(3);Ig$1("routerLink",Ib(3,Br,t.userConfigPageShortUrl))("routerLinkActive","active"),AE(),jl$2(" ","User Config"," ");}}function Lg(e,o){if(e&1){let t=DT();Zi$3(0,"div",8)(1,"span",9),ib(2),bb(3,"translate"),kl$2(),Zi$3(4,"my-account-button",10),_g$1("accountClick",function(i){Rd$2(t);let n=NT(2);return kd$2(n.accountClick.emit(i))}),kl$2()(),uT(5,Ng,5,8,"div",8),uT(6,Bg,2,5,"div",8),uT(7,Ig,2,5,"div",8);}if(e&2){let t=NT(2);Ig$1("routerLink",Ib(8,Br,t.myAccountWithoutIdShortUrl))("routerLinkActive","active"),AE(2),jl$2(" ",_b(3,6,"auth.my_account")," "),AE(3),dT(t.showFavorites()?5:-1),AE(),dT(t.isDevFeaturesAllowed?6:-1),AE(),dT(t.isUserConfigAllowed()?7:-1);}}function Ug(e,o){if(e&1&&(Zi$3(0,"div",13),ib(1),bb(2,"translate"),kl$2()),e&2){let t=NT().$implicit;AE(),Ug$1(_b(2,1,t.name));}}function Gg(e,o){if(e&1&&(Zi$3(0,"div",13),ib(1),bb(2,"translate"),kl$2()),e&2){let t=NT().$implicit;AE(),Ug$1(_b(2,1,t.name));}}function Hg(e,o){if(e&1){let t=DT();Zi$3(0,"section",16),uT(1,Gg,3,3,"div",13),Zi$3(2,"nav-select-panel-children",17),_g$1("clickNav",function(i){Rd$2(t);let n=NT(4);return kd$2(n.selectNav.emit(i))}),kl$2()();}if(e&2){let t=o.$implicit,r=NT(4);Pg$1("no-name",!t.name),AE(),dT(t.name?1:-1),AE(),Ig$1("dark",r.dark)("items",t.children);}}function Vg(e,o){if(e&1&&hT(0,Hg,3,5,"section",15,Hp),e&2){let t=NT().$implicit;gT(t.childrenGroups);}}function zg(e,o){if(e&1){let t=DT();Zi$3(0,"section",12),uT(1,Ug,3,3,"div",13),Zi$3(2,"nav-select-panel-children",14),_g$1("clickNav",function(i){Rd$2(t);let n=NT(2);return kd$2(n.selectNav.emit(i))}),kl$2(),uT(3,Vg,2,0),kl$2();}if(e&2){let t=o.$implicit,r=o.$index,i=NT(2);Pg$1("no-name",!t.name)("single-group",i.items.length<=2),AE(),dT(t.name&&i.items.length>2?1:-1),AE(),Ig$1("dark",i.dark)("hoverFirstItem",!i.isPanelHovered&&r===0&&!i.mobile)("items",t.children),AE(),dT(t.childrenGroups?3:-1);}}function Wg(e,o){if(e&1){let t=DT();Zi$3(0,"div",6)(1,"div",18)(2,"a",19),_g$1("click",function(){Rd$2(t);let i=NT(2);return kd$2(i.logoutClick.emit())}),Zi$3(3,"span"),ib(4),bb(5,"translate"),kl$2(),Eg$1(6,"div",20),kl$2()()();}e&2&&(AE(4),jl$2(" ",_b(5,1,"account.logout")," "));}function jg(e,o){if(e&1){let t=DT();Zi$3(0,"div",1),_g$1("mouseover",function(){Rd$2(t);let i=NT();return kd$2(i.isPanelHovered=true)})("mouseout",function(){Rd$2(t);let i=NT();return kd$2(i.isPanelHovered=false)}),Zi$3(1,"div",2),uT(2,kg,2,5,"btn-spinner",3)(3,Lg,8,10),Zi$3(4,"div",4),hT(5,zg,4,9,"section",5,Hp),kl$2(),uT(7,Wg,7,3,"div",6),kl$2()();}if(e&2){let t=NT(),r=db(0);Pg$1("mobile",t.mobile),AE(2),dT(r?2:3),AE(3),gT(t.items),AE(2),dT(r?-1:7);}}var Tr=class e{constructor(){this.showFavorites=VV(true);this.cancel=new tt$b;this.loginClick=new tt$b;this.logoutClick=new tt$b;this.selectNav=new tt$b;this.accountClick=new tt$b;this.isPanelHovered=false;this.devFeaturesShortUrl=xe$3;this.myAccountWithoutIdShortUrl=Lp;this.myFavoritesBasicShortUrl=Gp;this.userConfigPageShortUrl=_e$3;this.userService=D$l(ve$6);this.isFavoritesNew=i$9.isNewFeature("favoritesGroups");this.isUserConfigAllowed=D$l(D$c).featuresSignal.userConfigEditor;}ngAfterViewInit(){this.popper&&this.popper.update();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["nav-select-panel"]],hostVars:3,hostBindings:function(t,r){t&2&&(vg$1("max-item-count",r.maxCount),Pg$1("dark",r.dark));},inputs:{popper:"popper",showPromo:"showPromo",mobile:"mobile",isDevFeaturesAllowed:"isDevFeaturesAllowed",navGroupList:"navGroupList",items:"items",showFavorites:[1,"showFavorites"],maxCount:"maxCount",dark:"dark"},outputs:{cancel:"cancel",loginClick:"loginClick",logoutClick:"logoutClick",selectNav:"selectNav",accountClick:"accountClick"},decls:3,vars:3,consts:[["class","main-container",3,"mobile","mouseover","mouseout",4,"amScrollbar"],[1,"main-container",3,"mouseover","mouseout"],[1,"content"],[1,"login-btn",3,"promoCode","text","loading"],[1,"group-wrap"],[1,"group",3,"no-name","single-group"],[1,"logout"],[1,"login-btn",3,"click","promoCode","text","loading"],[1,"menu-item","account-wrap",3,"routerLink","routerLinkActive"],[1,"account-label"],[1,"",3,"accountClick"],[1,"g-status-label","g-new-color"],[1,"group"],[1,"group-name"],[1,"menu-item-wrap",3,"clickNav","dark","hoverFirstItem","items"],[1,"child-group",3,"no-name"],[1,"child-group"],[1,"menu-item-wrap",3,"clickNav","dark","items"],[1,"menu-item","account-wrap"],[1,"account-label","logout-block",3,"click"],[1,"logout-icon"]],template:function(t,r){t&1&&(Zg$1(0),bb(1,"async"),cg$1(2,jg,8,4,"div",0)),t&2&&ub(_b(1,0,r.userService.isGuestObserver));},dependencies:[An$3,fe$8,oa,$t$4,ta$1,Ht$7,so,X$5,lo,kr,hn$2,he$8],styles:[`[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column;max-height:calc(var(--height) - var(--root-header-height) - 16px);border-radius:0 0 8px 8px;min-width:260px;background-color:var(--white);box-shadow:var(--shadow-m);pointer-events:all}@media(max-width:576px){[_nghost-%COMP%]{max-height:calc(var(--height) - var(--root-header-height) - 8px)}}.dark[_nghost-%COMP%]{color:var(--static-white);background-color:var(--grey-100)}.dark[_nghost-%COMP%]   .group-name[_ngcontent-%COMP%]{font-weight:400;background:var(--grey-100)}[_nghost-%COMP%]   .main-container[_ngcontent-%COMP%]{min-height:0;flex:1}[_nghost-%COMP%]   .logout[_ngcontent-%COMP%]{display:none;padding-top:8px;margin-top:8px;border-top:1px solid var(--grey-40)}@media(max-width:767px){[_nghost-%COMP%]   .logout[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .logout[_ngcontent-%COMP%]   .account-wrap[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important;width:100%}[_nghost-%COMP%]   .logout-block[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-right:4px;text-transform:capitalize}[_nghost-%COMP%]   .group[_ngcontent-%COMP%], [_nghost-%COMP%]   .child-group[_ngcontent-%COMP%]{position:relative;border-top:1px solid var(--grey-40);margin-top:16px;padding-top:16px}[_nghost-%COMP%]   .group.single-group[_ngcontent-%COMP%], [_nghost-%COMP%]   .child-group.single-group[_ngcontent-%COMP%]{margin-top:0;padding-top:0}@media(max-width:767px){[_nghost-%COMP%]   .group.single-group[_ngcontent-%COMP%], [_nghost-%COMP%]   .child-group.single-group[_ngcontent-%COMP%]{border-top:none}}[_nghost-%COMP%]   .group.single-group[_ngcontent-%COMP%]:first-child, [_nghost-%COMP%]   .child-group.single-group[_ngcontent-%COMP%]:first-child{border-top:none}[_nghost-%COMP%]   .group.no-name[_ngcontent-%COMP%], [_nghost-%COMP%]   .child-group.no-name[_ngcontent-%COMP%]{margin-top:8px;padding-top:8px}[_nghost-%COMP%]   .group-name[_ngcontent-%COMP%]{text-transform:capitalize;font-size:14px;font-weight:500;line-height:16px;position:absolute;top:-10px;left:0;background:var(--white);padding:0 12px}[_nghost-%COMP%]   .switch-nav[_ngcontent-%COMP%]{color:var(--black);width:calc(100% - 24px);margin:8px 12px;display:none}@media(max-width:767px){[_nghost-%COMP%]   .switch-nav[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .login-btn[_ngcontent-%COMP%]{width:calc(100% - 16px);margin:0 8px;display:none}@media(max-width:767px){[_nghost-%COMP%]   .login-btn[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 0;padding:8px 0;width:100%;margin:0}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{margin:0 6px 0 0}}@media(min-width:1279px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{min-height:auto}}[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--black);border-radius:4px;font-size:14px;height:auto;min-height:auto;padding:8px 16px;line-height:16px;position:relative;display:flex;align-items:center;margin:2px 8px;white-space:normal}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]:hover:not(.active,.lock){background-color:var(--surface-hover)}}[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit}[_nghost-%COMP%]   .menu-item.active[_ngcontent-%COMP%]:not(.lock){background:var(--selected)}[_nghost-%COMP%]   .menu-item.lock[_ngcontent-%COMP%]{cursor:default}[_nghost-%COMP%]   .menu-item.account-wrap[_ngcontent-%COMP%]{justify-content:space-between;align-items:center;padding-right:4px;padding-top:0;padding-bottom:0;display:none;min-height:32px}@media(max-width:767px){[_nghost-%COMP%]   .menu-item.account-wrap[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]   .lock-item[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;padding-right:4px}[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]   .lock-icon[_ngcontent-%COMP%]{position:relative;right:-4px}[_nghost-%COMP%]   .menu-item[_ngcontent-%COMP%]   .new[_ngcontent-%COMP%]{position:relative;right:-2px;top:-6px;color:var(--red-50);font-size:10px;font-weight:700;line-height:12px;text-transform:uppercase}[_nghost-%COMP%]   .single-group[_ngcontent-%COMP%]{display:block!important}[max-item-count="6"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(1), [max-item-count="6"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(2), [max-item-count="6"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(3), [max-item-count="6"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(4), [max-item-count="6"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(5){display:none}[max-item-count="5"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(1), [max-item-count="5"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(2), [max-item-count="5"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(3), [max-item-count="5"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(4){dis
1006play:none}[max-item-count="4"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(1), [max-item-count="4"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(2), [max-item-count="4"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(3){display:none}[max-item-count="3"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(1), [max-item-count="3"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(2){display:none}[max-item-count="2"][_nghost-%COMP%]   .group[_ngcontent-%COMP%]:nth-child(1){display:none}[_nghost-%COMP%]   .logout-icon[_ngcontent-%COMP%]{margin-left:8px;height:16px;width:16px;background-color:var(--black);-webkit-mask:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M11.5 10.5L14 8M14 8L11.5 5.5M14 8H6M9 11V11.125C9 11.6223 8.80246 12.0992 8.45083 12.4508C8.09919 12.8025 7.62228 13 7.125 13H4.875C4.37772 13 3.90081 12.8025 3.54917 12.4508C3.19754 12.0992 3 11.6223 3 11.125V4.875C3 4.37772 3.19754 3.90081 3.54917 3.54917C3.90081 3.19754 4.37772 3 4.875 3H7.125C7.62228 3 8.09919 3.19754 8.45083 3.54917C8.80246 3.90081 9 4.37772 9 4.875V5" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');mask:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M11.5 10.5L14 8M14 8L11.5 5.5M14 8H6M9 11V11.125C9 11.6223 8.80246 12.0992 8.45083 12.4508C8.09919 12.8025 7.62228 13 7.125 13H4.875C4.37772 13 3.90081 12.8025 3.54917 12.4508C3.19754 12.0992 3 11.6223 3 11.125V4.875C3 4.37772 3.19754 3.90081 3.54917 3.54917C3.90081 3.19754 4.37772 3 4.875 3H7.125C7.62228 3 8.09919 3.19754 8.45083 3.54917C8.80246 3.90081 9 4.37772 9 4.875V5" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>')}`]});}};var ut=class e{constructor(){this.userService=D$l(ve$6);this.loginDialogService=D$l(Dt$2);this.demoRequestService=D$l(n$e);this.router=D$l(F$4);}checkPremium(o,t={}){return this.userService.isPremium()?(this.router.navigate(o,{queryParams:t}),true):(this.demoRequestService.open(),false)}checkPremiumWithLoginAndRedirectAfter(o,t={}){return this.userService.isGuest()?(this.loginDialogService.open().subscribe(()=>{this.checkPremium(o,t);}),false):this.checkPremium(o,t)}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};function $g(e,o){if(e&1&&(qd$2(),Ol$2(0,"svg",4),Dg$1(1,"path",5),Ll$2()),e&2){let t=NT(2);Pg$1("active",t.isActive())("open",t.isModalOpen());}}function qg(e,o){if(e&1&&(Ol$2(0,"span",1),ib(1),bb(2,"translate"),Dg$1(3,"span",2),Ll$2(),uT(4,$g,2,4,":svg:svg",3)),e&2){let t=NT();Pg$1("active",t.isActive())("open",t.isModalOpen()),AE(),jl$2(" ",_b(2,6,t.name)," "),AE(3),dT(t.showArrow?4:-1);}}function Kg(e,o){if(e&1){let t=DT();Ol$2(0,"i",6),Mg$1("pointerdown",function(){Rd$2(t);let i=NT();return kd$2(i.closeClick.next())}),Dg$1(1,"span",7)(2,"span",7)(3,"span",7)(4,"span",2),Ll$2();}if(e&2){let t=NT();Pg$1("active",t.isModalOpen());}}var co=class e{constructor(){this.items=VV.required();this.showFavorites=VV(true);this.openWithSingleItem=VV(false);this.dark=VV.required();this.showArrow=false;this.showPromo=false;this.maxCount=VV();this.toggleOpen=new tt$b;this.logout=new tt$b;this.accountClick=new tt$b;this.isModalOpen=fi$4(false);this.wasOpenOnPointerDown=false;this.closeClick=new de$c;this.subscription=new W$f;this.amTooltipService=D$l(w$7);this.element=D$l(Gr$4);this.checkAccessService=D$l(n$8);this.checkPremiumService=D$l(ut);this.router=D$l(F$4);this.userService=D$l(ve$6);this.route=D$l(W$6);this.loginDialogService=D$l(Dt$2);this.disableGlobalScrollStrategy=D$l(d$b);this.analyticsService=D$l(L$3);this.breakpointService=D$l(r$9);let o=true;ef$2(()=>{let t=this.isModalOpen();if(o){o=false;return}this.toggleOpen.emit(t),this.amTooltip?.instance&&(this.amTooltip.instance.maxCount=this.maxCount());}),this.isActive=Pb(()=>e.isChildExistActive(this.items(),this.maxCount()));}onHostPointerDown(){this.wasOpenOnPointerDown=this.isModalOpen();}onHostClick(){a$g.isTouchDevice()&&this.wasOpenOnPointerDown&&this.closeClick.next();}static isChildExistActive(o,t){return (t?o.slice(t-1):o).some(i=>i.children.some(n=>n.isActive())||i.childrenGroups?.some(n=>n.children.some(g=>g.isActive())))}static getTooltipConfig(o){return {containerClass:"tooltip-container",backdropClass:"fixed-tooltip-backdrop",analyticsEvent:"navbar_nav_select_open",closeStrategy:new Or,useDebounceForPopper:null,minHoverDuration:20,popper:{strategy:"fixed",placement:"bottom-start",middleware:[tt$a({mainAxis:0,crossAxis:0}),ut$8()]}}}ngOnInit(){this.subscription.add(this.breakpointService.isMobLs.pipe(Ru$2(o=>{let t=e.getTooltipConfig(o);return o&&(t.scrollStrategyInterface=this.disableGlobalScrollStrategy,t.backdropClass="am-dialog-backdrop"),this.amTooltip=this.amTooltipService.getTooltip(this.element,Tr,t),this.amTooltip.onElementHover})).subscribe(()=>{if(this.items().length===1&&this.items()[0].children.length===1&&!this.openWithSingleItem())return;this.amTooltip.open(),this.isModalOpen.set(true),this.amTooltip.instance.showFavorites=this.show
1006Favorites,this.amTooltip.instance.dark=this.dark(),this.amTooltip.instance.isDevFeaturesAllowed=T$2.isDevFeaturesAllowed(this.userService.getUser()?.userContracts??[]),this.amTooltip.instance.showPromo=this.showPromo,this.amTooltip.instance.mobile=this.breakpointService.get(i$h.isMobLs),this.amTooltip.instance.items=this.items(),this.amTooltip.instance.maxCount=this.maxCount();let t=new W$f;t.add(this.amTooltip.onClose.subscribe(()=>{t.unsubscribe(),this.isModalOpen.set(false);})),t.add(this.amTooltip.instance.selectNav.subscribe(r=>this.handleNavSelect(r))),t.add(this.amTooltip.instance.accountClick.subscribe(r=>this.accountClick.emit(r))),t.add(this.amTooltip.instance.cancel.subscribe(()=>this.amTooltip.close())),t.add(this.closeClick.subscribe(()=>this.amTooltip.close())),t.add(this.amTooltip.instance.loginClick.subscribe(()=>{this.loginDialogService.open().pipe(Mu$2()).subscribe(()=>{let i=this.route.snapshot.queryParamMap.get("stateTo")||this.router.url;this.router.navigateByUrl(s$k,{skipLocationChange:true}).then(()=>{this.router.navigateByUrl(i,{replaceUrl:true});});});})),t.add(this.amTooltip.instance.logoutClick.subscribe(()=>{this.amTooltip.close(),this.logout.emit();}));}));}handleNavSelect(o){if(this.analyticsService.send("navbar_click_option",[o.url]),o.lockAccessName&&this.userService.isGuest()){this.amTooltip.close(),this.loginDialogService.open().pipe(Mu$2()).subscribe(()=>this.router.navigateByUrl(o.url));return}if(!o.onlyPremium&&!o.accessName){this.router.navigateByUrl(o.url);return}if(o.onlyPremium){this.checkPremiumService.checkPremiumWithLoginAndRedirectAfter([o.url]);return}this.checkAccessService.checkAccessWithLoginAndRedirectAfter(o.accessName,[o.url]),this.amTooltip.close();}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["nav-select-item"]],hostVars:2,hostBindings:function(t,r){t&1&&_g$1("pointerdown",function(){return r.onHostPointerDown()})("click",function(){return r.onHostClick()}),t&2&&Pg$1("show-arrow",r.showArrow);},inputs:{items:[1,"items"],showFavorites:[1,"showFavorites"],openWithSingleItem:[1,"openWithSingleItem"],dark:[1,"dark"],name:"name",showArrow:"showArrow",showPromo:"showPromo",maxCount:[1,"maxCount"]},outputs:{toggleOpen:"toggleOpen",logout:"logout",accountClick:"accountClick"},decls:4,vars:6,consts:[[1,"burger",3,"active"],[1,"name"],[1,"has-new-feature-icon","g-has-new-feature-icon"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"arrow",3,"active","open"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"arrow"],["d","M13 6L8 11L3 6","stroke","white","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"burger",3,"pointerdown"],[1,"line"]],template:function(t,r){t&1&&(uT(0,qg,5,8),bb(1,"async"),uT(2,Kg,5,2,"i",0),bb(3,"async")),t&2&&(dT(_b(1,2,r.breakpointService.isMobLs)?-1:0),AE(2),dT(_b(3,4,r.breakpointService.isMobLs)?2:-1));},dependencies:[An$3,fe$8,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;padding:12px 0;text-transform:capitalize;cursor:pointer;white-space:nowrap;color:var(--static-white);font-size:14px;font-weight:500;line-height:16px}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]:hover{color:var(--yellow-50)!important}[_nghost-%COMP%]:hover   .name[_ngcontent-%COMP%]{color:var(--yellow-50)!important}[_nghost-%COMP%]:hover   .arrow[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{stroke:var(--yellow-50)!important}}.active[_nghost-%COMP%]{cursor:default;color:var(--yellow-50)!important}.show-arrow[_nghost-%COMP%]   .has-new-feature-icon[_ngcontent-%COMP%]{right:-22px;top:0;transform:translate(100%)}.has-new-feature[_nghost-%COMP%]   .has-new-feature-icon[_ngcontent-%COMP%]{transform:scale(1);opacity:1}.show-arrow.has-new-feature[_nghost-%COMP%]   .has-new-feature-icon[_ngcontent-%COMP%]{right:-30px}[_nghost-%COMP%]   .has-new-feature-icon[_ngcontent-%COMP%]{transform:scale(0);right:-10px;top:-1px;opacity:0}[_nghost-%COMP%]   .burger[_ngcontent-%COMP%]   .has-new-feature-icon[_ngcontent-%COMP%]{inset:auto auto 0 -6px}[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%]{margin-left:4px}[_nghost-%COMP%]   .name[_ngcontent-%COMP%]{position:relative;color:var(--static-white);font-size:14px;font-weight:500;line-height:16px}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .name[_ngcontent-%COMP%]:hover{color:var(--yellow-50)!important}[_nghost-%COMP%]   .name[_ngcontent-%COMP%]:hover   .name[_ngcontent-%COMP%]{color:var(--yellow-50)!important}[_nghost-%COMP%]   .name[_ngcontent-%COMP%]:hover   .arrow[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{stroke:var(--yellow-50)!important}}[_nghost-%COMP%]   .name.active[_ngcontent-%COMP%]{cursor:default;color:var(--yellow-50)!important}[_nghost-%COMP%]   .name.open[_ngcontent-%COMP%]{color:var(--yellow-50)}[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%]{transition:.1s}[_nghost-%COMP%]   .arrow.active[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{stroke:var(--yellow-50)}[_nghost-%COMP%]   .arrow.open[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%]   .arrow.open[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{stroke:var(--yellow-50)}[_nghost-%COMP%]   .burger[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-end;justify-content:center}[_nghost-%COMP%]   .burger[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{display:block;width:22px;height:2px;border-radius:1px;margin-top:4px;transition:.15s opacity,.15s transform;background:var(--yellow-50)}[_nghost-%COMP%]   .burger[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]:first-child{width:28px;margin-top:0}[_nghost-%COMP%]   .burger.active[_ngcontent-%COMP%]{padding-right:6px}[_nghost-%COMP%]   .burger.active[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]:first-child{width:22px;transform:rotate(45deg) translate(8px)}[_nghost-%COMP%]   .burger.active[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]:nth-child(2){opacity:0}[_nghost-%COMP%]   .burger.active[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg) translate(8px,-1px)}"]});}};var Ir=class e{transform(o){return !!o.find(t=>t.hasNotViewedNew)}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275pipe=fw({name:"hasArrayNotViewedNew",type:e,pure:true});}};function Xg(e,o){if(e&1){let t=DT();Zi$3(0,"nav-select-item",1),bb(1,"hasArrayNotViewedNew"),_g$1("toggleOpen",function(i){Rd$2(t);let n=NT();return kd$2(n.navToggleOpen.emit({isOpen:i,groups:[n.mobileList()]}))})("logout",function(){Rd$2(t);let i=NT();return kd$2(i.logout.emit())})("accountClick",function(i){Rd$2(t);let n=NT();return kd$2(n.accountClick.emit(i))}),kl$2();}if(e&2){let t=NT();Pg$1("has-new-feature",_b(1,7,t.mobileList())),Ig$1("dark",t.dark())("openWithSingleItem",true)("items",t.mobileList())("showPromo",t.showPromo())("showFavorites",t.showFavorites());}}
1006function Yg(e,o){if(e&1){let t=DT();Zi$3(0,"nav-select-item",4),_g$1("toggleOpen",function(i){Rd$2(t);let n=NT().$implicit,g=NT(2);return kd$2(g.navToggleOpen.emit({isOpen:i,groups:[n]}))})("logout",function(){Rd$2(t);let i=NT(3);return kd$2(i.logout.emit())})("accountClick",function(i){Rd$2(t);let n=NT(3);return kd$2(n.accountClick.emit(i))})("click",function(i){Rd$2(t);let n=NT().$implicit,g=NT(2);return kd$2(g.openNavPage(n[0],i))}),kl$2();}if(e&2){let t=NT().$implicit,r=NT(2);Pg$1("has-new-feature",t[0].hasNotViewedNew),Ig$1("dark",r.dark())("name",t[0].name)("items",t)("showPromo",r.showPromo());}}function Qg(e,o){if(e&1&&uT(0,Yg,1,6,"nav-select-item",3),e&2){let t=o.$implicit,r=t[0]?.isHidden&&t[0]?.isHidden();dT(r?-1:0);}}function Zg(e,o){if(e&1){let t=DT();hT(0,Qg,1,1,null,null,fT),Zi$3(2,"nav-select-item",2),bb(3,"hasArrayNotViewedNew"),_g$1("toggleOpen",function(i){Rd$2(t);let n=NT();return kd$2(n.navToggleOpen.emit({isOpen:i,groups:[n.listMore()]}))})("logout",function(){Rd$2(t);let i=NT();return kd$2(i.logout.emit())})("accountClick",function(i){Rd$2(t);let n=NT();return kd$2(n.accountClick.emit(i))}),kl$2();}if(e&2){let t=NT();gT(t.listGroups()),AE(2),Pg$1("has-new-feature",_b(3,8,t.listMore())),Ig$1("dark",t.dark())("maxCount",t.maxCount())("showArrow",true)("name","nav.more")("items",t.listMore())("showPromo",t.showPromo());}}var Lr=class e{constructor(){this.listGroups=VV();this.listMore=VV();this.showPromo=VV();this.maxCount=VV();this.viewedNew=VV();this.showFavorites=VV.required();this.dark=VV.required();this.navToggleOpen=jV();this.navClick=jV();this.logout=jV();this.accountClick=jV();this.mobileList=Pb(()=>this.listGroups().reduce((o,t)=>o.concat(t),[]));this.breakpointService=D$l(r$9);}openNavPage(o,t){if(t.ctrlKey||t.metaKey){window.open(o.children[0].url,"_blank");return}t.preventDefault(),!a$g.isTouchDevice()&&this.navClick.emit(o);}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["nav-select"]],inputs:{listGroups:[1,"listGroups"],listMore:[1,"listMore"],showPromo:[1,"showPromo"],maxCount:[1,"maxCount"],viewedNew:[1,"viewedNew"],showFavorites:[1,"showFavorites"],dark:[1,"dark"]},outputs:{navToggleOpen:"navToggleOpen",navClick:"navClick",logout:"logout",accountClick:"accountClick"},decls:3,vars:3,consts:[[1,"nav-item","nav-item-mob",3,"dark","openWithSingleItem","has-new-feature","items","showPromo","showFavorites"],[1,"nav-item","nav-item-mob",3,"toggleOpen","logout","accountClick","dark","openWithSingleItem","items","showPromo","showFavorites"],[1,"nav-item","nav-item-more",3,"toggleOpen","logout","accountClick","dark","maxCount","showArrow","name","items","showPromo"],[1,"nav-item",3,"dark","has-new-feature","name","items","showPromo"],[1,"nav-item",3,"toggleOpen","logout","accountClick","click","dark","name","items","showPromo"]],template:function(t,r){t&1&&(uT(0,Xg,2,9,"nav-select-item",0),bb(1,"async"),Rl$2(2,Zg,4,10)),t&2&&dT(_b(1,1,r.breakpointService.isMobLs)?0:2);},dependencies:[An$3,fe$8,co,hn$2,Ir],styles:['[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;height:100%}[_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]{padding:0 12px;height:100%}@media(max-width:767px){[_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]{padding:0}}[_nghost-%COMP%]   .nav-item-mob[_ngcontent-%COMP%]{padding-right:8px;margin-left:16px}[_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%]{visibility:hidden}[max-item-count="6"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%], [max-item-count="5"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%], [max-item-count="4"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%], [max-item-count="3"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%], [max-item-count="2"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%]{visibility:visible}[max-item-count="6"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(7), [max-item-count="6"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(6){display:none}[max-item-count="6"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%]{visibility:visible}[max-item-count="5"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(7), [max-item-count="5"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(6), [max-item-count="5"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(5){display:none}[max-item-count="5"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%]{visibility:visible}[max-item-count="4"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(7), [max-item-count="4"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(6), [max-item-count="4"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(5), [max-item-count="4"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(4){display:none}[max-item-count="4"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%]{visibility:visible}[max-item-count="3"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(7), [max-item-count="3"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(6), [max-item-count="3"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(5), [max-item-count="3"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(4), [max-item-count="3"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(3){display:none}[max-item-count="3"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%]{visibility:visible}[max-item-count="2"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(7), [max-item-count="2"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(6), [max-item-count="2"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(5), [max-item-count="2"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(4), [max-item-count="2"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(3), [max-item-count="2"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]:nth-child(2){display:none}[max-item-count="1"][_nghost-%COMP%]   .nav-item[_ngcontent-%COMP%]{display:none}[max-item-count="1"][_nghost-%COMP%]   .nav-item-more[_ngcontent-%COMP%]{visibility:visible}']});}};var Ur=class e{transform(o){return o.sort((t,r)=>t.total_score>r.total_score?-1:1)}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275pipe=fw({name:"sortByScore",type:e,pure:true});}};var Mo=class{static getParamsForAppComparisonDash(o){let t=u$3.getExistsType(o.revenue,o.downloads),r=m$7.getAppIdsFromStoreIds(o.store_ids);return {appStoreIds:[{store:r[0].store,store_application_id:r[0].store_application_id}],types:[t],sortColumn:t,tableCols:{active:[t]}}}static getParamsForPubDash(o){let t=u$3.getExistsType(o.revenue,o.downloads);return {publisherStoreIds:[{store_publisher_id:o.publisherIds[0].store_publisher_id,store:o.publisherIds[0].store}],types:[t],sortColumn:t,tableCols:{active:[t]}}}};function Jg(e,o){if(e&1){let t=DT();Zi$3(0,"div",2),_g$1("click",function(){Rd$2(t);let i=NT();return kd$2(i.btnClick.emit())}
1006),Zi$3(1,"div",3)(2,"span",4),ib(3),bb(4,"shortNumber"),kl$2(),Eg$1(5,"i",5),kl$2(),Zi$3(6,"span",6),ib(7),bb(8,"translate"),kl$2()();}if(e&2){let t=NT();AE(3),Ug$1(Mb(4,2,t.value(),t.prefix())),AE(4),Ug$1(_b(8,5,t.label()));}}function e0(e,o){e&1&&(Zi$3(0,"div",1)(1,"span",6),ib(2),bb(3,"translate"),kl$2()()),e&2&&(AE(2),Ug$1(_b(3,1,"apps.no_data")));}var po=class e{constructor(){this.value=VV();this.prefix=VV("$");this.label=VV("");this.btnClick=jV();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["metric-btn"]],inputs:{value:[1,"value"],prefix:[1,"prefix"],label:[1,"label"]},outputs:{btnClick:"btnClick"},decls:2,vars:1,consts:[["preventDefault","","stopPropagation","",1,"metric-btn"],[1,"metric-btn","no-data"],["preventDefault","","stopPropagation","",1,"metric-btn",3,"click"],[1,"top"],[1,"value"],[1,"g-icon-link","icon"],[1,"label"]],template:function(t,r){t&1&&uT(0,Jg,9,7,"div",0)(1,e0,4,3,"div",1),t&2&&dT(r.value()?0:1);},dependencies:[fe$8,s$9,m$4,he$8],styles:[".metric-btn[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;height:34px;padding:2px 4px 2px 6px;border:1px solid var(--grey-40);border-radius:8px;white-space:nowrap;cursor:pointer}.metric-btn.no-data[_ngcontent-%COMP%]{justify-content:center;cursor:default;border-color:transparent}.top[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.value[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:16px;color:var(--black)}.icon[_ngcontent-%COMP%]{--size: 12px}.label[_ngcontent-%COMP%]{font-size:12px;line-height:12px;color:var(--grey-70)}"]});}};var t0=(e,o)=>o.value;function o0(e,o){if(e&1){let t=DT();Ol$2(0,"div",2),Mg$1("click",function(){let i=Rd$2(t).$implicit,n=NT();return kd$2(n.valChange.emit(i.value))}),ib(1),bb(2,"translate"),Ll$2();}if(e&2){let t=o.$implicit,r=NT();Pg$1("selected",r.value()===t.value),AE(),jl$2(" ",_b(2,3,t.name)," ");}}var mo=class e{constructor(){this.value=VV.required();this.values=VV.required();this.valChange=jV();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["search-tabs"]],inputs:{value:[1,"value"],values:[1,"values"]},outputs:{valChange:"valChange"},decls:3,vars:0,consts:[[1,"tab-wrap"],[1,"tab","text-uppercase","cursor-pointer",3,"selected"],[1,"tab","text-uppercase","cursor-pointer",3,"click"]],template:function(t,r){t&1&&(Ol$2(0,"div",0),hT(1,o0,3,5,"div",1,t0),Ll$2()),t&2&&(AE(),gT(r.values())
1006);},dependencies:[fe$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]   .tab-wrap[_ngcontent-%COMP%]{display:none;border-bottom:1px solid var(--divider);justify-content:space-around}.panel-mode[_nghost-%COMP%]   -shadowcsshost   .tab-wrap[_ngcontent-%COMP%]{display:flex}@media(max-width:1279px){[_nghost-%COMP%]   .tab-wrap[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .tab[_ngcontent-%COMP%]{margin-bottom:-1px;cursor:pointer;color:var(--text);padding:12px 25px;font-weight:500;font-size:14px;text-transform:uppercase;line-height:16px;border-bottom:3px solid transparent}[_nghost-%COMP%]   .tab.selected[_ngcontent-%COMP%]{color:var(--yellow-70);border-color:var(--yellow-70)}[_nghost-%COMP%]   .tab.disabled[_ngcontent-%COMP%]{cursor:default;color:var(--text-muted);border-color:transparent}[_nghost-%COMP%]   .tab[_ngcontent-%COMP%]{padding:15px 25px}@media(max-width:767px){[_nghost-%COMP%]   .tab[_ngcontent-%COMP%]{padding:8px 24px;height:var(--tab-height)}}"]});}};var r0=(e,o)=>({scrolledToBottomFn:e,scrollTo:o}),i0=()=>[],Vp=(e,o)=>o.id,n0=(e,o)=>o.store_application_id+o.store;function a0(e,o){e&1&&(Zi$3(0,"div",7)(1,"div",8),ib(2),bb(3,"translate"),kl$2(),Zi$3(4,"div",9),ib(5),bb(6,"translate"),kl$2(),Zi$3(7,"div",9),ib(8),bb(9,"translate"),kl$2()()),e&2&&(AE(2),jl$2(" ",_b(3,3,"appList.applications")," "),AE(3),jl$2(" ",_b(6,5,"appList.revenue")," "),AE(3),jl$2(" ",_b(9,7,"appList.downloads")," "));}function l0(e,o){if(e&1&&(Zi$3(0,"span",17),bb(1,"doubtfulness"),ib(2),bb(3,"formatPremiumValues"),kl$2(),Zi$3(4,"span",17),bb(5,"doubtfulness"),ib(6),bb(7,"formatPremiumValues"),kl$2()),e&2){let t=NT().$implicit,r=t.revenue,i=t.downloads;Pg$1("no-value",!r),Ig$1("doubtfulnessTooltip",r?_b(1,8,r):null),AE(2),jl$2(" ",Sb(3,10,r,"$","\u2014")," "),AE(2),Pg$1("no-value",!i),Ig$1("doubtfulnessTooltip",i?_b(5,14,i):null),AE(2),jl$2(" ",Sb(7,16,i,"","\u2014")," ");}}function s0(e,o){if(e&1){let t=DT();Zi$3(0,"metric-btn",18),_g$1("btnClick",function(){Rd$2(t);let i=NT().$implicit,n=NT(4);return kd$2(n.createAppDashboard(i))}),kl$2();}if(e&2){let t=NT().$implicit,r=NT(4);Ig$1("value",t.revenue||t.downloads)("prefix",t.revenue?r.InputPrefix.Dollar:r.InputPrefix.NoPrefix)("label",t.revenue?"appList.revenue":"appList.downloads");}}function c0(e,o){if(e&1){let t=DT();Zi$3(0,"selector-row-action-wrap",12),_g$1("clickAction",function(){let i=Rd$2(t).$implicit,n=NT(4);return kd$2(n.createAppDashboard(i))}),Zi$3(1,"a",13),bb(2,"appPageLink"),_g$1("click",function(){let i=Rd$2(t).$implicit,n=NT(4);return kd$2(n.clickApp(i))}),Zi$3(3,"div",14),Zg$1(4),bb(5,"selectorNameHighlight"),Zg$1(6),bb(7,"selectorNameHighlight"),Eg$1(8,"app-name-pub",15),kl$2(),uT(9,l0,8,20),uT(10,s0,1,3,"metric-btn",16),kl$2()();}if(e&2){let t=o.$implicit,r=NT(4),i=db(1);Ig$1("disable",!!i),AE(),Ig$1("href",_b(2,12,t),qp$2);let n=Sb(5,14,t.name,t.matchedName,r.search()),g=Sb(7,18,t.name,t.matchedName,"");AE(7),Ig$1("stores",t.store)("removedStores",t.removed_stores??vb(22,i0))("size",32)("iconUrl",t.icon_url)("appTitle",g)("appName",n)("pubName",t.unitedPublisher.name)("pubHeadCompanyName",t.unitedPublisher.head_company_name),AE(),dT(i?-1:9),AE(),dT(i?10:-1);}}function p0(e,o){e&1&&(Zi$3(0,"div",11),ib(1),bb(2,"translate"),kl$2()),e&2&&(AE(),jl$2(" ",_b(2,1,"errors.search_limit_200_exceeds")," "));}function m0(e,o){if(e&1&&(hT(0,c0,11,23,"selector-row-action-wrap",10,Vp),uT(2,p0,3,3,"div",11)),e&2){let t=NT(3);gT(t.applications()),AE(2),dT(t.showWarningTextForApps()?2:-1);}}function d0(e,o){e&1&&Tg$1(0);}function u0(e,o){if(e&1&&cg$1(0,d0,1,0,"ng-container",19),e&2){NT(3);let t=FT(5);Ig$1("ngTemplateOutlet",t);}}function g0(e,o){e&1&&Tg$1(0);}function h0(e,o){if(e&1&&cg$1(0,g0,1,0,"ng-container",19),e&2){NT(3);let t=FT(7);Ig$1("ngTemplateOutlet",t);}}function f0(e,o){if(e&1&&(Zi$3(0,"div",5),uT(1,a0,10,9,"div",7),uT(2,m0,3,1)(3,u0,1,1,"ng-container"),uT(4,h0,1,1,"ng-container"),kl$2()),e&2){let t=NT(2),r=db(1);AE(),dT(!r&&t.applications().length>0?1:-1),AE(),dT(t.applications().length>0?2:t.loading()?-1:3),AE(2),dT(t.loading()&&t.hasMoreApps()?4:-1);}}function v0(e,o){e&1&&(Zi$3(0,"div",7)(1,"div",8),ib(2),bb(3,"translate"),kl$2()()),e&2&&(AE(2),jl$2(" ",_b(3,1,"appList.publishers")," "));}function C0(e,o){if(e&1&&(Zi$3(0,"div",25),Eg$1(1,"flag",27),Zi$3(2,"span",28),ib(3),bb(4,"translate"),kl$2()()),e&2){let t=NT().$implicit;AE(),Ig$1("flag",t.headquarter.toLowerCase())("size","small"),AE(2),Ug$1(_b(4,3,"countries."+t.headquarter));}}function y0(e,o){if(e&1&&(Zi$3(0,"a",29),bb(1,"appPageLink"),Eg$1(2,"img",30),bb(3,"appIconSize"),kl$2()),e&2){let t=o.$implicit;Ig$1("href",_b(1,3,t),qp$2),AE(2),Ig$1("lazyImage",Mb(3,5,t.icon_url,24))("title",t.name);}}
1006function b0(e,o){if(e&1&&(Zi$3(0,"span",26),hT(1,y0,4,8,"a",29,n0),bb(3,"sortByScore"),kl$2()),e&2){let t=NT().$implicit;AE(),gT(_b(3,0,t.top_applications_info));}}function _0(e,o){if(e&1){let t=DT();Zi$3(0,"metric-btn",18),_g$1("btnClick",function(){Rd$2(t);let i=NT().$implicit,n=NT(4);return kd$2(n.createPublisherDashboard(i))}),kl$2();}if(e&2){let t=NT().$implicit,r=NT(4);Ig$1("value",t.revenue||t.downloads)("prefix",t.revenue?r.InputPrefix.Dollar:r.InputPrefix.NoPrefix)("label",t.revenue?"appList.revenue":"appList.downloads");}}function S0(e,o){if(e&1){let t=DT();Zi$3(0,"selector-row-action-wrap",21),_g$1("clickAction",function(){let i=Rd$2(t).$implicit,n=NT(4);return kd$2(n.createPublisherDashboard(i))}),Zi$3(1,"div",22)(2,"a",23),bb(3,"pubPageLink"),_g$1("click",function(){let i=Rd$2(t).$implicit,n=NT(4);return kd$2(n.publisherPageClick(i))}),Zg$1(4),bb(5,"selectorNameHighlight"),Zg$1(6),bb(7,"selectorNameHighlight"),Eg$1(8,"div",24),uT(9,C0,5,5,"div",25),kl$2(),uT(10,b0,4,2,"span",26),uT(11,_0,1,3,"metric-btn",16),kl$2()();}if(e&2){let t=o.$implicit,r=NT(4),i=db(1),n=t.top_applications_info==null?null:t.top_applications_info.length;Ig$1("disable",!!i)("btnIndentRight",r.btnIndentRight),AE(2),Ig$1("href",_b(3,8,t),qp$2);let g=Sb(5,10,t.name,t.matchedName,r.search()),m=Sb(7,14,t.name,t.matchedName,"");AE(6),Ig$1("customInnerHtml",g),vg$1("title",m),AE(),dT(t.headquarter?9:-1),AE(),dT(!i&&n?10:-1),AE(),dT(i?11:-1);}}function x0(e,o){e&1&&(Zi$3(0,"div",11),ib(1),bb(2,"translate"),kl$2()),e&2&&(AE(),jl$2(" ",_b(2,1,"errors.search_limit_200_exceeds")," "));}function A0(e,o){if(e&1&&(hT(0,S0,12,18,"selector-row-action-wrap",20,Vp),uT(2,x0,3,3,"div",11)),e&2){let t=NT(3);gT(t.publishers()),AE(2),dT(t.showWarningTextForPubs()?2:-1);}}function M0(e,o){e&1&&Tg$1(0);}function P0(e,o){if(e&1&&cg$1(0,M0,1,0,"ng-container",19),e&2){NT(3);let t=FT(5);Ig$1("ngTemplateOutlet",t);}}function F0(e,o){e&1&&Tg$1(0);}function w0(e,o){if(e&1&&cg$1(0,F0,1,0,"ng-container",19),e&2){NT(3);let t=FT(7);Ig$1("ngTemplateOutlet",t);}}function D0(e,o){if(e&1&&(Zi$3(0,"div",6),uT(1,v0,4,3,"div",7),uT(2,A0,3,1)(3,P0,1,1,"ng-container"),uT(4,w0,1,1,"ng-container"),kl$2()),e&2){let t=NT(2),r=db(1);AE(),dT(!r&&t.publishers().length>0?1:-1),AE(),dT(t.publishers().length>0?2:t.loading()?-1:3),AE(2),dT(t.loading()&&t.hasMorePubs()?4:-1);}}function R0(e,o){if(e&1&&(Zi$3(0,"div",4),uT(1,f0,5,3,"div",5),uT(2,D0,5,3,"div",6),kl$2()),e&2){let t=NT(),r=db(1);Pg$1("mobile",r),AE(),dT(!r||t.activeTab()===t.Tab.app?1:-1),AE(),dT(!r||t.activeTab()===t.Tab.publisher?2:-1);}}function O0(e,o){e&1&&(Zi$3(0,"div",31)(1,"div",32),ib(2),bb(3,"translate"),kl$2()()),e&2&&(AE(2),jl$2(" ",_b(3,1,"appSelect.panel_nothing_found")," "));}function E0(e,o){e&1&&(Zi$3(0,"div",33),Eg$1(1,"spinner",34),kl$2()),e&2&&(AE(),Ig$1("diameter",28));}var zp=(t=>(t.app="app",t.publisher="publisher",t))(zp||{}),Gr=class e$1{constructor(){this.userService=D$l(ve$6);this.screensService=D$l(w$1);this.analyticsService=D$l(L$3);this.router=D$l(F$4);this.pubDashboardDemoGate=D$l(h$3);this.appComparisonDemoGate=D$l(g$2);this.breakpointService=D$l(r$9);this.storesService=D$l(g$6);this.InputPrefix=e$a;this.Tab=zp;this.activeTab=fi$4("app");this.metrics=o;this.btnIndentRight=96;this.applications=VV.required();this.showWarningTextForApps=VV.required();this.hasMoreApps=VV.required();this.publishers=VV.required();this.showWarningTextForPubs=VV.required();this.hasMorePubs=VV.required();this.loading=VV.required();this.search=VV.required();this.searchLoading=VV.required();this.loadMore=jV();this.close=jV();this.scrollTo=new rr$4(null);this.loadMoreFn=()=>this.loadMore.emit();this.tabs=[{value:"app",name:"appList.applications"},{value:"publisher",name:"appList.publishers"}];ef$2(()=>{this.search(),this.scrollTo.next({x:0,y:0});});}ngAfterViewInit(){this.popper?.update();}clickApp(o){if(this.router.url===d$4.getAppPageHrefByUnited(o.store_ids[0],o.name)){this.close.emit();return}this.analyticsService.send(e.openAppPageLink,["search",o.name]);}publisherPageClick(o){this.analyticsService.send(e.openPubPageLink,["search",o.name]);}createPublisherDashboard(o){this.close.emit(),this.pubDashboardDemoGate.open({id:o.id,name:o.name,headquarter:o.headquarter},Mo.getParamsForPubDash(o),false),this.analyticsService.send("global_search_publisher_dashboard",[o.name]);}createAppDashboard(o){this.close.emit(),this.appComparisonDemoGate.open(o,Mo.getParamsForAppComparisonDash(o),false),this.analyticsService.send("global_search_app_dashboard",[o.name]);}changeTab(o){this.activeTab.set(o),this.analyticsService.send("global_search_change_tab",[o]);}goToScreen(o,t){this.screensService.goToScreen(o,t,false),this.userService.isGuest()||this.close.emit();}static{this.\u0275fac=function(t){return new(t||e$1)};}static{this.\u0275cmp=sw({type:e$1,selectors:[["search-panel"]],hostAttrs:[1,"g-nav-search-panel"],inputs:{popper:"popper",applications:[1,"applications"],showWarningTextForApps:[1,"showWarningTextForApps"],hasMoreApps:[1,"hasMoreApps"],publishers:[1,"publishers"],showWarningTextForPubs:[1,"showWarningTextForPubs"],hasMorePubs:[1,"hasMorePubs"],loading:[1,"loading"],search:[1,"search"],searchLoading:[1,"searchLoading"]},outputs:{loadMore:"loadMore",close:"close"},decls:8,vars:9,consts:[["noDataFound",""],["loadingSpinner",""],[3,"valChange","value","values"],["class","results",3,"mobile",4,"amScrollbar"],[1,"results"],[1,"application-column","results-column"],[1,"publisher-column","results-column"],[1,"header-container"],[1,"title-panel","p-t"],[1,"title-panel","metric-header","p-t"],[1,"row-wrap",3,"disable"],[1,"g-exceed-limit-label"],[1,"row-wrap",3,"clickAction","disable"],[1,"app-row-link",3,"click","href"],[1,"app-info"],[1,"app-row","app-hover",3,"stores","removedStores","size","iconUrl","appTitle","appName","pubName","pubHeadCompanyName"],[3,"value","prefix","label"],[1,"app-metric",3,"doubtfulnessTooltip"],[3,"btnClick","value","prefix","label"],[4,"ngTemplateOutlet"],[1,"row-wrap",3,"disable","btnIndentRight"],[1,"row-wrap",3,"clickAction","disable","btnIndentRight"],[1,"publisher-row"],[1,"title-container",3,"click","href"],[1,"title-publisher","text-overflow",3,"customInnerHtml"],[1,"pub-country-wrap"],[1,"top-apps-warp"],[1,"g-flag-small-margin",3,"flag","size"],[1,"g-app-publisher-name","country-name","text-overflow"],[1,"top-app",3,"href"],[1,"top-app-img",3,"lazyImage","t
1006itle"],[1,"result-nothing"],[1,"container-empty","g-nothing-to-display"],[1,"flex-center","width-100","p-y"],[3,"diameter"]],template:function(t,r){t&1&&(Zi$3(0,"search-tabs",2),_g$1("valChange",function(n){return r.changeTab(n)}),kl$2(),Zg$1(1),bb(2,"async"),cg$1(3,R0,3,4,"div",3)(4,O0,4,3,"ng-template",null,0,Ab)(6,E0,2,1,"ng-template",null,1,Ab)),t&2&&(Ig$1("value",r.activeTab())("values",r.tabs),AE(),ub(_b(2,3,r.breakpointService.isMobLs)),AE(2),Ig$1("amScrollbar",Eb(6,r0,r.loadMoreFn,r.scrollTo)));},dependencies:[An$3,dn$3,fe$8,T,b$5,I$4,_$4,Ht$7,r$8,R$4,po,O$2,mo,hn$2,he$8,Ur,n$3,a$2,a$1,p$9,o$h,f$4],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{width:calc(1008px + env(safe-area-inset-right) + env(safe-area-inset-left));padding-left:env(safe-area-inset-left)}[_nghost-%COMP%]   .row-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:12px}[_nghost-%COMP%]   .results[_ngcontent-%COMP%]{display:flex;flex:1;min-height:100%;padding-right:8px}[_nghost-%COMP%]   .result-nothing[_ngcontent-%COMP%]{position:sticky;top:0;width:100%;height:420px;display:flex;align-items:center;justify-content:center}@media(max-width:767px){[_nghost-%COMP%]   .result-nothing[_ngcontent-%COMP%]{position:relative;height:calc(var(--height) - 83px)}}[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]{margin-top:10px;display:grid;grid-template-columns:1fr 106px 106px;gap:4px;padding-right:8px;padding-left:15px;align-items:center}@media(max-width:1279px){[_nghost-%COMP%]   .header-container[_ngcontent-%COMP%]{margin-top:5px}}[_nghost-%COMP%]   .close-button[_ngcontent-%COMP%]{padding-top:14px}[_nghost-%COMP%]   .container-empty[_ngcontent-%COMP%]{font-size:24px;font-weight:400;text-align:center}[_nghost-%COMP%]   .application-column[_ngcontent-%COMP%]{max-width:60%;width:60%}[_nghost-%COMP%]   .publisher-column[_ngcontent-%COMP%]{max-width:40%;width:40%}[_nghost-%COMP%]   .results-column[_ngcontent-%COMP%]{position:relative;flex:1;min-height:420px;overflow:hidden;border-right:1px solid var(--grey-40)}[_nghost-%COMP%]   .results-column[_ngcontent-%COMP%]:last-child{border-right:none}@media (767px){[_nghost-%COMP%]   .results-column[_ngcontent-%COMP%]{max-width:100%;width:100%}}[_nghost-%COMP%]   .highlighted[_ngcontent-%COMP%]{font-weight:600}[_nghost-%COMP%]   input[_ngcontent-%COMP%]{min-width:87%;font-size:18px}[_nghost-%COMP%]   input[_ngcontent-%COMP%]::-ms-clear{display:none}[_nghost-%COMP%]   [_ngcontent-%COMP%]::-webkit-input-placeholder{font-style:italic}[_nghost-%COMP%]   [_ngcontent-%COMP%]::-moz-placeholder{font-style:italic}[_nghost-%COMP%]   .flex-fix[_ngcontent-%COMP%]{flex:1 0 auto}[_nghost-%COMP%]   .app-row[_ngcontent-%COMP%], [_nghost-%COMP%]   .publisher-row[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;width:100%;max-width:100%;color:var(--black);z-index:1;background:var(--white);padding:6px 8px;max-height:40px}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .app-row[_ngcontent-%COMP%], [_nghost-%COMP%]   .publisher-row[_ngcontent-%COMP%]{padding:4px;background:transparent}}@media(max-width:1279px){[_nghost-%COMP%]   .app-row[_ngcontent-%COMP%], [_nghost-%COMP%]   .publisher-row[_ngcontent-%COMP%]{padding:6px 12px}}@media(max-width:767px){[_nghost-%COMP%]   .app-row[_ngcontent-%COMP%], [_nghost-%COMP%]   .publisher-row[_ngcontent-%COMP%]{max-height:42px}}[_nghost-%COMP%]   .app-row-link[_ngcontent-%COMP%]{width:100%;padding:2px 0;display:grid;grid-template-columns:1fr 106px 106px;align-items:center;gap:4px}@media(max-width:1279px){[_nghost-%COMP%]   .app-row-link[_ngcontent-%COMP%]{padding:0}}@media(max-width:767px){[_nghost-%COMP%]   .app-row-link[_ngcontent-%COMP%]{grid-template-columns:1fr auto;align-items:center;padding:4px 0}}[_nghost-%COMP%]   .app-info[_ngcontent-%COMP%]{min-width:0}[_nghost-%COMP%]   .app-metric[_ngcontent-%COMP%]{text-align:right;font-size:12px;padding-right:16px;white-space:nowrap;color:var(--black)}[_nghost-%COMP%]   .app-metric.no-value[_ngcontent-%COMP%]{color:var(--grey-50)}[_nghost-%COMP%]   .metric-header[_ngcontent-%COMP%]{text-align:right;padding-right:16px}[_nghost-%COMP%]   .publisher-row[_ngcontent-%COMP%]{min-height:44px;padding:2px 8px}@media(max-width:1279px){[_nghost-%COMP%]   .publisher-row[_ngcontent-%COMP%]{min-height:40px;padding:0 8px}}@media(max-width:767px){[_nghost-%COMP%]   .publisher-row[_ngcontent-%COMP%]{gap:8px}}[_nghost-%COMP%]   .stores-info[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{flex:0 0 35px}[_nghost-%COMP%]   .up[_ngcontent-%COMP%]{margin-top:-2px}[_nghost-%COMP%]   .title-wrap[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;padding-left:10px;line-height:16px}@media(max-width:767px){[_nghost-%COMP%]   .title-wrap[_ngcontent-%COMP%]{padding-left:7px}}[_nghost-%COMP%]   .title-container[_ngcontent-%COMP%]{color:inherit;width:100%;min-width:0;display:flex;flex-direction:column;justify-content:center}
1006[_nghost-%COMP%]   .top-apps-warp[_ngcontent-%COMP%]{position:relative;display:flex;margin-left:12px}[_nghost-%COMP%]   .top-app[_ngcontent-%COMP%]{width:24px;height:24px;display:flex;align-items:center;background:var(--white);border-radius:6px;overflow:hidden;margin-left:4px}@media(max-width:767px){[_nghost-%COMP%]   .top-app[_ngcontent-%COMP%]{pointer-events:none}}[_nghost-%COMP%]   .top-app-img[_ngcontent-%COMP%]{width:100%;height:100%}[_nghost-%COMP%]   .publisher-container[_ngcontent-%COMP%]{height:34px}[_nghost-%COMP%]   .pub-country-wrap[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:14px;display:flex;align-items:center}[_nghost-%COMP%]   .pub-country-wrap[_ngcontent-%COMP%]   .country-name[_ngcontent-%COMP%]{padding-top:2px}[_nghost-%COMP%]   .title[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{line-height:18px;width:324px;max-width:calc(100% - 50px);display:inline-block}[_nghost-%COMP%]   .publisher-name[_ngcontent-%COMP%]{font-size:12px;padding-top:6px;line-height:normal}@media(max-width:767px){[_nghost-%COMP%]   .publisher-name[_ngcontent-%COMP%]{padding-top:2px}}[_nghost-%COMP%]   .mobile[_ngcontent-%COMP%]   .results-column[_ngcontent-%COMP%]{max-width:100%;width:100%}[_nghost-%COMP%]   .title-panel[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-transform:uppercase;opacity:.87;color:var(--grey-70);max-width:100%;padding-bottom:14px}@media(max-width:1279px){[_nghost-%COMP%]   .title-panel[_ngcontent-%COMP%]{padding-bottom:4px}}[_nghost-%COMP%]   .hide-loader[_ngcontent-%COMP%]{visibility:hidden}"]});}};var D=class{static isActiveUrl(o,t){return Pb(()=>t().split("?")[0]===o)}static isActiveUrls(o,t){return Pb(()=>!!o.find(r=>r===t().split("?")[0]))}static isActiveUrlOrChild(o,t){return Pb(()=>{let r=t().split("?")[0];return r===o||r.startsWith(`${o}/`)})}static isActiveScreenUrl(o,t){return Pb(()=>t()===o)}static isActiveLearningUrl(o,t){return Pb(()=>{let r=t().split("?")[0];return r===o||r.startsWith(`${o}/`)})}};var Wp=(e,o,t=Pb(()=>true),r=Pb(()=>true))=>{let i={name:"topCharts.apps",children:[{isActive:D.isActiveUrls([t$j,t$o],e),url:t$j,name:"topCharts.top_apps"},{isActive:D.isActiveUrl(h$d,e),url:h$d,name:"topCharts.trendy_screen_name",accessName:E$6.top_trending,isHidden:t}]};return i.children.push({isActive:D.isActiveScreenUrl("period-comparison",o),url:r$3.getUrlByType("period-comparison"),name:"createScreen.period_compare_screen_name",accessName:E$6.period_comparison,screenType:"period-comparison"},{isActive:D.isActiveScreenUrl("custom",o),url:r$3.getUrlByType("custom"),screenType:"custom",name:"screen.app_comparison_screen",onlyLogin:true},{isActive:D.isActiveUrl(p$j,e),url:p$j,name:"topCharts.meta_title_soft_launches",accessName:E$6.soft_launches},{isActive:D.isActiveUrlOrChild(a$j,e),url:a$j,name:"topCharts.advanced_search",accessName:E$6.top_ltv},{isActive:D.isActiveScreenUrl("similarity",o),url:"/dashboards/similarity",screenType:"similarity",name:"createScreen.similarity_graph_screen_name",accessName:E$6.similarity_graph},{isActive:D.isActiveScreenUrl("app-ranking-history",o),url:"/dashboards/app-ranking-history",screenType:"app-ranking-history",name:"createScreen.time_based_ranking_trends_screen_name",newFeatureType:"appRankingHistory",onlyLogin:true},{isActive:D.isActiveScreenUrl("audience-overlap",o),url:r$3.getUrlByType("audience-overlap"),name:"appCrossUsage.main_title",screenType:"audience-overlap",dev:true,isHidden:r}),i};var jp="app-transfers",da="/app-transfers";var $p=(e,o)=>({name:"appList.publishers",children:[{isActive:D.isActiveUrl(i$i,e),url:i$i,name:"topCharts.top_publishers"},{isActive:D.isActiveScreenUrl("publisher",o),url:r$3.getUrlByType("publisher"),screenType:"publisher",onlyLogin:true,name:"screen.publisher_screen"},{isActive:D.isActiveUrl(da,e),url:da,name:"appTransfers.app_transfers",accessName:E$6.app_transfers,onlyPremium:false}]});var qp="success-meter",ua="/success-meter";var Kp=(e,o)=>({name:"nav.market_segments_group_name",children:[{isActive:D.isActiveScreenUrl("market-segment",o),url:r$3.getUrlByType("market-segment"),screenType:"market-segment",name:"nav.market_segment_dashboard_title",accessName:E$6.tag_dashboards},{isActive:D.isActiveScreenUrl("market-segment-compare",o),url:r$3.getUrlByType("market-segment-compare"),screenType:"market-segment-compare",name:"createScreen.market_segment_compare_screen_name",accessName:E$6.tag_dashboards},{isActive:D.isActiveUrl(ua,e),url:ua,name:"successMeter.main_title",accessName:E$6.success_meter}]});var ga="sensor-tower-aso",ha=`/${ga}`,Hr="https://app.sensortower.com/store-marketing/aso/",k0="aso-plus-keywords",Xp=`${e$l.ToolDescriptions}/${k0}`;var T0=e=>[{name:"nav.ad_volume_title",children:[{isActive:D.isActiveScreenUrl("ad-intelligence",e),url:r$3.getUrlByType("ad-intelligence"),screenType:"ad-intelligence",name:"nav.by_app_title",accessName:E$6.ad_int_dashboards,childes:null},{isActive:D.isActiveScreenUrl("ad-intelligence-by-pub",e),url:r$3.getUrlByType("ad-intelligence-by-pub"),screenType:"ad-intelligence-by-pub",name:"nav.by_pub_title",accessName:E$6.ad_int_dashboards,newFeatureType:"adIntDashboardsByPub",childes:null},{isActive:D.isActiveScreenUrl("ad-intelligence-by-tag",e),url:r$3.getUrlByType("ad-intelligence-by-tag"),screenType:"ad-intelligence-by-tag",name:"adIntelligence.by_tag",accessName:E$6.ad_int_dashboards,childes:null}]}],N0=e=>[{name:"appPage.apple_ads",children:[{isActive:D.isActiveScreenUrl("search-ads-by-app",e),url:r$3.getUrlByType("search-ads-by-app"),screenType:"search-ads-by-app",name:"nav.by_app_title",accessName:E$6.asa_dashboards,childes:null},{isActive:D.isActiveScreenUrl("search-ads-by-keyword",e),url:r$3.getUrlByType("search-ads-by-keyword"),screenType:"search-ads-by-keyword",name:"nav.by_keyword_title",accessName:E$6.asa_dashboards,childes:null}]}],B0=e=>[{name:"nav.app_search_ranking",children:[{isActive:D.isActiveScreenUrl("aso-by-app",e),url:r$3.getUrlByType("aso-by-app"),screenType:"aso-by-app",name:"nav.by_app_title",accessName:E$6.aso_dashboards,ignoreDemoAccess:true,childes:null},{isActive:D.isActiveScreenUrl("aso-by-keyword",e),url:r$3.getUrlByType("aso-by-keyword"),screenType:"aso-by-keyword",name:"nav.by_keyword_title",accessName:E$6.aso_dashboards,ignoreDemoAccess:true,childes:null}]}],Yp=(e,o,t)=>{let r=[{isActive:D.isActiveUrl(e$5,e),url:e$5,name:"root.ad_intelligence",accessName:E$6.ad_int}],i=[],n=T0(o),g=N0(o),m=B0(o),B={isActive:D.isActiveScreenUrl("similarity-aso",o),url:r$3.getUrlByType("similarity-aso"),name:"nav.aso_semantic_core_graph_title",accessName:E$6.similarity_aso};
1006return n.forEach(E=>i.push(E)),m.forEach(E=>i.push(E)),g.forEach(E=>i.push(E)),r.push(B),r.push({isActive:D.isActiveUrl(ha,e),url:ha,name:"nav.st_aso_tools_title",lockAccessName:E$6.st_aso,newFeatureType:"stAsoTools"}),t()&&(r.forEach(E=>{E.dev=true;}),i.forEach(E=>{E.children.forEach(j=>{j.dev=true;});})),{name:"root.nav_ad_int_group_name",children:r,childrenGroups:i}};var Qp=e=>({name:"appPage.notifications",children:[{isActive:D.isActiveUrl(c$8,e),url:c$8,name:"appTracker.app_metrics_updates_title",accessName:E$6.app_tracker},{isActive:D.isActiveUrl(n$6,e),url:n$6,name:"appTracker.top_apps_spikes_updates_title",accessName:E$6.app_tracker},{isActive:D.isActiveUrl(i$a,e),url:i$a,name:"appTracker.new_apps_by_type_title",accessName:E$6.app_tracker},{isActive:D.isActiveUrl(U$3,e),url:U$3,name:"appTracker.new_apps_by_pub_title",accessName:E$6.app_tracker}]});var Vr=(e,o=Pb(()=>false))=>({name:"nav.learn_group_title",children:[{value:"research",isActive:D.isActiveLearningUrl(e$l.Research,e),url:e$l.Research,name:"nav.research_title"},{value:"blog",isActive:D.isActiveLearningUrl(e$l.Blog,e),url:e$l.Blog,name:"articles.blog_title"},{value:"tool-descriptions",isActive:D.isActiveLearningUrl(e$l.ToolDescriptions,e),url:e$l.ToolDescriptions,name:"nav.tools_description_title"},{value:"release-notes",isActive:D.isActiveLearningUrl(e$l.ReleaseNotes,e),url:e$l.ReleaseNotes,name:"nav.release_notes_title",isHidden:Pb(()=>!o())}]});var zr=e=>({name:null,children:[{isActive:D.isActiveUrl("/articles/why-we-need-your-data",e),url:"/articles/why-we-need-your-data",name:"nav.how_why_share_data_title"},{isActive:D.isActiveUrl(e$n,e),url:e$n,name:"ourFeatures.header_text"},{isActive:D.isActiveUrl(e$h,e),url:e$h,name:"screenList.demo_screens"},{isActive:D.isActiveUrl("/about",e),url:"/about",name:"root.about"},{isActive:D.isActiveUrl(o$q,e),url:o$q,name:"forPress.nav_title"}]});var Zp="live-ops-advanced-search",fa="/live-ops-advanced-search";var Jp=(e,o,t=Pb(()=>false),r=Pb(()=>false))=>({name:"nav.product_insights",children:[{isActive:D.isActiveUrl(o$b,e),url:o$b,accessName:E$6.live_ops,name:"pricing.live_ops"},{isActive:D.isActiveUrl(fa,e),url:fa,accessName:E$6.live_ops_adv_search,name:"liveOpsAdvSearch.title"},{isActive:D.isActiveLearningUrl(s$l,e),url:s$l,accessName:E$6.live_ops,name:"loInsights.title",dev:true,isHidden:Pb(()=>!r())},{isActive:D.isActiveUrl(i$2,e),url:i$2,accessName:E$6.monetization_int,name:"monetizationInt.title"},{isActive:D.isActiveLearningUrl(t$n,e),url:t$n,name:"inAppPurchasesDistribution.main_title",accessName:E$6.revenue_distribution,newFeatureType:"inAppPurchasesDistribution"},{isActive:D.isActiveUrl(e$m,e),url:e$m,name:"featureLibrary.title",accessName:E$6.feature_library,isHidden:Pb(()=>!t())}]});var Wr=class{constructor(o,t,r=Pb(()=>true),i=Pb(()=>true),n=Pb(()=>false),g=Pb(()=>false),m=Pb(()=>false),B=Pb(()=>false)){this.appsGroup=Wp(o,t,r,i),this.pubsGroup=$p(o,t),this.marketSegmentsGroup=Kp(o,t),this.adsGroup=Yp(o,t,n),this.notificationsGroup=Qp(o),this.deconstructionsGroup=Jp(o,t,g,m),this.learnGroup=Vr(o,B),this.otherGroup=zr(o),this.moreList=[this.appsGroup,this.pubsGroup,this.marketSegmentsGroup,this.adsGroup,this.notificationsGroup,this.deconstructionsGroup,this.learnGroup,this.otherGroup].filter(E=>!!E),this.list=[this.appsGroup,this.pubsGroup,this.marketSegmentsGroup,this.adsGroup,this.notificationsGroup,this.deconstructionsGroup,this.learnGroup,this.otherGroup].filter(E=>!!E);}};var em=(e,o)=>({name:"topCharts.apps",children:[{isActive:D.isActiveUrl(e$j,e),url:e$j,name:"platform.top_games"},{isActive:D.isActiveScreenUrl("steam",o),url:"/dashboards/steam",screenType:"steam",name:"steam.game_comparison",onlyLogin:true}]});var va="steam-publishers",Ca=`/${va}`;var tm=(e,o)=>({name:"appList.publishers",children:[{isActive:D.isActiveUrl(Ca,e),url:Ca,name:"publisherSelect.top_publishers",newFeatureType:"steamPublisher"},{isActive:D.isActiveScreenUrl("steam-publisher",o),url:r$3.getUrlByType("steam-publisher"),screenType:"steam-publisher",name:"screen.publisher_screen",newFeatureType:"steamPublisher",onlyLogin:true}]});var jr=class{constructor(o,t){this.apps=em(o,t),this.publishers=tm(o,t),this.moreList=[this.apps,this.publishers],this.list=[this.apps,this.publishers];}};var om=e=>({name:"platform.top_games",children:[{isActive:D.isActiveUrl(i$g,e),url:i$g,name:"platform.top_games"}]});var rm=e=>({name:"steam.game_comparison",children:[{isActive:D.isActiveScreenUrl("xbox",e),url:"/dashboards/xbox",screenType:"steam",name:"steam.game_comparison",accessName:E$6.xbox}]});var $r=class{constructor(o,t){this.top=om(o),this.dashboard=rm(t),this.moreList=[this.top,this.dashboard],this.list=[this.top,this.dashboard];}};var im=e=>({name:"platform.games",children:[{isActive:D.isActiveUrl(a$e,e),url:a$e,name:"platform.top_games"}]});var nm=e=>({name:"steam.game_comparison",children:[{isActive:D.isActiveScreenUrl("playstation",e),url:"/dashboards/playstation",screenType:"playstation",name:"playStation.playstation_dashboard",accessName:E$6.playstation}]});
1006var qr=class{constructor(o,t){this.topGroup=im(o),this.dashboard=nm(t),this.moreList=[this.topGroup,this.dashboard],this.list=[this.topGroup,this.dashboard];}};var Po=class e{static getSelectorConfig(o){let t={customStyle:"border-radius: 0 0 8px 0",popperConfig:{middleware:[{name:Jt$7.customShiftName,fn(){return {x:0,y:o}}}]}};return {noBackdrop:t}}static isListHasActive(o){return !!o.find(t=>!!t.children.find(r=>r.isActive()))}static getPlatform(o,t,r,i){let{platformFromLogin:n,isSteamPage:g,isSteamPubPage:m,isEmptySteamDash:B,isEmptySteamPubDash:E,isXboxPage:j,isEmptyXboxDash:U,isPlayStationPage:H,isEmptyPlayStationDash:P}=o;return n||(g||B||E||m?"steam":j||U?"xbox":H||P?"playStation":e.isListHasActive(t.list)?"steam":e.isListHasActive(r.list)?"xbox":e.isListHasActive(i.list)?"playStation":"mobile")}static getLists(o,t,r,i,n){let g=[t.learnGroup,t.otherGroup];if(o==="mobile")return {listGroups:[[t.appsGroup],[t.pubsGroup],[t.marketSegmentsGroup],[t.adsGroup],[t.notificationsGroup],[t.deconstructionsGroup],g],more:t.moreList};if(o==="steam")return {listGroups:[[r.apps],[r.publishers],g],more:[]};if(o==="xbox")return {listGroups:[[i.top],[i.dashboard],g],more:[]};if(o==="playStation")return {listGroups:[[n.topGroup],[n.dashboard],g],more:[]}}};var Bt=class e{constructor(){this.router=D$l(F$4);this.activeDashboardService=D$l(a$5);this.featureToggleService=D$l(D$c);this.destroyRef=D$l(st$b);this.userService=D$l(ve$6);this.urlSignal=fi$4(this.router.url);this.isEmptySteamDash=Pb(()=>this.urlSignal()==="/dashboards/steam");this.isEmptySteamPubDash=Pb(()=>this.urlSignal()==="/dashboards/steam-publisher");this.isSteamPage=Pb(()=>e.isSteamPage(this.urlSignal()));this.isSteamPubPage=Pb(()=>e.isSteamPubPage(this.urlSignal()));this.isEmptyXboxDash=Pb(()=>this.urlSignal()==="/dashboards/xbox");this.isXboxPage=Pb(()=>e.isXboxPage(this.urlSignal()));this.isEmptyPlayStationDash=Pb(()=>this.urlSignal()==="/dashboards/playstation");this.isPlayStationPage=Pb(()=>e.isPlayStationPage(this.urlSignal()));this.hasTopTrendingAccess=this.userService.getAccessSignal(E$6.top_trending);this.hasFeatureLibraryAccess=this.userService.getAccessSignal(E$6.feature_library);this.hasAudienceOverlapAccess=this.userService.getAccessSignal(E$6.audience_overlap);this.navGroupList=new Wr(this.urlSignal,this.activeDashboardService.activeDashboard,Pb(()=>!this.hasTopTrendingAccess()),Pb(()=>!this.hasAudienceOverlapAccess()),Pb(()=>this.featureToggleService.featuresSignal.adIntDev()),this.hasFeatureLibraryAccess,this.featureToggleService.featuresSignal.loInsights,this.featureToggleService.featuresSignal.releaseNotes);this.steamNavGroupList=new jr(this.urlSignal,this.activeDashboardService.activeDashboard);this.xboxNavGroupList=new $r(this.urlSignal,this.activeDashboardService.activeDashboard);this.playstationNavGroupList=new qr(this.urlSignal,this.activeDashboardService.activeDashboard);this.platform=Pb(()=>Po.getPlatform({platformFromLogin:e.getPlatformFromLoginPage(this.urlSignal()),isSteamPage:this.isSteamPage(),isSteamPubPage:this.isSteamPubPage(),isEmptySteamDash:this.isEmptySteamDash(),isEmptySteamPubDash:this.isEmptySteamPubDash(),isXboxPage:this.isXboxPage(),isEmptyXboxDash:this.isEmptyXboxDash(),isPlayStationPage:this.isPlayStationPage(),isEmptyPlayStationDash:this.isEmptyPlayStationDash()},this.steamNavGroupList,this.xboxNavGroupList,this.playstationNavGroupList));this.showPanel=new rr$4(false);this.router.events.pipe(U$a(this.destroyRef),Tn$3(o=>o instanceof P$8),ge$9(o=>o.urlAfterRedirects),Tu$2()).subscribe(o=>this.urlSignal.set(o));}static isValidUrlForPattern(o,t){let r=o.split("?")[0].split("/").filter(g=>!!g),i=t.split("/").filter(g=>!!g);return r.length!==i.length?false:i.filter((g,m)=>g.includes(":")?!!r[m]:g===r[m]).length===i.length}static isLogin(o){return /^\/login(?:\?.*)?$/.test(o)}static getPlatformFormLogin(o){return Object.values(Oe$6).filter(r=>r!=="mobile").find(r=>o.includes(r.toLowerCase()))||null}static isSteamPage(o){return n$9.steamPageRegExp.test(o)}static isSteamPubPage(o){return e.isValidUrlForPattern(o,o$9)}static getPlatformFromLoginPage(o){if(!e.isLogin(o))return null;let t=e.getPlatformFormLogin(o);return ["xbox","playStation"].includes(t)?"mobile":t}static isXboxPage(o){return e.isValidUrlForPattern(o,e$c)}static isPlayStationPage(o){return e.isValidUrlForPattern(o,n$7)}static isCommonUrl(o){let t=fi$4(o);return o===nt$4?true:!![Vr(t),zr(t)].find(i=>i.children.find(n=>n.isActive()))}getPlatformList(o){return Po.getLists(o,this.navGroupList,this.steamNavGroupList,this.xboxNavGroupList,this.playstationNavGroupList)}isCommonUrl(){return e.isCommonUrl(this.urlSignal())}isLoginUrl(){return e.isLogin(this.urlSignal())}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var uo=class e{constructor(o){this.searchRequest=o;this.applicationsSignal=fi$4([]);this.applications=Pb(()=>this.applicationsSignal());this.hasMoreAppsSignal=fi$4(true);this.hasMoreApps=Pb(()=>this.hasMoreAppsSignal());this.showWarningTextForAppsSignal=fi$4(false);this.showWarningTextForApps=Pb(()=>this.showWarningTextForAppsSignal());this.publishersSignal=fi$4([]);this.publishers=Pb(()=>this.publishersSignal());this.hasMorePubsSignal=fi$4(true);this.hasMorePubs=Pb(()=>this.hasMorePubsSignal());this.showWarningTextForPubsSignal=fi$4(false);this.showWarningTextForPubs=Pb(()=>this.showWarningTextForPubsSignal());this.loadingSignal=fi$4(false);this.loading=Pb(()=>this.loadingSignal());this.searchSignal=fi$4("");this.search=Pb(()=>this.searchSignal());this.searchLoadingSignal=fi$4(false);this.searchLoading=Pb(()=>this.searchLoadingSignal());this.loadMore=()=>{let o=this.hasMoreApps()||this.hasMorePubs();this.loadingSignal()||this.searchLoadingSignal()||!o||!this.searchSignal()||(this.loadingSignal.set(true),this.get(this.searchSignal()));};}static{this.MaxResults=200;}static{this.ResponseCount=20;}static getConfig(){return {placement:"right",strategy:"fixed",middleware:[{name:"customPlacement",fn:o=>({y:46,x:window.innerWidth-o.elements.floating.clientWidth-Jt$7.getScrollWidth(o)})}]}}get(o,t=true){let r=new de$c;this.searchSignal.set(o),this.query?.name!==o&&(this.hasMoreAppsSignal.set(true),this.hasMorePubsSignal.set(true),this.query={page:0,name:""}),this.searchLoadingSignal.set(true),this.cancelActiveQuery();
1006let i={name:o,offset:this.query.page*e.ResponseCount,limit:e.ResponseCount};return this.query.name=o,this.requestSubscription=this.searchRequest(i).subscribe(n=>{if(t){let g=Yl$1(this.applicationsSignal(),n.applications);this.applicationsSignal.set(g);let m=Yl$1(this.publishersSignal(),n.publishers);this.publishersSignal.set(m);}else this.applicationsSignal.set(n.applications),this.publishersSignal.set(n.publishers);this.query.page+=1,this.updateLoadMore(n),this.showWarningTextForAppsSignal.set(this.applicationsSignal().length>=e.MaxResults),this.showWarningTextForPubsSignal.set(this.publishersSignal().length>=e.MaxResults),this.loadingSignal.set(false),this.searchLoadingSignal.set(false),r.next(),r.complete();},()=>{this.hasMoreAppsSignal.set(false),this.hasMorePubsSignal.set(false),this.loadingSignal.set(false),this.searchLoadingSignal.set(false),r.next(),r.complete();}),r}updateLoadMore(o){let t=o.applications.length===e.ResponseCount,r=o.publishers.length===e.ResponseCount,i=t&&this.applicationsSignal().length<e.MaxResults,n=r&&this.publishersSignal().length<e.MaxResults;this.hasMoreAppsSignal.set(i),this.hasMorePubsSignal.set(n);}clearSearch(){this.searchSignal.set(""),this.query={page:0,name:""};}cancelActiveQuery(){this.requestSubscription?.unsubscribe();}disableLoad(){this.loadingSignal.set(false),this.searchLoadingSignal.set(false);}};var I0=()=>[],L0=(e,o)=>o.data.id+e;function U0(e,o){if(e&1&&Eg$1(0,"selector-steam-app",5),e&2){let t=NT().$implicit,r=NT();Ig$1("app",t.data.app)("blur",t.data.isBlur)("search",r.search());}}function G0(e,o){if(e&1&&Eg$1(0,"selector-steam-pub",6),e&2){let t=NT().$implicit,r=NT();Ig$1("pub",t.data.app)("search",r.search());}}function H0(e,o){if(e&1&&Eg$1(0,"selector-xbox-app",7),e&2){let t=NT().$implicit,r=NT();Ig$1("product",t.data.app)("search",r.search());}}function V0(e,o){if(e&1&&Eg$1(0,"selector-play-station-app",8),e&2){let t=NT().$implicit,r=NT();Ig$1("concept",t.data.app)("search",r.search());}}function z0(e,o){if(e&1&&Eg$1(0,"no-available-data-icon",9),e&2){NT(2);let t=db(0);Ig$1("tooltipText",t.lockTooltipText)("feature",t.feature);}}function W0(e,o){if(e&1){let t=DT();Zi$3(0,"metric-btn",11),_g$1("btnClick",function(){Rd$2(t);let i=NT(3).$implicit,n=NT();return kd$2(n.clickAction.emit(i))}),kl$2();}if(e&2){NT(2);let t=db(0);Ig$1("value",t==null?null:t.value)("prefix",t==null?null:t.prefix)("label",t==null?null:t.label);}}function j0(e,o){if(e&1&&uT(0,z0,1,2,"no-available-data-icon",9)(1,W0,1,3,"metric-btn",10),e&2){NT();let t=db(0);dT(t.lock?0:1);}}function $0(e,o){if(e&1&&(Zg$1(0),uT(1,j0,2,1)),e&2){let t=NT().$implicit,r=ub(t.data.mobileMetric);AE(),dT(r?1:-1);}}function q0(e,o){if(e&1){let t=DT();Zi$3(0,"selector-row-action-wrap",2),_g$1("clickAction",function(){let i=Rd$2(t).$implicit,n=NT();return kd$2(n.clickAction.emit(i))}),Zi$3(1,"a",3)(2,"selector-row",4),uT(3,U0,1,3,"selector-steam-app",5),uT(4,G0,1,2,"selector-steam-pub",6),uT(5,H0,1,2,"selector-xbox-app",7),uT(6,V0,1,2,"selector-play-station-app",8),kl$2(),uT(7,$0,2,2),kl$2()();}if(e&2){let t=o.$implicit,r=NT();Ig$1("disableSwipe",true)("btnPadding",20)("hiddenContentPadding",40)("rowMargin",16)("disable",r.disableAction()),AE(),Ig$1("href",t.data.link,qp$2),AE(),Ig$1("cols",t.data.cols)("header",r.header())("isSelected",t.data.isSelected),AE(),dT(r.type()===r.PlatformLoaderType.steamApps?3:-1),AE(),dT(r.type()===r.PlatformLoaderType.steamPubs?4:-1),AE(),dT(r.type()===r.PlatformLoaderType.xboxApps?5:-1),AE(),dT(r.type()===r.PlatformLoaderType.playStationApps?6:-1),AE(),dT(r.header().length<=1?7:-1);}}var Kr=class e{constructor(){this.type=VV.required();this.header=VV.required();this.appRows=VV.required();this.loading=VV.required();this.loadingMore=VV.required();this.loadingMoreLimit=VV.required();this.search=VV.required();this.disableAction=VV();this.clickAction=jV();this.close=jV();this.PlatformLoaderType=J$8;}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["search-platform-item"]],inputs:{type:[1,"type"],header:[1,"header"],appRows:[1,"appRows"],loading:[1,"loading"],loadingMore:[1,"loadingMore"],loadingMoreLimit:[1,"loadingMoreLimit"],search:[1,"search"],disableAction:[1,"disableAction"]},outputs:{clickAction:"clickAction",close:"close"},decls:3,vars:7,consts:[[1,"list",3,"disableScroll","noData","header","loading","loadingMore","isLimit"],[1,"row-wrap",3,"disableSwipe","btnPadding","hiddenContentPadding","rowMargin","disable"],[1,"row-wrap",3,"clickAction","disableSwipe","btnPadding","hiddenContentPadding","rowMargin","disable"],[1,"link",3,"href"],[1,"row",3,"cols","header","isSelected"],[3,"app","blur","search"],[3,"pub","search"],[3,"product","search"],[3,"concept","search"],[3,"tooltipText","feature"],[3,"value","prefix","label"],[3,"btnClick","value","prefix","label"]],template:function(t,r){if(t&1&&(Zi$3(0,"selector-list",0),hT(1,q0,8,14,"selector-row-action-wrap",1,L0),kl$2()),t&2){let i=r.appRows().length===0;Ig$1("disableScroll",true)("noData",r.appRows().length===0)("header",i?vb(6,I0):r.header())("loading",r.loading())("loadingMore",r.loadingMore())("isLimit",r.loadingMoreLimit()),AE(),gT(r.appRows());}},dependencies:[Ke$4,Qe$4,Ye$4,Ze$4,et$6,R$4,h$9,po,tt$6],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;flex-direction:column;height:100%;max-width:100%}@media(max-width:767px){[_nghost-%COMP%]{width:800px}}[_nghost-%COMP%]   .list[_ngcontent-%COMP%]{flex:1;max-width:100%;width:100%;justify-content:center}[_nghost-%COMP%]   .row-wrap[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%]   .row-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:12px}[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{width:100%;max-width:100%;padding:0 8px}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{padding:0}}@media(max-width:1279px){[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{padding:0 16px 0 8px}}@media(max-width:767px){[_nghost-%COMP%]   .link[_ngcontent-%COMP%]{padding:0 8px 0 0;display:flex;align-items:center}}@media(max-width:767px){[_nghost-%COMP%]   .row[_ngcontent-%COMP%]{flex:1;margin:0 8px;max-width:calc(100% - 16px)}}"]});}};var K0=e=>({alwaysVisible:true,scrolledToBottomFn:e}),X0=(e,o)=>o.type;function Y0(e,o){if(e&1){let t=DT();Zi$3(0,"search-tabs",2),_g$1("valChange",function(i){Rd$2(t);let n=NT();return kd$2(n.tab.set(i))}),kl$2();}if(e&2){let t=NT();Ig$1("value",t.tab())("values",t.tabs());}}function Q0(e,o){if(e&1){let t=DT();Zi$3(0,"search-platform-item",6),_g$1("clickAction",function(i){Rd$2(t);let n=NT().$implicit;return kd$2(n.clickAction(i))}),kl$2();}if(e&2){let t=NT().$implicit,r=NT(2);Pg$1("no-data",t.appRows().length===0)("first-list",t.type===r.platformLoaderType.steamApps)("second-list",t.type===r.platformLoaderType.steamPubs),Ig$1("type",t.type)("header",t.header())("appRows",t.appRows())("loading",t.loading())("loadingMore",r.loadingMore()&&!t.loadingMoreLimit())("loadingMoreLimit",t.loadingMoreLimit())("search",r.search())("disableAction",!t.clickAction);}}function Z0(e,o){if(e&1&&uT(0,Q0,1,14,"search-platform-item",5),e&2){let t=o.$implicit,r=NT(2),i=db(0);dT(!i||t.type===r.tab()?0:-1);}}function J0(e,o){if(e&1&&(Zi$3(0,"div",3)(1,"div",4),hT(2,Z0,1,1,null,null,X0),kl$2()()),e&2){let t=NT();AE(2),gT(t.items());}}var Xr=class e{constructor(){this.items=VV.required();this.search=VV.required();this.loadMore=jV();this.close=jV();this.isSmDesk=D$l(r$9).isSmDesk;this.loadingMore=Pb(()=>this.items().find(o=>o.loadingMore()));this.tab=Vb(()=>this.items()[0].type);this.tabs=Pb(()=>this.items().map(o=>({value:o.type,name:o.name})));this.loadMoreFn=()=>this.loadMore.emit();this.platformLoaderType=J$8;}ngAfterViewInit(){this.popper.update();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["search-platform-panel"]],hostAttrs:[1,"g-nav-search-panel"],hostVars:2,hostBindings:function(t,r){t&2&&Pg$1("long",r.items().length>1);},inputs:{popper:"popper",items:[1,"items"],search:[1,"search"]},outputs:{loadMore:"loadMore",close:"close"},decls:4,vars:7,consts:[[3,"value","values"],["class","wrap",4,"amScrollbar"],[3,"valChange","value","values"],[1,"wrap"],[1,"items-wrap"],[1,"item",3,"no-data","first-list","second-list","type","header","appRows","loading","loadingMore","loadingMoreLimit","search","disableAction"],[1,"item",3,"clickAction","type","header","appRows","loading","loadingMore","loadingMoreLimit","search","disableAction"]],template:function(t,r){if(t&1&&(Zg$1(0),bb(1,"async"),uT(2,Y0,1,2,"search-tabs",0),cg$1(3,J0,4,0,"div",1)),t&2){let i=ub(_b(1,2,r.isSmDesk)&&r.items().length>1);AE(2),dT(i?2:-1),AE(),Ig$1("amScrollbar",Ib(5,K0,r.loadMoreFn));}},dependencies:[Kr,mo,Ht$7,hn$2],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column;width:680px;padding-top:0}@media(max-width:767px){[_nghost-%COMP%]{width:800px}}.long[_nghost-%COMP%]{width:1200px;max-width:100%}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;height:100%}[_nghost-%COMP%]   .items-wrap[_ngcontent-%COMP%]{display:flex;width:100%}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:420px;padding:16px 0;height:100%;max-width:100%;width:50%;flex:1;min-width:0;border-right:1px solid var(--grey-40)}@media(min-width:1280px){[_nghost-%COMP%]   .item.second-list[_ngcontent-%COMP%]{max-width:45%}[_nghost-%COMP%]   .item.first-list[_ngcontent-%COMP%]{max-width:55%}}@media(max-width:1279px){[_nghost-%COMP%]   .item[_ngcontent-%COMP%]{max-width:100%;width:100%}}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:last-child{border-right:none}[_nghost-%COMP%]   .no-data[_ngcontent-%COMP%]{max-height:40px}"]});}};var Dt=class{static getItem(o,t,r,i,n){let g=o.header.map(B=>(B.tooltipPlacement="bottom",B)),m=fi$4(g);return r.subscribe(B=>{m.set(B?g.slice(0,1):g);}),{type:o.type,name:t,header:m,appRows:Pb(()=>{let B=o.appRows();return n(B),B}),loading:o.loading,loadingMore:o.loadingMore,loadingMoreLimit:o.loadingMoreLimit,changeSearch:B=>o.changeSearch(B),clickAction:i,loadMore:()=>o.loadMore()}}static getSyncDataLoadItems(o){let t=Pb(()=>!!o.find(i=>i.loading())),r=Pb(()=>!!o.find(i=>i.loadingMore()));return o.map(i=>{let n=[],g=Pb(()=>t()?(n=[],[]):(r()||(n=i.appRows()),n));return E$9(D$m({},i),{appRows:g,loading:t,loadingMore:r})})}};var It=class{static getSteamMetric(o,t,r){return o.first_release_date&&o.last_30d_revenue?D$m({value:o.last_30d_revenue,prefix:"$",label:"appList.revenue",type:"total_revenue"},t):D$m({value:o.last_30d_new_wishlists,prefix:"",label:"steam.wishlists",type:"new_wishlists"},r)}static getSteamPubMetric(o){return {value:o.last_30d_revenue,prefix:"$",label:"appList.revenue",type:"total_revenue",lock:false,feature:null,lockTooltipText:null}}static getXboxMetric(o,t){return D$m({value:o.last_30d_revenue||o.last_30d_downloads,prefix:o.last_30d_revenue?"$":"",label:o.last_30d_revenue?"appList.revenue":"appList.downloads",type:o.last_30d_revenue?"total_revenue":"copies_sold"},t)}static getPlayStationMetric(o,t){return o.last_30d_revenue?D$m({value:o.last_30d_revenue,prefix:"$",label:"appList.revenue",type:"total_revenue"},t):D$m({value:o.last_30d_copies_sold,prefix:"",label:"appList.downloads",type:"copies_sold"},t)}};var th=["input"];function oh(e,o){e&1&&(Zi$3(0,"div",1),Eg$1(1,"spinner",5),kl$2()),e&2&&(AE(),Ig$1("diameter",14));}function rh(e,o){e&1&&Eg$1(0,"i",2);}function ih(e,o){if(e&1){let t=DT();Zi$3(0,"div",6),_g$1("click",function(){Rd$2(t);let i=NT();return kd$2(i.clearSearch())}),kl$2();}}var Yr=class e{constructor(){this.platform=VV();this.toggleOpen=jV();this.searchResource=D$l(o$6);this.analyticsService=D$l(L$3);this.amDialogService=D$l(y$5);this.navSelectService=D$l(Bt);this.platformAppsLoaderService=D$l(Je$4);this.screensService=D$l(w$1);this.element=D$l(Gr$4);this.breakpointService=D$l(r$9);this.devFeatureToggleService=D$l(D$c);this.destroyRef=D$l(st$b);this.router=D$l(F$4);this.userService=D$l(ve$6);this.searchSubject=new rr$4("");this.subscription=new W$f;this.searchAppsLoader=new uo(o=>this.searchResource.get(o));this.placeholder=Pb(()=>this.platform()==="mobile"?"selectors.search":"platform.search_for_game");let o=this.searchSubject.pipe(wu$2(300),U$a(this.destroyRef));o.pipe(Tu$2(),Nu$2(1)).subscribe(m=>{if(!m){this.inputElement?.nativeElement.focus();return}let B=[m];this.analyticsService.send("global_search_query",B),this.inputElement?.nativeElement.focus();});let t=this.platformAppsLoaderService.get(0),r=this.platformAppsLoaderService.get(1),i=this.platformAppsLoaderService.get(2),n=this.platformAppsLoaderService.get(3);this.searchLoading=Pb(()=>this.platform()==="steam"?t.loading()||r.loading():this.platform()==="xbox"?i.loading():this.platform()==="playStation"?n.loading():this.searchAppsLoader.searchLoading());let g=new de$c;ef$2(()=>{g.next(),this.searchSubject.next("");let m=this.platform();Fb(()=>{m==="mobile"&&o.pipe(ku$2(g)).subscribe(U=>{if(!U){this.searchAppsLoader.disableLoad(),this.close();return}this.searchAppsLoader.get(this.searchSubject.getValue(),false).pipe(ku$2(g)).subscribe(()=>{this.amDialogOverlay||this.openDefault();});});let B=(U,H,P)=>{let T={appIds:[U]};H&&(T.types=[H],T.tableCols={active:[H]}),this.screensService.goToScreen(P,T,false);},E=this.breakpointService.isMobLs.pipe(U$a(this.destroyRef)),j={steam:()=>{let U=Dt.getItem(t,"appList.applications",E,T=>B(T.data.id,T.data.mobileMetric?.type,"steam"),T=>{T.forEach(ee=>{ee.data.link=s$e.getSteamPageLink(ee.data.id),ee.data.mobileMetric=It.getSteamMetric(ee.data.app,{lock:!this.userService.hasAccess(E$6.steam_metrics),feature:"steamMetrics",lockTooltipText:v$6.getLockTooltipText(this.userService,E$6.steam_metrics)},{lock:!this.userService.hasAccess(E$6.steam_user_acquisition),feature:"steam_user_acquisition",lockTooltipText:v$6.getLockTooltipText(this.userService,E$6.steam_user_acquisition)});});}),H=(T,ee)=>{let ae={pubIds:[T]};ee&&(ae.types=[ee],ae.tableCols={active:[ee]}),this.screensService.goToScreen("steam-publisher",ae,false);},P=Dt.getItem(r,"appList.publishers",E,T=>H(T.data.id,T.data.mobileMetric?.type),T=>{T.forEach(ee=>{ee.data.link=s$e.getPubPageLink(ee.data.app.ids[0].toString()),ee.data.mobileMetric=It.getSteamPubMetric(ee.data.app);});});return Dt.getSyncDataLoadItems([U,P])},xbox:()=>[Dt.getItem(i,null,E,H=>B(H.data.id,H.data.mobileMetric?.type,"xbox"),H=>{H.forEach(P=>{P.data.link=s$g.getXboxPageLink(P.data.id),P.data.mobileMetric=It.getXboxMetric(P.data.app,{lock:!this.userService.hasAccess(E$6.xbox),feature:"xbox",lockTooltipText:v$6.getLockTooltipText(this.userService,E$6.xbox)});});})],playStation:()=>[Dt.getItem(n,null,E,H=>B(H.data.id,H.data.mobileMetric?.type,"playstation"),H=>{H.forEach(P=>{P.data.link=e$d.getPlayStationPageLink(+P.data.id),P.data.mobileMetric=It.getPlayStationMetric(P.data.app,{lock:!this.userService.hasAccess(E$6.playstation),feature:"playstation",lockTooltipText:v$6.getLockTooltipText(this.userService,E$6.playstation)});});})]};if(m!=="mobile"){let U=j[m]();o.pipe(ku$2(g)).subscribe(H=>
1006{if(!H){this.close();return}if(U.forEach(P=>P.changeSearch(H)),!this.amDialogOverlay){let P=this.amDialogService.open(Xr,e.getAmDialogConfig());this.openPanel(P),P.setInput("items",U),P.instance.loadMore.subscribe(()=>{U.forEach(T=>{T.appRows().length>0&&T.loadMore();});});}this.amDialogOverlay.setInput("search",H);});}});});}static getCloseObserver(o,t,r){let i=new de$c;return o.instance.close.subscribe(()=>i.next(true)),o.backdropClick().subscribe(()=>{r("global_search_close_backdrop"),i.next(false);}),o.escEvent().subscribe(()=>{r("global_search_close_esc"),i.next(false);}),t.pipe(Mu$2()).subscribe(()=>i.next(true)),i.pipe(Pt$a(1))}static getAmDialogConfig(){return {containerClass:"search-dialog-container",backdropInClass:"",backdropOutClass:"",dialogInClass:"",dialogOutClass:""}}openPanel(o){this.amDialogOverlay||(this.amDialogOverlay=o,this.toggleOpen.emit(true),o.instance.popper=new St$7(this.element.nativeElement,o.container,uo.getConfig()),e.getCloseObserver(o,this.router.events,t=>this.analyticsService.send(t)).subscribe(()=>{this.close();}));}openDefault(){let o=this.amDialogService.open(Gr,e.getAmDialogConfig());this.openPanel(o),o.setInput("applications",this.searchAppsLoader.applications),o.setInput("showWarningTextForApps",this.searchAppsLoader.showWarningTextForApps),o.setInput("hasMoreApps",this.searchAppsLoader.hasMoreApps),o.setInput("publishers",this.searchAppsLoader.publishers),o.setInput("showWarningTextForPubs",this.searchAppsLoader.showWarningTextForPubs),o.setInput("hasMorePubs",this.searchAppsLoader.hasMorePubs),o.setInput("loading",this.searchAppsLoader.loading),o.setInput("search",this.searchAppsLoader.search),o.setInput("searchLoading",this.searchAppsLoader.searchLoading),o.instance.loadMore.subscribe(()=>this.searchAppsLoader.loadMore());}close(){this.amDialogOverlay&&(this.toggleOpen.emit(false),this.amDialogOverlay.dispose(),this.amDialogOverlay=void 0),this.searchAppsLoader.clearSearch(),this.searchAppsLoader.cancelActiveQuery();}clickSearch(){this.navSelectService.showPanel.next(false),this.analyticsService.send("navbar_click_search");}clearSearch(){this.searchSubject.next("");}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["search"]],viewQuery:function(t,r){if(t&1&&xg$1(th,5),t&2){let i;OT(i=LT())&&(r.inputElement=i.first);}},hostBindings:function(t,r){t&1&&_g$1("click",function(){return r.clickSearch()});},inputs:{platform:[1,"platform"]},outputs:{toggleOpen:"toggleOpen"},decls:8,vars:8,consts:[["input",""],[1,"spinner-container"],[1,"g-icon-search","search-icon"],["autocomplete","off","type","text","maxlength","255",1,"search-input","outline-none","font-roboto",3,"input","desktop-focus","placeholder","value"],[1,"clear-search-icon-white"],[3,"diameter"],[1,"clear-search-icon-white",3,"click"]],template:function(t,r){if(t&1&&(uT(0,oh,2,1,"div",1)(1,rh,1,0,"i",2),Zg$1(2),bb(3,"async"),Zi$3(4,"input",3,0),bb(6,"translate"),_g$1("input",function(n){return r.searchSubject.next(n.target.value)}),kl$2(),uT(7,ih,1,0,"div",4)),t&2){dT(r.searchLoading()?0:1);let i=_b(3,4,r.searchSubject);AE(4),Ig$1("placeholder",_b(6,6,r.placeholder())+"...")("value",i),AE(3),dT(i?7:-1);}},dependencies:[An$3,b$5,Ie$2,fe$8,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;align-items:center;white-space:nowrap;position:relative;max-width:530px;width:100%;margin-left:auto;overflow:hidden;flex:1;height:32px;border-radius:8px}@media(max-width:1279px){[_nghost-%COMP%]{max-width:356px}}@media(max-width:767px){[_nghost-%COMP%]{padding-right:0}}[_nghost-%COMP%]   .spinner-container[_ngcontent-%COMP%]{display:flex;left:12px;position:absolute}[_nghost-%COMP%]   .clear-search-icon-white[_ngcontent-%COMP%]{margin-right:12px;margin-left:16px}[_nghost-%COMP%]   .search-icon[_ngcontent-%COMP%]{width:16px;min-width:16px;height:16px;position:absolute;left:12px;pointer-events:none}[_nghost-%COMP%]   .search-input[_ngcontent-%COMP%]{font-size:100%;background:var(--surface-inverse-sunken);color:var(--on-inverse);border-radius:8px;border:none;width:100%;height:32px;line-height:30px!important;cursor:text;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 40px 0 36px}[_nghost-%COMP%]   .search-input[_ngcontent-%COMP%]::placeholder{color:var(--on-inverse);opacity:.8;text-overflow:ellipsis}@media(max-width:767px){[_nghost-%COMP%]   .search-input[_ngcontent-%COMP%]{padding-right:35px}}"]});}};var Qr=class e{constructor(){this.navMaxItemCountDisabled=VV(false);this.onCountChange=jV();this.element=D$l(Gr$4);this.translateService=D$l(x$d);this.subscription=new W$f;ef$2(()=>{this.navMaxItemCountDisabled()&&this.element.nativeElement.setAttribute(e.MaxCountName,void 0);});}static{this.MaxCountName="max-item-count";}static getCountForItems(o,t){return t.reduce((r,i,n)=>t.slice(0,n+1).reduce((m,B)=>m+B,0)>o?r:n,0)+1}static getCount(o,t){let r=t.slice(0,-1),i=t.slice(-1)[0],n=e.getCountForItems(o,r);if(n===r.length)return n;let g=[...r.slice(0,n-1),i],m=e.getCountForItems(o,g);return m===g.length,m}ngAfterViewInit(){this.element.nativeElement.style.flex="1",this.element.nativeElement.style.minWidth="0";let o=new rr$4(null),t=new MutationObserver(()=>o.next(void 0));t.observe(this.element.nativeElement.parentElement,{childList:true,subtree:true}),this.subscription.add(qm$2([Ns$2(window,"resize").pipe(Au$2(null)),this.translateService.onLangChange.pipe(wu$2(10),Au$2(null)),o]).pipe(Lu$2(()=>this.element.nativeElement.setAttribute(e.MaxCountName,10)),ge$9(()=>Array.from(this.element.nativeElement.children).map(r=>r.clientWidth).filter(r=>!!r)),ge$9(r=>e.getCount(this.element.nativeElement.clientWidth,r)),bu$2(()=>t.disconnect())).subscribe(r=>{this.navMaxItemCountDisabled()||(this.element.nativeElement.setAttribute(e.MaxCountName,r),this.onCountChange.emit(r));}));}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275dir=dw({type:e,selectors:[["","navMaxItemCount",""]],inputs:{navMaxItemCountDisabled:[1,"navMaxItemCountDisabled"]},outputs:{onCountChange:"onCountChange"}});}};var Zr=class e{constructor(o){this.notViewedNewService=o;}transform(o,t,r){return this.notViewedNewService.getNavGroupWithIsNewAndViewedNew(o,t,r)}static{this.\u0275fac=function(t){return new(t||e)(Jr$4(y,16))};}static{this.\u0275pipe=fw({name:"addIsNewAndViewedNew",type:e,pure:true});}};var ah=(e,o)=>o.value;function lh(e,o){e&1&&(Zi$3(0,"span",6),ib(1),bb(2,"translate"),kl$2()),e&2&&(AE(),jl$2("",_b(2,1,"apps.new"),"!"));}function sh(e,o){e&1&&(Zi$3(0,"span",7),ib(1),kl$2()),e&2&&(AE(),Ug$1("dev"));}function ch(e,o){if(e&1){let t=DT();Zi$3(0,"a",3),_g$1("click",function(i){let n=Rd$2(t).$implicit,g=NT(2);return kd$2(g.openNavPage(n.value,i))}),Eg$1(1,"platform-icon",4),Zi$3(2,"span",5),ib(3),bb(4,"translate"),kl$2(),uT(5,lh,3,3,"span",6),uT(6,sh,2,1,"span",7),kl$2();}if(e&2){let t=o.$implicit,r=NT(2),i=r.value()===t.value,n=r.dark()&&!i?r.PlatformIconColor.yellow:r.PlatformIconColor.black;Pg$1("selected",i),vg$1("href",r.links()[t.value],qp$2),AE(),Ig$1("value",t.value)("color",n),AE(2),Ug$1(_b(4,8,t.name)),AE(2),dT(t.new?5:-1),AE(),dT(t.dev?.()?6:-1);}}function ph(e,o){if(e&1&&(Zi$3(0,"div",1),hT(1,ch,7,10,"a",2,ah),kl$2()),e&2){let t=NT();AE(),gT(t.items());}}
1006var Jr=class e{constructor(){this.value=VV.required();this.items=VV.required();this.links=VV.required();this.dark=VV.required();this.valChange=jV();this.Platform=Oe$6;this.PlatformIconColor=v$4;}ngAfterViewInit(){this.popper?.update();}openNavPage(o,t){t.ctrlKey||t.metaKey||(t.preventDefault(),this.valChange.emit(o));}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["platform-selector-panel"]],hostVars:2,hostBindings:function(t,r){t&2&&Pg$1("dark",r.dark());},inputs:{value:[1,"value"],items:[1,"items"],links:[1,"links"],dark:[1,"dark"],popper:"popper"},outputs:{valChange:"valChange"},decls:1,vars:0,consts:[["class","group-wrap",4,"amScrollbar"],[1,"group-wrap"],[1,"g-group-item","item",3,"selected"],[1,"g-group-item","item",3,"click"],[1,"icon",3,"value","color"],[1,"text-overflow"],[1,"new","g-title-new"],[1,"new","g-status-label","g-dev-color"]],template:function(t,r){t&1&&cg$1(0,ph,3,0,"div",0);},dependencies:[h$4,fe$8,Ht$7,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column;width:208px;min-width:208px;max-height:calc(var(--height) - var(--root-header-height) - 16px);padding:8px;background:var(--white);box-shadow:var(--shadow-m);border-bottom-right-radius:8px;pointer-events:all}.dark[_nghost-%COMP%]{background:var(--grey-100)}.dark[_nghost-%COMP%]   .item[_ngcontent-%COMP%]{background:var(--grey-100)}@media(hover:hover)and (pointer:fine){.dark[_nghost-%COMP%]   .item[_ngcontent-%COMP%]:hover:not(.selected){background:var(--grey-80)}}.dark[_nghost-%COMP%]   .selected[_ngcontent-%COMP%]{background:var(--yellow-50);color:var(--static-black)}[_nghost-%COMP%]   .group-wrap[_ngcontent-%COMP%]{flex:1;min-height:0}[_nghost-%COMP%]   .item[_ngcontent-%COMP%]{padding:8px 16px;color:var(--black)}[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%]   .new[_ngcontent-%COMP%]{top:-2px;left:2px}"]});}};function mh(e,o){e&1&&Eg$1(0,"div",1);}var ei=class e{constructor(){this.dark=VV.required();this.value=VV.required();this.showXbox=VV.required();this.showPlayStation=VV.required();this.valChange=jV();this.toggleOpen=jV();this.amTooltipService=D$l(w$7);this.notViewedNewService=D$l(y);this.destroyRef=D$l(st$b);this.element=D$l(Gr$4);this.breakpointService=D$l(r$9);this.devFeatureToggleService=D$l(D$c);this.Platform=Oe$6;this.PlatformIconColor=v$4;this.isModalOpen=fi$4(false);}ngOnInit(){let o=Pb(()=>{let n=[{value:"mobile",name:"nav.mobile"},{value:"steam",name:"steam.steam",dev:this.devFeatureToggleService.featuresSignal.steamDevData}];return this.showXbox()&&n.push({value:"xbox",name:"xbox.xbox"}),this.showPlayStation()&&n.push({value:"playStation",name:"playStation.playStation"}
1006),n.forEach(g=>{g.new=i$9.isNewFeature(g.value);}),n}),t=fi$4(false);this.withNew=Pb(()=>!!o().find(n=>n.new&&!this.notViewedNewService.isFeatureViewed(n.value))&&!t());let r=co.getTooltipConfig(false);this.breakpointService.get(i$h.isMobLs)&&(r.backdropClass="am-dialog-backdrop"),r.popper.middleware=[{name:Jt$7.customShiftName,fn({rects:n}){return {x:0,y:n.reference.height}}}];let i=this.amTooltipService.getTooltip(this.element,Jr,r);i.onElementHover.pipe(U$a(this.destroyRef)).subscribe(()=>{i.open(),this.isModalOpen.set(true),this.toggleOpen.emit(true),o().filter(m=>m.new).map(m=>m.value).forEach(m=>this.notViewedNewService.setViewedFeature(m)),t.set(true),i.instance.dark=this.dark,i.instance.value=this.value,i.instance.items=o;let g={mobile:t$j,steam:e$j,xbox:i$g,playStation:a$e};i.instance.links=fi$4(g),i.instance.valChange.subscribe(m=>{this.valChange.emit(m),i.close();}),i.onClose.subscribe(()=>{this.isModalOpen.set(false),this.toggleOpen.emit(false);}),Ns$2(this.element.nativeElement,"touchstart").pipe(ku$2(i.onClose),Tn$3(()=>this.isModalOpen())).subscribe(()=>i.close());});}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["platform-selector"]],inputs:{dark:[1,"dark"],value:[1,"value"],showXbox:[1,"showXbox"],showPlayStation:[1,"showPlayStation"]},outputs:{valChange:"valChange",toggleOpen:"toggleOpen"},decls:4,vars:5,consts:[[1,"wrap"],[1,"g-has-new-feature-icon","new-feature-icon"],[3,"value","color"],[1,"g-selector-arrow","arrow"]],template:function(t,r){t&1&&(Zi$3(0,"div",0),uT(1,mh,1,0,"div",1),Eg$1(2,"platform-icon",2)(3,"div",3),kl$2()),t&2&&(Pg$1("active",r.isModalOpen()),AE(),dT(r.withNew()?1:-1),AE(),Ig$1("value",r.value())("color",r.PlatformIconColor.yellow));},dependencies:[h$4],styles:["[_nghost-%COMP%]{height:100%;display:flex;align-items:center}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;align-items:center;height:auto;gap:2px;border-radius:8px;padding:2px;color:var(--yellow-50);cursor:pointer;position:relative}[_nghost-%COMP%]   .new-feature-icon[_ngcontent-%COMP%]{top:-4px;right:-4px}[_nghost-%COMP%]   .active[_ngcontent-%COMP%]{background:var(--grey-90)}[_nghost-%COMP%]   .active[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{transform:rotate(180deg);background-color:var(--yellow-50);opacity:1}[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%]{transition:.1s;background-color:var(--static-white);opacity:.5}"]});}};var ti=class e{constructor(o){this.notViewedNewService=o;}transform(o,t,r){return this.notViewedNewService.getNavGroupWithIsNewAndViewedNew([o],t,r)[0]}static{this.\u0275fac=function(t){return new(t||e)(Jr$4(y,16))};}static{this.\u0275pipe=fw({name:"addIsNewAndViewedNewForGroup",type:e,pure:true});}};var oi=(t=>(t[t.default=0]="default",t[t.newYear=1]="newYear",t))(oi||{});function dh(e,o){if(e&1&&Dg$1(0,"span",5),e&2){let t=o.$implicit;Lg$1("z-index",t.zIndex)("opacity",t.opacity)("left",t.left,"px")("--size",t.size,"px")("--diff-y",t.diffY,"px")("--rotation",t.rotation,"deg")("animation-delay",t.delay,"s")("animation-duration",t.duration,"s");}}function uh(e,o){if(e&1&&(Dg$1(0,"div",1)(1,"span",2),Ol$2(2,"div",3),hT(3,dh,1,16,"span",4,fT),Ll$2()),e&2){let t=NT();AE(3),gT(t.snowflakes);}}function gh(e,o){e&1&&Dg$1(0,"div",0);}var ri=class e{constructor(){this.type=VV(0);this.snowflakes=[];this.LogoType=oi;}static randomBtw(o,t){return Math.random()*(t-o)+o}ngOnInit(){if(this.type()===1){let o=Math.floor(e.randomBtw(10,16));for(let t=0;t<o;t++){let r=Math.random()<.5?0:2,i=r===0?e.randomBtw(.2,.5):e.randomBtw(.8,1),n=e.randomBtw(0,100),g=e.randomBtw(4,16),m=e.randomBtw(0,3),B=e.randomBtw(3,8),E=e.randomBtw(-20,20),j=e.randomBtw(0,400);this.snowflakes.push({zIndex:r,opacity:i,left:n,size:g,delay:m,duration:B,diffY:E,rotation:j});}}}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["logo"]],inputs:{type:[1,"type"]},decls:2,vars:1,consts:[[1,"default"],[1,"new-year"],[1,"glow"],[1,"snow"],[1,"snowflake",3,"zIndex","opacity","left","--size","--diff-y","--rotation","animationDelay","animationDuration"],[1,"snowflake"]],template:function(t,r){t&1&&uT(0,uh,5,0)(1,gh,1,0,"div",0),t&2&&dT(r.type()===r.LogoType.newYear?0:1);},styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;cursor:pointer}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]:hover   .glow[_ngcontent-%COMP%]{opacity:1;width:4px;height:4px}[_nghost-%COMP%]:hover   .snow[_ngcontent-%COMP%]{filter:blur(1px)}}[_nghost-%COMP%]   .default[_ngcontent-%COMP%]{height:16px;width:43px;background:url(/assets/angular2/img/logo/header-logo.svg) no-repeat 0;background-size:contain}[_nghost-%COMP%]   .new-year[_ngcontent-%COMP%]{height:32px;width:64px;background:url(/assets/angular2/img/logo/new-year/new-year-logo.png) no-repeat 0;background-size:contain;transform:translateY(-6px);z-index:1;position:relative}[_nghost-%COMP%]   .snow[_ngcontent-%COMP%]{position:absolute;left:0;top:0;transition:.2s}[_nghost-%COMP%]   .snowflake[_ngcontent-%COMP%]{--diff-y: 0px;--rotation: 180px;position:absolute;top:-16px;left:0;width:var(--size);height:var(--size);display:flex;background:url(/assets/angular2/img/logo/new-year/snow.png) no-repeat 0;background-size:contain;z-index:2;animation:_ngcontent-%COMP%_fall 3s ease-in-out infinite both}[_nghost-%COMP%]   .glow[_ngcontent-%COMP%]{opacity:0;position:absolute;left:29px;top:4px;border-radius:50%;width:2px;height:2px;z-index:4;transition:.2s;box-shadow:0 0 30px var(--yellow-70),0 0 90px var(--yellow-70),0 0 180px var(--yellow-70),0 0 270px #feda0fd9,0 0 360px #feda0fb3,0 0 450px #feda0f99}@keyframes _ngcontent-%COMP%_fall{0%{transform:translate(0)}to{transform:translate(var(--diff-y),66px) rotate(var(--rotation))}}"]});}};var Fo=class{static{this.DisableKey="disable-logo-switch";}static getType(){let o=kt$3.now(),t=o.getUTCMonth()===0?o.getUTCFullYear()-1:o.getUTCFullYear(),r=kt$3.transform(`${t}-12-31`),i=kt$3.subtract(r,14,"d"),n=kt$3.add(r,14,"d");return kt$3.isBetween(o,i,n,"d")?1:0}};var hh=e=>[e];function fh(e,o){e&1&&Eg$1(0,"premium-timer",0);}function vh(e,o){if(e&1){let t=DT();Zi$3(0,"pricing-button",13),_g$1("clickPricing",function(){Rd$2(t);let i=NT();return kd$2(i.headerService.handlePricingClick())}),kl$2();}}function Ch(e,o){if(e&1){let t=DT();Zi$3(0,"my-account-button",14),_g$1("accountClick",function(i){Rd$2(t);let n=NT();return kd$2(n.headerService.handleAccountClick(i))}),kl$2();}}function yh(e,o){if(e&1){let t=DT();Zi$3(0,"btn-spinner",15),bb(1,"async"),_g$1("click",function(){Rd$2(t);let i=NT();return kd$2(i.headerService.handleLoginClick())}),kl$2();}if(e&2){let t=NT();Ig$1("promoCode",t.headerService.isShowPromoCode)("text","auth.login")("loading",_b(1,3,t.userService.isLoading));}}function bh(e,o){e&1&&Eg$1(0,"premium-timer",11);}var ii=class e{constructor(){this.userService=D$l(ve$6);this.promoCodeService=D$l(M$5);this.premiumTimerService=D$l(l$9);this.headerService=D$l(Fe$5);this.element=D$l(Gr$4);this.navSelectService=D$l(Bt);this.notViewedNewService=D$l(y);this.router=D$l(F$4);this.checkPremiumService=D$l(ut);this.checkAccessService=D$l(n$8);this.loginService=D$l(V$5);this.localStorageService=D$l(xt$5);this.preferredPlatformService=D$l(m$8);this.featureToggleService=D$l(D$c);this.analyticsService=D$l(L$3);this.Platform=Oe$6;this.dark=D$l(h$5).darkTheme;this.logoType=this.localStorageService.get(Fo.DisableKey)?null:Fo.getType();this.platform=Pb(()=>{let o=this.navSelectService.platform(),t=this.navSelectService.isCommonUrl(),r=this.localStorageService.get(e.LastPlatformKey);return t&&r?r:o});this.hasPlaystationAccess=this.userService.getAccessSignal(E$6.playstation);this.hasXboxAccess=this.userService.getAccessSignal(E$6.xbox);this.xboxEnable=Pb(()=>{let o=this.featureToggleService.featuresSignal.platforms(),t=this.hasXboxAccess();return o||t});this.playStationEnable=Pb(()=>{let o=this.featureToggleService.featuresSignal.platforms(),t=this.hasPlaystationAccess();return o||t});this.navGroupListGroups=Pb(()=>{let o=this.platform();return this.navSelectService.getPlatformList(o).listGroups});this.navGroupListMore=Pb(()=>{let o=this.platform();return this.navSelectService.getPlatformList(o).more});this.logoUrl=Pb(()=>n$g.getDefaultUrlByPlatform(this.platform()));this.openState={platform:new rr$4(false),nav:new rr$4(false),search:new rr$4(false)};this.subscription=new W$f;this.viewedNew=new rr$4(this.notViewedNewService.getViewedNew());this.newArticles=this.notViewedNewService.newArticles;ef$2(()=>{let o=this.platform();this.localStorageService.set(e.LastPlatformKey,o),!this.navSelectService.isCommonUrl()&&!this.navSelectService.isLoginUrl()&&this.preferredPlatformService.save(this.navSelectService.platform());});}static{this.CssVarHeaderHeight="--root-header-height";}static{this.CssVarPaddingTopSearchPanelWithTimer="--padding-top-search-panel-with-timer";}static{this.CssAttrOsLinux="linux";}static{this.LastPlatformKey="last-platform";}ngOnInit(){this.headerService.isShowPromoCode=this.userService.isGuest()&&this.promoCodeService.hasPromoCode(),/Linux/.test(window.navigator.platform)&&document.documentElement.setAttribute("os",e.CssAttrOsLinux),this.subscription.add(this.headerService.headerHeight.subscribe(o=>{document.documentElement.style.setProperty(e.CssVarHeaderHeight,`${o}px`),document.documentElement.style.setProperty(e.CssVarPaddingTopSearchPanelWithTimer,`${o===Fe$5.HeaderHeight.big?24:0}px`);})),this.subscription.add(qm$2([this.openState.nav,this.openState.search.pipe(Tu$2(),Ru$2(o=>o?Ms$2(true):Ms$2(false).pipe(Uu$2(350)))),this.openState.platform]).subscribe(([o,t,r])=>{this.element.nativeElement.style.zIndex=o||t||r?1001:12;}));}navOpen(o){this.openState.nav.next(o.isOpen),this.notViewedNewService.updatedViewedNewFromNavGroups(o.groups).pipe(Mu$2()).subscribe(t=>{this.viewedNew.next(t);});}selectPlatformHandle(o){let{listGroups:t}=this.navSelectService.getPlatformList(o),i=t[0][0].children[0].url;this.router.navigateByUrl(i);}
1006navClick(o){let t=o.children[0];if(this.analyticsService.send("navbar_click_option",[t.url]),!t.onlyPremium&&!t.accessName){this.router.navigateByUrl(t.url);return}if(t.onlyPremium){this.checkPremiumService.checkPremiumWithLoginAndRedirectAfter([t.url]);return}this.checkAccessService.checkAccessWithLoginAndRedirectAfter(t.accessName,[t.url]);}logout(){this.loginService.logout();}accountClick(o){this.headerService.handleAccountClick(o);}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["main-header"]],decls:26,vars:56,consts:[[1,"premium-timer-mob"],[1,"nav-wrap"],[1,"logo-wrap"],["id","root-header-logo",1,"logo",3,"click","routerLink"],[3,"type"],[1,"platform-selector",3,"toggleOpen","valChange","dark","value","showXbox","showPlayStation"],["navMaxItemCount","",1,"nav-select-desk",3,"onCountChange","navClick","navToggleOpen","logout","accountClick","listGroups","listMore","maxCount","viewedNew","navMaxItemCountDisabled","showFavorites","dark"],[1,"root-search",3,"toggleOpen","platform"],[1,"pricing-button"],[1,"not-mob-ls"],[1,"login-btn","not-mob-ls",3,"promoCode","text","loading"],[1,"premium-timer","not-mob-ls"],[1,"nav-select-mob",3,"navToggleOpen","navClick","logout","accountClick","listGroups","listMore","viewedNew","showFavorites","dark"],[1,"pricing-button",3,"clickPricing"],[1,"not-mob-ls",3,"accountClick"],[1,"login-btn","not-mob-ls",3,"click","promoCode","text","loading"]],template:function(t,r){if(t&1&&(Zg$1(0),bb(1,"async"),Zg$1(2),bb(3,"async"),uT(4,fh,1,0,"premium-timer",0),bb(5,"async"),Zi$3(6,"div",1)(7,"div",2)(8,"a",3),_g$1("click",function(){return r.headerService.handleClickLogo()}),Eg$1(9,"logo",4),kl$2(),Zi$3(10,"platform-selector",5),_g$1("toggleOpen",function(n){return r.openState.platform.next(n)})("valChange",function(n){return r.selectPlatformHandle(n)}),kl$2()(),Zi$3(11,"nav-select",6),bb(12,"addIsNewAndViewedNew"),bb(13,"addIsNewAndViewedNewForGroup"),_g$1("onCountChange",function(n){return r.navMaxCount=n})("navClick",function(n){return r.navClick(n)})("navToggleOpen",function(n){return r.navOpen(n)})("logout",function(){return r.logout()})("accountClick",function(n){return r.accountClick(n)}),kl$2(),Zi$3(14,"search",7),_g$1("toggleOpen",function(n){return r.openState.search.next(n)}),kl$2(),uT(15,vh,1,0,"pricing-button",8),bb(16,"async"),uT(17,Ch,1,0,"my-account-button",9),bb(18,"async"),uT(19,yh,2,5,"btn-spinner",10),bb(20,"async"),uT(21,bh,1,0,"premium-timer",11),bb(22,"async"),Zi$3(23,"nav-select",12),bb(24,"addIsNewAndViewedNew"),bb(25,"addIsNewAndViewedNewForGroup"),_g$1("navToggleOpen",function(n){return r.navOpen(n)})("navClick",function(n){return r.navClick(n)})("logout",function(){return r.logout()})("accountClick",function(n){return r.accountClick(n)}),kl$2()()),t&2){let i=r.platform()===r.Platform.mobile,n=_b(1,24,r.viewedNew),g=_b(3,26,r.newArticles);AE(4),dT(_b(5,28,r.premiumTimerService.timer)?4:-1),AE(4),Ig$1("routerLink",Ib(54,hh,r.logoUrl())),AE(),Ig$1("type",r.logoType),AE(),Ig$1("dark",r.dark())("value",r.platform())("showXbox",r.xboxEnable())("showPlayStation",r.playStationEnable()),AE(),Ig$1("listGroups",Sb(12,30,r.navGroupListGroups(),g,n))("listMore",Sb(13,34,r.navGroupListMore(),g,n))("maxCount",r.navMaxCount)("viewedNew",n)("navMaxItemCountDisabled",!r.navGroupListMore().length)("showFavorites",i)("dark",r.dark()),AE(3),Ig$1("platform",r.platform()),AE(),dT(_b(16,38,r.userService.isPremiumObserver)?-1:15),AE(2),dT(_b(18,40,r.userService.isGuestObserver)?-1:17),AE(2),dT(_b(20,42,r.userService.isGuestObserver)?19:-1),AE(2),dT(_b(22,44,r.premiumTimerService.timer)?21:-1),AE(2),Ig$1("listGroups",Sb(24,46,r.navGroupListGroups(),g,n))("listMore",Sb(25,50,r.navGroupListMore(),g,n))("viewedNew",n)("showFavorites",i)("dark",r.dark());}},dependencies:[An$3,Rr,Yr,lo,X$5,$t$4,so,Lr,Dr,Qr,ei,ri,hn$2,Zr,ti],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{--head-padding: 16px;display:flex;width:100%;background-color:var(--surface-inverse);height:var(--root-header-height)}@media(max-width:767px){[_nghost-%COMP%]{--head-padding: 8px;flex-wrap:wrap;flex-direction:column}}[_nghost-%COMP%]   .nav-select-mob[_ngcontent-%COMP%]{display:none;margin-left:auto}@media(max-width:767px){[_nghost-%COMP%]   .nav-select-mob[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .old-nav-select-mob[_ngcontent-%COMP%]{margin-left:8px}[_nghost-%COMP%]   .nav-select-desk[_ngcontent-%COMP%]{margin-right:24px;display:flex;height:100%}@media(max-width:767px){[_nghost-%COMP%]   .nav-select-desk[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .premium-timer[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]   .premium-timer-mob[_ngcontent-%COMP%]{width:100%;height:24px;align-items:center;justify-content:center;display:none}@media(max-width:767px){[_nghost-%COMP%]   .premium-timer-mob[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;width:100%}[_nghost-%COMP%]   .logo-wrap[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;overflow:hidden;position:relative;padding-left:max(var(--head-padding),env(safe-area-inset-left));padding-right:max(0,env(safe-area-inset-right))}@media(max-width:767px){[_nghost-%COMP%]   .logo-wrap[_ngcontent-%COMP%]{padding-left:max(var(--head-padding),env(safe-area-inset-left));padding-right:max(0,env(safe-area-inset-right))}}[_nghost-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;margin-right:12px}@media(max-width:767px){[_nghost-%COMP%]   .logo[_ngcontent-%COMP%]{margin-right:8px}}[_nghost-%COMP%]   .nav-wrap[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;flex-direction:row;position:relative;flex:1}[_nghost-%COMP%]   .with-platform-selector[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%]   .platform-selector[_ngcontent-%COMP%]{margin-right:8px;z-index:3}[_nghost-%COMP%]   .nav-container[_ngcontent-%COMP%]{display:flex;flex:2;justify-content:space-between}[_nghost-%COMP%]   .pricing-button[_ngcontent-%COMP%]{margin-left:16px}@media(max-width:767px){[_nghost-%COMP%]   .pricing-button[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   my-account-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .login-btn[_ngcontent-%COMP%]{margin-left:16px}[_nghost-%COMP%]   .login-btn[_ngcontent-%COMP%]{margin-right:max(var(--head-padding),env(safe-area-inset-right))}[_nghost-%COMP%]   .root-search[_ngcontent-%COMP%]{max-width:620px}@media(max-width:1600px){[_nghost-%COMP%]   .root-search[_ngcontent-%COMP%]{max-width:295px}}"]});}};var wo=class e{static{this.SHAKE_DELAY=300;}static shake(o){o.set(true),setTimeout(()=>{o.set(false);},e.SHAKE_DELAY);}};var _h=(e,o)=>({terms_of_service_link:e,privacy_policy_link:o}),ni=class e{constructor(){this.userEmail=VV("");this.userSubscribed=jV();this.mailingResource=D$l(b$2);this.langService=D$l(v$7);this.snackbarService=D$l(ot$4);this.TermsOfServicePathConstant=t$g;this.PrivacyPolicyPathConstant=o$e;this.inputEmail=Vb(()=>this.userEmail());this.isInputChanged=fi$4(false);this.isSubmitted=fi$4(false);this.shakeInput=fi$4(false);this.consentChecked=fi$4(false);this.shakeConsent=fi$4(false);this.isValidEmail=Pb(()=>(new RegExp(n$9.getEmail()).test(this.inputEmail())&&this.isInputChanged()||!this.isInputChanged())&&!this.isSubmitted());this.headerText=Pb(()=>this.langService.langSignal().id==="en"?"articles.newsletter_form_heading":"articles.newsletter_form_heading_for_non_en");}toggleConsent(){this.consentChecked.update(o=>!o);}submit(){if(this.isSubmitted.set(false),!this.inputEmail()||!this.isValidEmail()){this.inputEmail.set(""),wo.shake(this.shakeInput);return}if(!this.consentChecked()){wo.shake(this.shakeConsent);return}this.mailingResource.apply(this.inputEmail(),[{type:"newsletters",value:true}]).subscribe(()=>{this.isInputChanged.set(false),this.inputEmail.set(""),this.userSubscribed.emit(),this.snackbarService.show("alerts.thanks_for_subscribing",true);});}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["footer-subscription-block"]],inputs:{userEmail:[1,"userEmail"]},outputs:{userSubscribed:"userSubscribed"},decls:11,vars:23,consts:[[1,"title",3,"customInnerHtml"],[1,"input-block"],[1,"search-wrap",3,"changeSearch","analyticEvent","search","shake","inputDebounce","showErrorMessageInPlaceholder","isInvalidValue","invali
1006dText","searchIconShow","placeholder","enableFocus"],[1,"g-btn-select","flex-center","btn-select",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M17 8L21 12M21 12L17 16M21 12H3","stroke","black","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"form-consent"],[3,"onChange","value"],["stopToggleOnLink","",1,"form-consent-text",3,"customInnerHtml"]],template:function(t,r){t&1&&(Eg$1(0,"span",0),bb(1,"translate"),Zi$3(2,"div",1)(3,"selector-search",2),_g$1("changeSearch",function(n){return r.isInputChanged.set(true),r.inputEmail.set(n)}),kl$2(),Zi$3(4,"div",3),_g$1("click",function(){return r.submit()}),qd$2(),Zi$3(5,"svg",4),Eg$1(6,"path",5),kl$2()()(),Wd$2(),Zi$3(7,"div",6)(8,"am-checkbox",7),_g$1("onChange",function(){return r.toggleConsent()}),Eg$1(9,"span",8),bb(10,"translate"),kl$2()()),t&2&&(Ig$1("customInnerHtml",_b(1,15,r.headerText())),AE(3),Ig$1("analyticEvent","footer_email_subscription_input")("search",r.inputEmail())("shake",r.shakeInput())("inputDebounce",0)("showErrorMessageInPlaceholder",true)("isInvalidValue",!r.isValidEmail())("invalidText","account.email_invalid")("searchIconShow",false)("placeholder","account.email")("enableFocus",false),AE(4),Pg$1("shake",r.shakeConsent()),AE(),Ig$1("value",r.consentChecked()),AE(),Ig$1("customInnerHtml",Mb(10,17,"requestDemo.terms_and_pp",Eb(20,_h,r.TermsOfServicePathConstant,r.PrivacyPolicyPathConstant))));},dependencies:[fe$8,se$2,r$8,P$6,s$j,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:8px;height:100%;position:relative}[_nghost-%COMP%]   .shake[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_shake .3s;animation-iteration-count:1}@keyframes _ngcontent-%COMP%_shake{0%{transform:translate(1px,1px) rotate(0)}20%{transform:translate(-1px,-2px) rotate(-1deg)}40%{transform:translate(-3px) rotate(1deg)}60%{transform:translate(3px,2px) rotate(0)}80%{transform:translate(1px,-1px) rotate(1deg)}to{transform:translate(-1px,2px) rotate(-1deg)}}[_nghost-%COMP%]   .form-disclaimer[_ngcontent-%COMP%]{color:var(--grey-70);font-size:12px;line-height:18px;letter-spacing:0}[_nghost-%COMP%]   .form-disclaimer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--blue-80)}[_nghost-%COMP%]   .form-consent[_ngcontent-%COMP%]{margin-bottom:12px}[_nghost-%COMP%]   .form-consent-text[_ngcontent-%COMP%]{color:var(--grey-70);font-size:12px}[_nghost-%COMP%]   .form-consent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--blue-80)}[_nghost-%COMP%]   .input-block[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .input-block[_ngcontent-%COMP%]   .search-wrap[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{font-size:12px;line-height:14px}[_nghost-%COMP%]   .btn-select[_ngcontent-%COMP%]{padding:4px;margin-left:8px}"]});}};var Sh=e=>[e],xh=()=>[],Ah=e=>({date:e}),am=(e,o)=>o.link;function Mh(e,o){e&1&&(Zi$3(0,"div",14),Eg$1(1,"spinner",22),kl$2()),e&2&&(AE(),Ig$1("diameter",28));}function Ph(e,o){if(e&1){let t=DT();Zi$3(0,"div",15)(1,"a",23),_g$1("click",function(){let i=Rd$2(t).$implicit,n=NT();return kd$2(n.openArticle(i.link))}),ib(2),bb(3,"translate"),kl$2()();}if(e&2){let t=o.$implicit;AE(),Ig$1("routerLink",t.link),AE(),jl$2(" ",_b(3,2,t.title)," ");}}function Fh(e,o){if(e&1&&Eg$1(0,"img",25),e&2){let t=NT().$implicit;Ig$1("src",t.icon,qp$2);}}function wh(e,o){if(e&1){let t=DT();Zi$3(0,"div",15)(1,"a",24),_g$1("click",function(){let i=Rd$2(t).$implicit,n=NT();return kd$2(n.openArticle(i.link))}),ib(2),bb(3,"translate"),uT(4,Fh,1,1,"img",25),kl$2()();}if(e&2){let t=o.$implicit;AE(),Ig$1("routerLink",t.link),AE(),jl$2(" ",_b(3,3,t.title)," "),AE(2),dT(t.icon?4:-1);}}function Dh(e,o){if(e&1){let t=DT();Zi$3(0,"div",16),Ni$3("g-anim-leave-auto-height"),Si$3("g-anim-enter-auto-height"),Zi$3(1,"footer-subscription-block",26),bb(2,"async"),_g$1("userSubscribed",function(){Rd$2(t);let i=NT();return kd$2(i.handleUserSubscribed())}),kl$2()();}if(e&2){let t=NT();AE(),Ig$1("userEmail",_b(2,1,t.email));}}function Rh(e,o){e&1&&Eg$1(0,"wechat-qr");}function Oh(e,o){if(e&1){let t=DT();Zi$3(0,"button",27),_g$1("click",function(){Rd$2(t);let i=NT();return kd$2(i.openCookieSettings())}),ib(1,"Cookie settings"),kl$2();}}var ai=class e{constructor(){this.analyticsService=D$l(L$3);this.articlesService=D$l(dt$1);this.lsService=D$l(xt$5);this.mailingRequestService=D$l(b$2);this.langService=D$l(v$7);this.lastDateService=D$l(F);this.userService=D$l(ve$6);this.destroyRef=D$l(st$b);this.osanoConsentService=D$l(t$l);this.articlesCount=4;this.currentYear=kt$3.format(kt$3.getDate(this.lastDateService.lastDate.getValue()),"YYYY");this.navUrl=O$a.DefaultNavigateUrl;this.isCnLang=this.langService.lang.pipe(ge$9(o=>o.id==="cn"));this.email=this.userService.user.pipe(ge$9(o=>o?.email||null));this.isUserSubscribed=fi$4(true);this.ArticlesEssentialsGroup=t;this.isCookieSettingsAvailable=this.osanoConsentService.available;let o=this.lsService.get(e.isUserSubscribedOnThisDeviceKey);this.isUserSubscribed.set(!!this.userService.user.getValue()?.email||o),o||this.userService.user.pipe(U$a(this.destroyRef),Tn$3(t=>!!t),Ru$2(t=>{let r=t?.email;return r?this.mailingRequestService.get(r).pipe(ge$9(i=>i.filter(n=>n.type==="newsletters").some(n=>n.subscription))):Ms$2(false)})).subscribe(t=>this.isUserSubscribed.set(t||o));}static{this.isUserSubscribedOnThisDeviceKey="isUserSubscribedOnThisDevice";}handleUserSubscribed(){this.isUserSubscribed.set(true),this.lsService.set(e.isUserSubscribedOnThisDeviceKey,true);}openArticle(o){this.analyticsService.send("footer_open_article",[o]);}clickNavSection(o,t=[]){this.analyticsService.send(o,t);}clickLogo(){this.analyticsService.send("footer_click_logo");}openCookieSettings(){this.osanoConsentService.openPreferences();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["main-footer"]],decls:44,vars:41,consts:[[1,"position-container"],[1,"col-1"],[1,"logo-container"],[1,"flex",3,"click","routerLink"],["src","/assets/angular2/img/logo/logo-grey-40.svg","alt","logo"],[1,"link-container"],[3,"showFlag","shortName"],[1,"font-size-12","line-height-14",3,"click","routerLink"],[1,"col-link-wrap"],[1,"link-wrap"],[1,"nav-link-wrap"],[1,"nav-link-col"],[1,"row"],[1,"col-link-head",3,"click","routerLink"],[1,"spinner-wrap"],[1,"nav-link"],[1,"g-anim-auto-height","footer-subscription-block"],[1,"disclaimer"],[1,"disclaimer-text"],[1,"copyright"],[1,"copyright-text"],["type","button",1,"cookie-sett
1006ings"],[3,"diameter"],[3,"click","routerLink"],[1,"d-flex","flex-a-c",3,"click","routerLink"],["width","16px","alt","",1,"m-l-sm",3,"src"],[3,"userSubscribed","userEmail"],["type","button",1,"cookie-settings",3,"click"]],template:function(t,r){t&1&&(Zi$3(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),_g$1("click",function(){return r.clickLogo()}),Eg$1(4,"img",4),kl$2()(),Zi$3(5,"div",5),Eg$1(6,"lang-select",6),Zi$3(7,"a",7),_g$1("click",function(){return r.clickNavSection("navbar_click_about")}),ib(8),bb(9,"translate"),kl$2()()(),Zi$3(10,"div",8)(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12)(15,"a",13),_g$1("click",function(){return r.clickNavSection("navbar_click_articles",["blog"])}),ib(16),bb(17,"translate"),kl$2()(),uT(18,Mh,2,1,"div",14),bb(19,"async"),bb(20,"async"),hT(21,Ph,4,4,"div",15,am),bb(23,"async"),kl$2(),Zi$3(24,"div",11)(25,"div",12)(26,"a",13),_g$1("click",function(){return r.clickNavSection("navbar_click_articles",["essentials"])}),ib(27),bb(28,"translate"),kl$2()(),hT(29,wh,5,5,"div",15,am),bb(31,"async"),kl$2()()(),uT(32,Dh,3,3,"div",16),kl$2(),uT(33,Rh,1,0,"wechat-qr"),bb(34,"async"),kl$2(),Zi$3(35,"div",17)(36,"p",18),ib(37),bb(38,"translate"),kl$2(),Zi$3(39,"div",19)(40,"p",20),ib(41),bb(42,"translate"),kl$2(),uT(43,Oh,2,0,"button",21),kl$2()()),t&2&&(AE(3),Ig$1("routerLink",Ib(36,Sh,r.navUrl)),AE(3),Ig$1("showFlag",true)("shortName",false),AE(),Ig$1("routerLink","about"),AE(),jl$2(" ",_b(9,15,"root.about")," "),AE(7),Ig$1("routerLink","blog"),AE(),jl$2(" ",_b(17,17,"articles.blog_title")," "),AE(2),dT(_b(20,21,_b(19,19,r.articlesService.articlesBlog).length===0&&r.articlesService.loading)?18:-1),AE(3),gT(_b(23,23,r.articlesService.articlesBlog).slice(0,r.articlesCount)),AE(5),Ig$1("routerLink",r.ArticlesEssentialsGroup.Research),AE(),jl$2(" ",_b(28,25,"nav.research_title")," "),AE(2),gT((_b(31,27,r.articlesService.articlesResearch)??vb(38,xh)).slice(0,r.articlesCount)),AE(3),dT(r.isUserSubscribed()?-1:32),AE(),dT(_b(34,29,r.isCnLang)?33:-1),AE(4),Ug$1(_b(38,31,"about.disclaimer")),AE(4),Ug$1(Mb(42,33,"about.copyright",Ib(39,Ah,r.currentYear))),AE(2),dT(r.isCookieSettingsAvailable?43:-1));},dependencies:[An$3,fe$8,oa,$t$4,J$b,b$5,a$6,ni,hn$2,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{background-color:var(--grey-20);padding:16px}@supports (padding-left: max(16px,env(safe-area-inset-left))){[_nghost-%COMP%]{padding-left:max(16px,env(safe-area-inset-left))}@media(max-width:767px){[_nghost-%COMP%]{padding:16px 8px}@supports (padding-left: max(8px,env(safe-area-inset-left))){[_nghost-%COMP%]{padding-left:max(8px,env(safe-area-inset-left))}}}}.position-container[_ngcontent-%COMP%]{display:flex}@media(max-width:767px){.position-container[_ngcontent-%COMP%]{flex-wrap:wrap}}.position-container[_ngcontent-%COMP%]   .col-1[_ngcontent-%COMP%]{margin-right:48px;flex-shrink:0}@media(max-width:767px){.position-container[_ngcontent-%COMP%]   .col-1[_ngcontent-%COMP%]{margin-right:24px}}@media(max-width:576px){.position-container[_ngcontent-%COMP%]   .col-1[_ngcontent-%COMP%]{margin-right:0}}.position-container[_ngcontent-%COMP%]   .link-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media(max-width:767px){.position-container[_ngcontent-%COMP%]   .link-container[_ngcontent-%COMP%]{margin-bottom:24px}}.position-container[_ngcontent-%COMP%]   wechat-qr[_ngcontent-%COMP%]{margin-left:auto;margin-right:140px}@media(max-width:1279px){.position-container[_ngcontent-%COMP%]   wechat-qr[_ngcontent-%COMP%]{display:none}}.position-container[_ngcontent-%COMP%]   lang-select[_ngcontent-%COMP%]{margin-bottom:16px;width:100%;max-width:169px}.position-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{margin-bottom:16px;width:fit-content;max-width:100%}.position-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:auto;height:32px;max-width:100%}.position-container[_ngcontent-%COMP%]   .link-wrap[_ngcontent-%COMP%]{line-height:14px;flex:1;padding-bottom:20px;max-width:680px}.position-container[_ngcontent-%COMP%]   .nav-link-wrap[_ngcontent-%COMP%]{display:flex;font-size:12px}.position-container[_ngcontent-%COMP%]   .nav-link-wrap[_ngcontent-%COMP%]:last-child{margin-bottom:-12px}.position-container[_ngcontent-%COMP%]   .nav-link-col[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;margin-right:48px}@media(max-width:767px){.position-container[_ngcontent-%COMP%]   .nav-link-col[_ngcontent-%COMP%]{margin-right:24px}}.position-container[_ngcontent-%COMP%]   .nav-link-col[_ngcontent-%COMP%]:last-child{margin-right:0}.position-container[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{width:fit-content;margin-bottom:8px}.position-container[_ngcontent-%COMP%]   .col-link-wrap[_ngcontent-%COMP%]{display:flex;margin-bottom:-20px;padding-right:40px}@media(max-width:1279px){.position-container[_ngcontent-%COMP%]   .col-link-wrap[_ngcontent-%COMP%]{padding-right:0;flex-direction:column;flex:1}}.position-container[_ngcontent-%COMP%]   .col-link-head[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:14px;line-height:16px;text-transform:uppercase;margin-bottom:8px}.position-container[_ngcontent-%COMP%]   .col-link[_ngcontent-%COMP%]{width:50%}.position-container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{width:100%;display:flex}.position-container[_ngcontent-%COMP%]   .footer-subscription-block[_ngcontent-%COMP%]{flex:1;max-width:480px;padding-right:16px}@media(max-width:1279px){.position-container[_ngcontent-%COMP%]   .footer-subscription-block[_ngcontent-%COMP%]{padding-right:130px}}@media(max-width:576px){.position-container[_ngcontent-%COMP%]   .footer-subscription-block[_ngcontent-%COMP%]{max-width:400px;padding-right:0;margin-bottom:20px}}.position-container[_ngcontent-%COMP%]   .link-wrap[_ngcontent-%COMP%]{margin-right:48px;flex:2}@media(max-width:1279px){.position-container[_ngcontent-%COMP%]   .link-wrap[_ngcontent-%COMP%]{margin-right:0;flex:1}}@media(max-width:576px){.position-container[_ngcontent-%COMP%], .position-container[_ngcontent-%COMP%]   .nav-link-wrap[_ngcontent-%COMP%]{flex-direction:column}.position-container[_ngcontent-%COMP%]   .link-wrap[_ngcontent-%COMP%]{max-width:100%;width:auto}.position-container[_ngcontent-%COMP%]   .nav-link-col[_ngcontent-%COMP%]:first-child{padding-bottom:24px;margin-right:0}.position-container[_ngcontent-%COMP%]   .nav-link-col[_ngcontent-%COMP%]:last-child{padding-bottom:8px}.position-container[_ngcontent-%COMP%]   .col-link-wrap[_ngcontent-%COMP%]{flex-direction:column}}.disclaimer[_ngcontent-%COMP%]{display:flex;margin-top:16px;gap:32px}@media(max-width:767px){.disclaimer[_ngcontent-%COMP%]{flex-direction:column;gap:16px;margin-bottom:48px}}.disclaimer-text[_ngcontent-%COMP%]{text-align:justify}.copyright[_ngcontent-%COMP%]{display:flex;align-items:flex-end;
1006gap:16px}.copyright-text[_ngcontent-%COMP%]{white-space:nowrap}.cookie-settings[_ngcontent-%COMP%]{padding:0;border:none;background:none;white-space:nowrap;cursor:pointer;text-decoration:underline}@media(hover:hover)and (pointer:fine){.cookie-settings[_ngcontent-%COMP%]:hover{color:var(--grey-70)}}.disclaimer-text[_ngcontent-%COMP%], .copyright-text[_ngcontent-%COMP%], .cookie-settings[_ngcontent-%COMP%]{color:var(--grey-50);font-size:10px;line-height:normal;margin:0}"]});}};var li=class e{constructor(){this.router=D$l(F$4);this.localStorageService=D$l(xt$5);this.subscription=new W$f;let o=new rr$4(false),t=new rr$4(0),r=new de$c;this.loading=o.pipe(ge$9(i=>{let n=this.localStorageService.get(e.DisableLoadingBarKey);return i&&!n}),wu$2(e.EnableLoadingAfterMs),Tu$2()),this.progress=t,this.subscription.add(this.router.events.subscribe(i=>{if(i instanceof re$7){r.next(),o.next(true),t.next(0);let n=null,g=setTimeout(()=>{n=setInterval(()=>{let m=t.getValue()+1;m<95&&t.next(m);},25);},e.EnableLoadingAfterMs);t.pipe(Tn$3(m=>m>=100),ku$2(r)).subscribe(()=>{o.next(false),clearTimeout(g),n&&clearInterval(n);});}(i instanceof P$8||i instanceof $$3||i instanceof de$4)&&t.next(100);}));}static{this.EnableLoadingAfterMs=1500;}static{this.DisableLoadingBarKey="disable_loading_bar";}static getProgressFromRouteEvent(o){return o instanceof re$7?0:o instanceof P$8||o instanceof $$3||o instanceof de$4?100:null}ngOnDestroy(){this.subscription.unsubscribe();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var si=class e{constructor(){this.progress=VV();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["loading-bar"]],inputs:{progress:[1,"progress"]},decls:1,vars:2,consts:[[1,"progress"]],template:function(t,r){t&1&&Dg$1(0,"div",0),t&2&&Lg$1("width",r.progress(),"%");},styles:['[_nghost-%COMP%]{display:flex;width:100%;height:4px}[_nghost-%COMP%]   .progress[_ngcontent-%COMP%]{left:0;top:0;position:relative;overflow:hidden;height:100%;background:var(--yellow-50);transition:.5s}[_nghost-%COMP%]   .progress[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:50%;height:100%;background:linear-gradient(90deg,transparent,var(--yellow-70),transparent);transform:skew(-10deg) translate(-100%);animation:_ngcontent-%COMP%_loading 1s infinite}@keyframes _ngcontent-%COMP%_loading{0%{transform:skew(-10deg) translate(-100%)}to{transform:skew(-10deg) translate(200%)}}']});}};function Eh(e,o){if(e&1){let t=DT();Zi$3(0,"a",9),_g$1("click",function(){Rd$2(t);let i=NT(),n=db(0);return kd$2(i.analyticsService.send(i.events.action,[n]))}),Eg$1(1,"platform-icon",10),ib(2),bb(3,"translate"),kl$2();}if(e&2){let t=o,r=NT();Ig$1("href",t.link,qp$2),AE(),Ig$1("value",r.Platform.steam)("color",r.PlatformIconColor.white),AE(),jl$2(" ",_b(3,4,t.text)," ");}}function kh(e,o){e&1&&Tg$1(0);}function Th(e,o){e&1&&Tg$1(0);}function Nh(e,o){if(e&1){let t=DT();Zi$3(0,"a",12),_g$1("click",function(){Rd$2(t);let i=NT(2),n=db(0);return kd$2(i.analyticsService.send(i.events.more,[n]))}),ib(1),bb(2,"translate"),kl$2();}if(e&2){let t=o;Ig$1("href",t.link,qp$2),AE(),Ug$1(_b(2,2,t.text));}}function Bh(e,o){if(e&1&&uT(0,Nh,3,4,"a",11),e&2){let t,r=NT();dT((t=r.data().moreBtn)?0:-1,t);}}var ci=class e{constructor(){this.data=VV();this.close=jV();this.PlatformIconColor=v$4;this.Platform=Oe$6;this.analyticsService=D$l(L$3);this.events={action:"notify_action",more:"notify_more",close:"notify_close"};}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["header-notify-info"]],inputs:{data:[1,"data"]},outputs:{close:"close"},decls:13,vars:7,consts:[["more",""],[1,"wrap"],["target","_blank",1,"action-btn",3,"href"],[1,"text-wrap"],[1,"text","g-header-notify-text",3,"customInnerHtml"],[1,"mobile"],[4,"ngTemplateOutlet"],[1,"desk"],[1,"g-icon-close-white","icon-close",3,"click"],["target","_blank",1,"action-btn",3,"click","href"],[1,"icon",3,"value","color"],["target","_blank",1,"more-btn",3,"href"],["target","_blank",1,"more-btn",3,"click","href"]],template:function(t,r){if(t&1){let i=DT();Zg$1(0),Zi$3(1,"div",1),uT(2,Eh,4,6,"a",2),Zi$3(3,"div",3),Eg$1(4,"div",4),bb(5,"translate"),Zi$3(6,"div",5),cg$1(7,kh,1,0,"ng-container",6),kl$2()(),Zi$3(8,"div",7),cg$1(9,Th,1,0,"ng-container",6),kl$2()(),Zi$3(10,"i",8),_g$1("click",function(){Rd$2(i);let g=db(0);
1006return r.analyticsService.send(r.events.close,[g]),kd$2(r.close.emit())}),kl$2(),cg$1(11,Bh,1,1,"ng-template",null,0,Ab);}if(t&2){let i,n=FT(12);ub(r.data().value),AE(2),dT((i=r.data().actionBtn)?2:-1,i),AE(2),Ig$1("customInnerHtml",_b(5,5,r.data().text)),AE(3),Ig$1("ngTemplateOutlet",n),AE(2),Ig$1("ngTemplateOutlet",n);}},dependencies:[fe$8,h$4,dn$3,r$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;background:var(--blue-70);color:var(--white);font-weight:400;font-size:14px;padding:8px 12px;border-radius:8px;min-height:32px}@media(max-width:767px){[_nghost-%COMP%]{justify-content:flex-start}}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;padding-right:40px}[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%]   .action-btn[_ngcontent-%COMP%]{display:flex;align-items:center;background:var(--red-50);color:var(--white);font-size:14px;text-transform:uppercase;padding:0 8px;border-radius:8px;font-family:Montserrat;font-weight:900;font-style:italic;border:1px solid var(--red-40);box-shadow:var(--shadow-m)}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .action-btn[_ngcontent-%COMP%]:hover{border-color:var(--red-50)}}[_nghost-%COMP%]   .text-wrap[_ngcontent-%COMP%]{padding:0 4px;flex:1}@media(max-width:576px){[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{margin-bottom:8px}}@media(max-width:576px){[_nghost-%COMP%]   .desk[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .mobile[_ngcontent-%COMP%]{display:none}@media(max-width:576px){[_nghost-%COMP%]   .mobile[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:4px}[_nghost-%COMP%]   .more-btn[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 8px;background:var(--white);color:var(--black);font-weight:500;font-size:14px;text-transform:uppercase;border-radius:8px;height:20px;display:flex;align-items:center}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .more-btn[_ngcontent-%COMP%]:hover{background:var(--grey-30)}}[_nghost-%COMP%]   .icon-close[_ngcontent-%COMP%]{width:24px;height:24px;cursor:pointer;position:absolute;right:18px;top:50%;transform:translateY(-50%)}"]});}};function Ih(e,o){e&1&&Tg$1(0);}function Lh(e,o){e&1&&Tg$1(0);}function Uh(e,o){e&1&&(qd$2(),Zi$3(0,"svg",7),Eg$1(1,"path",8),kl$2());}function Gh(e,o){if(e&1){let t=DT();Zi$3(0,"a",10),_g$1("click",function(){Rd$2(t);let i=NT(2);return kd$2(i.analyticsService.send(i.events.more))}),ib(1),bb(2,"translate"),kl$2();}if(e&2){let t=o;Ig$1("href",t.link,qp$2),AE(),Ug$1(_b(2,2,t.text));}}function Hh(e,o){if(e&1&&uT(0,Gh,3,4,"a",9),e&2){let t,r=NT();dT((t=r.data().moreBtn)?0:-1,t);}}var pi=class e{constructor(){this.data=VV();this.close=jV();this.analyticsService=D$l(L$3);this.events={action:"notify_action",more:"notify_more",close:"notify_close"};}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["header-notify-warn"]],inputs:{data:[1,"data"]},outputs:{close:"close"},decls:11,vars:5,consts:[["warnIcon",""],["more",""],[1,"wrap"],[1,"d-flex"],[4,"ngTemplateOutlet"],[1,"text","g-header-notify-text",3,"customInnerHtml"],[1,"g-icon-close-white","icon-close",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.39097 2.4416C7.09717 1.18613 8.90374 1.18613 9.60902 2.4416L14.7601 11.5991C15.4525 12.8306 14.5635 14.35 13.152 14.35H2.84891C1.43651 14.35 0.547531 12.8306 1.23988 11.5991L6.39097 2.4416ZM8.92313 11.5815C8.92313 11.8264 8.82587 12.0612 8.65275 12.2343C8.47963 12.4074 8.24482 12.5047 7.99999 12.5047C7.75516 12.5047 7.52036 12.4074 7.34724 12.2343C7.17412 12.0612 7.07686 11.8264 7.07686 11.5815C7.07686 11.3367 7.17412 11.1019 7.34724 10.9288C7.52036 10.7557 7.75516 10.6584 7.99999 10.6584C8.24482 10.6584 8.47963 10.7557 8.65275 10.9288C8.82587 11.1019 8.92313 11.3367 8.92313 11.5815ZM7.99999 4.19648C7.75516 4.19648 7.52036 4.29373 7.34724 4.46686C7.17412 4.63998 7.07686 4.87478 7.07686 5.11961V7.88901C7.07686 8.13384 7.17412 8.36864 7.34724 8.54177C7.52036 8.71489 7.75516 8.81215 7.99999 8.81215C8.24482 8.81215 8.47963 8.71489 8.65275 8.54177C8.82587 8.36864 8.92313 8.13384 8.92313 7.88901V5.11961C8.92313 4.87478 8.82587 4.63998 8.65275 4.46686C8.47963 4.29373 8.24482 4.19648 7.99999 4.19648Z","fill","white"],["target","_blank",1,"more-btn",3,"href"],["target","_blank",1,"more-btn",3,"click","href"]],template:function(t,r){if(t&1&&(Zi$3(0,"div",2)(1,"div",3),cg$1(2,Ih,1,0,"ng-container",4),Eg$1(3,"div",5),bb(4,"translate"),kl$2(),cg$1(5,Lh,1,0,"ng-container",4),kl$2(),Zi$3(6,"i",6),_g$1("click",function(){return r.close.emit()}),kl$2(),cg$1(7,Uh,2,0,"ng-template",null,0,Ab)(9,Hh,1,1,"ng-template",null,1,Ab)),t&2){let i=FT(8),n=FT(10);AE(2),Ig$1("ngTemplateOutlet",i),AE(),Ig$1("customInnerHtml",_b(4,3,r.data().text)),AE(2),Ig$1("ngTemplateOutlet",n);}},dependencies:[dn$3,fe$8,r$8,he$8],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;background:var(--orange);color:var(--white);font-weight:400;font-size:14px;padding:8px 12px;border-radius:8px;min-height:32px}@media(max-width:767px){[_nghost-%COMP%]{justify-content:flex-start}}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:40px}@media(max-width:767px){[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding:0 8px}[_nghost-%COMP%]   .icon-close[_ngcontent-%COMP%]{width:24px;height:24px;top:50%;right:18px;transform:translateY(-50%)}[_nghost-%COMP%]   .more-btn[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 8px;background:var(--white);color:var(--black);font-weight:500;font-size:14px;text-transform:uppercase;border-radius:8px;height:20px;display:flex;align-items:center}@media(hover:hover)and (pointer:fine){[_nghost-%COMP%]   .more-btn[_ngcontent-%COMP%]:hover{background:var(--grey-30)}}@media(max-width:767px){[_nghost-%COMP%]   .more-btn[_ngcontent-%COMP%]{align-self:flex-start;margin-left:24px;margin-top:12px}}"]});}};var mi=class e{constructor(){this.message=VV("");this.startTime=VV();this.close=jV();this.translateParams=Pb(()=>{let o=this.startTime();return D$m({terms_of_service_link:t$g,privacy_policy_link:o$e},o?{time:kt$3.format(o,"MMM D, HH:mm",false)}:{})});}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["header-notify-maintenance"]],inputs:{message:[1,"message"],startTime:[1,"startTime"]},outputs:{close:"close"},decls:6,vars:4,consts:[[1,"wrap"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none",1,"icon-warn"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.39097 2.4416C7.09717 1.18613 8.90374 1.18613 9.60902 2.4416L14.7601 11.5991C15.4525 12.8306 14.5635 14.35 13.152 14.35H2.84891C1.43651 14.35 0.547531 12.8306 1.23988 11.5991L6.39097 2.4416ZM8.92313 11.5815C8.92313 11.8264 8.82587 12.0612 8.65275 12.2343C8.47963 12.4074 8.24482 12.5047 7.99999 12.5047C7.75516 12.5047 7.52036 12.4074 7.34724 12.2343C7.17412 12.0612 7.07686 11.8264 7.07686 11.5815C7.07686 11.3367 7.17412 11.1019 7.34724 10.9288C7.52036 10.7557 7.75516 10.6584 7.99999 10.6584C8.24482 10.6584 8.47963 10.7557 8.65275 10.9288C8.82587 11.1019 8.92313 11.3367 8.92313 11.5815ZM7.99999 4.19648C7.75516 4.19648 7.52036 4.29373 7.34724 4.46686C7.17412 4.63998 7.07686 4.87478 7.07686 5.11961V7.88901C7.07686 8.13384 7.17412 8.36864 7.34724 8.54177C7.52036 8.71489 7.75516 8.81215 7.99999 8.81215C8.24482 8.81215 8.47963 8.71489 8.65275 8.54177C8.82587 8.36864 8.92313 8.13384 8.92313 7.88901V5.11961C8.92313 4.87478 8.82587 4.63998 8.65275 4.46686C8.47963 4.29373 8.24482 4.19648 7.99999 4.19648Z","fill","white"],[1,"text",3,"customInnerHtml"],[1,"g-icon-close-white","icon-close",3,"click"]],template:function(t,r){t&1&&(Zi$3(0,"div",0),qd$2(),Zi$3(1,"svg",1),Eg$1(2,"path",2),kl$2(),Wd$2(),Eg$1(3,"div",3),bb(4,"translate"),kl$2(),Zi$3(5,"i",4),_g$1("click",function(){return r.close.emit()}),kl$2()),t&2&&(AE(3),Ig$1("customInnerHtml",Mb(4,1,r.message(),r.translateParams())));},dependencies:[fe$8,r$8,he$8],styles:["[_nghost-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;background:var(--orange);color:var(--white);font-weight:400;font-size:14px;padding:8px 12px;border-radius:8px}@media(max-width:767px){[_nghost-%COMP%]{justify-content:flex-start}}[_nghost-%COMP%]   .wrap[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding-right:40px}[_nghost-%COMP%]   .icon-warn[_ngcontent-%COMP%]{flex-shrink:0;margin-top:2px}[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{padding:0 8px}[_nghost-%COMP%]   .text[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%]   .icon-close[_ngcontent-%COMP%]{width:24px;height:24px;
1006cursor:pointer;position:absolute;top:50%;right:18px;transform:translateY(-50%)}"]});}};var di=(r=>(r.info="info",r.warn="warn",r.maintenance="maintenance",r))(di||{});var ya={message:"headerNotify.maintenances",startTime:"2026-07-11T07:00:00Z",endTime:"2026-07-11T07:15:00Z"};var Do=class e{constructor(){this.httpClient=new Ue$7(D$l(Z$6));}get(){return this.httpClient.get(`${C$8.baseUrl}/api/v2/header-notifications`).pipe(ge$9(o=>o.notifications??[]))}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var Ro=class e{constructor(){this.activeNotifies=fi$4([]);this.notifies=this.activeNotifies.asReadonly();this.notify=Pb(()=>this.activeNotifies()[0]??null);this.infoData=fi$4(null);this.warnData=fi$4(null);this.maintenanceData=fi$4(null);this.data=Pb(()=>({info:this.infoData(),warn:this.warnData(),maintenance:this.maintenanceData()}));this.apiNotifications=fi$4([]);this.apiActive=Pb(()=>{let o=this.devFeatureToggleService.featuresSignal.headerNotifications();return this.apiNotifications().filter(t=>this.isApiNotificationVisible(t,o))});this.localStorageService=D$l(xt$5);this.resource=D$l(Do);this.router=D$l(F$4);this.devFeatureToggleService=D$l(D$c);this.checkTimedNotify("maintenance",ya,this.maintenanceData),this.loadFromApi(),this.router.events.pipe(Tn$3(o=>o instanceof P$8)).subscribe(()=>{this.initNotify();});}static{this.NotifyListKey="notify";}initNotify(){}loadFromApi(){this.resource.get().subscribe(o=>{this.apiNotifications.set(o);});}isApiNotificationVisible(o,t){if((this.localStorageService.get(e.NotifyListKey)||[]).includes(this.apiDismissKey(o)))return  false;let i=new Date;return !(o.end_time&&i>=new Date(o.end_time)||!t&&o.start_time&&i<new Date(o.start_time))}closeApiNotification(o){let t=this.localStorageService.get(e.NotifyListKey)||[];t.push(this.apiDismissKey(o)),this.localStorageService.set(e.NotifyListKey,t),this.apiNotifications.update(r=>r.filter(i=>i.id!==o.id));}apiDismissKey(o){return `api_${o.id}_${o.start_time??""}_${o.end_time??""}`}checkTimedNotify(o,t,r){let{message:i,startTime:n,endTime:g}=t;if(!i||(this.localStorageService.get(e.NotifyListKey)||[]).includes(`${o}_${n}`))return;let B=new Date;B<new Date(n)||g&&B>=new Date(g)||(r.set({message:i,startTime:n}),this.addNotify(o));}setInfo(o){this.infoData.set(o),this.addNotify("info");}setWarn(o){this.warnData.set(o),this.addNotify("warn");}close(){}closeWarn(){let o=this.localStorageService.get(e.NotifyListKey)||[];o.push("warn"),this.localStorageService.set(e.NotifyListKey,o),this.removeNotify("warn");}closeMaintenance(){this.closeTimedNotify("maintenance",ya.startTime);}closeTimedNotify(o,t){let r=this.localStorageService.get(e.NotifyListKey)||[];r.push(`${o}_${t}`),this.localStorageService.set(e.NotifyListKey,r),this.removeNotify(o);}addNotify(o){this.activeNotifies.update(t=>t.includes(o)?t:[...t,o]);}removeNotify(o){this.activeNotifies.update(t=>t.filter(r=>r!==o));}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275prov=G$f({token:e,factory:e.\u0275fac,providedIn:"root"});}};var ba=(t=>(t.warn="warn",t.info="",t))(ba||{});var lm=(e,o)=>({text:e,value:o}),Vh=(e,o)=>o.id;function zh(e,o){if(e&1&&(Eg$1(0,"loading-bar",8),bb(1,"async")),e&2){let t=NT(2);Ig$1("progress",_b(1,1,t.loadingBarService.progress));}}function Wh(e,o){if(e&1&&(Eg$1(0,"main-header",7),uT(1,zh,2,3,"loading-bar",8),bb(2,"async")),e&2){let t=NT();Pg$1("header-index",t.loginDialogService.isModalOpened()),AE(),dT(_b(2,3,t.loadingBarService.loading)?1:-1);}}function jh(e,o){if(e&1){let t=DT();Zi$3(0,"div",3),Ni$3("layout-notify-leave"),Zi$3(1,"header-notify-info",9),_g$1("close",function(){Rd$2(t);let i=NT();return kd$2(i.headerNotifyService.close())}),kl$2()();}if(e&2){let t=NT();AE(),Ig$1("data",t.headerNotifyService.data()[t.HeaderNotify.info]);}}function $h(e,o){if(e&1){let t=DT();Zi$3(0,"div",3),Ni$3("layout-notify-leave"),Zi$3(1,"header-notify-warn",9),_g$1("close",function(){Rd$2(t);let i=NT();return kd$2(i.headerNotifyService.closeWarn())}),kl$2()();}if(e&2){let t=NT();AE(),Ig$1("data",t.headerNotifyService.data()[t.HeaderNotify.warn]);}}function qh(e,o){if(e&1){let t=DT();Zi$3(0,"div",3),Ni$3("layout-notify-leave"),Zi$3(1,"header-notify-maintenance",10),_g$1("close",function(){Rd$2(t);let i=NT();return kd$2(i.headerNotifyService.closeMaintenance())}),kl$2()();}if(e&2){let t,r,i=NT();AE(),Ig$1("message",(t=i.headerNotifyService.data()[i.HeaderNotify.maintenance])==null?null:t.message)("startTime",(r=i.headerNotifyService.data()[i.HeaderNotify.maintenance])==null?null:r.startTime);}}function Kh(e,o){if(e&1){let t=DT();Zi$3(0,"header-notify-info",9),_g$1("close",function(){Rd$2(t);let i=NT().$implicit,n=NT();return kd$2(n.headerNotifyService.closeApiNotification(i))}),kl$2();}if(e&2){let t=NT().$implicit,r=NT();Ig$1("data",Eb(1,lm,t.message_key,r.HeaderNotifyValue.info));}}function Xh(e,o){if(e&1){let t=DT();Zi$3(0,"header-notify-warn",9),_g$1("close",function(){Rd$2(t);let i=NT().$implicit,n=NT();return kd$2(n.headerNotifyService.closeApiNotification(i))}),kl$2();}if(e&2){let t=NT().$implicit,r=NT();Ig$1("data",Eb(1,lm,t.message_key,r.HeaderNotifyValue.warn));}}function Yh(e,o){if(e&1&&(Zi$3(0,"div",3),Ni$3("layout-notify-leave"),uT(1,Kh,1,4,"header-notify-info",11)(2,Xh,1,4,"header-notify-warn",11),kl$2()),e&2){let t=o.$implicit;AE(),dT(t.style==="info"?1:2);}}var ui=class e{constructor(){this.layoutService=D$l(A$9);this.loginDialogService=D$l(Dt$2);this.centrifugeService=D$l(ne$8);this.loadingBarService=D$l(li);this.headerNotifyService=D$l(Ro);this.HeaderNotify=di;this.HeaderNotifyValue=ba;this.centrifugeService.connect();}static{this.\u0275fac=function(t){return new(t||e)};}static{this.\u0275cmp=sw({type:e,selectors:[["layout"]],decls:15,vars:6,consts:[[1,"root-container"],[1,"bottom-menu"],[1,"notify-wrap"],[1,"n
1006otify","g-anim-auto-height"],[1,"sprite-preload"],[1,"g-flag","us"],[1,"g-flag-small","small-us"],["id","root-header"],[1,"loading-bar",3,"progress"],[3,"close","data"],[3,"close","message","startTime"],[3,"data"]],template:function(t,r){if(t&1&&(uT(0,Wh,3,5),bb(1,"async"),Zi$3(2,"div",0),Eg$1(3,"router-outlet"),kl$2(),Eg$1(4,"bottom-menu",1)(5,"main-footer"),Zi$3(6,"div",2),uT(7,jh,2,1,"div",3),uT(8,$h,2,1,"div",3),uT(9,qh,2,2,"div",3),hT(10,Yh,3,1,"div",3,Vh),kl$2(),Zi$3(12,"div",4),Eg$1(13,"div",5)(14,"div",6),kl$2()),t&2){dT(_b(1,4,r.layoutService.isMainHeaderActive)?0:-1);let i=r.headerNotifyService.notifies();AE(7),dT(i.includes(r.HeaderNotify.info)?7:-1),AE(),dT(i.includes(r.HeaderNotify.warn)?8:-1),AE(),dT(i.includes(r.HeaderNotify.maintenance)?9:-1),AE(),gT(r.headerNotifyService.apiActive());}},dependencies:[An$3,ii,te$3,ai,br$2,si,ci,pi,mi,hn$2],styles:["[_ngcontent-%COMP%]:root{--white: #fff;--black: #000;--static-white: #fff;--static-black: #000;--grey-20: #F9F9FA;--grey-30: #E9EDEF;--grey-40: #DADFE1;--static-grey-40: #DADFE1;--grey-50: #A7B2B9;--static-grey-50: #A7B2B9;--grey-70: #506775;--grey-80: #475156;--static-grey-80: #475156;--grey-90: #3F3F46;--grey-100: #273238;--red-30: #FDEAEA;--red-40: #FF7485;--red-50: #FA354D;--yellow-30: #FFF8CF;--yellow-40: #FCE778;--yellow-50: #FEDA0F;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #E6FEE6;--green-40: #D4FABE;--green-50: #99F199;--green-70: #34C834;--green-90: #26A542;--blue-30: #EAF2FD;--blue-35: #4CE5FF;--blue-40: #D8E8FF;--blue-50: #B5D4FF;--blue-60: #6BB6FC;--blue-70: #2B98FC;--blue-70-rgb: 38, 104, 232;--blue-80: #2668E8;--blue-90: #1A54C3;--violete-20: #FAEDFF;--violete-30: #F5D9FF;--violete-60: #B259D2;--violete-80: #7B0EA2;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .15);--chart-grid-weekend-color: #F2f5f7;--cell-heat-blue-rgb: 189, 212, 255;--cell-heat-orange-rgb: 254, 217, 161;--cell-heat-green-primary-rgb: 184, 229, 125;--cell-heat-green-secondary-rgb: 139, 238, 179;--cell-heat-violet-rgb: 212, 186, 255;--cell-heat-red-rgb: 255, 135, 153}[_ngcontent-%COMP%]:root[theme=dark]{--white: #0E1113;--black: #C5C7CC;--static-white: #F2F3F5;--grey-20: #12171A;--grey-30: #1A2024;--grey-40: #1c2228;--grey-50: #2a333b;--grey-70: #5f6a72;--grey-80: #8a949b;--grey-90: #b0b6bb;--grey-100: #1b1f23;--red-30: #3A151A;--red-40: #FF6B7C;--red-50: #FF3B52;--yellow-30: #3A320F;--yellow-40: #EAD25F;--yellow-50: #FFD400;--yellow-60: #FAC81B;--yellow-70: #E4B101;--green-30: #133A1E;--green-40: #1E5A2E;--green-50: #2E6E2E;--green-70: #34C834;--green-90: #26A542;--blue-30: #0F1C2E;--blue-35: #4CE5FF;--blue-40: #162A44;--blue-50: #1F3B66;--blue-60: #3D7DDC;--blue-70: #4B9BFF;--blue-70-rgb: 75, 155, 255;--blue-80: #5C8DFF;--blue-90: #8CB2FF;--violete-20: #2A1633;--violete-30: #3A1E4A;--violete-60: #B259D2;--violete-80: #D38CFF;--orange: #FA7C1B;--graph-1-violet: #C642F4;--graph-1-violet-15: rgba(198, 66, 244, .25);--chart-grid-weekend-color: #191F23;
1006--cell-heat-blue-rgb: 31, 59, 102;--cell-heat-orange-rgb: 92, 58, 18;--cell-heat-green-primary-rgb: 30, 90, 46;--cell-heat-green-secondary-rgb: 22, 84, 58;--cell-heat-violet-rgb: 58, 30, 74;--cell-heat-red-rgb: 90, 28, 37}.no-value[_ngcontent-%COMP%]{color:var(--text-muted)}.chart-hidden[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]{width:100%;overflow:visible;min-height:100vh;display:flex;flex-direction:column}[_nghost-%COMP%]   .root-container[_ngcontent-%COMP%]{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-top:var(--root-header-height);flex:1;display:flex;flex-direction:column}[_nghost-%COMP%]   #root-header[_ngcontent-%COMP%]{z-index:12;position:fixed;padding-right:var(--disable-scroll-padding-right);top:0;left:0;right:0}[_nghost-%COMP%]   #root-header.header-index[_ngcontent-%COMP%]{z-index:12!important}[_nghost-%COMP%]   .bottom-menu[_ngcontent-%COMP%]{margin-right:var(--disable-scroll-padding-right)}[_nghost-%COMP%]   .sprite-preload[_ngcontent-%COMP%]{visibility:hidden;z-index:-1;position:absolute}[_nghost-%COMP%]   .loading-bar[_ngcontent-%COMP%]{position:fixed;top:var(--root-header-height);z-index:11}[_nghost-%COMP%]   .notify-wrap[_ngcontent-%COMP%]{position:fixed;padding:8px calc(16px + var(--disable-scroll-padding-right)) 8px 16px;left:0;right:0;z-index:10;width:100%;bottom:calc(4px + env(safe-area-inset-bottom) + var(--bottom-alerts-offset, 0px));transition:bottom .3s ease;display:flex;flex-direction:column;align-items:center;pointer-events:none}[_nghost-%COMP%]   .notify[_ngcontent-%COMP%]{pointer-events:all;position:relative;width:100%;max-width:800px;margin-bottom:8px;box-shadow:var(--shadow-m);transition:margin-bottom .3s ease}[_nghost-%COMP%]   .notify[_ngcontent-%COMP%]:last-child{margin-bottom:0}[_nghost-%COMP%]   .layout-notify-leave[_ngcontent-%COMP%]{animation:g-anim-auto-height-fade-leave .3s ease both;margin-bottom:0!important}"]});}};var Y=(e,o)=>{let t=D$l(ve$6),r=D$l(F$4);return (!!t.user.getValue()?Ms$2(true):Lm$2("unauthorized")).pipe(xs$1(g=>{let m=r.getCurrentNavigation().finalUrl.toString();return r.navigate(["/login"],{queryParams:{stateTo:m}}),Lm$2("unauthorized")}))};var Qh={meta:{title:"articleConsultationAndSupport.title"}},sm={path:t$6,data:Qh,loadComponent:()=>import('./chunk-CILwC8wf.js').then(e=>e.ArticleConsultationAndSupportComponent)};var Zh={meta:{title:"articleAccessType.title"}},cm={path:c$3,data:Zh,loadComponent:()=>import('./chunk-DZNG46Hj.js').then(e=>e.ArticleAccessTypeComponent)};var Jh={meta:{title:s$8.title,description:s$8.description}},pm={path:e$4,data:Jh,loadComponent:()=>import('./chunk-Du-yBhYZ.js').then(e=>e.ArticleMarketSegmentCompareDashboardComponent)};var ef={meta:{title:l$4.title,description:l$4.description}},mm={path:t$4,data:ef,loadComponent:()=>import('./chunk-CCjuaUUf.js').then(e=>e.ArticleMarketSegmentDashboardComponent)};var dm={path:"",pathMatch:"full",data:{meta:{title:"nav.tools_description_title"}},loadComponent:()=>import('./chunk-B6YASrtj.js').then(e=>e.ToolDescriptionsBlockComponent)};var tf={meta:{title:H$2.title,description:H$2.description}},um={path:zt,data:tf,loadComponent:()=>import('./chunk-BOTjKgAn.js').then(e=>e.ArticleSettingsClassificationComponent)};var of={meta:{title:O$3.title,description:O$3.description}},gm={path:i$4,data:of,loadComponent:()=>import('./chunk-CCQwX0lu.js').then(e=>e.ArticleGenreClassificationComponent)};var rf={meta:{title:_e$1.title,description:_e$1.description}},hm={path:Mr$1,data:rf,loadComponent:()=>import('./chunk-Cg4hMwQF.js').then(e=>e.ArticleSearchAdsIntComponent)};var nf={meta:{title:V$2.title,description:V$2.description}},fm={path:It$1,data:nf,loadComponent:()=>import('./chunk-Dxg02raU.js').then(e=>e.ArticleFeaturingComponent)};
1006var af={meta:{title:F$1.title,description:F$1.description}},vm={path:Mt,data:af,loadComponent:()=>import('./chunk-DK3MCfKF.js').then(e=>e.ArticleSimilarityAnalysisComponent)};var lf={meta:{title:Me$1.title,description:Me$1.description}},Cm={path:Hr$1,data:lf,loadComponent:()=>import('./chunk-Ba_FiQ1I.js').then(e=>e.ArticleAdvancedSearchComponent)};var sf={meta:{title:ge$2.title,description:ge$2.description}},ym={path:kr$1,data:sf,loadComponent:()=>import('./chunk-DeE2fvpi.js').then(e=>e.ArticleIpUsageIntelligenceComponent)};var cf={meta:{title:fe$2.title,description:fe$2.description}},bm={path:br$1,data:cf,loadComponent:()=>import('./chunk-CjJLx7i5.js').then(e=>e.ArticleGenderSplitComponent)};var pf={meta:{title:Ue$1.title,description:Ue$1.description}},_m={path:Fr,data:pf,loadComponent:()=>import('./chunk-BgspBcDX.js').then(e=>e.ArticleSemanticCoreComponent)};var mf={meta:{title:he$3.title,description:he$3.description}},Sm={path:Ur$1,data:mf,loadComponent:()=>import('./chunk-CCyyH1sQ.js').then(e=>e.ArticleAsoIntelligenceToolkitComponent)};var df={meta:{title:Ie$1.title,description:Ie$1.description}},xm={path:Br$1,data:df,loadComponent:()=>import('./chunk-CPs_iAHg.js').then(e=>e.ArticleMarketSegmentAnalysisComponent)};var uf={meta:{title:"articleAdIntelligence.title",description:"articleAdIntelligence.text_1"}},Am={path:qr$1,data:uf,loadComponent:()=>import('./chunk-BvEmAyHW.js').then(e=>e.ArticleAdIntelligenceComponent)};var gf={meta:{title:Ae$1.title,description:Ae$1.description}},Mm={path:Er$1,data:gf,loadComponent:()=>import('./chunk-DVVI4gMa.js').then(e=>e.ArticleNotificationsComponent)};var hf={meta:{title:He$1.title,description:He$1.description}},Pm={path:Wr$1,data:hf,loadComponent:()=>import('./chunk-BK1UK5Zn.js').then(e=>e.ArticleAppTransfersComponent)};var ff={meta:{title:Ne$2.title,description:Ne$2.description}},Fm={path:Kr$1,data:ff,loadComponent:()=>import('./chunk-ClELV0_K.js').then(e=>e.ArticleSimilarityGraphComponent)};var vf={meta:{title:We$1.title,description:We$1.description}},wm={path:jr$1,data:vf,loadComponent:()=>import('./chunk-Cmsb0maC.js').then(e=>e.ArticleSoftLaunchesComponent)};var Cf={meta:{title:Ze$1.title,description:Ze$1.description}},Dm={path:Zr$1,data:Cf,loadComponent:()=>import('./chunk-BrpD-s7n.js').then(e=>e.ArticleUserBehaviorMetricsComponent)};var yf={meta:{title:"pricing.dau_mau_title",description:"articleUserBehaviorMetrics.text_1"}},Rm={path:t$9,data:yf,loadComponent:()=>import('./chunk-uu6V7Y4I.js').then(e=>e.ArticleDauMauComponent)};var bf={meta:{title:ye$2.title,description:ye$2.description}},Om={path:wr$1,data:bf,loadComponent:()=>import('./chunk-BuPAEMoj.js').then(e=>e.ArticleSdkComponent)};var _f={meta:{title:Ee$1.title,description:Ee$1.description}},Em={path:Or$1,data:_f,loadComponent:()=>import('./chunk-Cl03vcAx.js').then(e=>e.ArticleApiComponent)};var Sf={meta:{title:pe$2.title,description:pe$2.description}},km={path:Sr$1,data:Sf,loadComponent:()=>import('./chunk-CahG5lN-.js').then(e=>e.ArticleMonetizationIntelligenceComponent)};var xf={meta:{title:ze$1.title,description:ze$1.description}},Tm={path:Nr,data:xf,loadComponent:()=>import('./chunk-BY17sUcn.js').then(e=>e.ArticleSuccessMeterComponent)};var Af={meta:{title:Se$2.title,description:Se$2.description}},Nm={path:Ir$1,data:Af,loadComponent:()=>import('./chunk-BI6U7Prq.js').then(e=>e.ArticleLiveOpsComponent)};var Mf={meta:{title:P$2.title,description:P$2.description}},Bm={path:$t,data:Mf,loadComponent:()=>import('./chunk-o4V95V_x.js').then(e=>e.ArticleIndustryContactsComponent)};var Pf={meta:{title:gt.title,description:gt.description}},Im={path:$r$1,data:Pf,loadComponent:()=>import('./chunk-C946JbWV.js').then(e=>e.ArticleAppPageHistoryComponent)};var Ff={meta:{title:xe$1.title,description:xe$1.description}},Lm={path:Cr$1,data:Ff,loadComponent:()=>import('./chunk-DAI3BCkI.js').then(e=>e.ArticleLiveOpsAdvSearchComponent)};var wf={meta:{title:"articleStoreSearchRankingDashboards.title",description:"articleStoreSearchRankingDashboards.description"}},Um={path:Pr,data:wf,loadComponent:()=>import('./chunk-BB4semOV.js').then(e=>
1006e.ArticleStoreSearchRankingDashboardsComponent)};var Df={meta:{title:we$2.title,description:we$2.description}},Gm={path:Vr$1,data:Df,loadComponent:()=>import('./chunk-DbvXJ6EK.js').then(e=>e.ArticlePeriodCompareComponent)};var Rf={meta:{title:Ke$1.title,description:Ke$1.description}},Hm={path:Xr$1,data:Rf,loadComponent:()=>import('./chunk-B-g4hBSh.js').then(e=>e.ArticleLiveStoreRankingsComponent)};var Of={meta:{title:Xe$1.title,description:Xe$1.description}},Vm={path:Jr$1,data:Of,loadComponent:()=>import('./chunk-B3cuKJKJ.js').then(e=>e.ArticleSteamComponent)};var Ef={meta:{title:Je$1.title,description:Je$1.description}},zm={path:Qr$1,data:Ef,loadComponent:()=>import('./chunk-aVfF-Spd.js').then(e=>e.ArticleUpdateForFreeAccessComponent)};var kf={meta:{title:et$1.title,description:et$1.description}},Wm={path:e$2,data:kf,loadComponent:()=>import('./chunk-C5QDvhcI.js').then(e=>e.ArticleD2cRevenueComponent)};var go=(e,o)=>{let t=D$l(dt$1),r=D$l(F$4),i=e.queryParams.lang??"en",n=e.data.linkPrefix??e$l.Blog;return t.getArticle(e.params.alias,i).pipe(xs$1(g=>(r.navigateByUrl(n),Lm$2("No Article"))))};var jm={path:":alias",data:{linkPrefix:e$l.ToolDescriptions},resolve:{article:go},loadComponent:()=>import('./chunk-DSUV5moR.js').then(e=>e.ArticleBlogViewComponent)};var $m={path:"tool-descriptions",children:[dm,zm,Hm,Um,um,gm,hm,fm,vm,Cm,ym,bm,_m,Gm,Sm,xm,Am,Mm,Pm,Fm,wm,Dm,Rm,Om,Em,km,Nm,Tm,Bm,Im,Lm,Wm,Vm,jm]};var qm={path:"",pathMatch:"full",data:{meta:{title:"nav.research_title"}},loadComponent:()=>import('./chunk-Ce2-F5H9.js').then(e=>e.ResearchBlockComponent)};var Tf={meta:{title:re$1.title,description:re$1.description}},Km={path:mr,data:Tf,loadComponent:()=>import('./chunk-CEXCeEpm.js').then(e=>e.ArticleSupercellIpComponent)};var Nf={meta:{title:"articleCasualGaming2024.title",description:"articleCasualGaming2024.description"}},Xm={path:gr,data:Nf,loadComponent:()=>import('./chunk-1a_Qwm9k.js').then(e=>e.ArticleCasualGaming2024Component)};var Bf={meta:{title:"articleOriginalGamesWithAm.title",description:"articleOriginalGamesWithAm.description"}},Ym={path:fr$1,data:Bf,loadComponent:()=>import('./chunk-CSHPZW7R.js').then(e=>e.ArticleOriginalGamesWithAmComponent)};var If={meta:{title:M$2.title,description:M$2.description}},Qm={path:kt,data:If,loadComponent:()=>import('./chunk-Dyn63_un.js').then(e=>e.ArticleSquadBustersRevenueComponent)};var Lf={meta:{title:te$2.title,description:te$2.description}},Zm={path:nr,data:Lf,loadComponent:()=>import('./chunk-IKX-mALT.js').then(e=>e.ArticleNewFourXStrategiesComponent)};var Uf={meta:{title:"articleCasualGaming2024h1.title",description:"articleCasualGaming2024h1.description"}},Jm={path:bt,data:Uf,loadComponent:()=>import('./chunk-BK0arJES.js').then(e=>e.ArticleCasualGaming2024h1Component)};var Gf={meta:{title:$.title,description:$.description}},ed={path:St,data:Gf,loadComponent:()=>import('./chunk-Mlr0qeHf.js').then(e=>e.ArticleMonopolyGoRevenueSpikeComponent)};var Hf={meta:{title:j$2.title,description:j$2.description}},td={path:Xt,data:Hf,loadComponent:()=>import('./chunk-ijmOhwo-.js').then(e=>e.ArticleCasualMobileGamingH1_2023Component)};var Vf={meta:{title:K$2.title,description:K$2.description}},od={path:Kt,data:Vf,loadComponent:()=>import('./chunk-DV-juJF6.js').then(e=>e.ArticleCasualMobileGaming2023Component)};var zf={meta:{title:X$3.title,description:X$3.description}},rd={path:Jt,data:zf,loadComponent:()=>import('./chunk-nAq4Td7o.js').then(e=>e.ArticleMobileGaming2022Component)};var Wf={meta:{title:w.title,description:w.description}},id={path:xt,data:Wf,loadComponent:()=>import('./chunk-Dk-daKeN.js').then(e=>e.ArticleMergeGamesComponent)};var jf={meta:{title:U$2.title,description:U$2.description}},nd={path:vt,data:jf,loadComponent:()=>import('./chunk-6e4UyVUf.js').then(e=>e.ArticleLiveOpsFrozenCityComponent)};var $f={meta:{title:G$3.title,description:G$3.description}},ad={path:_t,data:$f,loadComponent:()=>import('./chunk-BBICLPUu.js').then(e=>e.ArticleLiveOpsMonopolyGoComponent)};var qf={meta:{title:Y$3.title,description:Y$3.description}},ld={path:Zt,data:qf,loadComponent:()=>import('./chunk-C7CzkiVd.js').then(e=>
1006e.ArticleIdleTycoonGamesMarketOverviewComponent)};var Kf={meta:{title:J$3.title,description:J$3.description}},sd={path:tr,data:Kf,loadComponent:()=>import('./chunk-DjfK176h.js').then(e=>e.ArticleReportOnGenresComponent)};var Xf={meta:{title:Q$2.title,description:Q$2.description}},cd={path:ir,data:Xf,loadComponent:()=>import('./chunk-DnJwXcmn.js').then(e=>e.ArticlePickingSetting2021Component)};var Yf={meta:{title:Z$1.title,description:Z$1.description}},pd={path:ar,data:Yf,loadComponent:()=>import('./chunk-DQeopAXq.js').then(e=>e.ArticleEvaluateIdeasComponent)};var Qf={meta:{title:q$3.title,description:q$3.description}},md={path:Nt,data:Qf,loadComponent:()=>import('./chunk-Lu4PV6C_.js').then(e=>e.ArticleAppmagicReport1Component)};var Zf={meta:{title:ee$2.title,description:ee$2.description}},dd={path:lr,data:Zf,loadComponent:()=>import('./chunk-BXA6PT6A.js').then(e=>e.ArticlePickingSettingComponent)};var ud={path:Gt,loadComponent:()=>import('./chunk-BWHq9pD0.js').then(e=>e.ArticleAdvancedResearchToolsComponent)};var Jf={meta:{title:l$7.title,description:l$7.description}},gd={path:e$7,data:Jf,loadComponent:()=>import('./chunk-Bdbv-UzC.js').then(e=>e.ArticleResearchToolsComponent)};var ev={meta:{title:W$2.title,description:W$2.description}},hd={path:qt,data:ev,loadComponent:()=>import('./chunk-xHxs_ZYt.js').then(e=>e.ArticleProductStrategyComponent)};var tv={meta:{title:N$3.title,description:N$3.description}},fd={path:Ht,data:tv,loadComponent:()=>import('./chunk-Co-w5AB8.js').then(e=>e.ArticleReportCategoriesComponent)};var ov={meta:{title:B$2.title,description:B$2.description}},vd={path:Ft,data:ov,loadComponent:()=>import('./chunk-CC2VyJiw.js').then(e=>e.ArticleLessonsLearnedLaunchingGamesComponent)};var rv={meta:{title:ae$2.title,description:ae$2.description}},Cd={path:dr,data:rv,loadComponent:()=>import('./chunk-CCO7mIzl.js').then(e=>e.ArticleSquadBustersV2Component)};var iv={meta:{title:se$3.title,description:se$3.description}},yd={path:vr$1,data:iv,loadComponent:()=>import('./chunk-CXDLmPKz.js').then(e=>e.ArticleLoReportH12025Component)};var nv={meta:{title:le$2.title,description:le$2.description}},bd={path:_r$1,data:nv,loadComponent:()=>import('./chunk-4IFtu8Md.js').then(e=>e.CasualReportH12025Component)};var av={meta:{title:"articlePlayVentures.title",description:"articlePlayVentures.description"}},_d={path:xr$1,data:av,loadComponent:()=>import('./chunk-BwlngH82.js').then(e=>e.ArticlePlayVenturesComponent)};var lv={meta:{title:tt$1.title,description:tt$1.description}},Sd={path:ei$1,data:lv,loadComponent:()=>import('./chunk-gVA_x4YR.js').then(e=>e.Article4xStrategyMonetizationComponent)};var sv={meta:{title:it$1.title,description:it$1.description}},xd={path:ri$1,data:sv,loadComponent:()=>import('./chunk-B0shu8tX.js').then(e=>e.ArticleMonetizationReport2025Component)};var cv={meta:{title:at$2.title,description:at$2.description}},Ad={path:ii$1,data:cv,loadComponent:()=>import('./chunk-DzwqzGi2.js').then(e=>e.ArticleGossipHarborLiveOpsComponent)};var pv={meta:{title:lt$2.title,description:lt$2.description}},Md={path:oi$1,data:pv,loadComponent:()=>import('./chunk-BIHrpJjt.js').then(e=>e.ArticleSteamPricingResearchComponent)};var mv={meta:{title:nt$2.title,description:nt$2.description}},Pd={path:ai$1,data:mv,loadComponent:()=>import('./chunk-BPmH1wm-.js').then(e=>e.ArticleLiveOpsReport2025Component)};var dv={meta:{title:At.title,description:At.description}},Fd={path:ci$1,data:dv,loadComponent:()=>import('./chunk-CRP_pHbp.js').then(e=>e.ArticleCasualReport2025Component)};var wd={path:":alias",data:{linkPrefix:e$l.Research},resolve:{article:go},loadComponent:()=>import('./chunk-DSUV5moR.js').then(e=>e.ArticleBlogViewComponent)};var uv={meta:{title:"articleMobileLandscapeReport2026.title",description:"articleMobileLandscapeReport2026.description"}},Dd={path:si$1,data:uv,loadComponent:()=>import('./chunk-D4zMvVye.js').then(e=>e.ArticleMobileLandscapeReport2026Component)};var Rd={path:"research",children:[qm,Ad,_d,Km,Cd,Xm,Ym,Qm,Zm,Jm,ed,td,od,rd,id,nd,ad,ld,sd,cd,pd,md,dd,ud,gd,hd,fd,vd,yd,bd,Sd,xd,Md,Pd,Dd,Fd,wd]};var Od=(e,o)=>{let t=D$l(dt$1);return t.articlesBlog.getValue().length?Ms$2(true):t.loading.pipe(Tn$3(r=>r===false),Mu$2())};var Ed={path:Se$9,pathMatch:"full",data:{meta:{title:"articles.blog_title",description:"articles.blog_title"}},resolve:{isArticles:Od},loadComponent:()=>import('./chunk-D0F48rAV.js').then(e=>e.BlogListComponent)};var kd=(e,o)=>{let t=D$l(dt$1);return t.articlesReleaseNotes.getValue().length?Ms$2(true):t.loading.pipe(Tn$3(r=>r===false),Mu$2())};var Td="release-notes";var Nd={path:Td,pathMatch:"full",data:{meta:{title:"articles.release_notes_title",description:"articles.release_notes_subtitle"}},resolve:{featureEnabled:Nt$4("releaseNotes"),isArticles:kd},loadComponent:()=>import('./chunk-D8Mc-iF2.js').then(e=>e.ReleaseNotesListComponent)};
1006var gv={meta:{title:r$5.title,description:r$5.description}},Bd={path:t$b,data:gv,loadComponent:()=>import('./chunk-DUn5NsNg.js').then(e=>e.ArticleHowAppmagicCollectsYourDataComponent)};var Id={path:"blog/:alias",resolve:{article:go},loadComponent:()=>import('./chunk-DSUV5moR.js').then(e=>e.ArticleBlogViewComponent)};var hv={meta:{title:a$7.title,description:a$7.description}},Ld={path:t$a,data:hv,loadComponent:()=>import('./chunk-DE4wOj7k.js').then(e=>e.ArticleWhyWeNeedComponent)};var fv={meta:{title:l$8.title,description:l$8.description}},Ud={path:s$d,data:fv,loadComponent:()=>import('./chunk-Bh9NSAru.js').then(e=>e.ArticlePermissionsComponent)};var vv={meta:{title:"articleCustomDataDumps.title"}},Gd={path:t$d,data:vv,loadComponent:()=>import('./chunk-BYvB4Zd_.js').then(e=>e.ArticleCustomDataDumpsComponent)};var Cv={meta:{title:s$b.title}},Hd={path:i$6,data:Cv,loadComponent:()=>import('./chunk-B4Sw2gLu.js').then(e=>e.ArticleBasicPlanComponent)};var yv={meta:{title:"White Nights Cyprus 2026 \u2014 Book a Quick Demo"}},Vd={path:"wn-cyprus-26-quick-demo",data:yv,loadComponent:()=>import('./chunk-KB5h4JiQ.js').then(e=>e.ArticleWnCyprus26QuickDemoComponent)};var zd=[{path:"",children:[Ed,Nd,Id,Rd,$m,Vd,{path:"articles",pathMatch:"full",redirectTo:()=>"research"},{path:"articles",children:[Ld,Ud,mm,Bd,pm,Gd,cm,Hd,{path:"wechat-info",loadComponent:()=>import('./chunk-rCclshLu.js').then(e=>e.ArticleWechatInfoComponent)},sm,{path:"mga",data:{meta:{title:"Welcome, fellow friend of MGA!"}},loadComponent:()=>import('./chunk-CpM3fgMi.js').then(e=>e.ArticleMgaComponent)},{path:"**",redirectTo:"/articles"}]}]}];var bv={meta:{title:"root.ad_intelligence"}},_v={authCheck:Y,access:X$4(E$6.ad_int)},Wd={path:t$7,data:bv,resolve:_v,loadComponent:()=>import('./chunk-BMKfauDY.js').then(e=>e.AdTopWrapperComponent)};var gi=[{path:"",loadComponent:()=>import('./chunk-fgoEqXI9.js').then(e=>e.DashboardsLayoutComponent),children:[{path:"",pathMatch:"full",redirectTo:n$5},{path:":id",loadComponent:()=>import('./chunk-Sizh9TiL.js').then(e=>e.DashboardsComponent)}]},{path:"**",redirectTo:n$5}],jd={path:"dashboards",resolve:{authCheck:Y},children:gi};var Sv=e=>{let o={};if(e.length===1&&(o=Object.values(o$c).includes(e[0].path)?{filter:e[0]}:{id:e[0]}),e.length===2){let t=Object.values(o$c);o={id:e[1],filter:t.includes(e[0].path)?e[0]:void 0};}return e.length>=1?{consumed:e,posParams:o}:{consumed:e}},$d=[{loadComponent:()=>import('./chunk-C6Ia70fh.js').then(e=>e.AppTrackerComponent),data:{meta:{title:"root.notifications"}},resolve:{access:X$4(E$6.app_tracker)},matcher:Sv}];var xv={meta:{title:"liveOps.live_ops_updates_title"}},qd={path:e$9,data:xv,resolve:{authCheck:Y,access:X$4(E$6.live_ops)},loadComponent:()=>import('./chunk-C-U27kK5.js').then(e=>e.LiveOpsWrapperComponent)};
1006var Av="login-guide",Mv={meta:{title:"AppMagic\u767B\u5F55\u65B9\u5F0F",description:"\u6211\u53F8\u7F51\u7AD9\u73B0\u5DF2\u652F\u6301\u4E03\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u5305\u62EC\u7535\u5B50\u90AE\u7BB1\u3001\u5FAE\u4FE1\u3001\u8C37\u6B4C\u8D26\u53F7\u3001\u5FAE\u535A\u3001Facebook\u3001Line\u548CKakao Talk\uFF0C\u65B9\u4FBF\u7528\u6237\u81EA\u7531\u9009\u62E9\u3002\u6B64\u5916\uFF0C\u5BA2\u6237\u8FD8\u53EF\u4EE5\u81EA\u5DF1\u6DFB\u52A0\u7528\u6237"}},Kd={path:Av,data:Mv,loadComponent:()=>import('./chunk-VKBiyxM5.js').then(e=>e.LoginGuideComponent)};var Xd=(e,o)=>{let t=D$l(c$7),r={store:5,kind:e.queryParams.kind??"all",country:e.queryParams.country??"WW",aggregation:e.queryParams.aggregation??"day",limit:Number(e.queryParams.limit)};return t.getData(r)};var Yd="free-top";var Pv={data:Xd},Qd={path:Yd,resolve:Pv,loadComponent:()=>import('./chunk-BgHvenut.js').then(e=>e.FreeTopComponent)};var Ne=e=>()=>D$l(f$8).get(e);var Fv={meta:{title:"steam.steam"}},Zd={path:p$c,data:Fv,resolve:{[t$e]:Ne("steam")},loadComponent:()=>import('./chunk-BrSh9XGz.js').then(e=>e.SteamComponent)};var Jd=e=>{if(e.length<2)return null;let[o,t,r]=e;if(o.path!=="steam")return null;let i=D$m({steam:o,id:t},r&&{tab:r});return {consumed:e,posParams:i}};var wv={meta:{keywords:"steam.steam",description:"steam.steam"}},eu={matcher:Jd,data:wv,resolve:{[t$e]:Ne("steam")},loadComponent:()=>import('./chunk-DvhQA-9h.js').then(e=>e.SteamPageComponent)};var Dv={meta:{title:"xbox.xbox"}},tu={path:m$9,data:Dv,resolve:{[t$e]:Ne("xbox"),access:X$4(E$6.xbox)},loadComponent:()=>import('./chunk-Quy3D1FJ.js').then(e=>e.XboxComponent)};var Rv={meta:{keywords:"xbox.xbox",description:"xbox.xbox"}},ou={path:e$c,data:Rv,resolve:{[t$e]:Ne("xbox"),access:X$4(E$6.xbox)},loadComponent:()=>import('./chunk-SRktxJj5.js').then(e=>e.XboxPageComponent)};var ru="product-deck";var hi=(e,o)=>{let t=D$l(X$8),r=D$l(F$4),i=D$l(m$8);return (!!t.getToken()?Lm$2("not guest"):Ms$2(true)).pipe(xs$1(m=>{let B=i.resolveUrl();return r.navigateByUrl(B+window.location.search),Lm$2("not guest")}))};var fi=()=>{let e=D$l(ao),o=D$l(M$5),t=D$l(R$3),r=D$l(F$4),i=t.getTagData();return o.isPromoCodeExist()?Wm$2([i,e.validatePromoCodeOrRemove()]).pipe(Du$2(()=>e.authPromoCode().pipe(xs$1(()=>Ms$2(false)),_e$b(n=>(n&&r.navigateByUrl(""),Ms$2(true)))))):i.pipe(Du$2(()=>Ms$2(true)))};var Ev={authCheck:hi,landing:fi},iu={path:"",resolve:Ev,loadComponent:()=>import('./chunk-DDzUjLzS.js').then(function(n){return n.c}).then(e=>e.LandingComponent)};var kv={landing:fi},nu={path:ru,resolve:kv,loadComponent:()=>import('./chunk-DDzUjLzS.js').then(function(n){return n.c}).then(e=>e.LandingComponent)};var au="tap&talk-london-2026";var lu={path:au,data:{meta:{title:"Tap & Talk London"}},loadComponent:()=>import('./chunk-CkOtxlvg.js').then(e=>e.LandingTapTalkComponent)};var su=s$k;var cu={path:su,loadComponent:()=>import('./chunk-JfoYfsJt.js').then(e=>e.RedirectLoadingPageComponent)};var pu={path:"qr",loadComponent:()=>import('./chunk-CTAmzydB.js').then(e=>e.QrLoginComponent)};var Nv={authCheck:Y,access:X$4(E$6.live_ops),accessLiveOpsAdvSearch:X$4(E$6.live_ops_adv_search)},Bv={noPremiumRedirectTo:c$b,meta:{title:"liveOpsAdvSearch.title"}},mu={path:Zp,data:Bv,resolve:Nv,loadComponent:()=>import('./chunk-C_1ZeNZ6.js').then(e=>e.LoAdvSearchWrapperComponent)};var du={path:n$f,data:{meta:{title:"loInsightsByTitles.title"}},resolve:{authCheck:Y,access:X$4(E$6.live_ops),devFeature:Nt$4("loInsights")},loadComponent:()=>import('./chunk-DeWyKS56.js').then(e=>e.LiveOpsInsightsHubComponent)};var uu={path:r$d,data:{meta:{title:"inAppPurchasesDistribution.main_title"}},resolve:{authCheck:Y,access:X$4(E$6.revenue_distribution)},loadComponent:()=>import('./chunk-ndDCPhuZ.js').then(e=>e.IapdHubComponent)};var Iv={authCheck:Y,accessFeatureLibrary:X$4(E$6.feature_library)},Lv={noPremiumRedirectTo:c$b,meta:{title:"featureLibrary.title"}},gu={path:r$c,data:Lv,resolve:Iv,loadComponent:()=>import('./chunk-RBERGQLk.js').then(function(n){return n.c}).then(e=>e.FeatureLibraryWrapperComponent)};var Uv={meta:{title:"appTransfers.app_transfers",description:"appTransfers.legend_text_5"},accessName:E$6.app_transfers,noAccessRedirectTo:c$b},hu={path:jp,data:Uv,resolve:{authCheck:Y},loadComponent:()=>import('./chunk-CvqFxCHG.js').then(e=>e.AppTransfersComponent)};var fu={path:o$j,loadComponent:()=>import('./chunk-pYYk5lKL.js').then(e=>e.DemoRequestComponent),data:{meta:{title:"pricing.request_demo"}}};var vu=(e,o)=>D$l(R$3).getTagData();var Gv={authCheck:Y,access:X$4(E$6.success_meter),tags:vu},Hv={meta:{title:"successMeter.main_title"}},Cu={path:qp,resolve:Gv,data:Hv,loadComponent:()=>import('./chunk-X8I4Qyd6.js').then(e=>e.SuccessMeterComponent)};var Vv={meta:{title:"favorites.my_favorites",keywords:"root.meta_keywords",de
1006scription:"root.meta_description"}},yu={path:Up,data:Vv,resolve:{authCheck:Y},loadComponent:()=>import('./chunk-C9MWcOLq.js').then(e=>e.MyFavoritesComponent)};var bu="favorite/creatives/:id";var zv={meta:{title:"favorites.favorite_creatives",keywords:"root.meta_keywords",description:"root.meta_description"}},_u={path:bu,data:zv,resolve:{access:X$4(E$6.ad_int,c$b,false)},loadComponent:()=>import('./chunk-BPagx7Uv.js').then(e=>e.ShareFavoriteCreativesComponent)};var Su="favorite/apps/:id";var Wv={meta:{title:"favorites.favorite_apps",keywords:"root.meta_keywords",description:"root.meta_description"}},xu={path:Su,data:Wv,resolve:{authCheck:Y},loadComponent:()=>import('./chunk-D3smw5_j.js').then(e=>e.ShareFavoriteAppsComponent)};var Au="favorite/keywords/:id";var jv={meta:{title:"favorites.favorite_keywords",keywords:"root.meta_keywords",description:"root.meta_description"}},$v=[E$6.asa_dashboards,E$6.aso_dashboards],Mu={path:Au,data:jv,resolve:{access:X$4($v,c$b,false)},loadComponent:()=>import('./chunk-DUFXJXIC.js').then(e=>e.ShareFavoriteKeywordsComponent)};var Pu="favorite/offers/:id";var qv={meta:{title:"favorites.favorite_offers",keywords:"root.meta_keywords",description:"root.meta_description"}},Fu={path:Pu,data:qv,resolve:{access:X$4(E$6.monetization_int,c$b,false)},loadComponent:()=>import('./chunk-BnUTqWih.js').then(e=>e.ShareFavoriteOffersComponent)};var wu="favorite/publishers/:id";var Kv={meta:{title:"favorites.favorite_pub",keywords:"root.meta_keywords",description:"root.meta_description"}},Du={path:wu,data:Kv,resolve:{authCheck:Y},loadComponent:()=>import('./chunk-CqWHIINo.js').then(e=>e.ShareFavoritePublishersComponent)};var Ru={path:oe$3,redirectTo:()=>(D$l(F$6).sendRedirect(oe$3,e$h),e$h)};var Ou={path:r$f,data:{meta:{title:"ourFeatures.header_text"}},loadComponent:()=>import('./chunk-tZKwjvUp.js').then(e=>e.PricingRequestComponent)};var Eu="mailing";var ku={path:Eu,data:{meta:{keywords:"root.meta_keywords",description:"root.meta_description"}},loadComponent:()=>import('./chunk-B6uHwzdR.js').then(e=>e.MailingComponent)};var Tu={resolve:{authCheck:hi},path:o$8,loadComponent:()=>import('./chunk-De6OeXs1.js').then(e=>e.LoginPageComponent)};var Nu="slack-landing";var Bu={path:Nu,data:{meta:{title:"slackLanding.title",description:"slackLanding.title"}},loadComponent:()=>import('./chunk-ClJ9a29s.js').then(e=>e.SlackLandingComponent)};var Iu=()=>{let e=D$l(F$4);if(!D$l(ve$6).hasAccess(E$6.st_aso))return e.parseUrl(Xp);if(!e.getCurrentNavigation()?.previousNavigation)return window.location.replace(Hr),false;let t=window.open(Hr,"_blank");return t?t.opener=null:window.location.href=Hr,false};var Lu={path:ga,canActivate:[Iu],children:[]};var Uu={path:Le$6,loadComponent:()=>import('./chunk-DtHG6D7C.js').then(e=>e.AboutPageComponent)};var Gu={path:r$e,loadComponent:()=>import('./chunk-DslBrcrn.js').then(e=>e.ForPressComponent)};var Hu=e=>{if(e.length<3)return null;let[o,t,r,i]=e;if(!["google-play","iphone","ipad"].includes(o.path))return null;let n=D$m({store:o,name:t,id:r},i&&{tab:i});return {consumed:e,posParams:n}};var Vu={matcher:Hu,loadComponent:()=>import('./chunk-CIXN9McP.js').then(e=>e.AppPageComponent)};var zu={path:"publisher/:name/:storePublisherId",loadComponent:()=>import('./chunk-Cuj9W26i.js').then(e=>e.PublisherPageComponent)};var Xv={authCheck:Y,access:X$4(E$6.monetization_int)},Yv={noPremiumRedirectTo:c$b,meta:{title:"monetizationInt.title"}},Wu={path:s$5,data:Yv,resolve:Xv,loadComponent:()=>import('./chunk-DkJeZvMj.js').then(e=>e.MonetizationIntWrapperComponent)};var Qv={meta:{title:"playstation.playstation"}},ju={path:l$e,data:Qv,resolve:{[t$e]:Ne("playStation"),access:X$4(E$6.playstation)},loadComponent:()=>import('./chunk-DzkfX8z7.js').then(e=>e.PlayStationComponent)};var Zv={meta:{keywords:"playstation.playstation",description:"playstation.playstation"}},$u={path:n$7,data:Zv,resolve:{[t$e]:Ne("playStation"),access:X$4(E$6.playstation)},loadComponent:()=>import('./chunk-n4LMoNuE.js').then(e=>e.PlayStationPageComponent)};var qu=(e=c$b)=>(o,t)=>{let r=D$l(ve$6),i=D$l(ut),n=D$l(F$4),g=r.isPremium()?Ms$2(true):Lm$2("not premium"),m=o.pathFromRoot.map(B=>B.url.map(E=>
1006E.toString())).filter(B=>B[0]).join("/");return g.pipe(xs$1(B=>(n.navigate([e]).finally(()=>{i.checkPremiumWithLoginAndRedirectAfter([m],o.queryParams);}),Lm$2("no access"))))};var Ku={resolve:{authCheck:Y,premium:qu()},path:xe$3,loadComponent:()=>import('./chunk-87pYzRdV.js').then(e=>e.FeatureToggleComponent)};var Xu={path:Ip,data:{meta:{title:"auth.my_account"}},resolve:{authCheck:Y},loadComponent:()=>import('./chunk-qwBUspnG.js').then(e=>e.MyAccountComponent)};var _a="newsletter-subscribe";var Yu={path:_a,loadComponent:()=>import('./chunk-Te1n7yds.js').then(e=>e.NewsletterComponent)};var Jv={meta:{keywords:"appList.publisher",description:"appList.publisher"}},Qu=[{path:`${o$9}/`,data:Jv,resolve:{[t$e]:Ne("steam")},loadComponent:()=>import('./chunk-AHaLNNyj.js').then(e=>e.SteamPublisherPageComponent)},{path:o$9,redirectTo:`${o$9}/`,pathMatch:"full"}];var e1={meta:{title:"steam.steam"}},Zu={path:va,data:e1,resolve:{[t$e]:Ne("steam")},loadComponent:()=>import('./chunk-P3J_QLyc.js').then(e=>e.SteamPublishersComponent)};var Ju={path:_e$3,resolve:{authCheck:Y,devFeature:Nt$4("userConfigEditor")},loadComponent:()=>import('./chunk-Cj8y-jXj.js').then(e=>e.UserConfigPageComponent)};var eg=[{path:"",resolve:{appInit:Tp},children:[iu,nu,lu,cu,Qd,pu,{path:"",resolve:{root:Fp},component:ui,children:[fu,Yu,Cu,{path:"screens",redirectTo:()=>(D$l(F$6).sendRedirect("screens","dashboards"),"dashboards")},jd,Vu,zu,{path:"top-charts",loadChildren:()=>import('./chunk-pu9gvshi.js').then(e=>e.ChartsRoutes)},Tu,Wu,Ku,Ju,qd,mu,{path:"live-ops-insights-by-titles",redirectTo:()=>(D$l(F$6).sendRedirect("live-ops-insights-by-titles",i$f),i$f)},E$9(D$m({},du),{children:[{path:"",pathMatch:"full",redirectTo:o$k},{path:t$i,children:gi},{path:o$k,loadChildren:()=>import('./chunk-By0VTdjf.js').then(e=>e.LiveOpsInsightsByTitlesRoutes)}]}),E$9(D$m({},uu),{children:[{path:"",pathMatch:"full",redirectTo:p$i},{path:a$i,children:gi}]}),gu,hu,{path:t$f,resolve:{authCheck:Y},data:{meta:{title:"appTracker.meta_title_app_tracker"}},children:$d},{path:"app-tracker",redirectTo:()=>(D$l(F$6).sendRedirect("app-tracker",t$f),t$f)},Bu,Lu,Wd,Uu,Gu,{path:"about-us-wechat",redirectTo:()=>(D$l(F$6).sendRedirect("about-us-wechat",Ie$4),Ie$4)},Ru,Ou,Xu,{path:"my-account",pathMatch:"full",redirectTo:()=>(D$l(F$6).sendRedirect("my-account","my-account/"),"my-account/")},...zd,{path:"permissions",redirectTo:()=>(D$l(F$6).sendRedirect("permissions","/articles/permissions"),"/articles/permissions")},{path:"favorites",redirectTo:()=>(D$l(F$6).sendRedirect("favorites","favorites/"),"favorites/")},yu,xu,_u,Du,Mu,Fu,ku,Kd,Zd,Zu,eu,...Qu,tu,ou,ju,$u,{path:"**",redirectTo:()=>D$l(m$8).resolveUrl()}]}]}];var Ci=/%(?![0-9A-Fa-f]{2})/g;function Sa(e){let o=e.indexOf("?");if(o===-1)return e.replace(Ci,"%25");let t=e.indexOf("#",o),r=t===-1?e.length:t,i=e.slice(0,o+1),n=e.slice(o+1,r),g=t===-1?"":e.slice(t),m=i.slice(0,-1).replace(Ci,"%25"),B=n.replace(Ci,"%25");return m+"?"+B+g}var yi=class extends Y$6{parse(o){let t=Sa(o);try{return super.parse(t)}catch(r){if(r instanceof URIError){let i=t.replace(Ci,"%25");return super.parse(i)}throw r}}};function t1(){if(!(typeof window>"u"||typeof history>"u"))try{let e=window.location.href,o=Sa(e);e!==o&&history.replaceState(null,"",o);}catch(e){console.error("Failed to sanitize browser URL:",e);}}function o1(){if(typeof document>"u"||typeof fetch>"u")return Promise.resolve();let e="flags-symbols-inline-sprite";if(document.getElementById(e))return Promise.resolve();let o=new URL("flags-symbols.svg",document.baseURI).toString();return fetch(o).then(t=>K$g(null,null,function*(){return t.ok?yield t.text():""})).then(t=>{if(!t||document.getElementById(e)||!document.body)return;let r=document.createElement("div");r.id=e,r.setAttribute("aria-hidden","true"),r.style.cssText="position:absolute;width:0;height:0;overflow:hidden",r.innerHTML=t,document.body.prepend(r);}).catch(()=>{})}bt$5();window.angularRootLoadTime=new Date().getTime()-window.htmlLoadTime;He$6(xr,{providers:[GV(),nt$9(st$7(),ot$6([Ap,Mp])),ia$1(eg),Ed$2(fe$8.forRoot(fp)),{provide:dn$1,useValue:{duration:3e3,horizontalPosition:"left"}},{provide:K$c,useFactory:()=>new hr(document)},{provide:it$4,useValue:{disabled:true,animation:{enterDuration:0,exitDuration:0}}},hw(()=>{t1();let e=D$l(O$a);return Promise.all([o1(),Pm$2(e.getConfig())])}),{provide:D$7,useClass:Ar},{provide:ie$h,useValue:"/"},{provide:ot$a,useClass:Be$8},{provide:ne$5,useClass:yi}]}).catch(e=>{console.error(e);});
1007var chunkYSDA3FXW=/*#__PURE__*/Object.freeze({__proto__:null,FlagComponent:_$4});var chunkFHRCWOWY=/*#__PURE__*/Object.freeze({__proto__:null,BottomMenuComponent:te$3});var chunkJF6VVVCR=/*#__PURE__*/Object.freeze({__proto__:null,AppNamePubComponent:T});var chunkC2PWHVVN=/*#__PURE__*/Object.freeze({__proto__:null,AppPageLinkPipe:a$1});var chunkBG3OJXVJ=/*#__PURE__*/Object.freeze({__proto__:null,PubPageLinkPipe:a$2});export{vb as $,An$3 as A,de$c as B,O$3 as C,D$l as D,Eg$1 as E,Wm$2 as F,ku$2 as G,H$2 as H,Ig$1 as I,Jr$4 as J,qm$2 as K,Lu$2 as L,Mb as M,Nu$2 as N,OI as O,W$6 as P,F$4 as Q,R$3 as R,u$6 as S,Tn$3 as T,Ug$1 as U,hT as V,W$f as W,pT as X,gT as Y,Zi$3 as Z,_b as _,AE as a,m$2 as a$,_e$1 as a0,be$2 as a1,Ib as a2,V$2 as a3,h as a4,ve$6 as a5,r$9 as a6,rr$4 as a7,fi$4 as a8,F$1 as a9,Ee$1 as aA,pe$2 as aB,ze$1 as aC,Se$2 as aD,P$2 as aE,xe$1 as aF,I$1 as aG,VV as aH,As$2 as aI,re$7 as aJ,Au$2 as aK,Su$2 as aL,Tu$2 as aM,iy as aN,Ns$2 as aO,L$3 as aP,un$2 as aQ,oa as aR,$t$4 as aS,AT as aT,Zg$1 as aU,RT as aV,ub as aW,Pg$1 as aX,Lg$1 as aY,e$l as aZ,O$a as a_,L$4 as aa,Pb as ab,fe$6 as ac,_g$1 as ad,qg$1 as ae,DT as af,Rd$2 as ag,kd$2 as ah,qp$2 as ai,Me$1 as aj,ge$2 as ak,fe$2 as al,Ue$1 as am,he$3 as an,ve$2 as ao,Ie$1 as ap,Fe$3 as aq,Ae$1 as ar,He$1 as as,Ne$2 as at,We$1 as au,Ze$1 as av,l$6 as aw,ye$2 as ax,Gr$4 as ay,dw as az,bb as b,h$8 as b$,db as b0,vg$1 as b1,g$4 as b2,fw as b3,tt$b as b4,v$6 as b5,tr$4 as b6,Hp$1 as b7,Tu$1 as b8,Mu$2 as b9,Cl$1 as bA,m$7 as bB,Yl$1 as bC,hl$1 as bD,Xl$1 as bE,vl$1 as bF,$$b as bG,c as bH,Vb as bI,ef$2 as bJ,Fb as bK,i$h as bL,e as bM,cn$3 as bN,T as bO,O$2 as bP,Ht$7 as bQ,o$h as bR,a$1 as bS,a$2 as bT,f$4 as bU,p$1 as bV,z$5 as bW,ye$7 as bX,bu$2 as bY,Ru$2 as bZ,g$6 as b_,dn$3 as ba,A as bb,cg$1 as bc,Se$1 as bd,e$g as be,me$b as bf,G$f as bg,Bu$2 as bh,FT as bi,Ol$2 as bj,Ll$2 as bk,cT as bl,qd$2 as bm,Dg$1 as bn,Ev$1 as bo,y$5 as bp,Ab as bq,Eb as br,fD as bs,xg$1 as bt,OT as bu,LT as bv,E$9 as bw,D$m as bx,jV as by,wu$2 as bz,s$8 as c,M$g as c$,km$1 as c0,Bl$1 as c1,n$3 as c2,fb as c3,s$1 as c4,se$2 as c5,d$4 as c6,xs$1 as c7,Ms$2 as c8,St$7 as c9,Rg$1 as cA,PT as cB,Mg$1 as cC,P$6 as cD,Pt$a as cE,i$c as cF,n$a as cG,J$k as cH,lb as cI,w$1 as cJ,ne$5 as cK,Db as cL,
1007cw as cM,dd$2 as cN,Rn as cO,W$c as cP,WV as cQ,U$c as cR,it$4 as cS,xe$4 as cT,I$9 as cU,Ce$b as cV,nn$2 as cW,YV as cX,ZV as cY,QV as cZ,yb as c_,Jt$7 as ca,bg$1 as cb,wn$4 as cc,Sb as cd,QT as ce,Tg$1 as cf,Sn$1 as cg,h$3 as ch,g$2 as ci,st$b as cj,U$a as ck,t$k as cl,Gs$1 as cm,u$3 as cn,e$5 as co,x$d as cp,BV as cq,oh$2 as cr,We$3 as cs,bn$1 as ct,It$3 as cu,zt$2 as cv,zg$1 as cw,vD as cx,Gg$1 as cy,ED as cz,dt$1 as d,w$7 as d$,Ng$1 as d0,l$a as d1,Ji$1 as d2,Uo$3 as d3,te$6 as d4,sg$1 as d5,fT as d6,n$c as d7,l as d8,s$9 as d9,n$9 as dA,s$j as dB,Wd$2 as dC,Xo$3 as dD,Et$2 as dE,Dn as dF,Lt$1 as dG,_$7 as dH,Vn as dI,Kd$2 as dJ,K$g as dK,ce$5 as dL,V$4 as dM,Ft$1 as dN,S$3 as dO,jn$2 as dP,iv$1 as dQ,Vv$1 as dR,V$f as dS,f$9 as dT,Rt$2 as dU,gw as dV,ol$1 as dW,_$4 as dX,d$1 as dY,o$2 as dZ,o$g as d_,qm$1 as da,uy as db,Ni$3 as dc,Si$3 as dd,j$6 as de,Ue$7 as df,X$7 as dg,C$8 as dh,s$m as di,n$b as dj,f$5 as dk,L$1 as dl,VI as dm,Uu$2 as dn,a$4 as dp,y$2 as dq,s$h as dr,n$e as ds,Dt$2 as dt,H$d as du,l$f as dv,c$4 as dw,W$a as dx,t$g as dy,o$e as dz,ft$1 as e,N$3 as e$,N$1 as e0,s$2 as e1,Re$2 as e2,we$2 as e3,Ke$1 as e4,Xe$1 as e5,Je$1 as e6,et$1 as e7,e$1 as e8,o$1 as e9,ie$1 as eA,oe$1 as eB,M$2 as eC,te$2 as eD,C$2 as eE,$ as eF,j$2 as eG,K$2 as eH,X$3 as eI,w as eJ,U$2 as eK,G$3 as eL,Y$3 as eM,J$3 as eN,Q$2 as eO,Z$1 as eP,Ye$1 as eQ,q$3 as eR,ee$2 as eS,Pt as eT,s$7 as eU,I as eV,l$7 as eW,qe$1 as eX,Be$1 as eY,n$5 as eZ,W$2 as e_,Wo as ea,p$6 as eb,Fe$8 as ec,b$2 as ed,Mn as ee,Fn as ef,a$9 as eg,In as eh,wn$1 as ei,An as ej,en$1 as ek,Jt$3 as el,o$3 as em,T$3 as en,N$5 as eo,He$9 as ep,i$5 as eq,I$4 as er,fi$1 as es,M_ as et,x$g as eu,C$d as ev,y$7 as ew,re$1 as ex,mr as ey,LI as ez,fe$8 as f,Dn$3 as f$,yo as f0,B$2 as f1,ae$2 as f2,se$3 as f3,le$2 as f4,_r$1 as f5,ce$2 as f6,tt$1 as f7,ei$1 as f8,it$1 as f9,l$8 as fA,s$c as fB,s$b as fC,F as fD,c$6 as fE,Du$2 as fF,c$1 as fG,W$5 as fH,D$c as fI,i$3 as fJ,E$6 as fK,l$d as fL,U$8 as fM,f$e as fN,D$1 as fO,g as fP,f$7 as fQ,o as fR,Vt$7 as fS,H$a as fT,ut$8 as fU,tt$a as fV,Nb as fW,F$9 as fX,a as fY,X$5 as fZ,n as f_,at$2 as fa,lt$2 as fb,nt$2 as fc,At as fd,pt$1 as fe,c$5 as ff,ds$1 as fg,x$f as fh,lg$1 as fi,Vr$4 as fj,Li$3 as fk,ee$b as fl,Ve$5 as fm,jt$5 as fn,yg$1 as fo,Vt$4 as fp,bt$8 as fq,At$8 as fr,J$6 as fs,Ee$5 as ft,Me$b as fu,Bt$7 as fv,ct$9 as fw,Wu$2 as fx,r$5 as fy,a$7 as fz,ge$9 as g,de$5 as g$,g$5 as g0,xb as g1,m$c as g2,c$e as g3,$V as g4,yn$2 as g5,xt$5 as g6,ot$4 as g7,wb as g8,ny as g9,x as gA,a$g as gB,re$a as gC,y$3 as gD,lt$3 as gE,mt$1 as gF,Kl$2 as gG,se$a as gH,Ut$6 as gI,eT as gJ,tT as gK,br$2 as gL,s$k as gM,sl$1 as gN,Yt$4 as gO,F$6 as gP,r$3 as gQ,f$8 as gR,a$5 as gS,p$a as gT,S$4 as gU,R$9 as gV,X$4 as gW,Nt$4 as gX,_e$b as gY,D$b as gZ,H$6 as g_,Vs$1 as ga,Zl$1 as gb,Pl$2 as gc,Fl$2 as gd,Ul$1 as ge,t$8 as gf,p$d as gg,Kt$1 as gh,pb as gi,ay as gj,uf$1 as gk,bt$a as gl,Wg$1 as gm,Ie$2 as gn,s$3 as go,T$7 as gp,fe$5 as gq,ue$7 as gr,m$e as gs,q$c as gt,j$d as gu,Hr$4 as gv,pe$9 as gw,_e$9 as gx,C$6 as gy,M$6 as gz,he$8 as h,ut$1 as h$,i$9 as h0,Je$4 as h1,No$3 as h2,ar$4 as h3,X$g as h4,Te$6 as h5,Rs$1 as h6,dl$1 as h7,Ss$1 as h8,Ml$1 as h9,n$1 as hA,xt$2 as hB,Ke$4 as hC,Ye$4 as hD,Ze$4 as hE,et$6 as hF,Qe$4 as hG,tt$6 as hH,Gu$2 as hI,o$m as hJ,u$5 as hK,C$7 as hL,re$6 as hM,G$8 as hN,Ge$7 as hO,u$8 as hP,c$g as hQ,u$7 as hR,A$7 as hS,e$f as hT,o$i as hU,h$9 as hV,v$2 as hW,h$1 as hX,u$1 as hY,ae$6 as hZ,g$1 as h_,o$4 as ha,yl$1 as hb,i$d as hc,a$c as hd,ce$6 as he,Re$7 as hf,oe$5 as hg,S as hh,n$d as hi,c$9 as hj,G$g as hk,a$b as hl,f$c as hm,r$a as hn,gn$2 as ho,i$1 as hp,t$1 as hq,p$2 as hr,l$2 as hs,ts as ht,se$5 as hu,C$4 as hv,r$2 as hw,ne$6 as hx,J$8 as hy,Nl$1 as hz,ib as i,o$k as i$,e$d as i0,N$8 as i1,Xt$7 as i2,s$g as i3,E$4 as i4,M$3 as i5,HV as i6,be as i7,bt$9 as i8,ae$a as i9,Ht$5 as iA,Ag$1 as iB,V$9 as iC,fy as iD,P$8 as iE,t$f as iF,o$c as iG,e$a as iH,R$7 as iI,i$2 as iJ,o$f as iK,c$7 as iL,t$e as iM,n$g as iN,i as iO,Fe$5 as iP,Oe$6 as iQ,i$e as iR,Nn as iS,s$i as iT,Wp$2 as iU,o$8 as iV,V$5 as iW,X$8 as iX,m$8 as iY,Z$6 as iZ,e$i as i_,Vl$1 as ia,al$1 as ib,Lm$2 as ic,je$8 as id,F$e as ie,o$b as ig,C as ih,a$d as ii,r$6 as ij,re$8 as ik,ju$2 as il,B$5 as im,s$e as io,m$4 as ip,f$a as iq,rd$2 as ir,Te$8 as is,ue$4 as it,ie$9 as iu,m$3 as iv,d$5 as iw,r as ix,Zt$5 as iy,UV as iz,hn$2 as j,f$1 as j$,s$l as j0,t$i as j1,o$o as j2,t$n as j3,a$i as j4,pm$1 as j5,dy as j6,R$a as j7,Fn$3 as j8,t$2 as j9,c$d as jA,l$9 as jB,Pt$1 as jC,e$n as jD,mn$3 as jE,m$6 as jF,W$7 as jG,Cn$3 as jH,A$6 as jI,o$l as jJ,r$g as jK,l$h as jL,s$q as jM,t$p as jN,o$r as jO,o$p as jP,v$8 as jQ,Ct$3 as jR,$$3 as jS,de$4 as jT,ld$2 as jU,L$b as jV,I$d as jW,M$h as jX,C$e as jY,s$n as jZ,E$5 as j_,e$h as ja,re$4 as jb,Ve$3 as jc,Me$2 as jd,Be$3 as je,D$4 as jf,s$p as jg,Y$1 as jh,J$1 as ji,ot as jj,Ce as jk,st as jl,Te as jm,at as jn,a$3 as jo,d as jp,Se as jq,pt as jr,wt$6 as js,a$j as jt,r$7 as ju,d$2 as jv,R$4 as jw,p$9 as jx,U$7 as 
1007jy,N$9 as jz,kl$2 as k,M$9 as k0,Ae$2 as k1,t$l as k2,Pm$2 as k3,J$9 as k4,t$j as k5,t$o as k6,Xm$1 as k7,ly as k8,s$5 as k9,chunkYSDA3FXW as kA,chunkFHRCWOWY as kB,chunkJF6VVVCR as kC,chunkC2PWHVVN as kD,chunkBG3OJXVJ as kE,oy as ka,ks$2 as kb,Yt$2 as kc,a$h as kd,rT as ke,A$9 as kf,Ou$2 as kg,se$c as kh,nT as ki,Ie$4 as kj,De$7 as kk,J$b as kl,vy as km,Q as kn,o$d as ko,ct as kp,s as kq,R$1 as kr,H$1 as ks,Dr$5 as kt,En$3 as ku,o$7 as kv,my as kw,o$6 as kx,X as ky,h$4 as kz,l$4 as l,kt$3 as m,n$2 as n,b$5 as o,Rl$2 as p,jl$2 as q,r$8 as r,sw as s,t$5 as t,uT as u,v$7 as v,dT as w,NT as x,y,ce$1 as z};

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