diff --git a/storecloud-elements/storecloud-elements.js b/storecloud-elements/storecloud-elements.js index b35feb5..38ed23c 100644 --- a/storecloud-elements/storecloud-elements.js +++ b/storecloud-elements/storecloud-elements.js @@ -1,3 +1,3 @@ (()=>{"use strict";var e,b={},p={};function t(e){var n=p[e];if(void 0!==n)return n.exports;var r=p[e]={id:e,loaded:!1,exports:{}};return b[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}t.m=b,t.amdO={},e=[],t.O=(n,r,a,o)=>{if(!r){var i=1/0;for(f=0;f=o)&&Object.keys(t.O).every(h=>t.O[h](r[s]))?r.splice(s--,1):(c=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,a,o]},t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__;t.t=function(r,a){if(1&a&&(r=this(r)),8&a||"object"==typeof r&&r&&(4&a&&r.__esModule||16&a&&"function"==typeof r.then))return r;var o=Object.create(null);t.r(o);var f={};n=n||[null,e({}),e([]),e(e)];for(var i=2&a&&r;"object"==typeof i&&!~n.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach(c=>f[c]=()=>r[c]);return f.default=()=>r,t.d(o,f),o}})(),t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};t.O.j=a=>0===e[a];var n=(a,o)=>{var s,l,[f,i,c]=o,_=0;if(f.some(u=>0!==e[u])){for(s in i)t.o(i,s)&&(t.m[s]=i[s]);if(c)var d=c(t)}for(a&&a(o);_{const me=":";class Ye extends Error{constructor(e){super(`No translation found for ${Qe(e)}.`),this.parsedMessage=e,this.type="MissingTranslationError"}}const Ee=function(i,...e){if(Ee.translate){const n=Ee.translate(i,e);i=n[0],e=n[1]}let t=et(i[0],i.raw[0]);for(let n=1;ntypeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=Ee,Oe(8583)},8583:()=>{!function(e){const t=e.performance;function n(x){t&&t.mark&&t.mark(x)}function r(x,y){t&&t.measure&&t.measure(x,y)}n("Zone");const s=e.__Zone_symbol_prefix||"__zone_symbol__";function l(x){return s+x}const f=!0===e[l("forceDuplicateZoneCheck")];if(e.Zone){if(f||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let u=(()=>{class x{constructor(o,c){this._parent=o,this._name=c?c.name||"unnamed":"",this._properties=c&&c.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,c)}static assertZonePatched(){if(e.Promise!==fe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let o=x.current;for(;o.parent;)o=o.parent;return o}static get current(){return W.zone}static get currentTask(){return le}static __load_patch(o,c,b=!1){if(fe.hasOwnProperty(o)){if(!b&&f)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){const I="Zone:"+o;n(I),fe[o]=c(e,x,K),r(I,I)}}get parent(){return this._parent}get name(){return this._name}get(o){const c=this.getZoneWith(o);if(c)return c._properties[o]}getZoneWith(o){let c=this;for(;c;){if(c._properties.hasOwnProperty(o))return c;c=c._parent}return null}fork(o){if(!o)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,o)}wrap(o,c){if("function"!=typeof o)throw new Error("Expecting function got: "+o);const b=this._zoneDelegate.intercept(this,o,c),I=this;return function(){return I.runGuarded(b,this,arguments,c)}}run(o,c,b,I){W={parent:W,zone:this};try{return this._zoneDelegate.invoke(this,o,c,b,I)}finally{W=W.parent}}runGuarded(o,c=null,b,I){W={parent:W,zone:this};try{try{return this._zoneDelegate.invoke(this,o,c,b,I)}catch(J){if(this._zoneDelegate.handleError(this,J))throw J}}finally{W=W.parent}}runTask(o,c,b){if(o.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(o.zone||Q).name+"; Execution: "+this.name+")");if(o.state===B&&(o.type===ne||o.type===R))return;const I=o.state!=k;I&&o._transitionTo(k,$),o.runCount++;const J=le;le=o,W={parent:W,zone:this};try{o.type==R&&o.data&&!o.data.isPeriodic&&(o.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,o,c,b)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{o.state!==B&&o.state!==T&&(o.type==ne||o.data&&o.data.isPeriodic?I&&o._transitionTo($,k):(o.runCount=0,this._updateTaskCount(o,-1),I&&o._transitionTo(B,k,B))),W=W.parent,le=J}}scheduleTask(o){if(o.zone&&o.zone!==this){let b=this;for(;b;){if(b===o.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${o.zone.name}`);b=b.parent}}o._transitionTo(Y,B);const c=[];o._zoneDelegates=c,o._zone=this;try{o=this._zoneDelegate.scheduleTask(this,o)}catch(b){throw o._transitionTo(T,Y,B),this._zoneDelegate.handleError(this,b),b}return o._zoneDelegates===c&&this._updateTaskCount(o,1),o.state==Y&&o._transitionTo($,Y),o}scheduleMicroTask(o,c,b,I){return this.scheduleTask(new g(L,o,c,b,I,void 0))}scheduleMacroTask(o,c,b,I,J){return this.scheduleTask(new g(R,o,c,b,I,J))}scheduleEventTask(o,c,b,I,J){return this.scheduleTask(new g(ne,o,c,b,I,J))}cancelTask(o){if(o.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(o.zone||Q).name+"; Execution: "+this.name+")");o._transitionTo(U,$,k);try{this._zoneDelegate.cancelTask(this,o)}catch(c){throw o._transitionTo(T,U),this._zoneDelegate.handleError(this,c),c}return this._updateTaskCount(o,-1),o._transitionTo(B,U),o.runCount=0,o}_updateTaskCount(o,c){const b=o._zoneDelegates;-1==c&&(o._zoneDelegates=null);for(let I=0;Ix.hasTask(o,c),onScheduleTask:(x,y,o,c)=>x.scheduleTask(o,c),onInvokeTask:(x,y,o,c,b,I)=>x.invokeTask(o,c,b,I),onCancelTask:(x,y,o,c)=>x.cancelTask(o,c)};class v{constructor(y,o,c){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=y,this._parentDelegate=o,this._forkZS=c&&(c&&c.onFork?c:o._forkZS),this._forkDlgt=c&&(c.onFork?o:o._forkDlgt),this._forkCurrZone=c&&(c.onFork?this.zone:o._forkCurrZone),this._interceptZS=c&&(c.onIntercept?c:o._interceptZS),this._interceptDlgt=c&&(c.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=c&&(c.onIntercept?this.zone:o._interceptCurrZone),this._invokeZS=c&&(c.onInvoke?c:o._invokeZS),this._invokeDlgt=c&&(c.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=c&&(c.onInvoke?this.zone:o._invokeCurrZone),this._handleErrorZS=c&&(c.onHandleError?c:o._handleErrorZS),this._handleErrorDlgt=c&&(c.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=c&&(c.onHandleError?this.zone:o._handleErrorCurrZone),this._scheduleTaskZS=c&&(c.onScheduleTask?c:o._scheduleTaskZS),this._scheduleTaskDlgt=c&&(c.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=c&&(c.onScheduleTask?this.zone:o._scheduleTaskCurrZone),this._invokeTaskZS=c&&(c.onInvokeTask?c:o._invokeTaskZS),this._invokeTaskDlgt=c&&(c.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=c&&(c.onInvokeTask?this.zone:o._invokeTaskCurrZone),this._cancelTaskZS=c&&(c.onCancelTask?c:o._cancelTaskZS),this._cancelTaskDlgt=c&&(c.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=c&&(c.onCancelTask?this.zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const b=c&&c.onHasTask;(b||o&&o._hasTaskZS)&&(this._hasTaskZS=b?c:E,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=y,c.onScheduleTask||(this._scheduleTaskZS=E,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this.zone),c.onInvokeTask||(this._invokeTaskZS=E,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this.zone),c.onCancelTask||(this._cancelTaskZS=E,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this.zone))}fork(y,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,y,o):new u(y,o)}intercept(y,o,c){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,y,o,c):o}invoke(y,o,c,b,I){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,y,o,c,b,I):o.apply(c,b)}handleError(y,o){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,y,o)}scheduleTask(y,o){let c=o;if(this._scheduleTaskZS)this._hasTaskZS&&c._zoneDelegates.push(this._hasTaskDlgtOwner),c=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,y,o),c||(c=o);else if(o.scheduleFn)o.scheduleFn(o);else{if(o.type!=L)throw new Error("Task is missing scheduleFn.");C(o)}return c}invokeTask(y,o,c,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,y,o,c,b):o.callback.apply(c,b)}cancelTask(y,o){let c;if(this._cancelTaskZS)c=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,y,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");c=o.cancelFn(o)}return c}hasTask(y,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,y,o)}catch(c){this.handleError(y,c)}}_updateTaskCount(y,o){const c=this._taskCounts,b=c[y],I=c[y]=b+o;if(I<0)throw new Error("More tasks executed then were scheduled.");0!=b&&0!=I||this.hasTask(this.zone,{microTask:c.microTask>0,macroTask:c.macroTask>0,eventTask:c.eventTask>0,change:y})}}class g{constructor(y,o,c,b,I,J){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=y,this.source=o,this.data=b,this.scheduleFn=I,this.cancelFn=J,!c)throw new Error("callback is not defined");this.callback=c;const h=this;this.invoke=y===ne&&b&&b.useG?g.invokeTask:function(){return g.invokeTask.call(e,h,this,arguments)}}static invokeTask(y,o,c){y||(y=this),oe++;try{return y.runCount++,y.zone.runTask(y,o,c)}finally{1==oe&&p(),oe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,Y)}_transitionTo(y,o,c){if(this._state!==o&&this._state!==c)throw new Error(`${this.type} '${this.source}': can not transition to '${y}', expecting state '${o}'${c?" or '"+c+"'":""}, was '${this._state}'.`);this._state=y,y==B&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const A=l("setTimeout"),N=l("Promise"),P=l("then");let F,H=[],S=!1;function z(x){if(F||e[N]&&(F=e[N].resolve(0)),F){let y=F[P];y||(y=F.then),y.call(F,x)}else e[A](x,0)}function C(x){0===oe&&0===H.length&&z(p),x&&H.push(x)}function p(){if(!S){for(S=!0;H.length;){const x=H;H=[];for(let y=0;yW,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:C,showUncaughtError:()=>!u[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:z};let W={parent:null,zone:new u(null,null)},le=null,oe=0;function q(){}r("Zone","Zone"),e.Zone=u}(typeof window<"u"&&window||typeof self<"u"&&self||global);const de=Object.getOwnPropertyDescriptor,Se=Object.defineProperty,Oe=Object.getPrototypeOf,me=Object.create,nt=Array.prototype.slice,Re="addEventListener",Me="removeEventListener",ue=Zone.__symbol__(Re),Ce=Zone.__symbol__(Me),se="true",ee="false",Ne=Zone.__symbol__("");function Ae(e,t){return Zone.current.wrap(e,t)}function ze(e,t,n,r,s){return Zone.current.scheduleMacroTask(e,t,n,r,s)}const j=Zone.__symbol__,Ie=typeof window<"u",_e=Ie?window:void 0,X=Ie&&_e||"object"==typeof self&&self||global,rt="removeAttribute";function Le(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=Ae(e[n],t+"_"+n));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const xe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ve=!("nw"in X)&&typeof X.process<"u"&&"[object process]"==={}.toString.call(X.process),De=!ve&&!xe&&!(!Ie||!_e.HTMLElement),je=typeof X.process<"u"&&"[object process]"==={}.toString.call(X.process)&&!xe&&!(!Ie||!_e.HTMLElement),we={},ie=function(e){if(!(e=e||X.event))return;let t=we[e.type];t||(t=we[e.type]=j("ON_PROPERTY"+e.type));const n=this||e.target||X,r=n[t];let s;return De&&n===_e&&"error"===e.type?(s=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===s&&e.preventDefault()):(s=r&&r.apply(this,arguments),null!=s&&!s&&e.preventDefault()),s};function $e(e,t,n){let r=de(e,t);if(!r&&n&&de(n,t)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const s=j("on"+t+"patched");if(e.hasOwnProperty(s)&&e[s])return;delete r.writable,delete r.value;const l=r.get,f=r.set,u=t.slice(2);let E=we[u];E||(E=we[u]=j("ON_PROPERTY"+u)),r.set=function(v){let g=this;!g&&e===X&&(g=X),g&&("function"==typeof g[E]&&g.removeEventListener(u,ie),f&&f.call(g,null),g[E]=v,"function"==typeof v&&g.addEventListener(u,ie,!1))},r.get=function(){let v=this;if(!v&&e===X&&(v=X),!v)return null;const g=v[E];if(g)return g;if(l){let A=l.call(this);if(A)return r.set.call(this,A),"function"==typeof v[rt]&&v.removeAttribute(t),A}return null},Se(e,t,r),e[s]=!0}function We(e,t,n){if(t)for(let r=0;rfunction(f,u){const E=n(f,u);return E.cbIdx>=0&&"function"==typeof u[E.cbIdx]?ze(E.name,u[E.cbIdx],E,s):l.apply(f,u)})}function ae(e,t){e[j("OriginalDelegate")]=t}let He=!1,Be=!1;function st(){if(He)return Be;He=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Be=!0)}catch{}return Be}Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const r=Object.getOwnPropertyDescriptor,s=Object.defineProperty,f=n.symbol,u=[],E=!0===e[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=f("Promise"),g=f("then"),A="__creationTrace__";n.onUnhandledError=h=>{if(n.showUncaughtError()){const d=h&&h.rejection;d?console.error("Unhandled Promise rejection:",d instanceof Error?d.message:d,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",d,d instanceof Error?d.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;u.length;){const h=u.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(d){P(d)}}};const N=f("unhandledPromiseRejectionHandler");function P(h){n.onUnhandledError(h);try{const d=t[N];"function"==typeof d&&d.call(this,h)}catch{}}function H(h){return h&&h.then}function S(h){return h}function F(h){return o.reject(h)}const z=f("state"),C=f("value"),p=f("finally"),Q=f("parentPromiseValue"),B=f("parentPromiseState"),Y="Promise.then",$=null,k=!0,U=!1,T=0;function L(h,d){return a=>{try{K(h,d,a)}catch(_){K(h,!1,_)}}}const R=function(){let h=!1;return function(a){return function(){h||(h=!0,a.apply(null,arguments))}}},ne="Promise resolved with itself",fe=f("currentTaskTrace");function K(h,d,a){const _=R();if(h===a)throw new TypeError(ne);if(h[z]===$){let w=null;try{("object"==typeof a||"function"==typeof a)&&(w=a&&a.then)}catch(O){return _(()=>{K(h,!1,O)})(),h}if(d!==U&&a instanceof o&&a.hasOwnProperty(z)&&a.hasOwnProperty(C)&&a[z]!==$)le(a),K(h,a[z],a[C]);else if(d!==U&&"function"==typeof w)try{w.call(a,_(L(h,d)),_(L(h,!1)))}catch(O){_(()=>{K(h,!1,O)})()}else{h[z]=d;const O=h[C];if(h[C]=a,h[p]===p&&d===k&&(h[z]=h[B],h[C]=h[Q]),d===U&&a instanceof Error){const m=t.currentTask&&t.currentTask.data&&t.currentTask.data[A];m&&s(a,fe,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const D=h[C],Z=!!a&&p===a[p];Z&&(a[Q]=D,a[B]=O);const M=d.run(m,void 0,Z&&m!==F&&m!==S?[]:[D]);K(a,!0,M)}catch(D){K(a,!1,D)}},a)}const x=function(){},y=e.AggregateError;class o{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(d){return K(new this(null),k,d)}static reject(d){return K(new this(null),U,d)}static any(d){if(!d||"function"!=typeof d[Symbol.iterator])return Promise.reject(new y([],"All promises were rejected"));const a=[];let _=0;try{for(let m of d)_++,a.push(o.resolve(m))}catch{return Promise.reject(new y([],"All promises were rejected"))}if(0===_)return Promise.reject(new y([],"All promises were rejected"));let w=!1;const O=[];return new o((m,D)=>{for(let Z=0;Z{w||(w=!0,m(M))},M=>{O.push(M),_--,0===_&&(w=!0,D(new y(O,"All promises were rejected")))})})}static race(d){let a,_,w=new this((D,Z)=>{a=D,_=Z});function O(D){a(D)}function m(D){_(D)}for(let D of d)H(D)||(D=this.resolve(D)),D.then(O,m);return w}static all(d){return o.allWithCallback(d)}static allSettled(d){return(this&&this.prototype instanceof o?this:o).allWithCallback(d,{thenCallback:_=>({status:"fulfilled",value:_}),errorCallback:_=>({status:"rejected",reason:_})})}static allWithCallback(d,a){let _,w,O=new this((M,V)=>{_=M,w=V}),m=2,D=0;const Z=[];for(let M of d){H(M)||(M=this.resolve(M));const V=D;try{M.then(G=>{Z[V]=a?a.thenCallback(G):G,m--,0===m&&_(Z)},G=>{a?(Z[V]=a.errorCallback(G),m--,0===m&&_(Z)):w(G)})}catch(G){w(G)}m++,D++}return m-=2,0===m&&_(Z),O}constructor(d){const a=this;if(!(a instanceof o))throw new Error("Must be an instanceof Promise.");a[z]=$,a[C]=[];try{const _=R();d&&d(_(L(a,k)),_(L(a,U)))}catch(_){K(a,!1,_)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return o}then(d,a){var _;let w=null===(_=this.constructor)||void 0===_?void 0:_[Symbol.species];(!w||"function"!=typeof w)&&(w=this.constructor||o);const O=new w(x),m=t.current;return this[z]==$?this[C].push(m,O,d,a):oe(this,m,O,d,a),O}catch(d){return this.then(null,d)}finally(d){var a;let _=null===(a=this.constructor)||void 0===a?void 0:a[Symbol.species];(!_||"function"!=typeof _)&&(_=o);const w=new _(x);w[p]=p;const O=t.current;return this[z]==$?this[C].push(O,w,d,d):oe(this,O,w,d,d),w}}o.resolve=o.resolve,o.reject=o.reject,o.race=o.race,o.all=o.all;const c=e[v]=e.Promise;e.Promise=o;const b=f("thenPatched");function I(h){const d=h.prototype,a=r(d,"then");if(a&&(!1===a.writable||!a.configurable))return;const _=d.then;d[g]=_,h.prototype.then=function(w,O){return new o((D,Z)=>{_.call(this,D,Z)}).then(w,O)},h[b]=!0}return n.patchThen=I,c&&(I(c),ce(e,"fetch",h=>function J(h){return function(d,a){let _=h.apply(d,a);if(_ instanceof o)return _;let w=_.constructor;return w[b]||I(w),_}}(h))),Promise[t.__symbol__("uncaughtPromiseErrors")]=u,o}),Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=j("OriginalDelegate"),r=j("Promise"),s=j("Error"),l=function(){if("function"==typeof this){const v=this[n];if(v)return"function"==typeof v?t.call(v):Object.prototype.toString.call(v);if(this===Promise){const g=e[r];if(g)return t.call(g)}if(this===Error){const g=e[s];if(g)return t.call(g)}}return t.call(this)};l[n]=t,Function.prototype.toString=l;const f=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":f.call(this)}});let Te=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Te=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Te=!1}const Xe={useG:!0},re={},Ue={},Ye=new RegExp("^"+Ne+"(\\w+)(true|false)$"),it=j("propagationStopped");function Ke(e,t){const n=(t?t(e):e)+ee,r=(t?t(e):e)+se,s=Ne+n,l=Ne+r;re[e]={},re[e][ee]=s,re[e][se]=l}function ct(e,t,n,r){const s=r&&r.add||Re,l=r&&r.rm||Me,f=r&&r.listeners||"eventListeners",u=r&&r.rmAll||"removeAllListeners",E=j(s),v="."+s+":",g="prependListener",A="."+g+":",N=function(C,p,Q){if(C.isRemoved)return;const B=C.callback;let Y;"object"==typeof B&&B.handleEvent&&(C.callback=k=>B.handleEvent(k),C.originalDelegate=B);try{C.invoke(C,p,[Q])}catch(k){Y=k}const $=C.options;return $&&"object"==typeof $&&$.once&&p[l].call(p,Q.type,C.originalDelegate?C.originalDelegate:C.callback,$),Y};function P(C,p,Q){if(!(p=p||e.event))return;const B=C||p.target||e,Y=B[re[p.type][Q?se:ee]];if(Y){const $=[];if(1===Y.length){const k=N(Y[0],B,p);k&&$.push(k)}else{const k=Y.slice();for(let U=0;U{throw U})}}}const H=function(C){return P(this,C,!1)},S=function(C){return P(this,C,!0)};function F(C,p){if(!C)return!1;let Q=!0;p&&void 0!==p.useG&&(Q=p.useG);const B=p&&p.vh;let Y=!0;p&&void 0!==p.chkDup&&(Y=p.chkDup);let $=!1;p&&void 0!==p.rt&&($=p.rt);let k=C;for(;k&&!k.hasOwnProperty(s);)k=Oe(k);if(!k&&C[s]&&(k=C),!k||k[E])return!1;const U=p&&p.eventNameToString,T={},L=k[E]=k[s],R=k[j(l)]=k[l],ne=k[j(f)]=k[f],fe=k[j(u)]=k[u];let K;p&&p.prepend&&(K=k[j(p.prepend)]=k[p.prepend]);const o=Q?function(a){if(!T.isExisting)return L.call(T.target,T.eventName,T.capture?S:H,T.options)}:function(a){return L.call(T.target,T.eventName,a.invoke,T.options)},c=Q?function(a){if(!a.isRemoved){const _=re[a.eventName];let w;_&&(w=_[a.capture?se:ee]);const O=w&&a.target[w];if(O)for(let m=0;mfunction(s,l){s[it]=!0,r&&r.apply(s,l)})}function Qe(e,t,n,r,s){const l=Zone.__symbol__(r);if(t[l])return;const f=t[l]=t[r];t[r]=function(u,E,v){return E&&E.prototype&&s.forEach(function(g){const A=`${n}.${r}::`+g,N=E.prototype;try{if(N.hasOwnProperty(g)){const P=e.ObjectGetOwnPropertyDescriptor(N,g);P&&P.value?(P.value=e.wrapWithCurrentZone(P.value,A),e._redefineProperty(E.prototype,g,P)):N[g]&&(N[g]=e.wrapWithCurrentZone(N[g],A))}else N[g]&&(N[g]=e.wrapWithCurrentZone(N[g],A))}catch{}}),f.call(t,u,E,v)},e.attachOriginToPatched(t[r],f)}function lt(e,t,n){if(!n||0===n.length)return t;const r=n.filter(l=>l.target===e);if(!r||0===r.length)return t;const s=r[0].ignoreProperties;return t.filter(l=>-1===s.indexOf(l))}function ut(e,t,n,r){e&&We(e,lt(e,t,n),r)}function Ve(e){return Object.getOwnPropertyNames(e).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}Zone.__load_patch("util",(e,t,n)=>{const r=Ve(e);n.patchOnProperties=We,n.patchMethod=ce,n.bindArguments=Le,n.patchMacroTask=qe;const s=t.__symbol__("BLACK_LISTED_EVENTS"),l=t.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[s]=e[l]),e[s]&&(t[s]=t[l]=e[s]),n.patchEventPrototype=Je,n.patchEventTarget=ct,n.isIEOrEdge=st,n.ObjectDefineProperty=Se,n.ObjectGetOwnPropertyDescriptor=de,n.ObjectCreate=me,n.ArraySlice=nt,n.patchClass=be,n.wrapWithCurrentZone=Ae,n.filterProperties=lt,n.attachOriginToPatched=ae,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Qe,n.getGlobalObjects=()=>({globalSources:Ue,zoneSymbolEventNames:re,eventNames:r,isBrowser:De,isMix:je,isNode:ve,TRUE_STR:se,FALSE_STR:ee,ZONE_SYMBOL_PREFIX:Ne,ADD_EVENT_LISTENER_STR:Re,REMOVE_EVENT_LISTENER_STR:Me})});const Ee=j("zoneTask");function ge(e,t,n,r){let s=null,l=null;n+=r;const f={};function u(v){const g=v.data;return g.args[0]=function(){return v.invoke.apply(this,arguments)},g.handleId=s.apply(e,g.args),v}function E(v){return l.call(e,v.data.handleId)}s=ce(e,t+=r,v=>function(g,A){if("function"==typeof A[0]){const N={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?A[1]||0:void 0,args:A},P=A[0];A[0]=function(){try{return P.apply(this,arguments)}finally{N.isPeriodic||("number"==typeof N.handleId?delete f[N.handleId]:N.handleId&&(N.handleId[Ee]=null))}};const H=ze(t,A[0],N,u,E);if(!H)return H;const S=H.data.handleId;return"number"==typeof S?f[S]=H:S&&(S[Ee]=H),S&&S.ref&&S.unref&&"function"==typeof S.ref&&"function"==typeof S.unref&&(H.ref=S.ref.bind(S),H.unref=S.unref.bind(S)),"number"==typeof S||S?S:H}return v.apply(e,A)}),l=ce(e,n,v=>function(g,A){const N=A[0];let P;"number"==typeof N?P=f[N]:(P=N&&N[Ee],P||(P=N)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof N?delete f[N]:N&&(N[Ee]=null),P.zone.cancelTask(P)):v.apply(e,A)})}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",(e,t,n)=>{n.patchMethod(e,"queueMicrotask",r=>function(s,l){t.current.scheduleMicroTask("queueMicrotask",l[0])})}),Zone.__load_patch("timers",e=>{const t="set",n="clear";ge(e,t,n,"Timeout"),ge(e,t,n,"Interval"),ge(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ge(e,"request","cancel","AnimationFrame"),ge(e,"mozRequest","mozCancel","AnimationFrame"),ge(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let r=0;rfunction(E,v){return t.current.run(l,e,v,u)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{(function i(e,t){t.patchEventPrototype(e,t)})(e,n),function _t(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:s,FALSE_STR:l,ZONE_SYMBOL_PREFIX:f}=t.getGlobalObjects();for(let E=0;E{be("MutationObserver"),be("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,t,n)=>{be("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,t,n)=>{be("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{!function ft(e,t){if(ve&&!je||Zone[e.symbol("patchEvents")])return;const n=t.__Zone_ignore_on_properties;let r=[];if(De){const s=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const l=function ot(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:s,ignoreProperties:["error"]}]:[];ut(s,Ve(s),n&&n.concat(l),Oe(s))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s{!function et(e,t){const{isBrowser:n,isMix:r}=t.getGlobalObjects();(n||r)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function E(v){const g=v.XMLHttpRequest;if(!g)return;const A=g.prototype;let P=A[ue],H=A[Ce];if(!P){const T=v.XMLHttpRequestEventTarget;if(T){const L=T.prototype;P=L[ue],H=L[Ce]}}const S="readystatechange",F="scheduled";function z(T){const L=T.data,R=L.target;R[l]=!1,R[u]=!1;const ne=R[s];P||(P=R[ue],H=R[Ce]),ne&&H.call(R,S,ne);const fe=R[s]=()=>{if(R.readyState===R.DONE)if(!L.aborted&&R[l]&&T.state===F){const W=R[t.__symbol__("loadfalse")];if(0!==R.status&&W&&W.length>0){const le=T.invoke;T.invoke=function(){const oe=R[t.__symbol__("loadfalse")];for(let q=0;qfunction(T,L){return T[r]=0==L[2],T[f]=L[1],Q.apply(T,L)}),Y=j("fetchTaskAborting"),$=j("fetchTaskScheduling"),k=ce(A,"send",()=>function(T,L){if(!0===t.current[$]||T[r])return k.apply(T,L);{const R={target:T,url:T[f],isPeriodic:!1,args:L,aborted:!1},ne=ze("XMLHttpRequest.send",C,R,z,p);T&&!0===T[u]&&!R.aborted&&ne.state===F&&ne.invoke()}}),U=ce(A,"abort",()=>function(T,L){const R=function N(T){return T[n]}(T);if(R&&"string"==typeof R.type){if(null==R.cancelFn||R.data&&R.data.aborted)return;R.zone.cancelTask(R)}else if(!0===t.current[Y])return U.apply(T,L)})}(e);const n=j("xhrTask"),r=j("xhrSync"),s=j("xhrListener"),l=j("xhrScheduled"),f=j("xhrURL"),u=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function ke(e,t){const n=e.constructor.name;for(let r=0;r{const E=function(){return u.apply(this,Le(arguments,n+"."+s))};return ae(E,u),E})(l)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(r){return function(s){at(e,r).forEach(f=>{const u=e.PromiseRejectionEvent;if(u){const E=new u(r,{promise:s.promise,reason:s.rejection});f.invoke(E)}})}}e.PromiseRejectionEvent&&(t[j("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[j("rejectionHandledHandler")]=n("rejectionhandled"))})}},de=>{de(de.s=73)}]); -(self.webpackChunkstore_website_element=self.webpackChunkstore_website_element||[]).push([[179],{4974:(Le,ye,G)=>{"use strict";var I={};function m(n){return"function"==typeof n}function R(n){const e=n(o=>{Error.call(o),o.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}G.r(I),G.d(I,{Arc:()=>fS,BezierCurve:()=>vj,BoundingRect:()=>Kn,Circle:()=>lS,CompoundPath:()=>ehe,Ellipse:()=>pj,Group:()=>os,Image:()=>Wh,IncrementalDisplayable:()=>che,Line:()=>Yh,LinearGradient:()=>Cj,OrientedBoundingRect:()=>lw,Path:()=>Co,Point:()=>g1,Polygon:()=>Oj,Polyline:()=>aw,RadialGradient:()=>rhe,Rect:()=>Ii,Ring:()=>Mj,Sector:()=>Vz,Text:()=>ga,applyTransform:()=>gS,clipPointsByRect:()=>_he,clipRectByRect:()=>zhe,createIcon:()=>OS,extendPath:()=>dhe,extendShape:()=>phe,getShapeClass:()=>fhe,getTransform:()=>ghe,groupTransition:()=>Sj,initProps:()=>X2,isElementRemoved:()=>$z,lineLineIntersect:()=>Dj,linePolygonIntersect:()=>vhe,makeImage:()=>Wj,makePath:()=>bS,mergePath:()=>hhe,registerShape:()=>ep,removeElement:()=>pw,removeElementWithFadeOut:()=>xj,resizePath:()=>Tj,setTooltipConfig:()=>_S,subPixelOptimize:()=>bhe,subPixelOptimizeLine:()=>Gz,subPixelOptimizeRect:()=>Mhe,transformDirection:()=>Ohe,traverseElements:()=>zS,updateProps:()=>mu});const T=R(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((o,r)=>`${r+1}) ${o.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function C(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class B{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const i of e)i.remove(this);else e.remove(this);const{initialTeardown:o}=this;if(m(o))try{o()}catch(i){t=i instanceof T?i.errors:[i]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const i of r)try{Ae(i)}catch(a){t=t??[],a instanceof T?t=[...t,...a.errors]:t.push(a)}}if(t)throw new T(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Ae(t);else{if(t instanceof B){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&C(e,t)}remove(t){const{_finalizers:e}=this;e&&C(e,t),t instanceof B&&t._removeParent(this)}}B.EMPTY=(()=>{const n=new B;return n.closed=!0,n})();const K=B.EMPTY;function J(n){return n instanceof B||n&&"closed"in n&&m(n.remove)&&m(n.add)&&m(n.unsubscribe)}function Ae(n){m(n)?n():n.unsubscribe()}const Ne={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Je={setTimeout(n,t,...e){const{delegate:o}=Je;return o?.setTimeout?o.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Je;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function qt(n){Je.setTimeout(()=>{const{onUnhandledError:t}=Ne;if(!t)throw n;t(n)})}function At(){}const Ct=Vt("C",void 0,void 0);function Vt(n,t,e){return{kind:n,value:t,error:e}}let M0=null;function s0(n){if(Ne.useDeprecatedSynchronousErrorHandling){const t=!M0;if(t&&(M0={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:o}=M0;if(M0=null,e)throw o}}else n()}class Zt extends B{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,J(t)&&t.add(this)):this.destination=tt}static create(t,e,o){return new Z0(t,e,o)}next(t){this.isStopped?W0(function Mt(n){return Vt("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?W0(function Xe(n){return Vt("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?W0(Ct,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const n1=Function.prototype.bind;function g0(n,t){return n1.call(n,t)}class x1{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(o){bn(o)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(o){bn(o)}else bn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){bn(e)}}}class Z0 extends Zt{constructor(t,e,o){let r;if(super(),m(t)||!t)r={next:t??void 0,error:e??void 0,complete:o??void 0};else{let i;this&&Ne.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&g0(t.next,i),error:t.error&&g0(t.error,i),complete:t.complete&&g0(t.complete,i)}):r=t}this.destination=new x1(r)}}function bn(n){Ne.useDeprecatedSynchronousErrorHandling?function C0(n){Ne.useDeprecatedSynchronousErrorHandling&&M0&&(M0.errorThrown=!0,M0.error=n)}(n):qt(n)}function W0(n,t){const{onStoppedNotification:e}=Ne;e&&Je.setTimeout(()=>e(n,t))}const tt={closed:!0,next:At,error:function no(n){throw n},complete:At},ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function W(n){return n}function j(n){return 0===n.length?W:1===n.length?n[0]:function(e){return n.reduce((o,r)=>r(o),e)}}let U=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const o=new n;return o.source=this,o.operator=e,o}subscribe(e,o,r){const i=function Ce(n){return n&&n instanceof Zt||function ge(n){return n&&m(n.next)&&m(n.error)&&m(n.complete)}(n)&&J(n)}(e)?e:new Z0(e,o,r);return s0(()=>{const{operator:a,source:s}=this;i.add(a?a.call(i,s):s?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(o){e.error(o)}}forEach(e,o){return new(o=te(o))((r,i)=>{const a=new Z0({next:s=>{try{e(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:r});this.subscribe(a)})}_subscribe(e){var o;return null===(o=this.source)||void 0===o?void 0:o.subscribe(e)}[ne](){return this}pipe(...e){return j(e)(this)}toPromise(e){return new(e=te(e))((o,r)=>{let i;this.subscribe(a=>i=a,a=>r(a),()=>o(i))})}}return n.create=t=>new n(t),n})();function te(n){var t;return null!==(t=n??Ne.Promise)&&void 0!==t?t:Promise}const de=R(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let N=(()=>{class n extends U{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const o=new ae(this,this);return o.operator=e,o}_throwIfClosed(){if(this.closed)throw new de}next(e){s0(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const o of this.currentObservers)o.next(e)}})}error(e){s0(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:o}=this;for(;o.length;)o.shift().error(e)}})}complete(){s0(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:o,isStopped:r,observers:i}=this;return o||r?K:(this.currentObservers=null,i.push(e),new B(()=>{this.currentObservers=null,C(i,e)}))}_checkFinalizedStatuses(e){const{hasError:o,thrownError:r,isStopped:i}=this;o?e.error(r):i&&e.complete()}asObservable(){const e=new U;return e.source=this,e}}return n.create=(t,e)=>new ae(t,e),n})();class ae extends N{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,o;null===(o=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===o||o.call(e,t)}error(t){var e,o;null===(o=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===o||o.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,o;return null!==(o=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==o?o:K}}function Dt(n){return m(n?.lift)}function mt(n){return t=>{if(Dt(t))return t.lift(function(e){try{return n(e,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function V(n,t,e,o,r){return new je(n,t,e,o,r)}class je extends Zt{constructor(t,e,o,r,i,a){super(t),this.onFinalize=i,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){t.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=o?function(){try{o()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function $(n,t){return mt((e,o)=>{let r=0;e.subscribe(V(o,i=>{o.next(n.call(t,i,r++))}))})}function Ke(n,t,e,o){var a,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,o);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(r<3?a(i):r>3?a(t,e,i):a(t,e))||i);return r>3&&i&&Object.defineProperty(t,e,i),i}function q1(n){return this instanceof q1?(this.v=n,this):new q1(n)}function J1(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function L0(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],o=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(i){e[i]=n[i]&&function(a){return new Promise(function(s,c){!function r(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}(s,c,(a=n[i](a)).done,a.value)})}}}const tn=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function pn(n){return m(n?.then)}function Jt(n){return m(n[ne])}function kn(n){return Symbol.asyncIterator&&m(n?.[Symbol.asyncIterator])}function En(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const _1=function ar(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function u0(n){return m(n?.[_1])}function ta(n){return function cn(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(h){o[h]&&(r[h]=function(M){return new Promise(function(g,_){i.push([h,M,g,_])>1||s(h,M)})})}function s(h,M){try{!function c(h){h.value instanceof q1?Promise.resolve(h.value.v).then(l,u):d(i[0][2],h)}(o[h](M))}catch(g){d(i[0][3],g)}}function l(h){s("next",h)}function u(h){s("throw",h)}function d(h,M){h(M),i.shift(),i.length&&s(i[0][0],i[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:o,done:r}=yield q1(e.read());if(r)return yield q1(void 0);yield yield q1(o)}}finally{e.releaseLock()}})}function y0(n){return m(n?.getReader)}function D0(n){if(n instanceof U)return n;if(null!=n){if(Jt(n))return function Da(n){return new U(t=>{const e=n[ne]();if(m(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(tn(n))return function gn(n){return new U(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,qt)})}(n);if(kn(n))return W1(n);if(u0(n))return function mr(n){return new U(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(y0(n))return function K0(n){return W1(ta(n))}(n)}throw En(n)}function W1(n){return new U(t=>{(function $o(n,t){var e,o,r,i;return function Kt(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=J1(n);!(o=yield e.next()).done;)if(t.next(o.value),t.closed)return}catch(a){r={error:a}}finally{try{o&&!o.done&&(i=e.return)&&(yield i.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function s1(n,t,e,o=0,r=!1){const i=t.schedule(function(){e(),r?n.add(this.schedule(null,o)):this.unsubscribe()},o);if(n.add(i),!r)return i}function On(n,t,e=1/0){return m(t)?On((o,r)=>$((i,a)=>t(o,i,r,a))(D0(n(o,r))),e):("number"==typeof t&&(e=t),mt((o,r)=>function U1(n,t,e,o,r,i,a,s){const c=[];let l=0,u=0,d=!1;const h=()=>{d&&!c.length&&!l&&t.complete()},M=_=>l{i&&t.next(_),l++;let z=!1;D0(e(_,u++)).subscribe(V(t,y=>{r?.(y),i?M(y):t.next(y)},()=>{z=!0},void 0,()=>{if(z)try{for(l--;c.length&&lg(y)):g(y)}h()}catch(y){t.error(y)}}))};return n.subscribe(V(t,M,()=>{d=!0,h()})),()=>{s?.()}}(o,r,n,e)))}function nn(n=1/0){return On(W,n)}const h1=new U(n=>n.complete());function Rr(n){return n&&m(n.schedule)}function Sr(n){return n[n.length-1]}function ti(n){return m(Sr(n))?n.pop():void 0}function mi(n){return Rr(Sr(n))?n.pop():void 0}function gp(n,t=0){return mt((e,o)=>{e.subscribe(V(o,r=>s1(o,n,()=>o.next(r),t),()=>s1(o,n,()=>o.complete(),t),r=>s1(o,n,()=>o.error(r),t)))})}function jn(n,t=0){return mt((e,o)=>{o.add(n.schedule(()=>e.subscribe(o),t))})}function mp(n,t){if(!n)throw new Error("Iterable cannot be null");return new U(e=>{s1(e,t,()=>{const o=n[Symbol.asyncIterator]();s1(e,t,()=>{o.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Un(n,t){return t?function Su(n,t){if(null!=n){if(Jt(n))return function ml(n,t){return D0(n).pipe(jn(t),gp(t))}(n,t);if(tn(n))return function _l(n,t){return new U(e=>{let o=0;return t.schedule(function(){o===n.length?e.complete():(e.next(n[o++]),e.closed||this.schedule())})})}(n,t);if(pn(n))return function Op(n,t){return D0(n).pipe(jn(t),gp(t))}(n,t);if(kn(n))return mp(n,t);if(u0(n))return function zl(n,t){return new U(e=>{let o;return s1(e,t,()=>{o=n[_1](),s1(e,t,()=>{let r,i;try{({value:r,done:i}=o.next())}catch(a){return void e.error(a)}i?e.complete():e.next(r)},0,!0)}),()=>m(o?.return)&&o.return()})}(n,t);if(y0(n))return function Ru(n,t){return mp(ta(n),t)}(n,t)}throw En(n)}(n,t):D0(n)}function ka(...n){const t=mi(n),e=function Ac(n,t){return"number"==typeof Sr(n)?n.pop():t}(n,1/0),o=n;return o.length?1===o.length?D0(o[0]):nn(e)(Un(o,t)):h1}function vl(n={}){const{connector:t=(()=>new N),resetOnError:e=!0,resetOnComplete:o=!0,resetOnRefCountZero:r=!0}=n;return i=>{let a,s,c,l=0,u=!1,d=!1;const h=()=>{s?.unsubscribe(),s=void 0},M=()=>{h(),a=c=void 0,u=d=!1},g=()=>{const _=a;M(),_?.unsubscribe()};return mt((_,z)=>{l++,!d&&!u&&h();const y=c=c??t();z.add(()=>{l--,0===l&&!d&&!u&&(s=Du(g,r))}),y.subscribe(z),!a&&l>0&&(a=new Z0({next:x=>y.next(x),error:x=>{d=!0,h(),s=Du(M,e,x),y.error(x)},complete:()=>{u=!0,h(),s=Du(M,o),y.complete()}}),D0(_).subscribe(a))})(i)}}function Du(n,t,...e){if(!0===t)return void n();if(!1===t)return;const o=new Z0({next:()=>{o.unsubscribe(),n()}});return D0(t(...e)).subscribe(o)}function mn(n){for(let t in n)if(n[t]===mn)return t;throw Error("Could not find renamed property on target object.")}function _f(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Fn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Fn).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function _p(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const zf=mn({__forward_ref__:mn});function Yn(n){return n.__forward_ref__=Yn,n.toString=function(){return Fn(this())},n}function P0(n){return Al(n)?n():n}function Al(n){return"function"==typeof n&&n.hasOwnProperty(zf)&&n.__forward_ref__===Yn}function zp(n){return n&&!!n.\u0275providers}const qi="https://g.co/ng/security#xss";class Pt extends Error{constructor(t,e){super(vp(t,e)),this.code=t}}function vp(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function k0(n){return"string"==typeof n?n:null==n?"":String(n)}function ku(n,t){throw new Pt(-201,!1)}function na(n,t){null==n&&function _n(n,t,e,o){throw new Error(`ASSERTION ERROR: ${n}`+(null==o?"":` [Expected=> ${e} ${o} ${t} <=Actual]`))}(t,n,null,"!=")}function ot(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function bo(n){return{providers:n.providers||[],imports:n.imports||[]}}function Eu(n){return JM(n,Ap)||JM(n,yl)}function JM(n,t){return n.hasOwnProperty(t)?n[t]:null}function sr(n){return n&&(n.hasOwnProperty(zn)||n.hasOwnProperty(Cl))?n[zn]:null}const Ap=mn({\u0275prov:mn}),zn=mn({\u0275inj:mn}),yl=mn({ngInjectableDef:mn}),Cl=mn({ngInjectorDef:mn});var f0=(()=>((f0=f0||{})[f0.Default=0]="Default",f0[f0.Host=1]="Host",f0[f0.Self=2]="Self",f0[f0.SkipSelf=4]="SkipSelf",f0[f0.Optional=8]="Optional",f0))();let Nu;function Wi(n){const t=Nu;return Nu=n,t}function yp(n,t,e){const o=Eu(n);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:e&f0.Optional?null:void 0!==t?t:void ku(Fn(n))}const vn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),wl={},Yd="__NG_DI_FLAG__",Na="ngTempTokenPath",Hd="ngTokenPath",Cp=/\n/gm,Vn="\u0275",Ks="__source";let Pl;function wp(n){const t=Pl;return Pl=n,t}function Xd(n,t=f0.Default){if(void 0===Pl)throw new Pt(-203,!1);return null===Pl?yp(n,void 0,t):Pl.get(n,t&f0.Optional?null:void 0,t)}function Se(n,t=f0.Default){return(function eb(){return Nu}()||Xd)(P0(n),t)}function c0(n,t=f0.Default){return Se(n,Iu(t))}function Iu(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Pp(n){const t=[];for(let e=0;e((Li=Li||{})[Li.OnPush=0]="OnPush",Li[Li.Default=1]="Default",Li))(),ia=(()=>{return(n=ia||(ia={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",ia;var n})();const Ba={},dn=[],xp=mn({\u0275cmp:mn}),ni=mn({\u0275dir:mn}),ql=mn({\u0275pipe:mn}),An=mn({\u0275mod:mn}),Ms=mn({\u0275fac:mn}),qp=mn({__NG_ELEMENT_ID__:mn});let ob=0;function kt(n){return ra(()=>{const e=!0===n.standalone,o={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:o,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Li.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||dn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ia.Emulated,id:"c"+ob++,styles:n.styles||dn,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},i=n.dependencies,a=n.features;return r.inputs=ib(n.inputs,o),r.outputs=ib(n.outputs),a&&a.forEach(s=>s(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(rb).filter(Wp):null,r.pipeDefs=i?()=>("function"==typeof i?i():i).map(kr).filter(Wp):null,r})}function Fa(n,t,e){const o=n.\u0275cmp;o.directiveDefs=()=>("function"==typeof t?t():t).map(rb),o.pipeDefs=()=>("function"==typeof e?e():e).map(kr)}function rb(n){return z1(n)||Go(n)}function Wp(n){return null!==n}function Nn(n){return ra(()=>({type:n.type,bootstrap:n.bootstrap||dn,declarations:n.declarations||dn,imports:n.imports||dn,exports:n.exports||dn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function ib(n,t){if(null==n)return Ba;const e={};for(const o in n)if(n.hasOwnProperty(o)){let r=n[o],i=r;Array.isArray(r)&&(i=r[1],r=r[0]),e[r]=o,t&&(t[r]=i)}return e}const b0=kt;function Hn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function z1(n){return n[xp]||null}function Go(n){return n[ni]||null}function kr(n){return n[ql]||null}function oi(n,t){const e=n[An]||null;if(!e&&!0===t)throw new Error(`Type ${Fn(n)} does not have '\u0275mod' property.`);return e}const Er=0,jt=1,u1=2,Po=3,Ya=4,Wl=5,Nr=6,Tp=7,go=8,Re=9,rt=10,De=11,l0=12,N0=13,on=14,F1=15,I0=16,Pc=17,Rp=18,xo=19,Js=20,ab=21,yn=22,Sp=1,Cn=2,Ud=7,Bu=8,Qs=9,ri=10;function Ti(n){return Array.isArray(n)&&"object"==typeof n[Sp]}function _i(n){return Array.isArray(n)&&!0===n[Sp]}function bs(n){return 0!=(4&n.flags)}function xc(n){return n.componentOffset>-1}function Fu(n){return 1==(1&n.flags)}function zi(n){return null!==n.template}function sb(n){return 0!=(256&n[u1])}function qc(n,t){return n.hasOwnProperty(Ms)?n[Ms]:null}class lb{constructor(t,e,o){this.previousValue=t,this.currentValue=e,this.firstChange=o}isFirstChange(){return this.firstChange}}function Fo(){return Ep}function Ep(n){return n.type.prototype.ngOnChanges&&(n.setInput=Np),xf}function xf(){const n=Bp(this),t=n?.current;if(t){const e=n.previous;if(e===Ba)n.previous=t;else for(let o in t)e[o]=t[o];n.current=null,this.ngOnChanges(t)}}function Np(n,t,e,o){const r=this.declaredInputs[e],i=Bp(n)||function Jd(n,t){return n[Ip]=t}(n,{previous:Ba,current:null}),a=i.current||(i.current={}),s=i.previous,c=s[r];a[r]=new lb(c&&c.currentValue,t,s===Ba),n[o]=t}Fo.ngInherit=!0;const Ip="__ngSimpleChanges__";function Bp(n){return n[Ip]||null}const aa=function(n,t,e){},pb="svg";function _r(n){for(;Array.isArray(n);)n=n[Er];return n}function Lc(n,t){return _r(t[n])}function vi(n,t){return _r(t[n.index])}function Ll(n,t){return n.data[t]}function ec(n,t){return n[t]}function $n(n,t){const e=t[n];return Ti(e)?e:e[Er]}function e2(n){return 64==(64&n[u1])}function gs(n,t){return null==t?null:n[t]}function Ha(n){n[Rp]=0}function qf(n,t){n[Wl]+=t;let e=n,o=n[Po];for(;null!==o&&(1===t&&1===e[Wl]||-1===t&&0===e[Wl]);)o[Wl]+=t,e=o,o=o[Po]}const o1={lFrame:Ob(null),bindingsEnabled:!0};function hb(){return o1.bindingsEnabled}function gt(){return o1.lFrame.lView}function d1(){return o1.lFrame.tView}function T0(n){return o1.lFrame.contextLView=n,n[go]}function v0(n){return o1.lFrame.contextLView=null,n}function cr(){let n=bb();for(;null!==n&&64===n.type;)n=n.parent;return n}function bb(){return o1.lFrame.currentTNode}function Br(n,t){const e=o1.lFrame;e.currentTNode=n,e.isParent=t}function wt(){return o1.lFrame.isParent}function Wf(){o1.lFrame.isParent=!1}function lr(){const n=o1.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Os(){return o1.lFrame.bindingIndex}function Tl(){return o1.lFrame.bindingIndex++}function ms(n){const t=o1.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function Lf(n,t){const e=o1.lFrame;e.bindingIndex=e.bindingRootIndex=n,Fp(t)}function Fp(n){o1.lFrame.currentDirectiveIndex=n}function Tf(){return o1.lFrame.currentQueryIndex}function Rf(n){o1.lFrame.currentQueryIndex=n}function _s(n){const t=n[jt];return 2===t.type?t.declTNode:1===t.type?n[Nr]:null}function o2(n,t,e){if(e&f0.SkipSelf){let r=t,i=n;for(;!(r=r.parent,null!==r||e&f0.Host||(r=_s(i),null===r||(i=i[F1],10&r.type))););if(null===r)return!1;t=r,n=i}const o=o1.lFrame=ii();return o.currentTNode=t,o.lView=n,!0}function zs(n){const t=ii(),e=n[jt];o1.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function ii(){const n=o1.lFrame,t=null===n?null:n.child;return null===t?Ob(n):t}function Ob(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function ja(){const n=o1.lFrame;return o1.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const r2=ja;function Rl(){const n=ja();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ai(){return o1.lFrame.selectedIndex}function vs(n){o1.lFrame.selectedIndex=n}function yo(){const n=o1.lFrame;return Ll(n.tView,n.selectedIndex)}function Si(){o1.lFrame.currentNamespace=pb}function nc(){!function _b(){o1.lFrame.currentNamespace=null}()}function Sl(n,t){for(let e=t.directiveStart,o=t.directiveEnd;e=o)break}else t[c]<0&&(n[Rp]+=65536),(s>11>16&&(3&n[u1])===t){n[u1]+=2048,aa(4,s,i);try{i.call(s)}finally{aa(5,s,i)}}}else{aa(4,s,i);try{i.call(s)}finally{aa(5,s,i)}}}const Yp=-1;class Xu{constructor(t,e,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=o}}function Rc(n,t,e){let o=0;for(;ot){a=i-1;break}}}for(;i>16}(n),o=t;for(;e>0;)o=o[F1],e--;return o}let Qe=!0;function r0(n){const t=Qe;return Qe=n,t}const L1=255,Zo=5;let rc=0;const pr={};function vb(n,t){const e=jA(n,t);if(-1!==e)return e;const o=t[jt];o.firstCreatePass&&(n.injectorIndex=t.length,Ab(o.data,n),Ab(t,null),Ab(o.blueprint,null));const r=Sf(n,t),i=n.injectorIndex;if(k(r)){const a=Y(r),s=we(r,t),c=s[jt].data;for(let l=0;l<8;l++)t[i+l]=s[a+l]|c[a+l]}return t[i+8]=r,i}function Ab(n,t){n.push(0,0,0,0,0,0,0,0,t)}function jA(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Sf(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,o=null,r=t;for(;null!==r;){if(o=sa(r),null===o)return Yp;if(e++,r=r[F1],-1!==o.injectorIndex)return o.injectorIndex|e<<16}return Yp}function yb(n,t,e){!function XA(n,t,e){let o;"string"==typeof e?o=e.charCodeAt(0)||0:e.hasOwnProperty(qp)&&(o=e[qp]),null==o&&(o=e[qp]=rc++);const r=o&L1;t.data[n+(r>>Zo)]|=1<=0?t&L1:wb:t}(e);if("function"==typeof i){if(!o2(t,n,o))return o&f0.Host?UA(r,0,o):Cb(t,e,o,r);try{const a=i(o);if(null!=a||o&f0.Optional)return a;ku()}finally{r2()}}else if("number"==typeof i){let a=null,s=jA(n,t),c=Yp,l=o&f0.Host?t[I0][Nr]:null;for((-1===s||o&f0.SkipSelf)&&(c=-1===s?Sf(n,t):t[s+8],c!==Yp&&Va(o,!1)?(a=t[jt],s=Y(c),t=we(c,t)):s=-1);-1!==s;){const u=t[jt];if($A(i,s,u.data)){const d=Qx(s,t,e,a,o,l);if(d!==pr)return d}c=t[s+8],c!==Yp&&Va(o,t[jt].data[s+8]===l)&&$A(i,s,t)?(a=u,s=Y(c),t=we(c,t)):s=-1}}return r}function Qx(n,t,e,o,r,i){const a=t[jt],s=a.data[n+8],u=Hp(s,a,e,null==o?xc(s)&&Qe:o!=a&&0!=(3&s.type),r&f0.Host&&i===s);return null!==u?Xp(t,a,u,s):pr}function Hp(n,t,e,o,r){const i=n.providerIndexes,a=t.data,s=1048575&i,c=n.directiveStart,u=i>>20,h=r?s+u:n.directiveEnd;for(let M=o?s:s+u;M=c&&g.type===e)return M}if(r){const M=a[c];if(M&&zi(M)&&M.type===e)return c}return null}function Xp(n,t,e,o){let r=n[e];const i=t.data;if(function Ua(n){return n instanceof Xu}(r)){const a=r;a.resolving&&function UM(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Pt(-200,`Circular dependency in DI detected for ${n}${e}`)}(function un(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():k0(n)}(i[e]));const s=r0(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?Wi(a.injectImpl):null;o2(n,o,f0.Default);try{r=n[e]=a.factory(void 0,i,n,o),t.firstCreatePass&&e>=o.directiveStart&&function oc(n,t,e){const{ngOnChanges:o,ngOnInit:r,ngDoCheck:i}=t.type.prototype;if(o){const a=Ep(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),i&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,i),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,i))}(e,i[e],t)}finally{null!==c&&Wi(c),r0(s),a.resolving=!1,r2()}}return r}function $A(n,t,e){return!!(e[t+(n>>Zo)]&1<{const t=n.prototype.constructor,e=t[Ms]||Pb(t),o=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==o;){const i=r[Ms]||Pb(r);if(i&&i!==e)return i;r=Object.getPrototypeOf(r)}return i=>new i})}function Pb(n){return Al(n)?()=>{const t=Pb(P0(n));return t&&t()}:qc(n)}function sa(n){const t=n[jt],e=t.type;return 2===e?t.declTNode:1===e?n[Nr]:null}const Uu="__parameters__",El="__prop__metadata__";function Df(n){return function(...e){if(n){const o=n(...e);for(const r in o)this[r]=o[r]}}}function Vu(n,t,e){return ra(()=>{const o=Df(t);function r(...i){if(this instanceof r)return o.apply(this,i),this;const a=new r(...i);return s.annotation=a,s;function s(c,l,u){const d=c.hasOwnProperty(Uu)?c[Uu]:Object.defineProperty(c,Uu,{value:[]})[Uu];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(a),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}function xb(n,t,e,o){return ra(()=>{const r=Df(t);function i(...a){if(this instanceof i)return r.apply(this,a),this;const s=new i(...a);return function c(l,u){const d=l.constructor,h=d.hasOwnProperty(El)?d[El]:Object.defineProperty(d,El,{value:{}})[El];h[u]=h.hasOwnProperty(u)&&h[u]||[],h[u].unshift(s),o&&o(l,u,...a)}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class Qt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ot({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Gu(n,t){n.forEach(e=>Array.isArray(e)?Gu(e,t):t(e))}function KA(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Zu(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Sc(n,t){const e=[];for(let o=0;o=0?n[1|o]=e:(o=~o,function aq(n,t,e,o){let r=n.length;if(r==t)n.push(e,o);else if(1===r)n.push(o,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=o}}(n,o,t,e)),o}function Ku(n,t){const e=p2(n,t);if(e>=0)return n[1|e]}function p2(n,t){return function v3(n,t,e){let o=0,r=n.length>>e;for(;r!==o;){const i=o+(r-o>>1),a=n[i<t?r=i:o=i+1}return~(r<({token:n})),-1),Up=Ia(Vu("Optional"),8),u2=Ia(Vu("SkipSelf"),4);var ua=(()=>((ua=ua||{})[ua.Important=1]="Important",ua[ua.DashCase=2]="DashCase",ua))();const If=new Map;let dy=0;function L3(n){return If.get(n)||null}class Ib{get lView(){return L3(this.lViewId)}constructor(t,e,o){this.lViewId=t,this.nodeIndex=e,this.native=o}}function Ai(n){let t=Ff(n);if(t){if(Ti(t)){const e=t;let o,r,i;if(My(n)){if(o=function gy(n,t){const e=n[jt].components;if(e)for(let o=0;o=0){const s=_r(i[a]),c=Cs(i,a,s);ci(s,c),t=c;break}}}}return t||null}function Cs(n,t,e){return new Ib(n[Js],t,e)}const T3="__ngContext__";function ci(n,t){Ti(t)?(n[T3]=t[Js],function W3(n){If.set(n[Js],n)}(t)):n[T3]=t}function Ff(n){const t=n[T3];return"number"==typeof t?L3(t):t||null}function My(n){return n&&n.constructor&&n.constructor.\u0275cmp}function by(n,t){const e=n[jt];for(let o=yn;o0&&(n[e-1][Ya]=o[Ya]);const i=Zu(n,ri+t);!function yq(n,t){Xf(n,t,t[De],2,null,null),t[Er]=null,t[Nr]=null}(o[jt],o);const a=i[xo];null!==a&&a.detachView(i[jt]),o[Po]=null,o[Ya]=null,o[u1]&=-65}return o}function Hb(n,t){if(!(128&t[u1])){const e=t[De];e.destroyNode&&Xf(n,t,e,3,null,null),function vy(n){let t=n[N0];if(!t)return k3(n[jt],n);for(;t;){let e=null;if(Ti(t))e=t[N0];else{const o=t[ri];o&&(e=o)}if(!e){for(;t&&!t[Ya]&&t!==n;)Ti(t)&&k3(t[jt],t),t=t[Po];null===t&&(t=n),Ti(t)&&k3(t[jt],t),e=t&&t[Ya]}t=e}}(t)}}function k3(n,t){if(!(128&t[u1])){t[u1]&=-65,t[u1]|=128,function Wq(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let o=0;o=0?o[r=a]():o[r=-a].unsubscribe(),i+=2}else{const a=o[r=e[i+1]];e[i].call(a)}if(null!==o){for(let i=r+1;i-1){const{encapsulation:i}=n.data[o.directiveStart+r];if(i===ia.None||i===ia.Emulated)return null}return vi(o,e)}}(n,t.parent,e)}function td(n,t,e,o,r){n.insertBefore(t,e,o,r)}function wy(n,t,e){n.appendChild(t,e)}function Py(n,t,e,o,r){null!==o?td(n,t,e,o,r):wy(n,t,e)}function Xb(n,t){return n.parentNode(t)}function xy(n,t,e){return Wy(n,t,e)}let E3,$b,B3,Gb,Wy=function qy(n,t,e){return 40&n.type?vi(n,e):null};function jb(n,t,e,o){const r=yy(n,o,t),i=t[De],s=xy(o.parent||t[Nr],o,t);if(null!=r)if(Array.isArray(e))for(let c=0;cn,createScript:n=>n,createScriptURL:n=>n})}catch{}return $b}()?.createHTML(n)||n}function F3(){if(void 0===Gb&&(Gb=null,vn.trustedTypes))try{Gb=vn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Gb}function ky(n){return F3()?.createHTML(n)||n}function Ny(n){return F3()?.createScriptURL(n)||n}class od{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qi})`}}class Fq extends od{getTypeName(){return"HTML"}}class Yq extends od{getTypeName(){return"Style"}}class Iy extends od{getTypeName(){return"Script"}}class By extends od{getTypeName(){return"URL"}}class Hq extends od{getTypeName(){return"ResourceURL"}}function $a(n){return n instanceof od?n.changingThisBreaksApplicationSecurity:n}function Dc(n,t){const e=function Xq(n){return n instanceof od&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${qi})`)}return e===t}class Gq{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(nd(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class Zq{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const o=this.inertDocument.createElement("body");e.appendChild(o)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=nd(t),e;const o=this.inertDocument.createElement("body");return o.innerHTML=nd(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(o),o}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();Jb.hasOwnProperty(e)&&!Yy.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ng(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const t6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n6=/([^\#-~ |!])/g;function ng(n){return n.replace(/&/g,"&").replace(t6,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(n6,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let jf;function jy(n,t){let e=null;try{jf=jf||function Fy(n){const t=new Zq(n);return function Kq(){try{return!!(new window.DOMParser).parseFromString(nd(""),"text/html")}catch{return!1}}()?new Gq(t):t}(n);let o=t?String(t):"";e=jf.getInertBodyElement(o);let r=5,i=o;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,o=i,i=e.innerHTML,e=jf.getInertBodyElement(o)}while(o!==i);return nd((new tg).sanitizeChildren(X3(e)||e))}finally{if(e){const o=X3(e)||e;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function X3(n){return"content"in n&&function o6(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Oo=(()=>((Oo=Oo||{})[Oo.NONE=0]="NONE",Oo[Oo.HTML=1]="HTML",Oo[Oo.STYLE=2]="STYLE",Oo[Oo.SCRIPT=3]="SCRIPT",Oo[Oo.URL=4]="URL",Oo[Oo.RESOURCE_URL=5]="RESOURCE_URL",Oo))();function Uf(n){const t=sc();return t?ky(t.sanitize(Oo.HTML,n)||""):Dc(n,"HTML")?ky($a(n)):jy(function Dy(){return void 0!==B3?B3:typeof document<"u"?document:void 0}(),k0(n))}function io(n){const t=sc();return t?t.sanitize(Oo.URL,n)||"":Dc(n,"URL")?$a(n):Kb(k0(n))}function Uy(n){const t=sc();if(t)return Ny(t.sanitize(Oo.RESOURCE_URL,n)||"");if(Dc(n,"ResourceURL"))return Ny($a(n));throw new Pt(904,!1)}function sc(){const n=gt();return n&&n[l0]}const r1=new Qt("ENVIRONMENT_INITIALIZER"),Vy=new Qt("INJECTOR",-1),Di=new Qt("INJECTOR_DEF_TYPES");class Yo{get(t,e=wl){if(e===wl){const o=new Error(`NullInjectorError: No provider for ${Fn(t)}!`);throw o.name="NullInjectorError",o}return e}}function Gp(...n){return{\u0275providers:$y(0,n),\u0275fromNgModule:!0}}function $y(n,...t){const e=[],o=new Set;let r;return Gu(t,i=>{const a=i;j3(a,e,[],o)&&(r||(r=[]),r.push(a))}),void 0!==r&&Gy(r,e),e}function Gy(n,t){for(let e=0;e{t.push(i)})}}function j3(n,t,e,o){if(!(n=P0(n)))return!1;let r=null,i=sr(n);const a=!i&&z1(n);if(i||a){if(a&&!a.standalone)return!1;r=n}else{const c=n.ngModule;if(i=sr(c),!i)return!1;r=c}const s=o.has(r);if(a){if(s)return!1;if(o.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)j3(l,t,e,o)}}else{if(!i)return!1;{if(null!=i.imports&&!s){let l;o.add(r);try{Gu(i.imports,u=>{j3(u,t,e,o)&&(l||(l=[]),l.push(u))})}finally{}void 0!==l&&Gy(l,t)}if(!s){const l=qc(r)||(()=>new r);t.push({provide:r,useFactory:l,deps:dn},{provide:Di,useValue:r,multi:!0},{provide:r1,useValue:()=>Se(r),multi:!0})}const c=i.providers;null==c||s||U3(c,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}function U3(n,t){for(let e of n)zp(e)&&(e=e.\u0275providers),Array.isArray(e)?U3(e,t):t(e)}const V3=mn({provide:String,useValue:mn});function $3(n){return null!==n&&"object"==typeof n&&V3 in n}function Ec(n){return"function"==typeof n}const qo=new Qt("Set Injector scope."),Vf={},p6={};let Z3;function og(){return void 0===Z3&&(Z3=new Yo),Z3}class cc{}class Zy extends cc{get destroyed(){return this._destroyed}constructor(t,e,o,r){super(),this.parent=e,this.source=o,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Zp(t,a=>this.processProvider(a)),this.records.set(Vy,g2(void 0,this)),r.has("environment")&&this.records.set(cc,g2(void 0,this));const i=this.records.get(qo);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Di.multi,dn,f0.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=wp(this),o=Wi(void 0);try{return t()}finally{wp(e),Wi(o)}}get(t,e=wl,o=f0.Default){this.assertNotDestroyed(),o=Iu(o);const r=wp(this),i=Wi(void 0);try{if(!(o&f0.SkipSelf)){let s=this.records.get(t);if(void 0===s){const c=function Ga(n){return"function"==typeof n||"object"==typeof n&&n instanceof Qt}(t)&&Eu(t);s=c&&this.injectableDefInScope(c)?g2(K3(t),Vf):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}return(o&f0.Self?og():this.parent).get(t,e=o&f0.Optional&&e===wl?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Na]=a[Na]||[]).unshift(Fn(t)),r)throw a;return function xl(n,t,e,o){const r=n[Na];throw t[Ks]&&r.unshift(t[Ks]),n.message=function nb(n,t,e,o=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==Vn?n.slice(2):n;let r=Fn(t);if(Array.isArray(t))r=t.map(Fn).join(" -> ");else if("object"==typeof t){let i=[];for(let a in t)if(t.hasOwnProperty(a)){let s=t[a];i.push(a+":"+("string"==typeof s?JSON.stringify(s):Fn(s)))}r=`{${i.join(", ")}}`}return`${e}${o?"("+o+")":""}[${r}]: ${n.replace(Cp,"\n ")}`}("\n"+n.message,r,e,o),n[Hd]=r,n[Na]=null,n}(a,t,"R3InjectorError",this.source)}throw a}finally{Wi(i),wp(r)}}resolveInjectorInitializers(){const t=wp(this),e=Wi(void 0);try{const o=this.get(r1.multi,dn,f0.Self);for(const r of o)r()}finally{wp(t),Wi(e)}}toString(){const t=[],e=this.records;for(const o of e.keys())t.push(Fn(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Pt(205,!1)}processProvider(t){let e=Ec(t=P0(t))?t:P0(t&&t.provide);const o=function $f(n){return $3(n)?g2(void 0,n.useValue):g2(rg(n),Vf)}(t);if(Ec(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=g2(void 0,Vf,!0),r.factory=()=>Pp(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,o)}hydrate(t,e){return e.value===Vf&&(e.value=p6,e.value=e.factory()),"object"==typeof e.value&&e.value&&function ig(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=P0(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function K3(n){const t=Eu(n),e=null!==t?t.factory:qc(n);if(null!==e)return e;if(n instanceof Qt)throw new Pt(204,!1);if(n instanceof Function)return function Ky(n){const t=n.length;if(t>0)throw Sc(t,"?"),new Pt(204,!1);const e=function QM(n){const t=n&&(n[Ap]||n[yl]);if(t){const e=function r3(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Pt(204,!1)}function rg(n,t,e){let o;if(Ec(n)){const r=P0(n);return qc(r)||K3(r)}if($3(n))o=()=>P0(n.useValue);else if(function G3(n){return!(!n||!n.useFactory)}(n))o=()=>n.useFactory(...Pp(n.deps||[]));else if(function kc(n){return!(!n||!n.useExisting)}(n))o=()=>Se(P0(n.useExisting));else{const r=P0(n&&(n.useClass||n.provide));if(!function Jy(n){return!!n.deps}(n))return qc(r)||K3(r);o=()=>new r(...Pp(n.deps))}return o}function g2(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Zp(n,t){for(const e of n)Array.isArray(e)?Zp(e,t):e&&zp(e)?Zp(e.\u0275providers,t):t(e)}class u6{}class Qy{}class t4{resolveComponentFactory(t){throw function d6(n){const t=Error(`No component factory found for ${Fn(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let yi=(()=>{class n{}return n.NULL=new t4,n})();function v1(){return rd(cr(),gt())}function rd(n,t){return new fn(vi(n,t))}let fn=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=v1,n})();function n4(n){return n instanceof fn?n.nativeElement:n}class J3{}let P1=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function f6(){const n=gt(),e=$n(cr().index,n);return(Ti(e)?e:n)[De]}(),n})(),o4=(()=>{class n{}return n.\u0275prov=ot({token:n,providedIn:"root",factory:()=>null}),n})();class Bl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const h6=new Bl("15.1.5"),Q3={},e_="ngOriginalError";function t_(n){return n[e_]}class O2{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&t_(t);for(;e&&t_(e);)e=t_(e);return e||null}}function r4(n){return n.ownerDocument.defaultView}function Fl(n){return n instanceof Function?n():n}function i4(n,t,e){let o=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const i=t.length;if(r+i===o||n.charCodeAt(r+i)<=32)return r}e=r+1}}const a4="ng-template";function A6(n,t,e){let o=0;for(;oi?"":r[d+1].toLowerCase();const M=8&o?h:null;if(M&&-1!==i4(M,l,0)||2&o&&l!==h){if(lc(o))return!1;a=!0}}}}else{if(!a&&!lc(o)&&!lc(c))return!1;if(a&&lc(c))continue;a=!1,o=c|1&o}}return lc(o)||a}function lc(n){return 0==(1&n)}function s4(n,t,e,o){if(null===t)return-1;let r=0;if(o||!e){let i=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&o?r+="."+a:4&o&&(r+=" "+a);else""!==r&&!lc(a)&&(t+=u4(i,r),r=""),o=a,i=i||!lc(o);e++}return""!==r&&(t+=u4(i,r)),t}const X0={};function q(n){d4(d1(),gt(),ai()+n,!1)}function d4(n,t,e,o){if(!o)if(3==(3&t[u1])){const i=n.preOrderCheckHooks;null!==i&&ys(t,i,e)}else{const i=n.preOrderHooks;null!==i&&Hu(t,i,0,e)}vs(e)}function b4(n,t=null,e=null,o){const r=g4(n,t,e,o);return r.resolveInjectorInitializers(),r}function g4(n,t=null,e=null,o,r=new Set){const i=[e||dn,Gp(n)];return o=o||("object"==typeof n?void 0:Fn(n)),new Zy(i,t||og(),o||null,r)}let Jo=(()=>{class n{static create(e,o){if(Array.isArray(e))return b4({name:""},o,e,"");{const r=e.name??"";return b4({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=wl,n.NULL=new Yo,n.\u0275prov=ot({token:n,providedIn:"any",factory:()=>Se(Vy)}),n.__NG_ELEMENT_ID__=-1,n})();function Te(n,t=f0.Default){const e=gt();return null===e?Se(n,t):w1(cr(),e,P0(n),t)}function cg(n,t){const e=n.contentQueries;if(null!==e)for(let o=0;oyn&&d4(n,t,yn,!1),aa(a?2:0,r),e(o,r)}finally{vs(i),aa(a?3:1,r)}}function d_(n,t,e){if(bs(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,o,i)}}(n,t,o,Gf(n,e,r.hostVars,X0),r)}function Pe(n,t,e,o,r,i){const a=vi(n,t);!function Ie(n,t,e,o,r,i,a){if(null==i)n.removeAttribute(t,r,e);else{const s=null==a?k0(i):a(i,o||"",r);n.setAttribute(t,r,s,e)}}(t[De],a,i,n.value,e,o,r)}function pt(n,t,e,o,r,i){const a=i[t];if(null!==a){const s=o.setInput;for(let c=0;c0&&M1(e)}}function M1(n){for(let o=Yb(n);null!==o;o=R3(o))for(let r=ri;r0&&M1(i)}const e=n[jt].components;if(null!==e)for(let o=0;o0&&M1(r)}}function Y0(n,t){const e=$n(t,n),o=e[jt];(function B1(n,t){for(let e=t.length;e-1&&(D3(t,o),Zu(e,o))}this._attachedToViewContainer=!1}Hb(this._lView[jt],this._lView)}onDestroy(t){x4(this._lView[jt],this._lView,null,t)}markForCheck(){ki(this._cdRefInjectingView||this._lView)}detach(){this._lView[u1]&=-65}reattach(){this._lView[u1]|=64}detectChanges(){Yr(this._lView[jt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Pt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function wq(n,t){Xf(n,t,t[De],2,null,null)}(this._lView[jt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Pt(902,!1);this._appRef=t}}class Lte extends b_{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Yr(t[jt],t,t[go],!1)}checkNoChanges(){}get context(){return null}}class $E extends yi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=z1(t);return new g_(e,this.ngModule)}}function GE(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class Rte{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,o){o=Iu(o);const r=this.injector.get(t,Q3,o);return r!==Q3||e===Q3?r:this.parentInjector.get(t,e,o)}}class g_ extends Qy{get inputs(){return GE(this.componentDef.inputs)}get outputs(){return GE(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function q6(n){return n.map(x6).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,o,r){let i=(r=r||this.ngModule)instanceof cc?r:r?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const a=i?new Rte(t,i):t,s=a.get(J3,null);if(null===s)throw new Pt(407,!1);const c=a.get(o4,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=o?function V6(n,t,e){return n.selectRootElement(t,e===ia.ShadowDom)}(l,o,this.componentDef.encapsulation):da(l,u,function Tte(n){const t=n.toLowerCase();return"svg"===t?pb:"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,M=f_(0,null,null,1,0,null,null,null,null,null),g=lg(null,M,null,h,null,null,s,l,c,a,null);let _,z;zs(g);try{const y=this.componentDef;let x,L=null;y.findHostDirectiveDefs?(x=[],L=new Map,y.findHostDirectiveDefs(y,x,L),x.push(y)):x=[y];const S=function Dte(n,t){const e=n[jt],o=yn;return n[o]=t,_2(e,o,2,"#host",null)}(g,d),X=function kte(n,t,e,o,r,i,a,s){const c=r[jt];!function Ete(n,t,e,o){for(const r of n)t.mergedAttrs=O(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(S4(t,t.mergedAttrs,!0),null!==e&&I3(o,e,t))}(o,n,t,a);const l=i.createRenderer(t,e),u=lg(r,P4(e),null,e.onPush?32:16,r[n.index],n,i,l,s||null,null,null);return c.firstCreatePass&&b(c,n,o.length-1),N1(r,u),r[n.index]=u}(S,d,y,x,g,s,l);z=Ll(M,yn),d&&function Ite(n,t,e,o){if(o)Rc(n,e,["ng-version",h6.full]);else{const{attrs:r,classes:i}=function W6(n){const t=[],e=[];let o=1,r=2;for(;o0&&Sy(n,e,i.join(" "))}}(l,y,d,o),void 0!==e&&function Bte(n,t,e){const o=n.projection=[];for(let r=0;r=0;o--){const r=n[o];r.hostVars=t+=r.hostVars,r.hostAttrs=O(r.hostAttrs,e=O(e,r.hostAttrs))}}(o)}function oW(n){return n===Ba?{}:n===dn?[]:n}function Hte(n,t){const e=n.viewQuery;n.viewQuery=e?(o,r)=>{t(o,r),e(o,r)}:t}function Xte(n,t){const e=n.contentQueries;n.contentQueries=e?(o,r,i)=>{t(o,r,i),e(o,r,i)}:t}function jte(n,t){const e=n.hostBindings;n.hostBindings=e?(o,r)=>{t(o,r),e(o,r)}:t}let k4=null;function Jf(){if(!k4){const n=vn.Symbol;if(n&&n.iterator)k4=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(_r(S[o.index])):o.index;let L=null;if(!a&&s&&(L=function i0e(n,t,e,o){const r=n.cleanup;if(null!=r)for(let i=0;ic?s[c]:null}"string"==typeof a&&(i+=2)}return null}(n,t,r,o.index)),null!==L)(L.__ngLastListenerFn__||L).__ngNextListenerFn__=i,L.__ngLastListenerFn__=i,h=!1;else{i=fN(o,t,u,i,!1);const S=e.listen(z,r,i);d.push(i,S),l&&l.push(r,x,y,y+1)}}else i=fN(o,t,u,i,!1);const M=o.outputs;let g;if(h&&null!==M&&(g=M[r])){const _=g.length;if(_)for(let z=0;z<_;z+=2){const X=t[g[z]][g[z+1]].subscribe(i),H=d.length;d.push(i,X),l&&l.push(r,o.index,H,-(H+1))}}}(i,r,r[De],a,n,t,o),yt}function dN(n,t,e,o){try{return aa(6,t,e),!1!==e(o)}catch(r){return VE(n,r),!1}finally{aa(7,t,e)}}function fN(n,t,e,o,r){return function i(a){if(a===Function)return o;ki(n.componentOffset>-1?$n(n.index,t):t);let c=dN(t,e,o,a),l=i.__ngNextListenerFn__;for(;l;)c=dN(t,e,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function le(n=1){return function Tc(n){return(o1.lFrame.contextLView=function mb(n,t){for(;n>0;)t=t[F1],n--;return t}(n,o1.lFrame.contextLView))[go]}(n)}function a0e(n,t){let e=null;const o=function w6(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function sW(n){return 2|n}function eh(n){return(131068&n)>>2}function cW(n,t){return-131069&n|t<<2}function lW(n){return 1|n}function yN(n,t,e,o,r){const i=n[e+1],a=null===t;let s=o?z2(i):eh(i),c=!1;for(;0!==s&&(!1===c||a);){const u=n[s+1];d0e(n[s],t)&&(c=!0,n[s+1]=o?lW(u):sW(u)),s=o?z2(u):eh(u)}c&&(n[e+1]=o?sW(i):lW(i))}function d0e(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&p2(n,t)>=0}const li={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function CN(n){return n.substring(li.key,li.keyEnd)}function wN(n,t){const e=li.textEnd;return e===t?-1:(t=li.keyEnd=function b0e(n,t,e){for(;t32;)t++;return t}(n,li.key=t,e),zg(n,t,e))}function zg(n,t,e){for(;t=0;e=wN(t,e))Fr(n,CN(t),!0)}function Hl(n,t,e,o){const r=gt(),i=d1(),a=ms(2);i.firstUpdatePass&&TN(i,n,a,o),t!==X0&&fa(r,a,t)&&SN(i,i.data[ai()],r,r[De],n,r[a+1]=function w0e(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Fn($a(n)))),n}(t,e),o,a)}function Xl(n,t,e,o){const r=d1(),i=ms(2);r.firstUpdatePass&&TN(r,null,i,o);const a=gt();if(e!==X0&&fa(a,i,e)){const s=r.data[ai()];if(kN(s,o)&&!LN(r,i)){let c=o?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=_p(c,e||"")),iW(r,s,a,e,o)}else!function C0e(n,t,e,o,r,i,a,s){r===X0&&(r=dn);let c=0,l=0,u=0=n.expandoStartIndex}function TN(n,t,e,o){const r=n.data;if(null===r[e+1]){const i=r[ai()],a=LN(n,e);kN(i,o)&&null===t&&!a&&(t=!1),t=function _0e(n,t,e,o){const r=function n2(n){const t=o1.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let i=o?t.residualClasses:t.residualStyles;if(null===r)0===(o?t.classBindings:t.styleBindings)&&(e=__(e=pW(null,n,t,e,o),t.attrs,o),i=null);else{const a=t.directiveStylingLast;if(-1===a||n[a]!==r)if(e=pW(r,n,t,e,o),null===i){let c=function z0e(n,t,e){const o=e?t.classBindings:t.styleBindings;if(0!==eh(o))return n[z2(o)]}(n,t,o);void 0!==c&&Array.isArray(c)&&(c=pW(null,n,t,c[1],o),c=__(c,t.attrs,o),function v0e(n,t,e,o){n[z2(e?t.classBindings:t.styleBindings)]=o}(n,t,o,c))}else i=function A0e(n,t,e){let o;const r=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)):u=e,r)if(0!==c){const h=z2(n[s+1]);n[o+1]=I4(h,s),0!==h&&(n[h+1]=cW(n[h+1],o)),n[s+1]=function c0e(n,t){return 131071&n|t<<17}(n[s+1],o)}else n[o+1]=I4(s,0),0!==s&&(n[s+1]=cW(n[s+1],o)),s=o;else n[o+1]=I4(c,0),0===s?s=o:n[c+1]=cW(n[c+1],o),c=o;l&&(n[o+1]=sW(n[o+1])),yN(n,u,o,!0),yN(n,u,o,!1),function u0e(n,t,e,o,r){const i=r?n.residualClasses:n.residualStyles;null!=i&&"string"==typeof t&&p2(i,t)>=0&&(e[o+1]=lW(e[o+1]))}(t,u,n,o,i),a=I4(s,c),i?t.classBindings=a:t.styleBindings=a}(r,i,t,e,a,o)}}function pW(n,t,e,o,r){let i=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=n[r],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let h=e[r+1];h===X0&&(h=d?dn:void 0);let M=d?Ku(h,o):u===o?h:void 0;if(l&&!B4(M)&&(M=Ku(c,o)),B4(M)&&(s=M,a))return s;const g=n[r+1];r=a?z2(g):eh(g)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(s=Ku(c,o))}return s}function B4(n){return void 0!==n}function kN(n,t){return 0!=(n.flags&(t?8:16))}function p(n,t=""){const e=gt(),o=d1(),r=n+yn,i=o.firstCreatePass?_2(o,r,1,t,null):o.data[r],a=e[r]=function S3(n,t){return n.createText(t)}(e[De],t);jb(o,e,a,i),Br(i,!1)}function t0(n){return Rt("",n,""),t0}function Rt(n,t,e){const o=gt(),r=fg(o,n,t,e);return r!==X0&&id(o,ai(),r),Rt}function ad(n,t,e,o,r){const i=gt(),a=hg(i,n,t,e,o,r);return a!==X0&&id(i,ai(),a),ad}function wn(n,t,e){Xl(Fr,eu,fg(gt(),n,t,e),!0)}function sd(n,t,e,o,r){Xl(Fr,eu,hg(gt(),n,t,e,o,r),!0)}function XN(n,t,e,o,r,i,a){Xl(Fr,eu,function Mg(n,t,e,o,r,i,a,s){const l=N4(n,Os(),e,r,a);return ms(3),l?t+k0(e)+o+k0(r)+i+k0(a)+s:X0}(gt(),n,t,e,o,r,i,a),!0)}const th=void 0;var H0e=["en",[["a","p"],["AM","PM"],th],[["AM","PM"],th,th],[["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"]],th,[["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"]],th,[["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 a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",th,"{1} 'at' {0}",th],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Y0e(n){const e=Math.floor(Math.abs(n)),o=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===o?1:5}];let vg={};function Ja(n){const t=function X0e(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=oI(t);if(e)return e;const o=t.split("-")[0];if(e=oI(o),e)return e;if("en"===o)return H0e;throw new Pt(701,!1)}function oI(n){return n in vg||(vg[n]=vn.ng&&vn.ng.common&&vn.ng.common.locales&&vn.ng.common.locales[n]),vg[n]}var p0=(()=>((p0=p0||{})[p0.LocaleId=0]="LocaleId",p0[p0.DayPeriodsFormat=1]="DayPeriodsFormat",p0[p0.DayPeriodsStandalone=2]="DayPeriodsStandalone",p0[p0.DaysFormat=3]="DaysFormat",p0[p0.DaysStandalone=4]="DaysStandalone",p0[p0.MonthsFormat=5]="MonthsFormat",p0[p0.MonthsStandalone=6]="MonthsStandalone",p0[p0.Eras=7]="Eras",p0[p0.FirstDayOfWeek=8]="FirstDayOfWeek",p0[p0.WeekendRange=9]="WeekendRange",p0[p0.DateFormat=10]="DateFormat",p0[p0.TimeFormat=11]="TimeFormat",p0[p0.DateTimeFormat=12]="DateTimeFormat",p0[p0.NumberSymbols=13]="NumberSymbols",p0[p0.NumberFormats=14]="NumberFormats",p0[p0.CurrencyCode=15]="CurrencyCode",p0[p0.CurrencySymbol=16]="CurrencySymbol",p0[p0.CurrencyName=17]="CurrencyName",p0[p0.Currencies=18]="Currencies",p0[p0.Directionality=19]="Directionality",p0[p0.PluralCase=20]="PluralCase",p0[p0.ExtraData=21]="ExtraData",p0))();const Ag="en-US";let rI=Ag;function fW(n,t,e,o,r){if(n=P0(n),Array.isArray(n))for(let i=0;i>20;if(Ec(n)||!n.multi){const M=new Xu(c,r,Te),g=MW(s,t,r?u:u+h,d);-1===g?(yb(vb(l,a),i,s),hW(i,n,t.length),t.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(M),a.push(M)):(e[g]=M,a[g]=M)}else{const M=MW(s,t,u+h,d),g=MW(s,t,u,u+h),z=g>=0&&e[g];if(r&&!z||!r&&!(M>=0&&e[M])){yb(vb(l,a),i,s);const y=function F1e(n,t,e,o,r){const i=new Xu(n,e,Te);return i.multi=[],i.index=t,i.componentProviders=0,qI(i,r,o&&!e),i}(r?B1e:I1e,e.length,r,o,c);!r&&z&&(e[g].providerFactory=y),hW(i,n,t.length,0),t.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(y),a.push(y)}else hW(i,n,M>-1?M:g,qI(e[r?g:M],c,!r&&o));!r&&o&&z&&e[g].componentProviders++}}}function hW(n,t,e,o){const r=Ec(t),i=function So(n){return!!n.useClass}(t);if(r||i){const c=(i?P0(t.useClass):t).prototype.ngOnDestroy;if(c){const l=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=l.indexOf(e);-1===u?l.push(e,[o,c]):l[u+1].push(o,c)}else l.push(e,c)}}}function qI(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function MW(n,t,e,o){for(let r=e;r{e.providersResolver=(o,r)=>function N1e(n,t,e){const o=d1();if(o.firstCreatePass){const r=zi(n);fW(e,o.data,o.blueprint,r,!0),fW(t,o.data,o.blueprint,r,!1)}}(o,r?r(n):n,t)}}class yg{}class WI{}class LI extends yg{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $E(this);const o=oi(t);this._bootstrapComponents=Fl(o.bootstrap),this._r3Injector=g4(t,e,[{provide:yg,useValue:this},{provide:yi,useValue:this.componentFactoryResolver}],Fn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gW extends WI{constructor(t){super(),this.moduleType=t}create(t){return new LI(this.moduleType,t)}}class H1e extends yg{constructor(t,e,o){super(),this.componentFactoryResolver=new $E(this),this.instance=null;const r=new Zy([...t,{provide:yg,useValue:this},{provide:yi,useValue:this.componentFactoryResolver}],e||og(),o,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function j4(n,t,e=null){return new H1e(n,t,e).injector}let X1e=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const o=$y(0,e.type),r=o.length>0?j4([o],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=ot({token:n,providedIn:"environment",factory:()=>new n(Se(cc))}),n})();function Ho(n){n.getStandaloneInjector=t=>t.get(X1e).getOrCreateStandaloneInjector(n)}function Et(n,t,e){const o=lr()+n,r=gt();return r[o]===X0?Jp(r,o,e?t.call(e):t()):function O_(n,t){return n[t]}(r,o)}function Ht(n,t,e,o){return BI(gt(),lr(),n,t,e,o)}function Cr(n,t,e,o,r){return FI(gt(),lr(),n,t,e,o,r)}function NI(n,t,e,o,r,i){return function YI(n,t,e,o,r,i,a,s){const c=t+e;return N4(n,c,r,i,a)?Jp(n,c+3,s?o.call(s,r,i,a):o(r,i,a)):w_(n,c+3)}(gt(),lr(),n,t,e,o,r,i)}function w_(n,t){const e=n[t];return e===X0?void 0:e}function BI(n,t,e,o,r,i){const a=t+e;return fa(n,a,r)?Jp(n,a+1,i?o.call(i,r):o(r)):w_(n,a+1)}function FI(n,t,e,o,r,i,a){const s=t+e;return Qf(n,s,r,i)?Jp(n,s+2,a?o.call(a,r,i):o(r,i)):w_(n,s+2)}function HI(n,t,e,o,r,i,a,s,c){const l=t+e;return function Bc(n,t,e,o,r,i){const a=Qf(n,t,e,o);return Qf(n,t+2,r,i)||a}(n,l,r,i,a,s)?Jp(n,l+4,c?o.call(c,r,i,a,s):o(r,i,a,s)):w_(n,l+4)}function ut(n,t){const e=d1();let o;const r=n+yn;e.firstCreatePass?(o=function rne(n,t){if(t)for(let e=t.length-1;e>=0;e--){const o=t[e];if(n===o.name)return o}}(t,e.pipeRegistry),e.data[r]=o,o.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,o.onDestroy)):o=e.data[r];const i=o.factory||(o.factory=qc(o.type)),a=Wi(Te);try{const s=r0(!1),c=i();return r0(s),function n0e(n,t,e,o){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=o}(e,gt(),r,c),c}finally{Wi(a)}}function a0(n,t,e){const o=n+yn,r=gt(),i=ec(r,o);return P_(r,o)?BI(r,lr(),t,i.transform,e,i):i.transform(e)}function mo(n,t,e,o){const r=n+yn,i=gt(),a=ec(i,r);return P_(i,r)?FI(i,lr(),t,a.transform,e,o,a):a.transform(e,o)}function ha(n,t,e,o,r,i){const a=n+yn,s=gt(),c=ec(s,a);return P_(s,a)?HI(s,lr(),t,c.transform,e,o,r,i,c):c.transform(e,o,r,i)}function P_(n,t){return n[jt].data[t].pure}function mW(n){return t=>{setTimeout(n,void 0,t)}}const G1=class sne extends N{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,o){let r=t,i=e||(()=>null),a=o;if(t&&"object"==typeof t){const c=t;r=c.next?.bind(c),i=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(i=mW(i),r&&(r=mW(r)),a&&(a=mW(a)));const s=super.subscribe({next:r,error:i,complete:a});return t instanceof B&&t.add(s),s}};function cne(){return this._results[Jf()]()}class _W{get changes(){return this._changes||(this._changes=new G1)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Jf(),o=_W.prototype;o[e]||(o[e]=cne)}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,e){return this._results.reduce(t,e)}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,e){const o=this;o.dirty=!1;const r=function Ko(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ca(n,t,e){if(n.length!==t.length)return!1;for(let o=0;o{class n{}return n.__NG_ELEMENT_ID__=une,n})();const lne=Hc,pne=class extends lne{constructor(t,e,o){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=o}createEmbeddedView(t,e){const o=this._declarationTContainer.tViews,r=lg(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,null,e||null);r[Pc]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[xo];return null!==a&&(r[xo]=a.createEmbeddedView(o)),pg(o,r,t),new b_(r)}};function une(){return U4(cr(),gt())}function U4(n,t){return 4&n.type?new pne(t,n,rd(n,t)):null}let pc=(()=>{class n{}return n.__NG_ELEMENT_ID__=dne,n})();function dne(){return VI(cr(),gt())}const fne=pc,jI=class extends fne{constructor(t,e,o){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=o}get element(){return rd(this._hostTNode,this._hostLView)}get injector(){return new c2(this._hostTNode,this._hostLView)}get parentInjector(){const t=Sf(this._hostTNode,this._hostLView);if(k(t)){const e=we(t,this._hostLView),o=Y(t);return new c2(e[jt].data[o+8],e)}return new c2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=UI(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ri}createEmbeddedView(t,e,o){let r,i;"number"==typeof o?r=o:null!=o&&(r=o.index,i=o.injector);const a=t.createEmbeddedView(e||{},i);return this.insert(a,r),a}createComponent(t,e,o,r,i){const a=t&&!function l2(n){return"function"==typeof n}(t);let s;if(a)s=e;else{const d=e||{};s=d.index,o=d.injector,r=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const c=a?t:new g_(z1(t)),l=o||this.parentInjector;if(!i&&null==c.ngModule){const h=(a?l:this.parentInjector).get(cc,null);h&&(i=h)}const u=c.create(l,r,void 0,i);return this.insert(u.hostView,s),u}insert(t,e){const o=t._lView,r=o[jt];if(function p3(n){return _i(n[Po])}(o)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=o[Po],h=new jI(d,d[Nr],d[Po]);h.detach(h.indexOf(t))}}const i=this._adjustIndex(e),a=this._lContainer;!function Pq(n,t,e,o){const r=ri+o,i=e.length;o>0&&(e[r-1][Ya]=t),o0)o.push(a[s/2]);else{const l=i[s+1],u=t[-c];for(let d=ri;d({bindingPropertyName:n})),Ine=xb("HostListener",(n,t)=>({eventName:n,args:t}));function $4(...n){}const G4=new Qt("Application Initializer");let Z4=(()=>{class n{constructor(e){this.appInits=e,this.resolve=$4,this.reject=$4,this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,r)=>{this.resolve=o,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],o=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{i.subscribe({complete:s,error:c})});e.push(a)}}Promise.all(e).then(()=>{o()}).catch(r=>{this.reject(r)}),0===e.length&&o(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(Se(G4,8))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const q_=new Qt("AppId",{providedIn:"root",factory:function m7(){return`${LW()}${LW()}${LW()}`}});function LW(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _7=new Qt("Platform Initializer"),Pg=new Qt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),z7=new Qt("appBootstrapListener");let Bne=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const cd=new Qt("LocaleId",{providedIn:"root",factory:()=>c0(cd,f0.Optional|f0.SkipSelf)||function Fne(){return typeof $localize<"u"&&$localize.locale||Ag}()}),Yne=new Qt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Hne{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let v7=(()=>{class n{compileModuleSync(e){return new gW(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const o=this.compileModuleSync(e),i=Fl(oi(e).declarations).reduce((a,s)=>{const c=z1(s);return c&&a.push(new g_(c)),a},[]);return new Hne(o,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Une=(()=>Promise.resolve(0))();function TW(n){typeof Zone>"u"?Une.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Lo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new G1(!1),this.onMicrotaskEmpty=new G1(!1),this.onStable=new G1(!1),this.onError=new G1(!1),typeof Zone>"u")throw new Pt(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!o&&e,r.shouldCoalesceRunChangeDetection=o,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Vne(){let n=vn.requestAnimationFrame,t=vn.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Zne(n){const t=()=>{!function Gne(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(vn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,SW(n),n.isCheckStableRunning=!0,RW(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),SW(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,o,r,i,a,s)=>{try{return C7(n),e.invokeTask(r,i,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||n.shouldCoalesceRunChangeDetection)&&t(),w7(n)}},onInvoke:(e,o,r,i,a,s,c)=>{try{return C7(n),e.invoke(r,i,a,s,c)}finally{n.shouldCoalesceRunChangeDetection&&t(),w7(n)}},onHasTask:(e,o,r,i)=>{e.hasTask(r,i),o===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,SW(n),RW(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,o,r,i)=>(e.handleError(r,i),n.runOutsideAngular(()=>n.onError.emit(i)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Lo.isInAngularZone())throw new Pt(909,!1)}static assertNotInAngularZone(){if(Lo.isInAngularZone())throw new Pt(909,!1)}run(t,e,o){return this._inner.run(t,e,o)}runTask(t,e,o,r){const i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+r,t,$ne,$4,$4);try{return i.runTask(a,e,o)}finally{i.cancelTask(a)}}runGuarded(t,e,o){return this._inner.runGuarded(t,e,o)}runOutsideAngular(t){return this._outer.run(t)}}const $ne={};function RW(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function SW(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function C7(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function w7(n){n._nesting--,RW(n)}class Kne{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new G1,this.onMicrotaskEmpty=new G1,this.onStable=new G1,this.onError=new G1}run(t,e,o){return t.apply(e,o)}runGuarded(t,e,o){return t.apply(e,o)}runOutsideAngular(t){return t()}runTask(t,e,o,r){return t.apply(e,o)}}const P7=new Qt(""),K4=new Qt("");let EW,DW=(()=>{class n{constructor(e,o,r){this._ngZone=e,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,EW||(function Jne(n){EW=n}(r),r.addToWindow(o)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Lo.assertNotInAngularZone(),TW(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())TW(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(e)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,o,r){let i=-1;o&&o>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==i),e(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:r})}whenStable(e,o,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,o,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,o,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(Se(Lo),Se(kW),Se(K4))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})(),kW=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,o){this._applications.set(e,o)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,o=!0){return EW?.findTestabilityInTree(this,e,o)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),y2=null;const x7=new Qt("AllowMultipleToken"),NW=new Qt("PlatformDestroyListeners"),ld=!1;class q7{constructor(t,e){this.name=t,this.token=e}}function L7(n,t,e=[]){const o=`Platform: ${t}`,r=new Qt(o);return(i=[])=>{let a=IW();if(!a||a.injector.get(x7,!1)){const s=[...e,...i,{provide:r,useValue:!0}];n?n(s):function toe(n){if(y2&&!y2.get(x7,!1))throw new Pt(400,!1);y2=n;const t=n.get(R7);(function W7(n){const t=n.get(_7,null);t&&t.forEach(e=>e())})(n)}(function T7(n=[],t){return Jo.create({name:t,providers:[{provide:qo,useValue:"platform"},{provide:NW,useValue:new Set([()=>y2=null])},...n]})}(s,o))}return function ooe(n){const t=IW();if(!t)throw new Pt(401,!1);return t}()}}function IW(){return y2?.get(R7)??null}let R7=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,o){const r=function D7(n,t){let e;return e="noop"===n?new Kne:("zone.js"===n?void 0:n)||new Lo(t),e}(o?.ngZone,function S7(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(o)),i=[{provide:Lo,useValue:r}];return r.run(()=>{const a=Jo.create({providers:i,parent:this.injector,name:e.moduleType.name}),s=e.create(a),c=s.injector.get(O2,null);if(!c)throw new Pt(402,!1);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:u=>{c.handleError(u)}});s.onDestroy(()=>{J4(this._modules,s),l.unsubscribe()})}),function k7(n,t,e){try{const o=e();return m_(o)?o.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):o}catch(o){throw t.runOutsideAngular(()=>n.handleError(o)),o}}(c,r,()=>{const l=s.injector.get(Z4);return l.runInitializers(),l.donePromise.then(()=>(function iI(n){na(n,"Expected localeId to be defined"),"string"==typeof n&&(rI=n.toLowerCase().replace(/_/g,"-"))}(s.injector.get(cd,Ag)||Ag),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,o=[]){const r=E7({},o);return function Qne(n,t,e){const o=new gW(e);return Promise.resolve(o)}(0,0,e).then(i=>this.bootstrapModuleFactory(i,r))}_moduleDoBootstrap(e){const o=e.injector.get(C2);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>o.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Pt(-403,!1);e.instance.ngDoBootstrap(o)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Pt(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const e=this._injector.get(NW,null);e&&(e.forEach(o=>o()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(Se(Jo))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function E7(n,t){return Array.isArray(t)?t.reduce(E7,n):{...n,...t}}let C2=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,o,r){this._zone=e,this._injector=o,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new U(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new U(s=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Lo.assertNotInAngularZone(),TW(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Lo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=ka(i,a.pipe(vl()))}bootstrap(e,o){const r=e instanceof Qy;if(!this._injector.get(Z4).done){!r&&function Lp(n){const t=z1(n)||Go(n)||kr(n);return null!==t&&t.standalone}(e);throw new Pt(405,ld)}let a;a=r?e:this._injector.get(yi).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function eoe(n){return n.isBoundToModule}(a)?void 0:this._injector.get(yg),l=a.create(Jo.NULL,[],o||a.selector,s),u=l.location.nativeElement,d=l.injector.get(P7,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),J4(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new Pt(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const o=e;this._views.push(o),o.attachToAppRef(this)}detachView(e){const o=e;J4(this._views,o),o.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const o=this._injector.get(z7,[]);o.push(...this._bootstrapListeners),o.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>J4(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Pt(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(Se(Lo),Se(cc),Se(O2))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function J4(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let dc=(()=>{class n{}return n.__NG_ELEMENT_ID__=ioe,n})();function ioe(n){return function aoe(n,t,e){if(xc(n)&&!e){const o=$n(n.index,t);return new b_(o,o)}return 47&n.type?new b_(t[I0],t):null}(cr(),gt(),16==(16&n))}class Y7{constructor(){}supports(t){return E4(t)}create(t){return new doe(t)}}const uoe=(n,t)=>t;class doe{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||uoe}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,o=this._removalsHead,r=0,i=null;for(;e||o;){const a=!o||e&&e.currentIndex{a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(o&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),o=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,o,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):t=this._addAfter(new foe(e,o),i,r),t}_verifyReinsertion(t,e,o,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,o),this._addToMoves(t,o),t}_moveAfter(t,e,o){return this._unlink(t),this._insertAfter(t,e,o),this._addToMoves(t,o),t}_addAfter(t,e,o){return this._insertAfter(t,e,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,o){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new H7),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,o=t._next;return null===e?this._itHead=o:e._next=o,null===o?this._itTail=e:o._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new H7),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class foe{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class hoe{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(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,e){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===e||e<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const e=t._prevDup,o=t._nextDup;return null===e?this._head=o:e._nextDup=o,null===o?this._tail=e:o._prevDup=e,null===this._head}}class H7{constructor(){this.map=new Map}put(t){const e=t.trackById;let o=this.map.get(e);o||(o=new hoe,this.map.set(e,o)),o.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function X7(n,t,e){const o=n.previousIndex;if(null===o)return o;let r=0;return e&&o{if(e&&e.key===r)this._maybeAddToChanges(e,o),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(r,o);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let o=e;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const o=t._prev;return e._next=t,e._prev=o,t._prev=e,o&&(o._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const i=r._prev,a=r._next;return i&&(i._next=a),a&&(a._prev=i),r._next=null,r._prev=null,r}const o=new boe(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(o=>e(t[o],o))}}class boe{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function U7(){return new tC([new Y7])}let tC=(()=>{class n{constructor(e){this.factories=e}static create(e,o){if(null!=o){const r=o.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:o=>n.create(e,o||U7()),deps:[[n,new u2,new Up]]}}find(e){const o=this.factories.find(r=>r.supports(e));if(null!=o)return o;throw new Pt(901,!1)}}return n.\u0275prov=ot({token:n,providedIn:"root",factory:U7}),n})();function V7(){return new W_([new j7])}let W_=(()=>{class n{constructor(e){this.factories=e}static create(e,o){if(o){const r=o.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:o=>n.create(e,o||V7()),deps:[[n,new u2,new Up]]}}find(e){const o=this.factories.find(r=>r.supports(e));if(o)return o;throw new Pt(901,!1)}}return n.\u0275prov=ot({token:n,providedIn:"root",factory:V7}),n})();const moe=L7(null,"core",[]);let _oe=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(Se(C2))},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({}),n})();function xg(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function $7(n,t){const e=z1(n),o=t.elementInjector||og();return new g_(e).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}let jW=null;function tu(){return jW}class Aoe{}const Hr=new Qt("DocumentToken");let UW=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:function(){return function yoe(){return Se(G7)}()},providedIn:"platform"}),n})();const Coe=new Qt("Location Initialized");let G7=(()=>{class n extends UW{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return tu().getBaseHref(this._doc)}onPopState(e){const o=tu().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",e,!1),()=>o.removeEventListener("popstate",e)}onHashChange(e){const o=tu().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",e,!1),()=>o.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,o,r){Z7()?this._history.pushState(e,o,r):this._location.hash=r}replaceState(e,o,r){Z7()?this._history.replaceState(e,o,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(Se(Hr))},n.\u0275prov=ot({token:n,factory:function(){return function woe(){return new G7(Se(Hr))}()},providedIn:"platform"}),n})();function Z7(){return!!window.history.pushState}function VW(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function K7(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function pd(n){return n&&"?"!==n[0]?"?"+n:n}let oh=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:function(){return c0(Q7)},providedIn:"root"}),n})();const J7=new Qt("appBaseHref");let Q7=(()=>{class n extends oh{constructor(e,o){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??c0(Hr).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return VW(this._baseHref,e)}path(e=!1){const o=this._platformLocation.pathname+pd(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${o}${r}`:o}pushState(e,o,r,i){const a=this.prepareExternalUrl(r+pd(i));this._platformLocation.pushState(e,o,a)}replaceState(e,o,r,i){const a=this.prepareExternalUrl(r+pd(i));this._platformLocation.replaceState(e,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(Se(UW),Se(J7,8))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Poe=(()=>{class n extends oh{constructor(e,o){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=o&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}prepareExternalUrl(e){const o=VW(this._baseHref,e);return o.length>0?"#"+o:o}pushState(e,o,r,i){let a=this.prepareExternalUrl(r+pd(i));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,o,a)}replaceState(e,o,r,i){let a=this.prepareExternalUrl(r+pd(i));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(Se(UW),Se(J7,8))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})(),$W=(()=>{class n{constructor(e){this._subject=new G1,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const o=this._locationStrategy.getBaseHref();this._basePath=function Woe(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(K7(eB(o))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,o=""){return this.path()==this.normalize(e+pd(o))}normalize(e){return n.stripTrailingSlash(function qoe(n,t){return n&&new RegExp(`^${n}([/;?#]|$)`).test(t)?t.substring(n.length):t}(this._basePath,eB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,o="",r=null){this._locationStrategy.pushState(r,"",e,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+pd(o)),r)}replaceState(e,o="",r=null){this._locationStrategy.replaceState(r,"",e,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+pd(o)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)})),()=>{const o=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(o,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",o){this._urlChangeListeners.forEach(r=>r(e,o))}subscribe(e,o,r){return this._subject.subscribe({next:e,error:o,complete:r})}}return n.normalizeQueryParams=pd,n.joinWithSlash=VW,n.stripTrailingSlash=K7,n.\u0275fac=function(e){return new(e||n)(Se(oh))},n.\u0275prov=ot({token:n,factory:function(){return function xoe(){return new $W(Se(oh))}()},providedIn:"root"}),n})();function eB(n){return n.replace(/\/index.html$/,"")}const tB={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],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$","$"],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]};var Ws=(()=>((Ws=Ws||{})[Ws.Decimal=0]="Decimal",Ws[Ws.Percent=1]="Percent",Ws[Ws.Currency=2]="Currency",Ws[Ws.Scientific=3]="Scientific",Ws))(),wr=(()=>((wr=wr||{})[wr.Format=0]="Format",wr[wr.Standalone=1]="Standalone",wr))(),Z1=(()=>((Z1=Z1||{})[Z1.Narrow=0]="Narrow",Z1[Z1.Abbreviated=1]="Abbreviated",Z1[Z1.Wide=2]="Wide",Z1[Z1.Short=3]="Short",Z1))(),Qo=(()=>((Qo=Qo||{})[Qo.Short=0]="Short",Qo[Qo.Medium=1]="Medium",Qo[Qo.Long=2]="Long",Qo[Qo.Full=3]="Full",Qo))(),j0=(()=>((j0=j0||{})[j0.Decimal=0]="Decimal",j0[j0.Group=1]="Group",j0[j0.List=2]="List",j0[j0.PercentSign=3]="PercentSign",j0[j0.PlusSign=4]="PlusSign",j0[j0.MinusSign=5]="MinusSign",j0[j0.Exponential=6]="Exponential",j0[j0.SuperscriptingExponent=7]="SuperscriptingExponent",j0[j0.PerMille=8]="PerMille",j0[j0.Infinity=9]="Infinity",j0[j0.NaN=10]="NaN",j0[j0.TimeSeparator=11]="TimeSeparator",j0[j0.CurrencyDecimal=12]="CurrencyDecimal",j0[j0.CurrencyGroup=13]="CurrencyGroup",j0))();function nC(n,t){return jc(Ja(n)[p0.DateFormat],t)}function oC(n,t){return jc(Ja(n)[p0.TimeFormat],t)}function rC(n,t){return jc(Ja(n)[p0.DateTimeFormat],t)}function Xc(n,t){const e=Ja(n),o=e[p0.NumberSymbols][t];if(typeof o>"u"){if(t===j0.CurrencyDecimal)return e[p0.NumberSymbols][j0.Decimal];if(t===j0.CurrencyGroup)return e[p0.NumberSymbols][j0.Group]}return o}function GW(n,t){return Ja(n)[p0.NumberFormats][t]}function nB(n){if(!n[p0.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[p0.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function jc(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function ZW(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const Foe=2,Hoe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,L_={},Xoe=/((?:[^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]*)/;var pi=(()=>((pi=pi||{})[pi.Short=0]="Short",pi[pi.ShortGMT=1]="ShortGMT",pi[pi.Long=2]="Long",pi[pi.Extended=3]="Extended",pi))(),J0=(()=>((J0=J0||{})[J0.FullYear=0]="FullYear",J0[J0.Month=1]="Month",J0[J0.Date=2]="Date",J0[J0.Hours=3]="Hours",J0[J0.Minutes=4]="Minutes",J0[J0.Seconds=5]="Seconds",J0[J0.FractionalSeconds=6]="FractionalSeconds",J0[J0.Day=7]="Day",J0))(),T1=(()=>((T1=T1||{})[T1.DayPeriods=0]="DayPeriods",T1[T1.Days=1]="Days",T1[T1.Months=2]="Months",T1[T1.Eras=3]="Eras",T1))();function joe(n,t,e,o){let r=function ere(n){if(iB(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,i=1,a=1]=n.split("-").map(s=>+s);return iC(r,i-1,a)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let o;if(o=n.match(Hoe))return function tre(n){const t=new Date(0);let e=0,o=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,i=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),o=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const a=Number(n[4]||0)-e,s=Number(n[5]||0)-o,c=Number(n[6]||0),l=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return i.call(t,a,s,c,l),t}(o)}const t=new Date(n);if(!iB(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=ud(e,t)||t;let s,a=[];for(;t;){if(s=Xoe.exec(t),!s){a.push(t);break}{a=a.concat(s.slice(1));const u=a.pop();if(!u)break;t=u}}let c=r.getTimezoneOffset();o&&(c=rB(o,c),r=function Qoe(n,t,e){const o=e?-1:1,r=n.getTimezoneOffset();return function Joe(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,o*(rB(t,r)-r))}(r,o,!0));let l="";return a.forEach(u=>{const d=function Koe(n){if(JW[n])return JW[n];let t;switch(n){case"G":case"GG":case"GGG":t=To(T1.Eras,Z1.Abbreviated);break;case"GGGG":t=To(T1.Eras,Z1.Wide);break;case"GGGGG":t=To(T1.Eras,Z1.Narrow);break;case"y":t=jr(J0.FullYear,1,0,!1,!0);break;case"yy":t=jr(J0.FullYear,2,0,!0,!0);break;case"yyy":t=jr(J0.FullYear,3,0,!1,!0);break;case"yyyy":t=jr(J0.FullYear,4,0,!1,!0);break;case"Y":t=lC(1);break;case"YY":t=lC(2,!0);break;case"YYY":t=lC(3);break;case"YYYY":t=lC(4);break;case"M":case"L":t=jr(J0.Month,1,1);break;case"MM":case"LL":t=jr(J0.Month,2,1);break;case"MMM":t=To(T1.Months,Z1.Abbreviated);break;case"MMMM":t=To(T1.Months,Z1.Wide);break;case"MMMMM":t=To(T1.Months,Z1.Narrow);break;case"LLL":t=To(T1.Months,Z1.Abbreviated,wr.Standalone);break;case"LLLL":t=To(T1.Months,Z1.Wide,wr.Standalone);break;case"LLLLL":t=To(T1.Months,Z1.Narrow,wr.Standalone);break;case"w":t=KW(1);break;case"ww":t=KW(2);break;case"W":t=KW(1,!0);break;case"d":t=jr(J0.Date,1);break;case"dd":t=jr(J0.Date,2);break;case"c":case"cc":t=jr(J0.Day,1);break;case"ccc":t=To(T1.Days,Z1.Abbreviated,wr.Standalone);break;case"cccc":t=To(T1.Days,Z1.Wide,wr.Standalone);break;case"ccccc":t=To(T1.Days,Z1.Narrow,wr.Standalone);break;case"cccccc":t=To(T1.Days,Z1.Short,wr.Standalone);break;case"E":case"EE":case"EEE":t=To(T1.Days,Z1.Abbreviated);break;case"EEEE":t=To(T1.Days,Z1.Wide);break;case"EEEEE":t=To(T1.Days,Z1.Narrow);break;case"EEEEEE":t=To(T1.Days,Z1.Short);break;case"a":case"aa":case"aaa":t=To(T1.DayPeriods,Z1.Abbreviated);break;case"aaaa":t=To(T1.DayPeriods,Z1.Wide);break;case"aaaaa":t=To(T1.DayPeriods,Z1.Narrow);break;case"b":case"bb":case"bbb":t=To(T1.DayPeriods,Z1.Abbreviated,wr.Standalone,!0);break;case"bbbb":t=To(T1.DayPeriods,Z1.Wide,wr.Standalone,!0);break;case"bbbbb":t=To(T1.DayPeriods,Z1.Narrow,wr.Standalone,!0);break;case"B":case"BB":case"BBB":t=To(T1.DayPeriods,Z1.Abbreviated,wr.Format,!0);break;case"BBBB":t=To(T1.DayPeriods,Z1.Wide,wr.Format,!0);break;case"BBBBB":t=To(T1.DayPeriods,Z1.Narrow,wr.Format,!0);break;case"h":t=jr(J0.Hours,1,-12);break;case"hh":t=jr(J0.Hours,2,-12);break;case"H":t=jr(J0.Hours,1);break;case"HH":t=jr(J0.Hours,2);break;case"m":t=jr(J0.Minutes,1);break;case"mm":t=jr(J0.Minutes,2);break;case"s":t=jr(J0.Seconds,1);break;case"ss":t=jr(J0.Seconds,2);break;case"S":t=jr(J0.FractionalSeconds,1);break;case"SS":t=jr(J0.FractionalSeconds,2);break;case"SSS":t=jr(J0.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=sC(pi.Short);break;case"ZZZZZ":t=sC(pi.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=sC(pi.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=sC(pi.Long);break;default:return null}return JW[n]=t,t}(u);l+=d?d(r,e,c):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function iC(n,t,e){const o=new Date(0);return o.setFullYear(n,t,e),o.setHours(0,0,0),o}function ud(n,t){const e=function Loe(n){return Ja(n)[p0.LocaleId]}(n);if(L_[e]=L_[e]||{},L_[e][t])return L_[e][t];let o="";switch(t){case"shortDate":o=nC(n,Qo.Short);break;case"mediumDate":o=nC(n,Qo.Medium);break;case"longDate":o=nC(n,Qo.Long);break;case"fullDate":o=nC(n,Qo.Full);break;case"shortTime":o=oC(n,Qo.Short);break;case"mediumTime":o=oC(n,Qo.Medium);break;case"longTime":o=oC(n,Qo.Long);break;case"fullTime":o=oC(n,Qo.Full);break;case"short":const r=ud(n,"shortTime"),i=ud(n,"shortDate");o=aC(rC(n,Qo.Short),[r,i]);break;case"medium":const a=ud(n,"mediumTime"),s=ud(n,"mediumDate");o=aC(rC(n,Qo.Medium),[a,s]);break;case"long":const c=ud(n,"longTime"),l=ud(n,"longDate");o=aC(rC(n,Qo.Long),[c,l]);break;case"full":const u=ud(n,"fullTime"),d=ud(n,"fullDate");o=aC(rC(n,Qo.Full),[u,d])}return o&&(L_[e][t]=o),o}function aC(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,o){return null!=t&&o in t?t[o]:e})),n}function Ul(n,t,e="-",o,r){let i="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,i=e));let a=String(n);for(;a.length0||s>-e)&&(s+=e),n===J0.Hours)0===s&&-12===e&&(s=12);else if(n===J0.FractionalSeconds)return function Uoe(n,t){return Ul(n,3).substring(0,t)}(s,t);const c=Xc(a,j0.MinusSign);return Ul(s,t,c,o,r)}}function To(n,t,e=wr.Format,o=!1){return function(r,i){return function $oe(n,t,e,o,r,i){switch(e){case T1.Months:return function Soe(n,t,e){const o=Ja(n),i=jc([o[p0.MonthsFormat],o[p0.MonthsStandalone]],t);return jc(i,e)}(t,r,o)[n.getMonth()];case T1.Days:return function Roe(n,t,e){const o=Ja(n),i=jc([o[p0.DaysFormat],o[p0.DaysStandalone]],t);return jc(i,e)}(t,r,o)[n.getDay()];case T1.DayPeriods:const a=n.getHours(),s=n.getMinutes();if(i){const l=function Noe(n){const t=Ja(n);return nB(t),(t[p0.ExtraData][2]||[]).map(o=>"string"==typeof o?ZW(o):[ZW(o[0]),ZW(o[1])])}(t),u=function Ioe(n,t,e){const o=Ja(n);nB(o);const i=jc([o[p0.ExtraData][0],o[p0.ExtraData][1]],t)||[];return jc(i,e)||[]}(t,r,o),d=l.findIndex(h=>{if(Array.isArray(h)){const[M,g]=h,_=a>=M.hours&&s>=M.minutes,z=a0?Math.floor(r/60):Math.ceil(r/60);switch(n){case pi.Short:return(r>=0?"+":"")+Ul(a,2,i)+Ul(Math.abs(r%60),2,i);case pi.ShortGMT:return"GMT"+(r>=0?"+":"")+Ul(a,1,i);case pi.Long:return"GMT"+(r>=0?"+":"")+Ul(a,2,i)+":"+Ul(Math.abs(r%60),2,i);case pi.Extended:return 0===o?"Z":(r>=0?"+":"")+Ul(a,2,i)+":"+Ul(Math.abs(r%60),2,i);default:throw new Error(`Unknown zone width "${n}"`)}}}const Goe=0,cC=4;function oB(n){return iC(n.getFullYear(),n.getMonth(),n.getDate()+(cC-n.getDay()))}function KW(n,t=!1){return function(e,o){let r;if(t){const i=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+i)/7)}else{const i=oB(e),a=function Zoe(n){const t=iC(n,Goe,1).getDay();return iC(n,0,1+(t<=cC?cC:cC+7)-t)}(i.getFullYear()),s=i.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ul(r,n,Xc(o,j0.MinusSign))}}function lC(n,t=!1){return function(e,o){return Ul(oB(e).getFullYear(),n,Xc(o,j0.MinusSign),t)}}const JW={};function rB(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function iB(n){return n instanceof Date&&!isNaN(n.valueOf())}const nre=/^(\d+)?\.((\d+)(-(\d+))?)?$/,aB=22,pC=".",T_="0",ore=";",rre=",",QW="#",sB="\xa4";function eL(n,t,e,o,r,i,a=!1){let s="",c=!1;if(isFinite(n)){let l=function lre(n){let o,r,i,a,s,t=Math.abs(n)+"",e=0;for((r=t.indexOf(pC))>-1&&(t=t.replace(pC,"")),(i=t.search(/e/i))>0?(r<0&&(r=i),r+=+t.slice(i+1),t=t.substring(0,i)):r<0&&(r=t.length),i=0;t.charAt(i)===T_;i++);if(i===(s=t.length))o=[0],r=1;else{for(s--;t.charAt(s)===T_;)s--;for(r-=i,o=[],a=0;i<=s;i++,a++)o[a]=Number(t.charAt(i))}return r>aB&&(o=o.splice(0,aB-1),e=r-1,r=1),{digits:o,exponent:e,integerLen:r}}(n);a&&(l=function cre(n){if(0===n.digits[0])return n;const t=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===t?n.digits.push(0,0):1===t&&n.digits.push(0),n.integerLen+=2),n}(l));let u=t.minInt,d=t.minFrac,h=t.maxFrac;if(i){const x=i.match(nre);if(null===x)throw new Error(`${i} is not a valid digit info`);const L=x[1],S=x[3],X=x[5];null!=L&&(u=nL(L)),null!=S&&(d=nL(S)),null!=X?h=nL(X):null!=S&&d>h&&(h=d)}!function pre(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let o=n.digits,r=o.length-n.integerLen;const i=Math.min(Math.max(t,r),e);let a=i+n.integerLen,s=o[a];if(a>0){o.splice(Math.max(n.integerLen,a));for(let d=a;d=5)if(a-1<0){for(let d=0;d>a;d--)o.unshift(0),n.integerLen++;o.unshift(1),n.integerLen++}else o[a-1]++;for(;r=l?g.pop():c=!1),h>=10?1:0},0);u&&(o.unshift(u),n.integerLen++)}(l,d,h);let M=l.digits,g=l.integerLen;const _=l.exponent;let z=[];for(c=M.every(x=>!x);g0?z=M.splice(g,M.length):(z=M,M=[0]);const y=[];for(M.length>=t.lgSize&&y.unshift(M.splice(-t.lgSize,M.length).join(""));M.length>t.gSize;)y.unshift(M.splice(-t.gSize,M.length).join(""));M.length&&y.unshift(M.join("")),s=y.join(Xc(e,o)),z.length&&(s+=Xc(e,r)+z.join("")),_&&(s+=Xc(e,j0.Exponential)+"+"+_)}else s=Xc(e,j0.Infinity);return s=n<0&&!c?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf,s}function cB(n,t,e){return eL(n,tL(GW(t,Ws.Decimal),Xc(t,j0.MinusSign)),t,j0.Group,j0.Decimal,e)}function tL(n,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},o=n.split(ore),r=o[0],i=o[1],a=-1!==r.indexOf(pC)?r.split(pC):[r.substring(0,r.lastIndexOf(T_)+1),r.substring(r.lastIndexOf(T_)+1)],s=a[0],c=a[1]||"";e.posPre=s.substring(0,s.indexOf(QW));for(let u=0;u{class n{constructor(e,o,r,i){this._iterableDiffers=e,this._keyValueDiffers=o,this._ngEl=r,this._renderer=i,this.initialClasses=uB,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(rL):uB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(rL):e}ngDoCheck(){for(const o of this.initialClasses)this._updateState(o,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const o of e)this._updateState(o,!0);else if(null!=e)for(const o of Object.keys(e))this._updateState(o,Boolean(e[o]));this._applyStateDiff()}_updateState(e,o){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==o&&(r.changed=!0,r.enabled=o),r.touched=!0):this.stateMap.set(e,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const o=e[0],r=e[1];r.changed?(this._toggleClass(o,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),r.touched=!1}}_toggleClass(e,o){(e=e.trim()).length>0&&e.split(rL).forEach(r=>{o?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(Te(tC),Te(W_),Te(fn),Te(P1))},n.\u0275dir=b0({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class fre{constructor(t,e,o,r){this.$implicit=t,this.ngForOf=e,this.index=o,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let er=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,o,r){this._viewContainer=e,this._template=o,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const o=this._viewContainer;e.forEachOperation((r,i,a)=>{if(null==r.previousIndex)o.createEmbeddedView(this._template,new fre(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)o.remove(null===i?void 0:i);else if(null!==i){const s=o.get(i);o.move(s,a),hB(s,r)}});for(let r=0,i=o.length;r{hB(o.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,o){return!0}}return n.\u0275fac=function(e){return new(e||n)(Te(pc),Te(Hc),Te(tC))},n.\u0275dir=b0({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function hB(n,t){n.context.$implicit=t.item}let f1=(()=>{class n{constructor(e,o){this._viewContainer=e,this._context=new Mre,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){MB("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){MB("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,o){return!0}}return n.\u0275fac=function(e){return new(e||n)(Te(pc),Te(Hc))},n.\u0275dir=b0({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Mre{constructor(){this.$implicit=null,this.ngIf=null}}function MB(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Fn(t)}'.`)}class iL{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let uC=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const o=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||o,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),o}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const o of this._defaultViews)o.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=b0({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),bB=(()=>{class n{constructor(e,o,r){this.ngSwitch=r,r._addCase(),this._view=new iL(e,o)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(Te(pc),Te(Hc),Te(uC,9))},n.\u0275dir=b0({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),ao=(()=>{class n{constructor(e,o,r){this._ngEl=e,this._differs=o,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,o){const[r,i]=e.split("."),a=-1===r.indexOf("-")?void 0:ua.DashCase;null!=o?this._renderer.setStyle(this._ngEl.nativeElement,r,i?`${o}${i}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(e){e.forEachRemovedItem(o=>this._setStyle(o.key,null)),e.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),e.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(Te(fn),Te(W_),Te(P1))},n.\u0275dir=b0({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Eo=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:i,ngTemplateOutletInjector:a}=this;this._viewRef=o.createEmbeddedView(r,i,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(Te(pc))},n.\u0275dir=b0({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Fo]}),n})();function Vl(n,t){return new Pt(2100,!1)}class Ore{createSubscription(t,e){return t.subscribe({next:e,error:o=>{throw o}})}dispose(t){t.unsubscribe()}}class mre{createSubscription(t,e){return t.then(e,o=>{throw o})}dispose(t){}}const _re=new mre,zre=new Ore;let Ma=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,o=>this._updateLatestValue(e,o))}_selectStrategy(e){if(m_(e))return _re;if(lN(e))return zre;throw Vl()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,o){e===this._obj&&(this._latestValue=o,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(Te(dc,16))},n.\u0275pipe=Hn({name:"async",type:n,pure:!1,standalone:!0}),n})();const Are=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let nu=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Vl();return e.replace(Are,o=>o[0].toUpperCase()+o.slice(1).toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"titlecase",type:n,pure:!0,standalone:!0}),n})(),R_=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Vl();return e.toUpperCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"uppercase",type:n,pure:!0,standalone:!0}),n})();const Cre=new Qt("DATE_PIPE_DEFAULT_TIMEZONE"),wre=new Qt("DATE_PIPE_DEFAULT_OPTIONS");let aL=(()=>{class n{constructor(e,o,r){this.locale=e,this.defaultTimezone=o,this.defaultOptions=r}transform(e,o,r,i){if(null==e||""===e||e!=e)return null;try{return joe(e,o??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw Vl()}}}return n.\u0275fac=function(e){return new(e||n)(Te(cd,16),Te(Cre,24),Te(wre,24))},n.\u0275pipe=Hn({name:"date",type:n,pure:!0,standalone:!0}),n})(),OB=(()=>{class n{transform(e){return JSON.stringify(e,null,2)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"json",type:n,pure:!1,standalone:!0}),n})(),ou=(()=>{class n{constructor(e){this._locale=e}transform(e,o,r){if(!sL(e))return null;r=r||this._locale;try{return cB(cL(e),r,o)}catch(i){throw Vl()}}}return n.\u0275fac=function(e){return new(e||n)(Te(cd,16))},n.\u0275pipe=Hn({name:"number",type:n,pure:!0,standalone:!0}),n})(),_B=(()=>{class n{constructor(e){this._locale=e}transform(e,o,r){if(!sL(e))return null;r=r||this._locale;try{return function sre(n,t,e){return eL(n,tL(GW(t,Ws.Percent),Xc(t,j0.MinusSign)),t,j0.Group,j0.Decimal,e,!0).replace(new RegExp("%","g"),Xc(t,j0.PercentSign))}(cL(e),r,o)}catch(i){throw Vl()}}}return n.\u0275fac=function(e){return new(e||n)(Te(cd,16))},n.\u0275pipe=Hn({name:"percent",type:n,pure:!0,standalone:!0}),n})(),qg=(()=>{class n{constructor(e,o="USD"){this._locale=e,this._defaultCurrencyCode=o}transform(e,o=this._defaultCurrencyCode,r="symbol",i,a){if(!sL(e))return null;a=a||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let s=o||this._defaultCurrencyCode;"code"!==r&&(s="symbol"===r||"symbol-narrow"===r?function Boe(n,t,e="en"){const o=function koe(n){return Ja(n)[p0.Currencies]}(e)[n]||tB[n]||[],r=o[1];return"narrow"===t&&"string"==typeof r?r:o[0]||n}(s,"symbol"===r?"wide":"narrow",a):r);try{return function are(n,t,e,o,r){const a=tL(GW(t,Ws.Currency),Xc(t,j0.MinusSign));return a.minFrac=function Yoe(n){let t;const e=tB[n];return e&&(t=e[2]),"number"==typeof t?t:Foe}(o),a.maxFrac=a.minFrac,eL(n,a,t,j0.CurrencyGroup,j0.CurrencyDecimal,r).replace(sB,e).replace(sB,"").trim()}(cL(e),a,s,o,i)}catch(c){throw Vl()}}}return n.\u0275fac=function(e){return new(e||n)(Te(cd,16),Te(Yne,16))},n.\u0275pipe=Hn({name:"currency",type:n,pure:!0,standalone:!0}),n})();function sL(n){return!(null==n||""===n||n!=n)}function cL(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}let Gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({}),n})();const zB="browser",Tre="server";function lL(n){return n===Tre}let kre=(()=>{class n{}return n.\u0275prov=ot({token:n,providedIn:"root",factory:()=>new Ere(Se(Hr),window)}),n})();class Ere{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function Nre(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const o=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=o.currentNode;for(;r;){const i=r.shadowRoot;if(i){const a=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(a)return a}r=o.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),o=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(o-i[0],r-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=vB(this.window.history)||vB(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function vB(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class AB{}class uie extends Aoe{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class fL extends uie{static makeCurrent(){!function voe(n){jW||(jW=n)}(new fL)}onAndCancel(t,e,o){return t.addEventListener(e,o,!1),()=>{t.removeEventListener(e,o,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function die(){return D_=D_||document.querySelector("base"),D_?D_.getAttribute("href"):null}();return null==e?null:function fie(n){fC=fC||document.createElement("a"),fC.setAttribute("href",n);const t=fC.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){D_=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return pB(document.cookie,t)}}let fC,D_=null;const xB=new Qt("TRANSITION_ID"),Mie=[{provide:G4,useFactory:function hie(n,t,e){return()=>{e.get(Z4).donePromise.then(()=>{const o=tu(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let i=0;i{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const hC=new Qt("EventManagerPlugins");let MC=(()=>{class n{constructor(e,o){this._zone=o,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,o,r){return this._findPluginFor(o).addEventListener(e,o,r)}addGlobalEventListener(e,o,r){return this._findPluginFor(o).addGlobalEventListener(e,o,r)}getZone(){return this._zone}_findPluginFor(e){const o=this._eventNameToPlugin.get(e);if(o)return o;const r=this._plugins;for(let i=0;i{class n{constructor(){this._stylesSet=new Set}addStyles(e){const o=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),o.add(r))}),this.onStylesAdded(o)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})(),k_=(()=>{class n extends WB{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,o,r){e.forEach(i=>{const a=this._doc.createElement("style");a.textContent=i,r.push(o.appendChild(a))})}addHost(e){const o=[];this._addStylesToHost(this._stylesSet,e,o),this._hostNodes.set(e,o)}removeHost(e){const o=this._hostNodes.get(e);o&&o.forEach(LB),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((o,r)=>{this._addStylesToHost(e,r,o)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(LB))}}return n.\u0275fac=function(e){return new(e||n)(Se(Hr))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();function LB(n){tu().remove(n)}const hL={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/MathML/"},ML=/%COMP%/g;function bL(n,t){return t.flat(100).map(e=>e.replace(ML,n))}function SB(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let gL=(()=>{class n{constructor(e,o,r){this.eventManager=e,this.sharedStylesHost=o,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new OL(e)}createRenderer(e,o){if(!e||!o)return this.defaultRenderer;switch(o.encapsulation){case ia.Emulated:{let r=this.rendererByCompId.get(o.id);return r||(r=new Aie(this.eventManager,this.sharedStylesHost,o,this.appId),this.rendererByCompId.set(o.id,r)),r.applyToHost(e),r}case ia.ShadowDom:return new yie(this.eventManager,this.sharedStylesHost,e,o);default:if(!this.rendererByCompId.has(o.id)){const r=bL(o.id,o.styles);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(o.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(Se(MC),Se(k_),Se(q_))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();class OL{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(hL[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(kB(t)?t.content:t).appendChild(e)}insertBefore(t,e,o){t&&(kB(t)?t.content:t).insertBefore(e,o)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let o="string"==typeof t?document.querySelector(t):t;if(!o)throw new Error(`The selector "${t}" did not match any elements`);return e||(o.textContent=""),o}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,o,r){if(r){e=r+":"+e;const i=hL[r];i?t.setAttributeNS(i,e,o):t.setAttribute(e,o)}else t.setAttribute(e,o)}removeAttribute(t,e,o){if(o){const r=hL[o];r?t.removeAttributeNS(r,e):t.removeAttribute(`${o}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,o,r){r&(ua.DashCase|ua.Important)?t.style.setProperty(e,o,r&ua.Important?"important":""):t.style[e]=o}removeStyle(t,e,o){o&ua.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,o){t[e]=o}setValue(t,e){t.nodeValue=e}listen(t,e,o){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,SB(o)):this.eventManager.addEventListener(t,e,SB(o))}}function kB(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Aie extends OL{constructor(t,e,o,r){super(t),this.component=o;const i=bL(r+"-"+o.id,o.styles);e.addStyles(i),this.contentAttr=function _ie(n){return"_ngcontent-%COMP%".replace(ML,n)}(r+"-"+o.id),this.hostAttr=function zie(n){return"_nghost-%COMP%".replace(ML,n)}(r+"-"+o.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const o=super.createElement(t,e);return super.setAttribute(o,this.contentAttr,""),o}}class yie extends OL{constructor(t,e,o,r){super(t),this.sharedStylesHost=e,this.hostEl=o,this.shadowRoot=o.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=bL(r.id,r.styles);for(let a=0;a{class n extends qB{constructor(e){super(e)}supports(e){return!0}addEventListener(e,o,r){return e.addEventListener(o,r,!1),()=>this.removeEventListener(e,o,r)}removeEventListener(e,o,r){return e.removeEventListener(o,r)}}return n.\u0275fac=function(e){return new(e||n)(Se(Hr))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const EB=["alt","control","meta","shift"],wie={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Pie={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let xie=(()=>{class n extends qB{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,o,r){const i=n.parseEventName(o),a=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>tu().onAndCancel(e,i.domEventName,a))}static parseEventName(e){const o=e.toLowerCase().split("."),r=o.shift();if(0===o.length||"keydown"!==r&&"keyup"!==r)return null;const i=n._normalizeKey(o.pop());let a="",s=o.indexOf("code");if(s>-1&&(o.splice(s,1),a="code."),EB.forEach(l=>{const u=o.indexOf(l);u>-1&&(o.splice(u,1),a+=l+".")}),a+=i,0!=o.length||0===i.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(e,o){let r=wie[e.key]||e.key,i="";return o.indexOf("code.")>-1&&(r=e.code,i="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),EB.forEach(a=>{a!==r&&(0,Pie[a])(e)&&(i+=a+".")}),i+=r,i===o)}static eventCallback(e,o,r){return i=>{n.matchEventFullKeyCode(i,e)&&r.runGuarded(()=>o(i))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(Se(Hr))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const IB=[{provide:Pg,useValue:zB},{provide:_7,useValue:function qie(){fL.makeCurrent()},multi:!0},{provide:Hr,useFactory:function Lie(){return function Bq(n){B3=n}(document),document},deps:[]}],Tie=L7(moe,"browser",IB),BB=new Qt(""),FB=[{provide:K4,useClass:class bie{addToWindow(t){vn.getAngularTestability=(o,r=!0)=>{const i=t.findTestabilityInTree(o,r);if(null==i)throw new Error("Could not find testability for element.");return i},vn.getAllAngularTestabilities=()=>t.getAllTestabilities(),vn.getAllAngularRootElements=()=>t.getAllRootElements(),vn.frameworkStabilizers||(vn.frameworkStabilizers=[]),vn.frameworkStabilizers.push(o=>{const r=vn.getAllAngularTestabilities();let i=r.length,a=!1;const s=function(c){a=a||c,i--,0==i&&o(a)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(t,e,o){return null==e?null:t.getTestability(e)??(o?tu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:P7,useClass:DW,deps:[Lo,kW,K4]},{provide:DW,useClass:DW,deps:[Lo,kW,K4]}],YB=[{provide:qo,useValue:"root"},{provide:O2,useFactory:function Wie(){return new O2},deps:[]},{provide:hC,useClass:Cie,multi:!0,deps:[Hr,Lo,Pg]},{provide:hC,useClass:xie,multi:!0,deps:[Hr]},{provide:gL,useClass:gL,deps:[MC,k_,q_]},{provide:J3,useExisting:gL},{provide:WB,useExisting:k_},{provide:k_,useClass:k_,deps:[Hr]},{provide:MC,useClass:MC,deps:[hC,Lo]},{provide:AB,useClass:gie,deps:[]},[]];let Rie=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:q_,useValue:e.appId},{provide:xB,useExisting:q_},Mie]}}}return n.\u0275fac=function(e){return new(e||n)(Se(BB,12))},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({providers:[...YB,...FB],imports:[Gn,_oe]}),n})(),HB=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(Se(Hr))},n.\u0275prov=ot({token:n,factory:function(e){let o=null;return o=e?new e:function Die(){return new HB(Se(Hr))}(),o},providedIn:"root"}),n})();typeof window<"u"&&window;let bC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:function(e){let o=null;return o=e?new(e||n):Se(UB),o},providedIn:"root"}),n})(),UB=(()=>{class n extends bC{constructor(e){super(),this._doc=e}sanitize(e,o){if(null==o)return null;switch(e){case Oo.NONE:return o;case Oo.HTML:return Dc(o,"HTML")?$a(o):jy(this._doc,String(o)).toString();case Oo.STYLE:return Dc(o,"Style")?$a(o):o;case Oo.SCRIPT:if(Dc(o,"Script"))return $a(o);throw new Error("unsafe value used in a script context");case Oo.URL:return Dc(o,"URL")?$a(o):Kb(String(o));case Oo.RESOURCE_URL:if(Dc(o,"ResourceURL"))return $a(o);throw new Error(`unsafe value used in a resource URL context (see ${qi})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${qi})`)}}bypassSecurityTrustHtml(e){return function Zb(n){return new Fq(n)}(e)}bypassSecurityTrustStyle(e){return function jq(n){return new Yq(n)}(e)}bypassSecurityTrustScript(e){return function Uq(n){return new Iy(n)}(e)}bypassSecurityTrustUrl(e){return function Vq(n){return new By(n)}(e)}bypassSecurityTrustResourceUrl(e){return function $q(n){return new Hq(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(Se(Hr))},n.\u0275prov=ot({token:n,factory:function(e){let o=null;return o=e?new e:function Yie(n){return new UB(n.get(Hr))}(Se(Jo)),o},providedIn:"root"}),n})();function ve(...n){return Un(n,mi(n))}function P2(n,t){return m(t)?On(n,t,1):On(n,1)}function zt(n,t){return mt((e,o)=>{let r=0;e.subscribe(V(o,i=>n.call(t,i,r++)&&o.next(i)))})}class gC{}class zL{}class wi{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const o=e.indexOf(":");if(o>0){const r=e.slice(0,o),i=r.toLowerCase(),a=e.slice(o+1).trim();this.maybeSetNormalizedName(r,i),this.headers.has(i)?this.headers.get(i).push(a):this.headers.set(i,[a])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let o=t[e];const r=e.toLowerCase();"string"==typeof o&&(o=[o]),o.length>0&&(this.headers.set(r,o),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const 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 wi?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){const e=new wi;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof wi?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let o=t.value;if("string"==typeof o&&(o=[o]),0===o.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...o),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===i.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Hie{encodeKey(t){return VB(t)}encodeValue(t){return VB(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const jie=/%(\d[a-f0-9])/gi,Uie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VB(n){return encodeURIComponent(n).replace(jie,(t,e)=>Uie[e]??t)}function OC(n){return`${n}`}class fc{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Hie,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Xie(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const i=r.indexOf("="),[a,s]=-1==i?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,i)),t.decodeValue(r.slice(i+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const o=t.fromObject[e],r=Array.isArray(o)?o.map(OC):[OC(o)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(o=>{const r=t[o];Array.isArray(r)?r.forEach(i=>{e.push({param:o,value:i,op:"a"})}):e.push({param:o,value:r,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=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(o=>e+"="+this.encoder.encodeValue(o)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new fc({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(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":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(OC(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let o=this.map.get(t.param)||[];const r=o.indexOf(OC(t.value));-1!==r&&o.splice(r,1),o.length>0?this.map.set(t.param,o):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class Ei{constructor(){this.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()}}function $B(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function GB(n){return typeof Blob<"u"&&n instanceof Blob}function ZB(n){return typeof FormData<"u"&&n instanceof FormData}class ru{constructor(t,e,o,r){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function $ie(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==o?o:null,i=r):i=o,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new wi),this.context||(this.context=new Ei),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sd.set(h,t.setHeaders[h]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),l)),new ru(e,o,i,{params:l,headers:c,context:u,reportProgress:s,responseType:r,withCredentials:a})}}var Vr=(()=>((Vr=Vr||{})[Vr.Sent=0]="Sent",Vr[Vr.UploadProgress=1]="UploadProgress",Vr[Vr.ResponseHeader=2]="ResponseHeader",Vr[Vr.DownloadProgress=3]="DownloadProgress",Vr[Vr.Response=4]="Response",Vr[Vr.User=5]="User",Vr))();class vL{constructor(t,e=200,o="OK"){this.headers=t.headers||new wi,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||o,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class AL extends vL{constructor(t={}){super(t),this.type=Vr.ResponseHeader}clone(t={}){return new AL({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ft extends vL{constructor(t={}){super(t),this.type=Vr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ft({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class yL extends vL{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function CL(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let G0=(()=>{class n{constructor(e){this.handler=e}request(e,o,r={}){let i;if(e instanceof ru)i=e;else{let c,l;c=r.headers instanceof wi?r.headers:new wi(r.headers),r.params&&(l=r.params instanceof fc?r.params:new fc({fromObject:r.params})),i=new ru(e,o,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=ve(i).pipe(P2(c=>this.handler.handle(c)));if(e instanceof ru||"events"===r.observe)return a;const s=a.pipe(zt(c=>c instanceof Ft));switch(r.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe($(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe($(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe($(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe($(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,o={}){return this.request("DELETE",e,o)}get(e,o={}){return this.request("GET",e,o)}head(e,o={}){return this.request("HEAD",e,o)}jsonp(e,o){return this.request("JSONP",e,{params:(new fc).append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,o={}){return this.request("OPTIONS",e,o)}patch(e,o,r={}){return this.request("PATCH",e,CL(r,o))}post(e,o,r={}){return this.request("POST",e,CL(r,o))}put(e,o,r={}){return this.request("PUT",e,CL(r,o))}}return n.\u0275fac=function(e){return new(e||n)(Se(gC))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();function KB(n,t){return t(n)}function Zie(n,t){return(e,o)=>t.intercept(e,{handle:r=>n(r,o)})}const mC=new Qt("HTTP_INTERCEPTORS"),E_=new Qt("HTTP_INTERCEPTOR_FNS");function Jie(){let n=null;return(t,e)=>(null===n&&(n=(c0(mC,{optional:!0})??[]).reduceRight(Zie,KB)),n(t,e))}let JB=(()=>{class n extends gC{constructor(e,o){super(),this.backend=e,this.injector=o,this.chain=null}handle(e){if(null===this.chain){const o=Array.from(new Set(this.injector.get(E_)));this.chain=o.reduceRight((r,i)=>function Kie(n,t,e){return(o,r)=>e.runInContext(()=>t(o,i=>n(i,r)))}(r,i,this.injector),KB)}return this.chain(e,o=>this.backend.handle(o))}}return n.\u0275fac=function(e){return new(e||n)(Se(zL),Se(cc))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const nae=/^\)\]\}',?\n/;let e9=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new U(o=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((M,g)=>r.setRequestHeader(M,g.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const M=e.detectContentTypeHeader();null!==M&&r.setRequestHeader("Content-Type",M)}if(e.responseType){const M=e.responseType.toLowerCase();r.responseType="json"!==M?M:"text"}const i=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const M=r.statusText||"OK",g=new wi(r.getAllResponseHeaders()),_=function oae(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new AL({headers:g,status:r.status,statusText:M,url:_}),a},c=()=>{let{headers:M,status:g,statusText:_,url:z}=s(),y=null;204!==g&&(y=typeof r.response>"u"?r.responseText:r.response),0===g&&(g=y?200:0);let x=g>=200&&g<300;if("json"===e.responseType&&"string"==typeof y){const L=y;y=y.replace(nae,"");try{y=""!==y?JSON.parse(y):null}catch(S){y=L,x&&(x=!1,y={error:S,text:y})}}x?(o.next(new Ft({body:y,headers:M,status:g,statusText:_,url:z||void 0})),o.complete()):o.error(new yL({error:y,headers:M,status:g,statusText:_,url:z||void 0}))},l=M=>{const{url:g}=s(),_=new yL({error:M,status:r.status||0,statusText:r.statusText||"Unknown Error",url:g||void 0});o.error(_)};let u=!1;const d=M=>{u||(o.next(s()),u=!0);let g={type:Vr.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(g.total=M.total),"text"===e.responseType&&r.responseText&&(g.partialText=r.responseText),o.next(g)},h=M=>{let g={type:Vr.UploadProgress,loaded:M.loaded};M.lengthComputable&&(g.total=M.total),o.next(g)};return r.addEventListener("load",c),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",d),null!==i&&r.upload&&r.upload.addEventListener("progress",h)),r.send(i),o.next({type:Vr.Sent}),()=>{r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",c),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",d),null!==i&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(Se(AB))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const wL=new Qt("XSRF_ENABLED"),t9="XSRF-TOKEN",n9=new Qt("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>t9}),o9="X-XSRF-TOKEN",r9=new Qt("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>o9});class i9{}let rae=(()=>{class n{constructor(e,o,r){this.doc=e,this.platform=o,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=pB(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(Se(Hr),Se(Pg),Se(n9))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();function iae(n,t){const e=n.url.toLowerCase();if(!c0(wL)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const o=c0(i9).getToken(),r=c0(r9);return null!=o&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,o)})),t(n)}var Pr=(()=>((Pr=Pr||{})[Pr.Interceptors=0]="Interceptors",Pr[Pr.LegacyInterceptors=1]="LegacyInterceptors",Pr[Pr.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Pr[Pr.NoXsrfProtection=3]="NoXsrfProtection",Pr[Pr.JsonpSupport=4]="JsonpSupport",Pr[Pr.RequestsMadeViaParent=5]="RequestsMadeViaParent",Pr))();function Wg(n,t){return{\u0275kind:n,\u0275providers:t}}function aae(...n){const t=[G0,e9,JB,{provide:gC,useExisting:JB},{provide:zL,useExisting:e9},{provide:E_,useValue:iae,multi:!0},{provide:wL,useValue:!0},{provide:i9,useClass:rae}];for(const e of n)t.push(...e.\u0275providers);return function l6(n){return{\u0275providers:n}}(t)}const a9=new Qt("LEGACY_INTERCEPTOR_FN");function cae({cookieName:n,headerName:t}){const e=[];return void 0!==n&&e.push({provide:n9,useValue:n}),void 0!==t&&e.push({provide:r9,useValue:t}),Wg(Pr.CustomXsrfConfiguration,e)}let lae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({providers:[aae(Wg(Pr.LegacyInterceptors,[{provide:a9,useFactory:Jie},{provide:E_,useExisting:a9,multi:!0}]),cae({cookieName:t9,headerName:o9}))]}),n})();const PL={now:()=>(PL.delegate||Date).now(),delegate:void 0};class s9 extends N{constructor(t=1/0,e=1/0,o=PL){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=o,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:o,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:a}=this;e||(o.push(t),!r&&o.push(i.now()+a)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:o,_buffer:r}=this,i=r.slice();for(let a=0;a{let r=null,i=0,a=!1;const s=()=>a&&!r&&o.complete();e.subscribe(V(o,c=>{r?.unsubscribe();let l=0;const u=i++;D0(n(c,u)).subscribe(r=V(o,d=>o.next(t?t(c,d,u,l++):d),()=>{r=null,s()}))},()=>{a=!0,s()}))})}const _C={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return _C.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return _C.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let xL;function Oae(n,t,e){let o=e;return function uae(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,i)=>!("*"===r||!function fae(n,t){if(!xL){const e=Element.prototype;xL=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&xL.call(n,t)}(n,r)||(o=i,0))),o}class _ae{constructor(t,e){this.componentFactory=e.get(yi).resolveComponentFactory(t)}create(t){return new zae(this.componentFactory,t)}}class zae{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new s9(1),this.events=this.eventEmitters.pipe(ui(o=>ka(...o))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:o})=>o)),this.ngZone=this.injector.get(Lo),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=_C.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function hae(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Jo.create({providers:[],parent:this.injector}),o=function gae(n,t){const e=n.childNodes,o=t.map(()=>[]);let r=-1;t.some((i,a)=>"*"===i&&(r=a,!0));for(let i=0,a=e.length;i{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:o,templateName:r})=>t.instance[o].pipe($(a=>({name:r,value:a}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=_C.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const o=this.inputChanges[t];if(o)return void(o.currentValue=e);const r=this.unchangedInputs.has(t),i=r?void 0:this.getInputValue(t);this.inputChanges[t]=new lb(i,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class vae extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function qL(n,t){const e=function bae(n,t){return t.get(yi).resolveComponentFactory(n).inputs}(n,t.injector),o=t.strategyFactory||new _ae(n,t.injector),r=function Mae(n){const t={};return n.forEach(({propName:e,templateName:o})=>{t[function pae(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(o)]=e}),t}(e);class i extends vae{get ngElementStrategy(){if(!this._ngElementStrategy){const s=this._ngElementStrategy=o.create(this.injector||t.injector);e.forEach(({propName:c})=>{if(!this.hasOwnProperty(c))return;const l=this[c];delete this[c],s.setInputValue(c,l)})}return this._ngElementStrategy}constructor(s){super(),this.injector=s}attributeChangedCallback(s,c,l,u){this.ngElementStrategy.setInputValue(r[s],l)}connectedCallback(){let s=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),s=!0),this.ngElementStrategy.connect(this),s||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(s=>{const c=new CustomEvent(s.name,{detail:s.value});this.dispatchEvent(c)})}}return i.observedAttributes=Object.keys(r),e.forEach(({propName:a})=>{Object.defineProperty(i.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(s){this.ngElementStrategy.setInputValue(a,s)},configurable:!0,enumerable:!0})}),i}class No extends N{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:o}=this;if(t)throw e;return this._throwIfClosed(),o}next(t){super.next(this._value=t)}}const N_=R(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:Aae}=Array,{getPrototypeOf:yae,prototype:Cae,keys:wae}=Object;function c9(n){if(1===n.length){const t=n[0];if(Aae(t))return{args:t,keys:null};if(function Pae(n){return n&&"object"==typeof n&&yae(n)===Cae}(t)){const e=wae(t);return{args:e.map(o=>t[o]),keys:e}}}return{args:n,keys:null}}const{isArray:xae}=Array;function WL(n){return $(t=>function qae(n,t){return xae(t)?n(...t):n(t)}(n,t))}function l9(n,t){return n.reduce((e,o,r)=>(e[o]=t[r],e),{})}function LL(...n){const t=mi(n),e=ti(n),{args:o,keys:r}=c9(n);if(0===o.length)return Un([],t);const i=new U(function Wae(n,t,e=W){return o=>{p9(t,()=>{const{length:r}=n,i=new Array(r);let a=r,s=r;for(let c=0;c{const l=Un(n[c],t);let u=!1;l.subscribe(V(o,d=>{i[c]=d,u||(u=!0,s--),s||o.next(e(i.slice()))},()=>{--a||o.complete()}))},o)},o)}}(o,t,r?a=>l9(r,a):W));return e?i.pipe(WL(e)):i}function p9(n,t,e){n?s1(e,n,t):t()}function Lg(...n){return function Lae(){return nn(1)}()(Un(n,mi(n)))}function I_(n){return new U(t=>{D0(n()).subscribe(t)})}function rh(n,t){const e=m(n)?n:()=>n,o=r=>r.error(e());return new U(t?r=>t.schedule(o,0,r):o)}function TL(){return mt((n,t)=>{let e=null;n._refCount++;const o=V(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,i=e;e=null,r&&(!i||r===i)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(o),o.closed||(e=n.connect())})}class RL extends U{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Dt(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new B;const e=this.getSubject();t.add(this.source.subscribe(V(e,void 0,()=>{this._teardown(),e.complete()},o=>{this._teardown(),e.error(o)},()=>this._teardown()))),t.closed&&(this._connection=null,t=B.EMPTY)}return t}refCount(){return TL()(this)}}function $l(n){return n<=0?()=>h1:mt((t,e)=>{let o=0;t.subscribe(V(e,r=>{++o<=n&&(e.next(r),n<=o&&e.complete())}))})}function zC(...n){const t=mi(n);return mt((e,o)=>{(t?Lg(n,e,t):Lg(n,e)).subscribe(o)})}function B_(n){return mt((t,e)=>{let o=!1;t.subscribe(V(e,r=>{o=!0,e.next(r)},()=>{o||e.next(n),e.complete()}))})}function u9(n=Tae){return mt((t,e)=>{let o=!1;t.subscribe(V(e,r=>{o=!0,e.next(r)},()=>o?e.complete():e.error(n())))})}function Tae(){return new N_}function iu(n,t){const e=arguments.length>=2;return o=>o.pipe(n?zt((r,i)=>n(r,i,o)):W,$l(1),e?B_(t):u9(()=>new N_))}function Xo(n,t,e){const o=m(n)||t||e?{next:n,error:t,complete:e}:n;return o?mt((r,i)=>{var a;null===(a=o.subscribe)||void 0===a||a.call(o);let s=!0;r.subscribe(V(i,c=>{var l;null===(l=o.next)||void 0===l||l.call(o,c),i.next(c)},()=>{var c;s=!1,null===(c=o.complete)||void 0===c||c.call(o),i.complete()},c=>{var l;s=!1,null===(l=o.error)||void 0===l||l.call(o,c),i.error(c)},()=>{var c,l;s&&(null===(c=o.unsubscribe)||void 0===c||c.call(o)),null===(l=o.finalize)||void 0===l||l.call(o)}))}):W}function dd(n){return mt((t,e)=>{let i,o=null,r=!1;o=t.subscribe(V(e,void 0,void 0,a=>{i=D0(n(a,dd(n)(t))),o?(o.unsubscribe(),o=null,i.subscribe(e)):r=!0})),r&&(o.unsubscribe(),o=null,i.subscribe(e))})}function d9(n,t){return mt(function Rae(n,t,e,o,r){return(i,a)=>{let s=e,c=t,l=0;i.subscribe(V(a,u=>{const d=l++;c=s?n(c,u,d):(s=!0,u),o&&a.next(c)},r&&(()=>{s&&a.next(c),a.complete()})))}}(n,t,arguments.length>=2,!0))}function SL(n){return n<=0?()=>h1:mt((t,e)=>{let o=[];t.subscribe(V(e,r=>{o.push(r),n{for(const r of o)e.next(r);e.complete()},void 0,()=>{o=null}))})}function f9(n,t){const e=arguments.length>=2;return o=>o.pipe(n?zt((r,i)=>n(r,i,o)):W,SL(1),e?B_(t):u9(()=>new N_))}function h9(n){return $(()=>n)}function x2(n){return mt((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const A1="primary",F_=Symbol("RouteTitle");class Dae{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Tg(n){return new Dae(n)}function kae(n,t,e){const o=e.path.split("/");if(o.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||o.lengtho[i]===r)}return n===t}function b9(n){return Array.prototype.concat.apply([],n)}function g9(n){return n.length>0?n[n.length-1]:null}function Ni(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function q2(n){return aW(n)?n:m_(n)?Un(Promise.resolve(n)):ve(n)}const vC=!1,Nae={exact:function _9(n,t,e){if(!ah(n.segments,t.segments)||!AC(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const o in t.children)if(!n.children[o]||!_9(n.children[o],t.children[o],e))return!1;return!0},subset:z9},O9={exact:function Iae(n,t){return au(n,t)},subset:function Bae(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>M9(n[e],t[e]))},ignored:()=>!0};function m9(n,t,e){return Nae[e.paths](n.root,t.root,e.matrixParams)&&O9[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function z9(n,t,e){return v9(n,t,t.segments,e)}function v9(n,t,e,o){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ah(r,e)||t.hasChildren()||!AC(r,e,o))}if(n.segments.length===e.length){if(!ah(n.segments,e)||!AC(n.segments,e,o))return!1;for(const r in t.children)if(!n.children[r]||!z9(n.children[r],t.children[r],o))return!1;return!0}{const r=e.slice(0,n.segments.length),i=e.slice(n.segments.length);return!!(ah(n.segments,r)&&AC(n.segments,r,o)&&n.children[A1])&&v9(n.children[A1],t,i,o)}}function AC(n,t,e){return t.every((o,r)=>O9[e](n[r].parameters,o.parameters))}class ih{constructor(t=new Y1([],{}),e={},o=null){this.root=t,this.queryParams=e,this.fragment=o}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Tg(this.queryParams)),this._queryParamMap}toString(){return Hae.serialize(this)}}class Y1{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ni(e,(o,r)=>o.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yC(this)}}class Y_{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Tg(this.parameters)),this._parameterMap}toString(){return C9(this)}}function ah(n,t){return n.length===t.length&&n.every((e,o)=>e.path===t[o].path)}let H_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:function(){return new DL},providedIn:"root"}),n})();class DL{parse(t){const e=new Jae(t);return new ih(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${X_(t.root,!0)}`,o=function Uae(n){const t=Object.keys(n).map(e=>{const o=n[e];return Array.isArray(o)?o.map(r=>`${CC(e)}=${CC(r)}`).join("&"):`${CC(e)}=${CC(o)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${o}${"string"==typeof t.fragment?`#${function Xae(n){return encodeURI(n)}(t.fragment)}`:""}`}}const Hae=new DL;function yC(n){return n.segments.map(t=>C9(t)).join("/")}function X_(n,t){if(!n.hasChildren())return yC(n);if(t){const e=n.children[A1]?X_(n.children[A1],!1):"",o=[];return Ni(n.children,(r,i)=>{i!==A1&&o.push(`${i}:${X_(r,!1)}`)}),o.length>0?`${e}(${o.join("//")})`:e}{const e=function Yae(n,t){let e=[];return Ni(n.children,(o,r)=>{r===A1&&(e=e.concat(t(o,r)))}),Ni(n.children,(o,r)=>{r!==A1&&(e=e.concat(t(o,r)))}),e}(n,(o,r)=>r===A1?[X_(n.children[A1],!1)]:[`${r}:${X_(o,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[A1]?`${yC(n)}/${e[0]}`:`${yC(n)}/(${e.join("//")})`}}function A9(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function CC(n){return A9(n).replace(/%3B/gi,";")}function kL(n){return A9(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wC(n){return decodeURIComponent(n)}function y9(n){return wC(n.replace(/\+/g,"%20"))}function C9(n){return`${kL(n.path)}${function jae(n){return Object.keys(n).map(t=>`;${kL(t)}=${kL(n[t])}`).join("")}(n.parameters)}`}const Vae=/^[^\/()?;=#]+/;function PC(n){const t=n.match(Vae);return t?t[0]:""}const $ae=/^[^=?&#]+/,Zae=/^[^&#]+/;class Jae{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y1([],{}):new Y1([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(o[A1]=new Y1(t,e)),o}parseSegment(){const t=PC(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Pt(4009,vC);return this.capture(t),new Y_(wC(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=PC(this.remaining);if(!e)return;this.capture(e);let o="";if(this.consumeOptional("=")){const r=PC(this.remaining);r&&(o=r,this.capture(o))}t[wC(e)]=wC(o)}parseQueryParam(t){const e=function Gae(n){const t=n.match($ae);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let o="";if(this.consumeOptional("=")){const a=function Kae(n){const t=n.match(Zae);return t?t[0]:""}(this.remaining);a&&(o=a,this.capture(o))}const r=y9(e),i=y9(o);if(t.hasOwnProperty(r)){let a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const o=PC(this.remaining),r=this.remaining[o.length];if("/"!==r&&")"!==r&&";"!==r)throw new Pt(4010,vC);let i;o.indexOf(":")>-1?(i=o.slice(0,o.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=A1);const a=this.parseChildren();e[i]=1===Object.keys(a).length?a[A1]:new Y1([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Pt(4011,vC)}}function EL(n){return n.segments.length>0?new Y1([],{[A1]:n}):n}function xC(n){const t={};for(const o of Object.keys(n.children)){const i=xC(n.children[o]);(i.segments.length>0||i.hasChildren())&&(t[o]=i)}return function Qae(n){if(1===n.numberOfChildren&&n.children[A1]){const t=n.children[A1];return new Y1(n.segments.concat(t.segments),t.children)}return n}(new Y1(n.segments,t))}function sh(n){return n instanceof ih}const NL=!1;function nse(n,t,e,o,r){if(0===e.length)return Rg(t.root,t.root,t.root,o,r);const i=function x9(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new P9(!0,0,n);let t=0,e=!1;const o=n.reduce((r,i,a)=>{if("object"==typeof i&&null!=i){if(i.outlets){const s={};return Ni(i.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(i.segmentPath)return[...r,i.segmentPath]}return"string"!=typeof i?[...r,i]:0===a?(i.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?t++:""!=s&&r.push(s))}),r):[...r,i]},[]);return new P9(e,t,o)}(e);return i.toRoot()?Rg(t.root,t.root,new Y1([],{}),o,r):function a(c){const l=function rse(n,t,e,o){if(n.isAbsolute)return new Sg(t.root,!0,0);if(-1===o)return new Sg(e,e===t.root,0);return function q9(n,t,e){let o=n,r=t,i=e;for(;i>r;){if(i-=r,o=o.parent,!o)throw new Pt(4005,NL&&"Invalid number of '../'");r=o.segments.length}return new Sg(o,!1,r-i)}(e,o+(j_(n.commands[0])?0:1),n.numberOfDoubleDots)}(i,t,n.snapshot?._urlSegment,c),u=l.processChildren?Dg(l.segmentGroup,l.index,i.commands):IL(l.segmentGroup,l.index,i.commands);return Rg(t.root,l.segmentGroup,u,o,r)}(n.snapshot?._lastPathIndex)}function j_(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function U_(n){return"object"==typeof n&&null!=n&&n.outlets}function Rg(n,t,e,o,r){let a,i={};o&&Ni(o,(c,l)=>{i[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),a=n===t?e:w9(n,t,e);const s=EL(xC(a));return new ih(s,i,r)}function w9(n,t,e){const o={};return Ni(n.children,(r,i)=>{o[i]=r===t?e:w9(r,t,e)}),new Y1(n.segments,o)}class P9{constructor(t,e,o){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=o,t&&o.length>0&&j_(o[0]))throw new Pt(4003,NL&&"Root segment cannot have matrix parameters");const r=o.find(U_);if(r&&r!==g9(o))throw new Pt(4004,NL&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Sg{constructor(t,e,o){this.segmentGroup=t,this.processChildren=e,this.index=o}}function IL(n,t,e){if(n||(n=new Y1([],{})),0===n.segments.length&&n.hasChildren())return Dg(n,t,e);const o=function ase(n,t,e){let o=0,r=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return i;const a=n.segments[r],s=e[o];if(U_(s))break;const c=`${s}`,l=o0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!L9(c,l,a))return i;o+=2}else{if(!L9(c,{},a))return i;o++}r++}return{match:!0,pathIndex:r,commandIndex:o}}(n,t,e),r=e.slice(o.commandIndex);if(o.match&&o.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(r[a]=IL(n.children[a],t,i))}),Ni(n.children,(i,a)=>{void 0===o[a]&&(r[a]=i)}),new Y1(n.segments,r))}}function BL(n,t,e){const o=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[o]=BL(new Y1([],{}),0,e))}),t}function W9(n){const t={};return Ni(n,(e,o)=>t[o]=`${e}`),t}function L9(n,t,e){return n==e.path&&au(t,e.parameters)}const V_="imperative";class su{constructor(t,e){this.id=t,this.url=e}}class FL extends su{constructor(t,e,o="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=o,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class W2 extends su{constructor(t,e,o){super(t,e),this.urlAfterRedirects=o,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class qC extends su{constructor(t,e,o,r){super(t,e),this.reason=o,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class T9 extends su{constructor(t,e,o,r){super(t,e),this.reason=o,this.code=r,this.type=16}}class R9 extends su{constructor(t,e,o,r){super(t,e),this.error=o,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class cse extends su{constructor(t,e,o,r){super(t,e),this.urlAfterRedirects=o,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lse extends su{constructor(t,e,o,r){super(t,e),this.urlAfterRedirects=o,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pse extends su{constructor(t,e,o,r,i){super(t,e),this.urlAfterRedirects=o,this.state=r,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class use extends su{constructor(t,e,o,r){super(t,e),this.urlAfterRedirects=o,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dse extends su{constructor(t,e,o,r){super(t,e),this.urlAfterRedirects=o,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fse{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class hse{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Mse{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bse{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gse{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ose{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S9{constructor(t,e,o){this.routerEvent=t,this.position=e,this.anchor=o,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let _se=(()=>{class n{createUrlTree(e,o,r,i,a,s){return nse(e||o.root,r,i,a,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})(),zse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:function(t){return _se.\u0275fac(t)},providedIn:"root"}),n})();class D9{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=YL(t,this._root);return e?e.children.map(o=>o.value):[]}firstChild(t){const e=YL(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=HL(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return HL(t,this._root).map(e=>e.value)}}function YL(n,t){if(n===t.value)return t;for(const e of t.children){const o=YL(n,e);if(o)return o}return null}function HL(n,t){if(n===t.value)return[t];for(const e of t.children){const o=HL(n,e);if(o.length)return o.unshift(t),o}return[]}class fd{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function kg(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class k9 extends D9{constructor(t,e){super(t),this.snapshot=e,XL(this,t)}toString(){return this.snapshot.toString()}}function E9(n,t){const e=function vse(n,t){const a=new WC([],{},{},"",{},A1,t,null,n.root,-1,{});return new I9("",new fd(a,[]))}(n,t),o=new No([new Y_("",{})]),r=new No({}),i=new No({}),a=new No({}),s=new No(""),c=new ch(o,r,a,s,i,A1,t,e.root);return c.snapshot=e.root,new k9(new fd(c,[]),e)}class ch{constructor(t,e,o,r,i,a,s,c){this.url=t,this.params=e,this.queryParams=o,this.fragment=r,this.data=i,this.outlet=a,this.component=s,this.title=this.data?.pipe($(l=>l[F_]))??ve(void 0),this._futureSnapshot=c}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._paramMap=this.params.pipe($(t=>Tg(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(t=>Tg(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function N9(n,t="emptyOnly"){const e=n.pathFromRoot;let o=0;if("always"!==t)for(o=e.length-1;o>=1;){const r=e[o],i=e[o-1];if(r.routeConfig&&""===r.routeConfig.path)o--;else{if(i.component)break;o--}}return function Ase(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(o))}class WC{get title(){return this.data?.[F_]}constructor(t,e,o,r,i,a,s,c,l,u,d){this.url=t,this.params=e,this.queryParams=o,this.fragment=r,this.data=i,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=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||(this._paramMap=Tg(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Tg(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(o=>o.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class I9 extends D9{constructor(t,e){super(e),this.url=t,XL(this,e)}toString(){return B9(this._root)}}function XL(n,t){t.value._routerState=n,t.children.forEach(e=>XL(n,e))}function B9(n){const t=n.children.length>0?` { ${n.children.map(B9).join(", ")} } `:"";return`${n.value}${t}`}function jL(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,au(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),au(t.params,e.params)||n.params.next(e.params),function Eae(n,t){if(n.length!==t.length)return!1;for(let e=0;eau(e.parameters,t[o].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||UL(n.parent,t.parent))}function $_(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const o=e.value;o._futureSnapshot=t.value;const r=function Cse(n,t,e){return t.children.map(o=>{for(const r of e.children)if(n.shouldReuseRoute(o.value,r.value.snapshot))return $_(n,o,r);return $_(n,o)})}(n,t,e);return new fd(o,r)}{if(n.shouldAttach(t.value)){const i=n.retrieve(t.value);if(null!==i){const a=i.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>$_(n,s)),a}}const o=function wse(n){return new ch(new No(n.url),new No(n.params),new No(n.queryParams),new No(n.fragment),new No(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(i=>$_(n,i));return new fd(o,r)}}const VL="ngNavigationCancelingError";function F9(n,t){const{redirectTo:e,navigationBehaviorOptions:o}=sh(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=Y9(!1,0,t);return r.url=e,r.navigationBehaviorOptions=o,r}function Y9(n,t,e){const o=new Error("NavigationCancelingError: "+(n||""));return o[VL]=!0,o.cancellationCode=t,e&&(o.url=e),o}function H9(n){return X9(n)&&sh(n.url)}function X9(n){return n&&n[VL]}class Pse{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new G_,this.attachRef=null}}let G_=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,o){const r=this.getOrCreateContext(e);r.outlet=o,this.contexts.set(e,r)}onChildOutletDestroyed(e){const o=this.getContext(e);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let o=this.getContext(e);return o||(o=new Pse,this.contexts.set(e,o)),o}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const LC=!1;let $L=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=A1,this.activateEvents=new G1,this.deactivateEvents=new G1,this.attachEvents=new G1,this.detachEvents=new G1,this.parentContexts=c0(G_),this.location=c0(pc),this.changeDetector=c0(dc),this.environmentInjector=c0(cc)}ngOnChanges(e){if(e.name){const{firstChange:o,previousValue:r}=e.name;if(o)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Pt(4012,LC);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Pt(4012,LC);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Pt(4012,LC);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,o){this.activated=e,this._activatedRoute=o,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,o){if(this.isActivated)throw new Pt(4013,LC);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new xse(e,s,r.injector);if(o&&function qse(n){return!!n.resolveComponentFactory}(o)){const l=o.resolveComponentFactory(a);this.activated=r.createComponent(l,r.length,c)}else this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:o??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=b0({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Fo]}),n})();class xse{constructor(t,e,o){this.route=t,this.childContexts=e,this.parent=o}get(t,e){return t===ch?this.route:t===G_?this.childContexts:this.parent.get(t,e)}}let GL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["ng-component"]],standalone:!0,features:[Ho],decls:1,vars:0,template:function(e,o){1&e&&Me(0,"router-outlet")},dependencies:[$L],encapsulation:2}),n})();function j9(n,t){return n.providers&&!n._injector&&(n._injector=j4(n.providers,t,`Route: ${n.path}`)),n._injector??t}function KL(n){const t=n.children&&n.children.map(KL),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==A1&&(e.component=GL),e}function Uc(n){return n.outlet||A1}function U9(n,t){const e=n.filter(o=>Uc(o)===t);return e.push(...n.filter(o=>Uc(o)!==t)),e}function Z_(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Sse{constructor(t,e,o,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=o,this.forwardEvent=r}activate(t){const e=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,o,t),jL(this.futureState.root),this.activateChildRoutes(e,o,t)}deactivateChildRoutes(t,e,o){const r=kg(e);t.children.forEach(i=>{const a=i.value.outlet;this.deactivateRoutes(i,r[a],o),delete r[a]}),Ni(r,(i,a)=>{this.deactivateRouteAndItsChildren(i,o)})}deactivateRoutes(t,e,o){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const a=o.getContext(r.outlet);a&&this.deactivateChildRoutes(t,e,a.children)}else this.deactivateChildRoutes(t,e,o);else i&&this.deactivateRouteAndItsChildren(e,o)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const o=e.getContext(t.value.outlet),r=o&&t.value.component?o.children:e,i=kg(t);for(const a of Object.keys(i))this.deactivateRouteAndItsChildren(i[a],r);if(o&&o.outlet){const a=o.outlet.detach(),s=o.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const o=e.getContext(t.value.outlet),r=o&&t.value.component?o.children:e,i=kg(t);for(const a of Object.keys(i))this.deactivateRouteAndItsChildren(i[a],r);o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}activateChildRoutes(t,e,o){const r=kg(e);t.children.forEach(i=>{this.activateRoutes(i,r[i.value.outlet],o),this.forwardEvent(new Ose(i.value.snapshot))}),t.children.length&&this.forwardEvent(new bse(t.value.snapshot))}activateRoutes(t,e,o){const r=t.value,i=e?e.value:null;if(jL(r),r===i)if(r.component){const a=o.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,o);else if(r.component){const a=o.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),jL(s.route.value),this.activateChildRoutes(t,null,a.children)}else{const s=Z_(r.snapshot),c=s?.get(yi)??null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,o)}}class V9{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class TC{constructor(t,e){this.component=t,this.route=e}}function Dse(n,t,e){const o=n._root;return K_(o,t?t._root:null,e,[o.value])}function Eg(n,t){const e=Symbol(),o=t.get(n,e);return o===e?"function"!=typeof n||function KM(n){return null!==Eu(n)}(n)?t.get(n):n:o}function K_(n,t,e,o,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=kg(t);return n.children.forEach(a=>{(function Ese(n,t,e,o,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=n.value,a=t?t.value:null,s=e?e.getContext(n.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){const c=function Nse(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!ah(n.url,t.url);case"pathParamsOrQueryParamsChange":return!ah(n.url,t.url)||!au(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!UL(n,t)||!au(n.queryParams,t.queryParams);default:return!UL(n,t)}}(a,i,i.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new V9(o)):(i.data=a.data,i._resolvedData=a._resolvedData),K_(n,t,i.component?s?s.children:null:e,o,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new TC(s.outlet.component,a))}else a&&J_(t,s,r),r.canActivateChecks.push(new V9(o)),K_(n,null,i.component?s?s.children:null:e,o,r)})(a,i[a.value.outlet],e,o.concat([a.value]),r),delete i[a.value.outlet]}),Ni(i,(a,s)=>J_(a,e.getContext(s),r)),r}function J_(n,t,e){const o=kg(n),r=n.value;Ni(o,(i,a)=>{J_(i,r.component?t?t.children.getContext(a):null:t,e)}),e.canDeactivateChecks.push(new TC(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Q_(n){return"function"==typeof n}function JL(n){return n instanceof N_||"EmptyError"===n?.name}const RC=Symbol("INITIAL_VALUE");function Ng(){return ui(n=>LL(n.map(t=>t.pipe($l(1),zC(RC)))).pipe($(t=>{for(const e of t)if(!0!==e){if(e===RC)return RC;if(!1===e||e instanceof ih)return e}return!0}),zt(t=>t!==RC),$l(1)))}function $9(n){return function F(...n){return j(n)}(Xo(t=>{if(sh(t))throw F9(0,t)}),$(t=>!0===t))}const QL={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function G9(n,t,e,o,r){const i=eT(n,t,e);return i.matched?function tce(n,t,e,o){const r=t.canMatch;return r&&0!==r.length?ve(r.map(a=>{const s=Eg(a,n);return q2(function Xse(n){return n&&Q_(n.canMatch)}(s)?s.canMatch(t,e):n.runInContext(()=>s(t,e)))})).pipe(Ng(),$9()):ve(!0)}(o=j9(t,o),t,e).pipe($(a=>!0===a?i:{...QL})):ve(i)}function eT(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...QL}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||kae)(e,n,t);if(!r)return{...QL};const i={};Ni(r.posParams,(s,c)=>{i[c]=s.path});const a=r.consumed.length>0?{...i,...r.consumed[r.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function SC(n,t,e,o){if(e.length>0&&function rce(n,t,e){return e.some(o=>DC(n,t,o)&&Uc(o)!==A1)}(n,e,o)){const i=new Y1(t,function oce(n,t,e,o){const r={};r[A1]=o,o._sourceSegment=n,o._segmentIndexShift=t.length;for(const i of e)if(""===i.path&&Uc(i)!==A1){const a=new Y1([],{});a._sourceSegment=n,a._segmentIndexShift=t.length,r[Uc(i)]=a}return r}(n,t,o,new Y1(e,n.children)));return i._sourceSegment=n,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===e.length&&function ice(n,t,e){return e.some(o=>DC(n,t,o))}(n,e,o)){const i=new Y1(n.segments,function nce(n,t,e,o,r){const i={};for(const a of o)if(DC(n,e,a)&&!r[Uc(a)]){const s=new Y1([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,i[Uc(a)]=s}return{...r,...i}}(n,t,e,o,n.children));return i._sourceSegment=n,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:e}}const r=new Y1(n.segments,n.children);return r._sourceSegment=n,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:e}}function DC(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function Z9(n,t,e,o){return!!(Uc(n)===o||o!==A1&&DC(t,e,n))&&("**"===n.path||eT(t,n,e).matched)}function K9(n,t,e){return 0===t.length&&!n.children[e]}const kC=!1;class EC{constructor(t){this.segmentGroup=t||null}}class J9{constructor(t){this.urlTree=t}}function ez(n){return rh(new EC(n))}function Q9(n){return rh(new J9(n))}class lce{constructor(t,e,o,r,i){this.injector=t,this.configLoader=e,this.urlSerializer=o,this.urlTree=r,this.config=i,this.allowRedirects=!0}apply(){const t=SC(this.urlTree.root,[],[],this.config).segmentGroup,e=new Y1(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,A1).pipe($(i=>this.createUrlTree(xC(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(dd(i=>{if(i instanceof J9)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof EC?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,A1).pipe($(r=>this.createUrlTree(xC(r),t.queryParams,t.fragment))).pipe(dd(r=>{throw r instanceof EC?this.noMatchError(r):r}))}noMatchError(t){return new Pt(4002,kC)}createUrlTree(t,e,o){const r=EL(t);return new ih(r,e,o)}expandSegmentGroup(t,e,o,r){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(t,e,o).pipe($(i=>new Y1([],i))):this.expandSegment(t,o,e,o.segments,r,!0)}expandChildren(t,e,o){const r=[];for(const i of Object.keys(o.children))"primary"===i?r.unshift(i):r.push(i);return Un(r).pipe(P2(i=>{const a=o.children[i],s=U9(e,i);return this.expandSegmentGroup(t,s,a,i).pipe($(c=>({segment:c,outlet:i})))}),d9((i,a)=>(i[a.outlet]=a.segment,i),{}),f9())}expandSegment(t,e,o,r,i,a){return Un(o).pipe(P2(s=>this.expandSegmentAgainstRoute(t,e,o,s,r,i,a).pipe(dd(l=>{if(l instanceof EC)return ve(null);throw l}))),iu(s=>!!s),dd((s,c)=>{if(JL(s))return K9(e,r,i)?ve(new Y1([],{})):ez(e);throw s}))}expandSegmentAgainstRoute(t,e,o,r,i,a,s){return Z9(r,e,i,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,o,r,i,a):ez(e):ez(e)}expandSegmentAgainstRouteUsingRedirect(t,e,o,r,i,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,o,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,o,r,i,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,o,r){const i=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?Q9(i):this.lineralizeSegments(o,i).pipe(On(a=>{const s=new Y1(a,{});return this.expandSegment(t,s,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,o,r,i,a){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=eT(e,r,i);if(!s)return ez(e);const d=this.applyRedirectCommands(c,r.redirectTo,u);return r.redirectTo.startsWith("/")?Q9(d):this.lineralizeSegments(r,d).pipe(On(h=>this.expandSegment(t,e,o,h.concat(l),a,!1)))}matchSegmentAgainstRoute(t,e,o,r,i){return"**"===o.path?(t=j9(o,t),o.loadChildren?(o._loadedRoutes?ve({routes:o._loadedRoutes,injector:o._loadedInjector}):this.configLoader.loadChildren(t,o)).pipe($(s=>(o._loadedRoutes=s.routes,o._loadedInjector=s.injector,new Y1(r,{})))):ve(new Y1(r,{}))):G9(e,o,r,t).pipe(ui(({matched:a,consumedSegments:s,remainingSegments:c})=>a?this.getChildConfig(t=o._injector??t,o,r).pipe(On(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:M,slicedSegments:g}=SC(e,s,c,h),_=new Y1(M.segments,M.children);if(0===g.length&&_.hasChildren())return this.expandChildren(d,h,_).pipe($(L=>new Y1(s,L)));if(0===h.length&&0===g.length)return ve(new Y1(s,{}));const z=Uc(o)===i;return this.expandSegment(d,_,h,g,z?A1:i,!0).pipe($(x=>new Y1(s.concat(x.segments),x.children)))})):ez(e)))}getChildConfig(t,e,o){return e.children?ve({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?ve({routes:e._loadedRoutes,injector:e._loadedInjector}):function ece(n,t,e,o){const r=t.canLoad;return void 0===r||0===r.length?ve(!0):ve(r.map(a=>{const s=Eg(a,n);return q2(function Bse(n){return n&&Q_(n.canLoad)}(s)?s.canLoad(t,e):n.runInContext(()=>s(t,e)))})).pipe(Ng(),$9())}(t,e,o).pipe(On(r=>r?this.configLoader.loadChildren(t,e).pipe(Xo(i=>{e._loadedRoutes=i.routes,e._loadedInjector=i.injector})):function sce(n){return rh(Y9(kC,3))}())):ve({routes:[],injector:t})}lineralizeSegments(t,e){let o=[],r=e.root;for(;;){if(o=o.concat(r.segments),0===r.numberOfChildren)return ve(o);if(r.numberOfChildren>1||!r.children[A1])return t.redirectTo,rh(new Pt(4e3,kC));r=r.children[A1]}}applyRedirectCommands(t,e,o){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,o)}applyRedirectCreateUrlTree(t,e,o,r){const i=this.createSegmentGroup(t,e.root,o,r);return new ih(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const o={};return Ni(t,(r,i)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);o[i]=e[s]}else o[i]=r}),o}createSegmentGroup(t,e,o,r){const i=this.createSegments(t,e.segments,o,r);let a={};return Ni(e.children,(s,c)=>{a[c]=this.createSegmentGroup(t,s,o,r)}),new Y1(i,a)}createSegments(t,e,o,r){return e.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,r):this.findOrReturn(i,o))}findPosParam(t,e,o){const r=o[e.path.substring(1)];if(!r)throw new Pt(4001,kC);return r}findOrReturn(t,e){let o=0;for(const r of e){if(r.path===t.path)return e.splice(o),r;o++}return t}}class uce{}class hce{constructor(t,e,o,r,i,a,s){this.injector=t,this.rootComponentType=e,this.config=o,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const t=SC(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,A1).pipe($(e=>{if(null===e)return null;const o=new WC([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},A1,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new fd(o,e),i=new I9(this.url,r);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const e=t.value,o=N9(e,this.paramsInheritanceStrategy);e.params=Object.freeze(o.params),e.data=Object.freeze(o.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,o,r){return 0===o.segments.length&&o.hasChildren()?this.processChildren(t,e,o):this.processSegment(t,e,o,o.segments,r)}processChildren(t,e,o){return Un(Object.keys(o.children)).pipe(P2(r=>{const i=o.children[r],a=U9(e,r);return this.processSegmentGroup(t,a,i,r)}),d9((r,i)=>r&&i?(r.push(...i),r):null),function Sae(n,t=!1){return mt((e,o)=>{let r=0;e.subscribe(V(o,i=>{const a=n(i,r++);(a||t)&&o.next(i),!a&&o.complete()}))})}(r=>null!==r),B_(null),f9(),$(r=>{if(null===r)return null;const i=tF(r);return function Mce(n){n.sort((t,e)=>t.value.outlet===A1?-1:e.value.outlet===A1?1:t.value.outlet.localeCompare(e.value.outlet))}(i),i}))}processSegment(t,e,o,r,i){return Un(e).pipe(P2(a=>this.processSegmentAgainstRoute(a._injector??t,a,o,r,i)),iu(a=>!!a),dd(a=>{if(JL(a))return K9(o,r,i)?ve([]):ve(null);throw a}))}processSegmentAgainstRoute(t,e,o,r,i){if(e.redirectTo||!Z9(e,o,r,i))return ve(null);let a;if("**"===e.path){const s=r.length>0?g9(r).parameters:{},c=oF(o)+r.length;a=ve({snapshot:new WC(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,rF(e),Uc(e),e.component??e._loadedComponent??null,e,nF(o),c,iF(e)),consumedSegments:[],remainingSegments:[]})}else a=G9(o,e,r,t).pipe($(({matched:s,consumedSegments:c,remainingSegments:l,parameters:u})=>{if(!s)return null;const d=oF(o)+c.length;return{snapshot:new WC(c,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,rF(e),Uc(e),e.component??e._loadedComponent??null,e,nF(o),d,iF(e)),consumedSegments:c,remainingSegments:l}}));return a.pipe(ui(s=>{if(null===s)return ve(null);const{snapshot:c,consumedSegments:l,remainingSegments:u}=s;t=e._injector??t;const d=e._loadedInjector??t,h=function bce(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:M,slicedSegments:g}=SC(o,l,u,h.filter(z=>void 0===z.redirectTo));if(0===g.length&&M.hasChildren())return this.processChildren(d,h,M).pipe($(z=>null===z?null:[new fd(c,z)]));if(0===h.length&&0===g.length)return ve([new fd(c,[])]);const _=Uc(e)===i;return this.processSegment(d,h,M,g,_?A1:i).pipe($(z=>null===z?null:[new fd(c,z)]))}))}}function gce(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function tF(n){const t=[],e=new Set;for(const o of n){if(!gce(o)){t.push(o);continue}const r=t.find(i=>o.value.routeConfig===i.value.routeConfig);void 0!==r?(r.children.push(...o.children),e.add(r)):t.push(o)}for(const o of e){const r=tF(o.children);t.push(new fd(o.value,r))}return t.filter(o=>!e.has(o))}function nF(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function oF(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function rF(n){return n.data||{}}function iF(n){return n.resolve||{}}function aF(n){return"string"==typeof n.title||null===n.title}function tT(n){return ui(t=>{const e=n(t);return e?Un(e).pipe($(()=>t)):ve(t)})}const Ig=new Qt("ROUTES");let nT=(()=>{class n{constructor(e,o){this.injector=e,this.compiler=o,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ve(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const o=q2(e.loadComponent()).pipe($(cF),Xo(i=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=i}),x2(()=>{this.componentLoaders.delete(e)})),r=new RL(o,()=>new N).pipe(TL());return this.componentLoaders.set(e,r),r}loadChildren(e,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return ve({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);const i=this.loadModuleFactoryOrRoutes(o.loadChildren).pipe($(s=>{this.onLoadEndListener&&this.onLoadEndListener(o);let c,l,u=!1;Array.isArray(s)?l=s:(c=s.create(e).injector,l=b9(c.get(Ig,[],f0.Self|f0.Optional)));return{routes:l.map(KL),injector:c}}),x2(()=>{this.childrenLoaders.delete(o)})),a=new RL(i,()=>new N).pipe(TL());return this.childrenLoaders.set(o,a),a}loadModuleFactoryOrRoutes(e){return q2(e()).pipe($(cF),On(r=>r instanceof WI||Array.isArray(r)?ve(r):Un(this.compiler.compileModuleAsync(r))))}}return n.\u0275fac=function(e){return new(e||n)(Se(Jo),Se(v7))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cF(n){return function wce(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let IC=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new N,this.configLoader=c0(nT),this.environmentInjector=c0(cc),this.urlSerializer=c0(H_),this.rootContexts=c0(G_),this.navigationId=0,this.afterPreactivation=()=>ve(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new hse(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new fse(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const o=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:o})}setupNavigations(e){return this.transitions=new No({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:V_,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(zt(o=>0!==o.id),$(o=>({...o,extractedUrl:e.urlHandlingStrategy.extract(o.rawUrl)})),ui(o=>{let r=!1,i=!1;return ve(o).pipe(Xo(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ui(a=>{const s=e.browserUrlTree.toString(),c=!e.navigated||a.extractedUrl.toString()!==s||s!==e.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new T9(a.id,e.serializeUrl(o.rawUrl),u,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),h1}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return lF(a.source)&&(e.browserUrlTree=a.extractedUrl),ve(a).pipe(ui(u=>{const d=this.transitions?.getValue();return this.events.next(new FL(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?h1:Promise.resolve(u)}),function pce(n,t,e,o){return ui(r=>function cce(n,t,e,o,r){return new lce(n,t,e,o,r).apply()}(n,t,e,r.extractedUrl,o).pipe($(i=>({...r,urlAfterRedirects:i}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),Xo(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},o.urlAfterRedirects=u.urlAfterRedirects}),function mce(n,t,e,o,r){return On(i=>function fce(n,t,e,o,r,i,a="emptyOnly"){return new hce(n,t,e,o,r,a,i).recognize().pipe(ui(s=>null===s?function dce(n){return new U(t=>t.error(n))}(new uce):ve(s)))}(n,t,e,i.urlAfterRedirects,o.serialize(i.urlAfterRedirects),o,r).pipe($(a=>({...i,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Xo(u=>{if(o.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(h,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new cse(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(c&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:M,extras:g}=a,_=new FL(u,this.urlSerializer.serialize(d),h,M);this.events.next(_);const z=E9(d,this.rootComponentType).snapshot;return ve(o={...a,targetSnapshot:z,urlAfterRedirects:d,extras:{...g,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new T9(a.id,e.serializeUrl(o.extractedUrl),u,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),h1}}),Xo(a=>{const s=new lse(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),$(a=>o={...a,guards:Dse(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function Use(n,t){return On(e=>{const{targetSnapshot:o,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:a}}=e;return 0===a.length&&0===i.length?ve({...e,guardsResult:!0}):function Vse(n,t,e,o){return Un(n).pipe(On(r=>function Qse(n,t,e,o,r){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?ve(i.map(s=>{const c=Z_(t)??r,l=Eg(s,c);return q2(function Hse(n){return n&&Q_(n.canDeactivate)}(l)?l.canDeactivate(n,t,e,o):c.runInContext(()=>l(n,t,e,o))).pipe(iu())})).pipe(Ng()):ve(!0)}(r.component,r.route,e,t,o)),iu(r=>!0!==r,!0))}(a,o,r,n).pipe(On(s=>s&&function Ise(n){return"boolean"==typeof n}(s)?function $se(n,t,e,o){return Un(t).pipe(P2(r=>Lg(function Zse(n,t){return null!==n&&t&&t(new Mse(n)),ve(!0)}(r.route.parent,o),function Gse(n,t){return null!==n&&t&&t(new gse(n)),ve(!0)}(r.route,o),function Jse(n,t,e){const o=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(a=>function kse(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(a)).filter(a=>null!==a).map(a=>I_(()=>ve(a.guards.map(c=>{const l=Z_(a.node)??e,u=Eg(c,l);return q2(function Yse(n){return n&&Q_(n.canActivateChild)}(u)?u.canActivateChild(o,n):l.runInContext(()=>u(o,n))).pipe(iu())})).pipe(Ng())));return ve(i).pipe(Ng())}(n,r.path,e),function Kse(n,t,e){const o=t.routeConfig?t.routeConfig.canActivate:null;if(!o||0===o.length)return ve(!0);const r=o.map(i=>I_(()=>{const a=Z_(t)??e,s=Eg(i,a);return q2(function Fse(n){return n&&Q_(n.canActivate)}(s)?s.canActivate(t,n):a.runInContext(()=>s(t,n))).pipe(iu())}));return ve(r).pipe(Ng())}(n,r.route,e))),iu(r=>!0!==r,!0))}(o,i,n,t):ve(s)),$(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),Xo(a=>{if(o.guardsResult=a.guardsResult,sh(a.guardsResult))throw F9(0,a.guardsResult);const s=new pse(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),zt(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),tT(a=>{if(a.guards.canActivateChecks.length)return ve(a).pipe(Xo(s=>{const c=new use(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),ui(s=>{let c=!1;return ve(s).pipe(function _ce(n,t){return On(e=>{const{targetSnapshot:o,guards:{canActivateChecks:r}}=e;if(!r.length)return ve(e);let i=0;return Un(r).pipe(P2(a=>function zce(n,t,e,o){const r=n.routeConfig,i=n._resolve;return void 0!==r?.title&&!aF(r)&&(i[F_]=r.title),function vce(n,t,e,o){const r=function Ace(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return ve({});const i={};return Un(r).pipe(On(a=>function yce(n,t,e,o){const r=Z_(t)??o,i=Eg(n,r);return q2(i.resolve?i.resolve(t,e):r.runInContext(()=>i(t,e)))}(n[a],t,e,o).pipe(iu(),Xo(s=>{i[a]=s}))),SL(1),h9(i),dd(a=>JL(a)?h1:rh(a)))}(i,n,t,o).pipe($(a=>(n._resolvedData=a,n.data=N9(n,e).resolve,r&&aF(r)&&(n.data[F_]=r.title),null)))}(a.route,o,n,t)),Xo(()=>i++),SL(1),On(a=>i===r.length?ve(e):h1))})}(e.paramsInheritanceStrategy,this.environmentInjector),Xo({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),Xo(s=>{const c=new dse(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),tT(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe(Xo(u=>{c.component=u}),$(()=>{})));for(const u of c.children)l.push(...s(u));return l};return LL(s(a.targetSnapshot.root)).pipe(B_(),$l(1))}),tT(()=>this.afterPreactivation()),$(a=>{const s=function yse(n,t,e){const o=$_(n,t._root,e?e._root:void 0);return new k9(o,t)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o={...a,targetRouterState:s}}),Xo(a=>{e.currentUrlTree=a.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),e.routerState=a.targetRouterState,"deferred"===e.urlUpdateStrategy&&(a.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,a),e.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>$(o=>(new Sse(t,o.targetRouterState,o.currentRouterState,e).activate(n),o)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),Xo({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new W2(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),x2(()=>{r||i||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),dd(a=>{if(i=!0,X9(a)){H9(a)||(e.navigated=!0,e.restoreHistory(o,!0));const s=new qC(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),H9(a)){const c=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),l={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||lF(o.source)};e.scheduleNavigation(c,V_,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{e.restoreHistory(o,!0);const s=new R9(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);this.events.next(s);try{o.resolve(e.errorHandler(a))}catch(c){o.reject(c)}}return h1}))}))}cancelNavigationTransition(e,o,r){const i=new qC(e.id,this.urlSerializer.serialize(e.extractedUrl),o,r);this.events.next(i),e.resolve(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lF(n){return n!==V_}let pF=(()=>{class n{buildTitle(e){let o,r=e.root;for(;void 0!==r;)o=this.getResolvedTitleForRoute(r)??o,r=r.children.find(i=>i.outlet===A1);return o}getResolvedTitleForRoute(e){return e.data[F_]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:function(){return c0(Pce)},providedIn:"root"}),n})(),Pce=(()=>{class n extends pF{constructor(e){super(),this.title=e}updateTitle(e){const o=this.buildTitle(e);void 0!==o&&this.title.setTitle(o)}}return n.\u0275fac=function(e){return new(e||n)(Se(HB))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:function(){return c0(qce)},providedIn:"root"}),n})();class xce{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let qce=(()=>{class n extends xce{}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const BC=new Qt("",{providedIn:"root",factory:()=>({})});let Lce=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:function(){return c0(Tce)},providedIn:"root"}),n})(),Tce=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,o){return e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Rce(n){throw n}function Sce(n,t,e){return t.parse("/")}const Dce={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kce={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ls=(()=>{class n{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=c0(Bne),this.isNgZoneEnabled=!1,this.options=c0(BC,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Rce,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Sce,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=c0(Lce),this.routeReuseStrategy=c0(oT),this.urlCreationStrategy=c0(zse),this.titleStrategy=c0(pF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=b9(c0(Ig,{optional:!0})??[]),this.navigationTransitions=c0(IC),this.urlSerializer=c0(H_),this.location=c0($W),this.isNgZoneEnabled=c0(Lo)instanceof Lo&&Lo.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ih,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=E9(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),V_,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const o="popstate"===e.type?"popstate":"hashchange";"popstate"===o&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,o,e.state)},0)}))}navigateToSyncWithBrowser(e,o,r){const i={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(i.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,o,a,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(KL),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,o={}){const{relativeTo:r,queryParams:i,fragment:a,queryParamsHandling:s,preserveFragment:c}=o,l=c?this.currentUrlTree.fragment:a;let u=null;switch(s){case"merge":u={...this.currentUrlTree.queryParams,...i};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,l??null)}navigateByUrl(e,o={skipLocationChange:!1}){const r=sh(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(i,V_,null,o)}navigate(e,o={skipLocationChange:!1}){return function Ece(n){for(let t=0;t{const i=e[r];return null!=i&&(o[r]=i),o},{})}scheduleNavigation(e,o,r,i,a){if(this.disposed)return Promise.resolve(!1);let s,c,l,u;return a?(s=a.resolve,c=a.reject,l=a.promise):l=new Promise((d,h)=>{s=d,c=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:o,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:i,resolve:s,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(e,o){const r=this.urlSerializer.serialize(e),i={...o.extras.state,...this.generateNgRouterState(o.id,o.targetPageId)};this.location.isCurrentPathEqualTo(r)||o.extras.replaceUrl?this.location.replaceState(r,"",i):this.location.go(r,"",i)}restoreHistory(e,o=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===r?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(o&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,o){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:o}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lh=(()=>{class n{constructor(e,o,r,i,a,s){this.router=e,this.route=o,this.tabIndexAttribute=r,this.renderer=i,this.el=a,this.locationStrategy=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new N;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof W2&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=xg(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=xg(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=xg(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,o,r,i,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||o||r||i||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function ws(n,t,e){return function c6(n,t){return"src"===t&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===t&&("base"===n||"link"===n)?Uy:io}(t,e)(n)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,o){const r=this.renderer,i=this.el.nativeElement;null!==o?r.setAttribute(i,e,o):r.removeAttribute(i,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(Te(Ls),Te(ch),function ic(n){return function m3(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const o=e.length;let r=0;for(;r{class n{get isActive(){return this._isActive}constructor(e,o,r,i,a){this.router=e,this.element=o,this.renderer=r,this.cdr=i,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new G1,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof W2&&this.update()})}ngAfterContentInit(){ve(this.links.changes,ve(null)).pipe(nn()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=Un(e).pipe(nn()).subscribe(o=>{this._isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(e){const o=Array.isArray(e)?e:e.split(" ");this.classes=o.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(o=>{e?this.renderer.addClass(this.element.nativeElement,o):this.renderer.removeClass(this.element.nativeElement,o)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const o=function Nce(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,o)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return n.\u0275fac=function(e){return new(e||n)(Te(Ls),Te(fn),Te(P1),Te(dc),Te(lh,8))},n.\u0275dir=b0({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,o,r){if(1&e&&function ZI(n,t,e,o){const r=d1();if(r.firstCreatePass){const i=cr();JI(r,new $I(t,e,o),i.index),function mne(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}KI(r,gt(),e)}(r,lh,5),2&e){let i;xs(i=qs())&&(o.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Fo]}),n})();class dF{}let Ice=(()=>{class n{constructor(e,o,r,i,a){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(zt(e=>e instanceof W2),P2(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,o){const r=[];for(const i of o){i.providers&&!i._injector&&(i._injector=j4(i.providers,e,`Route: ${i.path}`));const a=i._injector??e,s=i._loadedInjector??a;i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent?r.push(this.preloadConfig(a,i)):(i.children||i._loadedRoutes)&&r.push(this.processRoutes(s,i.children??i._loadedRoutes))}return Un(r).pipe(nn())}preloadConfig(e,o){return this.preloadingStrategy.preload(o,()=>{let r;r=o.loadChildren&&void 0===o.canLoad?this.loader.loadChildren(e,o):ve(null);const i=r.pipe(On(a=>null===a?ve(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return o.loadComponent&&!o._loadedComponent?Un([i,this.loader.loadComponent(o)]).pipe(nn()):i})}}return n.\u0275fac=function(e){return new(e||n)(Se(Ls),Se(v7),Se(cc),Se(dF),Se(nT))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rT=new Qt("");let fF=(()=>{class n{constructor(e,o,r,i,a={}){this.urlSerializer=e,this.transitions=o,this.viewportScroller=r,this.zone=i,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof FL?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof W2&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof S9&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new S9(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(e){!function C4(){throw new Error("invalid")}()},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const Bg=!1;function ph(n,t){return{\u0275kind:n,\u0275providers:t}}const iT=new Qt("",{providedIn:"root",factory:()=>!1});function MF(){const n=c0(Jo);return t=>{const e=n.get(C2);if(t!==e.components[0])return;const o=n.get(Ls),r=n.get(bF);1===n.get(aT)&&o.initialNavigation(),n.get(gF,null,f0.Optional)?.setUpPreloading(),n.get(rT,null,f0.Optional)?.init(),o.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const bF=new Qt(Bg?"bootstrap done indicator":"",{factory:()=>new N}),aT=new Qt(Bg?"initial navigation":"",{providedIn:"root",factory:()=>1});function Hce(){let n=[];return n=Bg?[{provide:r1,multi:!0,useFactory:()=>{const t=c0(Ls);return()=>t.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function mse(n){if(!("type"in n))return`Unknown Router Event: ${n.constructor.name}`;switch(n.type){case 14:return`ActivationEnd(path: '${n.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${n.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${n.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${n.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state}, shouldActivate: ${n.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 2:return`NavigationCancel(id: ${n.id}, url: '${n.url}')`;case 16:return`NavigationSkipped(id: ${n.id}, url: '${n.url}')`;case 1:return`NavigationEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${n.id}, url: '${n.url}', error: ${n.error})`;case 0:return`NavigationStart(id: ${n.id}, url: '${n.url}')`;case 6:return`ResolveEnd(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 5:return`ResolveStart(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 10:return`RouteConfigLoadEnd(path: ${n.route.path})`;case 9:return`RouteConfigLoadStart(path: ${n.route.path})`;case 4:return`RoutesRecognized(id: ${n.id}, url: '${n.url}', urlAfterRedirects: '${n.urlAfterRedirects}', state: ${n.state})`;case 15:return`Scroll(anchor: '${n.anchor}', position: '${n.position?`${n.position[0]}, ${n.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],ph(1,n)}const gF=new Qt(Bg?"router preloader":"");function Xce(n){return ph(0,[{provide:gF,useExisting:Ice},{provide:dF,useExisting:n}])}const nz=!1,OF=new Qt(nz?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),jce=[$W,{provide:H_,useClass:DL},Ls,G_,{provide:ch,useFactory:function hF(n){return n.routerState.root},deps:[Ls]},nT,nz?{provide:iT,useValue:!0}:[]];function Uce(){return new q7("Router",Ls)}let oz=(()=>{class n{constructor(e){}static forRoot(e,o){return{ngModule:n,providers:[jce,nz&&o?.enableTracing?Hce().\u0275providers:[],{provide:Ig,multi:!0,useValue:e},{provide:OF,useFactory:Zce,deps:[[Ls,new Up,new u2]]},{provide:BC,useValue:o||{}},o?.useHash?{provide:oh,useClass:Poe}:{provide:oh,useClass:Q7},{provide:rT,useFactory:()=>{const n=c0(kre),t=c0(Lo),e=c0(BC),o=c0(IC),r=c0(H_);return e.scrollOffset&&n.setOffset(e.scrollOffset),new fF(r,o,n,t,e)}},o?.preloadingStrategy?Xce(o.preloadingStrategy).\u0275providers:[],{provide:q7,multi:!0,useFactory:Uce},o?.initialNavigation?Kce(o):[],[{provide:mF,useFactory:MF},{provide:z7,multi:!0,useExisting:mF}]]}}static forChild(e){return{ngModule:n,providers:[{provide:Ig,multi:!0,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)(Se(OF,8))},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({imports:[GL]}),n})();function Zce(n){if(nz&&n)throw new Pt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Kce(n){return["disabled"===n.initialNavigation?ph(3,[{provide:G4,multi:!0,useFactory:()=>{const t=c0(Ls);return()=>{t.setUpLocationChangeListener()}}},{provide:aT,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ph(2,[{provide:aT,useValue:0},{provide:G4,multi:!0,deps:[Jo],useFactory:t=>{const e=t.get(Coe,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const i=t.get(Ls),a=t.get(bF);(function o(r){t.get(Ls).events.pipe(zt(a=>a instanceof W2||a instanceof qC||a instanceof R9),$(a=>a instanceof W2||a instanceof qC&&(0===a.code||1===a.code)&&null),zt(a=>null!==a),$l(1)).subscribe(()=>{r()})})(()=>{r(!0)}),t.get(IC).afterPreactivation=()=>(r(!0),a.closed?ve(void 0):a),i.initialNavigation()}))}}]).\u0275providers:[]]}const mF=new Qt(nz?"Router Initializer":""),$e={production:!0,version:"alpha",nftLiveVersion:!0,consensusUrl:"https://api.chain.storecloud.org/api",assetAPIBaseUrl:"https://api.asset.storecloud.org/api/",vmStatsAPIBaseUrl:"https://api.vm.stats.storecloud.org/api/",oracleAPIBaseUrl:"https://dev.ai.storecloud.org",cloudVMAPIBaseUrl:"https://api.compute.pricing.storecloud.org",transactionHistoryAPI:"https://api.transaction.storecloud.org",storePriceUSD:.039,one$STOREEqualToOneByte:125e5,one$STOREEqualsToOneBit:1e8,platformFee:.025,permanentStorageRoyalty:.02,maxViewsForNFT:1e4,bandwidthViewCheckEnabled:!1,headerVersion:1,wallet:{chainId:11155111,magicPublicKey:"pk_live_219739CD1B22AE64",magicTestMode:!0,etherscanAPIKey:"3EKGS2TU4WXRTBHKB3DQNFX87GIWXE5IHN",etherscanAPI_URL:"https://api-sepolia.etherscan.io/api",cloudflareEthAPIURL:"https://ether.storecloud.org/v1/sepolia",etherscanURL:"https://sepolia.etherscan.io/",storeWalletAddress:"0x54Df911a1e08988fD05408ee22E19178B7590C70"},ipfs:{main_url:"https://ipfs.storecloud.org",astore_url:"https://astore.storecloud.org",bstore_url:"https://bstore.storecloud.org",cstore_url:"https://cstore.storecloud.org",dstore_url:"https://dstore.storecloud.org",estore_url:"https://estore.storecloud.org"},baserow:{key:"kFZpXCdyw66xw9brps8gcpiVZDrsMWfB",oracleKey:"pzk1QGB6XMpHKDQudeA3ffiXABwhNqKk",tableURL:"https://api.baserow.io/api/database/rows/table/96260/?user_field_names=true"},contract:JSON.parse('{"address":"0x25742cC498C61296630D83A7E5E7951E31cC6bfB","abi":[{"type":"constructor","payable":false,"inputs":[]},{"type":"event","anonymous":false,"name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"approved","indexed":true},{"type":"uint256","name":"tokenId","indexed":true}]},{"type":"event","anonymous":false,"name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"operator","indexed":true},{"type":"bool","name":"approved","indexed":false}]},{"type":"event","anonymous":false,"name":"MintedNFTSuccess","inputs":[{"type":"uint256","name":"tokenId","indexed":true},{"type":"address","name":"owner","indexed":false},{"type":"string","name":"storeId","indexed":false},{"type":"string","name":"cloud","indexed":false},{"type":"string","name":"cost","indexed":false}]},{"type":"event","anonymous":false,"name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"tokenId","indexed":true}]},{"type":"function","name":"approve","constant":false,"payable":false,"inputs":[{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]},{"type":"function","name":"balanceOf","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"owner"}],"outputs":[{"type":"uint256"}]},{"type":"function","name":"getAllMintedNFTs","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple[]","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"storeId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getApproved","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"address"}]},{"type":"function","name":"getCurrentNFT","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"uint256"}]},{"type":"function","name":"getLatestIdToMintedNFT","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"storeId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getListedMintedNFTForId","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"tuple","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"storeId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"getMyMintedNFTs","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"tuple[]","components":[{"type":"uint256","name":"tokenId"},{"type":"address","name":"owner"},{"type":"string","name":"storeId"},{"type":"string","name":"cloud"},{"type":"string","name":"cost"}]}]},{"type":"function","name":"isApprovedForAll","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"address","name":"owner"},{"type":"address","name":"operator"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"mintNFT","constant":false,"stateMutability":"payable","payable":true,"inputs":[{"type":"string","name":"CLOUD"},{"type":"string","name":"COST"},{"type":"string","name":"STOREID"}],"outputs":[{"type":"uint256"}]},{"type":"function","name":"name","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"string"}]},{"type":"function","name":"ownerOf","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"address"}]},{"type":"function","name":"safeTransferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]},{"type":"function","name":"safeTransferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"},{"type":"bytes","name":"data"}],"outputs":[]},{"type":"function","name":"setApprovalForAll","constant":false,"payable":false,"inputs":[{"type":"address","name":"operator"},{"type":"bool","name":"approved"}],"outputs":[]},{"type":"function","name":"supportsInterface","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"bytes4","name":"interfaceId"}],"outputs":[{"type":"bool"}]},{"type":"function","name":"symbol","constant":true,"stateMutability":"view","payable":false,"inputs":[],"outputs":[{"type":"string"}]},{"type":"function","name":"tokenURI","constant":true,"stateMutability":"view","payable":false,"inputs":[{"type":"uint256","name":"tokenId"}],"outputs":[{"type":"string"}]},{"type":"function","name":"transferFrom","constant":false,"payable":false,"inputs":[{"type":"address","name":"from"},{"type":"address","name":"to"},{"type":"uint256","name":"tokenId"}],"outputs":[]}]}'),externalURL:{website:"https://storecloud.org/",explorer_app:"https://test.explorer.storecloud.org",oracle_app:"https://test.oracle.storecloud.org/",developer_app:"https://test.developer.storecloud.org/",governor_app:"https://test.governor.storecloud.org/",cloud_app:"https://test.cloud.storecloud.org/",research:"https://storecloud.org/research",monetary:"https://storecloud.org/treasury",cloud:"https://storecloud.org/research/store-cloud",governance:"https://storecloud.org/governance",twitter:"https://x.com/thestorecloud",telegram:"https://t.me/thestorecloud",requestToBuy:"https://storecloud.org/buystore",protocolPlan:"https://docsend.com/view/hqcw598kjqt62azz",commingSoon:"https://storecloud.org/coming-soon",blog:"https://storecloud.org/blog",brand:"https://storecloud.org/brand",analytics_app:"https://poweredby.storecloud.org",memes:"https://storecloud.org/memes",onePager:"https://docsend.com/view/8vg54su3t58vie69",press:"https://storecloud.org/press"},analyticsKeys:{cloud:"ebc5466c-f003-49a4-a24c-f0a91c4a580b",developer:"8587dce4-7094-4252-b5f7-c3590c80d27a",explorer:"ce917f92-7a79-45d2-8b1d-fb34b0c62c79",governor:"ec9c0813-4527-430c-abcc-dc795cf6ad9d",oracle:"dbb3ddbb-d0d5-422c-9f61-b158fd7b6119",website:"a81bd636-c124-4125-94fa-92459ab421e4"},publisher:{baseSize:{store:{meta:7611,table:4114},ethereum:{meta:7942,table:4010}}},mailerLite:{groupId:"111909496907892706"}};function hc(n){return mt((t,e)=>{D0(n).subscribe(V(e,()=>e.complete(),At)),!e.closed&&t.subscribe(e)})}const ele=ql,nle=Symbol("__destroy"),_F=Symbol("__decoratorApplied");function zF(n){return"string"==typeof n?Symbol(`__destroy__${n}`):nle}function vF(n,t){n[t]||(n[t]=new N)}function AF(n,t){n[t]&&(n[t].next(),n[t].complete(),n[t]=null)}function yF(n){n instanceof B&&n.unsubscribe()}function CF(n,t){return function(){if(n&&n.call(this),AF(this,zF()),t.arrayName&&function rle(n){Array.isArray(n)&&n.forEach(yF)}(this[t.arrayName]),t.checkProperties)for(const e in this)t.blackList?.includes(e)||yF(this[e])}}function h0(n={}){return t=>{!function tle(n){return!!n[ele]}(t)?function ile(n,t){n.prototype.ngOnDestroy=CF(n.prototype.ngOnDestroy,t)}(t,n):function ale(n,t){const e=n.\u0275pipe;e.onDestroy=CF(e.onDestroy,t)}(t,n),function ole(n){n.prototype[_F]=!0}(t)}}const wF=7,PF=Symbol("CheckerHasBeenSet");function xF(n){const t=vn.Zone;return t&&"function"==typeof t.root?.run?t.root.run(n):n()}const sT=!1;function at(n,t){return e=>{const o=zF(t);"string"==typeof t?function ple(n,t,e){const o=n[t];if(sT&&"function"!=typeof o)throw new Error(`${n.constructor.name} is using untilDestroyed but doesn't implement ${t}`);vF(n,e),n[t]=function(){o.apply(this,arguments),AF(this,e),n[t]=o}}(n,t,o):(sT&&function ule(n){const t=Object.getPrototypeOf(n);if(!(_F in t))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(n),vF(n,o));const r=n[o];return sT&&function sle(n,t){n[PF]||function cle(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process)}()||(xF(()=>Un(Promise.resolve()).pipe(On(()=>{let e;try{e=Ai(n)}catch{e=null}const o=e?.lView;if(null==o)return h1;const r=o[wF]||(o[wF]=[]),i=new N;return r.push(function(){xF(()=>{i.next(),i.complete()})}),i}),On(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(function lle(n){return`\n The ${n.constructor.name} still has subscriptions that haven't been unsubscribed.\n This may happen if the class extends another class decorated with @UntilDestroy().\n The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().\n Let's look at the following example:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {}\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n }\n }\n The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy()\n on the ConcreteComponent, but not on the BaseDirective.\n One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {\n ngOnDestroy(): void {}\n }\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n super.ngOnDestroy();\n }\n }\n `}(n))})),n[PF]=!0)}(n,r),e.pipe(hc(r))}}var cu=G(7489);class dle extends B{constructor(t,e){super()}schedule(t,e=0){return this}}const FC={setInterval(n,t,...e){const{delegate:o}=FC;return o?.setInterval?o.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=FC;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class rz{constructor(t,e=rz.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,o){return new this.schedulerActionCtor(this,t).schedule(o,e)}}rz.now=PL.now;const iz=new class hle extends rz{constructor(t,e=rz.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let o;this._active=!0;do{if(o=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,o){for(;t=e.shift();)t.unsubscribe();throw o}}}(class fle extends dle{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var o;if(this.closed)return this;this.state=t;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,e)),this.pending=!0,this.delay=e,this.id=null!==(o=this.id)&&void 0!==o?o:this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,o=0){return FC.setInterval(t.flush.bind(t,this),o)}recycleAsyncId(t,e,o=0){if(null!=o&&this.delay===o&&!1===this.pending)return e;null!=e&&FC.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const o=this._execute(t,e);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,o=!1;try{this.work(t)}catch(i){o=!0,r=i||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:o}=e;this.work=this.state=this.scheduler=null,this.pending=!1,C(o,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}),Mle=iz;function qF(n,t){return t?e=>Lg(t.pipe($l(1),function ble(){return mt((n,t)=>{n.subscribe(V(t,At))})}()),e.pipe(qF(n))):On((e,o)=>D0(n(e,o)).pipe($l(1),h9(e)))}function az(n=0,t,e=Mle){let o=-1;return null!=t&&(Rr(t)?e=t:o=t),new U(r=>{let i=function gle(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;i<0&&(i=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=o?this.schedule(void 0,o):r.complete())},i)})}function Pi(n,t=iz){const e=az(n,t);return qF(()=>e)}var cT=function(n,t){return(cT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])})(n,t)};function R1(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}cT(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var n,t,lT=12,uh=lT+"px sans-serif",Cle=function yle(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=a*e.length;else for(var c=0;c"u"&&typeof self<"u"?dh.worker=!0:typeof navigator>"u"?(dh.node=!0,dh.svgSupported=!0):function Ble(n,t){var e=t.browser,o=n.match(/Firefox\/([\d.]+)/),r=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);o&&(e.firefox=!0,e.version=o[1]),r&&(e.ie=!0,e.version=r[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}(navigator.userAgent,dh);const X1=dh;var Fle=".",fh="___EC__COMPONENT__CONTAINER___",YF="___EC__EXTENDED_CLASS___";function uu(n){var t={main:"",sub:""};if(n){var e=n.split(Fle);t.main=e[0]||"",t.sub=e[1]||""}return t}function bT(n,t){n.$constructor=n,n.extend=function(e){var r,o=this;return function Xle(n){return S1(n)&&/^class\s/.test(Function.prototype.toString.call(n))}(o)?r=function(i){function a(){return i.apply(this,arguments)||this}return R1(a,i),a}(o):(r=function(){(e.$constructor||o).apply(this,arguments)},function Wle(n,t){var e=n.prototype;function o(){}for(var r in o.prototype=t.prototype,n.prototype=new o,e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);n.prototype.constructor=n,n.superClass=t}(r,this)),Xt(r.prototype,e),r[YF]=!0,r.extend=this.extend,r.superCall=Vle,r.superApply=$le,r.superClass=o,r}}function HF(n,t){n.extend=t.extend}var jle=Math.round(10*Math.random());function Vle(n,t){for(var e=[],o=2;o=0||i&&_o(i,c)<0)){var l=o.getShallow(c,t);null!=l&&(a[n[s][0]]=l)}}return a}}var Zle=pz([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Kle=function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return Zle(this,t,e)},n}(),gT=function(n,t){return(gT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])})(n,t)};function vo(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}gT(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var VF=function n(t){this.value=t},epe=function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new VF(t);return this.insertEntry(e),e},n.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.prototype.remove=function(t){var e=t.prev,o=t.next;e?e.next=o:this.head=o,o?o.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),tpe=function(){function n(t){this._list=new epe,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var o=this._list,r=this._map,i=null;if(null==r[t]){var a=o.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var c=o.head;o.remove(c),delete r[c.key],i=c.value,this._lastRemovedEntry=c}s?s.value=e:s=new VF(e),s.key=t,o.insertEntry(s),r[t]=s}return i},n.prototype.get=function(t){var e=this._map[t],o=this._list;if(null!=e)return e!==o.tail&&(o.remove(e),o.insertEntry(e)),e.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const uz=tpe;var OT=new uz(50);function npe(n){if("string"==typeof n){var t=OT.get(n);return t&&t.image}return n}function $F(n,t,e,o,r){if(n){if("string"==typeof n){if(t&&t.__zrImageSrc===n||!e)return t;var i=OT.get(n),a={hostEl:e,cb:o,cbPayload:r};return i?!KC(t=i.image)&&i.pending.push(a):((t=hd.loadImage(n,GF,GF)).__zrImageSrc=n,OT.put(n,t.__cachedImgObj={image:t,pending:[a]})),t}return n}return t}function GF(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tg&&(g=L,g1.set(fz,_g&&(g=S,g1.set(fz,0,y=o.x&&t<=o.x+o.width&&e>=o.y&&e<=o.y+o.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return 0===this.width||0===this.height},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},n.applyTransform=function(t,e,o){if(o){if(o[1]<1e-5&&o[1]>-1e-5&&o[2]<1e-5&&o[2]>-1e-5){var r=o[0],i=o[3],s=o[5];return t.x=e.x*r+o[4],t.y=e.y*i+s,t.width=e.width*r,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}hh.x=bh.x=e.x,hh.y=gh.y=e.y,Mh.x=gh.x=e.x+e.width,Mh.y=bh.y=e.y+e.height,hh.transform(o),gh.transform(o),Mh.transform(o),bh.transform(o),t.x=JC(hh.x,Mh.x,bh.x,gh.x),t.y=JC(hh.y,Mh.y,bh.y,gh.y);var c=QC(hh.x,Mh.x,bh.x,gh.x),l=QC(hh.y,Mh.y,bh.y,gh.y);t.width=c-t.x,t.height=l-t.y}else t!==e&&n.copy(t,e)},n}();const Kn=ipe;var KF={};function bc(n,t){var e=KF[t=t||uh];e||(e=KF[t]=new uz(500));var o=e.get(n);return null==o&&(o=hd.measureText(n,t).width,e.put(n,o)),o}function JF(n,t,e,o){var r=bc(n,t),i=yT(t),a=hz(0,r,e),s=jg(0,i,o);return new Kn(a,s,r,i)}function AT(n,t,e,o){var r=((n||"")+"").split("\n");if(1===r.length)return JF(r[0],t,e,o);for(var a=new Kn(0,0,0,0),s=0;s=0?parseFloat(n)/100*t:parseFloat(n):n}function QF(n,t,e){var o=t.position||"inside",r=null!=t.distance?t.distance:5,i=e.height,a=e.width,s=i/2,c=e.x,l=e.y,u="left",d="top";if(o instanceof Array)c+=T2(o[0],e.width),l+=T2(o[1],e.height),u=null,d=null;else switch(o){case"left":c-=r,l+=s,u="right",d="middle";break;case"right":c+=r+a,l+=s,d="middle";break;case"top":c+=a/2,l-=r,u="center",d="bottom";break;case"bottom":c+=a/2,l+=i+r,u="center";break;case"inside":c+=a/2,l+=s,u="center",d="middle";break;case"insideLeft":c+=r,l+=s,d="middle";break;case"insideRight":c+=a-r,l+=s,u="right",d="middle";break;case"insideTop":c+=a/2,l+=r,u="center";break;case"insideBottom":c+=a/2,l+=i-r,u="center",d="bottom";break;case"insideTopLeft":c+=r,l+=r;break;case"insideTopRight":c+=a-r,l+=r,u="right";break;case"insideBottomLeft":c+=r,l+=i-r,d="bottom";break;case"insideBottomRight":c+=a-r,l+=i-r,u="right",d="bottom"}return(n=n||{}).x=c,n.y=l,n.align=u,n.verticalAlign=d,n}var CT=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ape(n,t,e,o,r){if(!t)return"";var i=(n+"").split("\n");r=eY(t,e,o,r);for(var a=0,s=i.length;a=a;c++)s-=a;var l=bc(e,t);return l>s&&(e="",l=0),s=n-l,r.ellipsis=e,r.ellipsisWidth=l,r.contentWidth=s,r.containerWidth=n,r}function tY(n,t){var e=t.containerWidth,o=t.font,r=t.contentWidth;if(!e)return"";var i=bc(n,o);if(i<=e)return n;for(var a=0;;a++){if(i<=r||a>=t.maxIterations){n+=t.ellipsis;break}var s=0===a?spe(n,r,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(n.length*r/i):0;i=bc(n=n.substr(0,s),o)}return""===n&&(n=t.placeholder),n}function spe(n,t,e,o){for(var r=0,i=0,a=n.length;i0&&g+o.accumWidth>o.width&&(u=t.split("\n"),l=!0),o.accumWidth=g}else{var _=oY(t,c,o.width,o.breakAll,o.accumWidth);o.accumWidth=_.accumWidth+M,d=_.linesWidths,u=_.lines}}else u=t.split("\n");for(var z=0;z=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(n)||!!fpe[n]}function oY(n,t,e,o,r){for(var i=[],a=[],s="",c="",l=0,u=0,d=0;de:r+u+M>e)?u?(s||c)&&(g?(s||(s=c,c="",u=l=0),i.push(s),a.push(u-l),c+=h,s="",u=l+=M):(c&&(s+=c,c="",l=0),i.push(s),a.push(u),s=h,u=M)):g?(i.push(c),a.push(l),c=h,l=M):(i.push(h),a.push(M)):(u+=M,g?(c+=h,l+=M):(c&&(s+=c,c="",l=0),s+=h))}else c&&(s+=c,u+=l),i.push(s),a.push(u),s="",c="",l=0,u=0}return!i.length&&!s&&(s=n,c="",l=0),c&&(s+=c),s&&(i.push(s),a.push(u)),1===i.length&&(u+=r),{accumWidth:u,lines:i,linesWidths:a}}function Ug(n,t){return null==n&&(n=0),null==t&&(t=0),[n,t]}function Mpe(n){return[n[0],n[1]]}function rY(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function bpe(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function PT(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n}function xT(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}var qT=xT,Vg=function _pe(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])};function WT(n,t,e,o){return n[0]=t[0]+o*(e[0]-t[0]),n[1]=t[1]+o*(e[1]-t[1]),n}function Vc(n,t,e){var o=t[0],r=t[1];return n[0]=e[0]*o+e[2]*r+e[4],n[1]=e[1]*o+e[3]*r+e[5],n}function $g(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n}function Gg(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n}var iY=mT,aY=5e-5;function Oh(n){return n>aY||n<-aY}var mh=[],Zg=[],LT=[1,0,0,1,0,0],TT=Math.abs,zpe=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.prototype.needLocalTransform=function(){return Oh(this.rotation)||Oh(this.x)||Oh(this.y)||Oh(this.scaleX-1)||Oh(this.scaleY-1)||Oh(this.skewX)||Oh(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),o=this.transform;e||t?(o=o||[1,0,0,1,0,0],e?this.getLocalTransform(o):iY(o),t&&(e?Xg(o,t,o):function ZF(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}(o,t)),this.transform=o,this._resolveGlobalScaleRatio(o)):o&&iY(o)},n.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(mh);var o=mh[0]<0?-1:1,r=mh[1]<0?-1:1,i=((mh[0]-o)*e+o)/mh[0]||0,a=((mh[1]-r)*e+r)/mh[1]||0;t[0]*=i,t[1]*=i,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],vT(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},n.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],o=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);o=Math.sqrt(o)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=o,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Xg(Zg,t.invTransform,e),e=Zg);var o=this.originX,r=this.originY;(o||r)&&(LT[4]=o,LT[5]=r,Xg(Zg,e,LT),Zg[4]-=o,Zg[5]-=r,e=Zg),this.setLocalTransform(e)}},n.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},n.prototype.transformCoordToLocal=function(t,e){var o=[t,e],r=this.invTransform;return r&&Vc(o,o,r),o},n.prototype.transformCoordToGlobal=function(t,e){var o=[t,e],r=this.transform;return r&&Vc(o,o,r),o},n.prototype.getLineScale=function(){var t=this.transform;return t&&TT(t[0]-1)>1e-10&&TT(t[3]-1)>1e-10?Math.sqrt(TT(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){!function vpe(n,t){for(var e=0;e-n5&&nn5||n<-n5}function di(n,t,e,o,r){var i=1-r;return i*i*(i*n+3*r*t)+r*r*(r*o+3*i*e)}function uY(n,t,e,o,r){var i=1-r;return 3*(((t-n)*i+2*(e-t)*r)*i+(o-e)*r*r)}function r5(n,t,e,o,r,i){var a=o+3*(t-e)-n,s=3*(e-2*t+n),c=3*(t-n),l=n-r,u=s*s-3*a*c,d=s*c-9*a*l,h=c*c-3*s*l,M=0;if(S2(u)&&S2(d))S2(s)?i[0]=0:(g=-c/s)>=0&&g<=1&&(i[M++]=g);else{var _=d*d-4*u*h;if(S2(_)){var z=d/u,y=-z/2;(g=-s/a+z)>=0&&g<=1&&(i[M++]=g),y>=0&&y<=1&&(i[M++]=y)}else if(_>0){var x=R2(_),L=u*s+1.5*a*(-d+x),S=u*s+1.5*a*(-d-x);(g=(-s-((L=L<0?-t5(-L,o5):t5(L,o5))+(S=S<0?-t5(-S,o5):t5(S,o5))))/(3*a))>=0&&g<=1&&(i[M++]=g)}else{var X=(2*u*s-3*a*d)/(2*R2(u*u*u)),H=Math.acos(X)/3,ie=R2(u),ee=Math.cos(H),g=(-s-2*ie*ee)/(3*a),ce=(y=(-s+ie*(ee+lY*Math.sin(H)))/(3*a),(-s+ie*(ee-lY*Math.sin(H)))/(3*a));g>=0&&g<=1&&(i[M++]=g),y>=0&&y<=1&&(i[M++]=y),ce>=0&&ce<=1&&(i[M++]=ce)}}return M}function dY(n,t,e,o,r){var i=6*e-12*t+6*n,a=9*t+3*o-3*n-9*e,s=3*t-3*n,c=0;if(S2(a))pY(i)&&(l=-s/i)>=0&&l<=1&&(r[c++]=l);else{var u=i*i-4*a*s;if(S2(u))r[0]=-i/(2*a);else if(u>0){var l,d=R2(u),h=(-i-d)/(2*a);(l=(-i+d)/(2*a))>=0&&l<=1&&(r[c++]=l),h>=0&&h<=1&&(r[c++]=h)}}return c}function i5(n,t,e,o,r,i){var a=(t-n)*r+n,s=(e-t)*r+t,c=(o-e)*r+e,l=(s-a)*r+a,u=(c-s)*r+s,d=(u-l)*r+l;i[0]=n,i[1]=a,i[2]=l,i[3]=d,i[4]=d,i[5]=u,i[6]=c,i[7]=o}function ype(n,t,e,o,r,i,a,s,c){for(var l=n,u=t,d=0,h=1/c,M=1;M<=c;M++){var g=M*h,_=di(n,e,r,a,g),z=di(t,o,i,s,g),y=_-l,x=z-u;d+=Math.sqrt(y*y+x*x),l=_,u=z}return d}function ba(n,t,e,o){var r=1-o;return r*(r*n+2*o*t)+o*o*e}function fY(n,t,e,o){return 2*((1-o)*(t-n)+o*(e-t))}function hY(n,t,e){var o=n+e-2*t;return 0===o?.5:(n-t)/o}function a5(n,t,e,o,r){var i=(t-n)*o+n,a=(e-t)*o+t,s=(a-i)*o+i;r[0]=n,r[1]=i,r[2]=s,r[3]=s,r[4]=a,r[5]=e}function Ppe(n,t,e,o,r,i,a){for(var s=n,c=t,l=0,u=1/a,d=1;d<=a;d++){var h=d*u,M=ba(n,e,r,h),g=ba(t,o,i,h),_=M-s,z=g-c;l+=Math.sqrt(_*_+z*z),s=M,c=g}return l}var xpe=/cubic-bezier\(([0-9,\.e ]+)\)/;function MY(n){var t=n&&xpe.exec(n);if(t){var e=t[1].split(","),o=+pu(e[0]),r=+pu(e[1]),i=+pu(e[2]),a=+pu(e[3]);if(isNaN(o+r+i+a))return;var s=[];return function(c){return c<=0?0:c>=1?1:r5(0,o,i,1,c,s)&&di(0,r,a,1,s[0])}}}var qpe=function(){function n(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Rs,this.ondestroy=t.ondestroy||Rs,this.onrestart=t.onrestart||Rs,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var o=this._life,r=t-this._startTime-this._pausedTime,i=r/o;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,s=a?a(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;this._startTime=t-r%o,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=S1(t)?t:sY[t]||MY(t)},n}();const Wpe=qpe;var bY={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Gl(n){return(n=Math.round(n))<0?0:n>255?255:n}function bz(n){return n<0?0:n>1?1:n}function ST(n){var t=n;return t.length&&"%"===t.charAt(t.length-1)?Gl(parseFloat(t)/100*255):Gl(parseInt(t,10))}function _h(n){var t=n;return t.length&&"%"===t.charAt(t.length-1)?bz(parseFloat(t)/100):bz(parseFloat(t))}function DT(n,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?n+(t-n)*e*6:2*e<1?t:3*e<2?n+(t-n)*(2/3-e)*6:n}function D2(n,t,e){return n+(t-n)*e}function Gc(n,t,e,o,r){return n[0]=t,n[1]=e,n[2]=o,n[3]=r,n}function kT(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var gY=new uz(20),s5=null;function Jg(n,t){s5&&kT(s5,t),s5=gY.put(n,s5||t.slice())}function Zc(n,t){if(n){t=t||[];var e=gY.get(n);if(e)return kT(t,e);var o=(n+="").replace(/ /g,"").toLowerCase();if(o in bY)return kT(t,bY[o]),Jg(n,t),t;var i,r=o.length;if("#"===o.charAt(0))return 4===r||5===r?(i=parseInt(o.slice(1,4),16))>=0&&i<=4095?(Gc(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===r?parseInt(o.slice(4),16)/15:1),Jg(n,t),t):void Gc(t,0,0,0,1):7===r||9===r?(i=parseInt(o.slice(1,7),16))>=0&&i<=16777215?(Gc(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===r?parseInt(o.slice(7),16)/255:1),Jg(n,t),t):void Gc(t,0,0,0,1):void 0;var a=o.indexOf("("),s=o.indexOf(")");if(-1!==a&&s+1===r){var c=o.substr(0,a),l=o.substr(a+1,s-(a+1)).split(","),u=1;switch(c){case"rgba":if(4!==l.length)return 3===l.length?Gc(t,+l[0],+l[1],+l[2],1):Gc(t,0,0,0,1);u=_h(l.pop());case"rgb":return l.length>=3?(Gc(t,ST(l[0]),ST(l[1]),ST(l[2]),3===l.length?u:_h(l[3])),Jg(n,t),t):void Gc(t,0,0,0,1);case"hsla":return 4!==l.length?void Gc(t,0,0,0,1):(l[3]=_h(l[3]),ET(l,t),Jg(n,t),t);case"hsl":return 3!==l.length?void Gc(t,0,0,0,1):(ET(l,t),Jg(n,t),t);default:return}}Gc(t,0,0,0,1)}}function ET(n,t){var e=(parseFloat(n[0])%360+360)%360/360,o=_h(n[1]),r=_h(n[2]),i=r<=.5?r*(o+1):r+o-r*o,a=2*r-i;return Gc(t=t||[],Gl(255*DT(a,i,e+1/3)),Gl(255*DT(a,i,e)),Gl(255*DT(a,i,e-1/3)),1),4===n.length&&(t[3]=n[3]),t}function OY(n,t){var e=Zc(n);if(e){for(var o=0;o<3;o++)e[o]=t<0?e[o]*(1-t)|0:(255-e[o])*t+e[o]|0,e[o]>255?e[o]=255:e[o]<0&&(e[o]=0);return zh(e,4===e.length?"rgba":"rgb")}}function zh(n,t){if(n&&n.length){var e=n[0]+","+n[1]+","+n[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(e+=","+n[3]),t+"("+e+")"}}function c5(n,t){var e=Zc(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}Math,X1.hasGlobalWindow&&S1(window.btoa);var NT=Array.prototype.slice;function bd(n,t,e){return(t-n)*e+n}function IT(n,t,e,o){for(var r=t.length,i=0;io?t:n,i=Math.min(e,o),a=r[i-1]||{color:[0,0,0,0],offset:0},s=i;sa)o.length=a;else for(var c=i;c=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,o){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,s=6,c=e;if(Ts(e)){var l=function Fpe(n){return Ts(n&&n[0])?2:1}(e);s=l,(1===l&&!zo(e[0])||2===l&&!zo(e[0][0]))&&(a=!0)}else if(zo(e)&&!VC(e))s=0;else if(R0(e))if(isNaN(+e)){var u=Zc(e);u&&(c=u,s=3)}else s=0;else if(UC(e)){var d=Xt({},c);d.colorStops=Q0(e.colorStops,function(M){return{offset:M.offset,color:Zc(M.color)}}),function kpe(n){return"linear"===n.type}(e)?s=BT:function Epe(n){return"radial"===n.type}(e)&&(s=FT),c=d}0===i?this.valType=s:(s!==this.valType||6===s)&&(a=!0),this.discrete=this.discrete||a;var h={time:t,value:c,rawValue:e,percent:0};return o&&(h.easing=o,h.easingFunc=S1(o)?o:sY[o]||MY(o)),r.push(h),h},n.prototype.prepare=function(t,e){var o=this.keyframes;this._needsSort&&o.sort(function(_,z){return _.time-z.time});for(var r=this.valType,i=o.length,a=o[i-1],s=this.discrete,c=M5(r),l=yY(r),u=0;u=0&&!(a[u].percent<=e);u--);u=h(u,s-2)}else{for(u=d;ue);u++);u=h(u-1,s-2)}g=a[u+1],M=a[u]}if(M&&g){this._lastFr=u,this._lastFrP=e;var z=g.percent-M.percent,y=0===z?1:h((e-M.percent)/z,1);g.easingFunc&&(y=g.easingFunc(y));var x=o?this._additiveValue:l?mz:t[c];if((M5(i)||l)&&!x&&(x=this._additiveValue=[]),this.discrete)t[c]=y<1?M.rawValue:g.rawValue;else if(M5(i))i===h5?IT(x,M[r],g[r],y):function Npe(n,t,e,o){for(var r=t.length,i=r&&t[0].length,a=0;a0&&c.addKeyframe(0,u5(l),r),this._trackKeys.push(s)}c.addKeyframe(t,u5(e[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,o=0;o0)){this._started=1;for(var e=this,o=[],r=this._maxTime||0,i=0;i1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();const YT=Hpe;var Xpe=function(){function n(t){t&&(this._$eventProcessor=t)}return n.prototype.on=function(t,e,o,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=o,o=e,e=null),!o||!t)return this;var a=this._$eventProcessor;null!=e&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s=0:o.inside,z=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,x=void 0,L=void 0;_&&this.canBeInsideText()?(x=o.insideStroke,(null==(y=o.insideFill)||"auto"===y)&&(y=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(y),L=!0)):(x=o.outsideStroke,(null==(y=o.outsideFill)||"auto"===y)&&(y=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(y),L=!0)),((y=y||"#000")!==z.fill||x!==z.stroke||L!==z.autoStroke||a!==z.align||s!==z.verticalAlign)&&(c=!0,z.fill=y,z.stroke=x,z.autoStroke=L,z.align=a,z.verticalAlign=s,e.setDefaultTextStyle(z)),e.__dirty|=gc,c&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?jT:XT},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),o="string"==typeof e&&Zc(e);o||(o=[255,255,255,1]);for(var r=o[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)o[a]=o[a]*r+(i?0:255)*(1-r);return o[3]=1,zh(o,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Xt(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(U0(t))for(var r=jo(t),i=0;i0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(UT,!1,t)},n.prototype.useState=function(t,e,o,r){var i=t===UT;if(this.hasState()||!i){var s=this.currentStates,c=this.stateTransition;if(!(_o(s,t)>=0)||!e&&1!==s.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!i)return void dT("State "+t+" not exists.");i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!o&&!this.__inHover&&c&&c.duration>0,c);var d=this._textContent,h=this._textGuide;return d&&d.useState(t,e,o,u),h&&h.useState(t,e,o,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gc),l}}},n.prototype.useStates=function(t,e,o){if(t.length){var r=[],i=this.currentStates,a=t.length,s=a===i.length;if(s)for(var c=0;c0,g);var _=this._textContent,z=this._textGuide;_&&_.useStates(t,e,h),z&&z.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gc)}else this.clearStates()},n.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var o=this.currentStates.slice();o.splice(e,1),this.useStates(o)}},n.prototype.replaceState=function(t,e,o){var r=this.currentStates.slice(),i=_o(r,t),a=_o(r,e)>=0;i>=0?a?r.splice(i,1):r[i]=e:o&&!a&&r.push(e),this.useStates(r)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var o,e={},r=0;r=0&&i.splice(a,1)}),this.animators.push(t),o&&o.animation.addAnimator(t),o&&o.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var o=this.animators,r=o.length,i=[],a=0;a0&&e.during&&i[0].during(function(g,_){e.during(_)});for(var h=0;h0||r.force&&!a.length){var X,ee=void 0,ce=void 0,fe=void 0;if(s)for(ce={},h&&(ee={}),S=0;S1e-4)return s[0]=n-e,s[1]=t-o,c[0]=n+e,void(c[1]=t+o);if(O5[0]=tR(r)*e+n,O5[1]=eR(r)*o+t,m5[0]=tR(i)*e+n,m5[1]=eR(i)*o+t,l(s,O5,m5),u(c,O5,m5),(r%=Ah)<0&&(r+=Ah),(i%=Ah)<0&&(i+=Ah),r>i&&!a?i+=Ah:rr&&(_5[0]=tR(M)*e+n,_5[1]=eR(M)*o+t,l(s,_5,s),u(c,_5,c))}var Jn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},yh=[],Ch=[],hu=[],k2=[],Mu=[],bu=[],nR=Math.min,oR=Math.max,wh=Math.cos,Ph=Math.sin,gd=Math.abs,rR=Math.PI,E2=2*rR,iR=typeof Float32Array<"u",vz=[];function aR(n){return Math.round(n/rR*1e8)/1e8%2*rR}var iue=function(){function n(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(t,e,o){(o=o||0)>0&&(this._ux=gd(o/b5/t)||0,this._uy=gd(o/b5/e)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Jn.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},n.prototype.lineTo=function(t,e){var o=gd(t-this._xi),r=gd(e-this._yi),i=o>this._ux||r>this._uy;if(this.addData(Jn.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=o*o+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(t,e,o,r,i,a){return this._drawPendingPt(),this.addData(Jn.C,t,e,o,r,i,a),this._ctx&&this._ctx.bezierCurveTo(t,e,o,r,i,a),this._xi=i,this._yi=a,this},n.prototype.quadraticCurveTo=function(t,e,o,r){return this._drawPendingPt(),this.addData(Jn.Q,t,e,o,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,o,r),this._xi=o,this._yi=r,this},n.prototype.arc=function(t,e,o,r,i,a){return this._drawPendingPt(),vz[0]=r,vz[1]=i,function rue(n,t){var e=aR(n[0]);e<0&&(e+=E2);var r=n[1];r+=e-n[0],!t&&r-e>=E2?r=e+E2:t&&e-r>=E2?r=e-E2:!t&&e>r?r=e+(E2-aR(e-r)):t&&eu.length&&(this._expandData(),u=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},n.prototype.getBoundingRect=function(){hu[0]=hu[1]=Mu[0]=Mu[1]=Number.MAX_VALUE,k2[0]=k2[1]=bu[0]=bu[1]=-Number.MAX_VALUE;var a,t=this.data,e=0,o=0,r=0,i=0;for(a=0;ao||gd(L)>r||h===e-1)&&(_=Math.sqrt(x*x+L*L),i=z,a=y);break;case Jn.C:var S=t[h++],X=t[h++],y=(z=t[h++],t[h++]),H=t[h++],ie=t[h++];_=ype(i,a,S,X,z,y,H,ie,10),i=H,a=ie;break;case Jn.Q:_=Ppe(i,a,S=t[h++],X=t[h++],z=t[h++],y=t[h++],10),i=z,a=y;break;case Jn.A:var ee=t[h++],ce=t[h++],fe=t[h++],he=t[h++],Oe=t[h++],xe=t[h++],Ue=xe+Oe;h+=1,h++,g&&(s=wh(Oe)*fe+ee,c=Ph(Oe)*he+ce),_=oR(fe,he)*nR(E2,Math.abs(xe)),i=wh(Ue)*fe+ee,a=Ph(Ue)*he+ce;break;case Jn.R:s=i=t[h++],c=a=t[h++],_=2*t[h++]+2*t[h++];break;case Jn.Z:var x=s-i;L=c-a,_=Math.sqrt(x*x+L*L),i=s,a=c}_>=0&&(l[d++]=_,u+=_)}return this._pathLen=u,u},n.prototype.rebuildPath=function(t,e){var s,c,l,u,d,h,g,x,S,X,o=this.data,r=this._ux,i=this._uy,a=this._len,M=e<1,z=0,y=0,L=0;if(!M||(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,x=e*this._pathLen))e:for(var H=0;H0&&(t.lineTo(S,X),L=0),ie){case Jn.M:s=l=o[H++],c=u=o[H++],t.moveTo(l,u);break;case Jn.L:d=o[H++],h=o[H++];var ce=gd(d-l),fe=gd(h-u);if(ce>r||fe>i){if(M){if(z+(he=g[y++])>x){t.lineTo(l*(1-(Oe=(x-z)/he))+d*Oe,u*(1-Oe)+h*Oe);break e}z+=he}t.lineTo(d,h),l=d,u=h,L=0}else{var xe=ce*ce+fe*fe;xe>L&&(S=d,X=h,L=xe)}break;case Jn.C:var Ue=o[H++],st=o[H++],nt=o[H++],Ut=o[H++],qe=o[H++],ke=o[H++];if(M){if(z+(he=g[y++])>x){i5(l,Ue,nt,qe,Oe=(x-z)/he,yh),i5(u,st,Ut,ke,Oe,Ch),t.bezierCurveTo(yh[1],Ch[1],yh[2],Ch[2],yh[3],Ch[3]);break e}z+=he}t.bezierCurveTo(Ue,st,nt,Ut,qe,ke),l=qe,u=ke;break;case Jn.Q:if(Ue=o[H++],st=o[H++],nt=o[H++],Ut=o[H++],M){if(z+(he=g[y++])>x){a5(l,Ue,nt,Oe=(x-z)/he,yh),a5(u,st,Ut,Oe,Ch),t.quadraticCurveTo(yh[1],Ch[1],yh[2],Ch[2]);break e}z+=he}t.quadraticCurveTo(Ue,st,nt,Ut),l=nt,u=Ut;break;case Jn.A:var Ge=o[H++],vt=o[H++],ht=o[H++],Tt=o[H++],Gt=o[H++],E0=o[H++],l1=o[H++],Tn=!o[H++],Sn=ht>Tt?ht:Tt,to=gd(ht-Tt)>.001,sn=Gt+E0,q0=!1;if(M&&(z+(he=g[y++])>x&&(sn=Gt+E0*(x-z)/he,q0=!0),z+=he),to&&t.ellipse?t.ellipse(Ge,vt,ht,Tt,l1,Gt,sn,Tn):t.arc(Ge,vt,Sn,Gt,sn,Tn),q0)break e;ee&&(s=wh(Gt)*ht+Ge,c=Ph(Gt)*Tt+vt),l=wh(sn)*ht+Ge,u=Ph(sn)*Tt+vt;break;case Jn.R:s=l=o[H],c=u=o[H+1],d=o[H++],h=o[H++];var V0=o[H++],Or=o[H++];if(M){if(z+(he=g[y++])>x){var fo=x-z;t.moveTo(d,h),t.lineTo(d+nR(fo,V0),h),(fo-=V0)>0&&t.lineTo(d+V0,h+nR(fo,Or)),(fo-=Or)>0&&t.lineTo(d+oR(V0-fo,0),h+Or),(fo-=V0)>0&&t.lineTo(d,h+oR(Or-fo,0));break e}z+=he}t.rect(d,h,V0,Or);break;case Jn.Z:if(M){var he;if(z+(he=g[y++])>x){var Oe;t.lineTo(l*(1-(Oe=(x-z)/he))+s*Oe,u*(1-Oe)+c*Oe);break e}z+=he}t.closePath(),l=s,u=c}}},n.prototype.clone=function(){var t=new n,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},n.CMD=Jn,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),n}();const N2=iue;function tO(n,t,e,o,r,i,a){if(0===r)return!1;var c,s=r;if(a>t+s&&a>o+s||an+s&&i>e+s||it+d&&u>o+d&&u>i+d&&u>s+d||un+d&&l>e+d&&l>r+d&&l>a+d||l=0&&zt+l&&c>o+l&&c>i+l||cn+l&&s>e+l&&s>r+l||s=0&&Me||u+lr&&(r+=Az);var h=Math.atan2(c,s);return h<0&&(h+=Az),h>=o&&h<=r||h+Az>=o&&h+Az<=r}function xh(n,t,e,o,r,i){if(i>t&&i>o||ir?s:0}var I2=N2.CMD,qh=2*Math.PI,lue=1e-4,ts=[-1,-1,-1],Kc=[-1,-1];function uue(){var n=Kc[0];Kc[0]=Kc[1],Kc[1]=n}function due(n,t,e,o,r,i,a,s,c,l){if(l>t&&l>o&&l>i&&l>s||l1&&uue(),M=di(t,o,i,s,Kc[0]),h>1&&(g=di(t,o,i,s,Kc[1]))),d+=2===h?zt&&s>o&&s>i||s=0&&l<=1&&(r[c++]=l);else{var u=a*a-4*i*s;if(S2(u))(l=-a/(2*i))>=0&&l<=1&&(r[c++]=l);else if(u>0){var l,d=R2(u),h=(-a-d)/(2*i);(l=(-a+d)/(2*i))>=0&&l<=1&&(r[c++]=l),h>=0&&h<=1&&(r[c++]=h)}}return c}(t,o,i,s,ts);if(0===c)return 0;var l=hY(t,o,i);if(l>=0&&l<=1){for(var u=0,d=ba(t,o,i,l),h=0;he||s<-e)return 0;var c=Math.sqrt(e*e-s*s);ts[0]=-c,ts[1]=c;var l=Math.abs(o-r);if(l<1e-4)return 0;if(l>=qh-1e-4){o=0,r=qh;var u=i?1:-1;return a>=ts[0]+n&&a<=ts[1]+n?u:0}if(o>r){var d=o;o=r,r=d}o<0&&(o+=qh,r+=qh);for(var h=0,M=0;M<2;M++){var g=ts[M];if(g+n>a){var _=Math.atan2(s,g);u=i?1:-1,_<0&&(_=qh+_),(_>=o&&_<=r||_+qh>=o&&_+qh<=r)&&(_>Math.PI/2&&_<1.5*Math.PI&&(u=-u),h+=u)}}return h}function RY(n,t,e,o,r){for(var h,M,i=n.data,a=n.len(),s=0,c=0,l=0,u=0,d=0,g=0;g1&&(e||(s+=xh(c,l,u,d,o,r))),z&&(u=c=i[g],d=l=i[g+1]),_){case I2.M:c=u=i[g++],l=d=i[g++];break;case I2.L:if(e){if(tO(c,l,i[g],i[g+1],t,o,r))return!0}else s+=xh(c,l,i[g],i[g+1],o,r)||0;c=i[g++],l=i[g++];break;case I2.C:if(e){if(aue(c,l,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],t,o,r))return!0}else s+=due(c,l,i[g++],i[g++],i[g++],i[g++],i[g],i[g+1],o,r)||0;c=i[g++],l=i[g++];break;case I2.Q:if(e){if(sue(c,l,i[g++],i[g++],i[g],i[g+1],t,o,r))return!0}else s+=fue(c,l,i[g++],i[g++],i[g],i[g+1],o,r)||0;c=i[g++],l=i[g++];break;case I2.A:var y=i[g++],x=i[g++],L=i[g++],S=i[g++],X=i[g++],H=i[g++];g+=1;var ie=!!(1-i[g++]);h=Math.cos(X)*L+y,M=Math.sin(X)*S+x,z?(u=h,d=M):s+=xh(c,l,h,M,o,r);var ee=(o-y)*S/L+y;if(e){if(cue(y,x,S,X,X+H,ie,t,ee,r))return!0}else s+=hue(y,x,S,X,X+H,ie,ee,r);c=Math.cos(X+H)*L+y,l=Math.sin(X+H)*S+x;break;case I2.R:if(u=c=i[g++],d=l=i[g++],h=u+i[g++],M=d+i[g++],e){if(tO(u,d,h,d,t,o,r)||tO(h,d,h,M,t,o,r)||tO(h,M,u,M,t,o,r)||tO(u,M,u,d,t,o,r))return!0}else s+=xh(h,d,h,M,o,r),s+=xh(u,M,u,d,o,r);break;case I2.Z:if(e){if(tO(c,l,u,d,t,o,r))return!0}else s+=xh(c,l,u,d,o,r);c=u,l=d}}return!e&&!function pue(n,t){return Math.abs(n-t).5?XT:o>.2?"#eee":jT}if(e)return jT}return XT},t.prototype.getInsideTextStroke=function(e){var o=this.style.fill;if(R0(o)){var r=this.__zr;if(!(!r||!r.isDarkMode())==c5(e,0)<.4)return o}},t.prototype.buildPath=function(e,o,r){},t.prototype.pathUpdated=function(){this.__dirty&=~Qg},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new N2(!1)},t.prototype.hasStroke=function(){var e=this.style,o=e.stroke;return!(null==o||"none"===o||!(e.lineWidth>0))},t.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},t.prototype.getBoundingRect=function(){var e=this._rect,o=this.style,r=!e;if(r){var i=!1;this.path||(i=!0,this.createPathProxy());var a=this.path;(i||this.__dirty&Qg)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||r){s.copy(e);var c=o.strokeNoScale?this.getLineScale():1,l=o.lineWidth;this.hasFill()||(l=Math.max(l,this.strokeContainThreshold??4)),c>1e-10&&(s.width+=l/c,s.height+=l/c,s.x-=l/c/2,s.y-=l/c/2)}return s}return e},t.prototype.contain=function(e,o){var r=this.transformCoordToLocal(e,o),i=this.getBoundingRect(),a=this.style;if(i.contain(e=r[0],o=r[1])){var s=this.path;if(this.hasStroke()){var c=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),function bue(n,t,e,o){return RY(n,t,!0,e,o)}(s,c/l,e,o)))return!0}if(this.hasFill())return function Mue(n,t,e){return RY(n,0,!1,t,e)}(s,e,o)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Qg,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,o){"shape"===e?this.setShape(o):n.prototype.attrKV.call(this,e,o)},t.prototype.setShape=function(e,o){var r=this.shape;return r||(r=this.shape={}),"string"==typeof e?r[e]=o:Xt(r,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Qg)},t.prototype.createStyle=function(e){return $C(SY,e)},t.prototype._innerSaveToNormal=function(e){n.prototype._innerSaveToNormal.call(this,e);var o=this._normalState;e.shape&&!o.shape&&(o.shape=Xt({},this.shape))},t.prototype._applyStateObj=function(e,o,r,i,a,s){n.prototype._applyStateObj.call(this,e,o,r,i,a,s);var l,c=!(o&&i);if(o&&o.shape?a?i?l=o.shape:(l=Xt({},r.shape),Xt(l,o.shape)):(l=Xt({},i?this.shape:r.shape),Xt(l,o.shape)):c&&(l=r.shape),l)if(a){this.shape=Xt({},this.shape);for(var u={},d=jo(l),h=0;h0},t.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},t.prototype.createStyle=function(e){return $C(mue,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var o=e.text;null!=o?o+="":o="";var r=AT(o,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;r.x-=i/2,r.y-=i/2,r.width+=i,r.height+=i}this._rect=r}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(zz);DY.prototype.type="tspan";const cR=DY;var _ue=Zn({x:0,y:0},vh),zue={style:Zn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},g5.style)},kY=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return vo(t,n),t.prototype.createStyle=function(e){return $C(_ue,e)},t.prototype._getSize=function(e){var o=this.style,r=o[e];if(null!=r)return r;var i=function vue(n){return!!(n&&"string"!=typeof n&&n.width&&n.height)}(o.image)?o.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",s=o[a];return null==s?i[e]:i[e]/i[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return zue},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Kn(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(zz);kY.prototype.type="image";const Wh=kY;var nO=Math.round;function EY(n,t,e){if(t){var o=t.x1,r=t.x2,i=t.y1,a=t.y2;n.x1=o,n.x2=r,n.y1=i,n.y2=a;var s=e&&e.lineWidth;return s&&(nO(2*o)===nO(2*r)&&(n.x1=n.x2=Lh(o,s,!0)),nO(2*i)===nO(2*a)&&(n.y1=n.y2=Lh(i,s,!0))),n}}function NY(n,t,e){if(t){var o=t.x,r=t.y,i=t.width,a=t.height;n.x=o,n.y=r,n.width=i,n.height=a;var s=e&&e.lineWidth;return s&&(n.x=Lh(o,s,!0),n.y=Lh(r,s,!0),n.width=Math.max(Lh(o+i,s,!1)-n.x,0===i?0:1),n.height=Math.max(Lh(r+a,s,!1)-n.y,0===a?0:1)),n}}function Lh(n,t,e){if(!t)return n;var o=nO(2*n);return(o+nO(t))%2==0?o/2:(o+(e?1:-1))/2}var yue=function n(){this.x=0,this.y=0,this.width=0,this.height=0},Cue={},IY=function(n){function t(e){return n.call(this,e)||this}return vo(t,n),t.prototype.getDefaultShape=function(){return new yue},t.prototype.buildPath=function(e,o){var r,i,a,s;if(this.subPixelOptimize){var c=NY(Cue,o,this.style);r=c.x,i=c.y,a=c.width,s=c.height,c.r=o.r,o=c}else r=o.x,i=o.y,a=o.width,s=o.height;o.r?function Aue(n,t){var s,c,l,u,d,e=t.x,o=t.y,r=t.width,i=t.height,a=t.r;r<0&&(e+=r,r=-r),i<0&&(o+=i,i=-i),"number"==typeof a?s=c=l=u=a:a instanceof Array?1===a.length?s=c=l=u=a[0]:2===a.length?(s=l=a[0],c=u=a[1]):3===a.length?(s=a[0],c=u=a[1],l=a[2]):(s=a[0],c=a[1],l=a[2],u=a[3]):s=c=l=u=0,s+c>r&&(s*=r/(d=s+c),c*=r/d),l+u>r&&(l*=r/(d=l+u),u*=r/d),c+l>i&&(c*=i/(d=c+l),l*=i/d),s+u>i&&(s*=i/(d=s+u),u*=i/d),n.moveTo(e+s,o),n.lineTo(e+r-c,o),0!==c&&n.arc(e+r-c,o+c,c,-Math.PI/2,0),n.lineTo(e+r,o+i-l),0!==l&&n.arc(e+r-l,o+i-l,l,0,Math.PI/2),n.lineTo(e+u,o+i),0!==u&&n.arc(e+u,o+i-u,u,Math.PI/2,Math.PI),n.lineTo(e,o+s),0!==s&&n.arc(e+s,o+s,s,Math.PI,1.5*Math.PI)}(e,o):e.rect(r,i,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Co);IY.prototype.type="rect";const Ii=IY;var BY={fill:"#000"},wue={style:Zn({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},g5.style)},YY=function(n){function t(e){var o=n.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=BY,o.attr(e),o}return vo(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;eM&&l){var g=Math.floor(M/s);d=d.slice(0,g)}if(n&&i&&null!=u)for(var _=eY(u,r,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),z=0;z0,Oe=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),xe=a.calculatedLineHeight,Ue=0;Ues&&wT(e,n.substring(s,l),t,a),wT(e,c[2],t,a,c[1]),s=CT.lastIndex}sr){X>0?(x.tokens=x.tokens.slice(0,X),z(x,S,L),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break e}var Oe=ie.width,xe=null==Oe||"auto"===Oe;if("string"==typeof Oe&&"%"===Oe.charAt(Oe.length-1))H.percentWidth=Oe,u.push(H),H.contentWidth=bc(H.text,fe);else{if(xe){var Ue=ie.backgroundColor,st=Ue&&Ue.image;st&&KC(st=npe(st))&&(H.width=Math.max(H.width,st.width*he/st.height))}var nt=g&&null!=o?o-S:null;null!=nt&&nt=0&&"right"===(Ue=H[xe]).align;)this._placeToken(Ue,e,ee,y,Oe,"right",L),ce-=Ue.width,Oe-=Ue.width,xe--;for(he+=(i-(he-z)-(x-Oe)-ce)/2;fe<=xe;)this._placeToken(Ue=H[fe],e,ee,y,he+Ue.width/2,"center",L),he+=Ue.width,fe++;y+=ee}},t.prototype._placeToken=function(e,o,r,i,a,s,c){var l=o.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,d=i+r/2;"top"===u?d=i+e.height/2:"bottom"===u&&(d=i+r-e.height/2),!e.isLineHolder&&lR(l)&&this._renderBackground(l,o,"right"===s?a-e.width:"center"===s?a-e.width/2:a,d-e.height/2,e.width,e.height);var M=!!l.backgroundColor,g=e.textPadding;g&&(a=$Y(a,s,g),d-=e.height/2-g[0]-e.innerHeight/2);var _=this._getOrCreateChild(cR),z=_.createStyle();_.useStyle(z);var y=this._defaultStyle,x=!1,L=0,S=VY("fill"in l?l.fill:"fill"in o?o.fill:(x=!0,y.fill)),X=UY("stroke"in l?l.stroke:"stroke"in o?o.stroke:M||c||y.autoStroke&&!x?null:(L=2,y.stroke)),H=l.textShadowBlur>0||o.textShadowBlur>0;z.text=e.text,z.x=a,z.y=d,H&&(z.shadowBlur=l.textShadowBlur||o.textShadowBlur||0,z.shadowColor=l.textShadowColor||o.textShadowColor||"transparent",z.shadowOffsetX=l.textShadowOffsetX||o.textShadowOffsetX||0,z.shadowOffsetY=l.textShadowOffsetY||o.textShadowOffsetY||0),z.textAlign=s,z.textBaseline="middle",z.font=e.font||uh,z.opacity=cz(l.opacity,o.opacity,1),XY(z,l),X&&(z.lineWidth=cz(l.lineWidth,o.lineWidth,L),z.lineDash=Pn(l.lineDash,o.lineDash),z.lineDashOffset=o.lineDashOffset||0,z.stroke=X),S&&(z.fill=S);var ie=e.contentWidth,ee=e.contentHeight;_.setBoundingRect(new Kn(hz(z.x,ie,z.textAlign),jg(z.y,ee,z.textBaseline),ie,ee))},t.prototype._renderBackground=function(e,o,r,i,a,s){var _,z,x,c=e.backgroundColor,l=e.borderWidth,u=e.borderColor,d=c&&c.image,h=c&&!d,M=e.borderRadius,g=this;if(h||e.lineHeight||l&&u){(_=this._getOrCreateChild(Ii)).useStyle(_.createStyle()),_.style.fill=null;var y=_.shape;y.x=r,y.y=i,y.width=a,y.height=s,y.r=M,_.dirtyShape()}if(h)(x=_.style).fill=c||null,x.fillOpacity=Pn(e.fillOpacity,1);else if(d){(z=this._getOrCreateChild(Wh)).onload=function(){g.dirtyStyle()};var L=z.style;L.image=c.image,L.x=r,L.y=i,L.width=a,L.height=s}l&&u&&((x=_.style).lineWidth=l,x.stroke=u,x.strokeOpacity=Pn(e.strokeOpacity,1),x.lineDash=e.borderDash,x.lineDashOffset=e.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2));var S=(_||z).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=cz(e.opacity,o.opacity,1)},t.makeFont=function(e){var o="";return function Wue(n){return null!=n.fontSize||n.fontFamily||n.fontWeight}(e)&&(o=[e.fontStyle,e.fontWeight,que(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),o&&pu(o)||e.textFont||e.font},t}(zz),Pue={left:!0,right:1,center:1},xue={top:1,bottom:1,middle:1},HY=["fontStyle","fontWeight","fontSize","fontFamily"];function que(n){return"string"!=typeof n||-1===n.indexOf("px")&&-1===n.indexOf("rem")&&-1===n.indexOf("em")?isNaN(+n)?lT+"px":n+"px":n}function XY(n,t){for(var e=0;e0){if(n<=r)return a;if(n>=i)return s}else{if(n>=r)return a;if(n<=i)return s}else{if(n===r)return a;if(n===i)return s}return(n-r)/c*l+a}function Uo(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return R0(n)?function Tue(n){return n.replace(/^\s+|\s+$/g,"")}(n).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):null==n?NaN:+n}function Gr(n,t,e){return null==t&&(t=10),t=Math.min(Math.max(0,t),KY),n=(+n).toFixed(t),e?n:+n}function Od(n){if(n=+n,isNaN(n))return 0;if(n>1e-14)for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(n*t)/t===n)return e;return function Rue(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),o=e>0?+t.slice(e+1):0,r=e>0?e:t.length,i=t.indexOf(".");return Math.max(0,(i<0?0:r-1-i)-o)}(n)}function Due(n,t){var e=Math.max(Od(n),Od(t)),o=n+t;return e>KY?o:Gr(o,e)}function QY(n){var t=2*Math.PI;return(n%t+t)%t}function v5(n){return n>-ZY&&n=10&&t++,t}function eH(n,t){var e=uR(n),o=Math.pow(10,e),r=n/o;return n=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*o,e>=-20?+n.toFixed(e<0?-e:0):n}function B2(n){var t=parseFloat(n);return t==n&&(0!==t||!R0(n)||n.indexOf("x")<=0)?t:NaN}function tH(){return Math.round(9*Math.random())}function nH(n,t){return 0===t?n:nH(t,n%t)}function oH(n,t){return null==n?t:null==t?n:n*t/nH(n,t)}function rH(n,t,e){return(t-n)*e+n}var iH="series\0",aH="\0_ec_\0";function Oa(n){return n instanceof Array?n:null==n?[]:[n]}function dR(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var o=0,r=e.length;o=0,i=!1;if(n instanceof Co){var a=dH(n),s=r&&a.selectFill||a.normalFill,c=r&&a.selectStroke||a.normalStroke;if(oO(s)||oO(c)){var l=(o=o||{}).style||{};"inherit"===l.fill?(i=!0,o=Xt({},o),(l=Xt({},l)).fill=s):!oO(l.fill)&&oO(s)?(i=!0,o=Xt({},o),(l=Xt({},l)).fill=hH(s)):!oO(l.stroke)&&oO(c)&&(i||(o=Xt({},o),l=Xt({},l)),l.stroke=hH(c)),o.style=l}}return o&&null==o.z2&&(i||(o=Xt({},o)),o.z2=n.z2+(n.z2EmphasisLift??ede)),o}(this,0,t,e);if("blur"===n)return function sde(n,t,e){var o=_o(n.currentStates,t)>=0,r=n.style.opacity,i=o?null:function rde(n,t,e,o){for(var r=n.style,i={},a=0;a0){var c={dataIndex:s,seriesIndex:e.seriesIndex};null!=a&&(c.dataType=a),t.push(c)}})}),t}function AR(n,t,e){qH(n,!0),_d(n,cde),function bde(n,t,e){var o=Ro(n);null!=t?(o.focus=t,o.blurScope=e):o.focus&&(o.focus=null)}(n,t,e)}function L5(n,t,e,o){o?function Mde(n){qH(n,!1)}(n):AR(n,t,e)}var xH=["emphasis","blur","select"],gde={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function yR(n,t,e,o){e=e||"itemStyle";for(var r=0;r1){var u=c.shift();1===c.length&&(o[s]=c[0]),this._update&&this._update(u,a)}else 1===l?(o[s]=null,this._update&&this._update(c,a)):this._remove&&this._remove(a)}this._performRestAdd(i,o)},n.prototype._executeMultiple=function(){var e=this._new,o={},r={},i=[],a=[];this._initIndexMap(this._old,o,i,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[c]=null;else if(1===d&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[c]=null;else if(1===d&&1===h)this._update&&this._update(u,l),r[c]=null;else if(d>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[c]=null;else if(d>1)for(var M=0;M1)for(var s=0;s_&&(_=L)}M[0]=g,M[1]=_}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(a){for(var s=0;sr?-this._resultLT:0},n}(),I5="undefined",Qde=typeof Uint32Array===I5?Array:Uint32Array,e2e=typeof Uint16Array===I5?Array:Uint16Array,iX=typeof Int32Array===I5?Array:Int32Array,aX=typeof Float64Array===I5?Array:Float64Array,sX={float:aX,int:iX,ordinal:Array,number:Array,time:aX};function Lz(n){return n>65535?Qde:e2e}function t2e(n){var t=n.constructor;return t===Array?n.slice():new t(n)}function cX(n,t,e,o,r){var i=sX[e||"float"];if(r){var a=n[t],s=a&&a.length;if(s!==o){for(var c=new i(o),l=0;lz[1]&&(z[1]=_)}return this._rawCount=this._count=c,{start:s,end:c}},n.prototype._initDataFromProvider=function(t,e,o){for(var r=this._provider,i=this._chunks,a=this._dimensions,s=a.length,c=this._rawExtent,l=Q0(a,function(x){return x.property}),u=0;uy[1]&&(y[1]=z)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,o=e[t];if(null!=o&&ot))return a;i=a-1}}return-1},n.prototype.indicesOfNearest=function(t,e,o){var i=this._chunks[t],a=[];if(!i)return a;null==o&&(o=1/0);for(var s=1/0,c=-1,l=0,u=0,d=this.count();u=0&&c<0)&&(s=g,c=M,l=0),M===c&&(a[l++]=u))}return a.length=l,a},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var r=this._count;if((o=e.constructor)===Array){t=new o(r);for(var i=0;i=d&&x<=h||isNaN(x))&&(c[l++]=_),_++;g=!0}else if(2===i){z=M[r[0]];var L=M[r[1]],S=t[r[1]][0],X=t[r[1]][1];for(y=0;y=d&&x<=h||isNaN(x))&&(H>=S&&H<=X||isNaN(H))&&(c[l++]=_),_++}g=!0}}if(!g)if(1===i)for(y=0;y=d&&x<=h||isNaN(x))&&(c[l++]=ie)}else for(y=0;yt[fe][1])&&(ee=!1)}ee&&(c[l++]=e.getRawIndex(y))}return ly[1]&&(y[1]=z)}}},n.prototype.lttbDownSample=function(t,e){var u,d,h,o=this.clone([t],!0),i=o._chunks[t],a=this.count(),s=0,c=Math.floor(1/e),l=this.getRawIndex(0),M=new(Lz(this._rawCount))(Math.min(2*(Math.ceil(a/c)+2),a));M[s++]=l;for(var g=1;gu&&(u=d,h=S)}he>0&&heu-g&&(s.length=c=u-g);for(var _=0;_d[1]&&(d[1]=y),h[M++]=x}return i._count=M,i._indices=h,i._updateGetRawIdx(),i},n.prototype.each=function(t,e){if(this._count)for(var o=t.length,r=this._chunks,i=0,a=this.count();ic&&(c=d)}return this._extent[t]=a=[s,c],a},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var o=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function t(e,o,r,i){return N5(e[i],this._dimensions[i])}NR={arrayRows:t,objectRows:function(e,o,r,i){return N5(e[o],this._dimensions[i])},keyedColumns:t,original:function(e,o,r,i){var a=e&&(null==e.value?e:e.value);return N5(a instanceof Array?a[i]:a,this._dimensions[i])},typedArray:function(e,o,r,i){return e[i]}}}(),n}();const IR=n2e;var o2e=Zr(),r2e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},lX=function(){function n(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=dX(this.source)))},n.prototype.getSourceDimensionIndex=function(t){return Pn(this._dimNameMap.get(t),-1)},n.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},n.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=$H(this.source),o=!fX(t),r="",i=[],a=0,s=0;a30}var MX,B5,Rz,Sz,BR,F5,FR,Tz=U0,Y2=Q0,i2e=typeof Int32Array>"u"?Array:Int32Array,s2e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],c2e=["_approximateExtent"],l2e=function(){function n(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var o,r=!1;pX(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,o=t),o=o||["x","y"];for(var i={},a=[],s={},c=!1,l={},u=0;u=e)){var r=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,a=this._idList;if(r.getSource().sourceFormat===Qc&&!r.pure)for(var l=[],u=t;u0},n.prototype.ensureUniqueItemVisual=function(t,e){var o=this._itemVisuals,r=o[t];r||(r=o[t]={});var i=r[e];return null==i&&(d0(i=this.getVisual(e))?i=i.slice():Tz(i)&&(i=Xt({},i)),r[e]=i),i},n.prototype.setItemVisual=function(t,e,o){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Tz(e)?Xt(r,e):r[e]=o},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){Tz(t)?Xt(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,o){this._itemLayouts[t]=o?Xt(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){(function(n,t,e,o){if(o){var r=Ro(o);r.dataIndex=e,r.dataType=t,r.seriesIndex=n,"group"===o.type&&o.traverse(function(i){var a=Ro(i);a.seriesIndex=n,a.dataIndex=e,a.dataType=t})}})(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){We(this._graphicEls,function(o,r){o&&t&&t.call(e,o,r)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:Y2(this.dimensions,this._getDimInfo,this),this.hostModel)),BR(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var o=this[t];S1(o)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=o.apply(this,arguments);return e.apply(this,[r].concat(hT(arguments)))})},n.internalField=(MX=function(t){var e=t._invertedIndicesMap;We(e,function(o,r){var i=t._dimInfos[r],a=i.ordinalMeta,s=t._store;if(a){o=e[r]=new i2e(a.categories.length);for(var c=0;c1&&(c+="__ec__"+u),r[e]=c}})),n}();const bX=l2e;function YR(n,t){LR(n)||(n=RR(n));var e=(t=t||{}).coordDimensions||[],o=t.dimensionsDefine||n.dimensionsDefine||[],r=H1(),i=[],a=function u2e(n,t,e,o){var r=Math.max(n.dimensionsDetectedCount||1,t.length,e.length,o||0);return We(t,function(i){var a;U0(i)&&(a=i.dimsDef)&&(r=Math.max(r,a.length))}),r}(n,e,o,t.dimensionsCount),s=t.canOmitUnusedDimensions&&fX(a),c=o===n.dimensionsDefine,l=c?dX(n):uX(o),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(n,a));for(var d=H1(u),h=new iX(a),M=0;M0&&(o.name=r+(i-1)),i++,t.set(r,i)}}(i),new lX({source:n,dimensions:i,fullDimensionCount:a,dimensionOmitted:s})}function d2e(n,t,e){if(e||t.hasKey(n)){for(var o=0;t.hasKey(n+o);)o++;n+=o}return t.set(n,!0),n}var HR={},f2e=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(t,e){var o=[];We(HR,function(r,i){var a=r.create(t,e);o=o.concat(a||[])}),this._coordinateSystems=o},n.prototype.update=function(t,e){We(this._coordinateSystems,function(o){o.update&&o.update(t,e)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(t,e){HR[t]=e},n.get=function(t){return HR[t]},n}();const XR=f2e;var h2e=function n(t){this.coordSysDims=[],this.axisMap=H1(),this.categoryAxisMap=H1(),this.coordSysName=t},b2e={cartesian2d:function(n,t,e,o){var r=n.getReferringComponents("xAxis",Kl).models[0],i=n.getReferringComponents("yAxis",Kl).models[0];t.coordSysDims=["x","y"],e.set("x",r),e.set("y",i),sO(r)&&(o.set("x",r),t.firstCategoryDimIndex=0),sO(i)&&(o.set("y",i),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,o){var r=n.getReferringComponents("singleAxis",Kl).models[0];t.coordSysDims=["single"],e.set("single",r),sO(r)&&(o.set("single",r),t.firstCategoryDimIndex=0)},polar:function(n,t,e,o){var r=n.getReferringComponents("polar",Kl).models[0],i=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",a),sO(i)&&(o.set("radius",i),t.firstCategoryDimIndex=0),sO(a)&&(o.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,o){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,o){var r=n.ecModel,i=r.getComponent("parallel",n.get("parallelIndex")),a=t.coordSysDims=i.dimensions.slice();We(i.parallelAxisIndex,function(s,c){var l=r.getComponent("parallelAxis",s),u=a[c];e.set(u,l),sO(l)&&(o.set(u,l),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=c))})}};function sO(n){return"category"===n.get("type")}function Dz(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}const C2e=function v2e(n,t,e){e=e||{};var r,o=t.getSourceManager(),i=!1;n?(i=!0,r=RR(n)):i=(r=o.getSource()).sourceFormat===Qc;var a=function M2e(n){var t=n.get("coordinateSystem"),e=new h2e(t),o=b2e[t];if(o)return o(n,e,e.axisMap,e.categoryAxisMap),e}(t),s=function _2e(n,t){var r,e=n.get("coordinateSystem"),o=XR.get(e);return t&&t.coordSysDims&&(r=Q0(t.coordSysDims,function(i){var a={name:i},s=t.axisMap.get(i);if(s){var c=s.get("type");a.type=function Xde(n){return"category"===n?"ordinal":"time"===n?"time":"float"}(c)}return a})),r||(r=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),r}(t,a),c=e.useEncodeDefaulter,l=S1(c)?c:c?$r(Rde,s,t):null,d=YR(r,{coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i}),h=function z2e(n,t,e){var o,r;return e&&We(n,function(i,a){var c=e.categoryAxisMap.get(i.coordDim);c&&(null==o&&(o=a),i.ordinalMeta=c.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),null!=i.otherDims.itemName&&(r=!0)}),!r&&null!=o&&(n[o].otherDims.itemName=0),o}(d.dimensions,e.createInvertedIndices,a),M=i?null:o.getSharedDataStore(d),g=function g2e(n,t,e){var i,a,s,o=(e=e||{}).byIndex,r=e.stackedCoordDimension;!function O2e(n){return!pX(n.schema)}(t)?(i=(a=t.schema).dimensions,s=t.store):i=t;var l,u,d,h,c=!(!n||!n.get("stack"));if(We(i,function(x,L){R0(x)&&(i[L]=x={name:x}),c&&!x.isExtraCoord&&(!o&&!l&&x.ordinalMeta&&(l=x),!u&&"ordinal"!==x.type&&"time"!==x.type&&(!r||r===x.coordDim)&&(u=x))}),u&&!o&&!l&&(o=!0),u){d="__\0ecstackresult_"+n.id,h="__\0ecstackedover_"+n.id,l&&(l.createInvertedIndices=!0);var M=u.coordDim,g=u.type,_=0;We(i,function(x){x.coordDim===M&&_++});var z={name:d,coordDim:M,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};a?(s&&(z.storeDimIndex=s.ensureCalculationDimension(h,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),a.appendCalculationDimension(z),a.appendCalculationDimension(y)):(i.push(z),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:h,stackResultDimension:d}}(t,{schema:d,store:M}),_=new bX(d,t);_.setCalculationInfo(g);var z=null!=h&&function A2e(n){if(n.sourceFormat===Qc){var t=function y2e(n){for(var t=0;t>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[c]+":0",r[l]+":0",o[1-c]+":auto",r[1-l]+":auto",""].join("!important;"),n.appendChild(a),e.push(a)}return e}(t,i),s=function R2e(n,t,e){for(var o=e?"invTrans":"trans",r=t[o],i=t.srcCoords,a=[],s=[],c=!0,l=0;l<4;l++){var u=n[l].getBoundingClientRect(),d=2*l,h=u.left,M=u.top;a.push(h,M),c=c&&i&&h===i[d]&&M===i[d+1],s.push(n[l].offsetLeft,n[l].offsetTop)}return c&&r?r:(t.srcCoords=a,t[o]=e?gX(s,a):gX(a,s))}(a,i,r);if(s)return s(n,e,o),!0}return!1}function mX(n){return"CANVAS"===n.nodeName.toUpperCase()}var S2e=/([&<>"'])/g,D2e={"&":"&","<":"<",">":">",'"':""","'":"'"};function el(n){return null==n?"":(n+"").replace(S2e,function(t,e){return D2e[e]})}var H5="ZH",$R="EN",kz=$R,X5={},GR={},_X=X1.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(H5)>-1?H5:kz;function zX(n,t){n=n.toUpperCase(),GR[n]=new ma(t),X5[n]=t}zX($R,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),zX(H5,{time:{month:["\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"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var ZR=1e3,KR=60*ZR,Ez=60*KR,tl=24*Ez,vX=365*tl,Nz={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},j5="{yyyy}-{MM}-{dd}",AX={year:"{yyyy}",month:"{yyyy}-{MM}",day:j5,hour:j5+" "+Nz.hour,minute:j5+" "+Nz.minute,second:j5+" "+Nz.second,millisecond:Nz.none},JR=["year","month","day","hour","minute","second","millisecond"],yX=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Nh(n,t){return"0000".substr(0,t-(n+="").length)+n}function cO(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function F2e(n){return n===cO(n)}function U5(n,t,e,o){var r=md(n),i=r[QR(e)](),a=r[lO(e)]()+1,s=Math.floor((a-1)/3)+1,c=r[V5(e)](),l=r["get"+(e?"UTC":"")+"Day"](),u=r[Iz(e)](),d=(u-1)%12+1,h=r[$5(e)](),M=r[G5(e)](),g=r[Z5(e)](),_=o instanceof ma?o:function I2e(n){return GR[n]}(o||_X)||function B2e(){return GR[kz]}(),z=_.getModel("time"),y=z.get("month"),x=z.get("monthAbbr"),L=z.get("dayOfWeek"),S=z.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Nh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Nh(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,L[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Nh(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Nh(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Nh(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Nh(M,2)).replace(/{s}/g,M+"").replace(/{SSS}/g,Nh(g,3)).replace(/{S}/g,g+"")}function CX(n,t){var e=md(n),o=e[lO(t)]()+1,r=e[V5(t)](),i=e[Iz(t)](),a=e[$5(t)](),s=e[G5(t)](),l=0===e[Z5(t)](),u=l&&0===s,d=u&&0===a,h=d&&0===i,M=h&&1===r;return M&&1===o?"year":M?"month":h?"day":d?"hour":u?"minute":l?"second":"millisecond"}function wX(n,t,e){var o=zo(n)?md(n):n;switch(t=t||CX(n,e)){case"year":return o[QR(e)]();case"half-year":return o[lO(e)]()>=6?1:0;case"quarter":return Math.floor((o[lO(e)]()+1)/4);case"month":return o[lO(e)]();case"day":return o[V5(e)]();case"half-day":return o[Iz(e)]()/24;case"hour":return o[Iz(e)]();case"minute":return o[$5(e)]();case"second":return o[G5(e)]();case"millisecond":return o[Z5(e)]()}}function QR(n){return n?"getUTCFullYear":"getFullYear"}function lO(n){return n?"getUTCMonth":"getMonth"}function V5(n){return n?"getUTCDate":"getDate"}function Iz(n){return n?"getUTCHours":"getHours"}function $5(n){return n?"getUTCMinutes":"getMinutes"}function G5(n){return n?"getUTCSeconds":"getSeconds"}function Z5(n){return n?"getUTCMilliseconds":"getMilliseconds"}function X2e(n){return n?"setUTCFullYear":"setFullYear"}function PX(n){return n?"setUTCMonth":"setMonth"}function xX(n){return n?"setUTCDate":"setDate"}function qX(n){return n?"setUTCHours":"setHours"}function WX(n){return n?"setUTCMinutes":"setMinutes"}function LX(n){return n?"setUTCSeconds":"setSeconds"}function TX(n){return n?"setUTCMilliseconds":"setMilliseconds"}function RX(n){if(!function Nue(n){return!isNaN(B2(n))}(n))return R0(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function SX(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,o){return o.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var K5=NF;function eS(n,t,e){function r(u){return u&&pu(u)?u:"-"}function i(u){return!(null==u||isNaN(u)||!isFinite(u))}var a="time"===t,s=n instanceof Date;if(a||s){var c=a?md(n):n;if(!isNaN(+c))return U5(c,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(s)return"-"}if("ordinal"===t)return fT(n)?r(n):zo(n)&&i(n)?n+"":"-";var l=B2(n);return i(l)?RX(l):fT(n)?r(n):"boolean"==typeof n?n+"":"-"}var DX=["a","b","c","d","e","f","g"],tS=function(n,t){return"{"+n+(t??"")+"}"};function kX(n,t,e){d0(t)||(t=[t]);var o=t.length;if(!o)return"";for(var r=t[0].$vars||[],i=0;io||c.newline?(i=0,M=_,a+=s+e,s=u.height):s=Math.max(s,u.height)}else{var z=u.height+(h?-h.y+u.y:0);(g=a+z)>r||c.newline?(i+=s+e,a=0,g=z,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=i,c.y=a,c.markRedraw(),"horizontal"===n?i=M+e:a=g+e)})}var Bz=nS;function Fh(n,t,e){e=K5(e||0);var o=t.width,r=t.height,i=Uo(n.left,o),a=Uo(n.top,r),s=Uo(n.right,o),c=Uo(n.bottom,r),l=Uo(n.width,o),u=Uo(n.height,r),d=e[2]+e[0],h=e[1]+e[3],M=n.aspect;switch(isNaN(l)&&(l=o-s-h-i),isNaN(u)&&(u=r-c-d-a),null!=M&&(isNaN(l)&&isNaN(u)&&(M>o/r?l=.8*o:u=.8*r),isNaN(l)&&(l=M*u),isNaN(u)&&(u=l/M)),isNaN(i)&&(i=o-s-l-h),isNaN(a)&&(a=r-c-u-d),n.left||n.right){case"center":i=o/2-l/2-e[3];break;case"right":i=o-l-h}switch(n.top||n.bottom){case"middle":case"center":a=r/2-u/2-e[0];break;case"bottom":a=r-u-d}i=i||0,a=a||0,isNaN(l)&&(l=o-h-i-(s||0)),isNaN(u)&&(u=r-d-a-(c||0));var g=new Kn(i+e[3],a+e[0],l,u);return g.margin=e,g}function Fz(n){var t=n.layoutMode||n.constructor.layoutMode;return U0(t)?t:t?{type:t}:null}function pO(n,t,e){var o=e&&e.ignoreSize;!d0(o)&&(o=[o,o]);var r=a(Bh[0],0),i=a(Bh[1],1);function a(u,d){var h={},M=0,g={},_=0;if(J5(u,function(L){g[L]=n[L]}),J5(u,function(L){s(t,L)&&(h[L]=g[L]=t[L]),c(h,L)&&M++,c(g,L)&&_++}),o[d])return c(t,u[1])?g[u[2]]=null:c(t,u[2])&&(g[u[1]]=null),g;if(2===_||!M)return g;if(M>=2)return h;for(var y=0;y=0;c--)s=Xn(s,r[c],!0);o.defaultOption=s}return o.defaultOption},t.prototype.getReferringComponents=function(e,o){var i=e+"Id";return Pz(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(i,!0)},o)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((e=t.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",void(e.componentIndex=0)),t;var e}(ma);HF(uO,ma),GC(uO),function P2e(n){var t={};n.registerSubTypeDefaulter=function(e,o){var r=uu(e);t[r.main]=o},n.determineSubType=function(e,o){var r=o.type;if(!r){var i=uu(e).main;n.hasSubTypes(e)&&t[i]&&(r=t[i](o))}return r}}(uO),function x2e(n,t){function o(i,a){return i[a]||(i[a]={predecessor:[],successor:[]}),i[a]}n.topologicalTravel=function(i,a,s,c){if(i.length){var l=function e(i){var a={},s=[];return We(i,function(c){var l=o(a,c),d=function r(i,a){var s=[];return We(i,function(c){_o(a,c)>=0&&s.push(c)}),s}(l.originalDeps=t(c),i);l.entryCount=d.length,0===l.entryCount&&s.push(c),We(d,function(h){_o(l.predecessor,h)<0&&l.predecessor.push(h);var M=o(a,h);_o(M.successor,h)<0&&M.successor.push(c)})}),{graph:a,noEntryList:s}}(a),u=l.graph,d=l.noEntryList,h={};for(We(i,function(x){h[x]=!0});d.length;){var M=d.pop(),g=u[M],_=!!h[M];_&&(s.call(c,M,g.originalDeps.slice()),delete h[M]),We(g.successor,_?y:z)}We(h,function(){throw new Error("")})}function z(x){u[x].entryCount--,0===u[x].entryCount&&d.push(x)}function y(x){h[x]=!0,z(x)}}}(uO,function G2e(n){var t=[];return We(uO.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Q0(t,function(e){return uu(e).main}),"dataset"!==n&&_o(t,"dataset")<=0&&t.unshift("dataset"),t});const Vo=uO;var NX=Zr(),oS=(Zr(),function(){function n(){}return n.prototype.getColorFromPalette=function(t,e,o){var r=Oa(this.get("color",!0)),i=this.get("colorLayer",!0);return function IX(n,t,e,o,r,i,a){var s=t(i=i||n),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(r))return l[r];var u=null!=a&&o?function K2e(n,t){for(var e=n.length,o=0;ot)return n[o];return n[e-1]}(o,a):e;if((u=u||e)&&u.length){var d=u[c];return r&&(l[r]=d),s.paletteIdx=(c+1)%u.length,d}}(this,NX,r,i,t,e,o)},n.prototype.clearColorPalette=function(){!function J2e(n,t){t(n).paletteIdx=0,t(n).paletteNameMap={}}(this,NX)},n}());var Q2e=/\{@(.+?)\}/g,efe=function(){function n(){}return n.prototype.getDataParams=function(t,e){var o=this.getData(e),r=this.getRawValue(t,e),i=o.getRawIndex(t),a=o.getName(t),s=o.getRawDataItem(t),c=o.getItemVisual(t,"style"),l=c&&c[o.getItemVisual(t,"drawType")||"fill"],u=c&&c.stroke,d=this.mainType,h="series"===d,M=o.userOutput&&o.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:i,data:s,dataType:e,value:r,color:l,borderColor:u,dimensionNames:M?M.fullDimensions:null,encode:M?M.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(t,e,o,r,i,a){e=e||"normal";var s=this.getData(o),c=this.getDataParams(t,o);return a&&(c.value=a.interpolatedValue),null!=r&&d0(c.value)&&(c.value=c.value[r]),i||(i=s.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),S1(i)?(c.status=e,c.dimensionIndex=r,i(c)):R0(i)?kX(i,c).replace(Q2e,function(d,h){var M=h.length,g=h;"["===g.charAt(0)&&"]"===g.charAt(M-1)&&(g=+g.slice(1,M-1));var _=iO(s,t,g);if(a&&d0(a.interpolatedValue)){var z=s.getDimensionIndex(g);z>=0&&(_=a.interpolatedValue[z])}return null!=_?_+"":""}):void 0},n.prototype.getRawValue=function(t,e){return iO(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,o){},n}();function BX(n){var t,e;return U0(n)?n.type&&(e=n):t=n,{text:t,frag:e}}function Yz(n){return new tfe(n)}var tfe=function(){function n(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var i,e=this._upstream,o=t&&t.skip;if(this._dirty&&e){var r=this.context;r.data=r.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(i=this._plan(this.context));var d,a=u(this._modBy),s=this._modDataCount||0,c=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(x){return!(x>=1)&&(x=1),x}(a!==c||s!==l)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,d=this._doReset(o)),this._modBy=c,this._modDataCount=l;var h=t&&t.step;if(this._dueEnd=e?e._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var M=this._dueIndex,g=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!o&&(d||M1&&o>0?s:a}};return i;function a(){return t=n?null:c9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var r,i,t=this._sourceHost,e=this._getUpstreamSourceManagers(),o=!!e.length;if(ew(t)){var a=t,s=void 0,c=void 0,l=void 0;if(o){var u=e[0];u.prepareSource(),s=(l=u.getSource()).data,c=l.sourceFormat,i=[u._getVersionSign()]}else c=Mc(s=a.get("data",!0))?zd:Qc,i=[];var d=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},M=Pn(d.seriesLayoutBy,h.seriesLayoutBy)||null,g=Pn(d.sourceHeader,h.sourceHeader),_=Pn(d.dimensions,h.dimensions);r=M!==h.seriesLayoutBy||!!g!=!!h.sourceHeader||_?[TR(s,{seriesLayoutBy:M,sourceHeader:g,dimensions:_},c)]:[]}else{var y=t;if(o){var x=this._applyTransform(e);r=x.sourceList,i=x.upstreamSignList}else r=[TR(y.get("source",!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},n.prototype._applyTransform=function(t){var e=this._sourceHost,o=e.get("transform",!0),r=e.get("fromTransformResult",!0);null!=r&&1!==t.length&&HX("");var a,s=[],c=[];return We(t,function(l){l.prepareSource();var u=l.getSource(r||0);null!=r&&!u&&HX(""),s.push(u),c.push(l._getVersionSign())}),o?a=function lfe(n,t,e){var o=Oa(n),r=o.length;r||ns("");for(var a=0,s=r;a1||e>0&&!n.noHeader;return We(n.blocks,function(r){var i=VX(r);i>=t&&(t=i+ +(o&&(!i||iS(r)&&!r.noHeader)))}),t}return 0}function hfe(n,t,e,o){var r=t.noHeader,i=function bfe(n){return{html:dfe[n],richText:ffe[n]}}(VX(t)),a=[],s=t.blocks||[];Md(!s||d0(s)),s=s||[];var c=n.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Yg(l,c)){var u=new Kde(l[c],null);s.sort(function(g,_){return u.evaluate(g.sortParam,_.sortParam)})}else"seriesDesc"===c&&s.reverse()}We(s,function(g,_){var z=t.valueFormatter,y=UX(g)(z?Xt(Xt({},n),{valueFormatter:z}):n,g,_>0?i.html:0,o);null!=y&&a.push(y)});var d="richText"===n.renderMode?a.join(i.richText):aS(a.join(""),r?e:i.html);if(r)return d;var h=eS(t.header,"ordinal",n.useUTC),M=jX(o,n.renderMode).nameStyle;return"richText"===n.renderMode?GX(n,h,M)+i.richText+d:aS('
'+el(h)+"
"+d,e)}function Mfe(n,t,e,o){var r=n.renderMode,i=t.noName,a=t.noValue,s=!t.markerType,c=t.name,l=n.useUTC,u=t.valueFormatter||n.valueFormatter||function(S){return Q0(S=d0(S)?S:[S],function(X,H){return eS(X,d0(M)?M[H]:M,l)})};if(!i||!a){var d=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),h=i?"":eS(c,"ordinal",l),M=t.valueType,g=a?[]:u(t.value),_=!s||!i,z=!s&&i,y=jX(o,r),x=y.nameStyle,L=y.valueStyle;return"richText"===r?(s?"":d)+(i?"":GX(n,h,x))+(a?"":function mfe(n,t,e,o,r){var i=[r];return e&&i.push({padding:[0,0,0,o?10:20],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(d0(t)?t.join(" "):t,i)}(n,g,_,z,L)):aS((s?"":d)+(i?"":function gfe(n,t,e){return''+el(n)+""}(h,!s,x))+(a?"":function Ofe(n,t,e,o){return''+Q0(n=d0(n)?n:[n],function(a){return el(a)}).join("  ")+""}(g,_,z,L)),e)}}function $X(n,t,e,o,r,i){if(n)return UX(n)({useUTC:r,renderMode:e,orderMode:o,markupStyleCreator:t,valueFormatter:n.valueFormatter},n,0,i)}function aS(n,t){return'
'+n+'
'}function GX(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function ZX(n,t){return n.get("padding")??("richText"===t?[8,10]:10)}var sS=function(){function n(){this.richTextStyles={},this._nextStyleNameId=tH()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,o){var r="richText"===o?this._generateStyleName():null,i=function j2e(n,t){var e=R0(n)?{color:n,extraCssText:t}:n||{},o=e.color,r=e.type;t=e.extraCssText;var i=e.renderMode||"html";return o?"html"===i?"subItem"===r?'':'':{renderMode:i,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}({color:e,type:t,renderMode:o,markerId:r});return R0(i)?i:(this.richTextStyles[r]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(t,e){var o={};d0(e)?We(e,function(i){return Xt(o,i)}):Xt(o,e);var r=this._generateStyleName();return this.richTextStyles[r]=o,"{"+r+"|"+t+"}"},n}();var H2=Zr();function tw(n,t){return n.getName(t)||n.getId(t)}var nw=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return R1(t,n),t.prototype.init=function(e,o,r){this.seriesIndex=this.componentIndex,this.dataTask=Yz({count:Cfe,reset:wfe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r),(H2(this).sourceManager=new ufe(this)).prepareSource();var a=this.getInitialData(e,r);JX(a,this),this.dataTask.context.data=a,H2(this).dataBeforeProcessed=a,KX(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(e,o){var r=Fz(this),i=r?Q5(e):{},a=this.subType;Vo.hasClass(a)&&(a+="Series"),Xn(e,o.getTheme().get(this.subType)),Xn(e,this.getDefaultOption()),dR(e,"label",["show"]),this.fillDataTextStyle(e.data),r&&pO(e,i,r)},t.prototype.mergeOption=function(e,o){e=Xn(this.option,e,!0),this.fillDataTextStyle(e.data);var r=Fz(this);r&&pO(this.option,e,r);var i=H2(this).sourceManager;i.dirty(),i.prepareSource();var a=this.getInitialData(e,o);JX(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,H2(this).dataBeforeProcessed=a,KX(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!Mc(e))for(var o=["show"],r=0;r1||c&&!a){var g=function vfe(n,t,e,o,r){var i=t.getData(),a=L2(n,function(d,h,M){var g=i.getDimensionInfo(M);return d||g&&!1!==g.tooltip&&null!=g.displayName},!1),s=[],c=[],l=[];function u(d,h){var M=i.getDimensionInfo(h);!M||!1===M.otherDims.tooltip||(a?l.push(Hz("nameValue",{markerType:"subItem",markerColor:r,name:M.displayName,value:d,valueType:M.type})):(s.push(d),c.push(M.type)))}return o.length?We(o,function(d){u(iO(i,e,d),d)}):We(n,u),{inlineValues:s,inlineValueTypes:c,blocks:l}}(s,t,e,i,l);u=g.inlineValues,d=g.inlineValueTypes,h=g.blocks,M=g.inlineValues[0]}else if(a){var _=r.getDimensionInfo(i[0]);M=u=iO(r,e,i[0]),d=_.type}else M=u=c?s[0]:s;var z=fR(t),y=z&&t.name||"",x=r.getName(e),L=o?y:x;return Hz("section",{header:y,noHeader:o||!z,sortParam:M,blocks:[Hz("nameValue",{markerType:"item",markerColor:l,name:L,noName:!pu(L),value:u,valueType:d})].concat(h||[])})}({series:this,dataIndex:e,multipleSeries:o})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(X1.node&&(!e||!e.ssr))return!1;var o=this.getShallow("animation");return o&&this.getData().count()>this.getShallow("animationThreshold")&&(o=!1),!!o},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,o,r){var i=this.ecModel,a=oS.prototype.getColorFromPalette.call(this,e,o,r);return a||(a=i.getColorFromPalette(e,o,r)),a},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,o){this._innerSelect(this.getData(o),e)},t.prototype.unselect=function(e,o){var r=this.option.selectedMap;if(r){var i=this.option.selectedMode,a=this.getData(o);if("series"===i||"all"===r)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s=0&&r.push(a)}return r},t.prototype.isSelected=function(e,o){var r=this.option.selectedMap;if(!r)return!1;var i=this.getData(o);return("all"===r||r[tw(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,o){var r,i,a=this.option,s=a.selectedMode,c=o.length;if(s&&c)if("series"===s)a.selectedMap="all";else if("multiple"===s){U0(a.selectedMap)||(a.selectedMap={});for(var l=a.selectedMap,u=0;u0&&this._innerSelect(e,o)}},t.registerClass=function(e){return Vo.registerClass(e)},t.protoInitialize=((e=t.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",void(e.visualDrawType="fill")),t;var e}(Vo);function KX(n){var t=n.name;fR(n)||(n.name=function yfe(n){var t=n.getRawData(),e=t.mapDimensionsAll("seriesName"),o=[];return We(e,function(r){var i=t.getDimensionInfo(r);i.displayName&&o.push(i.displayName)}),o.join(" ")}(n)||t)}function Cfe(n){return n.model.getRawData().count()}function wfe(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),Pfe}function Pfe(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function JX(n,t){We(function kle(n,t){for(var e=new n.constructor(n.length+t.length),o=0;o1&&(a*=pS(g),s*=pS(g));var _=(r===i?-1:1)*pS((a*a*(s*s)-a*a*(M*M)-s*s*(h*h))/(a*a*(M*M)+s*s*(h*h)))||0,z=_*a*M/s,y=_*-s*h/a,x=(n+e)/2+rw(d)*z-ow(d)*y,L=(t+o)/2+ow(d)*z+rw(d)*y,S=oj([1,0],[(h-z)/a,(M-y)/s]),X=[(h-z)/a,(M-y)/s],H=[(-1*h-z)/a,(-1*M-y)/s],ie=oj(X,H);if(uS(X,H)<=-1&&(ie=Xz),uS(X,H)>=1&&(ie=0),ie<0){var ee=Math.round(ie/Xz*1e6)/1e6;ie=2*Xz+ee%2*Xz}u.addData(l,x,L,a,s,S,ie,d,i)}var Dfe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,kfe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ij=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return vo(t,n),t.prototype.applyTransform=function(e){},t}(Co);function aj(n){return null!=n.setData}function sj(n,t){var e=function Efe(n){var t=new N2;if(!n)return t;var a,e=0,o=0,r=e,i=o,s=N2.CMD,c=n.match(Dfe);if(!c)return t;for(var l=0;l=0&&(r.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,o){var r=_o(this._children,e);return r>=0&&this.replaceAt(o,r),this},t.prototype.replaceAt=function(e,o){var r=this._children,i=r[o];if(e&&e!==this&&e.parent!==this&&e!==i){r[o]=e,i.parent=null;var a=this.__zr;a&&i.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var o=this.__zr;o&&o!==e.__zr&&e.addSelfToZr(o),o&&o.refresh()},t.prototype.remove=function(e){var o=this.__zr,r=this._children,i=_o(r,e);return i<0||(r.splice(i,1),e.parent=null,o&&e.removeSelfFromZr(o),o&&o.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,o=this.__zr,r=0;rUe*Ue+st*st&&(ee=fe,ce=he),{cx:ee,cy:ce,x0:-u,y0:-d,x1:ee*(r/X-1),y1:ce*(r/X-1)}}var Ufe=function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},fj=function(n){function t(e){return n.call(this,e)||this}return vo(t,n),t.prototype.getDefaultShape=function(){return new Ufe},t.prototype.buildPath=function(e,o){!function jfe(n,t){var e,o=Uz(t.r,0),r=Uz(t.r0||0,0),i=o>0;if(i||r>0){if(i||(o=r,r=0),r>o){var s=o;o=r,r=s}var c=t.startAngle,l=t.endAngle;if(!isNaN(c)&&!isNaN(l)){var u=t.cx,d=t.cy,h=!!t.clockwise,M=dj(l-c),g=M>dS&&M%dS;if(g>Ql&&(M=g),o>Ql)if(M>dS-Ql)n.moveTo(u+o*hO(c),d+o*Hh(c)),n.arc(u,d,o,c,l,!h),r>Ql&&(n.moveTo(u+r*hO(l),d+r*Hh(l)),n.arc(u,d,r,l,c,h));else{var _=void 0,z=void 0,y=void 0,x=void 0,L=void 0,S=void 0,X=void 0,H=void 0,ie=void 0,ee=void 0,ce=void 0,fe=void 0,he=void 0,Oe=void 0,xe=void 0,Ue=void 0,st=o*hO(c),nt=o*Hh(c),Ut=r*hO(l),qe=r*Hh(l),ke=M>Ql;if(ke){var Ge=t.cornerRadius;Ge&&(e=function Xfe(n){var t;if(d0(n)){var e=n.length;if(!e)return n;t=1===e?[n[0],n[0],0,0]:2===e?[n[0],n[0],n[1],n[1]]:3===e?n.concat(n[2]):n}else t=[n,n,n,n];return t}(Ge),_=e[0],z=e[1],y=e[2],x=e[3]);var vt=dj(o-r)/2;if(L=Ou(vt,y),S=Ou(vt,x),X=Ou(vt,_),H=Ou(vt,z),ce=ie=Uz(L,S),fe=ee=Uz(X,H),(ie>Ql||ee>Ql)&&(he=o*hO(l),Oe=o*Hh(l),xe=r*hO(c),Ue=r*Hh(c),MQl){var to=Ou(y,ce),sn=Ou(x,ce),q0=iw(xe,Ue,st,nt,o,to,h),V0=iw(he,Oe,Ut,qe,o,sn,h);n.moveTo(u+q0.cx+q0.x0,d+q0.cy+q0.y0),ce0&&n.arc(u+q0.cx,d+q0.cy,to,_a(q0.y0,q0.x0),_a(q0.y1,q0.x1),!h),n.arc(u,d,o,_a(q0.cy+q0.y1,q0.cx+q0.x1),_a(V0.cy+V0.y1,V0.cx+V0.x1),!h),sn>0&&n.arc(u+V0.cx,d+V0.cy,sn,_a(V0.y1,V0.x1),_a(V0.y0,V0.x0),!h))}else n.moveTo(u+st,d+nt),n.arc(u,d,o,c,l,!h);else n.moveTo(u+st,d+nt);r>Ql&&ke?fe>Ql?(to=Ou(_,fe),q0=iw(Ut,qe,he,Oe,r,-(sn=Ou(z,fe)),h),V0=iw(st,nt,xe,Ue,r,-to,h),n.lineTo(u+q0.cx+q0.x0,d+q0.cy+q0.y0),fe0&&n.arc(u+q0.cx,d+q0.cy,sn,_a(q0.y0,q0.x0),_a(q0.y1,q0.x1),!h),n.arc(u,d,r,_a(q0.cy+q0.y1,q0.cx+q0.x1),_a(V0.cy+V0.y1,V0.cx+V0.x1),h),to>0&&n.arc(u+V0.cx,d+V0.cy,to,_a(V0.y1,V0.x1),_a(V0.y0,V0.x0),!h))):(n.lineTo(u+Ut,d+qe),n.arc(u,d,r,l,c,h)):n.lineTo(u+Ut,d+qe)}else n.moveTo(u,d);n.closePath()}}}(e,o)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Co);fj.prototype.type="sector";const Vz=fj;var Vfe=function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0},hj=function(n){function t(e){return n.call(this,e)||this}return vo(t,n),t.prototype.getDefaultShape=function(){return new Vfe},t.prototype.buildPath=function(e,o){var r=o.cx,i=o.cy,a=2*Math.PI;e.moveTo(r+o.r,i),e.arc(r,i,o.r,0,a,!1),e.moveTo(r+o.r0,i),e.arc(r,i,o.r0,0,a,!0)},t}(Co);hj.prototype.type="ring";const Mj=hj;function bj(n,t,e){var o=t.smooth,r=t.points;if(r&&r.length>=2){if(o){var i=function $fe(n,t,e,o){var c,l,u,d,r=[],i=[],a=[],s=[];if(o){u=[1/0,1/0],d=[-1/0,-1/0];for(var h=0,M=n.length;hjh[1]){if(s=!1,i)return s;var u=Math.abs(jh[0]-Xh[1]),d=Math.abs(Xh[0]-jh[1]);Math.min(u,d)>r.len()&&g1.scale(r,l,u0){var g={duration:u.duration,delay:u.delay||0,easing:u.easing,done:i,force:!!i||!!a,setToFinal:!l,scope:n,during:a};s?t.animateFrom(e,g):t.animateTo(e,g)}else t.stopAnimation(),!s&&t.attr(e),a&&a(1),i&&i()}function mu(n,t,e,o,r,i){hS("update",n,t,e,o,r,i)}function X2(n,t,e,o,r,i){hS("enter",n,t,e,o,r,i)}function $z(n){if(!n.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Rj(n){return!n.isGroup}function Sj(n,t,e){if(n&&t){var i=function o(a){var s={};return a.traverse(function(c){Rj(c)&&c.anid&&(s[c.anid]=c)}),s}(n);t.traverse(function(a){if(Rj(a)&&a.anid){var s=i[a.anid];if(s){var c=r(a);a.attr(r(s)),mu(a,c,e,Ro(a).dataIndex)}}})}function r(a){var s={x:a.x,y:a.y,rotation:a.rotation};return function mhe(n){return null!=n.shape}(a)&&(s.shape=Xt({},a.shape)),s}}function _he(n,t){return Q0(n,function(e){var o=e[0];o=uw(o,t.x),o=dw(o,t.x+t.width);var r=e[1];return r=uw(r,t.y),[o,r=dw(r,t.y+t.height)]})}function zhe(n,t){var e=uw(n.x,t.x),o=dw(n.x+n.width,t.x+t.width),r=uw(n.y,t.y),i=dw(n.y+n.height,t.y+t.height);if(o>=e&&i>=r)return{x:e,y:r,width:o-e,height:i-r}}function OS(n,t,e){var o=Xt({rectHover:!0},t),r=o.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return 0===n.indexOf("image://")?(r.image=n.slice(8),Zn(r,e),new Wh(o)):bS(n.replace("path://",""),o,e,"center")}function vhe(n,t,e,o,r){for(var i=0,a=r[r.length-1];i=-1e-6}(h))return!1;var M=n-r,g=t-i,_=mS(M,g,c,l)/h;if(_<0||_>1)return!1;var z=mS(M,g,u,d)/h;return!(z<0||z>1)}function mS(n,t,e,o){return n*o-e*t}function _S(n){var t=n.itemTooltipOption,e=n.componentModel,o=n.itemName,r=R0(t)?{formatter:t}:t,i=e.mainType,a=e.componentIndex,s={componentType:i,name:o,$vars:["name"]};s[i+"Index"]=a;var c=n.formatterParamsExtra;c&&We(jo(c),function(u){Yg(s,u)||(s[u]=c[u],s.$vars.push(u))});var l=Ro(n.el);l.componentMainType=i,l.componentIndex=a,l.tooltipConfig={name:o,option:Zn({content:o,formatterParams:s},r)}}function kj(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function zS(n,t){if(n)if(d0(n))for(var e=0;e-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),o},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(dO);const She=Rhe;function Nj(n,t){var e=n.mapDimensionsAll("defaultedLabel"),o=e.length;if(1===o){var r=iO(n,t,e[0]);return null!=r?r+"":null}if(o){for(var i=[],a=0;a0?+z:1;xe.scaleX=this._sizeX*Ue,xe.scaleY=this._sizeY*Ue,this.setSymbolScale(1),L5(this,h,M,g)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,o,r){var i=this.childAt(0),a=Ro(this).dataIndex,s=r&&r.animation;if(this.silent=i.silent=!0,r&&r.fadeLabel){var c=i.getTextContent();c&&pw(c,{style:{opacity:0}},o,{dataIndex:a,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();pw(i,{style:{opacity:0},scaleX:0,scaleY:0},o,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,o){return function The(n){return d0(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}(e.getItemVisual(o,"symbolSize"))},t}(os);function Ehe(n,t){this.parent.drift(n,t)}const AS=khe;function yS(n,t,e,o){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(o.isIgnore&&o.isIgnore(e))&&!(o.clipShape&&!o.clipShape.contain(t[0],t[1]))&&"none"!==n.getItemVisual(e,"symbol")}function Ij(n){return null!=n&&!U0(n)&&(n={isIgnore:n}),n||{}}function Bj(n){var t=n.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:S5(t),cursorStyle:t.get("cursor")}}var Nhe=function(){function n(t){this.group=new os,this._SymbolCtor=t||AS}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=Ij(e);var o=this.group,r=t.hostModel,i=this._data,a=this._SymbolCtor,s=e.disableAnimation,c=Bj(t),l={disableAnimation:s},u=e.getSymbolPoint||function(d){return t.getItemLayout(d)};i||o.removeAll(),t.diff(i).add(function(d){var h=u(d);if(yS(t,h,d,e)){var M=new a(t,d,c,l);M.setPosition(h),t.setItemGraphicEl(d,M),o.add(M)}}).update(function(d,h){var M=i.getItemGraphicEl(h),g=u(d);if(yS(t,g,d,e)){var _=t.getItemVisual(d,"symbol")||"circle",z=M&&M.getSymbolType&&M.getSymbolType();if(!M||z&&z!==_)o.remove(M),(M=new a(t,d,c,l)).setPosition(g);else{M.updateData(t,d,c,l);var y={x:g[0],y:g[1]};s?M.attr(y):mu(M,y,r)}o.add(M),t.setItemGraphicEl(d,M)}else o.remove(M)}).remove(function(d){var h=i.getItemGraphicEl(d);h&&h.fadeOut(function(){o.remove(h)},r)}).execute(),this._getSymbolPoint=u,this._data=t},n.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(o,r){var i=t._getSymbolPoint(r);o.setPosition(i),o.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Bj(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,o){function r(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=Ij(o);for(var i=t.start;i0?e=o[0]:o[1]<0&&(e=o[1]),e}(r,e),a=o.dim,s=r.dim,c=t.mapDimension(s),l=t.mapDimension(a),u="x"===s||"radius"===s?1:0,d=Q0(n.dimensions,function(g){return t.mapDimension(g)}),h=!1,M=t.getCalculationInfo("stackResultDimension");return Dz(t,d[0])&&(h=!0,d[0]=M),Dz(t,d[1])&&(h=!0,d[1]=M),{dataDimsForPoint:d,valueStart:i,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Yj(n,t,e,o){var r=NaN;n.stacked&&(r=e.get(e.getCalculationInfo("stackedOverDimension"),o)),isNaN(r)&&(r=n.valueStart);var i=n.baseDataOffset,a=[];return a[i]=e.get(n.baseDim,o),a[1-i]=r,t.dataToPoint(a)}var Hj=typeof Float32Array<"u",Fhe=Hj?Float32Array:Array;function bO(n){return d0(n)?Hj?new Float32Array(n):n:new Fhe(n)}var j2=Math.min,U2=Math.max;function Uh(n,t){return isNaN(n)||isNaN(t)}function CS(n,t,e,o,r,i,a,s,c){for(var l,u,d,h,M,g,_=e,z=0;z=r||_<0)break;if(Uh(y,x)){if(c){_+=i;continue}break}if(_===e)n[i>0?"moveTo":"lineTo"](y,x),d=y,h=x;else{var L=y-l,S=x-u;if(L*L+S*S<.5){_+=i;continue}if(a>0){for(var X=_+i,H=t[2*X],ie=t[2*X+1];H===y&&ie===x&&z=o||Uh(H,ie))M=y,g=x;else{fe=H-l,he=ie-u;var Ue=y-l,st=H-y,nt=x-u,Ut=ie-x,qe=void 0,ke=void 0;if("x"===s){var Ge=fe>0?1:-1;M=y-Ge*(qe=Math.abs(Ue))*a,g=x,Oe=y+Ge*(ke=Math.abs(st))*a,xe=x}else if("y"===s){var vt=he>0?1:-1;M=y,g=x-vt*(qe=Math.abs(nt))*a,Oe=y,xe=x+vt*(ke=Math.abs(Ut))*a}else qe=Math.sqrt(Ue*Ue+nt*nt),M=y-fe*a*(1-(ce=(ke=Math.sqrt(st*st+Ut*Ut))/(ke+qe))),g=x-he*a*(1-ce),xe=x+he*a*ce,Oe=j2(Oe=y+fe*a*ce,U2(H,y)),xe=j2(xe,U2(ie,x)),Oe=U2(Oe,j2(H,y)),g=x-(he=(xe=U2(xe,j2(ie,x)))-x)*qe/ke,M=j2(M=y-(fe=Oe-y)*qe/ke,U2(l,y)),g=j2(g,U2(u,x)),Oe=y+(fe=y-(M=U2(M,j2(l,y))))*ke/qe,xe=x+(he=x-(g=U2(g,j2(u,x))))*ke/qe}n.bezierCurveTo(d,h,M,g,y,x),d=Oe,h=xe}else n.lineTo(y,x)}l=y,u=x,_+=i}return z}var Xj=function n(){this.smooth=0,this.smoothConstraint=!0},Xhe=function(n){function t(e){var o=n.call(this,e)||this;return o.type="ec-polyline",o}return R1(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xj},t.prototype.buildPath=function(e,o){var r=o.points,i=0,a=r.length/2;if(o.connectNulls){for(;a>0&&Uh(r[2*a-2],r[2*a-1]);a--);for(;i=0){var S=l?(g-c)*L+c:(M-s)*L+s;return l?[e,S]:[S,e]}s=M,c=g;break;case a.C:M=i[d++],g=i[d++],_=i[d++],z=i[d++],y=i[d++],x=i[d++];var X=l?r5(s,M,_,y,e,u):r5(c,g,z,x,e,u);if(X>0)for(var H=0;H=0)return S=l?di(c,g,z,x,ie):di(s,M,_,y,ie),l?[e,S]:[S,e]}s=y,c=x}}},t}(Co),jhe=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return R1(t,n),t}(Xj),Uhe=function(n){function t(e){var o=n.call(this,e)||this;return o.type="ec-polygon",o}return R1(t,n),t.prototype.getDefaultShape=function(){return new jhe},t.prototype.buildPath=function(e,o){var r=o.points,i=o.stackedOnPoints,a=0,s=r.length/2,c=o.smoothMonotone;if(o.connectNulls){for(;s>0&&Uh(r[2*s-2],r[2*s-1]);s--);for(;ao)return!1;return!0}(i,t))){var a=t.mapDimension(i.dim),s={};return We(i.getViewLabels(),function(c){var l=i.scale.getRawOrdinalNumber(c.tickValue);s[l]=1}),function(c){return!s.hasOwnProperty(t.get(a,c))}}}}(e,c,a),fe=this._data;fe&&fe.eachItemGraphicEl(function(l1,Tn){l1.__temp&&(s.remove(l1),fe.setItemGraphicEl(Tn,null))}),ie||g.remove(),s.add(y);var Oe,he=!h&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&(null!=(Oe=a.getArea()).width?(Oe.x-=.1,Oe.y-=.1,Oe.width+=.2,Oe.height+=.2):Oe.r0&&(Oe.r0-=.5,Oe.r+=.5)),this._clipShapeForSymbol=Oe;var xe=function eMe(n,t,e){var o=n.getVisual("visualMeta");if(o&&o.length&&n.count()&&"cartesian2d"===t.type){for(var r,i,a=o.length-1;a>=0;a--){var s=n.getDimensionInfo(o[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){i=o[a];break}}if(i){var c=t.getAxis(r),l=Q0(i.stops,function(L){return{coord:c.toGlobalCoord(c.dataToCoord(L.value)),color:L.color}}),u=l.length,d=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var h=function Qhe(n,t){var r,i,e=[],o=n.length;function a(u,d,h){var M=u.coord,_=function Rpe(n,t,e){if(t&&t.length&&n>=0&&n<=1){var o=n*(t.length-1),r=Math.floor(o),i=Math.ceil(o),a=Zc(t[r]),s=Zc(t[i]),c=o-r,l=zh([Gl(D2(a[0],s[0],c)),Gl(D2(a[1],s[1],c)),Gl(D2(a[2],s[2],c)),bz(D2(a[3],s[3],c))],"rgba");return e?{color:l,leftIndex:r,rightIndex:i,value:o}:l}}((h-M)/(d.coord-M),[u.color,d.color]);return{coord:h,color:_}}for(var s=0;st){i?e.push(a(i,c,t)):r&&e.push(a(r,c,0),a(r,c,t));break}r&&(e.push(a(r,c,0)),r=null),e.push(c),i=c}}return e}(l,"x"===r?e.getWidth():e.getHeight()),M=h.length;if(!M&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var _=h[0].coord-10,z=h[M-1].coord+10,y=z-_;if(y<.001)return"transparent";We(h,function(L){L.offset=(L.coord-_)/y}),h.push({offset:M?h[M-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:M?h[0].offset:.5,color:d[0]||"transparent"});var x=new Cj(0,0,0,0,h,!0);return x[r]=_,x[r+"2"]=z,x}}}(c,a,r)||c.getVisual("style")[c.getVisual("drawType")];if(_&&M.type===a.type&&he===this._step){L&&!z?z=this._newPolygon(d,H):z&&!L&&(y.remove(z),z=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Ih(xe));var Ue=y.getClipPath();Ue?X2(Ue,{shape:PS(this,a,!1,e).shape},e):y.setClipPath(PS(this,a,!0,e)),ie&&g.updateData(c,{isIgnore:ce,clipShape:Oe,disableAnimation:!0,getSymbolPoint:function(l1){return[d[2*l1],d[2*l1+1]]}}),(!Kj(this._stackedOnPoints,H)||!Kj(this._points,d))&&(x?this._doUpdateAnimation(c,H,a,r,he,S,ee):(he&&(d=V2(d,a,he,ee),H&&(H=V2(H,a,he,ee))),_.setShape({points:d}),z&&z.setShape({points:d,stackedOnPoints:H})))}else ie&&g.updateData(c,{isIgnore:ce,clipShape:Oe,disableAnimation:!0,getSymbolPoint:function(l1){return[d[2*l1],d[2*l1+1]]}}),x&&this._initSymbolLabelAnimation(c,a,Oe),he&&(d=V2(d,a,he,ee),H&&(H=V2(H,a,he,ee))),_=this._newPolyline(d),L?z=this._newPolygon(d,H):z&&(y.remove(z),z=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Ih(xe)),y.setClipPath(PS(this,a,!0,e));var nt=e.getModel("emphasis"),Ut=nt.get("focus"),qe=nt.get("blurScope"),ke=nt.get("disabled");_.useStyle(Zn(l.getLineStyle(),{fill:"none",stroke:xe,lineJoin:"bevel"})),yR(_,e,"lineStyle"),_.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(_.getState("emphasis").style.lineWidth=+_.style.lineWidth+1),Ro(_).seriesIndex=e.seriesIndex,L5(_,Ut,qe,ke);var vt=eU(e.get("smooth")),ht=e.get("smoothMonotone");if(_.setShape({smooth:vt,smoothMonotone:ht,connectNulls:ee}),z){var Tt=c.getCalculationInfo("stackedOnSeries"),Gt=0;z.useStyle(Zn(u.getAreaStyle(),{fill:xe,opacity:.7,lineJoin:"bevel",decal:c.getVisual("style").decal})),Tt&&(Gt=eU(Tt.get("smooth"))),z.setShape({smooth:vt,stackedOnSmooth:Gt,smoothMonotone:ht,connectNulls:ee}),yR(z,e,"areaStyle"),Ro(z).seriesIndex=e.seriesIndex,L5(z,Ut,qe,ke)}var E0=function(l1){i._changePolyState(l1)};c.eachItemGraphicEl(function(l1){l1&&(l1.onHoverStateChange=E0)}),this._polyline.onHoverStateChange=E0,this._data=c,this._coordSys=a,this._stackedOnPoints=H,this._points=d,this._step=he,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,_),z&&this.packEventData(e,z))},t.prototype.packEventData=function(e,o){Ro(o).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,o,r,i){var a=e.getData(),s=Th(a,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&null!=s&&s>=0){var c=a.getLayout("points"),l=a.getItemGraphicEl(s);if(!l){var u=c[2*s],d=c[2*s+1];if(isNaN(u)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,d))return;var h=e.get("zlevel")||0,M=e.get("z")||0;(l=new AS(a,s)).x=u,l.y=d,l.setZ(h,M);var g=l.getSymbolPath().getTextContent();g&&(g.zlevel=h,g.z=M,g.z2=this._polyline.z2+1),l.__temp=!0,a.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Ad.prototype.highlight.call(this,e,o,r,i)},t.prototype.downplay=function(e,o,r,i){var a=e.getData(),s=Th(a,i);if(this._changePolyState("normal"),null!=s&&s>=0){var c=a.getItemGraphicEl(s);c&&(c.__temp?(a.setItemGraphicEl(s,null),this.group.remove(c)):c.downplay())}else Ad.prototype.downplay.call(this,e,o,r,i)},t.prototype._changePolyState=function(e){var o=this._polygon;mH(this._polyline,e),o&&mH(o,e)},t.prototype._newPolyline=function(e){var o=this._polyline;return o&&this._lineGroup.remove(o),o=new Xhe({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(o),this._polyline=o,o},t.prototype._newPolygon=function(e,o){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new Uhe({shape:{points:e,stackedOnPoints:o},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,o,r){var i,a,s=o.getBaseAxis(),c=s.inverse;"cartesian2d"===o.type?(i=s.isHorizontal(),a=!1):"polar"===o.type&&(i="angle"===s.dim,a=!0);var l=e.hostModel,u=l.get("animationDuration");S1(u)&&(u=u(null));var d=l.get("animationDelay")||0,h=S1(d)?d(null):d;e.eachItemGraphicEl(function(M,g){var _=M;if(_){var y=void 0,x=void 0,L=void 0;if(r)if(a){var S=r,X=o.pointToCoord([M.x,M.y]);i?(y=S.startAngle,x=S.endAngle,L=-X[1]/180*Math.PI):(y=S.r0,x=S.r,L=X[0])}else i?(y=r.x,x=r.x+r.width,L=M.x):(y=r.y+r.height,x=r.y,L=M.y);var ie=x===y?0:(L-y)/(x-y);c&&(ie=1-ie);var ee=S1(d)?d(g):u*ie+h,ce=_.getSymbolPath(),fe=ce.getTextContent();_.attr({scaleX:0,scaleY:0}),_.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:ee}),fe&&fe.animateFrom({style:{opacity:0}},{duration:300,delay:ee}),ce.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,o,r){var i=e.getModel("endLabel");if(nU(e)){var a=e.getData(),s=this._polyline,c=a.getLayout("points");if(!c)return s.removeTextContent(),void(this._endLabel=null);var l=this._endLabel;l||((l=this._endLabel=new ga({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=function rMe(n){for(var t=n.length/2;t>0&&oMe(n[2*t-2],n[2*t-1]);t--);return t-1}(c);u>=0&&(R5(s,S5(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:u,defaultText:function(d,h,M){return null!=M?function Dhe(n,t){var e=n.mapDimensionsAll("defaultedLabel");if(!d0(t))return t+"";for(var o=[],r=0;r=0&&o.push(t[i])}return o.join(" ")}(a,M):Nj(a,d)},enableTextSetter:!0},function aMe(n,t){var e=t.getBaseAxis(),o=e.isHorizontal(),r=e.inverse,i=o?r?"right":"left":"center",a=o?"middle":r?"top":"bottom";return{normal:{align:n.get("align")||i,verticalAlign:n.get("verticalAlign")||a}}}(i,o)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,o,r,i,a,s,c){var l=this._endLabel,u=this._polyline;if(l){e<1&&null==i.originalX&&(i.originalX=l.x,i.originalY=l.y);var d=r.getLayout("points"),h=r.hostModel,M=h.get("connectNulls"),g=s.get("precision"),_=s.get("distance")||0,z=c.getBaseAxis(),y=z.isHorizontal(),x=z.inverse,L=o.shape,S=x?y?L.x:L.y+L.height:y?L.x+L.width:L.y,X=(y?_:0)*(x?-1:1),H=(y?0:-_)*(x?-1:1),ie=y?"x":"y",ee=function iMe(n,t,e){for(var i,a,o=n.length/2,r="x"===e?0:1,s=0,c=-1,l=0;l=t||i>=t&&a<=t){c=l;break}s=l,i=a}return{range:[s,c],t:(t-i)/(a-i)}}(d,S,ie),ce=ee.range,fe=ce[1]-ce[0],he=void 0;if(fe>=1){if(fe>1&&!M){var Oe=tU(d,ce[0]);l.attr({x:Oe[0]+X,y:Oe[1]+H}),a&&(he=h.getRawValue(ce[0]))}else{(Oe=u.getPointOn(S,ie))&&l.attr({x:Oe[0]+X,y:Oe[1]+H});var xe=h.getRawValue(ce[0]),Ue=h.getRawValue(ce[1]);a&&(he=function Jue(n,t,e,o,r){var i=null==t||"auto"===t;if(null==o)return o;if(zo(o))return Gr(a=rH(e||0,o,r),i?Math.max(Od(e||0),Od(o)):t);if(R0(o))return r<1?e:o;for(var s=[],c=e,l=o,u=Math.max(c?c.length:0,l.length),d=0;d0?ce[0]:0;Oe=tU(d,st),a&&(he=h.getRawValue(st)),l.attr({x:Oe[0]+X,y:Oe[1]+H})}a&&D5(l).setLabelText(he)}},t.prototype._doUpdateAnimation=function(e,o,r,i,a,s,c){var l=this._polyline,u=this._polygon,d=e.hostModel,h=function Hhe(n,t,e,o,r,i,a,s){for(var c=function Yhe(n,t){var e=[];return t.diff(n).add(function(o){e.push({cmd:"+",idx:o})}).update(function(o,r){e.push({cmd:"=",idx:r,idx1:o})}).remove(function(o){e.push({cmd:"-",idx:o})}).execute(),e}(n,t),l=[],u=[],d=[],h=[],M=[],g=[],_=[],z=Fj(r,t,a),y=n.getLayout("points")||[],x=t.getLayout("points")||[],L=0;L3e3||u&&Qj(g,z)>3e3)return l.stopAnimation(),l.setShape({points:_}),void(u&&(u.stopAnimation(),u.setShape({points:_,stackedOnPoints:z})));l.shape.__points=h.current,l.shape.points=M;var y={shape:{points:_}};h.current!==M&&(y.shape.__points=h.next),l.stopAnimation(),mu(l,y,d),u&&(u.setShape({points:M,stackedOnPoints:g}),u.stopAnimation(),mu(u,{shape:{stackedOnPoints:z}},d),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var x=[],L=h.status,S=0;St&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;e10&&"cartesian2d"===a.type&&i){var c=a.getBaseAxis(),l=a.getOtherAxis(c),u=c.getExtent(),d=o.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(d||1),M=Math.round(s/h);if(isFinite(M)&&M>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/M));var g=void 0;R0(i)?g=pMe[i]:S1(i)&&(g=i),g&&t.setData(r.downSample(r.mapDimension(l.dim),1/M,g,uMe))}}}}}("line"))}function xS(n,t){return"all"===n||d0(n)&&_o(n,t)>=0||n===t}function qS(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Zz(n)]}function WS(n){return!!n.get(["handle","show"])}function Zz(n){return n.type+"||"+n.id}var LS=function(){function n(){this.group=new os,this.uid=Y5("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,o,r){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,o,r){},n.prototype.updateLayout=function(t,e,o,r){},n.prototype.updateVisual=function(t,e,o,r){},n.prototype.toggleBlurSeries=function(t,e,o){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n}();bT(LS),GC(LS);const yd=LS;var oU={},_Me=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return R1(t,n),t.prototype.render=function(e,o,r,i){this.axisPointerClass&&function OMe(n){var t=qS(n);if(t){var e=t.axisPointerModel,o=t.axis.scale,r=e.option,i=e.get("status"),a=e.get("value");null!=a&&(a=o.parse(a));var s=WS(e);null==i&&(r.status=s?"show":"hide");var c=o.getExtent().slice();c[0]>c[1]&&c.reverse(),(null==a||a>c[1])&&(a=c[1]),a=0){var a="touchend"!==o?t.targetTouches[0]:t.changedTouches[0];a&&RS(n,a,t,e)}else{RS(n,t,t,e);var i=function AMe(n){var t=n.wheelDelta;if(t)return t;var e=n.deltaX,o=n.deltaY;return null==e||null==o?t:3*Math.abs(0!==o?o:e)*(o>0?-1:o<0?1:e>0?-1:1)}(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&zMe.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function CMe(n,t,e,o){n.removeEventListener(t,e,o)}var aU=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0},hw="\0__throttleOriginMethod",sU="\0__throttleRate",cU="\0__throttleType";function lU(n,t,e){var o,s,c,l,u,r=0,i=0,a=null;function d(){i=(new Date).getTime(),a=null,n.apply(c,l||[])}t=t||0;var h=function(){for(var M=[],g=0;g=0?d():a=setTimeout(d,-s),r=o};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(M){u=M},h}function pU(n,t,e,o){var r=n[t];if(r){var i=r[hw]||r;if(r[sU]!==e||r[cU]!==o){if(null==e||!o)return n[t]=i;(r=n[t]=lU(i,e,"debounce"===o))[hw]=i,r[cU]=o,r[sU]=e}return r}}function DS(n,t){var e=n[t];e&&e[hw]&&(e.clear&&e.clear(),n[t]=e[hw])}var Vh=Zr(),uU=Wn,kS=Io,wMe=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,o,r){var i=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=o,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var s=this._group,c=this._handle;if(!a||"hide"===a)return s&&s.hide(),void(c&&c.hide());s&&s.show(),c&&c.show();var l={};this.makeElOption(l,i,t,e,o);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=u;var d=this._moveAnimation=this.determineAnimation(t,e);if(s){var h=$r(dU,e,d);this.updatePointerEl(s,l,h),this.updateLabelEl(s,l,h,e)}else s=this._group=new os,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),o.getZr().add(s);MU(s,e,!0),this._renderHandle(i)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var o=e.get("animation"),r=t.axis,i="category"===r.type,a=e.get("snap");if(!a&&!i)return!1;if("auto"===o||null==o){var s=this.animationThreshold;if(i&&r.getBandWidth()>s)return!0;if(a){var c=qS(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/c>s}return!1}return!0===o},n.prototype.makeElOption=function(t,e,o,r,i){},n.prototype.createPointerEl=function(t,e,o,r){var i=e.pointer;if(i){var a=Vh(t).pointerEl=new I[i.type](uU(e.pointer));t.add(a)}},n.prototype.createLabelEl=function(t,e,o,r){if(e.label){var i=Vh(t).labelEl=new ga(uU(e.label));t.add(i),hU(i,r)}},n.prototype.updatePointerEl=function(t,e,o){var r=Vh(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),o(r,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,o,r){var i=Vh(t).labelEl;i&&(i.setStyle(e.label.style),o(i,{x:e.label.x,y:e.label.y}),hU(i,r))},n.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var s,e=this._axisPointerModel,o=this._api.getZr(),r=this._handle,i=e.getModel("handle"),a=e.get("status");if(!i.get("show")||!a||"hide"===a)return r&&o.remove(r),void(this._handle=null);this._handle||(s=!0,r=this._handle=OS(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){aU(l.event)},onmousedown:kS(this._onHandleDragMove,this,0,0),drift:kS(this._onHandleDragMove,this),ondragend:kS(this._onHandleDragEnd,this)}),o.add(r)),MU(r,e,!1),r.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=i.get("size");d0(c)||(c=[c,c]),r.scaleX=c[0]/2,r.scaleY=c[1]/2,pU(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},n.prototype._moveHandleToValue=function(t,e){dU(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ES(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var o=this._handle;if(o){this._dragging=!0;var r=this.updateHandleTransform(ES(o),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,o.stopAnimation(),o.attr(ES(r)),Vh(o).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,o=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:o.axis.dim,axisIndex:o.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),o=this._group,r=this._handle;e&&o&&(this._lastGraphicKey=null,o&&e.remove(o),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),DS(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,o){return{x:t[o=o||0],y:t[1-o],width:e[o],height:e[1-o]}},n}();function dU(n,t,e,o){fU(Vh(e).lastProp,o)||(Vh(e).lastProp=o,t?mu(e,o,n):(e.stopAnimation(),e.attr(o)))}function fU(n,t){if(U0(n)&&U0(t)){var e=!0;return We(t,function(o,r){e=e&&fU(n[r],o)}),!!e}return n===t}function hU(n,t){n[t.get(["label","show"])?"show":"hide"]()}function ES(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function MU(n,t,e){var o=t.get("z"),r=t.get("zlevel");n&&n.traverse(function(i){"group"!==i.type&&(null!=o&&(i.z=o),null!=r&&(i.zlevel=r),i.silent=e)})}const PMe=wMe;var bU=function(){function n(t){this._setting=t||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(t){return this._setting[t]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var o=this._extent;isNaN(t)||(o[0]=t),isNaN(e)||(o[1]=e)},n.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n}();GC(bU);const Cd=bU;var xMe=0,qMe=function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++xMe}return n.createByAxisModel=function(t){var e=t.option,o=e.data,r=o&&Q0(o,WMe);return new n({categories:r,needCollect:!r,deduplication:!1!==e.dedplication})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,o=this._needCollect;if(!R0(t)&&!o)return t;if(o&&!this._deduplication)return this.categories[e=this.categories.length]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(o?(this.categories[e=this.categories.length]=t,r.set(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=H1(this.categories))},n}();function WMe(n){return U0(n)&&null!=n.value?n.value:n+""}const NS=qMe;function IS(n){return"interval"===n.type||"log"===n.type}function BS(n){var t=Math.pow(10,uR(n)),e=n/t;return e?2===e?e=3:3===e?e=5:e*=2:e=1,Gr(e*t)}function gU(n){return Od(n)+2}function OU(n,t,e){n[t]=Math.max(Math.min(n[t],e[1]),e[0])}function Mw(n,t){return n>=t[0]&&n<=t[1]}function bw(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function gw(n,t){return n*(t[1]-t[0])+t[0]}var mU=function(n){function t(e){var o=n.call(this,e)||this;o.type="ordinal";var r=o.getSetting("ordinalMeta");return r||(r=new NS({})),d0(r)&&(r=new NS({categories:Q0(r,function(i){return U0(i)?i.value:i})})),o._ordinalMeta=r,o._extent=o.getSetting("extent")||[0,r.categories.length-1],o}return R1(t,n),t.prototype.parse=function(e){return null==e?NaN:R0(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Mw(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return bw(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(gw(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],o=this._extent,r=o[0];r<=o[1];)e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var o=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,c=Math.min(s,o.length);a=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Cd);Cd.registerClass(mU);const _U=mU;var $h=Gr,zU=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return R1(t,n),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Mw(e,this._extent)},t.prototype.normalize=function(e){return bw(e,this._extent)},t.prototype.scale=function(e){return gw(e,this._extent)},t.prototype.setExtent=function(e,o){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(o)||(r[1]=parseFloat(o))},t.prototype.unionExtent=function(e){var o=this._extent;e[0]o[1]&&(o[1]=e[1]),this.setExtent(o[0],o[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=gU(e)},t.prototype.getTicks=function(e){var o=this._interval,r=this._extent,i=this._niceExtent,a=this._intervalPrecision,s=[];if(!o)return s;r[0]1e4)return[];var u=s.length?s[s.length-1].value:i[1];return r[1]>u&&s.push(e?{value:$h(u+o,a)}:{value:r[1]}),s},t.prototype.getMinorTicks=function(e){for(var o=this.getTicks(!0),r=[],i=this.getExtent(),a=1;ai[0]&&Mo&&(a=r.interval=o);var s=r.intervalPrecision=gU(a);return function TMe(n,t){!isFinite(n[0])&&(n[0]=t[0]),!isFinite(n[1])&&(n[1]=t[1]),OU(n,0,t),OU(n,1,t),n[0]>n[1]&&(n[0]=n[1])}(r.niceTickExtent=[Gr(Math.ceil(n[0]/a)*a,s),Gr(Math.floor(n[1]/a)*a,s)],n),r}(i,e,o,r);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var r=Math.abs(o[0]);e.fixMax||(o[1]+=r/2),o[0]-=r/2}else o[1]=1;isFinite(o[1]-o[0])||(o[0]=0,o[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var a=this._interval;e.fixMin||(o[0]=$h(Math.floor(o[0]/a)*a)),e.fixMax||(o[1]=$h(Math.ceil(o[1]/a)*a))},t.prototype.setNiceExtent=function(e,o){this._niceExtent=[e,o]},t.type="interval",t}(Cd);Cd.registerClass(zU);const Kz=zU;var FS="__ec_stack_";function YS(n){return n.get("stack")||FS+n.seriesIndex}function HS(n){return n.dim+n.index}function AU(n){var t=function RMe(n){var t={};We(n,function(c){var u=c.coordinateSystem.getBaseAxis();if("time"===u.type||"value"===u.type)for(var d=c.getData(),h=u.dim+"_"+u.index,M=d.getDimensionIndex(d.mapDimension(u.dim)),g=d.getStore(),_=0,z=g.count();_0&&(i=null===i?s:Math.min(i,s))}e[o]=i}}return e}(n),e=[];return We(n,function(o){var s,i=o.coordinateSystem.getBaseAxis(),a=i.getExtent();if("category"===i.type)s=i.getBandWidth();else if("value"===i.type||"time"===i.type){var l=t[i.dim+"_"+i.index],u=Math.abs(a[1]-a[0]),d=i.scale.getExtent(),h=Math.abs(d[1]-d[0]);s=l?u/h*l:u}else{var M=o.getData();s=Math.abs(a[1]-a[0])/M.count()}var g=Uo(o.get("barWidth"),s),_=Uo(o.get("barMaxWidth"),s),z=Uo(o.get("barMinWidth")||(function wU(n){return n.pipelineContext&&n.pipelineContext.large}(o)?.5:1),s),y=o.get("barGap"),x=o.get("barCategoryGap");e.push({bandWidth:s,barWidth:g,barMaxWidth:_,barMinWidth:z,barGap:y,barCategoryGap:x,axisKey:HS(i),stackId:YS(o)})}),function yU(n){var t={};We(n,function(o,r){var i=o.axisKey,a=o.bandWidth,s=t[i]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=s.stacks;t[i]=s;var l=o.stackId;c[l]||s.autoWidthCount++,c[l]=c[l]||{width:0,maxWidth:0};var u=o.barWidth;u&&!c[l].width&&(c[l].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var d=o.barMaxWidth;d&&(c[l].maxWidth=d);var h=o.barMinWidth;h&&(c[l].minWidth=h);var M=o.barGap;null!=M&&(s.gap=M);var g=o.barCategoryGap;null!=g&&(s.categoryGap=g)});var e={};return We(t,function(o,r){e[r]={};var i=o.stacks,a=o.bandWidth,s=o.categoryGap;if(null==s){var c=jo(i).length;s=Math.max(35-4*c,15)+"%"}var l=Uo(s,a),u=Uo(o.gap,1),d=o.remainedWidth,h=o.autoWidthCount,M=(d-l)/(h+(h-1)*u);M=Math.max(M,0),We(i,function(y){var x=y.maxWidth,L=y.minWidth;if(y.width){var S=y.width;x&&(S=Math.min(S,x)),L&&(S=Math.max(S,L)),y.width=S,d-=S+u*S,h--}else S=M,x&&xS&&(S=L),S!==M&&(y.width=S,d-=S+u*S,h--)}),M=(d-l)/(h+(h-1)*u),M=Math.max(M,0);var _,g=0;We(i,function(y,x){y.width||(y.width=M),_=y,g+=y.width*(1+u)}),_&&(g-=_.width*u);var z=-g/2;We(i,function(y,x){e[r][x]=e[r][x]||{bandWidth:a,offset:z,width:y.width},z+=y.width*(1+u)})}),e}(e)}var PU=function(n){function t(e){var o=n.call(this,e)||this;return o.type="time",o}return R1(t,n),t.prototype.getLabel=function(e){var o=this.getSetting("useUTC");return U5(e.value,AX[function Y2e(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(cO(this._minLevelUnit))]||AX.second,o,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,o,r){var i=this.getSetting("useUTC");return function H2e(n,t,e,o,r){var i=null;if(R0(e))i=e;else if(S1(e))i=e(n.value,t,{level:n.level});else{var a=Xt({},Nz);if(n.level>0)for(var s=0;s=0;--s)if(c[l]){i=c[l];break}i=i||a.none}if(d0(i)){var d=null==n.level?0:n.level>=0?n.level:i.length+n.level;i=i[d=Math.min(d,i.length-1)]}}return U5(new Date(n.value),i,r,o)}(e,o,r,this.getSetting("locale"),i)},t.prototype.getTicks=function(){var o=this._extent,r=[];if(!this._interval)return r;r.push({value:o[0],level:0});var i=this.getSetting("useUTC"),a=function HMe(n,t,e,o){var i=yX,a=0;function s(fe,he,Oe,xe,Ue,st,nt){for(var Ut=new Date(he),qe=he,ke=Ut[xe]();qe1&&0===st&&Oe.unshift({value:Oe[0].value-qe})}}for(st=0;st=o[0]&&x<=o[1]&&d++)}var L=(o[1]-o[0])/t;if(d>1.5*L&&h>L/1.5||(l.push(z),d>L||n===i[M]))break}u=[]}}var S=es(Q0(l,function(fe){return es(fe,function(he){return he.value>=o[0]&&he.value<=o[1]&&!he.notAdd})}),function(fe){return fe.length>0}),X=[],H=S.length-1;for(M=0;Mr&&(this._approxInterval=r);var s=Ow.length,c=Math.min(function(n,t,e,o){for(;e>>1;n[r][1]16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function IMe(n){return(n/=30*tl)>6?6:n>3?3:n>2?2:1}function BMe(n){return(n/=Ez)>12?12:n>6?6:n>3.5?4:n>2?2:1}function xU(n,t){return(n/=t?KR:ZR)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function FMe(n){return eH(n,!0)}function YMe(n,t,e){var o=new Date(n);switch(cO(t)){case"year":case"month":o[PX(e)](0);case"day":o[xX(e)](1);case"hour":o[qX(e)](0);case"minute":o[WX(e)](0);case"second":o[LX(e)](0),o[TX(e)](0)}return o.getTime()}Cd.registerClass(PU);const XMe=PU;var qU=Cd.prototype,Jz=Kz.prototype,jMe=Gr,UMe=Math.floor,VMe=Math.ceil,mw=Math.pow,tp=Math.log,XS=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Kz,e._interval=0,e}return R1(t,n),t.prototype.getTicks=function(e){var r=this._extent,i=this._originalScale.getExtent();return Q0(Jz.getTicks.call(this,e),function(s){var c=s.value,l=Gr(mw(this.base,c));return l=c===r[0]&&this._fixMin?_w(l,i[0]):l,{value:l=c===r[1]&&this._fixMax?_w(l,i[1]):l}},this)},t.prototype.setExtent=function(e,o){var r=tp(this.base);e=tp(Math.max(0,e))/r,o=tp(Math.max(0,o))/r,Jz.setExtent.call(this,e,o)},t.prototype.getExtent=function(){var e=this.base,o=qU.getExtent.call(this);o[0]=mw(e,o[0]),o[1]=mw(e,o[1]);var i=this._originalScale.getExtent();return this._fixMin&&(o[0]=_w(o[0],i[0])),this._fixMax&&(o[1]=_w(o[1],i[1])),o},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var o=this.base;e[0]=tp(e[0])/tp(o),e[1]=tp(e[1])/tp(o),qU.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,o){this.unionExtent(e.getApproximateExtent(o))},t.prototype.calcNiceTicks=function(e){e=e||10;var o=this._extent,r=o[1]-o[0];if(!(r===1/0||r<=0)){var i=function Eue(n){return Math.pow(10,uR(n))}(r);for(e/r*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Gr(VMe(o[0]/i)*i),Gr(UMe(o[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Jz.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Mw(e=tp(e)/tp(this.base),this._extent)},t.prototype.normalize=function(e){return bw(e=tp(e)/tp(this.base),this._extent)},t.prototype.scale=function(e){return e=gw(e,this._extent),mw(this.base,e)},t.type="log",t}(Cd),WU=XS.prototype;function _w(n,t){return jMe(n,Od(t))}WU.getMinorTicks=Jz.getMinorTicks,WU.getLabel=Jz.getLabel,Cd.registerClass(XS);const $Me=XS;var GMe=function(){function n(t,e,o){this._prepareParams(t,e,o)}return n.prototype._prepareParams=function(t,e,o){o[1]0&&c>0&&!l&&(s=0),s<0&&c<0&&!u&&(c=0));var h=this._determinedMin,M=this._determinedMax;return null!=h&&(s=h,l=!0),null!=M&&(c=M,u=!0),{min:s,max:c,minFixed:l,maxFixed:u,isBlank:d}},n.prototype.modifyDataMinMax=function(t,e){this[KMe[t]]=e},n.prototype.setDeterminedMinMax=function(t,e){this[ZMe[t]]=e},n.prototype.freeze=function(){this.frozen=!0},n}(),ZMe={min:"_determinedMin",max:"_determinedMax"},KMe={min:"_dataMin",max:"_dataMax"};function zw(n,t){return null==t?null:VC(t)?NaN:n.parse(t)}function LU(n,t){var e=n.type,o=function JMe(n,t,e){var o=n.rawExtentInfo;return o||(o=new GMe(n,t,e),n.rawExtentInfo=o,o)}(n,t,n.getExtent()).calculate();n.setBlank(o.isBlank);var r=o.min,i=o.max,a=t.ecModel;if(a&&"time"===e){var s=function vU(n,t){var e=[];return t.eachSeriesByType(n,function(o){(function CU(n){return n.coordinateSystem&&"cartesian2d"===n.coordinateSystem.type})(o)&&e.push(o)}),e}("bar",a),c=!1;if(We(s,function(d){c=c||d.getBaseAxis()===t.axis}),c){var l=AU(s),u=function QMe(n,t,e,o){var r=e.axis.getExtent(),i=r[1]-r[0],a=function SMe(n,t,e){if(n&&t){var o=n[HS(t)];return null!=o&&null!=e?o[YS(e)]:o}}(o,e.axis);if(void 0===a)return{min:n,max:t};var s=1/0;We(a,function(M){s=Math.min(M.offset,s)});var c=-1/0;We(a,function(M){c=Math.max(M.offset+M.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-n,h=u/(1-(s+c)/i)-u;return{min:n-=h*(s/l),max:t+=h*(c/l)}}(r,i,t,l);r=u.min,i=u.max}}return{extent:[r,i],fixMin:o.minFixed,fixMax:o.maxFixed}}function TU(n,t){var e=t,o=LU(n,e),r=o.extent,i=e.get("splitNumber");n instanceof $Me&&(n.base=e.get("logBase"));var a=n.type,s=e.get("interval"),c="interval"===a||"time"===a;n.setExtent(r[0],r[1]),n.calcNiceExtent({splitNumber:i,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:c?e.get("minInterval"):null,maxInterval:c?e.get("maxInterval"):null}),null!=s&&n.setInterval&&n.setInterval(s)}function Qz(n){var o,t=n.getLabelModel().get("formatter"),e="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(o=t,function(r,i){return n.scale.getFormattedLabel(r,i,o)}):R0(t)?function(o){return function(r){var i=n.scale.getLabel(r);return o.replace("{value}",i??"")}}(t):S1(t)?function(o){return function(r,i){return null!=e&&(i=r.value-e),o(jS(n,r),i,null!=r.level?{level:r.level}:null)}}(t):function(o){return n.scale.getLabel(o)}}function jS(n,t){return"category"===n.type?n.scale.getLabel(t):t.value}function obe(n,t){var e=t*Math.PI/180,o=n.width,r=n.height,i=o*Math.abs(Math.cos(e))+Math.abs(r*Math.sin(e)),a=o*Math.abs(Math.sin(e))+Math.abs(r*Math.cos(e));return new Kn(n.x,n.y,i,a)}function US(n){return n.get("interval")??"auto"}function RU(n){return"category"===n.type&&0===US(n.getLabelModel())}var $2=Math.PI,Gh=function(){function n(t,e){this.group=new os,this.opt=e,this.axisModel=t,Zn(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var o=new os({x:e.position[0],y:e.position[1],rotation:e.rotation});o.updateTransform(),this._transformGroup=o}return n.prototype.hasBuilder=function(t){return!!kU[t]},n.prototype.add=function(t){kU[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,e,o){var i,a,r=QY(e-t);return v5(r)?(a=o>0?"top":"bottom",i="center"):v5(r-$2)?(a=o>0?"bottom":"top",i="center"):(a="middle",i=r>0&&r<$2?o>0?"right":"left":o>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:a}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n}(),kU={axisLine:function(n,t,e,o){var r=t.get(["axisLine","show"]);if("auto"===r&&n.handleAutoShown&&(r=n.handleAutoShown("axisLine")),r){var i=t.axis.getExtent(),a=o.transform,s=[i[0],0],c=[i[1],0],l=s[0]>c[0];a&&(Vc(s,s,a),Vc(c,c,a));var u=Xt({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Yh({shape:{x1:s[0],y1:s[1],x2:c[0],y2:c[1]},style:u,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Gz(d.shape,d.style.lineWidth),d.anid="line",e.add(d);var h=t.get(["axisLine","symbol"]);if(null!=h){var M=t.get(["axisLine","symbolSize"]);R0(h)&&(h=[h,h]),(R0(M)||zo(M))&&(M=[M,M]);var g=Ej(t.get(["axisLine","symbolOffset"])||0,M),_=M[0],z=M[1];We([{rotate:n.rotation+Math.PI/2,offset:g[0],r:0},{rotate:n.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-c[0])*(s[0]-c[0])+(s[1]-c[1])*(s[1]-c[1]))}],function(y,x){if("none"!==h[x]&&null!=h[x]){var L=MO(h[x],-_/2,-z/2,_,z,u.stroke,!0),S=y.r+y.offset,X=l?c:s;L.attr({rotation:y.rotate,x:X[0]+S*Math.cos(n.rotation),y:X[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),e.add(L)}})}}},axisTickLabel:function(n,t,e,o){var r=function lbe(n,t,e,o){var r=e.axis,i=e.getModel("axisTick"),a=i.get("show");if("auto"===a&&o.handleAutoShown&&(a=o.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=i.getModel("lineStyle"),c=o.tickDirection*i.get("length"),u=IU(r.getTicksCoords(),t.transform,c,Zn(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;dl[1]?-1:1,d=["start"===i?l[0]-u*c:"end"===i?l[1]+u*c:(l[0]+l[1])/2,NU(i)?n.labelOffset+a*c:0],M=t.get("nameRotate");null!=M&&(M=M*$2/180),NU(i)?h=Gh.innerTextLayout(n.rotation,M??n.rotation,a):(h=function sbe(n,t,e,o){var i,a,r=QY(e-n),s=o[0]>o[1],c="start"===t&&!s||"start"!==t&&s;return v5(r-$2/2)?(a=c?"bottom":"top",i="center"):v5(r-1.5*$2)?(a=c?"top":"bottom",i="center"):(a="middle",i=r<1.5*$2&&r>$2/2?c?"left":"right":c?"right":"left"),{rotation:r,textAlign:i,textVerticalAlign:a}}(n.rotation,i,M||0,l),null!=(g=n.axisNameAvailableWidth)&&(g=Math.abs(g/Math.sin(h.rotation)),!isFinite(g)&&(g=null)));var _=s.getFont(),z=t.get("nameTruncate",!0)||{},y=z.ellipsis,x=sz(n.nameTruncateMaxWidth,z.maxWidth,g),L=new ga({x:d[0],y:d[1],rotation:h.rotation,silent:Gh.isLabelSilent(t),style:F2(s,{text:r,font:_,overflow:"truncate",width:x,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(_S({el:L,componentModel:t,itemName:r}),L.__fullText=r,L.anid="name",t.get("triggerEvent")){var S=Gh.makeAxisEventDataBase(t);S.targetType="axisName",S.name=r,Ro(L).eventData=S}o.add(L),L.updateTransform(),e.add(L),L.decomposeTransform()}}};function ol(n){n&&(n.ignore=!0)}function EU(n,t){var e=n&&n.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(e&&o){var r=mT([]);return zT(r,r,-n.rotation),e.applyTransform(Xg([],r,n.getLocalTransform())),o.applyTransform(Xg([],r,t.getLocalTransform())),e.intersect(o)}}function NU(n){return"middle"===n||"center"===n}function IU(n,t,e,o,r){for(var i=[],a=[],s=[],c=0;c=0)&&l({type:"updateAxisPointer",currTrigger:s,x:c&&c.offsetX,y:c&&c.offsetY})})},t.prototype.remove=function(e,o){$S("axisPointer",o)},t.prototype.dispose=function(e,o){$S("axisPointer",o)},t.type="axisPointer",t}(yd);const qbe=xbe;function GU(n,t){var r,e=[],o=n.seriesIndex;if(null==o||!(r=t.getSeriesByIndex(o)))return{point:[]};var i=r.getData(),a=Th(i,n);if(null==a||a<0||d0(a))return{point:[]};var s=i.getItemGraphicEl(a),c=r.coordinateSystem;if(r.getTooltipPosition)e=r.getTooltipPosition(a)||[];else if(c&&c.dataToPoint)if(n.isStacked){var l=c.getBaseAxis(),d=c.getOtherAxis(l).dim,M="x"===d||"radius"===d?1:0,g=i.mapDimension(l.dim),_=[];_[M]=i.get(g,a),_[1-M]=i.get(i.getCalculationInfo("stackResultDimension"),a),e=c.dataToPoint(_)||[]}else e=c.dataToPoint(i.getValues(Q0(c.dimensions,function(y){return i.mapDimension(y)}),a))||[];else if(s){var z=s.getBoundingRect().clone();z.applyTransform(s.transform),e=[z.x+z.width/2,z.y+z.height/2]}return{point:e,el:s}}var ZU=Zr();function Wbe(n,t,e){var o=n.currTrigger,r=[n.x,n.y],i=n,a=n.dispatchAction||Io(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){vw(r)&&(r=GU({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var c=vw(r),l=i.axesInfo,u=s.axesInfo,d="leave"===o||vw(r),h={},M={},g={list:[],map:{}},_={showPointer:$r(Tbe,M),showTooltip:$r(Rbe,g)};We(s.coordSysMap,function(y,x){var L=c||y.containPoint(r);We(s.coordSysAxesInfo[x],function(S,X){var H=S.axis,ie=function Ebe(n,t){for(var e=0;e<(n||[]).length;e++){var o=n[e];if(t.axis.dim===o.axisDim&&t.axis.model.componentIndex===o.axisIndex)return o}}(l,S);if(!d&&L&&(!l||ie)){var ee=ie&&ie.value;null==ee&&!c&&(ee=H.pointToData(r)),null!=ee&&KU(S,ee,_,!1,h)}})});var z={};return We(u,function(y,x){var L=y.linkGroup;L&&!M[x]&&We(L.axesInfo,function(S,X){var H=M[X];if(S!==y&&H){var ie=H.value;L.mapper&&(ie=y.axis.scale.parse(L.mapper(ie,JU(S),JU(y)))),z[y.key]=ie}})}),We(z,function(y,x){KU(u[x],y,_,!0,h)}),function Sbe(n,t,e){var o=e.axesInfo=[];We(t,function(r,i){var a=r.axisPointerModel.option,s=n[i];s?(!r.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!r.useHandle&&(a.status="hide"),"show"===a.status&&o.push({axisDim:r.axis.dim,axisIndex:r.axis.model.componentIndex,value:a.value})})}(M,u,h),function Dbe(n,t,e,o){if(!vw(t)&&n.list.length){var r=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:n.list})}else o({type:"hideTip"})}(g,r,n,a),function kbe(n,t,e){var o=e.getZr(),r="axisPointerLastHighlights",i=ZU(o)[r]||{},a=ZU(o)[r]={};We(n,function(l,u){var d=l.axisPointerModel.option;"show"===d.status&&We(d.seriesDataIndices,function(h){a[h.seriesIndex+" | "+h.dataIndex]=h})});var s=[],c=[];We(i,function(l,u){!a[u]&&c.push(l)}),We(a,function(l,u){!i[u]&&s.push(l)}),c.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(u,0,e),h}}function KU(n,t,e,o,r){var i=n.axis;if(!i.scale.isBlank()&&i.containData(t)){if(!n.involveSeries)return void e.showPointer(n,t);var a=function Lbe(n,t){var e=t.axis,o=e.dim,r=n,i=[],a=Number.MAX_VALUE,s=-1;return We(t.seriesModels,function(c,l){var d,h,u=c.getData().mapDimensionsAll(o);if(c.getAxisTooltipData){var M=c.getAxisTooltipData(u,n,e);h=M.dataIndices,d=M.nestestValue}else{if(!(h=c.getData().indicesOfNearest(u[0],n,"category"===e.type?.5:null)).length)return;d=c.getData().get(u[0],h[0])}if(null!=d&&isFinite(d)){var g=n-d,_=Math.abs(g);_<=a&&((_=0&&s<0)&&(a=_,s=g,r=d,i.length=0),We(h,function(z){i.push({seriesIndex:c.seriesIndex,dataIndexInside:z,dataIndex:c.getData().getRawIndex(z)})}))}}),{payloadBatch:i,snapToValue:r}}(t,n),s=a.payloadBatch,c=a.snapToValue;s[0]&&null==r.seriesIndex&&Xt(r,s[0]),!o&&n.snap&&i.containData(c)&&null!=c&&(t=c),e.showPointer(n,t,s),e.showTooltip(n,a,c)}}function Tbe(n,t,e,o){n[t.key]={value:e,payloadBatch:o}}function Rbe(n,t,e,o){var r=e.payloadBatch,i=t.axis,a=i.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var c=t.coordSys.model,l=Zz(c),u=n.map[l];u||(u=n.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},n.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:o,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function JU(n){var t=n.axis.model,e={},o=e.axisDim=n.axis.dim;return e.axisIndex=e[o+"AxisIndex"]=t.componentIndex,e.axisName=e[o+"AxisName"]=t.name,e.axisId=e[o+"AxisId"]=t.id,e}function vw(n){return!n||null==n[0]||isNaN(n[0])||null==n[1]||isNaN(n[1])}function QU(n){rU.registerAxisPointerClass("CartesianAxisPointer",_be),n.registerComponentModel(vbe),n.registerComponentView(qbe),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!d0(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function fMe(n,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function hMe(n,t,e){var o=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),i=r.get("link",!0)||[],a=[];We(e.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var c=Zz(s.model),l=n.coordSysAxesInfo[c]={};n.coordSysMap[c]=s;var d=s.model.getModel("tooltip",o);if(We(s.getAxes(),$r(_,!1,null)),s.getTooltipAxes&&o&&d.get("show")){var h="axis"===d.get("trigger"),M="cross"===d.get(["axisPointer","type"]),g=s.getTooltipAxes(d.get(["axisPointer","axis"]));(h||M)&&We(g.baseAxes,$r(_,!M||"cross",h)),M&&We(g.otherAxes,$r(_,"cross",!1))}}function _(z,y,x){var L=x.model.getModel("axisPointer",r),S=L.get("show");if(S&&("auto"!==S||z||WS(L))){null==y&&(y=L.get("triggerTooltip")),L=z?function MMe(n,t,e,o,r,i){var a=t.getModel("axisPointer"),c={};We(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(h){c[h]=Wn(a.get(h))}),c.snap="category"!==n.type&&!!i,"cross"===a.get("type")&&(c.type="line");var l=c.label||(c.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=u??!0,!i){var d=c.lineStyle=a.get("crossStyle");d&&Zn(l,d.textStyle)}}return n.model.getModel("axisPointer",new ma(c,e,o))}(x,d,r,t,z,y):L;var X=L.get("snap"),H=Zz(x.model),ie=y||X||"category"===x.type,ee=n.axesInfo[H]={key:H,axis:x,coordSys:s,axisPointerModel:L,triggerTooltip:y,involveSeries:ie,snap:X,useHandle:WS(L),seriesModels:[],linkGroup:null};l[H]=ee,n.seriesInvolved=n.seriesInvolved||ie;var ce=function gMe(n,t){for(var e=t.model,o=t.dim,r=0;r1&&o&&o.length>1){var i=eV(o)/eV(r);!isFinite(i)&&(i=1),t.pinchScale=i;var a=function Fbe(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}(o);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:n[0].target,event:t}}}}},tV="silent";function Hbe(){aU(this.event)}var Xbe=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.handler=null,e}return vo(t,n),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(fu),ev=function n(t,e){this.x=t,this.y=e},jbe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ZS=new Kn(0,0,0,0),nV=function(n){function t(e,o,r,i,a){var s=n.call(this)||this;return s._hovered=new ev(0,0),s.storage=e,s.painter=o,s.painterRoot=i,s._pointerSize=a,r=r||new Xbe,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new Ibe(s),s}return vo(t,n),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(We(jbe,function(o){e.on&&e.on(o,this[o],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var o=e.zrX,r=e.zrY,i=rV(this,o,r),a=this._hovered,s=a.target;s&&!s.__zr&&(s=(a=this.findHover(a.x,a.y)).target);var c=this._hovered=i?new ev(o,r):this.findHover(o,r),l=c.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(c,"mousemove",e),l&&l!==s&&this.dispatchToElement(c,"mouseover",e)},t.prototype.mouseout=function(e){var o=e.zrEventControl;"only_globalout"!==o&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==o&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ev(0,0)},t.prototype.dispatch=function(e,o){var r=this[e];r&&r.call(this,o)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var o=this.proxy;o.setCursor&&o.setCursor(e)},t.prototype.dispatchToElement=function(e,o,r){var i=(e=e||{}).target;if(!i||!i.silent){for(var a="on"+o,s=function Ybe(n,t,e){return{type:n,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:Hbe}}(o,e,r);i&&(i[a]&&(s.cancelBubble=!!i[a].call(i,s)),i.trigger(o,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(o,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){"function"==typeof c[a]&&c[a].call(c,s),c.trigger&&c.trigger(o,s)}))}},t.prototype.findHover=function(e,o,r){var i=this.storage.getDisplayList(),a=new ev(e,o);if(oV(i,a,e,o,r),this._pointerSize&&!a.target){for(var s=[],c=this._pointerSize,l=c/2,u=new Kn(e-l,o-l,c,c),d=i.length-1;d>=0;d--){var h=i[d];h!==r&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(ZS.copy(h.getBoundingRect()),h.transform&&ZS.applyTransform(h.transform),ZS.intersect(u)&&s.push(h))}if(s.length)for(var g=Math.PI/12,_=2*Math.PI,z=0;z=0;i--){var a=n[i],s=void 0;if(a!==r&&!a.ignore&&(s=Ube(a,e,o))&&(!t.topTarget&&(t.topTarget=a),s!==tV)){t.target=a;break}}}function rV(n,t,e){var o=n.painter;return t<0||t>o.getWidth()||e<0||e>o.getHeight()}We(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){nV.prototype[n]=function(t){var i,a,e=t.zrX,o=t.zrY,r=rV(this,e,o);if(("mouseup"!==n||!r)&&(a=(i=this.findHover(e,o)).target),"mousedown"===n)this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if("mouseup"===n)this._upEl=a;else if("click"===n){if(this._downEl!==this._upEl||!this._downPoint||qT(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,n,t)}});const Vbe=nV;var iV=32,tv=7;function sV(n,t,e,o){var r=t+1;if(r===e)return 1;if(o(n[r++],n[t])<0){for(;r=0;)r++;return r-t}function cV(n,t,e,o,r){for(o===t&&o++;o>>1])<0?s=c:a=c+1;var l=o-a;switch(l){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;l>0;)n[a+l]=n[a+l-1],l--}n[a]=i}}function KS(n,t,e,o,r,i){var a=0,s=0,c=1;if(i(n,t[e+r])>0){for(s=o-r;c0;)a=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),a+=r,c+=r}else{for(s=r+1;cs&&(c=s);var l=a;a=r-c,c=r-l}for(a++;a>>1);i(n,t[e+u])>0?a=u+1:c=u}return c}function JS(n,t,e,o,r,i){var a=0,s=0,c=1;if(i(n,t[e+r])<0){for(s=r+1;cs&&(c=s);var l=a;a=r-c,c=r-l}else{for(s=o-r;c=0;)a=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),a+=r,c+=r}for(a++;a>>1);i(n,t[e+u])<0?c=u:a=u+1}return c}function Aw(n,t,e,o){e||(e=0),o||(o=n.length);var r=o-e;if(!(r<2)){var i=0;if(r=tv||fe>=tv);if(he)break;ee<0&&(ee=0),ee+=2}if((e=ee)<1&&(e=1),1===y){for(S=0;S=0;S--)n[ce+S]=n[ee+S];if(0===y){xe=!0;break}}if(n[ie--]=l[H--],1==--L){xe=!0;break}if(0!=(Oe=L-KS(n[X],l,0,L,L-1,t))){for(L-=Oe,ce=1+(ie-=Oe),ee=1+(H-=Oe),S=0;S=tv||Oe>=tv);if(xe)break;fe<0&&(fe=0),fe+=2}if((e=fe)<1&&(e=1),1===L){for(ce=1+(ie-=y),ee=1+(X-=y),S=y-1;S>=0;S--)n[ce+S]=n[ee+S];n[ie]=l[H]}else{if(0===L)throw new Error;for(ee=ie-(L-1),S=0;S=0;S--)n[ce+S]=n[ee+S];n[ie]=l[H]}else for(ee=ie-(L-1),S=0;S1;){var z=c-2;if(z>=1&&s[z-1]<=s[z]+s[z+1]||z>=2&&s[z-2]<=s[z]+s[z-1])s[z-1]s[z+1])break;M(z)}},forceMergeRuns:function h(){for(;c>1;){var z=c-2;z>0&&s[z-1]=iV;)t|=1&n,n>>=1;return n+t}(r);do{if((i=sV(n,e,o,t))s&&(c=s),cV(n,e,e+c,e+i,t),i=c}a.pushRun(e,i),a.mergeRuns(),r-=i,e+=i}while(0!==r);a.forceMergeRuns()}}var lV=!1;function QS(){lV||(lV=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function pV(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var Kbe=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pV}return n.prototype.traverse=function(t,e){for(var o=0;o0&&(u.__clipPaths=[]),isNaN(u.z)&&(QS(),u.z=0),isNaN(u.z2)&&(QS(),u.z2=0),isNaN(u.zlevel)&&(QS(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,e,o);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,o);var M=t.getTextContent();M&&this._updateAndAddDisplayable(M,e,o)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,o=t.length;e=0&&this._roots.splice(r,1)}},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Jbe=Kbe;var uV;uV=X1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const eD=uV;function OO(){return(new Date).getTime()}var Qbe=function(n){function t(e){var o=n.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,o.stage=(e=e||{}).stage||{},o}return vo(t,n),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var o=e.getClip();o&&this.addClip(o)},t.prototype.removeClip=function(e){if(e.animation){var o=e.prev,r=e.next;o?o.next=r:this._head=r,r?r.prev=o:this._tail=o,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var o=e.getClip();o&&this.removeClip(o),e.animation=null},t.prototype.update=function(e){for(var o=OO()-this._pausedTime,r=o-this._time,i=this._head;i;){var a=i.next;i.step(o,r)&&(i.ondestroy(),this.removeClip(i)),i=a}this._time=o,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,eD(function o(){e._running&&(eD(o),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=OO(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=OO(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=OO()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var o=e.next;e.prev=e.next=e.animation=null,e=o}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,o){o=o||{},this.start();var r=new YT(e,o.loop);return this.addAnimator(r),r},t}(fu);const ege=Qbe;var tD=X1.domSupported,nD=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:Q0(n,function(r){var i=r.replace("mouse","pointer");return e.hasOwnProperty(i)?i:r})}}(),dV={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},fV=!1;function oD(n){var t=n.pointerType;return"pen"===t||"touch"===t}function rD(n){n&&(n.zrByTouch=!0)}function hV(n,t){for(var e=t,o=!1;e&&9!==e.nodeType&&!(o=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return o}var rge=function n(t,e){this.stopPropagation=Rs,this.stopImmediatePropagation=Rs,this.preventDefault=Rs,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},np={mousedown:function(n){n=nl(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=nl(this.dom,n);var t=this.__mayPointerCapture;t&&(n.zrX!==t[0]||n.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=nl(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){hV(this,(n=nl(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){fV=!0,n=nl(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){fV||(n=nl(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){rD(n=nl(this.dom,n)),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),np.mousemove.call(this,n),np.mousedown.call(this,n)},touchmove:function(n){rD(n=nl(this.dom,n)),this.handler.processGesture(n,"change"),np.mousemove.call(this,n)},touchend:function(n){rD(n=nl(this.dom,n)),this.handler.processGesture(n,"end"),np.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<300&&np.click.call(this,n)},pointerdown:function(n){np.mousedown.call(this,n)},pointermove:function(n){oD(n)||np.mousemove.call(this,n)},pointerup:function(n){np.mouseup.call(this,n)},pointerout:function(n){oD(n)||np.mouseout.call(this,n)}};We(["click","dblclick","contextmenu"],function(n){np[n]=function(t){t=nl(this.dom,t),this.trigger(n,t)}});var iD={pointermove:function(n){oD(n)||iD.mousemove.call(this,n)},pointerup:function(n){iD.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function yw(n,t,e,o){n.mounted[t]=e,n.listenerOpts[t]=o,function yMe(n,t,e,o){n.addEventListener(t,e,o)}(n.domTarget,t,e,o)}function aD(n){var t=n.mounted;for(var e in t)t.hasOwnProperty(e)&&CMe(n.domTarget,e,t[e],n.listenerOpts[e]);n.mounted={}}var MV=function n(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},sge=function(n){function t(e,o){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=o,r._localHandlerScope=new MV(e,np),tD&&(r._globalHandlerScope=new MV(document,iD)),function ige(n,t){var e=t.domHandlers;X1.pointerEventsSupported?We(nD.pointer,function(o){yw(t,o,function(r){e[o].call(n,r)})}):(X1.touchEventsSupported&&We(nD.touch,function(o){yw(t,o,function(r){e[o].call(n,r),function nge(n){n.touching=!0,null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}(t)})}),We(nD.mouse,function(o){yw(t,o,function(r){r=SS(r),t.touching||e[o].call(n,r)})}))}(r,r._localHandlerScope),r}return vo(t,n),t.prototype.dispose=function(){aD(this._localHandlerScope),tD&&aD(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,tD&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var o=this._globalHandlerScope;e?function age(n,t){function e(o){yw(t,o,function r(i){i=SS(i),hV(n,i.target)||(i=function oge(n,t){return nl(n.dom,new rge(n,t),!0)}(n,i),t.domHandlers[o].call(n,i))},{capture:!0})}X1.pointerEventsSupported?We(dV.pointer,e):X1.touchEventsSupported||We(dV.mouse,e)}(this,o):aD(o)}},t}(fu);const cge=sge;var Cw={},Zh={},uge=function(){function n(t,e,o){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,o=o||{},this.dom=e,this.id=t;var i=new Jbe,a=o.renderer||"canvas";Cw[a]||(a=jo(Cw)[0]),o.useDirtyRect=null!=o.useDirtyRect&&o.useDirtyRect;var s=new Cw[a](e,i,o,t),c=o.ssr||s.ssrOnly;this.storage=i,this.painter=s;var M,l=X1.node||X1.worker||c?null:new cge(s.getViewportRoot(),s.root),u=o.useCoarsePointer;(null==u||"auto"===u?X1.touchEventsSupported:!!u)&&(M=Pn(o.pointerSize,44)),this.handler=new Vbe(i,s,l,s.root,M),this.animation=new ege({stage:{update:c?null:function(){return r._flush(!0)}}}),c||this.animation.start()}return n.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},n.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},n.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function pge(n){if(!n)return!1;if("string"==typeof n)return c5(n,1)<.4;if(n.colorStops){for(var t=n.colorStops,e=0,o=t.length,r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},n.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},n.prototype.on=function(t,e,o){return this.handler.on(t,e,o),this},n.prototype.off=function(t,e){this.handler.off(t,e)},n.prototype.trigger=function(t,e){this.handler.trigger(t,e)},n.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=0;c--)i[c]&&!wz(i[c])?s=!0:(i[c]=null,!s&&a--);i.length=a,e[r]=i}}),delete e[mV],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,o){var r=this._componentsMap.get(e);if(r){var i=r[o||0];if(i)return i;if(null==o)for(var a=0;a=t:"max"===e?n<=t:n===t})(o[l],i,c)||(r=!1)}}),r}const Pge=vge;var op=We,ov=U0,PV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cD(n){var t=n&&n.itemStyle;if(t)for(var e=0,o=PV.length;e=0;z--){var y=n[z];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,M)),g>=0){var x=y.data.getByRawIndex(y.stackResultDimension,g);if("all"===c||"positive"===c&&x>0||"negative"===c&&x<0||"samesign"===c&&h>=0&&x>0||"samesign"===c&&h<=0&&x<0){h=Due(h,x),_=x;break}}}return o[0]=h,o[1]=_,o})})}var SV=Zr(),DV={itemStyle:pz(NH,!0),lineStyle:pz(EH,!0)},Ege={lineStyle:"stroke",itemStyle:"fill"};function kV(n,t){return n.visualStyleMapper||DV[t]||(console.warn("Unknown style type '"+t+"'."),DV.itemStyle)}function EV(n,t){return n.visualDrawType||Ege[t]||(console.warn("Unknown style type '"+t+"'."),"fill")}var Nge={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),o=n.visualStyleAccessPath||"itemStyle",r=n.getModel(o),a=kV(n,o)(r),s=r.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var c=EV(n,o),l=a[c],u=S1(l)?l:null;if(!a[c]||u||"auto"===a.fill||"auto"===a.stroke){var h=n.getColorFromPalette(n.name,null,t.getSeriesCount());a[c]||(a[c]=h,e.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||S1(a.fill)?h:a.fill,a.stroke="auto"===a.stroke||S1(a.stroke)?h:a.stroke}if(e.setVisual("style",a),e.setVisual("drawType",c),!t.isSeriesFiltered(n)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(M,g){var _=n.getDataParams(g),z=Xt({},a);z[c]=u(_),M.setItemVisual(g,"style",z)}}}},av=new ma,Ige={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.ignoreStyleOnData&&!t.isSeriesFiltered(n)){var e=n.getData(),o=n.visualStyleAccessPath||"itemStyle",r=kV(n,o),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var c=a.getRawDataItem(s);if(c&&c[o]){av.option=c[o];var l=r(av);Xt(a.ensureUniqueItemVisual(s,"style"),l),av.option.decal&&(a.setItemVisual(s,"decal",av.option.decal),av.option.decal.dirty=!0),i in l&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Bge={performRawSeries:!0,overallReset:function(n){var t=H1();n.eachSeries(function(e){var o=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+o,i=t.get(r);i||t.set(r,i={}),SV(e).scope=i}}),n.eachSeries(function(e){if(!e.isColorBySeries()&&!n.isSeriesFiltered(e)){var o=e.getRawData(),r={},i=e.getData(),a=SV(e).scope,c=EV(e,e.visualStyleAccessPath||"itemStyle");i.each(function(l){var u=i.getRawIndex(l);r[u]=l}),o.each(function(l){var u=r[l];if(i.getItemVisual(u,"colorFromPalette")){var h=i.ensureUniqueItemVisual(u,"style"),M=o.getName(l)||l+"",g=o.count();h[c]=e.getColorFromPalette(M,a,g)}})}})}},Pw=Math.PI,Yge=function(){function n(t,e,o,r){this._stageTaskMap=H1(),this.ecInstance=t,this.api=e,o=this._dataProcessorHandlers=o.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=o.concat(r)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(o){var r=o.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var o=this._pipelineMap.get(t.__pipeline.id),r=o.context,a=!e&&o.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>o.blockIndex?o.step:null,s=r&&r.modDataCount;return{step:a,modBy:null!=s?Math.ceil(s/a):null,modDataCount:s}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var o=this._pipelineMap.get(t.uid),i=t.getData().count(),a=o.progressiveEnabled&&e.incrementalPrepareRender&&i>=o.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),c="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=o.context={progressiveRender:a,modDataCount:c,large:s}},n.prototype.restorePipelines=function(t){var e=this,o=e._pipelineMap=H1();t.eachSeries(function(r){var i=r.getProgressive(),a=r.uid;o.set(a,{id:a,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:i&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(r,r.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),o=this.api;We(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{});Md(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,o),r.overallReset&&this._createOverallStageTask(r,i,e,o)},this)},n.prototype.prepareView=function(t,e,o,r){var i=t.renderTask,a=i.context;a.model=e,a.ecModel=o,a.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,o){this._performStageTasks(this._visualHandlers,t,e,o)},n.prototype._performStageTasks=function(t,e,o,r){r=r||{};var i=!1,a=this;function s(c,l){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(l.__pipeline.id))}We(t,function(c,l){if(!r.visualType||r.visualType===c.visualType){var u=a._stageTaskMap.get(c.uid),d=u.seriesTaskMap,h=u.overallTask;if(h){var M,g=h.agentStubMap;g.each(function(z){s(r,z)&&(z.dirty(),M=!0)}),M&&h.dirty(),a.updatePayload(h,o);var _=a.getPerformArgs(h,r.block);g.each(function(z){z.perform(_)}),h.perform(_)&&(i=!0)}else d&&d.each(function(z,y){s(r,z)&&z.dirty();var x=a.getPerformArgs(z,r.block);x.skip=!c.performRawSeries&&e.isSeriesFiltered(z.context.model),a.updatePayload(z,o),z.perform(x)&&(i=!0)})}}),this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(o){e=o.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},n.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,o,r){var i=this,a=e.seriesTaskMap,s=e.seriesTaskMap=H1(),c=t.seriesType,l=t.getTargetSeries;function u(d){var h=d.uid,M=s.set(h,a&&a.get(h)||Yz({plan:Vge,reset:$ge,count:Zge}));M.context={model:d,ecModel:o,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(d,M)}t.createOnAllSeries?o.eachRawSeries(u):c?o.eachRawSeriesByType(c,u):l&&l(o,r).each(u)},n.prototype._createOverallStageTask=function(t,e,o,r){var i=this,a=e.overallTask=e.overallTask||Yz({reset:Hge});a.context={ecModel:o,api:r,overallReset:t.overallReset,scheduler:i};var s=a.agentStubMap,c=a.agentStubMap=H1(),l=t.seriesType,u=t.getTargetSeries,d=!0,h=!1;function g(_){var z=_.uid,y=c.set(z,s&&s.get(z)||(h=!0,Yz({reset:Xge,onDirty:Uge})));y.context={model:_,overallProgress:d},y.agent=a,y.__block=d,i._pipe(_,y)}Md(!t.createOnAllSeries,""),l?o.eachRawSeriesByType(l,g):u?u(o,r).each(g):(d=!1,We(o.getSeries(),g)),h&&a.dirty()},n.prototype._pipe=function(t,e){var r=this._pipelineMap.get(t.uid);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},n.wrapStageHandler=function(t,e){return S1(t)&&(t={overallReset:t,seriesType:Kge(t)}),t.uid=Y5("stageHandler"),e&&(t.visualType=e),t},n}();function Hge(n){n.overallReset(n.ecModel,n.api,n.payload)}function Xge(n){return n.overallProgress&&jge}function jge(){this.agent.dirty(),this.getDownstream().dirty()}function Uge(){this.agent&&this.agent.dirty()}function Vge(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function $ge(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=Oa(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?Q0(t,function(e,o){return NV(o)}):Gge}var Gge=NV(0);function NV(n){return function(t,e){var o=e.data,r=e.resetDefines[n];if(r&&r.dataEach)for(var i=t.start;i0&&M===l.length-h.length){var g=l.slice(0,M);"data"!==g&&(e.mainType=g,e[h.toLowerCase()]=c,u=!0)}}s.hasOwnProperty(l)&&(o[l]=c,u=!0),u||(r[l]=c)})}return{cptQuery:e,dataQuery:o,otherQuery:r}},n.prototype.filter=function(t,e){var o=this.eventInfo;if(!o)return!0;var r=o.targetEl,i=o.packedEvent,a=o.model,s=o.view;if(!a||!s)return!0;var c=e.cptQuery,l=e.dataQuery;return u(c,a,"mainType")&&u(c,a,"subType")&&u(c,a,"index","componentIndex")&&u(c,a,"name")&&u(c,a,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,i));function u(d,h,M,g){return null==d[M]||h[g||M]===d[M]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),pD=["symbol","symbolSize","symbolRotate","symbolOffset"],UV=pD.concat(["symbolKeepAspect"]),tOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var o={},r={},i=!1,a=0;a=0&&Kh(c)?c:.5,n.createRadialGradient(a,s,0,a,s,c)}(n,t,e):function uOe(n,t,e){var o=null==t.x?0:t.x,r=null==t.x2?1:t.x2,i=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(o=o*e.width+e.x,r=r*e.width+e.x,i=i*e.height+e.y,a=a*e.height+e.y),o=Kh(o)?o:0,r=Kh(r)?r:1,i=Kh(i)?i:0,a=Kh(a)?a:0,n.createLinearGradient(o,i,r,a)}(n,t,e),r=t.colorStops,i=0;i0&&function hOe(n,t){return n&&"solid"!==n&&t>0?"dashed"===n?[4*t,2*t]:"dotted"===n?[t]:zo(n)?[n]:d0(n)?n:null:null}(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(e){var r=t.strokeNoScale&&n.getLineScale?n.getLineScale():1;r&&1!==r&&(e=Q0(e,function(i){return i/r}),o/=r)}return[e,o]}var MOe=new N2(!0);function Tw(n){var t=n.stroke;return!(null==t||"none"===t||!(n.lineWidth>0))}function $V(n){return"string"==typeof n&&"none"!==n}function Rw(n){var t=n.fill;return null!=t&&"none"!==t}function GV(n,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function ZV(n,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function dD(n,t,e){var o=$F(t.image,t.__image,e);if(KC(o)){var r=n.createPattern(o,t.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Ele),i.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(i)}return r}}var KV=["shadowBlur","shadowOffsetX","shadowOffsetY"],JV=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function QV(n,t,e,o,r){var i=!1;if(!o&&t===(e=e||{}))return!1;if(o||t.opacity!==e.opacity){Ns(n,r),i=!0;var a=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(a)?vh.opacity:a}(o||t.blend!==e.blend)&&(i||(Ns(n,r),i=!0),n.globalCompositeOperation=t.blend||vh.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,o,r){if(!this[va]){if(this._disposed)return;var i,a,s;if(U0(o)&&(r=o.lazyUpdate,i=o.silent,a=o.replaceMerge,s=o.transition,o=o.notMerge),this[va]=!0,!this._model||o){var c=new Pge(this._api),l=this._theme,u=this._model=new CV;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,c)}this._model.setOption(e,{replaceMerge:a},CD);var d={seriesTransition:s,optionChanged:!0};if(r)this[Is]={silent:i,updateParams:d},this[va]=!1,this.getZr().wakeUp();else{try{zO(this),G2.update.call(this,null,d)}catch(h){throw this[Is]=null,this[va]=!1,h}this._ssr||this._zr.flush(),this[Is]=null,this[va]=!1,pv.call(this,i),uv.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||X1.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return this._zr.painter.getRenderedCanvas({backgroundColor:(e=e||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return this._zr.painter.renderToString({useViewBox:(e=e||{}).useViewBox})},t.prototype.getSvgDataURL=function(){if(X1.svgSupported){var e=this._zr;return We(e.storage.getDisplayList(),function(r){r.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var r=this._model,i=[],a=this;We((e=e||{}).excludeComponents,function(c){r.eachComponent({mainType:c},function(l){var u=a._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return We(i,function(c){c.group.ignore=!1}),s}},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var o="svg"===e.type,r=this.group,i=Math.min,a=Math.max,s=1/0;if(Bw[r]){var c=s,l=s,u=-s,d=-s,h=[],M=e&&e.pixelRatio||this.getDevicePixelRatio();We(Qh,function(L,S){if(L.group===r){var X=o?L.getZr().painter.getSvgDom().innerHTML:L.renderToCanvas(Wn(e)),H=L.getDom().getBoundingClientRect();c=i(H.left,c),l=i(H.top,l),u=a(H.right,u),d=a(H.bottom,d),h.push({dom:X,left:H.left,top:H.top})}});var g=(u*=M)-(c*=M),_=(d*=M)-(l*=M),z=hd.createCanvas(),y=bV(z,{renderer:o?"svg":"canvas"});if(y.resize({width:g,height:_}),o){var x="";return We(h,function(L){x+=''+L.dom+""}),y.painter.getSvgRoot().innerHTML=x,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new Ii({shape:{x:0,y:0,width:g,height:_},style:{fill:e.connectedBackgroundColor}})),We(h,function(L){var S=new Wh({style:{x:L.left*M-c,y:L.top*M-l,image:L.dom}});y.add(S)}),y.refreshImmediately(),z.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,o){return mD(this,"convertToPixel",e,o)},t.prototype.convertFromPixel=function(e,o){return mD(this,"convertFromPixel",e,o)},t.prototype.containPixel=function(e,o){var i;if(!this._disposed)return We(hR(this._model,e),function(s,c){c.indexOf("Models")>=0&&We(s,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(o);else if("seriesModels"===c){var d=this._chartsMap[l.__viewId];d&&d.containPoint&&(i=i||d.containPoint(o,l))}},this)},this),!!i},t.prototype.getVisual=function(e,o){var i=hR(this._model,e,{defaultMainType:"series"}),s=i.seriesModel.getData(),c=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return null!=c?function oOe(n,t,e){switch(e){case"color":return n.getItemVisual(t,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,e)}}(s,c,o):function rOe(n,t){switch(t){case"color":return n.getVisual("style")[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t)}}(s,o)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;We(XOe,function(o){var r=function(i){var c,a=e.getModel(),s=i.target;if("globalout"===o?c={}:s&&cv(s,function(g){var _=Ro(g);if(_&&null!=_.dataIndex){var z=_.dataModel||a.getSeriesByIndex(_.seriesIndex);return c=z&&z.getDataParams(_.dataIndex,_.dataType)||{},!0}if(_.eventData)return c=Xt({},_.eventData),!0},!0),c){var u=c.componentType,d=c.componentIndex;("markLine"===u||"markPoint"===u||"markArea"===u)&&(u="series",d=c.seriesIndex);var h=u&&null!=d&&a.getComponent(u,d),M=h&&e["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];c.event=i,c.type=o,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:c,model:h,view:M},e.trigger(o,c)}};r.zrEventfulCallAtLast=!0,e._zr.on(o,r,e)}),We(dv,function(o,r){e._messageCenter.on(r,function(i){this.trigger(r,i)},e)}),We(["selectchanged"],function(o){e._messageCenter.on(o,function(r){this.trigger(o,r)},e)}),function aOe(n,t,e){n.on("selectchanged",function(o){var r=e.getModel();o.isFromClick?(_O("map","selectchanged",t,r,o),_O("pie","selectchanged",t,r,o)):"select"===o.fromAction?(_O("map","selected",t,r,o),_O("pie","selected",t,r,o)):"unselect"===o.fromAction&&(_O("map","unselected",t,r,o),_O("pie","unselected",t,r,o))})}(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&lH(this.getDom(),PD,"");var o=this,r=o._api,i=o._model;We(o._componentsViews,function(a){a.dispose(i,r)}),We(o._chartsViews,function(a){a.dispose(i,r)}),o._zr.dispose(),o._dom=o._model=o._chartsMap=o._componentsMap=o._chartsViews=o._componentsViews=o._scheduler=o._api=o._zr=o._throttledZrFlush=o._theme=o._coordSysMgr=o._messageCenter=null,delete Qh[o.id]}},t.prototype.resize=function(e){if(!this[va]){if(this._disposed)return;this._zr.resize(e);var o=this._model;if(this._loadingFX&&this._loadingFX.resize(),o){var r=o.resetOption("media"),i=e&&e.silent;this[Is]&&(null==i&&(i=this[Is].silent),r=!0,this[Is]=null),this[va]=!0;try{r&&zO(this),G2.update.call(this,{type:"resize",animation:Xt({duration:0},e&&e.animation)})}catch(a){throw this[va]=!1,a}this[va]=!1,pv.call(this,i),uv.call(this,i)}}},t.prototype.showLoading=function(e,o){if(!this._disposed&&(U0(e)&&(o=e,e=""),e=e||"default",this.hideLoading(),wD[e])){var r=wD[e](this._api,o),i=this._zr;this._loadingFX=r,i.add(r)}},t.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var o=Xt({},e);return o.type=dv[e.type],o},t.prototype.dispatchAction=function(e,o){if(!this._disposed&&(U0(o)||(o={silent:!!o}),Nw[e.type]&&this._model)){if(this[va])return void this._pendingActions.push(e);var r=o.silent;zD.call(this,e,r);var i=o.flush;i?this._zr.flush():!1!==i&&X1.browser.weChat&&this._throttledZrFlush(),pv.call(this,r),uv.call(this,r)}},t.prototype.updateLabelLayout=function(){rp.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(!this._disposed){var o=e.seriesIndex;this.getModel().getSeriesByIndex(o).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(d){d.clearColorPalette(),d.eachSeries(function(h){h.clearColorPalette()})}function r(d){for(var h=[],M=d.currentStates,g=0;g0?{duration:_,delay:M.get("delay"),easing:M.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if($z(y))return;if(y instanceof Co&&function mde(n){var t=dH(n);t.normalFill=n.style.fill,t.normalStroke=n.style.stroke;var e=n.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}(y),y.__dirty){var x=y.prevStates;x&&y.useStates(x)}if(g){y.stateTransition=z;var L=y.getTextContent(),S=y.getTextGuideLine();L&&(L.stateTransition=z),S&&(S.stateTransition=z)}y.__dirty&&r(y)}})}zO=function(d){var h=d._scheduler;h.restorePipelines(d._model),h.prepareStageTasks(),OD(d,!0),OD(d,!1),h.plan()},OD=function(d,h){for(var M=d._model,g=d._scheduler,_=h?d._componentsViews:d._chartsViews,z=h?d._componentsMap:d._chartsMap,y=d._zr,x=d._api,L=0;L<_.length;L++)_[L].__alive=!1;function S(H){var ie=H.__requireNewView;H.__requireNewView=!1;var ee="_ec_"+H.id+"_"+H.type,ce=!ie&&z[ee];if(!ce){var fe=uu(H.type);(ce=new(h?yd.getClass(fe.main,fe.sub):Ad.getClass(fe.sub))).init(M,x),z[ee]=ce,_.push(ce),y.add(ce.group)}H.__viewId=ce.__id=ee,ce.__alive=!0,ce.__model=H,ce.group.__ecComponentInfo={mainType:H.mainType,index:H.componentIndex},!h&&g.prepareView(ce,H,M,x)}for(h?M.eachComponent(function(H,ie){"series"!==H&&S(ie)}):M.eachSeries(S),L=0;L<_.length;){var X=_[L];X.__alive?L++:(!h&&X.renderTask.dispose(),y.remove(X.group),X.dispose(M,x),_.splice(L,1),z[X.__id]===X&&delete z[X.__id],X.__id=X.group.__ecComponentInfo=null)}},Dw=function(d,h,M,g,_){var z=d._model;if(z.setUpdatePayload(M),g){var y={};y[g+"Id"]=M[g+"Id"],y[g+"Index"]=M[g+"Index"],y[g+"Name"]=M[g+"Name"];var x={mainType:g,query:y};_&&(x.subType=_);var S,L=M.excludeSeriesId;null!=L&&(S=H1(),We(Oa(L),function(H){var ie=Zl(H,null);null!=ie&&S.set(ie,!0)})),z&&z.eachComponent(x,function(H){if(!S||null==S.get(H.id))if(WH(M))if(H instanceof dO)M.type===Rh&&!M.notBlur&&!H.get(["emphasis","disabled"])&&function pde(n,t,e){var o=n.seriesIndex,r=n.getData(t.dataType);if(r){var i=Th(r,t);i=(d0(i)?i[0]:i)||0;var a=r.getItemGraphicEl(i);if(!a)for(var s=r.count(),c=0;!a&&ch.get("hoverLayerThreshold")&&!X1.node&&!X1.worker&&h.eachSeries(function(z){if(!z.preventUsingHoverLayer){var y=d._chartsMap[z.__viewId];y.__alive&&y.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}(d,h),rp.trigger("series:afterupdate",h,M,_)},il=function(d){d[bD]=!0,d.getZr().wakeUp()},x$=function(d){d[bD]&&(d.getZr().storage.traverse(function(h){$z(h)||r(h)}),d[bD]=!1)},w$=function(d){return new(function(h){function M(){return null!==h&&h.apply(this,arguments)||this}return R1(M,h),M.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},M.prototype.getComponentByElement=function(g){for(;g;){var _=g.__ecComponentInfo;if(null!=_)return d._model.getComponent(_.mainType,_.index);g=g.parent}},M.prototype.enterEmphasis=function(g,_){q5(g,_),il(d)},M.prototype.leaveEmphasis=function(g,_){W5(g,_),il(d)},M.prototype.enterBlur=function(g){(function lde(n){_d(n,OR)})(g),il(d)},M.prototype.leaveBlur=function(g){vH(g),il(d)},M.prototype.enterSelect=function(g){AH(g),il(d)},M.prototype.leaveSelect=function(g){yH(g),il(d)},M.prototype.getModel=function(){return d.getModel()},M.prototype.getViewOfComponentModel=function(g){return d.getViewOfComponentModel(g)},M.prototype.getViewOfSeriesModel=function(g){return d.getViewOfSeriesModel(g)},M}(wV))(d)},P$=function(d){function h(M,g){for(var _=0;_=0)){S$.push(e);var i=FV.wrapStageHandler(e,r);i.__prio=t,i.__raw=e,n.push(i)}}function D$(n,t){wD[n]=t}eM(2e3,Nge),eM(4500,Ige),eM(4500,Bge),eM(2e3,tOe),eM(4500,nOe),eM(7e3,function wOe(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var o=e.getData();o.hasItemVisual()&&o.each(function(a){var s=o.getItemVisual(a,"decal");s&&(o.ensureUniqueItemVisual(a,"style").decal=hD(s,t))});var r=o.getVisual("decal");r&&(o.getVisual("style").decal=hD(r,t))}})}),T$(RV),R$(900,function Dge(n){var t=H1();n.eachSeries(function(e){var o=e.get("stack");if(o){var r=t.get(o)||t.set(o,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(kge)}),D$("default",function Fge(n,t){Zn(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new os,o=new Ii({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(o);var a,r=new ga({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Ii({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(i),t.showSpinner&&((a=new fS({shape:{startAngle:-Pw/2,endAngle:-Pw/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Pw/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*Pw/2}).delay(300).start("circularInOut"),e.add(a)),e.resize=function(){var s=r.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,l=(n.getWidth()-2*c-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:c),u=n.getHeight()/2;t.showSpinner&&a.setShape({cx:l,cy:u}),i.setShape({x:l-c,y:u-c,width:2*c,height:2*c}),o.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}),vO({type:Rh,event:Rh,update:Rh},Rs),vO({type:w5,event:w5,update:w5},Rs),vO({type:xz,event:xz,update:xz},Rs),vO({type:P5,event:P5,update:P5},Rs),vO({type:qz,event:qz,update:qz},Rs),L$("light",Jge),L$("dark",Qge);var k$=[],eme={registerPreprocessor:T$,registerProcessor:R$,registerPostInit:function $Oe(n){xD("afterinit",n)},registerPostUpdate:function GOe(n){xD("afterupdate",n)},registerUpdateLifecycle:xD,registerAction:vO,registerCoordinateSystem:function ZOe(n,t){XR.register(n,t)},registerLayout:function KOe(n,t){qD(Iw,n,t,1e3,"layout")},registerVisual:eM,registerTransform:function cfe(n){var t=(n=Wn(n)).type;t||ns("");var o=t.split(":");2!==o.length&&ns("");var r=!1;"echarts"===o[0]&&(t=o[1],r=!0),n.__isBuiltIn=r,YX.set(t,n)},registerLoading:D$,registerMap:function JOe(n,t,e){var o=function qOe(n){return d$[n]}("registerMap");o&&o(n,t,e)},registerImpl:function xOe(n,t){d$[n]=t},PRIORITY:FOe,ComponentModel:Vo,ComponentView:yd,SeriesModel:dO,ChartView:Ad,registerComponentModel:function(n){Vo.registerClass(n)},registerComponentView:function(n){yd.registerClass(n)},registerSeriesModel:function(n){dO.registerClass(n)},registerChartView:function(n){Ad.registerClass(n)},registerSubTypeDefaulter:function(n,t){Vo.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){!function dge(n,t){Cw[n]=t}(n,t)}};function Z2(n){d0(n)?We(n,function(t){Z2(t)}):_o(k$,n)>=0||(k$.push(n),S1(n)&&(n={install:n}),n.install(eme))}var tme=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return R1(t,n),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Vo);const nme=tme;function E$(n){var t=n.get("confine");return null!=t?!!t:"richText"===n.get("renderMode")}function N$(n){if(X1.domSupported)for(var t=document.documentElement.style,e=0,o=n.length;e-1?(s+="top:50%",c+="translateY(-50%) rotate("+(l="left"===i?-225:-45)+"deg)"):(s+="left:50%",c+="translateX(-50%) rotate("+(l="top"===i?225:45)+"deg)");var u=l*Math.PI/180,d=a+r,h=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),g=t+" solid "+r+"px;";return'
'}(o,r,i)),R0(t))a.innerHTML=t+s;else if(t){a.innerHTML="",d0(t)||(t=[t]);for(var c=0;c=0?this._tryShow(i,a):"leave"===r&&this._hide(a))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,o=this._ecModel,r=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(e,o,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,o,r,i){if(i.from!==this.uid&&!X1.node&&r.getDom()){var a=j$(i,r);this._ticket="";var s=i.dataByCoordSys,c=function zme(n,t,e){var o=MR(n).queryOptionMap,r=o.keys()[0];if(r&&"series"!==r){var c,a=Pz(t,r,o.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(e.getViewOfComponentModel(a).group.traverse(function(l){var u=Ro(l).tooltipConfig;if(u&&u.name===n.name)return c=l,!0}),c))return{componentMainType:r,componentIndex:a.componentIndex,el:c}}}(i,o,r);if(c){var l=c.el.getBoundingRect().clone();l.applyTransform(c.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:c.el,position:i.position,positionDefault:"bottom"},a)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=bme;u.x=i.x,u.y=i.y,u.update(),Ro(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},a)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},a);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,o,r,i))return;var d=GU(i,o),h=d.point[0],M=d.point[1];null!=h&&null!=M&&this._tryShow({offsetX:h,offsetY:M,target:d.el,position:i.position,positionDefault:"bottom"},a)}else null!=i.x&&null!=i.y&&(r.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:r.getZr().findHover(i.x,i.y).target},a))}},t.prototype.manuallyHideTip=function(e,o,r,i){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(j$(i,r))},t.prototype._manuallyAxisShowTip=function(e,o,r,i){var a=i.seriesIndex,s=i.dataIndex,c=o.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=s&&null!=c){var l=o.getSeriesByIndex(a);if(l&&"axis"===fv([l.getData().getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:i.position}),!0}},t.prototype._tryShow=function(e,o){var r=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,e);else if(r){var s,c;this._lastDataByCoordSys=null,cv(r,function(l){return null!=Ro(l).dataIndex?(s=l,!0):null!=Ro(l).tooltipConfig?(c=l,!0):void 0},!0),s?this._showSeriesItemTooltip(e,s,o):c?this._showComponentItemTooltip(e,c,o):this._hide(o)}else this._lastDataByCoordSys=null,this._hide(o)}},t.prototype._showOrMove=function(e,o){var r=e.get("showDelay");o=Io(o,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(o,r):o()},t.prototype._showAxisTooltip=function(e,o){var r=this._ecModel,i=this._tooltipModel,a=[o.offsetX,o.offsetY],s=fv([o.tooltipOption],i),c=this._renderMode,l=[],u=Hz("section",{blocks:[],noHeader:!0}),d=[],h=new sS;We(e,function(x){We(x.dataByAxis,function(L){var S=r.getComponent(L.axisDim+"Axis",L.axisIndex),X=L.value;if(S&&null!=X){var H=FU(X,S.axis,r,L.seriesDataIndices,L.valueLabelOpt),ie=Hz("section",{header:H,noHeader:!pu(H),sortBlocks:!0,blocks:[]});u.blocks.push(ie),We(L.seriesDataIndices,function(ee){var ce=r.getSeriesByIndex(ee.seriesIndex),fe=ee.dataIndexInside,he=ce.getDataParams(fe);if(!(he.dataIndex<0)){he.axisDim=L.axisDim,he.axisIndex=L.axisIndex,he.axisType=L.axisType,he.axisId=L.axisId,he.axisValue=jS(S.axis,{value:X}),he.axisValueLabel=H,he.marker=h.makeTooltipMarker("item",Ih(he.color),c);var Oe=BX(ce.formatTooltip(fe,!0,null)),xe=Oe.frag;if(xe){var Ue=fv([ce],i).get("valueFormatter");ie.blocks.push(Ue?Xt({valueFormatter:Ue},xe):xe)}Oe.text&&d.push(Oe.text),l.push(he)}})}})}),u.blocks.reverse(),d.reverse();var M=o.position,g=s.get("order"),_=$X(u,h,c,g,r.get("useUTC"),s.get("textStyle"));_&&d.unshift(_);var y=d.join("richText"===c?"\n\n":"
");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,M,a[0],a[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",a[0],a[1],M,null,h)})},t.prototype._showSeriesItemTooltip=function(e,o,r){var i=this._ecModel,a=Ro(o),s=a.seriesIndex,c=i.getSeriesByIndex(s),l=a.dataModel||c,u=a.dataIndex,d=a.dataType,h=l.getData(d),M=this._renderMode,g=e.positionDefault,_=fv([h.getItemModel(u),l,c&&(c.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),z=_.get("trigger");if(null==z||"item"===z){var y=l.getDataParams(u,d),x=new sS;y.marker=x.makeTooltipMarker("item",Ih(y.color),M);var L=BX(l.formatTooltip(u,!1,d)),S=_.get("order"),X=_.get("valueFormatter"),H=L.frag,ie=H?$X(X?Xt({valueFormatter:X},H):H,x,M,S,i.get("useUTC"),_.get("textStyle")):L.text,ee="item_"+l.name+"_"+u;this._showOrMove(_,function(){this._showTooltipContent(_,ie,y,ee,e.offsetX,e.offsetY,e.position,e.target,x)}),r({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,o,r){var i=Ro(o),s=i.tooltipConfig.option||{};R0(s)&&(s={content:s,formatter:s});var l=[s],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:s.content});var d=e.positionDefault,h=fv(l,this._tooltipModel,d?{position:d}:null),M=h.get("content"),g=Math.random()+"",_=new sS;this._showOrMove(h,function(){var z=Wn(h.get("formatterParams")||{});this._showTooltipContent(h,M,z,g,e.offsetX,e.offsetY,e.position,o,_)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,o,r,i,a,s,c,l,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var d=this._tooltipContent;d.setEnterable(e.get("enterable"));var h=e.get("formatter");c=c||e.get("position");var M=o,_=this._getNearestPoint([a,s],r,e.get("trigger"),e.get("borderColor")).color;if(h)if(R0(h)){var z=e.ecModel.get("useUTC"),y=d0(r)?r[0]:r;M=h,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(M=U5(y.axisValue,M,z)),M=kX(M,r,!0)}else if(S1(h)){var L=Io(function(S,X){S===this._ticket&&(d.setContent(X,u,e,_,c),this._updatePosition(e,c,a,s,d,r,l))},this);this._ticket=i,M=h(r,i,L)}else M=h;d.setContent(M,u,e,_,c),d.show(e,_),this._updatePosition(e,c,a,s,d,r,l)}},t.prototype._getNearestPoint=function(e,o,r,i){return"axis"===r||d0(o)?{color:i||("html"===this._renderMode?"#fff":"none")}:d0(o)?void 0:{color:i||o.color||o.borderColor}},t.prototype._updatePosition=function(e,o,r,i,a,s,c){var l=this._api.getWidth(),u=this._api.getHeight();o=o||e.get("position");var d=a.getSize(),h=e.get("align"),M=e.get("verticalAlign"),g=c&&c.getBoundingRect().clone();if(c&&g.applyTransform(c.transform),S1(o)&&(o=o([r,i],s,a.el,g,{viewSize:[l,u],contentSize:d.slice()})),d0(o))r=Uo(o[0],l),i=Uo(o[1],u);else if(U0(o)){var _=o;_.width=d[0],_.height=d[1];var z=Fh(_,{width:l,height:u});r=z.x,i=z.y,h=null,M=null}else if(R0(o)&&c){var y=function _me(n,t,e,o){var r=e[0],i=e[1],a=Math.ceil(Math.SQRT2*o)+8,s=0,c=0,l=t.width,u=t.height;switch(n){case"inside":s=t.x+l/2-r/2,c=t.y+u/2-i/2;break;case"top":s=t.x+l/2-r/2,c=t.y-i-a;break;case"bottom":s=t.x+l/2-r/2,c=t.y+u+a;break;case"left":s=t.x-r-a,c=t.y+u/2-i/2;break;case"right":s=t.x+l+a,c=t.y+u/2-i/2}return[s,c]}(o,g,d,e.get("borderWidth"));r=y[0],i=y[1]}else y=function Ome(n,t,e,o,r,i,a){var s=e.getSize(),c=s[0],l=s[1];return null!=i&&(n+c+i+2>o?n-=c+i:n+=i),null!=a&&(t+l+a>r?t-=l+a:t+=a),[n,t]}(r,i,a,l,u,h?null:20,M?null:20),r=y[0],i=y[1];h&&(r-=U$(h)?d[0]/2:"right"===h?d[0]:0),M&&(i-=U$(M)?d[1]/2:"bottom"===M?d[1]:0),E$(e)&&(y=function mme(n,t,e,o,r){var i=e.getSize(),a=i[0],s=i[1];return n=Math.min(n+a,o)-a,t=Math.min(t+s,r)-s,[n=Math.max(n,0),t=Math.max(t,0)]}(r,i,a,l,u),r=y[0],i=y[1]),a.moveTo(r,i)},t.prototype._updateContentNotChangedOnAxis=function(e,o){var r=this._lastDataByCoordSys,i=this._cbParamsList,a=!!r&&r.length===e.length;return a&&We(r,function(s,c){var l=s.dataByAxis||[],d=(e[c]||{}).dataByAxis||[];(a=a&&l.length===d.length)&&We(l,function(h,M){var g=d[M]||{},_=h.seriesDataIndices||[],z=g.seriesDataIndices||[];(a=a&&h.value===g.value&&h.axisType===g.axisType&&h.axisId===g.axisId&&_.length===z.length)&&We(_,function(y,x){var L=z[x];a=a&&y.seriesIndex===L.seriesIndex&&y.dataIndex===L.dataIndex}),i&&We(h.seriesDataIndices,function(y){var x=y.seriesIndex,L=o[x],S=i[x];L&&S&&S.data!==L.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=o,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,o){X1.node||!o.getDom()||(DS(this,"_updatePosition"),this._tooltipContent.dispose(),$S("itemTooltip",o))},t.type="tooltip",t}(yd);function fv(n,t,e){var r,o=t.ecModel;e?(r=new ma(e,o,o),r=new ma(t.option,r,o)):r=t;for(var i=n.length-1;i>=0;i--){var a=n[i];a&&(a instanceof ma&&(a=a.get("tooltip",!0)),R0(a)&&(a={formatter:a}),a&&(r=new ma(a,r,o)))}return r}function j$(n,t){return n.dispatchAction||Io(t.dispatchAction,t)}function U$(n){return"center"===n||"middle"===n}const vme=gme;function hv(n){Z2(QU),n.registerComponentModel(nme),n.registerComponentView(vme),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rs),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rs)}var Ame=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return R1(t,n),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Vo);const yme=Ame;var Cme=function(){function n(){}return n.prototype.getNeedCrossZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n}(),LD=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return R1(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Kl).models[0]},t.type="cartesian2dAxis",t}(Vo);lu(LD,Cme);var V$={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},wme=Xn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},V$),TD=Xn({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},V$);const qme={category:wme,value:TD,time:Xn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},TD),log:Zn({logBase:10},TD)};var Wme={value:1,category:1,time:1,log:1};function $$(n,t,e,o){We(Wme,function(r,i){var a=Xn(Xn({},qme[i],!0),o,!0),s=function(c){function l(){var u=null!==c&&c.apply(this,arguments)||this;return u.type=t+"Axis."+i,u}return R1(l,c),l.prototype.mergeDefaultAndTheme=function(u,d){var h=Fz(this),M=h?Q5(u):{};Xn(u,d.getTheme().get(i+"Axis")),Xn(u,this.getDefaultOption()),u.type=G$(u),h&&pO(u,M,h)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=NS.createByAxisModel(this))},l.prototype.getCategories=function(u){var d=this.option;if("category"===d.type)return u?d.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+i,l.defaultOption=a,l}(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",G$)}function G$(n){return n.type||(n.data?"category":"value")}var Lme=function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return Q0(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),es(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n}(),RD=["x","y"];function Z$(n){return"interval"===n.type||"time"===n.type}var Rme=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=RD,e}return R1(t,n),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,o=this.getAxis("y").scale;if(Z$(e)&&Z$(o)){var r=e.getExtent(),i=o.getExtent(),a=this.dataToPoint([r[0],i[0]]),s=this.dataToPoint([r[1],i[1]]),c=r[1]-r[0],l=i[1]-i[0];if(c&&l){var u=(s[0]-a[0])/c,d=(s[1]-a[1])/l,g=this._transform=[u,0,0,d,a[0]-r[0]*u,a[1]-i[0]*d];this._invTransform=vT([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var o=this.getAxis("x"),r=this.getAxis("y");return o.contain(o.toLocalCoord(e[0]))&&r.contain(r.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,o){var r=this.dataToPoint(e),i=this.dataToPoint(o),a=this.getArea(),s=new Kn(r[0],r[1],i[0]-r[0],i[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,o,r){r=r||[];var i=e[0],a=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=a&&isFinite(a))return Vc(r,e,this._transform);var s=this.getAxis("x"),c=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(i,o)),r[1]=c.toGlobalCoord(c.dataToCoord(a,o)),r},t.prototype.clampData=function(e,o){var r=this.getAxis("x").scale,i=this.getAxis("y").scale,a=r.getExtent(),s=i.getExtent(),c=r.parse(e[0]),l=i.parse(e[1]);return(o=o||[])[0]=Math.min(Math.max(Math.min(a[0],a[1]),c),Math.max(a[0],a[1])),o[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),o},t.prototype.pointToData=function(e,o){var r=[];if(this._invTransform)return Vc(r,e,this._invTransform);var i=this.getAxis("x"),a=this.getAxis("y");return r[0]=i.coordToData(i.toLocalCoord(e[0]),o),r[1]=a.coordToData(a.toLocalCoord(e[1]),o),r},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1]),i=Math.min(o[0],o[1]),a=Math.max(e[0],e[1])-r,s=Math.max(o[0],o[1])-i;return new Kn(r,i,a,s)},t}(Lme);const Sme=Rme;var Mv=Zr();function K$(n,t){var i,a,e=J$(n,"labels"),o=US(t);return Q$(e,o)||(S1(o)?i=nG(n,o):(a="auto"===o?function Bme(n){return Mv(n).autoInterval??(Mv(n).autoInterval=n.calculateCategoryInterval())}(n):o,i=tG(n,a)),eG(e,o,{labels:i,labelCategoryInterval:a}))}function J$(n,t){return Mv(n)[t]||(Mv(n)[t]=[])}function Q$(n,t){for(var e=0;e1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=RU(n),h=a.get("showMinLabel")||d,M=a.get("showMaxLabel")||d;h&&l!==i[0]&&_(i[0]);for(var g=l;g<=i[1];g+=c)_(g);function _(z){var y={value:z};s.push(e?z:{formattedLabel:o(y),rawLabel:r.getLabel(y),tickValue:z})}return M&&g-c!==i[1]&&_(i[1]),s}function nG(n,t,e){var o=n.scale,r=Qz(n),i=[];return We(o.getTicks(),function(a){var s=o.getLabel(a),c=a.value;t(a.value,s)&&i.push(e?c:{formattedLabel:r(a),rawLabel:s,tickValue:c})}),i}var oG=[0,1],Hme=function(){function n(t,e,o){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=o||[0,0]}return n.prototype.contain=function(t){var e=this._extent,o=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=o&&t<=r},n.prototype.containData=function(t){return this.scale.contain(t)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(t){return function Sue(n,t){var e=Math.log,o=Math.LN10,r=Math.floor(e(n[1]-n[0])/o),i=Math.round(e(Math.abs(t[1]-t[0]))/o),a=Math.min(Math.max(-r+i,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(t,e){var o=this._extent;o[0]=t,o[1]=e},n.prototype.dataToCoord=function(t,e){var o=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&rG(o=o.slice(),r.count()),pR(t,oG,o,e)},n.prototype.coordToData=function(t,e){var o=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&rG(o=o.slice(),r.count());var i=pR(t,o,oG,e);return this.scale.scale(i)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=Q0(function kme(n,t){return"category"===n.type?function Nme(n,t){var i,a,e=J$(n,"ticks"),o=US(t),r=Q$(e,o);if(r)return r;if((!t.get("show")||n.scale.isBlank())&&(i=[]),S1(o))i=nG(n,o,!0);else if("auto"===o){var s=K$(n,n.getLabelModel());a=s.labelCategoryInterval,i=Q0(s.labels,function(c){return c.tickValue})}else i=tG(n,a=o,!0);return eG(e,o,{ticks:i,tickCategoryInterval:a})}(n,t):{ticks:Q0(n.scale.getTicks(),function(e){return e.value})}}(this,e).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function Xme(n,t,e,o){var r=t.length;if(n.onBand&&!e&&r){var a,i=n.getExtent();if(1===r)t[0].coord=i[0],a=t[1]={coord:i[0]};else{var l=(t[r-1].coord-t[0].coord)/(t[r-1].tickValue-t[0].tickValue);We(t,function(M){M.coord-=l/2});var u=n.scale.getExtent();t.push(a={coord:t[r-1].coord+l*(1+u[1]-t[r-1].tickValue)})}var d=i[0]>i[1];h(t[0].coord,i[0])&&(o?t[0].coord=i[0]:t.shift()),o&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],a.coord)&&(o?a.coord=i[1]:t.pop()),o&&h(a.coord,i[1])&&t.push({coord:i[1]})}function h(M,g){return M=Gr(M),g=Gr(g),d?M>g:M0&&e<100||(e=5),Q0(this.scale.getMinorTicks(e),function(i){return Q0(i,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this)},n.prototype.getViewLabels=function(){return function Dme(n){return"category"===n.type?function Eme(n){var t=n.getLabelModel(),e=K$(n,t);return!t.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}(n):function Ime(n){var t=n.scale.getTicks(),e=Qz(n);return{labels:Q0(t,function(o,r){return{level:o.level,formattedLabel:e(o,r),rawLabel:n.scale.getLabel(o),tickValue:o.value}})}}(n)}(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),o=e[1]-e[0]+(this.onBand?1:0);0===o&&(o=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/o},n.prototype.calculateCategoryInterval=function(){return function Fme(n){var t=function Yme(n){var t=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(n),e=Qz(n),o=(t.axisRotate-t.labelRotate)/180*Math.PI,r=n.scale,i=r.getExtent(),a=r.count();if(i[1]-i[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var c=i[0],l=n.dataToCoord(c+1)-n.dataToCoord(c),u=Math.abs(l*Math.cos(o)),d=Math.abs(l*Math.sin(o)),h=0,M=0;c<=i[1];c+=s){var _,z=AT(e({value:c}),t.font,"center","top");_=1.3*z.height,h=Math.max(h,1.3*z.width,7),M=Math.max(M,_,7)}var y=h/u,x=M/d;isNaN(y)&&(y=1/0),isNaN(x)&&(x=1/0);var L=Math.max(0,Math.floor(Math.min(y,x))),S=Mv(n.model),X=n.getExtent(),H=S.lastAutoInterval,ie=S.lastTickCount;return null!=H&&null!=ie&&Math.abs(H-L)<=1&&Math.abs(ie-a)<=1&&H>L&&S.axisExtent0===X[0]&&S.axisExtent1===X[1]?L=H:(S.lastTickCount=a,S.lastAutoInterval=L,S.axisExtent0=X[0],S.axisExtent1=X[1]),L}(this)},n}();function rG(n,t){var r=(n[1]-n[0])/t/2;n[0]+=r,n[1]-=r}var jme=function(n){function t(e,o,r,i,a){var s=n.call(this,e,o,r)||this;return s.index=0,s.type=i||"value",s.position=a||"bottom",s}return R1(t,n),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),e&&o[0]>o[1]&&o.reverse(),o},t.prototype.pointToData=function(e,o){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),o)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Hme);const Ume=jme;var SD=Math.log,$me=function(){function n(t,e,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=RD,this._initCartesian(t,e,o),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var o=this._axesMap;function r(a){var s,c=jo(a),l=c.length;if(l){for(var u=[],d=l-1;d>=0;d--){var M=a[+c[d]],g=M.model,_=M.scale;IS(_)&&g.get("alignTicks")&&null==g.get("interval")?u.push(M):(TU(_,g),IS(_)&&(s=M))}u.length&&(s||TU((s=u.pop()).scale,s.model),We(u,function(z){!function Vme(n,t,e){var o=Kz.prototype,r=o.getTicks.call(e),i=o.getTicks.call(e,!0),a=r.length-1,s=o.getInterval.call(e),c=LU(n,t),l=c.extent,u=c.fixMin,d=c.fixMax;if("log"===n.type){var h=SD(n.base);l=[SD(l[0])/h,SD(l[1])/h]}n.setExtent(l[0],l[1]),n.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:d});var M=o.getExtent.call(n);u&&(l[0]=M[0]),d&&(l[1]=M[1]);var g=o.getInterval.call(n),_=l[0],z=l[1];if(u&&d)g=(z-_)/a;else if(u)for(z=l[0]+g*a;zl[0]&&isFinite(_)&&isFinite(l[0]);)g=BS(g),_=l[1]-g*a;else{n.getTicks().length-1>a&&(g=BS(g));var x=g*a;(_=Gr((z=Math.ceil(l[1]/g)*g)-x))<0&&l[0]>=0?(_=0,z=Gr(x)):z>0&&l[1]<=0&&(z=0,_=-Gr(x))}var L=(r[0].value-i[0].value)/s,S=(r[a].value-i[a].value)/s;o.setExtent.call(n,_+g*L,z+g*S),o.setInterval.call(n,g),(L||S)&&o.setNiceExtent.call(n,_+g,z-g)}(z.scale,z.model,s.scale)}))}}this._updateScale(t,this.model),r(o.x),r(o.y);var i={};We(o.x,function(a){iG(o,"y",a,i)}),We(o.y,function(a){iG(o,"x",a,i)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,o){var r=t.getBoxLayoutParams(),i=!o&&t.get("containLabel"),a=Fh(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;function c(){We(s,function(l){var u=l.isHorizontal(),d=u?[0,a.width]:[0,a.height],h=l.inverse?1:0;l.setExtent(d[h],d[1-h]),function Gme(n,t){var e=n.getExtent(),o=e[0]+e[1];n.toGlobalCoord="x"===n.dim?function(r){return r+t}:function(r){return o-r+t},n.toLocalCoord="x"===n.dim?function(r){return r-t}:function(r){return o-r+t}}(l,u?a.x:a.y)})}c(),i&&(We(s,function(l){if(!l.model.get(["axisLabel","inside"])){var u=function nbe(n){var e=n.scale;if(n.model.get(["axisLabel","show"])&&!e.isBlank()){var o,r,i=e.getExtent();r=e instanceof _U?e.count():(o=e.getTicks()).length;var c,a=n.getLabelModel(),s=Qz(n),l=1;r>40&&(l=Math.ceil(r/40));for(var u=0;u0&&o>0||e<0&&o<0)}(n)}const Zme=$me;var kD=Zr(),Qme=["axisLine","axisTickLabel","axisName"],e3e=["splitArea","splitLine","minorSplitLine"],sG=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return R1(t,n),t.prototype.render=function(e,o,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new os,this.group.add(this._axisGroup),e.get("show")){var s=e.getCoordSysModel(),c=VS(s,e),l=new BU(e,Xt({handleAutoShown:function(d){for(var h=s.coordinateSystem.getCartesians(),M=0;MFw?performance.now():Date.now(),pG=n=>{Yw[n]=void 0,AO[n]&&(AO[n]=void 0),Fw&&(ED||performance.clearMeasures(n),performance.clearMarks(n))},uG=n=>{if(Fw){if(ED&&i3e){const t=new PerformanceObserver(e=>{AO[n]=e.getEntries().find(o=>o.name===n),t.disconnect()});t.observe({entryTypes:["measure"]})}performance.mark(n)}Yw[n]=ND()},dG=(n,t)=>{try{const e=Yw[n];return Fw?(t||performance.mark(`${n}-end`),performance.measure(n,n,t||`${n}-end`),ED?AO[n]?AO[n]:e?{duration:ND()-e,startTime:e,entryType:"measure",name:n}:{}:performance.getEntriesByName(n).pop()||{}):e?{duration:ND()-e,startTime:e,entryType:"measure",name:n}:{}}catch{return{}}finally{pG(n),pG(t||`${n}-end`)}},a3e=function(n,t,e,o){return{circle:n,progress:t,"progress-dark":e,pulse:o}};function s3e(n,t){if(1&n&&Me(0,"span",1),2&n){const e=le();D("ngClass",function II(n,t,e,o,r,i,a){return HI(gt(),lr(),n,t,e,o,r,i,a)}(4,a3e,"circle"===e.appearance,"progress"===e.animation,"progress-dark"===e.animation,"pulse"===e.animation))("ngStyle",e.theme),Fc("aria-label",e.ariaLabel)("aria-valuetext",e.loadingText)}}const fG=new Qt("ngx-skeleton-loader.config");let fr=(()=>{class n{constructor(e){const{appearance:o="line",animation:r="progress",theme:i=null,loadingText:a="Loading...",count:s=1,ariaLabel:c="loading"}=e||{};this.appearance=o,this.animation=r,this.theme=i,this.loadingText=a,this.count=s,this.items=[],this.ariaLabel=c}ngOnInit(){uG("NgxSkeletonLoader:Rendered"),uG("NgxSkeletonLoader:Loaded"),this.validateInputValues()}validateInputValues(){/^\d+$/.test(`${this.count}`)||(this.count=1),this.items.length=this.count;-1===["progress","progress-dark","pulse","false"].indexOf(String(this.animation))&&(this.animation="progress"),-1===["circle","line",""].indexOf(String(this.appearance))&&(this.appearance="")}ngOnChanges(e){["count","animation","appearance"].find(o=>e[o]&&(e[o].isFirstChange()||e[o].previousValue===e[o].currentValue))||this.validateInputValues()}ngAfterViewInit(){dG("NgxSkeletonLoader:Rendered")}ngOnDestroy(){dG("NgxSkeletonLoader:Loaded")}}return n.\u0275fac=function(e){return new(e||n)(Te(fG,8))},n.\u0275cmp=kt({type:n,selectors:[["ngx-skeleton-loader"]],inputs:{count:"count",loadingText:"loadingText",appearance:"appearance",animation:"animation",ariaLabel:"ariaLabel",theme:"theme"},features:[Fo],decls:1,vars:1,consts:[["class","skeleton-loader","aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",1,"skeleton-loader",3,"ngClass","ngStyle"]],template:function(e,o){1&e&&Q(0,s3e,1,9,"span",0),2&e&&D("ngForOf",o.items)},dependencies:[er,ko,ao],styles:['.skeleton-loader[_ngcontent-%COMP%]{box-sizing:border-box;overflow:hidden;position:relative;background:#eff1f6 no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.skeleton-loader[_ngcontent-%COMP%]:after, .skeleton-loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.circle[_ngcontent-%COMP%]{width:40px;height:40px;margin:5px;border-radius:50%}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{transform:translate(0)}.skeleton-loader.progress[_ngcontent-%COMP%]:after, .skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:after, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{-webkit-animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.skeleton-loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.skeleton-loader.pulse[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;-webkit-animation-delay:.5s;animation-delay:.5s}@media (prefers-reduced-motion: reduce){.skeleton-loader.pulse[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.progress[_ngcontent-%COMP%]{-webkit-animation:none;animation:none}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{background-image:none}}@-webkit-keyframes _ngcontent-%COMP%_progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@keyframes _ngcontent-%COMP%_progress{0%{transform:translate(-200px)}to{transform:translate(calc(200px + 100vw))}}@-webkit-keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0}),n})(),_u=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:fG,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({imports:[[Gn]]}),n})();function hG(n,t,e){var o=hd.createCanvas(),r=t.getWidth(),i=t.getHeight(),a=o.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=i+"px",o.setAttribute("data-zr-dom-id",n)),o.width=r*e,o.height=i*e,o}var c3e=function(n){function t(e,o,r){var a,i=n.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,r=r||b5,"string"==typeof e?a=hG(e,o,r):U0(e)&&(e=(a=e).id),i.id=e,i.dom=a;var s=a.style;return s&&(FF(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=o,i.dpr=r,i}return vo(t,n),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=hG("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,o,r,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var z,a=[],s=this.maxRepaintRectCount,c=!1,l=new Kn(0,0,0,0);function u(x){if(x.isFinite()&&!x.isZero())if(0===a.length)(L=new Kn(0,0,0,0)).copy(x),a.push(L);else{for(var S=!1,X=1/0,H=0,ie=0;ie=s)}}for(var d=this.__startIndex;d15)break}Ue.prevElClipPaths&&y.restore()};if(x)if(0===x.length)ee=z.__endIndex;else for(var fe=M.dpr,he=0;he0&&t>r[0]){for(c=0;ct);c++);s=o[r[c]]}if(r.splice(c+1,0,t),o[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?a.insertBefore(e.dom,l.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}},n.prototype.eachLayer=function(t,e){for(var o=this._zlevelList,r=0;r0?.01:0),this._needsManuallyCompositing),u.__builtin__||dT("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==c&&(u.__dirty=!0),u.__startIndex=c,u.__drawIndex=u.incremental?-1:c,e(c),i=u),r.__dirty&gc&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=c))}e(c),this.eachBuiltinLayer(function(d,h){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,We(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var o=this._layerConfig;o[t]?Xn(o[t],e,!0):o[t]=e;for(var r=0;rMath.abs(o-t.clientWidth)>2&&(o=t.clientWidth,!0)),$(r=>t.clientWidth))}static getHeightSensor(t,e=2e3){let o=t.clientHeight;return BD(e).pipe(zt(r=>Math.abs(o-t.clientHeight)>2&&(o=t.clientHeight,!0)),$(r=>t.clientWidth))}}let gv=(()=>{class n{constructor(e){this._el=e,this.extentions=[],this.isResizable=!0,this.defaultWidth=400,this.defaultHeight=400,this.periodicityInMiliSeconds=2e3,this.theme="",this.chartInit=new G1}ngOnInit(){Z2([...this.extentions,h3e]),this._echartsInstance=function VOe(n,t,e){var o=!(e&&e.ssr);if(o){var r=function W$(n){return Qh[function Zue(n,t){return n.getAttribute?n.getAttribute(t):n[t]}(n,PD)]}(n);if(r)return r}var i=new Ew(n,t,e);return i.id="ec_"+jOe++,Qh[i.id]=i,o&&lH(n,PD,i.id),P$(i),rp.trigger("afterinit",i),i}(this._el.nativeElement,this.theme,{width:this._el.nativeElement.clientWidth===this.defaultWidth?400:void 0,height:0===this._el.nativeElement.clientHeight?this.defaultHeight:void 0}),this.chartInit.emit(this._echartsInstance),this._setParams(),this.isResizable&&this._addResizbleFunctionality()}ngOnChanges(e){e.options&&!e.options.firstChange&&this._setParams(),e.isResizable&&!e.isResizable.firstChange&&(this.isResizable?this._addResizbleFunctionality():null!=this._subscription&&this._subscription.unsubscribe())}_addResizbleFunctionality(){null!=this._subscription&&this._subscription.unsubscribe(),this._subscription=M3e.getWidthSensor(this._el.nativeElement).subscribe(()=>{null!=this._echartsInstance&&this._echartsInstance.resize()})}_setParams(){null!=this._echartsInstance&&null!=this.options&&this._echartsInstance.setOption(this.options,!0)}ngOnDestroy(){null!=this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(Te(fn))},n.\u0275dir=b0({type:n,selectors:[["","echarts",""]],inputs:{options:"options",extentions:"extentions",isResizable:"isResizable",defaultWidth:"defaultWidth",defaultHeight:"defaultHeight",periodicityInMiliSeconds:"periodicityInMiliSeconds",theme:"theme"},outputs:{chartInit:"chartInit"},features:[Fo]}),n})(),b3e=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({}),n})();var yO;function g3e(n,t){1&n&&(Ye(0),p(1," "),He())}const O3e=function(){return{display:"block",padding:"0"}},m3e=function(n){return{"margin-top":"0px","margin-bottom":"10px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":n}};function _3e(n,t){if(1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",4),p(2,"\n")),2&n){const e=le();q(1),D("ngStyle",Et(2,O3e))("theme",Ht(3,m3e,(null==e.chart?null:e.chart.height)>20?"10px":"5px"))}}const z3e=function(n,t){return{"height.px":n,padding:t}},v3e=function(n,t){return{"height.px":n,opacity:t}};let Ov=(yO=class{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.loading=!0,this._data=null,this.echartsExtentions=[fw,hv,bv]}onChartInit(t){this._chart=t}drawChart(t){this.chart?.dummy&&(t=this.fillDummyData(t)),this.chart?.sort&&(t=cu.orderBy(t,"x","asc"));const e=[{data:t?.map(o=>o.y),name:this.chart?.yAxisName,type:"line",smooth:!0,symbol:"none",lineStyle:{color:this.chart?.lineColor,width:this.chart?.lineWidth},areaStyle:this.chart?.areaStyleColor?{color:this.chart?.areaStyleColor,opacity:.3}:null}];this._chart&&this._chart?.destroy();try{this.options={textStyle:{color:"#888888",fontSize:12,fontFamily:'"Montserrat", sans-serif'},xAxis:{type:this.chart?.xType||"category",name:this.chart?.xAxisName,data:t?.map(o=>o.x),axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1}},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1},splitLine:{show:!1}},tooltip:{triggerOn:"mousemove",trigger:"axis",show:!0,appendToBody:!0,backgroundColor:"#fff",formatter:o=>this.formatTooltip(o),textStyle:{fontSize:11}},grid:{show:!1,left:0,right:0,top:0,bottom:0},series:e,animation:!0},ve(!0).pipe(Pi(600)).subscribe(()=>this.loading=!1)}catch(o){throw new Error(o)}}formatTooltip(t){let e="";for(let o=0;o${t[o]?.axisValue}\n
${t[o].seriesName}: ${this.chart?.yAxisTooltipSymbol??""}${t[o].value?.toLocaleString()}`;return e}subscribeToData(t){t?.pipe(at(this)).subscribe(e=>{this.drawChart(e)})}fillDummyData(t){const r=new Date;for(let i=0;i<14;i++){const a=new Date(r);a.setDate(a.getDate()-(i+1)),Math.floor(6*Math.random()),t.unshift({x:a?.toISOString()?.split("T")[0],y:0})}return t}get pChart(){return this._chart}},yO.\u0275fac=function(t){return new(t||yO)},yO.\u0275cmp=kt({type:yO,selectors:[["storecloud-shared-chart"]],inputs:{chart:"chart",data:"data"},decls:10,vars:18,consts:[[3,"ngStyle"],["echarts","",3,"id","options","extentions","isResizable","defaultHeight","ngStyle","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),v(2,"div",1),yt("chartinit",function(r){return e.onChartInit(r)}),A(),p(3,"\n "),Q(4,g3e,2,0,"ng-container",2),p(5,"\n"),A(),p(6,"\n\n"),Q(7,_3e,3,5,"ng-template",null,3,$t),p(9,"\n")),2&t){const o=Ot(8);let r;wn("content pr-0 ",null!=e.chart&&e.chart.showYAxisLabel&&!e.loading?"pl-2":"",""),D("ngStyle",Cr(12,z3e,e.loading?(null==e.chart?null:e.chart.loadingHeight)||(null==e.chart?null:e.chart.height):(null==e.chart?null:e.chart.height)||70,null==e.chart||null==e.chart.cssStyle?null:e.chart.cssStyle.padding)),q(2),Wo("id",null!==(r=null==e.chart?null:e.chart.id)&&void 0!==r?r:"chart_1"),D("options",e.options)("extentions",e.echartsExtentions)("isResizable",!0)("defaultHeight",(null==e.chart?null:e.chart.height)||70)("ngStyle",Cr(15,v3e,(null==e.chart?null:e.chart.height)||70,e.loading?0:1)),q(2),D("ngIf",!e.loading)("ngIfElse",o)}},dependencies:[f1,ao,fr,gv],styles:["ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-50%;left:50%;transform:translate(-50%,-50%)}.content[_ngcontent-%COMP%]{padding:0}"]}),yO);Ov=Ke([h0({checkProperties:!0})],Ov);var Xw=2*Math.PI,bG=Math.PI/180;function gG(n,t){return Fh(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function OG(n,t){var e=gG(n,t),o=n.get("center"),r=n.get("radius");d0(r)||(r=[0,r]);var u,d,i=Uo(e.width,t.getWidth()),a=Uo(e.height,t.getHeight()),s=Math.min(i,a),c=Uo(r[0],s/2),l=Uo(r[1],s/2),h=n.coordinateSystem;if(h){var M=h.dataToPoint(o);u=M[0]||0,d=M[1]||0}else d0(o)||(o=[o,o]),u=Uo(o[0],i)+e.x,d=Uo(o[1],a)+e.y;return{cx:u,cy:d,r0:c,r:l}}function A3e(n,t,e){t.eachSeriesByType(n,function(o){var r=o.getData(),i=r.mapDimension("value"),a=gG(o,e),s=OG(o,e),c=s.cx,l=s.cy,u=s.r,d=s.r0,h=-o.get("startAngle")*bG,M=o.get("minAngle")*bG,g=0;r.each(i,function(fe){!isNaN(fe)&&g++});var _=r.getSum(i),z=Math.PI/(_||g)*2,y=o.get("clockwise"),x=o.get("roseType"),L=o.get("stillShowZeroSum"),S=r.getDataExtent(i);S[0]=0;var X=Xw,H=0,ie=h,ee=y?1:-1;if(r.setLayout({viewRect:a,r:u}),r.each(i,function(fe,he){var Oe;if(isNaN(fe))r.setItemLayout(he,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:c,cy:l,r0:d,r:x?NaN:u});else{(Oe="area"!==x?0===_&&L?z:fe*z:Xw/g)0){t=t/180*Math.PI,ap.fromArray(n[0]),so.fromArray(n[1]),hr.fromArray(n[2]),g1.sub(zu,ap,so),g1.sub(vu,hr,so);var e=zu.len(),o=vu.len();if(!(e<.001||o<.001)){zu.scale(1/e),vu.scale(1/o);var r=zu.dot(vu);if(Math.cos(t)1&&g1.copy(is,hr),is.toArray(n[1])}}}}function W3e(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ap.fromArray(n[0]),so.fromArray(n[1]),hr.fromArray(n[2]),g1.sub(zu,so,ap),g1.sub(vu,hr,so);var o=zu.len(),r=vu.len();if(!(o<.001||r<.001)&&(zu.scale(1/o),vu.scale(1/r),zu.dot(t)=c)g1.copy(is,hr);else{is.scaleAndAdd(vu,s/Math.tan(Math.PI/2-u));var d=hr.x!==so.x?(is.x-so.x)/(hr.x-so.x):(is.y-so.y)/(hr.y-so.y);if(isNaN(d))return;d<0?g1.copy(is,so):d>1&&g1.copy(is,hr)}is.toArray(n[1])}}}function zG(n,t,e,o){var r="normal"===e,i=r?n:n.ensureState(e);i.ignore=t;var a=o.get("smooth");a&&!0===a&&(a=.3),i.shape=i.shape||{},a>0&&(i.shape.smooth=a);var s=o.getModel("lineStyle").getLineStyle();r?n.useStyle(s):i.style=s}function L3e(n,t){var e=t.smooth,o=t.points;if(o)if(n.moveTo(o[0][0],o[0][1]),e>0&&o.length>=3){var r=qT(o[0],o[1]),i=qT(o[1],o[2]);if(!r||!i)return n.lineTo(o[1][0],o[1][1]),void n.lineTo(o[2][0],o[2][1]);var a=Math.min(r,i)*e,s=WT([],o[1],o[0],a/r),c=WT([],o[1],o[2],a/i),l=WT([],s,c,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),n.bezierCurveTo(c[0],c[1],c[0],c[1],o[2][0],o[2][1])}else for(var u=1;u0&&i&&H(-d/a,0,a);var x,L,z=n[0],y=n[a-1];return S(),x<0&&ie(-x,.8),L<0&&ie(L,.8),S(),X(x,L,1),X(L,x,-1),S(),x<0&&ee(-x),L<0&&ee(L),l}function S(){x=z.rect[t]-o,L=r-y.rect[t]-y.rect[e]}function X(ce,fe,he){if(ce<0){var Oe=Math.min(fe,-ce);if(Oe>0){H(Oe*he,0,a);var xe=Oe+ce;xe<0&&ie(-xe*he,1)}else ie(-ce*he,1)}}function H(ce,fe,he){0!==ce&&(l=!0);for(var Oe=fe;Oe0)for(xe=0;xe0;xe--)H(-he[xe-1]*nt,xe,a)}}function ee(ce){var fe=ce<0?-1:1;ce=Math.abs(ce);for(var he=Math.ceil(ce/(a-1)),Oe=0;Oe0?H(he,0,Oe+1):H(-he,a-Oe-1,a),(ce-=he)<=0)return}}(n,"y","height",t,e,o)})(n,c,c+a)&&function d(_){for(var z={list:[],maxY:0},y={list:[],maxY:0},x=0;x<_.length;x++)if("none"===_[x].labelAlignTo){var L=_[x],S=L.label.y>e?y:z,X=Math.abs(L.label.y-e);if(X>=S.maxY){var H=L.label.x-t-L.len2*r,ie=o+L.len,ee=Math.abs(H)n.unconstrainedWidth?null:M:null)}var _=o.getBoundingRect();i.width=_.width,i.height=_.height+((o.style.margin||0)+2.1),i.y-=(i.height-d)/2}}}function FD(n){return"center"===n.position}function Vw(n,t,e){var o=n.get("borderRadius");if(null==o)return e?{cornerRadius:0}:null;d0(o)||(o=[o,o,o,o]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Q0(o,function(i){return T2(i,r)})}}var E3e=function(n){function t(e,o,r){var i=n.call(this)||this;i.z2=2;var a=new ga;return i.setTextContent(a),i.updateData(e,o,r,!0),i}return R1(t,n),t.prototype.updateData=function(e,o,r,i){var a=this,s=e.hostModel,c=e.getItemModel(o),l=c.getModel("emphasis"),u=e.getItemLayout(o),d=Xt(Vw(c.getModel("itemStyle"),u,!0),u);if(isNaN(d.startAngle))a.setShape(d);else{if(i){a.setShape(d);var h=s.getShallow("animationType");s.ecModel.ssr?(X2(a,{scaleX:0,scaleY:0},s,{dataIndex:o,isFrom:!0}),a.originX=d.cx,a.originY=d.cy):"scale"===h?(a.shape.r=u.r0,X2(a,{shape:{r:u.r}},s,o)):null!=r?(a.setShape({startAngle:r,endAngle:r}),X2(a,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,o)):(a.shape.endAngle=u.startAngle,mu(a,{shape:{endAngle:u.endAngle}},s,o))}else qj(a),mu(a,{shape:d},s,o);a.useStyle(e.getItemVisual(o,"style")),yR(a,c);var M=(u.startAngle+u.endAngle)/2,g=s.get("selectedOffset"),_=Math.cos(M)*g,z=Math.sin(M)*g,y=c.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,e,o),a.ensureState("emphasis").shape=Xt({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},Vw(l.getModel("itemStyle"),u)),Xt(a.ensureState("select"),{x:_,y:z,shape:Vw(c.getModel(["select","itemStyle"]),u)}),Xt(a.ensureState("blur"),{shape:Vw(c.getModel(["blur","itemStyle"]),u)});var x=a.getTextGuideLine(),L=a.getTextContent();x&&Xt(x.ensureState("select"),{x:_,y:z}),Xt(L.ensureState("select"),{x:_,y:z}),L5(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},t.prototype._updateLabel=function(e,o,r){var i=this,a=o.getItemModel(r),s=a.getModel("labelLine"),c=o.getItemVisual(r,"style"),l=c&&c.fill,u=c&&c.opacity;R5(i,S5(a),{labelFetcher:o.hostModel,labelDataIndex:r,inheritColor:l,defaultOpacity:u,defaultText:e.getFormattedLabel(r,"normal")||o.getName(r)});var d=i.getTextContent();i.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var h=e.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var M=this.getTextGuideLine();M||(M=new aw,this.setTextGuideLine(M)),function T3e(n,t,e){var o=n.getTextGuideLine(),r=n.getTextContent();if(r){for(var i=t.normal,a=i.get("show"),s=r.ignore,c=0;c0){for(var u=a.getItemLayout(0),d=1;isNaN(u&&u.startAngle)&&d0?"right":"left":ht>0?"left":"right"}var bi=Math.PI,qr=0,Qr=Oe.get("rotate");if(zo(Qr))qr=Qr*(bi/180);else if("center"===xe)qr=0;else if("radial"===Qr||!0===Qr)qr=ht<0?-vt+bi:-vt;else if("tangential"===Qr&&"outside"!==xe&&"outer"!==xe){var ds=Math.atan2(ht,Tt);ds<0&&(ds=2*bi+ds),Tt>0&&(ds=bi+ds),qr=ds-bi}if(i=!!qr,ce.x=Gt,ce.y=E0,ce.rotation=qr,ce.setStyle({verticalAlign:"middle"}),Sn){ce.setStyle({align:Tn});var Ki=ce.states.select;Ki&&(Ki.x+=ce.x,Ki.y+=ce.y)}else{var Wr=ce.getBoundingRect().clone();Wr.applyTransform(ce.getComputedTransform());var Zs=(ce.style.margin||0)+2.1;Wr.y-=Zs/2,Wr.height+=Zs,e.push({label:ce,labelLine:fe,position:xe,len:ke,len2:Ge,minTurnAngle:qe.get("minTurnAngle"),maxSurfaceAngle:qe.get("maxSurfaceAngle"),surfaceNormal:new g1(ht,Tt),linePoints:l1,textAlign:Tn,labelDistance:Ue,labelAlignTo:st,edgeDistance:nt,bleedMargin:Ut,rect:Wr,unconstrainedWidth:Wr.width,labelStyleWidth:ce.style.width})}ie.setTextConfig({inside:Sn})}}),!i&&n.get("avoidLabelOverlap")&&function D3e(n,t,e,o,r,i,a,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h=i.r0}},t.type="pie",t}(Ad);const I3e=N3e;var F3e=function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},n.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},n.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},n}();const Y3e=F3e;var H3e=Zr(),X3e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return R1(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new Y3e(Io(this.getData,this),Io(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return function B3e(n,t,e){t=d0(t)&&{coordDimensions:t}||Xt({encodeDefine:n.getEncode()},t);var o=n.getSource(),r=YR(o,t).dimensions,i=new bX(r,n);return i.initData(o,e),i}(this,{coordDimensions:["value"],encodeDefaulter:$r(Sde,this)})},t.prototype.getDataParams=function(e){var o=this.getData(),r=H3e(o),i=r.seats;if(!i){var a=[];o.each(o.mapDimension("value"),function(c){a.push(c)}),i=r.seats=function JY(n,t){var e=L2(n,function(M,g){return M+(isNaN(g)?0:g)},0);if(0===e)return[];for(var o=Math.pow(10,t),r=Q0(n,function(M){return(isNaN(M)?0:M)/e*o*100}),i=100*o,a=Q0(r,function(M){return Math.floor(M)}),s=L2(a,function(M,g){return M+g},0),c=Q0(r,function(M,g){return M-a[g]});sl&&(l=c[d],u=d);++a[u],c[u]=0,++s}return Q0(a,function(M){return M/o})}(a,o.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){dR(e,"labelLine",["show"]);var o=e.labelLine,r=e.emphasis.labelLine;o.show=o.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(dO);const j3e=X3e;function V3e(n){n.registerChartView(I3e),n.registerSeriesModel(j3e),function iOe(n,t){function e(o,r){var i=[];return o.eachComponent({mainType:"series",subType:n,query:r},function(a){i.push(a.seriesIndex)}),i}We([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(o){t(o[0],function(r,i,a){r=Xt({},r),a.dispatchAction(Xt(r,{type:o[1],seriesIndex:e(i,r)}))})})}("pie",n.registerAction),n.registerLayout($r(A3e,"pie")),n.registerProcessor(function y3e(n){return{seriesType:n,reset:function(t,e){var o=e.findComponents({mainType:"legend"});if(o&&o.length){var r=t.getData();r.filterSelf(function(i){for(var a=r.getName(i),s=0;s=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Vo);const YD=G3e;var CO=$r,HD=We,$w=os,K3e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return R1(t,n),t.prototype.init=function(){this.group.add(this._contentGroup=new $w),this.group.add(this._selectorGroup=new $w),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,o,r){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),s=e.get("orient");(!a||"auto"===a)&&(a="right"===e.get("left")&&"vertical"===s?"right":"left");var c=e.get("selector",!0),l=e.get("selectorPosition",!0);c&&(!l||"auto"===l)&&(l="horizontal"===s?"end":"start"),this.renderInner(a,e,o,r,c,s,l);var u=e.getBoxLayoutParams(),d={width:r.getWidth(),height:r.getHeight()},h=e.get("padding"),M=Fh(u,d,h),g=this.layoutInner(e,a,M,i,c,l),_=Fh(Zn({width:g.width,height:g.height},u),d,h);this.group.x=_.x-g.x,this.group.y=_.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function Z3e(n,t){var e=K5(t.get("padding")),o=t.getItemStyle(["color","opacity"]);return o.fill=t.get("backgroundColor"),new Ii({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1})}(g,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,o,r,i,a,s,c){var l=this.getContentGroup(),u=H1(),d=o.get("selectedMode"),h=[];r.eachRawSeries(function(M){!M.get("legendHoverLink")&&h.push(M.id)}),HD(o.getData(),function(M,g){var _=M.get("name");if(!this.newlineDisabled&&(""===_||"\n"===_)){var z=new $w;return z.newline=!0,void l.add(z)}var y=r.getSeriesByName(_)[0];if(!u.get(_))if(y){var x=y.getData(),L=x.getVisual("legendLineStyle")||{},S=x.getVisual("legendIcon"),X=x.getVisual("style");this._createItem(y,_,g,M,o,e,L,X,S,d,i).on("click",CO(yG,_,null,i,h)).on("mouseover",CO(XD,y.name,null,i,h)).on("mouseout",CO(jD,y.name,null,i,h)),u.set(_,!0)}else r.eachRawSeries(function(ie){if(!u.get(_)&&ie.legendVisualProvider){var ee=ie.legendVisualProvider;if(!ee.containName(_))return;var ce=ee.indexOfName(_),fe=ee.getItemVisual(ce,"style"),he=ee.getItemVisual(ce,"legendIcon"),Oe=Zc(fe.fill);Oe&&0===Oe[3]&&(Oe[3]=.2,fe=Xt(Xt({},fe),{fill:zh(Oe,"rgba")})),this._createItem(ie,_,g,M,o,e,{},fe,he,d,i).on("click",CO(yG,null,_,i,h)).on("mouseover",CO(XD,null,_,i,h)).on("mouseout",CO(jD,null,_,i,h)),u.set(_,!0)}},this)},this),a&&this._createSelector(a,o,i,s,c)},t.prototype._createSelector=function(e,o,r,i,a){var s=this.getSelectorGroup();HD(e,function(l){var u=l.type,d=new ga({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:"all"===u?"legendAllSelect":"legendInverseSelect"})}});s.add(d),R5(d,{normal:o.getModel("selectorLabel"),emphasis:o.getModel(["emphasis","selectorLabel"])},{defaultText:l.title}),AR(d)})},t.prototype._createItem=function(e,o,r,i,a,s,c,l,u,d,h){var M=e.visualDrawType,g=a.get("itemWidth"),_=a.get("itemHeight"),z=a.isSelected(o),y=i.get("symbolRotate"),x=i.get("symbolKeepAspect"),L=i.get("icon"),S=function J3e(n,t,e,o,r,i,a){function s(z,y){"auto"===z.lineWidth&&(z.lineWidth=y.lineWidth>0?2:0),HD(z,function(x,L){"inherit"===z[L]&&(z[L]=y[L])})}var c=t.getModel("itemStyle"),l=c.getItemStyle(),u=0===n.lastIndexOf("empty",0)?"fill":"stroke",d=c.getShallow("decal");l.decal=d&&"inherit"!==d?hD(d,a):o.decal,"inherit"===l.fill&&(l.fill=o[r]),"inherit"===l.stroke&&(l.stroke=o[u]),"inherit"===l.opacity&&(l.opacity=("fill"===r?o:e).opacity),s(l,o);var h=t.getModel("lineStyle"),M=h.getLineStyle();if(s(M,e),"auto"===l.fill&&(l.fill=o.fill),"auto"===l.stroke&&(l.stroke=o.fill),"auto"===M.stroke&&(M.stroke=o.fill),!i){var g=t.get("inactiveBorderWidth");l.lineWidth="auto"===g?o.lineWidth>0&&l[u]?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),M.stroke=h.get("inactiveColor"),M.lineWidth=h.get("inactiveWidth")}return{itemStyle:l,lineStyle:M}}(u=L||u||"roundRect",i,c,l,M,z,h),X=new $w,H=i.getModel("textStyle");if(!S1(e.getLegendIcon)||L&&"inherit"!==L){var ie="inherit"===L&&e.getData().getVisual("symbol")?"inherit"===y?e.getData().getVisual("symbolRotate"):y:0;X.add(function Q3e(n){var t=n.icon||"roundRect",e=MO(t,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return e.setStyle(n.itemStyle),e.rotation=(n.iconRotate||0)*Math.PI/180,e.setOrigin([n.itemWidth/2,n.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}({itemWidth:g,itemHeight:_,icon:u,iconRotate:ie,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:x}))}else X.add(e.getLegendIcon({itemWidth:g,itemHeight:_,icon:u,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:x}));var ee="left"===s?g+5:-5,ce=s,fe=a.get("formatter"),he=o;R0(fe)&&fe?he=fe.replace("{name}",o??""):S1(fe)&&(he=fe(o));var Oe=i.get("inactiveColor");X.add(new ga({style:F2(H,{text:he,x:ee,y:_/2,fill:z?H.getTextColor():Oe,align:ce,verticalAlign:"middle"})}));var xe=new Ii({shape:X.getBoundingRect(),invisible:!0}),Ue=i.getModel("tooltip");return Ue.get("show")&&_S({el:xe,componentModel:a,itemName:o,itemTooltipOption:Ue.option}),X.add(xe),X.eachChild(function(st){st.silent=!0}),xe.silent=!d,this.getContentGroup().add(X),AR(X),X.__legendDataIndex=r,X},t.prototype.layoutInner=function(e,o,r,i,a,s){var c=this.getContentGroup(),l=this.getSelectorGroup();Bz(e.get("orient"),c,e.get("itemGap"),r.width,r.height);var u=c.getBoundingRect(),d=[-u.x,-u.y];if(l.markRedraw(),c.markRedraw(),a){Bz("horizontal",l,e.get("selectorItemGap",!0));var h=l.getBoundingRect(),M=[-h.x,-h.y],g=e.get("selectorButtonGap",!0),_=e.getOrient().index,z=0===_?"width":"height",y=0===_?"height":"width",x=0===_?"y":"x";"end"===s?M[_]+=u[z]+g:d[_]+=h[z]+g,M[1-_]+=u[y]/2-h[y]/2,l.x=M[0],l.y=M[1],c.x=d[0],c.y=d[1];var L={x:0,y:0};return L[z]=u[z]+g+h[z],L[y]=Math.max(u[y],h[y]),L[x]=Math.min(0,h[x]+M[1-_]),L}return c.x=d[0],c.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(yd);function yG(n,t,e,o){jD(n,t,e,o),e.dispatchAction({type:"legendToggleSelect",name:n??t}),XD(n,t,e,o)}function CG(n){for(var e,t=n.getZr().storage.getDisplayList(),o=0,r=t.length;or[a],z=[-M.x,-M.y];o||(z[i]=u[l]);var y=[0,0],x=[-g.x,-g.y],L=Pn(e.get("pageButtonGap",!0),e.get("itemGap",!0));_&&("end"===e.get("pageButtonPosition",!0)?x[i]+=r[a]-g[a]:y[i]+=g[a]+L),x[1-i]+=M[s]/2-g[s]/2,u.setPosition(z),d.setPosition(y),h.setPosition(x);var X={x:0,y:0};if(X[a]=_?r[a]:M[a],X[s]=Math.max(M[s],g[s]),X[c]=Math.min(0,g[c]+x[1-i]),d.__rectSize=r[a],_){var H={x:0,y:0};H[a]=Math.max(r[a]-g[a]-L,0),H[s]=X[s],d.setClipPath(new Ii({shape:H})),d.__rectSize=H[a]}else h.eachChild(function(ee){ee.attr({invisible:!0,silent:!0})});var ie=this._getPageInfo(e);return null!=ie.pageIndex&&mu(u,{x:ie.contentPosition[0],y:ie.contentPosition[1]},_?e:null),this._updatePageInfoView(e,ie),X},t.prototype._pageGo=function(e,o,r){var i=this._getPageInfo(o)[e];null!=i&&r.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:o.id})},t.prototype._updatePageInfoView=function(e,o){var r=this._controllerGroup;We(["pagePrev","pageNext"],function(u){var h=null!=o[u+"DataIndex"],M=r.childOfName(u);M&&(M.setStyle("fill",e.get(h?"pageIconColor":"pageIconInactiveColor",!0)),M.cursor=h?"pointer":"default")});var i=r.childOfName("pageText"),a=e.get("pageFormatter"),s=o.pageIndex,c=null!=s?s+1:0,l=o.pageCount;i&&a&&i.setStyle("text",R0(a)?a.replace("{current}",null==c?"":c+"").replace("{total}",null==l?"":l+""):a({current:c,total:l}))},t.prototype._getPageInfo=function(e){var o=e.get("scrollDataIndex",!0),r=this.getContentGroup(),i=this._containerGroup.__rectSize,a=e.getOrient().index,s=UD[a],c=VD[a],l=this._findTargetItemIndex(o),u=r.children(),d=u[l],h=u.length,M=h?1:0,g={contentPosition:[r.x,r.y],pageCount:M,pageIndex:M-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return g;var _=S(d);g.contentPosition[a]=-_.s;for(var z=l+1,y=_,x=_,L=null;z<=h;++z)(!(L=S(u[z]))&&x.e>y.s+i||L&&!X(L,y.s))&&(y=x.i>y.i?x:L)&&(null==g.pageNextDataIndex&&(g.pageNextDataIndex=y.i),++g.pageCount),x=L;for(z=l-1,y=_,x=_,L=null;z>=-1;--z)(!(L=S(u[z]))||!X(x,L.s))&&y.i=ie&&H.s<=ie+i}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(a,s){var c=a.__legendDataIndex;null==i&&null!=c&&(i=s),c===e&&(o=s)}),o??i):0;var o,i},t.type="legend.scroll",t}(wG);const i_e=r_e;function s_e(n){Z2(PG),n.registerComponentModel(o_e),n.registerComponentView(i_e),function a_e(n){n.registerAction("legendScroll","legendscroll",function(t,e){var o=t.scrollDataIndex;null!=o&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(r){r.setScrollDataIndex(o)})})}(n)}function Gw(n){Z2(PG),Z2(s_e)}var Qn,c_e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return R1(t,n),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Vo),l_e=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.type=t.type,e}return R1(t,n),t.prototype.render=function(e,o,r){if(this.group.removeAll(),e.get("show")){var i=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),c=e.get("textAlign"),l=Pn(e.get("textBaseline"),e.get("textVerticalAlign")),u=new ga({style:F2(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),d=u.getBoundingRect(),h=e.get("subtext"),M=new ga({style:F2(s,{text:h,fill:s.getTextColor(),y:d.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),_=e.get("sublink"),z=e.get("triggerEvent",!0);u.silent=!g&&!z,M.silent=!_&&!z,g&&u.on("click",function(){EX(g,"_"+e.get("target"))}),_&&M.on("click",function(){EX(_,"_"+e.get("subtarget"))}),Ro(u).eventData=Ro(M).eventData=z?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(u),h&&i.add(M);var y=i.getBoundingRect(),x=e.getBoxLayoutParams();x.width=y.width,x.height=y.height;var L=Fh(x,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));c||("middle"===(c=e.get("left")||e.get("right"))&&(c="center"),"right"===c?L.x+=L.width:"center"===c&&(L.x+=L.width/2)),l||("center"===(l=e.get("top")||e.get("bottom"))&&(l="middle"),"bottom"===l?L.y+=L.height:"middle"===l&&(L.y+=L.height/2),l=l||"top"),i.x=L.x,i.y=L.y,i.markRedraw();var S={align:c,verticalAlign:l};u.setStyle(S),M.setStyle(S),y=i.getBoundingRect();var X=L.margin,H=e.getItemStyle(["color","opacity"]);H.fill=e.get("backgroundColor");var ie=new Ii({shape:{x:y.x-X[3],y:y.y-X[0],width:y.width+X[1]+X[3],height:y.height+X[0]+X[2],r:e.get("borderRadius")},style:H,subPixelOptimize:!0,silent:!0});i.add(ie)}},t.type="title",t}(yd);function WG(n){n.registerComponentModel(c_e),n.registerComponentView(l_e)}!function(n){let t;var r;let e,o;(r=t=n.State||(n.State={})).Requested="requested",r.Block_Created="block_created",r.Block_Sent="block_sent",r.Node_Validated="node_validated",r.Block_Added="block_added",r.Network_Updated="network_updated",r.Completed="completed",function(r){r.Pending="pending",r.Success="success",r.Failed="failed",r.Dropped="dropped"}(e=n.Status||(n.Status={})),function(r){r.Settlement="settlement",r.Stored="stored",r.Minted="minted",r.DevRoyalty="dev-royalty",r.BanwidthFunded="bandwidth-funded"}(o=n.Type||(n.Type={}))}(Qn||(Qn={}));var lt,Kr=(()=>(function(n){n.AllTime="All-Time",n.YTD="YTD",n.D30="30D",n.D7="7D",n.D1="1D"}(Kr||(Kr={})),Kr))();!function(n){let t;var d;let e,o,r,i,a,s,c,l,u;(d=t=n.Type||(n.Type={})).Storage="storage",d.Compute="compute",d.Bandwidth="bandwidth",d.IP="ip",d.GPU="gpu",function(d){d.US_EAST="us-east",d.US_WEST="us-west",d.US_WG_MP="us-wg-mp",d.GLOBAL="global"}(e=n.Region||(n.Region={})),function(d){d.Permanent="permanent",d.Tier1="tier-1",d.Tier2="tier-2",d.Tier3="tier-3",d.GeneralPurpose="general-purpose",d.ComputeOptimized="compute-optimized",d.MemoryOptimized="memory-optimized",d._10g="10g",d.DataTransfer="data-transfer",d._1g="1g"}(o=n.SubType||(n.SubType={})),function(d){d.Disk="Disk",d.Instance="Instance",d.Network="Network"}(r=n.OrionType||(n.OrionType={})),function(d){d.SSD="SSD",d.Standard="Standard",d.HighCPU="High CPU",d.IPAddress="IP Address",d.DataTransfer="Data Transfer",d.PrivateIPAddress="Private IP Address",d.PrivateDataTransfer="Private Data Transfer"}(i=n.OrionSubType||(n.OrionSubType={})),function(d){d.Orion="Orion"}(a=n.Cloud||(n.Cloud={})),function(d){d.RATIO="ratio",d.PERCENT="percent",d.BYTES="bytes",d.STORE="store",d.BITS="bits",d.USD="usd",d.USDC="usdc",d.BTC="btc",d.SATS="sats",d.ETH="eth",d.WEI="wei",d.GWEI="gwei",d.SETH="seth",d.OP="op",d.MATIC="matic",d.ARB="arb"}(s=n.Unit||(n.Unit={})),function(d){d.IPPerSec="ip/sec",d.IPPerHour="ip/hour",d.IPPerMonth="ip/month",d.IP="ip",d.GB="gb",d.GBPerSec="gb/sec",d.GBPerHour="gb/hour",d.GBPerMonth="gb/month",d.RamPerSec="ram/sec",d.Bytes="bytes",d.BytesPerSec="bytes/sec",d.BytesPerHour="bytes/hour",d.BytesPerMonth="bytes/month"}(c=n.Measurement||(n.Measurement={})),function(d){d.Hourly="hourly",d.Minutely="minutely",d.Secondly="secondly",d.Weekly="weekly",d.Monthly="monthly",d.Yearly="yearly"}(l=n.CostType||(n.CostType={})),function(d){d.BUY="buy",d.SELL="sell",d.MARGIN="margin",d.DevEnvdowment="dev-endowment",d.PoweredByEndowment="powered-by-endowment",d.CloudReserveEndowment="cloud-reserve-endowment",d.AssociationEndowment="association-endowment",d.VoterDAOEndowment="voter-dao-endowment"}(u=n.Option||(n.Option={})),n.AllowedCurrenciesDecimalPlacesMapping={[n.Unit.STORE]:8,[n.Unit.BITS]:0,[n.Unit.BTC]:8,[n.Unit.SATS]:0,[n.Unit.ETH]:18,[n.Unit.WEI]:0,[n.Unit.GWEI]:0,[n.Unit.SETH]:18,[n.Unit.USD]:8,[n.Unit.USDC]:8,[n.Unit.OP]:18,[n.Unit.MATIC]:18,[n.Unit.ARB]:18},n.AvailableNetworks=[{name:s.SETH,icon:"network_icon/ethereum-eth",symbol:s.SETH},{name:s.GWEI,icon:"network_icon/ethereum-eth",symbol:s.GWEI},{name:s.WEI,icon:"network_icon/ethereum-eth",symbol:s.WEI},{name:s.STORE,icon:"store-logo-only",symbol:s.STORE},{name:s.BITS,icon:"store-logo-only",symbol:s.BITS},{name:s.ETH,icon:"network_icon/ethereum",symbol:s.ETH},{name:s.USDC,icon:"network_icon/usd-coin",symbol:s.USDC},{name:s.OP,icon:"network_icon/optimism",symbol:s.OP},{name:s.MATIC,icon:"network_icon/polygon-matic",symbol:s.MATIC},{name:s.ARB,icon:"network_icon/arbitrum-eth",symbol:s.ARB},{name:"us dollar",symbol:s.USD},{name:s.BTC,icon:"network_icon/bitcoin",symbol:s.BTC},{name:s.SATS,icon:"network_icon/bitcoin",symbol:s.SATS}]}(lt||(lt={}));var rn=(()=>(function(n){n.STORE="store",n.Ethereum="ethereum"}(rn||(rn={})),rn))(),fi=(()=>(function(n){n.STORE="store",n.Ethereum="ethereum",n.Sepolia="sepolia"}(fi||(fi={})),fi))();const p_e=[{name:"Sepolia",network:fi.Sepolia,icon:"network_icon/ethereum-eth",symbol:lt.Unit.ETH,disabled:!1},{name:"STORE",network:fi.STORE,icon:"store-logo-only",symbol:lt.Unit.STORE,disabled:!1},{name:"Etherum",network:fi.Ethereum,icon:"network_icon/ethereum-eth",symbol:lt.Unit.ETH,disabled:!1},{name:"USDC",icon:"network_icon/usd-coin",network:fi.Ethereum,symbol:lt.Unit.USD,disabled:!1},{name:"Optimism",network:fi.Ethereum,icon:"network_icon/optimism",symbol:lt.Unit.ETH,disabled:!1},{name:"Matic",network:fi.Ethereum,icon:"network_icon/polygon-matic",symbol:lt.Unit.ETH,disabled:!1},{name:"Arbitrum",network:fi.Ethereum,icon:"network_icon/arbitrum-eth",symbol:lt.Unit.ETH,disabled:!1},{name:"$USD (Card)",network:fi.Ethereum,symbol:lt.Unit.USD,disabled:!1}];var PO,wO=(()=>(function(n){n[n.Explorer=0]="Explorer",n[n.Website=1]="Website",n[n.Oracle=2]="Oracle"}(wO||(wO={})),wO))(),Zw=(()=>(function(n){n.Pending="pending",n.ReadyToProcess="rd-process",n.InQueue="in-queue",n.Completed="completed",n.Removed="removed"}(Zw||(Zw={})),Zw))(),zv=(()=>(function(n){n.Pending="pending",n.Processing="processing",n.Completed="completed"}(zv||(zv={})),zv))(),oM=(()=>(function(n){n.Composition="composition",n.Recording="recording"}(oM||(oM={})),oM))(),sp=(()=>(function(n){n.MechanicalRoyalties="mechanicalRoyalties",n.PerformanceRoyalties="performanceRoyalties",n.SyncRoyalties="syncRoyalties",n.ReproductionRoyalties="reproductionRoyalties",n.Identical="identical"}(sp||(sp={})),sp))();const u_e=function(n,t){return{"width.rem":n,display:t}};function d_e(n,t){if(1&n&&Me(0,"img",1),2&n){const e=le();wn("icon icon-size-",e.size,""),Yl("src","https://explorer.storecloud.org/assets/lucide_icon/",e.icon,".svg",io),D("ngStyle",Cr(5,u_e,(e.size||10)/10,e.display))}}let Mr=((PO=class{constructor(){this.icon=null,this.size=18,this.display="block"}}).\u0275fac=function(t){return new(t||PO)},PO.\u0275cmp=kt({type:PO,selectors:[["storecloud-icon"]],inputs:{icon:"icon",size:"size",display:"display"},standalone:!0,features:[Ho],decls:2,vars:1,consts:[[3,"class","src","ngStyle",4,"ngIf"],[3,"src","ngStyle"]],template:function(t,e){1&t&&(Q(0,d_e,1,8,"img",0),p(1,"\n")),2&t&&D("ngIf",e.icon)},dependencies:[Gn,f1,ao],styles:["img[_ngcontent-%COMP%]{display:block}"]}),PO);function Oc(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function rM(n){return n instanceof Oc(n).Element||n instanceof Element}function al(n){return n instanceof Oc(n).HTMLElement||n instanceof HTMLElement}function $D(n){return!(typeof ShadowRoot>"u")&&(n instanceof Oc(n).ShadowRoot||n instanceof ShadowRoot)}Mr=Ke([h0({checkProperties:!0})],Mr);var iM=Math.max,Kw=Math.min,xO=Math.round;function GD(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function LG(){return!/^((?!chrome|android).)*safari/i.test(GD())}function qO(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var o=n.getBoundingClientRect(),r=1,i=1;t&&al(n)&&(r=n.offsetWidth>0&&xO(o.width)/n.offsetWidth||1,i=n.offsetHeight>0&&xO(o.height)/n.offsetHeight||1);var s=(rM(n)?Oc(n):window).visualViewport,c=!LG()&&e,l=(o.left+(c&&s?s.offsetLeft:0))/r,u=(o.top+(c&&s?s.offsetTop:0))/i,d=o.width/r,h=o.height/i;return{width:d,height:h,top:u,right:l+d,bottom:u+h,left:l,x:l,y:u}}function ZD(n){var t=Oc(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Au(n){return n?(n.nodeName||"").toLowerCase():null}function J2(n){return((rM(n)?n.ownerDocument:n.document)||window.document).documentElement}function KD(n){return qO(J2(n)).left+ZD(n).scrollLeft}function xd(n){return Oc(n).getComputedStyle(n)}function JD(n){var t=xd(n);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function b_e(n,t,e){void 0===e&&(e=!1);var o=al(t),r=al(t)&&function M_e(n){var t=n.getBoundingClientRect(),e=xO(t.width)/n.offsetWidth||1,o=xO(t.height)/n.offsetHeight||1;return 1!==e||1!==o}(t),i=J2(t),a=qO(n,r,e),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!e)&&(("body"!==Au(t)||JD(i))&&(s=function h_e(n){return n!==Oc(n)&&al(n)?function f_e(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):ZD(n)}(t)),al(t)?((c=qO(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=KD(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function QD(n){var t=qO(n),e=n.offsetWidth,o=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:o}}function Jw(n){return"html"===Au(n)?n:n.assignedSlot||n.parentNode||($D(n)?n.host:null)||J2(n)}function TG(n){return["html","body","#document"].indexOf(Au(n))>=0?n.ownerDocument.body:al(n)&&JD(n)?n:TG(Jw(n))}function vv(n,t){var e;void 0===t&&(t=[]);var o=TG(n),r=o===(null==(e=n.ownerDocument)?void 0:e.body),i=Oc(o),a=r?[i].concat(i.visualViewport||[],JD(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(vv(Jw(a)))}function g_e(n){return["table","td","th"].indexOf(Au(n))>=0}function RG(n){return al(n)&&"fixed"!==xd(n).position?n.offsetParent:null}function Av(n){for(var t=Oc(n),e=RG(n);e&&g_e(e)&&"static"===xd(e).position;)e=RG(e);return e&&("html"===Au(e)||"body"===Au(e)&&"static"===xd(e).position)?t:e||function O_e(n){var t=/firefox/i.test(GD());if(/Trident/i.test(GD())&&al(n)&&"fixed"===xd(n).position)return null;var r=Jw(n);for($D(r)&&(r=r.host);al(r)&&["html","body"].indexOf(Au(r))<0;){var i=xd(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(n)||t}var Bs="top",sl="bottom",cl="right",Fs="left",e8="auto",yv=[Bs,sl,cl,Fs],WO="start",Cv="end",m_e="clippingParents",SG="viewport",wv="popper",__e="reference",DG=yv.reduce(function(n,t){return n.concat([t+"-"+WO,t+"-"+Cv])},[]),kG=[].concat(yv,[e8]).reduce(function(n,t){return n.concat([t,t+"-"+WO,t+"-"+Cv])},[]),W_e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function L_e(n){var t=new Map,e=new Set,o=[];function r(i){e.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(s){if(!e.has(s)){var c=t.get(s);c&&r(c)}}),o.push(i)}return n.forEach(function(i){t.set(i.name,i)}),n.forEach(function(i){e.has(i.name)||r(i)}),o}function R_e(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}var EG={placement:"bottom",modifiers:[],strategy:"absolute"};function NG(){for(var n=arguments.length,t=new Array(n),e=0;e=0?"x":"y"}function IG(n){var c,t=n.reference,e=n.element,o=n.placement,r=o?yu(o):null,i=o?LO(o):null,a=t.x+t.width/2-e.width/2,s=t.y+t.height/2-e.height/2;switch(r){case Bs:c={x:a,y:t.y-e.height};break;case sl:c={x:a,y:t.y+t.height};break;case cl:c={x:t.x+t.width,y:s};break;case Fs:c={x:t.x-e.width,y:s};break;default:c={x:t.x,y:t.y}}var l=r?t8(r):null;if(null!=l){var u="y"===l?"height":"width";switch(i){case WO:c[l]=c[l]-(t[u]/2-e[u]/2);break;case Cv:c[l]=c[l]+(t[u]/2-e[u]/2)}}return c}const I_e={name:"popperOffsets",enabled:!0,phase:"read",fn:function N_e(n){var t=n.state;t.modifiersData[n.name]=IG({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var B_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function BG(n){var t,e=n.popper,o=n.popperRect,r=n.placement,i=n.variation,a=n.offsets,s=n.position,c=n.gpuAcceleration,l=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=a.x,M=void 0===h?0:h,g=a.y,_=void 0===g?0:g,z="function"==typeof u?u({x:M,y:_}):{x:M,y:_};M=z.x,_=z.y;var y=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),L=Fs,S=Bs,X=window;if(l){var H=Av(e),ie="clientHeight",ee="clientWidth";H===Oc(e)&&"static"!==xd(H=J2(e)).position&&"absolute"===s&&(ie="scrollHeight",ee="scrollWidth"),(r===Bs||(r===Fs||r===cl)&&i===Cv)&&(S=sl,_-=(d&&H===X&&X.visualViewport?X.visualViewport.height:H[ie])-o.height,_*=c?1:-1),r!==Fs&&(r!==Bs&&r!==sl||i!==Cv)||(L=cl,M-=(d&&H===X&&X.visualViewport?X.visualViewport.width:H[ee])-o.width,M*=c?1:-1)}var xe,he=Object.assign({position:s},l&&B_e),Oe=!0===u?function F_e(n,t){var o=n.y,r=t.devicePixelRatio||1;return{x:xO(n.x*r)/r||0,y:xO(o*r)/r||0}}({x:M,y:_},Oc(e)):{x:M,y:_};return M=Oe.x,_=Oe.y,Object.assign({},he,c?((xe={})[S]=x?"0":"",xe[L]=y?"0":"",xe.transform=(X.devicePixelRatio||1)<=1?"translate("+M+"px, "+_+"px)":"translate3d("+M+"px, "+_+"px, 0)",xe):((t={})[S]=x?_+"px":"",t[L]=y?M+"px":"",t.transform="",t))}const H_e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Y_e(n){var t=n.state,e=n.options,o=e.gpuAcceleration,r=void 0===o||o,i=e.adaptive,a=void 0===i||i,s=e.roundOffsets,c=void 0===s||s,u={placement:yu(t.placement),variation:LO(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,BG(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,BG(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},FG={name:"applyStyles",enabled:!0,phase:"write",fn:function X_e(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var o=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!al(i)||!Au(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var s=r[a];!1===s?i.removeAttribute(a):i.setAttribute(a,!0===s?"":s)}))})},effect:function j_e(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:e[o]).reduce(function(c,l){return c[l]="",c},{});!al(r)||!Au(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}},requires:["computeStyles"]},$_e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function V_e(n){var t=n.state,o=n.name,r=n.options.offset,i=void 0===r?[0,0]:r,a=kG.reduce(function(u,d){return u[d]=function U_e(n,t,e){var o=yu(n),r=[Fs,Bs].indexOf(o)>=0?-1:1,i="function"==typeof e?e(Object.assign({},t,{placement:n})):e,a=i[0],s=i[1];return a=a||0,s=(s||0)*r,[Fs,cl].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(d,t.rects,i),u},{}),s=a[t.placement],l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s.x,t.modifiersData.popperOffsets.y+=l),t.modifiersData[o]=a}};var G_e={left:"right",right:"left",bottom:"top",top:"bottom"};function eP(n){return n.replace(/left|right|bottom|top/g,function(t){return G_e[t]})}var Z_e={start:"end",end:"start"};function YG(n){return n.replace(/start|end/g,function(t){return Z_e[t]})}function HG(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&$D(e)){var o=t;do{if(o&&n.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function n8(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function XG(n,t,e){return t===SG?n8(function K_e(n,t){var e=Oc(n),o=J2(n),r=e.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;var l=LG();(l||!l&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s+KD(n),y:c}}(n,e)):rM(t)?function Q_e(n,t){var e=qO(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}(t,e):n8(function J_e(n){var t,e=J2(n),o=ZD(n),r=null==(t=n.ownerDocument)?void 0:t.body,i=iM(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=iM(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+KD(n),c=-o.scrollTop;return"rtl"===xd(r||e).direction&&(s+=iM(e.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(J2(n)))}function UG(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function VG(n,t){return t.reduce(function(e,o){return e[o]=n,e},{})}function Pv(n,t){void 0===t&&(t={});var o=t.placement,r=void 0===o?n.placement:o,i=t.strategy,a=void 0===i?n.strategy:i,s=t.boundary,c=void 0===s?m_e:s,l=t.rootBoundary,u=void 0===l?SG:l,d=t.elementContext,h=void 0===d?wv:d,M=t.altBoundary,g=void 0!==M&&M,_=t.padding,z=void 0===_?0:_,y=UG("number"!=typeof z?z:VG(z,yv)),L=n.rects.popper,S=n.elements[g?h===wv?__e:wv:h],X=function tze(n,t,e,o){var r="clippingParents"===t?function eze(n){var t=vv(Jw(n)),o=["absolute","fixed"].indexOf(xd(n).position)>=0&&al(n)?Av(n):n;return rM(o)?t.filter(function(r){return rM(r)&&HG(r,o)&&"body"!==Au(r)}):[]}(n):[].concat(t),i=[].concat(r,[e]),s=i.reduce(function(c,l){var u=XG(n,l,o);return c.top=iM(u.top,c.top),c.right=Kw(u.right,c.right),c.bottom=Kw(u.bottom,c.bottom),c.left=iM(u.left,c.left),c},XG(n,i[0],o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(rM(S)?S:S.contextElement||J2(n.elements.popper),c,u,a),H=qO(n.elements.reference),ie=IG({reference:H,element:L,strategy:"absolute",placement:r}),ee=n8(Object.assign({},L,ie)),ce=h===wv?ee:H,fe={top:X.top-ce.top+y.top,bottom:ce.bottom-X.bottom+y.bottom,left:X.left-ce.left+y.left,right:ce.right-X.right+y.right},he=n.modifiersData.offset;if(h===wv&&he){var Oe=he[r];Object.keys(fe).forEach(function(xe){var Ue=[cl,sl].indexOf(xe)>=0?1:-1,st=[Bs,sl].indexOf(xe)>=0?"y":"x";fe[xe]+=Oe[st]*Ue})}return fe}const ize={name:"flip",enabled:!0,phase:"main",fn:function rze(n){var t=n.state,e=n.options,o=n.name;if(!t.modifiersData[o]._skip){for(var r=e.mainAxis,i=void 0===r||r,a=e.altAxis,s=void 0===a||a,c=e.fallbackPlacements,l=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,M=e.flipVariations,g=void 0===M||M,_=e.allowedAutoPlacements,z=t.options.placement,y=yu(z),L=c||(y!==z&&g?function oze(n){if(yu(n)===e8)return[];var t=eP(n);return[YG(n),t,YG(t)]}(z):[eP(z)]),S=[z].concat(L).reduce(function(Gt,E0){return Gt.concat(yu(E0)===e8?function nze(n,t){void 0===t&&(t={});var r=t.boundary,i=t.rootBoundary,a=t.padding,s=t.flipVariations,c=t.allowedAutoPlacements,l=void 0===c?kG:c,u=LO(t.placement),d=u?s?DG:DG.filter(function(g){return LO(g)===u}):yv,h=d.filter(function(g){return l.indexOf(g)>=0});0===h.length&&(h=d);var M=h.reduce(function(g,_){return g[_]=Pv(n,{placement:_,boundary:r,rootBoundary:i,padding:a})[yu(_)],g},{});return Object.keys(M).sort(function(g,_){return M[g]-M[_]})}(t,{placement:E0,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:_}):E0)},[]),X=t.rects.reference,H=t.rects.popper,ie=new Map,ee=!0,ce=S[0],fe=0;fe=0,st=Ue?"width":"height",nt=Pv(t,{placement:he,boundary:u,rootBoundary:d,altBoundary:h,padding:l}),Ut=Ue?xe?cl:Fs:xe?sl:Bs;X[st]>H[st]&&(Ut=eP(Ut));var qe=eP(Ut),ke=[];if(i&&ke.push(nt[Oe]<=0),s&&ke.push(nt[Ut]<=0,nt[qe]<=0),ke.every(function(Gt){return Gt})){ce=he,ee=!1;break}ie.set(he,ke)}if(ee)for(var vt=function(E0){var l1=S.find(function(Tn){var Sn=ie.get(Tn);if(Sn)return Sn.slice(0,E0).every(function(to){return to})});if(l1)return ce=l1,"break"},ht=g?3:1;ht>0&&"break"!==vt(ht);ht--);t.placement!==ce&&(t.modifiersData[o]._skip=!0,t.placement=ce,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xv(n,t,e){return iM(n,Kw(t,e))}const lze={name:"preventOverflow",enabled:!0,phase:"main",fn:function cze(n){var t=n.state,e=n.options,o=n.name,r=e.mainAxis,i=void 0===r||r,a=e.altAxis,s=void 0!==a&&a,h=e.tether,M=void 0===h||h,g=e.tetherOffset,_=void 0===g?0:g,z=Pv(t,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=yu(t.placement),x=LO(t.placement),L=!x,S=t8(y),X=function aze(n){return"x"===n?"y":"x"}(S),H=t.modifiersData.popperOffsets,ie=t.rects.reference,ee=t.rects.popper,ce="function"==typeof _?_(Object.assign({},t.rects,{placement:t.placement})):_,fe="number"==typeof ce?{mainAxis:ce,altAxis:ce}:Object.assign({mainAxis:0,altAxis:0},ce),he=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Oe={x:0,y:0};if(H){if(i){var xe,Ue="y"===S?Bs:Fs,st="y"===S?sl:cl,nt="y"===S?"height":"width",Ut=H[S],qe=Ut+z[Ue],ke=Ut-z[st],Ge=M?-ee[nt]/2:0,vt=x===WO?ie[nt]:ee[nt],ht=x===WO?-ee[nt]:-ie[nt],Tt=t.elements.arrow,Gt=M&&Tt?QD(Tt):{width:0,height:0},E0=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},l1=E0[Ue],Tn=E0[st],Sn=xv(0,ie[nt],Gt[nt]),to=L?ie[nt]/2-Ge-Sn-l1-fe.mainAxis:vt-Sn-l1-fe.mainAxis,sn=L?-ie[nt]/2+Ge+Sn+Tn+fe.mainAxis:ht+Sn+Tn+fe.mainAxis,q0=t.elements.arrow&&Av(t.elements.arrow),Or=null!=(xe=he?.[S])?xe:0,bi=Ut+sn-Or,qr=xv(M?Kw(qe,Ut+to-Or-(q0?"y"===S?q0.clientTop||0:q0.clientLeft||0:0)):qe,Ut,M?iM(ke,bi):ke);H[S]=qr,Oe[S]=qr-Ut}if(s){var Qr,Ta=H[X],Wr="y"===X?"height":"width",Zs=Ta+z["x"===S?Bs:Fs],Ki=Ta-z["x"===S?sl:cl],bp=-1!==[Bs,Fs].indexOf(y),Ji=null!=(Qr=he?.[X])?Qr:0,HM=bp?Zs:Ta-ie[Wr]-ee[Wr]-Ji+fe.altAxis,XM=bp?Ta+ie[Wr]+ee[Wr]-Ji-fe.altAxis:Ki,jM=M&&bp?function sze(n,t,e){var o=xv(n,t,e);return o>e?e:o}(HM,Ta,XM):xv(M?HM:Zs,Ta,M?XM:Ki);H[X]=jM,Oe[X]=jM-Ta}t.modifiersData[o]=Oe}},requiresIfExists:["offset"]};const fze={name:"arrow",enabled:!0,phase:"main",fn:function uze(n){var t,e=n.state,o=n.name,r=n.options,i=e.elements.arrow,a=e.modifiersData.popperOffsets,s=yu(e.placement),c=t8(s),u=[Fs,cl].indexOf(s)>=0?"height":"width";if(i&&a){var d=function(t,e){return UG("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:VG(t,yv))}(r.padding,e),h=QD(i),M="y"===c?Bs:Fs,g="y"===c?sl:cl,_=e.rects.reference[u]+e.rects.reference[c]-a[c]-e.rects.popper[u],z=a[c]-e.rects.reference[c],y=Av(i),x=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,H=x/2-h[u]/2+(_/2-z/2),ie=xv(d[M],H,x-h[u]-d[g]);e.modifiersData[o]=((t={})[c]=ie,t.centerOffset=ie-H,t)}},effect:function dze(n){var t=n.state,o=n.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||HG(t.elements.popper,r)&&(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $G(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function GG(n){return[Bs,cl,sl,Fs].some(function(t){return n[t]>=0})}var Mze=[E_e,I_e,H_e,FG,$_e,ize,lze,fze,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hze(n){var t=n.state,e=n.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Pv(t,{elementContext:"reference"}),s=Pv(t,{altBoundary:!0}),c=$G(a,o),l=$G(s,r,i),u=GG(c),d=GG(l);t.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}],bze=D_e({defaultModifiers:Mze}),gze="tippy-box",ZG="tippy-content",KG="tippy-backdrop",JG="tippy-arrow",QG="tippy-svg-arrow",Q2={passive:!0,capture:!0},eZ=function(){return document.body};function o8(n,t,e){return Array.isArray(n)?n[t]??(Array.isArray(e)?e[t]:e):n}function r8(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function tZ(n,t){return"function"==typeof n?n.apply(void 0,t):n}function nZ(n,t){return 0===t?n:function(o){clearTimeout(e),e=setTimeout(function(){n(o)},t)};var e}function ef(n){return[].concat(n)}function oZ(n,t){-1===n.indexOf(t)&&n.push(t)}function TO(n){return[].slice.call(n)}function iZ(n){return Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t},{})}function aM(){return document.createElement("div")}function tP(n){return["Element","Fragment"].some(function(t){return r8(n,t)})}function s8(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function qv(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function c8(n,t,e){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[o](r,e)})}function cZ(n,t){for(var e=t;e;){var o;if(n.contains(e))return!0;e=null==e.getRootNode||null==(o=e.getRootNode())?void 0:o.host}return!1}var Cu={isTouch:!1},lZ=0;function yze(){Cu.isTouch||(Cu.isTouch=!0,window.performance&&document.addEventListener("mousemove",pZ))}function pZ(){var n=performance.now();n-lZ<20&&(Cu.isTouch=!1,document.removeEventListener("mousemove",pZ)),lZ=n}function Cze(){var n=document.activeElement;(function aZ(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var xze=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,Ys=Object.assign({appendTo:eZ,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Tze=Object.keys(Ys);function MZ(n){var e=(n.plugins||[]).reduce(function(o,r){var s,i=r.name;return i&&(o[i]=void 0!==n[i]?n[i]:null!=(s=Ys[i])?s:r.defaultValue),o},{});return Object.assign({},n,e)}function bZ(n,t){var e=Object.assign({},t,{content:tZ(t.content,[n])},t.ignoreAttributes?{}:function Sze(n,t){return(t?Object.keys(MZ(Object.assign({},Ys,{plugins:t}))):Tze).reduce(function(r,i){var a=(n.getAttribute("data-tippy-"+i)||"").trim();if(!a)return r;if("content"===i)r[i]=a;else try{r[i]=JSON.parse(a)}catch{r[i]=a}return r},{})}(n,t.plugins));return e.aria=Object.assign({},Ys.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}var Dze=function(){return"innerHTML"};function l8(n,t){n[Dze()]=t}function gZ(n){var t=aM();return!0===n?t.className=JG:(t.className=QG,tP(n)?t.appendChild(n):l8(t,n)),t}function OZ(n,t){tP(t.content)?(l8(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?l8(n,t.content):n.textContent=t.content)}function nP(n){var t=n.firstElementChild,e=TO(t.children);return{box:t,content:e.find(function(o){return o.classList.contains(ZG)}),arrow:e.find(function(o){return o.classList.contains(JG)||o.classList.contains(QG)}),backdrop:e.find(function(o){return o.classList.contains(KG)})}}function mZ(n){var t=aM(),e=aM();e.className=gze,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var o=aM();function r(i,a){var s=nP(t),c=s.box,l=s.content,u=s.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),"string"==typeof a.animation?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth="number"==typeof a.maxWidth?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&OZ(l,n.props),a.arrow?u?i.arrow!==a.arrow&&(c.removeChild(u),c.appendChild(gZ(a.arrow))):c.appendChild(gZ(a.arrow)):u&&c.removeChild(u)}return o.className=ZG,o.setAttribute("data-state","hidden"),OZ(o,n.props),t.appendChild(e),e.appendChild(o),r(n.props,n.props),{popper:t,onUpdate:r}}mZ.$$tippy=!0;var kze=1,oP=[],rP=[];function Eze(n,t){var o,r,i,u,d,h,_,e=bZ(n,Object.assign({},Ys,MZ(iZ(t)))),a=!1,s=!1,c=!1,l=!1,M=[],g=nZ(fo,e.interactiveDebounce),z=kze++,x=function _ze(n){return n.filter(function(t,e){return n.indexOf(t)===e})}(e.plugins),S={id:z,reference:n,popper:aM(),popperInstance:null,props:e,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:x,clearDelayTimeouts:function HM(){clearTimeout(o),clearTimeout(r),cancelAnimationFrame(i)},setProps:function XM(ct){if(!S.state.isDestroyed){qe("onBeforeUpdate",[S,ct]),V0();var z0=S.props,t1=bZ(n,Object.assign({},z0,iZ(ct),{ignoreAttributes:!0}));S.props=t1,q0(),z0.interactiveDebounce!==t1.interactiveDebounce&&(vt(),g=nZ(fo,t1.interactiveDebounce)),z0.triggerTarget&&!t1.triggerTarget?ef(z0.triggerTarget).forEach(function(Dn){Dn.removeAttribute("aria-expanded")}):t1.triggerTarget&&n.removeAttribute("aria-expanded"),Ge(),Ut(),ie&&ie(z0,t1),S.popperInstance&&(Zi(),Wr().forEach(function(Dn){requestAnimationFrame(Dn._tippy.popperInstance.forceUpdate)})),qe("onAfterUpdate",[S,ct])}},setContent:function jM(ct){S.setProps({content:ct})},show:function Ux(){var ct=S.state.isVisible,z0=S.state.isDestroyed,t1=!S.state.isEnabled,Dn=Cu.isTouch&&!S.props.touch,Mn=o8(S.props.duration,0,Ys.duration);if(!(ct||z0||t1||Dn||xe().hasAttribute("disabled")||(qe("onShow",[S],!1),!1===S.props.onShow(S)))){if(S.state.isVisible=!0,Oe()&&(H.style.visibility="visible"),Ut(),E0(),S.state.isMounted||(H.style.transition="none"),Oe()){var Qi=st();s8([Qi.box,Qi.content],0)}h=function(){var Sa;if(S.state.isVisible&&!l){if(l=!0,H.style.transition=S.props.moveTransition,Oe()&&S.props.animation){var PA=st(),Km=PA.box,Bd=PA.content;s8([Km,Bd],Mn),qv([Km,Bd],"visible")}ke(),Ge(),oZ(rP,S),null==(Sa=S.popperInstance)||Sa.forceUpdate(),qe("onMount",[S]),S.props.animation&&Oe()&&function Sn(ct,z0){to(ct,z0)}(Mn,function(){S.state.isShown=!0,qe("onShown",[S])})}},function Ta(){var z0,ct=S.props.appendTo,t1=xe();(z0=S.props.interactive&&ct===eZ||"parent"===ct?t1.parentNode:tZ(ct,[t1])).contains(H)||z0.appendChild(H),S.state.isMounted=!0,Zi()}()}},hide:function Vx(){var ct=!S.state.isVisible,z0=S.state.isDestroyed,t1=!S.state.isEnabled,Dn=o8(S.props.duration,1,Ys.duration);if(!(ct||z0||t1)&&(qe("onHide",[S],!1),!1!==S.props.onHide(S))){if(S.state.isVisible=!1,S.state.isShown=!1,l=!1,a=!1,Oe()&&(H.style.visibility="hidden"),vt(),l1(),Ut(!0),Oe()){var Mn=st(),Qi=Mn.box,Ra=Mn.content;S.props.animation&&(s8([Qi,Ra],Dn),qv([Qi,Ra],"hidden"))}ke(),Ge(),S.props.animation?Oe()&&function Tn(ct,z0){to(ct,function(){!S.state.isVisible&&H.parentNode&&H.parentNode.contains(H)&&z0()})}(Dn,S.unmount):S.unmount()}},hideWithInteractivity:function $x(ct){Ue().addEventListener("mousemove",g),oZ(oP,g),g(ct)},enable:function bp(){S.state.isEnabled=!0},disable:function Ji(){S.hide(),S.state.isEnabled=!1},unmount:function Gx(){S.state.isVisible&&S.hide(),S.state.isMounted&&(ds(),Wr().forEach(function(ct){ct._tippy.unmount()}),H.parentNode&&H.parentNode.removeChild(H),rP=rP.filter(function(ct){return ct!==S}),S.state.isMounted=!1,qe("onHidden",[S]))},destroy:function Zx(){S.state.isDestroyed||(S.clearDelayTimeouts(),S.unmount(),V0(),delete n._tippy,S.state.isDestroyed=!0,qe("onDestroy",[S]))}};if(!e.render)return S;var X=e.render(S),H=X.popper,ie=X.onUpdate;H.setAttribute("data-tippy-root",""),H.id="tippy-"+S.id,S.popper=H,n._tippy=S,H._tippy=S;var ee=x.map(function(ct){return ct.fn(S)}),ce=n.hasAttribute("aria-expanded");return q0(),Ge(),Ut(),qe("onCreate",[S]),e.showOnCreate&&Zs(),H.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),H.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&Ue().addEventListener("mousemove",g)}),S;function fe(){var ct=S.props.touch;return Array.isArray(ct)?ct:[ct,0]}function he(){return"hold"===fe()[0]}function Oe(){var ct;return!(null==(ct=S.props.render)||!ct.$$tippy)}function xe(){return _||n}function Ue(){var ct=xe().parentNode;return ct?function sZ(n){var t,o=ef(n)[0];return null!=o&&null!=(t=o.ownerDocument)&&t.body?o.ownerDocument:document}(ct):document}function st(){return nP(H)}function nt(ct){return S.state.isMounted&&!S.state.isVisible||Cu.isTouch||u&&"focus"===u.type?0:o8(S.props.delay,ct?0:1,Ys.delay)}function Ut(ct){void 0===ct&&(ct=!1),H.style.pointerEvents=S.props.interactive&&!ct?"":"none",H.style.zIndex=""+S.props.zIndex}function qe(ct,z0,t1){var Dn;void 0===t1&&(t1=!0),ee.forEach(function(Mn){Mn[ct]&&Mn[ct].apply(Mn,z0)}),t1&&(Dn=S.props)[ct].apply(Dn,z0)}function ke(){var ct=S.props.aria;if(ct.content){var z0="aria-"+ct.content,t1=H.id;ef(S.props.triggerTarget||n).forEach(function(Mn){var Qi=Mn.getAttribute(z0);if(S.state.isVisible)Mn.setAttribute(z0,Qi?Qi+" "+t1:t1);else{var Ra=Qi&&Qi.replace(t1,"").trim();Ra?Mn.setAttribute(z0,Ra):Mn.removeAttribute(z0)}})}}function Ge(){!ce&&S.props.aria.expanded&&ef(S.props.triggerTarget||n).forEach(function(z0){S.props.interactive?z0.setAttribute("aria-expanded",S.state.isVisible&&z0===xe()?"true":"false"):z0.removeAttribute("aria-expanded")})}function vt(){Ue().removeEventListener("mousemove",g),oP=oP.filter(function(ct){return ct!==g})}function ht(ct){if(!Cu.isTouch||!c&&"mousedown"!==ct.type){var z0=ct.composedPath&&ct.composedPath()[0]||ct.target;if(!S.props.interactive||!cZ(H,z0)){if(ef(S.props.triggerTarget||n).some(function(t1){return cZ(t1,z0)})){if(Cu.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else qe("onClickOutside",[S,ct]);!0===S.props.hideOnClick&&(S.clearDelayTimeouts(),S.hide(),s=!0,setTimeout(function(){s=!1}),S.state.isMounted||l1())}}}function Tt(){c=!0}function Gt(){c=!1}function E0(){var ct=Ue();ct.addEventListener("mousedown",ht,!0),ct.addEventListener("touchend",ht,Q2),ct.addEventListener("touchstart",Gt,Q2),ct.addEventListener("touchmove",Tt,Q2)}function l1(){var ct=Ue();ct.removeEventListener("mousedown",ht,!0),ct.removeEventListener("touchend",ht,Q2),ct.removeEventListener("touchstart",Gt,Q2),ct.removeEventListener("touchmove",Tt,Q2)}function to(ct,z0){var t1=st().box;function Dn(Mn){Mn.target===t1&&(c8(t1,"remove",Dn),z0())}if(0===ct)return z0();c8(t1,"remove",d),c8(t1,"add",Dn),d=Dn}function sn(ct,z0,t1){void 0===t1&&(t1=!1),ef(S.props.triggerTarget||n).forEach(function(Mn){Mn.addEventListener(ct,z0,t1),M.push({node:Mn,eventType:ct,handler:z0,options:t1})})}function q0(){he()&&(sn("touchstart",Or,{passive:!0}),sn("touchend",bi,{passive:!0})),function mze(n){return n.split(/\s+/).filter(Boolean)}(S.props.trigger).forEach(function(ct){if("manual"!==ct)switch(sn(ct,Or),ct){case"mouseenter":sn("mouseleave",bi);break;case"focus":sn(xze?"focusout":"blur",qr);break;case"focusin":sn("focusout",qr)}})}function V0(){M.forEach(function(ct){ct.node.removeEventListener(ct.eventType,ct.handler,ct.options)}),M=[]}function Or(ct){var z0,t1=!1;if(S.state.isEnabled&&!Qr(ct)&&!s){var Dn="focus"===(null==(z0=u)?void 0:z0.type);u=ct,_=ct.currentTarget,Ge(),!S.state.isVisible&&function a8(n){return r8(n,"MouseEvent")}(ct)&&oP.forEach(function(Mn){return Mn(ct)}),"click"===ct.type&&(S.props.trigger.indexOf("mouseenter")<0||a)&&!1!==S.props.hideOnClick&&S.state.isVisible?t1=!0:Zs(ct),"click"===ct.type&&(a=!t1),t1&&!Dn&&Ki(ct)}}function fo(ct){var z0=ct.target,t1=xe().contains(z0)||H.contains(z0);"mousemove"===ct.type&&t1||function Aze(n,t){var e=t.clientX,o=t.clientY;return n.every(function(r){var i=r.popperRect,a=r.popperState,c=r.props.interactiveBorder,l=function rZ(n){return n.split("-")[0]}(a.placement),u=a.modifiersData.offset;return!u||i.top-o+("bottom"===l?u.top.y:0)>c||o-i.bottom-("top"===l?u.bottom.y:0)>c||i.left-e+("right"===l?u.left.x:0)>c||e-i.right-("left"===l?u.right.x:0)>c})}(Wr().concat(H).map(function(Mn){var Qi,Id=null==(Qi=Mn._tippy.popperInstance)?void 0:Qi.state;return Id?{popperRect:Mn.getBoundingClientRect(),popperState:Id,props:e}:null}).filter(Boolean),ct)&&(vt(),Ki(ct))}function bi(ct){if(!(Qr(ct)||S.props.trigger.indexOf("click")>=0&&a)){if(S.props.interactive)return void S.hideWithInteractivity(ct);Ki(ct)}}function qr(ct){S.props.trigger.indexOf("focusin")<0&&ct.target!==xe()||S.props.interactive&&ct.relatedTarget&&H.contains(ct.relatedTarget)||Ki(ct)}function Qr(ct){return!!Cu.isTouch&&he()!==ct.type.indexOf("touch")>=0}function Zi(){ds();var ct=S.props,z0=ct.popperOptions,t1=ct.placement,Dn=ct.offset,Mn=ct.getReferenceClientRect,Qi=ct.moveTransition,Ra=Oe()?nP(H).arrow:null,Id=Mn?{getBoundingClientRect:Mn,contextElement:Mn.contextElement||xe()}:n,Sa=[{name:"offset",options:{offset:Dn}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Qi}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Km){var Bd=Km.state;if(Oe()){var xA=st().box;["placement","reference-hidden","escaped"].forEach(function(Jm){"placement"===Jm?xA.setAttribute("data-placement",Bd.placement):Bd.attributes.popper["data-popper-"+Jm]?xA.setAttribute("data-"+Jm,""):xA.removeAttribute("data-"+Jm)}),Bd.attributes.popper={}}}}];Oe()&&Ra&&Sa.push({name:"arrow",options:{element:Ra,padding:3}}),Sa.push.apply(Sa,z0?.modifiers||[]),S.popperInstance=bze(Id,H,Object.assign({},z0,{placement:t1,onFirstUpdate:h,modifiers:Sa}))}function ds(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function Wr(){return TO(H.querySelectorAll("[data-tippy-root]"))}function Zs(ct){S.clearDelayTimeouts(),ct&&qe("onTrigger",[S,ct]),E0();var z0=nt(!0),t1=fe(),Mn=t1[1];Cu.isTouch&&"hold"===t1[0]&&Mn&&(z0=Mn),z0?o=setTimeout(function(){S.show()},z0):S.show()}function Ki(ct){if(S.clearDelayTimeouts(),qe("onUntrigger",[S,ct]),S.state.isVisible){if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ct.type)>=0&&a)){var z0=nt(!1);z0?r=setTimeout(function(){S.state.isVisible&&S.hide()},z0):i=requestAnimationFrame(function(){S.hide()})}}else l1()}}function tf(n,t){void 0===t&&(t={});var e=Ys.plugins.concat(t.plugins||[]);!function wze(){document.addEventListener("touchstart",yze,Q2),window.addEventListener("blur",Cze)}();var o=Object.assign({},t,{plugins:e}),s=function vze(n){return tP(n)?[n]:function zze(n){return r8(n,"NodeList")}(n)?TO(n):Array.isArray(n)?n:TO(document.querySelectorAll(n))}(n).reduce(function(c,l){var u=l&&Eze(l,o);return u&&c.push(u),c},[]);return tP(n)?s[0]:s}tf.defaultProps=Ys,tf.setDefaultProps=function(t){Object.keys(t).forEach(function(o){Ys[o]=t[o]})},tf.currentInput=Cu,Object.assign({},FG,{effect:function(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow)}}),tf.setDefaultProps({render:mZ});const jze=tf,Uze=["addListener","removeListener"],Vze=["addEventListener","removeEventListener"],$ze=["on","off"];function cp(n,t,e,o){if(m(e)&&(o=e,e=void 0),o)return cp(n,t,e).pipe(WL(o));const[r,i]=function Kze(n){return m(n.addEventListener)&&m(n.removeEventListener)}(n)?Vze.map(a=>s=>n[a](t,s,e)):function Gze(n){return m(n.addListener)&&m(n.removeListener)}(n)?Uze.map(vZ(n,t)):function Zze(n){return m(n.on)&&m(n.off)}(n)?$ze.map(vZ(n,t)):[];if(!r&&tn(n))return On(a=>cp(a,t,e))(D0(n));if(!r)throw new TypeError("Invalid event target");return new U(a=>{const s=(...c)=>a.next(1i(s)})}function vZ(n,t){return e=>o=>n[e](t,o)}function aP(n){return n instanceof Hc}function Lv(n){return"function"==typeof n}function Tv(n){return"string"==typeof n}let eve=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["dynamic-view"]],inputs:{content:"content"},decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(e,o){1&e&&Me(0,"div",0),2&e&&D("innerHTML",o.content,Uf)},encapsulation:2}),n})();class tve{constructor(t){this.args=t,this.wrapper=null,this.args.vcr?(this.viewRef=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{}),this.viewRef.detectChanges()):(this.viewRef=this.args.tpl.createEmbeddedView(this.args.context||{}),this.viewRef.detectChanges(),this.args.appRef.attachView(this.viewRef))}detectChanges(){this.viewRef.detectChanges()}getElement(){const t=this.viewRef.rootNodes;return 1===t.length&&t[0]===Node.ELEMENT_NODE?this.element=t[0]:(this.element=document.createElement("div"),this.element.append(...t)),this.element}destroy(){1!==this.viewRef.rootNodes[0]&&(this.element?.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.viewRef),this.viewRef.destroy(),this.viewRef=null}}class nve{constructor(t){this.value=t}getElement(){return this.value}detectChanges(){}destroy(){}}class ove{constructor(t){if(this.options=t,t.vcr)this.compRef=t.vcr.createComponent(t.component,{index:t.vcr.length,injector:t.injector||t.vcr.injector});else{const e=t.resolver.resolveComponentFactory(t.component);this.compRef=e.create(t.injector),t.appRef.attachView(this.compRef.hostView)}}get ref(){return this.compRef}setInput(t,e){return this.compRef.instance[t]=e,this}setInputs(t){return Object.keys(t).forEach(e=>{this.compRef.instance[e]=t[e]}),this}detectChanges(){return this.compRef.hostView.detectChanges(),this}appendTo(t){return t.appendChild(this.getElement()),this}removeFrom(t){return t.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.compRef.location.nativeElement}destroy(){this.compRef.destroy(),!this.options.vcr&&this.options.appRef.detachView(this.compRef.hostView),this.compRef=null}}let u8=(()=>{class n{constructor(e,o,r){this.resolver=e,this.injector=o,this.appRef=r}createComponent(e,o={}){return new ove({component:e,vcr:o.vcr,injector:o.injector||this.injector,appRef:this.appRef,resolver:this.resolver})}createTemplate(e,o={}){return new tve({vcr:o.vcr,appRef:this.appRef,tpl:e,context:o.context})}createView(e,o={}){if(aP(e))return this.createTemplate(e,o);if(Lv(e))return this.createComponent(e,o);if(Tv(e))return new nve(e);throw"Type of content is not supported"}}return n.\u0275fac=function(e){return new(e||n)(Se(yi),Se(Jo),Se(C2))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rve=(()=>{class n{constructor(e,o,r){this.defaultTpl=e,this.vcr=o,this.viewService=r}ngOnInit(){this.resolveContentType()}ngOnChanges(e){e.view&&!e.view.isFirstChange()&&this.resolveContentType()}resolveContentType(){this.viewRef?.destroy(),Tv(this.view)?(this.viewRef=this.viewService.createComponent(eve,{vcr:this.vcr,injector:this.injector}),this.viewRef.setInput("content",this.view).detectChanges()):this.viewRef=this.viewService.createView(this.view||this.defaultTpl,{vcr:this.vcr,injector:this.injector??this.vcr.injector,context:this.context})}ngOnDestroy(){this.viewRef?.destroy()}}return n.\u0275fac=function(e){return new(e||n)(Te(Hc),Te(pc),Te(u8))},n.\u0275dir=b0({type:n,selectors:[["","dynamicView",""]],inputs:{view:["dynamicView","view"],injector:["dynamicViewInjector","injector"],context:["dynamicViewContext","context"]},features:[Fo]}),n})(),AZ=!1,yZ=!1;function CZ(n,t={root:null,threshold:.3}){const e=xZ(n);return new U(o=>{if(!AZ)return o.next(),void o.complete();const r=new IntersectionObserver(i=>{i[i.length-1].isIntersecting&&(o.next(),o.complete())},t);return r.observe(e),()=>r.disconnect()})}function wZ(n){const t=xZ(n);return PZ(t).pipe(function Qze(n,t=iz){return function Jze(n){return mt((t,e)=>{let o=!1,r=null,i=null,a=!1;const s=()=>{if(i?.unsubscribe(),i=null,o){o=!1;const l=r;r=null,e.next(l)}a&&e.complete()},c=()=>{i=null,a&&e.complete()};t.subscribe(V(e,l=>{o=!0,r=l,i||D0(n(l)).subscribe(i=V(e,s,c))},()=>{a=!0,(!o||!i||i.closed)&&e.complete()}))})}(()=>az(n,t))}(150),$(()=>function ive(n){const t=n.offsetWidth;return t>n.parentElement.offsetWidth||t{if(!yZ)return t.next(),void t.complete();const e=new ResizeObserver(()=>t.next(!0));return e.observe(n),()=>e.disconnect()})}(n)}function d8(n){const t={},e=["useTextContent","variations","useHostWidth","defaultVariation","beforeRender","lazy","variation","isEnabled","className","onlyTextOverflow","data","content","context","hideOnEscape","customHost","injector","preserveView","vcr","popperWidth"],o=["onShow","onHidden","onCreate"];return Object.keys(n).forEach(r=>{!e.includes(r)&&!o.includes(r)&&(t[r]=n[r])}),t}function xZ(n){return n instanceof fn?n.nativeElement:n}typeof window<"u"&&(AZ="IntersectionObserver"in window,yZ="ResizeObserver"in window);const qZ=new Qt("Tippy config",{providedIn:"root",factory:()=>({})}),uve=new Qt("TIPPY_REF");let lp=(()=>{class n{constructor(e,o,r,i,a,s,c){this.platformId=e,this.globalConfig=o,this.injector=r,this.viewService=i,this.vcr=a,this.zone=s,this.hostRef=c,this.onlyTextOverflow=!1,this.useHostWidth=!1,this.hideOnEscape=!1,this.detectChangesComponent=!0,this.visible=new G1,this.isVisible=!1,this.destroyed=new N,this.enabled=!0,this.variationDefined=!1,this.visibleInternal=new N}ngOnChanges(e){if(lL(this.platformId))return;let r,o=Object.keys(e).reduce((i,a)=>("isVisible"===a||(i[a]=e[a].currentValue),i),{});f8("variation",e)?(r=e.variation.currentValue,this.variationDefined=!0):this.variationDefined||(r=this.globalConfig.defaultVariation,this.variationDefined=!0),r&&(o={...this.globalConfig.variations[r],...o}),f8("isEnabled",e)&&(this.enabled=e.isEnabled.currentValue,this.setStatus()),f8("isVisible",e)&&(this.isVisible?this.show():this.hide()),this.setProps({...this.props,...o})}ngOnInit(){this.useHostWidth&&(this.props.maxWidth=this.hostWidth)}ngAfterViewInit(){lL(this.platformId)||this.zone.runOutsideAngular(()=>{this.lazy?this.onlyTextOverflow?CZ(this.host).pipe(ui(()=>wZ(this.host)),hc(this.destroyed)).subscribe(e=>{this.checkOverflow(e)}):CZ(this.host).pipe(hc(this.destroyed)).subscribe(()=>{this.createInstance()}):this.onlyTextOverflow?wZ(this.host).pipe(hc(this.destroyed)).subscribe(e=>{this.checkOverflow(e)}):this.createInstance()})}ngOnDestroy(){this.destroyed.next(),this.instance?.destroy(),this.destroyView()}destroyView(){this.viewOptions$=null,this.viewRef?.destroy(),this.viewRef=null}show(){this.instance?.show()}hide(){this.instance?.hide()}enable(){this.instance?.enable()}disable(){this.instance?.disable()}setProps(e){this.props=e,this.instance?.setProps(d8(e))}setStatus(){this.enabled?this.instance?.enable():this.instance?.disable()}get host(){return this.customHost||this.hostRef.nativeElement}get hostWidth(){return this.host.getBoundingClientRect().width}createInstance(){!this.content&&!WZ(this.useTextContent)||this.zone.runOutsideAngular(()=>{this.instance=jze(this.host,{allowHTML:!0,appendTo:document.body,...d8(this.globalConfig),...d8(this.props),onMount:e=>{this.isVisible=!0,this.visibleInternal.next(this.isVisible),this.visible.observed&&this.zone.run(()=>this.visible.next(this.isVisible)),this.useHostWidth&&this.listenToHostResize(),this.globalConfig.onMount?.(e)},onCreate:e=>{if(e.popper.classList.add(`tippy-variation-${this.variation||this.globalConfig.defaultVariation}`),this.className)for(const o of function sve(n){return(function lve(n){return"string"==typeof n}(n)?n.split(" "):n).map(e=>e?.trim()).filter(Boolean)}(this.className))e.popper.classList.add(o);this.globalConfig.onCreate?.(e),!0===this.isVisible&&e.show()},onShow:e=>{e.reference.setAttribute("data-tippy-open",""),this.zone.run(()=>{const o=this.resolveContent(e);Tv(o)&&(e.setProps({allowHTML:!1}),o?.trim()?this.enable():this.disable()),e.setContent(o),this.hideOnEscape&&this.handleEscapeButton()}),this.useHostWidth?this.setInstanceWidth(e,this.hostWidth):this.popperWidth&&this.setInstanceWidth(e,this.popperWidth),this.globalConfig.onShow?.(e)},onHide(e){e.reference.removeAttribute("data-tippy-open")},onHidden:e=>{this.destroyView(),this.isVisible=!1,this.visibleInternal.next(this.isVisible),this.visible.observed&&this.zone.run(()=>this.visible.next(this.isVisible)),this.globalConfig.onHidden?.(e)}}),this.setStatus(),this.setProps(this.props),"contextMenu"===this.variation&&this.handleContextMenu()})}resolveContent(e){!this.viewOptions$&&!Tv(this.content)&&(Lv(this.content)?(this.instance.data=this.data,this.viewOptions$={injector:Jo.create({providers:[{provide:uve,useValue:this.instance}],parent:this.injector})}):aP(this.content)&&(this.viewOptions$={context:{$implicit:this.hide.bind(this),data:this.data}})),this.viewRef=this.viewService.createView(this.content,{vcr:this.vcr,...this.viewOptions$}),this.detectChangesComponent&&Lv(this.content)&&this.viewRef.detectChanges();let o=this.viewRef.getElement();return WZ(this.useTextContent)&&(o=e.reference.textContent),Tv(o)&&this.globalConfig.beforeRender&&(o=this.globalConfig.beforeRender(o)),o}handleContextMenu(){cp(this.host,"contextmenu").pipe(hc(this.destroyed)).subscribe(e=>{e.preventDefault(),this.instance.setProps({getReferenceClientRect:()=>({width:0,height:0,top:e.clientY,bottom:e.clientY,left:e.clientX,right:e.clientX})}),this.instance.show()})}handleEscapeButton(){this.zone.runOutsideAngular(()=>{cp(document.body,"keydown").pipe(zt(({code:e})=>"Escape"===e),hc(ka(this.destroyed,this.visibleInternal.pipe(zt(e=>!e))))).subscribe(()=>this.hide())})}checkOverflow(e){e?this.instance?this.instance.enable():this.createInstance():this.instance?.disable()}listenToHostResize(){PZ(this.host).pipe(hc(ka(this.destroyed,this.visibleInternal))).subscribe(()=>{this.setInstanceWidth(this.instance,this.hostWidth)})}setInstanceWidth(e,o){const r=function cve(n){return function pve(n){return null==n}(n)?"":"string"==typeof n?n:`${n}px`}(o);e.popper.style.width=r,e.popper.style.maxWidth=r,e.popper.firstElementChild.style.maxWidth=r}}return n.\u0275fac=function(e){return new(e||n)(Te(Pg),Te(qZ),Te(Jo),Te(u8),Te(pc),Te(Lo),Te(fn))},n.\u0275dir=b0({type:n,selectors:[["","tippy",""]],inputs:{appendTo:"appendTo",delay:"delay",duration:"duration",hideOnClick:"hideOnClick",interactive:"interactive",interactiveBorder:"interactiveBorder",maxWidth:"maxWidth",offset:"offset",placement:"placement",popperOptions:"popperOptions",showOnCreate:"showOnCreate",trigger:"trigger",triggerTarget:"triggerTarget",zIndex:"zIndex",animation:"animation",useTextContent:"useTextContent",lazy:"lazy",variation:"variation",isEnabled:"isEnabled",className:"className",onlyTextOverflow:"onlyTextOverflow",data:"data",useHostWidth:"useHostWidth",hideOnEscape:"hideOnEscape",detectChangesComponent:"detectChangesComponent",popperWidth:"popperWidth",content:["tippy","content"],customHost:["tippyHost","customHost"],isVisible:"isVisible"},outputs:{visible:"visible"},exportAs:["tippy"],standalone:!0,features:[Fo]}),n})();function f8(n,t){return n in t}function WZ(n){return null!=n&&"false"!=`${n}`}const sP={theme:null,arrow:!1,animation:"scale",trigger:"mouseenter",offset:[0,5]};function cP(n={}){return{provide:qZ,useValue:n}}var RO;function dve(n,t){if(1&n&&(v(0,"storecloud-icon",3),p(1,"\n "),A()),2&n){const e=le(2);D("icon","teal"===e.theme?"help-circle":"help-circle-white")("size",e.size)}}function fve(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"span",1),p(3,"\n "),Q(4,dve,2,2,"storecloud-icon",2),p(5,"\n "),A(),p(6,"\n"),He()),2&n){const e=le();q(2),Wo("tippy",e.tooltip),D("placement",e.placement),q(2),D("ngIf",e.tooltip)}}let as=((RO=class{constructor(){this.tooltip=null,this.placement="auto",this.theme="teal",this.size=12}}).\u0275fac=function(t){return new(t||RO)},RO.\u0275cmp=kt({type:RO,selectors:[["storecloud-tooltip"]],inputs:{tooltip:"tooltip",placement:"placement",theme:"theme",size:"size"},standalone:!0,features:[$1([cP({defaultVariation:"tooltip",variations:{tooltip:{...sP,theme:"light",arrow:!0}}})]),Ho],decls:2,vars:1,consts:[[4,"ngIf"],[3,"tippy","placement"],[3,"icon","size",4,"ngIf"],[3,"icon","size"]],template:function(t,e){1&t&&(Q(0,fve,7,3,"ng-container",0),p(1,"\n")),2&t&&D("ngIf",e.tooltip)},dependencies:[Gn,f1,lp,Mr],styles:["app-icon[_ngcontent-%COMP%]{display:flex}"]}),RO);var SO;function hve(n,t){if(1&n&&(v(0,"span",10),p(1),A()),2&n){const e=le();q(1),t0(null==e.chart?null:e.chart.subTitle)}}function Mve(n,t){1&n&&(Ye(0),p(1," "),He())}as=Ke([h0({checkProperties:!0})],as);const bve=function(){return{display:"block",padding:"0px"}},gve=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function Ove(n,t){1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",11),p(2,"\n")),2&n&&(q(1),D("ngStyle",Et(2,bve))("theme",Et(3,gve)))}const mve=function(n){return{heading:!0,"has-subtitle":n}},_ve=function(n){return{opacity:n}};let lP=(SO=class{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.tabs=Object.values(Kr),this.loading=!0,this.color=["#06B1A9","#073433","#CAFFFF","#818181","#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],this.mediaQueryForChart=[{query:{maxWidth:500},option:{textStyle:{fontSize:10},tooltip:{textStyle:{fontSize:10}},series:{label:{fontSize:10}},legend:{textStyle:{fontSize:10}}}}],this._data=null,this.echartsExtentions=[V3e,hv,Gw,WG,bv]}drawChart(t){try{this.options={color:this.color,textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},title:[{text:t?.title?.subText,subtext:t?.title?.text,padding:0,left:"75%",top:"40%",itemGap:5,textAlign:"center",textStyle:{color:"#111111",fontFamily:"Montserrat",fontWeight:"bolder",fontSize:18},subtextStyle:{fontSize:10,color:"#888888"}},{text:t?.subTitle?.text,subtext:t?.subTitle?.subText,padding:[0,0,0,0],textAlign:"left",top:"5%",itemGap:5,textStyle:{fontWeight:"normal",fontSize:11,color:"#888888"},subtextStyle:{fontSize:16,color:"#111111",fontWeight:"bolder"}}],tooltip:{show:!0},legend:{orient:"vertical",top:"middle",textAlign:"left",left:"0",icon:"circle",itemGap:10,itemWidth:10,formatter:function(e){const o=t?.data?.find(r=>r.name===e)?.value;return`${e} (${o})`},textStyle:{fontSize:12,color:"#111111"}},series:[{type:"pie",radius:["70%","90%"],center:["75%","50%"],avoidLabelOverlap:!0,itemStyle:{borderWidth:2,borderColor:"#ffffff"},label:{show:!1},labelLine:{show:!1},data:t?.data}],media:this.mediaQueryForChart},ve(!0).pipe(Pi(300)).subscribe(()=>this.loading=!1)}catch(e){throw this.loading=!1,new Error(e)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let o=0;o${r?.toDateString()}\n
${t[o].seriesName}: ${t[o].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(at(this)).subscribe(e=>{if(e?.data?.length>3){const r=JSON.parse(JSON.stringify(e?.data?.slice(0,3))),i=JSON.parse(JSON.stringify(e?.data?.slice(3,e?.data?.length)));r.push({name:"Others",value:i?.map(a=>parseFloat(a.value?.toString()??"0")).reduce((a,s)=>a+s)}),e.data=r}this.drawChart(e)})}},SO.\u0275fac=function(t){return new(t||SO)},SO.\u0275cmp=kt({type:SO,selectors:[["storecloud-shared-chart-pie-doughnut"]],inputs:{chart:"chart",data:"data"},decls:26,vars:16,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","chart-pie-doughnut-container"],["echarts","",1,"chart-pie-doughnut",3,"id","options","ngStyle","defaultHeight","extentions","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),v(2,"div",1),p(3,"\n "),v(4,"p",2),p(5,"\n "),v(6,"span",3),p(7),Me(8,"storecloud-tooltip",4),p(9,"\n "),A(),p(10,"\n "),Q(11,hve,2,1,"span",5),p(12,"\n "),A(),p(13,"\n "),A(),p(14,"\n\n "),v(15,"div",6),p(16,"\n "),v(17,"div",7),yt("chartinit",function(r){return e.onChartInit(r)}),A(),p(18,"\n "),Q(19,Mve,2,0,"ng-container",8),p(20,"\n "),A(),p(21,"\n"),A(),p(22,"\n\n"),Q(23,Ove,3,4,"ng-template",null,9,$t),p(25,"\n")),2&t){const o=Ot(24);let r;q(2),D("ngClass",Ht(12,mve,null==e.chart?null:e.chart.showTabs)),q(5),Rt("\n ",null==e.chart?null:e.chart.title,"\n "),q(1),D("tooltip",null==e.chart?null:e.chart.tooltip),q(3),D("ngIf",null==e.chart?null:e.chart.subTitle),q(6),Wo("id",null!==(r=null==e.chart?null:e.chart.id)&&void 0!==r?r:"chart_pie-douhnut"),D("options",e.options)("ngStyle",Ht(14,_ve,e.loading?0:1))("defaultHeight",(null==e.chart?null:e.chart.height)||150)("extentions",e.echartsExtentions)("isResizable",!0),q(2),D("ngIf",!e.loading)("ngIfElse",o)}},dependencies:[ko,f1,ao,fr,gv,as],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{margin-top:10px;height:130px;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}.chart-pie-doughnut-container[_ngcontent-%COMP%]{height:160px;margin-top:4px}@media screen and (max-width: 550px){.chart-pie-doughnut-container[_ngcontent-%COMP%]{height:150px}}.chart-pie-doughnut[_ngcontent-%COMP%]{height:140px}"]}),SO);lP=Ke([h0({checkProperties:!0})],lP);let sM=(()=>{class n{constructor(e,o){this.changeDetectorRef=e,this.ngZone=o,this.timer=null}transform(e,o){if(this.removeTimer(),!e)return null;let r;r=Math.abs(Date.now()-parseInt(e?.toString()))typeof window<"u"?window.setTimeout(()=>{this.ngZone.run(()=>this.changeDetectorRef.markForCheck())},s):null);const c=Math.round(Math.abs(a/60)),l=Math.round(Math.abs(c/60)),u=Math.round(Math.abs(l/24)),h=(Math.round(Math.abs(u/30.416)),Math.round(Math.abs(u/365)));return Number.isNaN(a)?"":a<=1?o?"1 sec":"1s":a<=59?a+(o?" secs":"s"):c<=1?o?"1 minute":"1min":c<=59?c+(o?" minutes":"min"):l<=1?o?"1 hour":"1h":l<=24?l+(o?" hours":"h"):u<=1?o?"1 day":"1d":u<=345?u+(o?" days":"d"):u<=545?o?"1 year":"1y":h+(o?" years":"y")}ngOnDestroy(){this.removeTimer()}removeTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=null)}getSecondsUntilUpdate(e){return e<60?2:e<3600?30:e<86400?300:3600}}return n.\u0275fac=function(e){return new(e||n)(Te(dc,16),Te(Lo,16))},n.\u0275pipe=Hn({name:"timeAgo",type:n,pure:!1}),n})(),LZ=(()=>{class n{transform(e,o){return o=o||32,e=e?.toString()?.replace("https://","")?.replace("http://","")?.replace("www",""),e&&e?.length>o?e?.slice(0,o)+"...":e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"trim",type:n,pure:!1}),n})(),TZ=(()=>{class n{transform(e,o){let r;const i=["K","M","B","T","P","E"],a=e<0;return Number.isNaN(e)||e<1e3&&e>=0||!this.isNumeric(e)||e<0&&e>-1e3?(!o||this.isNumeric(e),this.toFixed(e,o)):a?(e*=-1,r=Math.floor(Math.log(e)/Math.log(1e3)),this.toFixed(-1*e/Math.pow(1e3,r),o)+i[r-1]):(r=Math.floor(Math.log(e)/Math.log(1e3)),this.toFixed(e/Math.pow(1e3,r),o)+i[r-1])}toFixed(e,o){try{return o?.force?e?.toFixed(o?.count):e?.toFixed(o?.count)?.replace(/[.,]00$/,"")}catch(r){return console.error(r),e}}isNumeric(e){return e<0&&(e*=-1),!!/^-{0,1}\d+$/.test(e)||!!/^\d+\.\d+$/.test(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"shortNumber",type:n,pure:!0}),n})(),RZ=(()=>{class n{transform(e,o){e.value=o}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"replaceValue",type:n,pure:!1}),n})(),SZ=(()=>{class n{transform(e){return this.formatBytes(parseInt(e))}formatBytes(e){if(0===e)return"0 Bytes";const s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"formatBytes",type:n,pure:!1}),n})();var cM=1e6,Rv="[big.js] ",lM=Rv+"Invalid ",pP=lM+"decimal places",wve=lM+"rounding mode",kZ=Rv+"Division by zero",co={},wu=void 0,Pve=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function pM(n,t,e,o){var r=n.c;if(e===wu&&(e=n.constructor.RM),0!==e&&1!==e&&2!==e&&3!==e)throw Error(wve);if(t<1)o=3===e&&(o||!!r[0])||0===t&&(1===e&&r[0]>=5||2===e&&(r[0]>5||5===r[0]&&(o||r[1]!==wu))),r.length=1,o?(n.e=n.e-t+1,r[0]=1):r[0]=n.e=0;else if(t=5||2===e&&(r[t]>5||5===r[t]&&(o||r[t+1]!==wu||1&r[t-1]))||3===e&&(o||!!r[0]),r.length=t,o)for(;++r[--t]>9;)if(r[t]=0,0===t){++n.e,r.unshift(1);break}for(t=r.length;!r[--t];)r.pop()}return n}function DO(n,t,e){var o=n.e,r=n.c.join(""),i=r.length;if(t)r=r.charAt(0)+(i>1?"."+r.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)r="0"+r;r="0."+r}else if(o>0)if(++o>i)for(o-=i;o--;)r+="0";else o1&&(r=r.charAt(0)+"."+r.slice(1));return n.s<0&&e?"-"+r:r}co.abs=function(){var n=new this.constructor(this);return n.s=1,n},co.cmp=function(n){var t,e=this,o=e.c,r=(n=new e.constructor(n)).c,i=e.s,a=n.s,s=e.e,c=n.e;if(!o[0]||!r[0])return o[0]?i:r[0]?-a:0;if(i!=a)return i;if(t=i<0,s!=c)return s>c^t?1:-1;for(a=(s=o.length)<(c=r.length)?s:c,i=-1;++ir[i]^t?1:-1;return s==c?0:s>c^t?1:-1},co.div=function(n){var t=this,e=t.constructor,o=t.c,r=(n=new e(n)).c,i=t.s==n.s?1:-1,a=e.DP;if(a!==~~a||a<0||a>cM)throw Error(pP);if(!r[0])throw Error(kZ);if(!o[0])return n.s=i,n.c=[n.e=0],n;var s,c,l,u,d,h=r.slice(),M=s=r.length,g=o.length,_=o.slice(0,s),z=_.length,y=n,x=y.c=[],L=0,S=a+(y.e=t.e-n.e)+1;for(y.s=i,i=S<0?0:S,h.unshift(0);z++z?1:-1;else for(d=-1,u=0;++d_[d]?1:-1;break}if(!(u<0))break;for(c=z==s?r:h;z;){if(_[--z]S&&pM(y,S,e.RM,_[0]!==wu),y},co.eq=function(n){return 0===this.cmp(n)},co.gt=function(n){return this.cmp(n)>0},co.gte=function(n){return this.cmp(n)>-1},co.lt=function(n){return this.cmp(n)<0},co.lte=function(n){return this.cmp(n)<1},co.minus=co.sub=function(n){var t,e,o,r,i=this,a=i.constructor,s=i.s,c=(n=new a(n)).s;if(s!=c)return n.s=-c,i.plus(n);var l=i.c.slice(),u=i.e,d=n.c,h=n.e;if(!l[0]||!d[0])return d[0]?n.s=-c:l[0]?n=new a(i):n.s=1,n;if(s=u-h){for((r=s<0)?(s=-s,o=l):(h=u,o=d),o.reverse(),c=s;c--;)o.push(0);o.reverse()}else for(e=((r=l.length0)for(;c--;)l[t++]=0;for(c=t;e>s;){if(l[--e]0?(c=a,o=l):(t=-t,o=s),o.reverse();t--;)o.push(0);o.reverse()}for(s.length-l.length<0&&(o=l,l=s,s=o),t=l.length,e=0;t;s[t]%=10)e=(s[--t]=s[t]+l[t]+e)/10|0;for(e&&(s.unshift(e),++c),t=s.length;0===s[--t];)s.pop();return n.c=s,n.e=c,n},co.pow=function(n){var t=this,e=new t.constructor("1"),o=e,r=n<0;if(n!==~~n||n<-1e6||n>1e6)throw Error(lM+"exponent");for(r&&(n=-n);1&n&&(o=o.times(t)),n>>=1;)t=t.times(t);return r?e.div(o):o},co.prec=function(n,t){if(n!==~~n||n<1||n>cM)throw Error(lM+"precision");return pM(new this.constructor(this),n,t)},co.round=function(n,t){if(n===wu)n=0;else if(n!==~~n||n<-cM||n>cM)throw Error(pP);return pM(new this.constructor(this),n+this.e+1,t)},co.sqrt=function(){var n,t,e,o=this,r=o.constructor,i=o.s,a=o.e,s=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(Rv+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),n=new r(((i=Math.sqrt(t))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+a)):n=new r(i+""),a=n.e+(r.DP+=4);do{n=s.times((e=n).plus(o.div(e)))}while(e.c.slice(0,a).join("")!==n.c.slice(0,a).join(""));return pM(n,(r.DP-=4)+n.e+1,r.RM)},co.times=co.mul=function(n){var t,e=this,r=e.c,i=(n=new(0,e.constructor)(n)).c,a=r.length,s=i.length,c=e.e,l=n.e;if(n.s=e.s==n.s?1:-1,!r[0]||!i[0])return n.c=[n.e=0],n;for(n.e=c+l,ac;)s=t[l]+i[c]*r[l-c-1]+s,t[l--]=s%10,s=s/10|0;t[l]=s}for(s?++n.e:t.shift(),c=t.length;!t[--c];)t.pop();return n.c=t,n},co.toExponential=function(n,t){var e=this,o=e.c[0];if(n!==wu){if(n!==~~n||n<0||n>cM)throw Error(pP);for(e=pM(new e.constructor(e),++n,t);e.c.lengthcM)throw Error(pP);for(n=n+(e=pM(new e.constructor(e),n+e.e+1,t)).e+1;e.c.length=t.PE,!!n.c[0])},co.toNumber=function(){var n=Number(DO(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(n.toString()))throw Error(Rv+"Imprecise conversion");return n},co.toPrecision=function(n,t){var e=this,o=e.constructor,r=e.c[0];if(n!==wu){if(n!==~~n||n<1||n>cM)throw Error(lM+"precision");for(e=pM(new o(e),n,t);e.c.length=o.PE,!!r)},co.valueOf=function(){var n=this,t=n.constructor;if(!0===t.strict)throw Error(Rv+"valueOf disallowed");return DO(n,n.e<=t.NE||n.e>=t.PE,!0)};var qve=function EZ(){function n(t){var e=this;if(!(e instanceof n))return t===wu?EZ():new n(t);if(t instanceof n)e.s=t.s,e.e=t.e,e.c=t.c.slice();else{if("string"!=typeof t){if(!0===n.strict&&"bigint"!=typeof t)throw TypeError(lM+"value");t=0===t&&1/t<0?"-0":String(t)}!function xve(n,t){var e,o,r;if(!Pve.test(t))throw Error(lM+"number");for(n.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(e=t.indexOf("."))>-1&&(t=t.replace(".","")),(o=t.search(/e/i))>0?(e<0&&(e=o),e+=+t.slice(o+1),t=t.substring(0,o)):e<0&&(e=t.length),r=t.length,o=0;o0&&"0"==t.charAt(--r););for(n.e=e-o-1,n.c=[],e=0;o<=r;)n.c[e++]=+t.charAt(o++)}}(e,t)}e.constructor=n}return n.prototype=co,n.DP=20,n.RM=1,n.NE=-7,n.PE=21,n.strict=false,n.roundDown=0,n.roundHalfUp=1,n.roundHalfEven=2,n.roundUp=3,n}();const e1=qve;let Sv=(()=>{class n{constructor(){this.supportedNetworks=lt.AvailableNetworks}transform(e){const o=this.supportedNetworks.find(a=>a.symbol===e);let r=o?o?.name:e;return e===lt.Unit.BITS||(r=e===lt.Unit.USD?"US Dollar":e===lt.Unit.SATS||e===lt.Unit.WEI||e===lt.Unit.GWEI?e.toLocaleLowerCase():e===lt.Unit.PERCENT?"%":e===lt.Unit.SETH?"sETH":e.toUpperCase()),{name:r,icon:o?o?.icon:""}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"denomination",type:n,pure:!1}),n})(),uP=(()=>{class n{constructor(e){this.denominationPipe=e}transform(e,o){const r=lt.AllowedCurrenciesDecimalPlacesMapping[e?.unit],i=e?.value?e.value[e.unit]:"0",a="number"==typeof r?parseFloat(i).toLocaleString("en-US",{minimumFractionDigits:o??r,maximumFractionDigits:o??r}):i,s=this.denominationPipe.transform(e?.unit);switch(e?.unit){case lt.Unit.PERCENT:return{type:"html",value:this.makeBeforeDecimalBold(e1(a).mul(100)?.toString()),symbol:"%"};case lt.Unit.USD:return{type:"html",preSymbol:"$",value:this.makeBeforeDecimalBold(a)};case lt.Unit.STORE:return{valueIcon:"store-logo-only",valueIconSize:14,type:"html",value:this.makeBeforeDecimalBold(a),symbol:"STORE"};case lt.Unit.BITS:return{valueIcon:"store-logo-only",value:a,type:"string",symbol:parseFloat(a??"0")>1?" bits":"bit"};default:return{type:"html",value:this.makeBeforeDecimalBold(a),valueIcon:s.icon,valueIconSize:14,symbol:s?.name}}}makeBeforeDecimalBold(e){let o=e?.split(".");return 1===o.length?`${e}`:`${o[0]}.${o[1]}`}}return n.\u0275fac=function(e){return new(e||n)(Te(Sv,16))},n.\u0275pipe=Hn({name:"oracleFormatValue",type:n,pure:!1}),n})(),NZ=(()=>{class n{transform(e){return"dynamic-proof-of-stake"===e?"Dynamic Proof-Of-Stake (DyPoS)":e?.toString().replace("-"," ").replace(/(^|\s)\S/g,r=>r.toUpperCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Hn({name:"transformValue",type:n,pure:!1}),n})();const Wve=G(1158);let Dv=(()=>{class n{constructor(e){this.timeAgoPipe=e}transform(e,o){if(!e)return null;const r=Wve(e).tz("GMT"),i=this.timeAgoPipe.transform(new Date(r).valueOf(),!0);return`${r.format("DD/MM/YYYY h:mm A z")} ${o?"":`(${i} ago)`} `?.toUpperCase()}}return n.\u0275fac=function(e){return new(e||n)(Te(sM,16))},n.\u0275pipe=Hn({name:"dateFormat",type:n,pure:!1}),n})();var kO;function Lve(n,t){if(1&n&&(v(0,"span",11),p(1),A()),2&n){const e=le();q(1),t0(null==e.chart?null:e.chart.subTitle)}}const Tve=function(n){return{current:n}};function Rve(n,t){if(1&n){const e=b1();v(0,"li",14),yt("click",function(){const i=T0(e).$implicit,a=le(2);return a.activeTab=i,v0(a.tabChange(i))}),p(1),A()}if(2&n){const e=t.$implicit,o=le(2);D("ngClass",Ht(2,Tve,e===o.activeTab)),q(1),Rt("\n ",e,"\n ")}}function Sve(n,t){if(1&n&&(v(0,"ul",12),p(1,"\n "),Q(2,Rve,2,4,"li",13),p(3,"\n "),A()),2&n){const e=le();q(2),D("ngForOf",e.tabs)}}function Dve(n,t){1&n&&(Ye(0),p(1," "),He())}const kve=function(){return{display:"block",padding:"0px"}},Eve=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function Nve(n,t){1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",15),p(2,"\n")),2&n&&(q(1),D("ngStyle",Et(2,kve))("theme",Et(3,Eve)))}const Ive=function(n){return{heading:!0,"has-subtitle":n}},Bve=function(n){return{opacity:n}};let dP=(kO=class{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(t){this.dateFormatPipe=t,this.chart=null,this.tabEvent=new G1,this.tabs=Object.values(Kr),this.loading=!0,this.activeTab=Kr.D1,this.color=["#06B1A9","#073433","#CAFFFF","#818181","#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],this.mediaQueryForChart=[{query:{maxWidth:500},option:{textStyle:{fontSize:10},tooltip:{textStyle:{fontSize:10}},series:{label:{fontSize:10}},legend:{textStyle:{fontSize:10}}}}],this._data=null,this.echartsExtentions=[fw,WG,hv,Gw,bv]}ngAfterViewInit(){this.tabChange(this.activeTab)}tabChange(t){const e=new Date;let o=new Date;switch(t){case Kr.D1:o.setDate(e.getDate()-1);break;case Kr.D7:o.setDate(e.getDate()-7);break;case Kr.D30:o.setDate(e.getDate()-30);break;case Kr.YTD:o=new Date((new Date).getFullYear(),0,1)}this.tabEvent.emit({from:t===Kr.AllTime?void 0:o?.getTime(),till:t===Kr.AllTime?void 0:e?.getTime()})}drawChart(t){const e=[];t?.series?.forEach(i=>{e.push({name:i.name,type:"line",stack:"Total",symbol:"none",emphasis:{focus:"series"},areaStyle:{},data:i?.data?.map(a=>[new Date(a.date).valueOf(),parseFloat(a.value?.toString())])})});const o=t?.series?.[0]?.data.sort((i,a)=>new Date(a.date).getTime()-new Date(i.date).getTime())[0],r=this.dateFormatPipe.transform(o?.date);try{this.options={color:this.color,textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},title:[{text:`Last updated: ${r}`,top:"bottom",textStyle:{fontSize:10,fontWeight:"normal",color:"#707070"}}],tooltip:{trigger:"axis",triggerOn:"click|mousemove",hideDelay:500,axisPointer:{type:"line"},formatter:function(i){const a=i[0].value?.[0];let s="";for(let c=0;c',s+=""+i[c].seriesName+": "+Fve(i[c].value?.[1],2)+"
";return`Date: ${new Date(a)?.toLocaleString()}
${s}`}},legend:{show:!0,orient:"horizontal",x:"left",icon:"circle",itemGap:40,itemWidth:10,textStyle:{fontSize:12,color:"#707070",lineHeight:18,padding:[0,0,0,10]}},grid:{top:"20%",left:"0px",right:"0px",bottom:"20%"},xAxis:[{type:"time",boundaryGap:!1,axisLabel:{show:!1},axisLine:{show:!1,lineStyle:{color:"transparent"}},splitArea:{show:!1},splitLine:{show:!0,lineStyle:{color:"#111111",type:"dashed",opacity:.1}}}],yAxis:[{show:!1,type:"value"}],series:e,media:this.mediaQueryForChart},ve(!0).pipe(Pi(300)).subscribe(()=>this.loading=!1)}catch(i){throw this.loading=!1,new Error(i)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let o=0;o${r?.toDateString()}\n
${t[o].seriesName}: ${t[o].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(at(this)).subscribe(e=>{e?.series?.forEach(o=>{o.data=cu.orderBy(o.data,"date","asc")}),this.drawChart(e)})}},kO.\u0275fac=function(t){return new(t||kO)(Te(Dv))},kO.\u0275cmp=kt({type:kO,selectors:[["storecloud-shared-chart-area-line"]],inputs:{chart:"chart",data:"data"},outputs:{tabEvent:"tabEvent"},features:[$1([Dv,sM])],decls:28,vars:17,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],["class","tabs-list",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","chart-area-line-container"],["echarts","",1,"chart-area-line",3,"id","options","extentions","defaultHeight","ngStyle","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],[1,"tabs-list"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),v(2,"div",1),p(3,"\n "),v(4,"p",2),p(5,"\n "),v(6,"span",3),p(7),Me(8,"storecloud-tooltip",4),p(9,"\n "),A(),p(10,"\n "),Q(11,Lve,2,1,"span",5),p(12,"\n "),A(),p(13,"\n "),Q(14,Sve,4,1,"ul",6),p(15,"\n "),A(),p(16,"\n\n "),v(17,"div",7),p(18,"\n "),v(19,"div",8),yt("chartinit",function(r){return e.onChartInit(r)}),A(),p(20,"\n "),Q(21,Dve,2,0,"ng-container",9),p(22,"\n "),A(),p(23,"\n"),A(),p(24,"\n\n"),Q(25,Nve,3,4,"ng-template",null,10,$t),p(27,"\n")),2&t){const o=Ot(26);let r;q(2),D("ngClass",Ht(13,Ive,null==e.chart?null:e.chart.showTabs)),q(5),Rt("\n ",null==e.chart?null:e.chart.title,"\n "),q(1),D("tooltip",null==e.chart?null:e.chart.tooltip),q(3),D("ngIf",null==e.chart?null:e.chart.subTitle),q(3),D("ngIf",null==e.chart?null:e.chart.showTabs),q(5),Wo("id",null!==(r=null==e.chart?null:e.chart.id)&&void 0!==r?r:"chart_area-line"),D("options",e.options)("extentions",e.echartsExtentions)("defaultHeight",(null==e.chart?null:e.chart.height)||150)("ngStyle",Ht(15,Bve,e.loading?0:1))("isResizable",!0),q(2),D("ngIf",!e.loading)("ngIfElse",o)}},dependencies:[ko,er,f1,ao,fr,gv,as],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}.chart-area-line-container[_ngcontent-%COMP%]{height:160px}.chart-area-line[_ngcontent-%COMP%]{height:150px}"]}),kO);function Fve(n,t=2){if(!+n)return"0 Bytes";const o=t<0?0:t,i=Math.floor(Math.log(n)/Math.log(1e3));return`${parseFloat((n/Math.pow(1e3,i)).toFixed(o))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}`}var EO;function Yve(n,t){1&n&&(Ye(0),p(1," "),He())}dP=Ke([h0({checkProperties:!0})],dP);const Hve=function(){return{display:"block",padding:"0"}},Xve=function(){return{"margin-top":"0px","margin-bottom":"10px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"8px"}};function jve(n,t){1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",4),p(2,"\n")),2&n&&(q(1),D("ngStyle",Et(2,Hve))("theme",Et(3,Xve)))}const Uve=function(n){return{height:"100%",padding:n}},Vve=function(n){return{height:"100%",opacity:n}};let h8=(EO=class{set data(t){this.drawChart(t)}constructor(){this.chart=null,this.loading=!0,this.__chart=null,this.echartsExtentions=[fw,hv,Gw,bv]}onChartInit(t){this._chart=t}drawChart(t){this._chart&&this._chart.destroy();try{this.options=t,t&&ve(!0).pipe(Pi(600)).subscribe(()=>this.loading=!1)}catch(e){throw new Error(e)}}get pChart(){return this._chart}},EO.\u0275fac=function(t){return new(t||EO)},EO.\u0275cmp=kt({type:EO,selectors:[["storecloud-shared-chart-dynamic"]],inputs:{chart:"chart",data:"data"},decls:10,vars:14,consts:[[3,"ngStyle"],["id","dynamicChart","echarts","",3,"extentions","isResizable","options","ngStyle","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),v(2,"div",1),yt("chartinit",function(r){return e.onChartInit(r)}),A(),p(3,"\n "),Q(4,Yve,2,0,"ng-container",2),p(5,"\n"),A(),p(6,"\n\n"),Q(7,jve,3,4,"ng-template",null,3,$t),p(9,"\n")),2&t){const o=Ot(8);wn("content p-0 pr-0 ",null!=e.chart&&e.chart.showYAxisLabel&&!e.loading?"pl-2":"",""),D("ngStyle",Ht(10,Uve,null==e.chart||null==e.chart.cssStyle?null:e.chart.cssStyle.padding)),q(2),D("extentions",e.echartsExtentions)("isResizable",!0)("options",e.options)("ngStyle",Ht(12,Vve,e.loading?0:1)),q(2),D("ngIf",!e.loading)("ngIfElse",o)}},dependencies:[f1,ao,fr,gv],styles:["ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-50%;left:50%;transform:translate(-50%,-50%)}"]}),EO);var NO;function $ve(n,t){if(1&n&&Me(0,"storecloud-tooltip",15),2&n){const e=le();D("tooltip",null==e.stats$?null:e.stats$.tooltip)}}function Gve(n,t){1&n&&(Ye(0),p(1,"\n "),He())}function Zve(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,Gve,2,0,"ng-container",4),p(3,"\n "),He()),2&n){const e=le(),o=Ot(25),r=Ot(28);q(2),D("ngIf",null!=(null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfThen",o)("ngIfElse",r)}}function Kve(n,t){1&n&&(Ye(0),p(1,"\n "),He())}h8=Ke([h0({checkProperties:!0})],h8);const Jve=function(n){return{items$:n}};function Qve(n,t){if(1&n&&(p(0,"\n "),v(1,"div"),p(2,"\n "),Ye(3,16),p(4,"\n "),He(),p(5,"\n "),A(),p(6,"\n")),2&n){const e=le(),o=Ot(34);q(1),wn("content grid-",(null==e.stats$||null==e.stats$.items$?null:e.stats$.items$.length)||e.loadingCount,""),q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(5,Jve,null==e.stats$?null:e.stats$.items$))}}const eAe=function(n){return{items:n}};function tAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,16),p(3,"\n "),He()),2&n){const e=t.ngIf;le(2);const o=Ot(37);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,eAe,e))}}function nAe(n,t){if(1&n&&(p(0,"\n "),v(1,"div"),p(2,"\n "),Q(3,tAe,4,4,"ng-container",17),p(4,"\n "),A(),p(5,"\n")),2&n){const e=le(),o=Ot(43);q(1),wn("content grid-",(null==e.stats$||null==e.stats$.items?null:e.stats$.items.length)||e.loadingCount,""),q(2),D("ngIf",null==e.stats$?null:e.stats$.items)("ngIfElse",o)}}const fP=function(n){return{item:n}};function oAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,16),p(3,"\n "),He()),2&n){const e=t.ngIf;le(2);const o=Ot(31);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,fP,e))}}function rAe(n,t){if(1&n&&(p(0,"\n "),Q(1,oAe,4,4,"ng-container",17),ut(2,"async"),p(3,"\n")),2&n){const e=le(),o=Ot(46);q(1),D("ngIf",a0(2,2,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfElse",o)}}function iAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,16),p(3,"\n "),He()),2&n){const e=t.ngIf;le(2);const o=Ot(31);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,fP,e))}}function aAe(n,t){if(1&n&&(p(0,"\n "),Q(1,iAe,4,4,"ng-container",17),p(2,"\n")),2&n){const e=le(),o=Ot(46);q(1),D("ngIf",null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item)("ngIfElse",o)}}function sAe(n,t){if(1&n&&(p(0,"\n "),v(1,"p",18),p(2,"\n "),Me(3,"storecloud-shared-value-formatter",19),p(4,"\n "),A(),p(5,"\n")),2&n){const e=t.item;q(3),D("item",e)("cssClass","heading-text-black "+(null==e?null:e.cssClass))("loadingWidth",100)("iconSize",25)}}function cAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,16),p(3,"\n "),He()),2&n){const e=t.ngIf;le(3);const o=Ot(40);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,fP,e))}}function lAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,cAe,4,4,"ng-container",17),ut(3,"async"),p(4,"\n "),He()),2&n){const e=t.$implicit;le(2);const o=Ot(43);q(2),D("ngIf",a0(3,2,e))("ngIfElse",o)}}function pAe(n,t){if(1&n&&(p(0,"\n "),Q(1,lAe,5,4,"ng-container",20),p(2,"\n")),2&n){const e=t.items$;q(1),D("ngForOf",e)}}function uAe(n,t){if(1&n&&(Ye(0),p(1,"\n\n "),m0(2,16),p(3,"\n "),He()),2&n){const e=t.$implicit;le(2);const o=Ot(40);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,fP,e))}}function dAe(n,t){if(1&n&&(p(0,"\n\n "),Q(1,uAe,4,4,"ng-container",20),p(2,"\n")),2&n){const e=t.items;q(1),D("ngForOf",e)}}function fAe(n,t){if(1&n&&Me(0,"storecloud-icon",26),2&n){const e=le().item;D("icon",null==e?null:e.icon)}}function hAe(n,t){if(1&n&&(p(0,"\n "),v(1,"div",21),p(2,"\n "),v(3,"div",22),p(4,"\n "),Q(5,fAe,1,1,"storecloud-icon",23),p(6,"\n "),Me(7,"storecloud-shared-value-formatter",24),p(8,"\n "),A(),p(9,"\n "),v(10,"p",25),p(11),A(),p(12,"\n "),A(),p(13,"\n")),2&n){const e=t.item;q(5),D("ngIf",null==e?null:e.icon),q(2),D("item",e),q(3),wn("text-light d-flex ",null!=e&&e.inlineTooltip?"inlineTooltip":"",""),D("tippy",null!=e&&e.inlineTooltip?null==e?null:e.tooltip:null),q(1),Rt("\n ",null==e?null:e.label,"\n ")}}const MAe=function(){return{display:"contents"}},bAe=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"36px"}};function gAe(n,t){if(1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",27),p(2,"\n")),2&n){const e=le();q(1),Wo("count",e.loadingCount),D("ngStyle",Et(3,MAe))("theme",Et(4,bAe))}}const OAe=function(){return{display:"flex",width:"100px","justify-self":"flex-end"}},mAe=function(){return{"margin-top":"0px","margin-bottom":"0px"}};function _Ae(n,t){1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",28),p(2,"\n")),2&n&&(q(1),D("ngStyle",Et(2,OAe))("theme",Et(3,mAe)))}const zAe=function(n){return{card:n}},vAe=function(n){return{heading:!0,"has-subtitle":n}};let kv=(NO=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3}trackByFuntion(t,e){return e?.blockId??e?.transactionId??t?.id}},NO.\u0275fac=function(t){return new(t||NO)},NO.\u0275cmp=kt({type:NO,selectors:[["storecloud-shared-stats-card-with-icon-number"]],inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount"},decls:48,vars:12,consts:[[3,"ngClass"],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["items$Draw",""],["itemsDraw",""],["subTitleItem$",""],["subTitleItem",""],["subTitleValueFormatt",""],["itemTemp",""],["valueFormatt",""],["valueFormatTemp",""],["loader3",""],["loader1",""],[3,"tooltip"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[1,"heading-text-black"],[1,"d-flex-justify-end",3,"item","cssClass","loadingWidth","iconSize"],[4,"ngFor","ngForOf"],[1,"data-div"],[1,"icon-text"],["class","mb-minus-1 icon-16-size",3,"icon",4,"ngIf"],[3,"item"],["placement","bottom",3,"tippy"],[1,"mb-minus-1","icon-16-size",3,"icon"],["animation","progress",3,"count","ngStyle","theme"],["count","1","animation","progress",1,"value-loader-custom-height-black",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),Ye(2),p(3,"\n "),v(4,"div",0),p(5,"\n "),v(6,"p",1),p(7),Q(8,$ve,1,1,"storecloud-tooltip",2),p(9,"\n "),A(),p(10,"\n "),Q(11,Zve,4,3,"ng-container",3),p(12,"\n "),A(),p(13,"\n "),Q(14,Kve,2,0,"ng-container",4),p(15,"\n "),He(),p(16,"\n"),A(),p(17,"\n\n"),Q(18,Qve,7,7,"ng-template",null,5,$t),p(20,"\n\n"),Q(21,nAe,6,5,"ng-template",null,6,$t),p(23,"\n\n"),Q(24,rAe,4,4,"ng-template",null,7,$t),p(26,"\n"),Q(27,aAe,3,2,"ng-template",null,8,$t),p(29,"\n\n"),Q(30,sAe,6,4,"ng-template",null,9,$t),p(32,"\n"),Q(33,pAe,3,1,"ng-template",null,10,$t),p(35,"\n"),Q(36,dAe,3,1,"ng-template",null,11,$t),p(38,"\n\n"),Q(39,hAe,14,7,"ng-template",null,12,$t),p(41,"\n\n"),Q(42,gAe,3,5,"ng-template",null,13,$t),p(44,"\n\n"),Q(45,_Ae,3,4,"ng-template",null,14,$t),p(47,"\n")),2&t){const o=Ot(19),r=Ot(22);D("ngClass",Ht(8,zAe,!e.disableCardClass)),q(4),D("ngClass",Ht(10,vAe,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.enable)),q(3),Rt("\n ",null==e.stats$?null:e.stats$.title," "),q(1),D("ngIf",null==e.stats$?null:e.stats$.tooltip),q(3),D("ngIf",null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.enable),q(3),D("ngIf",null!=(null==e.stats$?null:e.stats$.items$))("ngIfThen",o)("ngIfElse",r)}},styles:[".card[_ngcontent-%COMP%]{display:grid} .value-loader-custom-height-black .loader{height:2.6rem!important}@media screen and (max-width: 1024px){ .value-loader-custom-height-black .loader{height:2.4rem!important}}@media screen and (max-width: 525px){ .value-loader-custom-height-black .loader{height:1.8rem!important}}"]}),NO);var IO;function AAe(n,t){if(1&n&&(v(0,"span"),p(1),A()),2&n){const e=le(2);q(1),t0(null==e.number$?null:e.number$.symbol)}}function yAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"p",5),p(3,"\n "),v(4,"span"),p(5),ut(6,"number"),A(),p(7," "),Q(8,AAe,2,1,"span",6),p(9,"\n "),A(),p(10,"\n "),He()),2&n){const e=t.ngIf,o=le();q(5),Rt(" ",a0(6,2,e),""),q(3),D("ngIf",null==o.number$?null:o.number$.symbol)}}kv=Ke([h0({checkProperties:!0})],kv);const CAe=function(){return{display:"contents"}},wAe=function(){return{"margin-top":"10px","margin-bottom":"10px",height:"30px",width:"60px","margin-left":"auto","margin-right":"auto","border-radius":"10px"}};function PAe(n,t){1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",7),p(2,"\n")),2&n&&(q(1),D("ngStyle",Et(2,CAe))("theme",Et(3,wAe)))}let M8=((IO=class{constructor(){this.disableCardClass=!1,this.number$=null}}).\u0275fac=function(t){return new(t||IO)},IO.\u0275cmp=kt({type:IO,selectors:[["storecloud-shared-number-card"]],inputs:{disableCardClass:"disableCardClass",number$:"number$"},decls:15,vars:5,consts:[[1,"card"],[1,"content","block-content"],[1,"text-light"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-teal-big"],[4,"ngIf"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),v(2,"div",1),p(3,"\n "),v(4,"p",2),p(5),A(),p(6,"\n "),Q(7,yAe,11,4,"ng-container",3),ut(8,"async"),p(9,"\n "),A(),p(10,"\n"),A(),p(11,"\n"),Q(12,PAe,3,4,"ng-template",null,4,$t),p(14,"\n")),2&t){const o=Ot(13);q(5),t0(null==e.number$?null:e.number$.title),q(2),D("ngIf",a0(8,3,null==e.number$?null:e.number$.value))("ngIfElse",o)}},dependencies:[f1,ao,fr,Ma,ou]}),IO);var BO;M8=Ke([h0({checkProperties:!0})],M8);const xAe=["scrollToSection"];function qAe(n,t){if(1&n&&Me(0,"storecloud-tooltip",12),2&n){const e=le();D("tooltip",null==e.stats$?null:e.stats$.tooltip)}}function WAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"p",14),p(3,"\n "),v(4,"span",15),p(5),A(),p(6,"\n "),Me(7,"storecloud-shared-value-formatter",16),p(8,"\n "),A(),p(9,"\n "),He()),2&n){const e=t.ngIf;q(5),Rt("",null==e?null:e.label," "),q(2),D("item",e)("cssClass","text-black")("iconSize",14)}}function LAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,WAe,10,4,"ng-container",13),ut(3,"async"),p(4,"\n "),He()),2&n){const e=le(),o=Ot(32);q(2),D("ngIf",a0(3,2,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.item$))("ngIfElse",o)}}function TAe(n,t){1&n&&(Ye(0),p(1,"\n "),He())}const IZ=function(n){return{item:n}};function RAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,18),p(3,"\n "),He()),2&n){const e=t.ngIf;le(3);const o=Ot(26);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,IZ,e))}}function SAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,RAe,4,4,"ng-container",13),ut(3,"async"),p(4,"\n "),He()),2&n){const e=t.$implicit;le(2);const o=Ot(35);q(2),D("ngIf",a0(3,2,e))("ngIfElse",o)}}function DAe(n,t){if(1&n&&(p(0,"\n "),v(1,"div"),p(2,"\n "),Q(3,SAe,5,4,"ng-container",17),p(4,"\n "),A(),p(5,"\n")),2&n){const e=le();q(1),wn("content grid-",(null==e.stats$||null==e.stats$.items$?null:e.stats$.items$.length)||e.loadingCount,""),q(2),D("ngForOf",null==e.stats$?null:e.stats$.items$)}}function kAe(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,18),p(3,"\n "),He()),2&n){const e=t.$implicit;le(2);const o=Ot(26);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(2,IZ,e))}}function EAe(n,t){if(1&n&&(p(0,"\n "),v(1,"div"),p(2,"\n "),Q(3,kAe,4,4,"ng-container",17),p(4,"\n "),A(),p(5,"\n")),2&n){const e=le();q(1),wn("content grid-",(null==e.stats$||null==e.stats$.items?null:e.stats$.items.length)||e.loadingCount,""),q(2),D("ngForOf",null==e.stats$?null:e.stats$.items)}}function NAe(n,t){if(1&n&&Me(0,"storecloud-icon",23),2&n){const e=le(2).item;D("icon",null==e?null:e.icon)("size",14)}}function IAe(n,t){if(1&n&&Me(0,"storecloud-tooltip",12),2&n){const e=le(2).item;D("tooltip",null==e?null:e.tooltip)}}function BAe(n,t){if(1&n&&(v(0,"p",21),p(1,"\n "),Q(2,NAe,1,2,"storecloud-icon",22),p(3),Q(4,IAe,1,1,"storecloud-tooltip",3),p(5,"\n "),A()),2&n){const e=le().item;wn("text-light d-flex g-2 ",null!=e&&e.inlineTooltip?"inlineTooltip":"",""),D("tippy",null!=e&&e.inlineTooltip?null==e?null:e.tooltip:null),q(2),D("ngIf",null==e?null:e.icon),q(1),Rt("\n ",null==e?null:e.label,"\n "),q(1),D("ngIf",(null==e?null:e.tooltip)&&!(null!=e&&e.inlineTooltip))}}function FAe(n,t){if(1&n&&Me(0,"storecloud-shared-value-formatter",24),2&n){const e=le().item;D("item",null==e?null:e.subItems)("cssClass",null==e||null==e.subItems?null:e.subItems.cssClass)}}function YAe(n,t){if(1&n&&Me(0,"storecloud-shared-value-formatter",24),2&n){const e=le().item;D("item",null==e||null==e.subItems?null:e.subItems.subItems)("cssClass",null==e||null==e.subItems||null==e.subItems.subItems?null:e.subItems.subItems.cssClass)}}const HAe=function(n){return{"data-div":!0,"flex-column":n}},XAe=function(n){return{"d-100":!0,"flex-col":n}};function jAe(n,t){if(1&n&&(p(0,"\n "),v(1,"div",0),p(2,"\n "),Q(3,BAe,6,7,"p",19),p(4,"\n "),v(5,"div",0),p(6,"\n "),Me(7,"storecloud-shared-value-formatter",16),p(8,"\n "),Q(9,FAe,1,2,"storecloud-shared-value-formatter",20),p(10,"\n "),Q(11,YAe,1,2,"storecloud-shared-value-formatter",20),p(12,"\n "),A(),p(13,"\n "),A(),p(14,"\n")),2&n){const e=t.item;q(1),D("ngClass",Ht(8,HAe,"select"===(null==e?null:e.type))),q(2),D("ngIf",null==e?null:e.label),q(2),D("ngClass",Ht(10,XAe,null==e?null:e.inlineSubItems)),q(2),D("item",e)("cssClass","text-black "+(null==e?null:e.cssClass))("iconSize",14),q(2),D("ngIf",null==e?null:e.subItems),q(2),D("ngIf",null==e||null==e.subItems?null:e.subItems.subItems)}}const b8=function(){return{display:"contents"}},UAe=function(){return{"margin-top":"10px","margin-bottom":"0px"}};function VAe(n,t){if(1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",25),p(2,"\n")),2&n){const e=le();q(1),Wo("count",e.loadingCount),D("ngStyle",Et(3,b8))("theme",Et(4,UAe))}}const $Ae=function(){return{"margin-top":"0px","margin-bottom":"0px"}};function GAe(n,t){1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",26),p(2,"\n")),2&n&&(q(1),D("ngStyle",Et(2,b8))("theme",Et(3,$Ae)))}const ZAe=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"35px"}};function KAe(n,t){1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",26),p(2,"\n")),2&n&&(q(1),D("ngStyle",Et(2,b8))("theme",Et(3,ZAe)))}const JAe=function(n,t){return{card:n,"flex-col-between":t}},QAe=function(n){return{heading:!0,"has-subtitle":n}};let FO=((BO=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3,this.scrollToSection=void 0}}).\u0275fac=function(t){return new(t||BO)},BO.\u0275cmp=kt({type:BO,selectors:[["storecloud-shared-stats-card-normal"]],viewQuery:function(t,e){if(1&t&&uc(xAe,5),2&t){let o;xs(o=qs())&&(e.scrollToSection=o.first)}},inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount"},decls:37,vars:13,consts:[[3,"ngClass"],["scrollToSection",""],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["items$Draw",""],["itemsDraw",""],["valueFormatt",""],["loader3",""],["loader1",""],["itemLoader",""],[3,"tooltip"],[4,"ngIf","ngIfElse"],[1,"d-flex"],[1,"text-light"],[3,"item","cssClass","iconSize"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","tippy",4,"ngIf"],[3,"item","cssClass",4,"ngIf"],[3,"tippy"],["class","mr-minus-10",3,"icon","size",4,"ngIf"],[1,"mr-minus-10",3,"icon","size"],[3,"item","cssClass"],["animation","progress",3,"count","ngStyle","theme"],["count","1","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0,1),p(2,"\n "),Ye(3),p(4,"\n "),v(5,"div",0),p(6,"\n "),v(7,"p",2),p(8),Q(9,qAe,1,1,"storecloud-tooltip",3),p(10,"\n "),A(),p(11,"\n "),Q(12,LAe,5,4,"ng-container",4),p(13,"\n "),A(),p(14,"\n "),Q(15,TAe,2,0,"ng-container",5),p(16,"\n "),He(),p(17,"\n"),A(),p(18,"\n"),Q(19,DAe,6,4,"ng-template",null,6,$t),p(21,"\n\n"),Q(22,EAe,6,4,"ng-template",null,7,$t),p(24,"\n\n"),Q(25,jAe,15,12,"ng-template",null,8,$t),p(27,"\n"),Q(28,VAe,3,5,"ng-template",null,9,$t),p(30,"\n\n"),Q(31,GAe,3,4,"ng-template",null,10,$t),p(33,"\n\n"),Q(34,KAe,3,4,"ng-template",null,11,$t),p(36,"\n")),2&t){const o=Ot(20),r=Ot(23);D("ngClass",Cr(8,JAe,!e.disableCardClass,!e.disableCardClass)),q(5),D("ngClass",Ht(11,QAe,null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.enable)),q(3),Rt("\n ",null==e.stats$?null:e.stats$.title,"\n "),q(1),D("ngIf",null==e.stats$?null:e.stats$.tooltip),q(3),D("ngIf",null==e.stats$||null==e.stats$.subTitle?null:e.stats$.subTitle.enable),q(3),D("ngIf",null!=(null==e.stats$?null:e.stats$.items$))("ngIfThen",o)("ngIfElse",r)}},styles:[".mr-minus-10[_ngcontent-%COMP%]{margin-right:-10px}"]}),BO);var YO;function eye(n,t){if(1&n&&(v(0,"span",11),p(1),A()),2&n){const e=le();q(1),t0(null==e.chart?null:e.chart.subTitle)}}FO=Ke([h0({checkProperties:!0})],FO);const tye=function(n){return{current:n}};function nye(n,t){if(1&n){const e=b1();v(0,"li",14),yt("click",function(){const i=T0(e).$implicit,a=le(2);return a.activeTab=i,v0(a.tabChange(i))}),p(1),A()}if(2&n){const e=t.$implicit,o=le(2);D("ngClass",Ht(2,tye,e===o.activeTab)),q(1),Rt("\n ",e,"\n ")}}function oye(n,t){if(1&n&&(v(0,"ul",12),p(1,"\n "),Q(2,nye,2,4,"li",13),p(3,"\n "),A()),2&n){const e=le();q(2),D("ngForOf",e.tabs)}}function rye(n,t){1&n&&(Ye(0),p(1," "),He())}const iye=function(){return{display:"block",padding:"0px"}},aye=function(){return{"margin-top":"0px","margin-bottom":"0px",height:"100%",width:"100%",position:"relative","margin-left":"auto","margin-right":"auto","border-radius":"10px","font-size":"8px"}};function sye(n,t){1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",15),p(2,"\n")),2&n&&(q(1),D("ngStyle",Et(2,iye))("theme",Et(3,aye)))}const cye=function(n){return{heading:!0,"has-subtitle":n}},lye=function(n){return{opacity:n}};let hP=(YO=class{set data(t){this.loading=!0,this.subscribeToData(t)}get data(){return this._data}constructor(){this.chart=null,this.tabEvent=new G1,this.tabs=Object.values(Kr),this.loading=!0,this.activeTab=Kr.AllTime,this._data=null,this.echartsExtentions=[fw,hv,Gw,bv]}tabChange(t){const e=new Date;let o=new Date;switch(t){case Kr.D1:o.setDate(e.getDate()-1);break;case Kr.D7:o.setDate(e.getDate()-7);break;case Kr.D30:o.setDate(e.getDate()-30);break;case Kr.YTD:o=new Date((new Date).getFullYear(),0,1)}this.tabEvent.emit({from:t===Kr.AllTime?void 0:o?.getTime(),till:t===Kr.AllTime?void 0:e?.getTime()})}drawChart(t){this.chart?.dummy&&(t=this.fillDummyData(t)),t?.map(r=>{const i=r?.x?.split("-").map(a=>(parseInt(a)<10?"0":"")+ +a).join("-");return r.x=new Date(i)?.getTime(),r});const e=[{data:(t=cu.orderBy(t,"x","asc"))?.map(r=>[r?.x,r?.y]),name:this.chart?.yAxisName,type:"line",smooth:!0,symbol:"none",lineStyle:{color:this.chart?.lineColor??"#1db0a9",width:this.chart?.lineWidth??2.5},areaStyle:this.chart?.areaStyleColor?{color:this.chart?.areaStyleColor,opacity:.3}:null}],o=this.getMaxNumberFromArray(t?.map(r=>r?.y));try{this.options={textStyle:{color:"#888888",fontSize:11,fontFamily:'"Montserrat", sans-serif'},xAxis:{type:this.chart?.xType||"category",axisTick:{show:!1},axisLabel:{show:this.chart?.showXAxisLabel,textStyle:{fontSize:11},formatter:"{MMM} {dd}"},axisLine:{show:!1},splitNumber:this.chart?.maxTick?.x||3},yAxis:{type:"value",axisLabel:{show:this.chart?.showYAxisLabel,textStyle:{fontSize:11},formatter:function(r,i){return BZ(r,0)}},axisLine:{show:!1},splitNumber:this.chart?.maxTick?.y||2,splitLine:{show:this.chart?.showYAxisLabel}},tooltip:{triggerOn:"mousemove",trigger:"axis",show:!0,appendToBody:!0,backgroundColor:"#fff",formatter:r=>this.formatTooltip(r),textStyle:{fontSize:12}},grid:{show:!1,left:o>0?1.5*o:0,right:10,top:10,bottom:10,z:9,containLabel:!0},series:e},ve(!0).pipe(Pi(300)).subscribe(()=>this.loading=!1)}catch(r){throw this.loading=!1,new Error(r)}}onChartInit(t){this._chart=t}get pChart(){return this._chart}formatTooltip(t){let e="";for(let o=0;o${r?.toDateString()}\n
${t[o].seriesName}: ${t[o].value?.[1]?.toLocaleString()}`}return e}subscribeToData(t){t?.pipe(at(this)).subscribe(e=>{this.drawChart(e)})}fillDummyData(t){if(t?.length<13){const e=14-t?.length,o=cu.maxBy(t,"y")?.y||1,r=cu.minBy(t,"y")?.y||1,i=cu.minBy(t,"x")?.x||(new Date)?.toISOString();for(let a=0;a(parseInt(u)<10?"0":"")+ +u).join("-"),c=new Date(s);c.setDate(c.getDate()-(a+1)),Math.floor(Math.random()*(o-r)),t.unshift({x:c?.toISOString()?.split("T")[0],y:0})}}return t}getMaxNumberFromArray(t){const e=cu.max(t);return(e?BZ(e,0):"")?.length}},YO.\u0275fac=function(t){return new(t||YO)},YO.\u0275cmp=kt({type:YO,selectors:[["storecloud-shared-chart-card"]],inputs:{chart:"chart",data:"data"},outputs:{tabEvent:"tabEvent"},decls:28,vars:17,consts:[[1,"card","chart-card","pb-0"],[3,"ngClass"],[1,"heading-text"],[1,"d-flex"],[3,"tooltip"],["class","text-light",4,"ngIf"],["class","tabs-list transactions-chart",4,"ngIf"],[1,"content","pr-2","pl-2","pb-3","ch-chart"],["echarts","",1,"ch-chart",3,"id","options","ngStyle","defaultHeight","extentions","isResizable","chartinit"],[4,"ngIf","ngIfElse"],["loader",""],[1,"text-light"],[1,"tabs-list","transactions-chart"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],["appearance","circle","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),v(2,"div",1),p(3,"\n "),v(4,"p",2),p(5,"\n "),v(6,"span",3),p(7),Me(8,"storecloud-tooltip",4),p(9,"\n "),A(),p(10,"\n "),Q(11,eye,2,1,"span",5),p(12,"\n "),A(),p(13,"\n "),Q(14,oye,4,1,"ul",6),p(15,"\n "),A(),p(16,"\n\n "),v(17,"div",7),p(18,"\n "),v(19,"div",8),yt("chartinit",function(r){return e.onChartInit(r)}),A(),p(20,"\n "),Q(21,rye,2,0,"ng-container",9),p(22,"\n "),A(),p(23,"\n"),A(),p(24,"\n\n"),Q(25,sye,3,4,"ng-template",null,10,$t),p(27,"\n")),2&t){const o=Ot(26);let r;q(2),D("ngClass",Ht(13,cye,null==e.chart?null:e.chart.showTabs)),q(5),Rt("\n ",null==e.chart?null:e.chart.title,"\n "),q(1),D("tooltip",null==e.chart?null:e.chart.tooltip),q(3),D("ngIf",null==e.chart?null:e.chart.subTitle),q(3),D("ngIf",null==e.chart?null:e.chart.showTabs),q(5),Wo("id",null!==(r=null==e.chart?null:e.chart.id)&&void 0!==r?r:"chart_1"),D("options",e.options)("ngStyle",Ht(15,lye,e.loading?0:1))("defaultHeight",(null==e.chart?null:e.chart.height)||175)("extentions",e.echartsExtentions)("isResizable",!0),q(2),D("ngIf",!e.loading)("ngIfElse",o)}},dependencies:[ko,er,f1,ao,fr,gv,as],styles:[".heading-text[_ngcontent-%COMP%]{display:grid;gap:0}.heading-text[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}ngx-skeleton-loader[_ngcontent-%COMP%]{height:100%;position:relative;top:-55%;left:50%;transform:translate(-50%,-50%)}"]}),YO);function BZ(n,t){const r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}].slice().reverse().find(function(i){return n>=i.value});return r?(n/r.value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+r.symbol:"0"}var HO;function pye(n,t){if(1&n&&(Ye(0),v(1,"span"),p(2),A(),He()),2&n){const e=le(2);q(1),wn("mr-minus-2 ",null==e.item?null:e.item.preSymbolCssClass,""),q(1),t0(null==e.item?null:e.item.preSymbol)}}function uye(n,t){if(1&n&&Me(0,"storecloud-icon",10),2&n){const e=le(2);D("icon",null==e.item?null:e.item.valueIcon)("size",e.iconSize||16)}}function dye(n,t){if(1&n&&(v(0,"span"),p(1),A()),2&n){const e=le(2);Yc(null==e.item?null:e.item.symbolCssClass),q(1),Rt(" ",null==e.item?null:e.item.symbol,"")}}hP=Ke([h0({checkProperties:!0})],hP);const FZ=function(n){return{link:n}};function fye(n,t){if(1&n&&(v(0,"a",11),p(1,"\n "),Ye(2,12),p(3," "),He(),p(4,"\n"),A()),2&n){const e=le(2),o=Ot(9);D("ngClass",Ht(3,FZ,null==e.item?null:e.item.link))("routerLink",null==e.item?null:e.item.link),q(2),D("ngTemplateOutlet",o)}}function hye(n,t){if(1&n&&(v(0,"a",13),p(1,"\n "),Ye(2,12),p(3," "),He(),p(4,"\n"),A()),2&n){const e=le(2),o=Ot(9);D("href",null==e.item?null:e.item.link,io)("ngClass",Ht(4,FZ,null==e.item?null:e.item.link))("target",null!=e.item&&e.item.openInExistingTab?"_self":"_blank"),q(2),D("ngTemplateOutlet",o)}}function Mye(n,t){if(1&n&&(v(0,"span"),p(1),A()),2&n){const e=le(2);wn("align-self-end ",null==e.item?null:e.item.symbolCssClass,""),q(1),t0(null==e.item?null:e.item.symbol)}}function bye(n,t){if(1&n&&(v(0,"span",14),p(1,"\n "),Me(2,"storecloud-icon",15),p(3,"\n"),A()),2&n){const e=le(2);q(2),Wo("copyToClipboard",null==e.item?null:e.item.value),D("icon","copy")("size",14)}}function gye(n,t){if(1&n&&(v(0,"span"),p(1,"\n "),Q(2,pye,3,4,"ng-container",1),p(3,"\n "),Q(4,uye,1,2,"storecloud-icon",5),p(5,"\n "),Q(6,dye,2,4,"span",0),p(7,"\n "),v(8,"div",6),p(9,"\n "),Q(10,fye,5,5,"a",7),p(11,"\n"),Q(12,hye,5,6,"a",8),p(13,"\n"),Q(14,Mye,2,4,"span",0),p(15,"\n"),Q(16,bye,4,3,"span",9),p(17,"\n "),A(),p(18,"\n"),A()),2&n){const e=le();wn("d-flex-icon ",e.cssClass,""),q(2),D("ngIf",null==e.item?null:e.item.preSymbol),q(2),D("ngIf",null==e.item?null:e.item.valueIcon),q(2),D("ngIf","before"===(null==e.item?null:e.item.symbolPosition)),q(4),D("ngIf",!(null!=e.item&&e.item.externalLink)||!1===(null==e.item?null:e.item.externalLink)),q(2),D("ngIf",null==e.item?null:e.item.externalLink),q(2),D("ngIf","after"===(null==e.item?null:e.item.symbolPosition)),q(2),D("ngIf",null==e.item?null:e.item.copy)}}function Oye(n,t){if(1&n&&(Ye(0),p(1,"\n "),Me(2,"storecloud-shared-block-status-with-time",16),p(3,"\n"),He()),2&n){const e=le();q(2),D("item",null==e.item?null:e.item.value)}}function mye(n,t){if(1&n&&(Ye(0),p(1,"\n "),Me(2,"storecloud-shared-block-status",17),p(3,"\n"),He()),2&n){const e=le();q(2),D("cssClass",e.cssClass)("item",null==e.item?null:e.item.value)}}function _ye(n,t){1&n&&(Ye(0),p(1,"\n "),v(2,"select"),p(3,"\n "),v(4,"option",18),p(5,"$0.00"),A(),p(6,"\n "),A(),p(7,"\n"),He())}const YZ=function(n){return{valueItem:n}};function zye(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,19),p(3,"\n "),He()),2&n){const e=le(2),o=Ot(12);q(2),D("ngTemplateOutletContext",Ht(2,YZ,e.item))("ngTemplateOutlet",o)}}function vye(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,19),ut(3,"replaceValue"),p(4,"\n "),He()),2&n){const e=t.ngIf,o=le(3),r=Ot(12);q(2),D("ngTemplateOutletContext",Ht(5,YZ,mo(3,2,o.item,null==e?null:e.value)))("ngTemplateOutlet",r)}}function Aye(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,vye,5,7,"ng-container",20),ut(3,"async"),p(4,"\n "),He()),2&n){const e=le(2),o=Ot(15);q(2),D("ngIf",a0(3,2,null==e.item?null:e.item.value$))("ngIfElse",o)}}function yye(n,t){if(1&n&&(p(0,"\n "),Q(1,zye,4,4,"ng-container",1),p(2,"\n "),Q(3,Aye,5,4,"ng-container",1),p(4,"\n")),2&n){const e=le();q(1),D("ngIf",null!=(null==e.item?null:e.item.value)),q(2),D("ngIf",null!=(null==e.item?null:e.item.value$))}}function Cye(n,t){if(1&n&&(Ye(0),p(1),He()),2&n){const e=le().valueItem;q(1),t0(null==e?null:e.value)}}function wye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"number"),ut(3,"number"),He()),2&n){const e=le().valueItem;q(1),t0((null==e?null:e.value)>=1?mo(2,1,(null==e?null:e.value)||0,"1.0-2"):mo(3,4,(null==e?null:e.value)||0,"1.0-8"))}}function Pye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"number"),ut(3,"number"),He()),2&n){const e=le().valueItem;q(1),t0((null==e?null:e.value)>0?mo(2,1,(null==e?null:e.value)||0,"1.0-0"):mo(3,4,(null==e?null:e.value)||0,"8.0-0"))}}function xye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"shortNumber"),He()),2&n){const e=le().valueItem,o=le();q(1),t0(mo(2,1,(null==e?null:e.value)||0,null==o.item?null:o.item.decimal))}}function qye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"currency"),ut(3,"currency"),He()),2&n){const e=le().valueItem;q(1),t0((null==e?null:e.value)>=1?ha(2,1,(null==e?null:e.value)||0,"USD","symbol","2.8-8"):ha(3,6,(null==e?null:e.value)||0,"USD","symbol","2.8-8"))}}function Wye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"number"),ut(3,"number"),He()),2&n){const e=le().valueItem;q(1),t0((null==e?null:e.value)>=0?mo(2,1,null==e?null:e.value,"2.8-8"):mo(3,4,(null==e?null:e.value)||0,"2.8-8"))}}function Lye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"percent"),He()),2&n){const e=le().valueItem;let o;q(1),t0(mo(2,1,null!==(o=null==e?null:e.value)&&void 0!==o?o:0,"1.1-2"))}}function Tye(n,t){if(1&n&&(Ye(0,22),p(1,"\n "),v(2,"div",23),p(3,"\n "),v(4,"span",24),p(5),ut(6,"trim"),A(),p(7,"\n "),v(8,"span",25),p(9),ut(10,"trim"),A(),p(11,"\n "),A(),p(12,"\n "),He()),2&n){const e=le().valueItem;Wo("copyToClipboard",null==e?null:e.value),q(4),D("tippy",null==e?null:e.value),q(1),Rt("\n ",mo(6,4,null==e?null:e.value,null==e?null:e.trimSize),"\n "),q(4),Rt("\n ",mo(10,7,null==e?null:e.value,(null==e?null:e.trimSizeMobile)||24),"\n ")}}function Rye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"timeAgo"),He()),2&n){const e=le().valueItem;q(1),t0(a0(2,1,null==e?null:e.value))}}function Sye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"date"),He()),2&n){const e=le().valueItem;q(1),t0(mo(2,1,null==e?null:e.value,"MMM-dd-yyyy h:mm:ss a z"))}}function Dye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"date"),He()),2&n){const e=le().valueItem;q(1),t0(mo(2,1,null==e?null:e.value,"MM/dd/yy"))}}function kye(n,t){if(1&n&&(Ye(0),p(1),ut(2,"date"),He()),2&n){const e=le().valueItem;q(1),t0(mo(2,1,null==e?null:e.value,"MMMM y"))}}function Eye(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"span"),p(3),A(),p(4,"\n "),He()),2&n){const e=le(2);q(2),wn("status ",null==e.item?null:e.item.value,""),q(1),t0(null==e.item?null:e.item.value)}}function Nye(n,t){if(1&n&&(Ye(0),p(1,"\n "),Me(2,"div",26),p(3,"\n "),He()),2&n){const e=le().valueItem;q(2),D("innerHTML",null==e?null:e.value,Uf)}}function Iye(n,t){if(1&n&&(p(0,"\n "),Q(1,Cye,2,1,"ng-container",1),p(2,"\n "),Q(3,wye,4,7,"ng-container",1),p(4,"\n "),Q(5,Pye,4,7,"ng-container",1),p(6,"\n "),Q(7,xye,3,4,"ng-container",1),p(8,"\n\n "),Q(9,qye,4,11,"ng-container",1),p(10,"\n "),Q(11,Wye,4,7,"ng-container",1),p(12,"\n "),Q(13,Lye,3,4,"ng-container",1),p(14,"\n "),Q(15,Tye,13,10,"ng-container",21),p(16,"\n "),Q(17,Rye,3,3,"ng-container",1),p(18,"\n "),Q(19,Sye,3,4,"ng-container",1),p(20,"\n "),Q(21,Dye,3,4,"ng-container",1),p(22,"\n "),Q(23,kye,3,4,"ng-container",1),p(24,"\n "),Q(25,Eye,5,4,"ng-container",1),p(26,"\n "),Q(27,Nye,4,1,"ng-container",1),p(28,"\n")),2&n){const e=t.valueItem,o=le();q(1),D("ngIf","string"===(null==e?null:e.type)),q(2),D("ngIf","number"===(null==e?null:e.type)),q(2),D("ngIf","bit"===(null==e?null:e.type)),q(2),D("ngIf","short-number"===(null==e?null:e.type)),q(2),D("ngIf","currency"===(null==e?null:e.type)),q(2),D("ngIf","store-currency"===(null==e?null:e.type)),q(2),D("ngIf","percent"===(null==e?null:e.type)),q(2),D("ngIf","hash"===(null==e?null:e.type)),q(2),D("ngIf","time"===(null==e?null:e.type)),q(2),D("ngIf","date-time"===(null==e?null:e.type)),q(2),D("ngIf","short-date"===(null==e?null:e.type)),q(2),D("ngIf","long-date"===(null==e?null:e.type)),q(2),D("ngIf","status"===(null==o.item?null:o.item.type)),q(2),D("ngIf","html"===(null==e?null:e.type))}}const Bye=function(n){return{display:"flex",width:n}},Fye=function(n){return{"margin-top":"0px","margin-bottom":"0px",height:"16px",width:n}};function Yye(n,t){if(1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",27),p(2,"\n")),2&n){const e=le();q(1),D("ngStyle",Ht(2,Bye,e.loadingWidth+"px"))("theme",Ht(4,Fye,e.loadingWidth+"px"))}}let Aa=(HO=class{set item(t){t&&!t?.symbolPosition&&(t.symbolPosition="after"),this._item=t,this.changeRef.detectChanges()}get item(){return this._item}constructor(t){this.changeRef=t,this.cssClass="text-black",this.loadingWidth=30,this.iconSize=8,this._item=null}ngAfterContentChecked(){this.changeRef.detectChanges()}},HO.\u0275fac=function(t){return new(t||HO)(Te(dc))},HO.\u0275cmp=kt({type:HO,selectors:[["storecloud-shared-value-formatter"]],inputs:{item:"item",cssClass:"cssClass",loadingWidth:"loadingWidth",iconSize:"iconSize"},decls:17,vars:4,consts:[[3,"class",4,"ngIf"],[4,"ngIf"],["itemElement",""],["showValue",""],["loader1",""],["class","icon-burnt ",3,"icon","size",4,"ngIf"],[1,"d-flex-icon"],["routerLinkActive","",3,"ngClass","routerLink",4,"ngIf"],[3,"href","ngClass","target",4,"ngIf"],["class","copy-button",4,"ngIf"],[1,"icon-burnt",3,"icon","size"],["routerLinkActive","",3,"ngClass","routerLink"],[3,"ngTemplateOutlet"],[3,"href","ngClass","target"],[1,"copy-button"],[3,"icon","size","copyToClipboard"],[3,"item"],[3,"cssClass","item"],["value","Select"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"copyToClipboard",4,"ngIf"],[3,"copyToClipboard"],[1,"d-flex","g-1"],[1,"desktop-hash",3,"tippy"],[1,"mobile-hash"],[3,"innerHTML"],["animation","progress","count","1",1,"value-loader",3,"ngStyle","theme"]],template:function(t,e){1&t&&(Q(0,gye,19,10,"span",0),p(1,"\n\n"),Q(2,Oye,4,1,"ng-container",1),p(3,"\n"),Q(4,mye,4,2,"ng-container",1),p(5,"\n"),Q(6,_ye,8,0,"ng-container",1),p(7,"\n\n"),Q(8,yye,5,2,"ng-template",null,2,$t),p(10,"\n\n"),Q(11,Iye,29,14,"ng-template",null,3,$t),p(13,"\n\n"),Q(14,Yye,3,6,"ng-template",null,4,$t),p(16,"\n")),2&t&&(D("ngIf","select"!==(null==e.item?null:e.item.type)&&"block-status"!==(null==e.item?null:e.item.type)&&"progress-status"!==(null==e.item?null:e.item.type)),q(2),D("ngIf","progress-status"===(null==e.item?null:e.item.type)),q(2),D("ngIf","block-status"===(null==e.item?null:e.item.type)),q(2),D("ngIf","select"===(null==e.item?null:e.item.type)))},styles:["[_ngcontent-%COMP%]:export{bg-gradient:linear-gradient(to right,#1e1e20,#38415d);teal:#1db0a9;explorer-bg:linear-gradient(to right,#1e1e20,#38415d);explorer-teal:#1db0a9;developer-bg:linear-gradient(to top,#3375a7,#2b3a98);developer-teal:#1db0a9;governor-bg:linear-gradient(to top,#9d51b8,#4b2d83);governor-teal:#1db0a9;cloud-bg:linear-gradient(to top,#24272f,#222);cloud-teal:#1db0a9}span.burn-text-bold[_ngcontent-%COMP%]{font-size:3rem;font-weight:600;color:#111}.mobile-hash[_ngcontent-%COMP%]{display:none}.copy-button[_ngcontent-%COMP%]{border:none;background:none;cursor:pointer}.flex-usd[_ngcontent-%COMP%]{justify-content:flex-end}.d-flex-column[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.mr-minus-2[_ngcontent-%COMP%]{margin-right:-2.5px}.mr-minus-2.mr-2[_ngcontent-%COMP%]{margin-right:5px}.mr-minus-2.mr-1[_ngcontent-%COMP%]{margin-right:2.5px}.mr-minus-0[_ngcontent-%COMP%]{margin-right:0}.ml-minus-2[_ngcontent-%COMP%]{margin-left:-2.5px}.align-self-end[_ngcontent-%COMP%]{align-self:flex-end}select[_ngcontent-%COMP%]{padding:5px 7.5px;color:#111;border-radius:7.5px;border:0;border:1px solid #cddcdc;font-weight:600;font-family:Montserrat,sans-serif;outline:none;width:22vw} .heading-text-black .value-loader .loader{height:2.6rem!important} .text-black .value-loader .loader{height:1.4rem!important}@media screen and (max-width: 1024px){ .heading-text-black .value-loader .loader{height:2.4rem!important}}@media screen and (max-width: 525px){ .heading-text-black .value-loader .loader{height:1.8rem!important}}@media screen and (max-width: 1420px) and (min-width: 1301px){ .icon-burnt .icon-size-14{width:1.2rem!important}}@media screen and (max-width: 1320px) and (min-width: 1201px){ .icon-burnt .icon-size-14{width:1rem!important}}@media screen and (max-width: 850px){.desktop-hash[_ngcontent-%COMP%]{display:none}.mobile-hash[_ngcontent-%COMP%]{display:contents}}@media screen and (max-width: 525px){select[_ngcontent-%COMP%]{width:40vw}}"]}),HO);function HZ(n,t,e,o,r,i,a){try{var s=n[i](a),c=s.value}catch(l){return void e(l)}s.done?t(c):Promise.resolve(c).then(o,r)}function Nt(n){return function(){var t=this,e=arguments;return new Promise(function(o,r){var i=n.apply(t,e);function a(c){HZ(i,o,r,a,s,"next",c)}function s(c){HZ(i,o,r,a,s,"throw",c)}a(void 0)})}}function tr(n,t){const e="object"==typeof t;return new Promise((o,r)=>{const i=new Z0({next:a=>{o(a),i.unsubscribe()},error:r,complete:()=>{e?o(t.defaultValue):r(new N_)}});n.subscribe(i)})}var XO;function Hye(n,t){1&n&&(p(0,"\n "),Si(),v(1,"svg",3),p(2,"\n "),Me(3,"polyline",4),p(4,"\n "),A(),p(5,"\n"))}Aa=Ke([h0({checkProperties:!0})],Aa);const Xye=function(n){return{"first-page":!0,highlighted:n}},XZ=function(n){return{highlighted:n}},jye=function(n){return{"last-page":!0,highlighted:n}};let uM=(XO=class{constructor(){this.pageSize=[{value:8,label:"8 items per page"}]}previousPage(){this.tableService&&(this.tableService.page=(this.tableService?.page||0)-1)}nextPage(){this.tableService&&(this.tableService.page=(this.tableService?.page||0)+1)}lastPage(){var t=this;return Nt(function*(){if(t.tableService&&t.total$){const e=yield tr(t.total$);t.tableService.page=e}})()}firstPage(){this.tableService&&(this.tableService.page=1)}},XO.\u0275fac=function(t){return new(t||XO)},XO.\u0275cmp=kt({type:XO,selectors:[["storecloud-shared-table-pagination"]],inputs:{tableService:"tableService",total$:"total$"},decls:41,vars:25,consts:[[1,"pagination-container"],[3,"ngClass","click"],[1,"icon",3,"ngClass","click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"chevron-left"],["points","15 18 9 12 15 6"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["points","9 18 15 12 9 6"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),v(2,"p",1),yt("click",function(){return e.firstPage()}),p(3,"\n First\n "),A(),p(4,"\n "),v(5,"p",2),yt("click",function(){return e.previousPage()}),p(6,"\n "),Si(),v(7,"svg",3),p(8,"\n "),Me(9,"polyline",4),p(10,"\n "),A(),p(11,"\n "),A(),p(12,"\n "),nc(),v(13,"p"),p(14,"\n Page "),v(15,"span"),p(16),A(),p(17," of\n "),v(18,"span"),p(19),ut(20,"number"),ut(21,"async"),A(),p(22,"\n "),A(),p(23,"\n "),v(24,"p",2),yt("click",function(){return e.nextPage()}),ut(25,"async"),ut(26,"async"),p(27,"\n "),Si(),v(28,"svg",5),p(29,"\n "),Me(30,"polyline",6),p(31,"\n "),A(),p(32,"\n "),A(),p(33,"\n "),nc(),v(34,"p",1),yt("click",function(){return e.lastPage()}),ut(35,"async"),p(36,"\n Last\n "),A(),p(37,"\n"),A(),p(38,"\n\n"),Q(39,Hye,6,0,"ng-template"),p(40,"\n")),2&t){let o;q(2),D("ngClass",Ht(17,Xye,(null==e.tableService?null:e.tableService.page)>1)),q(3),D("ngClass",Ht(19,XZ,(null==e.tableService?null:e.tableService.page)>1)),q(11),t0(null!==(o=null==e.tableService?null:e.tableService.page)&&void 0!==o?o:1),q(3),t0(mo(20,6,a0(21,9,e.total$)||1,"1.0-0")),q(5),D("ngClass",Ht(21,XZ,a0(25,11,e.total$)>1&&(null==e.tableService?null:e.tableService.page){class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["storecloud-spinner"]],inputs:{cssClass:"cssClass"},standalone:!0,features:[Ho],decls:2,vars:3,template:function(e,o){1&e&&(Me(0,"div"),p(1,"\n")),2&e&&wn("spinner ",o.cssClass,"")},styles:[".spinner[_ngcontent-%COMP%]{height:48px;width:48px;color:#1db0a9;position:relative;display:inline-block;border:2px solid;border-radius:50%;border-top-color:transparent;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.spinner.w-22[_ngcontent-%COMP%]{width:22px;height:22px}.spinner.w-100-p[_ngcontent-%COMP%]{width:100%;height:100%}.spinner.b-4[_ngcontent-%COMP%]{border-width:4px}@media screen and (max-width: 525px){.spinner[_ngcontent-%COMP%]{height:12px;width:12px}}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})();var Jye=G(2977);const Qye=30;const UZ=new Qt("JazziconConfig"),g8="http://www.w3.org/2000/svg";let VZ=(()=>{class n{constructor(e,o){this.config=e,this.rendererFactory=o,this.renderer=this.rendererFactory.createRenderer(null,null)}generateIdenticon(e,o={}){const r=o?.diameter||this.config.diameter,i=o?.shapeCount||this.config.shapeCount,a=o?.colors||this.config.colors;this.generator=new Jye(e);const s=function e4e(n,t){const e=30*t.random()-Qye/2;return n.map(r=>function t4e(n,t){const e=function o4e(n){let{r:t,g:e,b:o}=function n4e(n){return n=n.replace("#",""),{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16)}}(n);t/=255,e/=255,o/=255;const r=Math.min(t,e,o),i=Math.max(t,e,o),a=i-r;let s=0,c=0,l=0;return s=0==a?0:i==t?(e-o)/a%6:i==e?(o-t)/a+2:(t-e)/a+4,s=Math.round(60*s),s<0&&(s+=360),l=(i+r)/2,c=0==a?0:a/(1-Math.abs(2*l-1)),c=+(100*c).toFixed(1),l=+(100*l).toFixed(1),{h:s,s:c,l}}(n);let o=e.h;return o=(o+t)%360,o=o<0?360+o:o,e.h=o,function r4e(n){let{h:t,s:e,l:o}=n;e/=100,o/=100;const r=(1-Math.abs(2*o-1))*e,i=r*(1-Math.abs(t/60%2-1)),a=o-r/2;let s=0,c=0,l=0;0<=t&&t<60?(s=r,c=i,l=0):60<=t&&t<120?(s=i,c=r,l=0):120<=t&&t<180?(s=0,c=r,l=i):180<=t&&t<240?(s=0,c=i,l=r):240<=t&&t<300?(s=i,c=0,l=r):300<=t&&t<360&&(s=r,c=0,l=i);let u=Math.round(255*(s+a)).toString(16),d=Math.round(255*(c+a)).toString(16),h=Math.round(255*(l+a)).toString(16);return 1==u.length&&(u="0"+u),1==d.length&&(d="0"+d),1==h.length&&(h="0"+h),"#"+u+d+h}(e)}(r,e))}(a.slice(),this.generator),l=this.paperGen(r,this.genColor(s)).container,u=this.renderer.createElement("svg",g8);this.renderer.setAttribute(u,"xlmns",g8),this.renderer.setAttribute(u,"x","0"),this.renderer.setAttribute(u,"y","0"),this.renderer.setAttribute(u,"width",String(r)),this.renderer.setAttribute(u,"height",String(r));for(let d=0;d{class n{constructor(e,o,r){this.elementRef=e,this.renderer=o,this.jazziconService=r}ngOnChanges(e){this.initJazzicon()}initJazzicon(){const e=this.jazziconService.generateIdenticon(this.seed,{colors:this.colors,diameter:this.diameter,shapeCount:this.shapeCount});this.jazzDomElement&&this.renderer.removeChild(this.elementRef.nativeElement,this.jazzDomElement),this.renderer.appendChild(this.elementRef.nativeElement,e),this.jazzDomElement=e}}return n.\u0275fac=function(e){return new(e||n)(Te(fn),Te(P1),Te(VZ))},n.\u0275cmp=kt({type:n,selectors:[["ngx-jazzicon"]],inputs:{colors:"colors",diameter:"diameter",seed:"seed",shapeCount:"shapeCount"},features:[Fo],decls:0,vars:0,template:function(e,o){},styles:[".jazzicon-container{border-radius:50px;overflow:hidden;padding:0;margin:0;display:inline-block}\n"],encapsulation:2,changeDetection:0}),n})();const i4e={diameter:100,shapeCount:4,colors:["#01888C","#FC7500","#034F5D","#F73F01","#FC1960","#C7144C","#F3C100","#1598F2","#2465E1","#F19E02"]};let O8=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[VZ,{provide:UZ,useValue:{...i4e,...e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({imports:[[Gn]]}),n})();const $O=function(){return{"width.px":17}};function a4e(n,t){1&n&&Me(0,"img",7),2&n&&(Yl("src","https://explorer.storecloud.org/assets/lucide_icon/",le(2).idleIcon,".svg",io),D("ngStyle",Et(2,$O)))}function s4e(n,t){1&n&&Me(0,"img",7),2&n&&D("src",le(2).idleIconSrc,io)("ngStyle",Et(2,$O))}function c4e(n,t){1&n&&Me(0,"ng-temaplate",8),2&n&&(le(2),D("ngTemplateOutlet",Ot(9)))}function l4e(n,t){1&n&&Me(0,"img",7),2&n&&(Yl("src","https://explorer.storecloud.org/assets/lucide_icon/",le(2).idleIcon,".svg",io),D("ngStyle",Et(2,$O)))}function p4e(n,t){1&n&&Me(0,"img",7),2&n&&D("src",le(2).idleIconSrc,io)("ngStyle",Et(2,$O))}function u4e(n,t){if(1&n&&(Ye(0),p(1,"\n "),Me(2,"ngx-jazzicon",9),p(3,"\n "),He()),2&n){const e=le(2);q(2),D("seed",e.customIcon)("diameter",15)}}function d4e(n,t){if(1&n){const e=b1();v(0,"button",3),yt("click",function(){return T0(e),v0(le().click())}),p(1,"\n "),Q(2,a4e,1,3,"img",4),p(3,"\n "),Q(4,s4e,1,3,"img",4),p(5,"\n "),Q(6,c4e,1,1,"ng-temaplate",5),p(7),Q(8,l4e,1,3,"img",4),p(9,"\n "),Q(10,p4e,1,3,"img",4),p(11),Q(12,u4e,4,2,"ng-container",6),p(13,"\n"),A()}if(2&n){const e=le();wn("",e.cssClass," btn-idle"),D("disabled",e._disabled),q(2),D("ngIf",e.idleIcon&&"before"===e.idleIconPlace),q(2),D("ngIf",e.idleIconSrc&&"before"===e.idleIconPlace),q(2),D("ngIf",e.countText),q(1),Rt("\n ",e.idleText,"\n\n "),q(1),D("ngIf",e.idleIcon&&"after"===e.idleIconPlace),q(2),D("ngIf",e.idleIconSrc&&"after"===e.idleIconPlace),q(1),Rt("\n ",e.idleTextAfter,"\n "),q(1),D("ngIf",e.customIcon)}}function f4e(n,t){if(1&n&&(v(0,"button",10),p(1,"\n "),Me(2,"span",11),p(3),A()),2&n){const e=le();wn("",e.cssClass," btn-loading"),D("disabled",!0),q(3),Rt(" ",null==e.currentState?null:e.currentState.title,"\n")}}function h4e(n,t){if(1&n&&(v(0,"button",10),p(1,"\n "),Me(2,"img",12),p(3),A()),2&n){const e=le();wn("",e.cssClass," btn-success"),D("disabled",!0),q(2),D("ngStyle",Et(6,$O)),q(1),Rt("\n ",null==e.currentState?null:e.currentState.title,"\n")}}function M4e(n,t){if(1&n&&(v(0,"button",10),p(1,"\n "),Me(2,"img",13),p(3),A()),2&n){const e=le();wn("",e.cssClass," btn-error"),D("disabled",e._disabled),q(2),D("ngStyle",Et(6,$O)),q(1),Rt("\n ",null==e.currentState?null:e.currentState.title,"\n")}}function b4e(n,t){if(1&n&&(p(0,"\n "),v(1,"div",14),p(2,"\n "),v(3,"div",15),p(4),A(),p(5,"\n "),A(),p(6,"\n")),2&n){const e=le();q(4),t0(e.countText)}}let ss=(()=>{class n{set customIcon(e){this._customIcon=e}get customIcon(){return this._customIcon}constructor(){this.idleText="Save",this.idleTextAfter="",this.idleIcon=null,this.idleIconPlace="before",this.idleIconSrc=null,this.countText="",this.loadingText="Processing...",this.successText="Done",this.errorText="Error",this.buttonKey=null,this.cssClass="btn-primary",this.StateType=ll,this.clickEvent=new G1,this.initEvent=new G1,this.disabled=!1,this.states=[{type:ll.Idle,title:this.idleText??"Save"},{type:ll.Loading,title:this.loadingText??"Processing..."},{type:ll.Success,title:this.successText??"Done"},{type:ll.Error,title:this.errorText??"Error"}],this.currentState=this.states[0],this.initEvent.emit(this)}click(){this.clickEvent.emit(this)}showIdle(){this.currentState=this.states?.find(e=>e.type===ll.Idle)}showLoading(){this.currentState=this.states?.find(e=>e.type===ll.Loading)}showSuccess(){this.currentState=this.states?.find(e=>e.type===ll.Success),setTimeout(()=>{this.showIdle()},3e3)}showError(e){this.currentState=this.states?.find(o=>o.type===ll.Error),setTimeout(()=>{this.showIdle()},3e3)}get _disabled(){return this.disabled??!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["storecloud-loading-button"]],inputs:{idleText:"idleText",idleTextAfter:"idleTextAfter",idleIcon:"idleIcon",idleIconPlace:"idleIconPlace",idleIconSrc:"idleIconSrc",countText:"countText",loadingText:"loadingText",successText:"successText",errorText:"errorText",buttonKey:"buttonKey",cssClass:"cssClass",customIcon:"customIcon",disabled:"disabled"},outputs:{clickEvent:"clickEvent",initEvent:"initEvent"},decls:10,vars:4,consts:[["type","button",3,"class","disabled","click",4,"ngIf"],[3,"class","disabled",4,"ngIf"],["countIcon",""],["type","button",3,"disabled","click"],["class","icon",3,"src","ngStyle",4,"ngIf"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngIf"],[1,"icon",3,"src","ngStyle"],[3,"ngTemplateOutlet"],[3,"seed","diameter"],[3,"disabled"],[1,"spinner"],["src","https://explorer.storecloud.org/assets/lucide_icon/check-circle_animated_once_white.svg",1,"icon",3,"ngStyle"],["src","https://explorer.storecloud.org/assets/lucide_icon/alert-circle.svg",1,"icon",3,"ngStyle"],[1,"d-flex","heading-with-count"],[1,"box","text-black-light","bold"]],template:function(e,o){1&e&&(Q(0,d4e,14,12,"button",0),p(1,"\n\n"),Q(2,f4e,4,5,"button",1),p(3,"\n\n"),Q(4,h4e,4,7,"button",1),p(5,"\n\n"),Q(6,M4e,4,7,"button",1),p(7,"\n\n"),Q(8,b4e,7,1,"ng-template",null,2,$t)),2&e&&(D("ngIf",(null==o.currentState?null:o.currentState.type)===o.StateType.Idle),q(2),D("ngIf",(null==o.currentState?null:o.currentState.type)===o.StateType.Loading),q(2),D("ngIf",(null==o.currentState?null:o.currentState.type)===o.StateType.Success),q(2),D("ngIf",(null==o.currentState?null:o.currentState.type)===o.StateType.Error))},dependencies:[f1,Eo,ao,$Z],styles:["[_ngcontent-%COMP%]:export{bg-gradient:linear-gradient(to right,#1e1e20,#38415d);teal:#1db0a9;explorer-bg:linear-gradient(to right,#1e1e20,#38415d);explorer-teal:#1db0a9;developer-bg:linear-gradient(to top,#3375a7,#2b3a98);developer-teal:#1db0a9;governor-bg:linear-gradient(to top,#9d51b8,#4b2d83);governor-teal:#1db0a9;cloud-bg:linear-gradient(to top,#24272f,#222);cloud-teal:#1db0a9}button[_ngcontent-%COMP%]{font-family:inherit}button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{transition:color .5s,transform .2s,background-color .2s}button[_ngcontent-%COMP%]:active, .button[_ngcontent-%COMP%]:active{transform:translateY(1.5px)}.heading-with-count[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:10px;background-color:#fff;border-radius:50%;color:#111;width:20px;max-height:20px}.heading-with-count[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:600}button[_ngcontent-%COMP%]:disabled{cursor:default!important;pointer-events:none}button[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:10px;align-items:center;margin-right:1px;width:max-content}button.h-33px[_ngcontent-%COMP%]{height:39px!important}@media screen and (max-width: 1420px){button.h-33px[_ngcontent-%COMP%]{height:34px!important}}@media screen and (max-width: 1200px){button.h-33px[_ngcontent-%COMP%]{height:30px!important}}button.g-1[_ngcontent-%COMP%]{gap:5px}button.w-100[_ngcontent-%COMP%]{width:100%}button.w-max[_ngcontent-%COMP%]{width:max-content!important}.button-container[_ngcontent-%COMP%]{padding:10px 15px 0}.button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:0;outline:none;cursor:pointer;width:100%;color:#1db0a9;background-color:#1db0a926;padding:10px 0;font-size:1.2rem;font-weight:600;border-radius:4px;transition:all .2s ease}.button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#1db0a933;box-shadow:0 1px 5px #1db0a9}.button-container[_ngcontent-%COMP%] button.no-border[_ngcontent-%COMP%]{border:2px solid #1db0a9}.btn-primary[_ngcontent-%COMP%]{outline:none;border:2px solid #1db0a9;color:#fff;background-color:#1db0a9;padding:6.7px 15px;font-size:1.4rem;font-weight:600;border-radius:50px;height:100%;cursor:pointer}.btn-primary.no-border[_ngcontent-%COMP%]{border:2px solid #1db0a9}@media screen and (max-width: 1540px){.btn-primary[_ngcontent-%COMP%]{padding:7.5px 10px}}@media screen and (max-width: 1540px) and (max-width: 1420px){.btn-primary[_ngcontent-%COMP%]{padding:7px 15px;font-size:1.1rem}.btn-primary.h-33px[_ngcontent-%COMP%]{height:37px}}@media screen and (max-width: 1540px) and (max-width: 1320px){.btn-primary[_ngcontent-%COMP%]{padding:7.5px 10px}}@media screen and (max-width: 1540px) and (max-width: 1200px){.btn-primary[_ngcontent-%COMP%]{padding:8.5px 10px}}@media screen and (max-width: 1540px) and (max-width: 670px){.btn-primary[_ngcontent-%COMP%]{padding:5.5px 10px}}@media screen and (max-width: 1540px) and (max-width: 550px){.btn-primary[_ngcontent-%COMP%]{padding:5px 10px}}.btn-primary[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #1db0a9}.btn-primary.light[_ngcontent-%COMP%]{background-color:transparent}.btn-primary.dark-blue[_ngcontent-%COMP%]{border:2px solid #1a4386;background-color:#1a4386}.btn-primary.dark-blue[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #1a4386}.btn-primary.dark-black[_ngcontent-%COMP%]{border:2px solid #111111;background-color:#111}.btn-primary.dark-black[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #111}.btn-primary.dark-red[_ngcontent-%COMP%]{border:2px solid #a94169;background-color:#a94169}.btn-primary.dark-red[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #a94169}.btn-primary.light-green[_ngcontent-%COMP%]{border:2px solid #8dae4c;background-color:#8dae4c}.btn-primary.light-green[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #8dae4c}.btn-primary.light-sky-blue[_ngcontent-%COMP%]{border:2px solid #437e8c;background-color:#437e8c}.btn-primary.light-sky-blue[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #437e8c}.btn-primary.dark-green[_ngcontent-%COMP%]{border:2px solid #5fa271;background-color:#5fa271}.btn-primary.dark-green[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #5fa271}.btn-primary.dark-purple[_ngcontent-%COMP%]{border:2px solid #9888d3;background-color:#9888d3}.btn-primary.dark-purple[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #9888d3}.btn-primary.mid-blue[_ngcontent-%COMP%]{border:2px solid #424bc5;background-color:#424bc5}.btn-primary.mid-blue[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #424bc5}.btn-primary.mid-camel[_ngcontent-%COMP%]{border:2px solid #c4a670;background-color:#c4a670}.btn-primary.mid-camel[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #c4a670}.btn-primary.white[_ngcontent-%COMP%]{border:2px solid #fff;color:#fff;background-color:transparent}.btn-primary[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}.btn-primary-steal[_ngcontent-%COMP%]{outline:none;border:2px solid var(--bg-gradient);color:#fff;background:var(--bg-gradient);width:100px;height:35px;font-size:1.6rem;font-weight:600;border-radius:50px;cursor:pointer}.btn-primary-steal.no-border[_ngcontent-%COMP%]{border:2px solid var(--bg-gradient)}.btn-primary-steal[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px var(--bg-gradient)}.btn-primary-steal.light[_ngcontent-%COMP%]{background:transparent}.btn-primary-steal[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}@media screen and (max-width: 550px){.btn-primary-steal[_ngcontent-%COMP%]{width:75px;height:25px}}.btn-primary-gray[_ngcontent-%COMP%]{outline:none;border:0;color:#fff;border:1px solid #f6f8fa;background-color:transparent;padding:4.2px 10px;font-size:1.4rem;font-weight:600;border-radius:50px;cursor:pointer}.btn-primary-gray.no-border[_ngcontent-%COMP%]{border:2px solid transparent}@media screen and (max-width: 1420px){.btn-primary-gray[_ngcontent-%COMP%]{padding:3px 10px}}@media screen and (max-width: 1320px){.btn-primary-gray[_ngcontent-%COMP%]{padding:5px 10px}}@media screen and (max-width: 1220px){.btn-primary-gray[_ngcontent-%COMP%]{padding:6px 10px}}@media screen and (max-width: 670px){.btn-primary-gray[_ngcontent-%COMP%]{font-size:1.2rem!important;padding:4px 10px}}@media screen and (max-width: 550px){.btn-primary-gray[_ngcontent-%COMP%]{padding:2px 10px}}.btn-primary-gray[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #f6f8fa}.btn-primary-gray.light[_ngcontent-%COMP%]{background-color:transparent}.btn-primary-gray[_ngcontent-%COMP%]:disabled{background-color:#888;border:2px solid #888;opacity:.6}.btn-primary-gray.light-bold[_ngcontent-%COMP%]{font-weight:500}.btn-primary.edit-btn[_ngcontent-%COMP%]{padding:5px 27.5px;font-size:1.1rem}.small-btn[_ngcontent-%COMP%]{padding:0 10px!important;font-size:1.1rem!important}.btn-primary.add-btn[_ngcontent-%COMP%]{padding:6.5px 32.5px;font-size:1.4rem}.btn-connect[_ngcontent-%COMP%]{color:#fff;border:2px solid #fff}.btn-primary.submit[_ngcontent-%COMP%], .btn-secondary.submit[_ngcontent-%COMP%]{padding:5px 20px;font-size:1.1rem}@media screen and (max-width: 1540px){.btn-primary.buy-btn[_ngcontent-%COMP%], .btn-secondary.offer-btn[_ngcontent-%COMP%]{padding:5px 10px;font-size:1.2rem}}@media screen and (max-width: 1540px) and (max-width: 768px){.btn-primary.buy-btn[_ngcontent-%COMP%]{padding:6px 18px}}@media screen and (max-width: 1540px) and (max-width: 524px){.btn-primary.buy-btn[_ngcontent-%COMP%]{padding:6px 15px;font-size:1.1rem!important;width:83px!important}.btn-secondary.offer-btn[_ngcontent-%COMP%]{width:95px!important;font-size:1.1rem!important}}.btn-secondary[_ngcontent-%COMP%]{outline:none;border:0;color:#1db0a9;background-color:#fff;border:2px solid #1db0a9;padding:5px 15px;font-size:1.4rem;font-weight:600;border-radius:50px;cursor:pointer}.btn-secondary[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #1db0a9}.btn-secondary.no-border[_ngcontent-%COMP%]{border:2px solid #1db0a9}.btn-secondary.delete-btn[_ngcontent-%COMP%]{padding:5px 20px;font-size:1.1rem}.btn-secondary.close-btn[_ngcontent-%COMP%]{padding:5px 23px;font-size:1.1rem}.btn-secondary.add-btn[_ngcontent-%COMP%]{padding:5px 27.5px;font-size:1.1rem}.btn-secondary.add-btn[_ngcontent-%COMP%]:disabled{border:2px solid #888;color:#888;opacity:.6}.btn-primary.purple[_ngcontent-%COMP%]{background-color:#ae5dcf;margin-left:0;margin-top:0;border:2px solid #fff}.btn-primary.purple[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #ae5dcf}.btn-primary.purple.no-border[_ngcontent-%COMP%]{border:2px solid #ae5dcf}@media screen and (max-width: 370px){.btn-primary.purple[_ngcontent-%COMP%]{font-size:1.1rem}}.btn-primary.navy-btn[_ngcontent-%COMP%]{background-color:#2969a6;margin-left:0;margin-top:0;height:36px;width:-moz-fit-content;width:fit-content;border:2px solid #fff}.btn-primary.navy-btn.h-38[_ngcontent-%COMP%]{height:38.5px;text-wrap:nowrap}.btn-primary.navy-btn.no-border[_ngcontent-%COMP%]{border:2px solid #2969a6}.btn-primary.navy-btn[_ngcontent-%COMP%]:hover{box-shadow:0 1px 5px #2969a6}@media screen and (max-width: 1420px){.btn-primary.navy-btn[_ngcontent-%COMP%]{font-size:1.1rem;height:33px}}@media screen and (max-width: 370px){.btn-primary.navy-btn[_ngcontent-%COMP%]{font-size:1.1rem}}.btn.turquoise[_ngcontent-%COMP%]{color:#4ac1ba;font-size:1.4rem;border:none;background-color:transparent;cursor:pointer}.btn.turquoise.no-border[_ngcontent-%COMP%]{border:2px solid #4ac1ba}.spinner[_ngcontent-%COMP%]{display:block;width:17px;height:17px;min-width:17px;min-height:17px;max-width:20px;border-radius:50%;border:2px solid #fff;animation:_ngcontent-%COMP%_spinner-bulqg1 .8s infinite linear alternate,spinner-oaa3wk 1.6s infinite linear}.btn-primary[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{border:2px solid #fff}.btn-error[_ngcontent-%COMP%]{background-color:#ee5552!important;border:2px solid #ee5552}.btn-success[_ngcontent-%COMP%]{background-color:#47bc5d!important;border:2px solid #47bc5d}.btn-loading[_ngcontent-%COMP%]{width:150px}@media screen and (max-width: 1540px){button[_ngcontent-%COMP%]{font-size:1.3rem}button.btn-primary-steal[_ngcontent-%COMP%]{font-size:1.5rem}}@media screen and (max-width: 1540px) and (max-width: 550px){button.btn-primary-steal[_ngcontent-%COMP%]{font-size:1.4rem}}@media screen and (max-width: 1420px) and (min-width: 1201px){button[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 1320px){button[_ngcontent-%COMP%], .btn.turquoise[_ngcontent-%COMP%]{font-size:1.4rem}}@media screen and (max-width: 670px){.btn-primary[_ngcontent-%COMP%]{font-size:1.2rem!important;border:1px solid #1db0a9}}@media screen and (max-width: 550px){button[_ngcontent-%COMP%]{font-size:1.2rem;gap:5px}button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12px!important}.btn-connect[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.btn-primary-gray[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 525px){button[_ngcontent-%COMP%]{font-size:1.2rem;gap:5px}button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12px!important}.spinner[_ngcontent-%COMP%]{height:12px;width:12px;min-height:12px;min-width:12px}.btn-primary[_ngcontent-%COMP%]{font-size:1.2rem}}@media screen and (max-width: 360px){.btn-connect[_ngcontent-%COMP%]{font-size:1.2rem}}@keyframes _ngcontent-%COMP%_spinner-bulqg1{0%{clip-path:polygon(50% 50%,0 0,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%)}12.5%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 0%,100% 0%,100% 0%)}25%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 100%,100% 100%,100% 100%)}50%{clip-path:polygon(50% 50%,0 0,50% 0%,100% 0%,100% 100%,50% 100%,0% 100%)}62.5%{clip-path:polygon(50% 50%,100% 0,100% 0%,100% 0%,100% 100%,50% 100%,0% 100%)}75%{clip-path:polygon(50% 50%,100% 100%,100% 100%,100% 100%,100% 100%,50% 100%,0% 100%)}to{clip-path:polygon(50% 50%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,0% 100%)}}@keyframes _ngcontent-%COMP%_spinner-oaa3wk{0%{transform:scaleY(1) rotate(0)}49.99%{transform:scaleY(1) rotate(135deg)}50%{transform:scaleY(-1) rotate(0)}to{transform:scaleY(-1) rotate(-135deg)}}"]}),n})();var ll=(()=>(function(n){n[n.Idle=0]="Idle",n[n.Loading=1]="Loading",n[n.Success=2]="Success",n[n.Error=3]="Error"}(ll||(ll={})),ll))(),qd=(()=>(function(n){n[n.Off=0]="Off",n[n.Error=1]="Error",n[n.Warning=2]="Warning",n[n.Info=3]="Info",n[n.Debug=4]="Debug"}(qd||(qd={})),qd))();class nf{static enableProductionMode(){nf.level=qd.Warning}constructor(t){this.source=t}debug(...t){this.log(console.log,qd.Debug,t)}info(...t){this.log(console.info,qd.Info,t)}warn(...t){this.log(console.warn,qd.Warning,t)}error(...t){this.log(console.error,qd.Error,t)}log(t,e,o){if(e<=nf.level){const r=this.source?["["+this.source+"]"].concat(o):o;t.apply(console,r),nf.outputs.forEach(i=>i.apply(i,[this.source,e,...o]))}}}nf.level=qd.Debug,nf.outputs=[];const m8=new nf("HttpCacheService"),GZ="httpCache";let g4e=(()=>{class n{constructor(){this.cachedData={},this.storage=null,this.storage=sessionStorage,this.loadCacheData()}setCacheData(e,o,r){this.cachedData[e]={lastUpdated:r||new Date,data:o},m8.debug(`Cache set for key: "${e}"`),this.saveCacheData()}getCacheData(e){const o=this.cachedData[e];return o?(m8.debug(`Cache hit for key: "${e}"`),this.isOlderByAtLeastOneMinute(o?.lastUpdated)?(this.clearCache(e),null):o.data):null}getHttpCacheEntry(e){return this.cachedData[e]||null}clearCache(e){delete this.cachedData[e],m8.debug(`Cache cleared for key: "${e}"`),this.saveCacheData()}cleanCache(e){e?Object.entries(this.cachedData).forEach(([o,r])=>{e>=r.lastUpdated&&delete this.cachedData[o]}):this.cachedData={},this.saveCacheData()}saveCacheData(){this.storage&&this.storage.setItem(GZ,JSON.stringify(this.cachedData))}loadCacheData(){const e=this.storage?this.storage.getItem(GZ):null;this.cachedData=e?JSON.parse(e):{}}isOlderByAtLeastOneMinute(e){const o=new Date(e);return Math.abs((new Date).getTime()-o.getTime())/6e4>=10}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fi=new class Vie{constructor(t){this.defaultValue=t}}(()=>!1);let O4e=(()=>{class n{constructor(e){this.cacheService=e}intercept(e,o){if(!this.isRequestCachable(e))return o.handle(e);const r=this.cacheService.getCacheData(e.urlWithParams);return r?ve(new Ft(r)):o.handle(e).pipe(Xo(i=>{i instanceof Ft&&this.cacheService.setCacheData(e.urlWithParams,i)}))}isRequestCachable(e){return"GET"===e.method&&!0===e.context.get(Fi)&&$e.production}}return n.\u0275fac=function(e){return new(e||n)(Se(g4e))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})(),hi=(()=>{class n{constructor(){this.rootUrl="http://localhost:3000"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ya=(()=>{class n{constructor(e,o){this.config=e,this.http=o,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}}return n.\u0275fac=function(e){return new(e||n)(Se(hi),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const _4e=new class m4e{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class _8{constructor(t,e,o,r,i){this.name=t,this.value=e,this.options=o,this.options=o||{},null==this.options.style&&(this.options.style=r),null==this.options.explode&&(this.options.explode=i)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(o=>this.serializeValue(o).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];null!=i&&(i=this.serializeValue(i).split(e).join(encodeURIComponent(e)),this.options.explode?o.push(`${r}=${i}`):(o.push(r),o.push(i)))}return o.join(e)}return String(t)}}class z4e extends _8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let o="label"===this.options.style?".":"",r=this.options.explode?""===o?",":o:",",i=!1;return"matrix"===this.options.style&&(o=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(o=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),i=!0):(e=this.serializeValue(e,";"),i=!0))),e=o+(i?e:this.serializeValue(e,r)),(t=t.replace(`{${this.name}}`,e)).replace(`{${o}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var o="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(o=(o=o.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class v4e extends _8{constructor(t,e,o){super(t,e,o,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(o)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(e,this.serializeValue(o)))}else{const e=[];for(const o of Object.keys(this.value)){const r=this.value[o];null!=r&&(e.push(o),e.push(r))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class A4e extends _8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class Ln{constructor(t,e,o){this.rootUrl=t,this.operationPath=e,this.method=o,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,o){this._path.set(t,new z4e(t,e,o||{}))}query(t,e,o){this._query.set(t,new v4e(t,e,o||{}))}header(t,e,o){this._header.set(t,new A4e(t,e,o||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];i instanceof Array||(i=[i]);for(const a of i){const s=this.formDataValue(a);null!==s&&o.push([r,s])}}this._bodyContent=o.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const o=new FormData;if(null!=t)for(const r of Object.keys(t)){const i=t[r];if(i instanceof Array)for(const a of i){const s=this.formDataValue(a);null!==s&&o.append(r,s)}else{const a=this.formDataValue(i);null!==a&&o.set(r,a)}}this._bodyContent=o}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const o=this.rootUrl+e;let r=new fc({encoder:_4e});for(const a of this._query.values())r=a.append(r);let i=new wi;t.accept&&(i=i.append("Accept",t.accept));for(const a of this._header.values())i=a.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set("Content-Type",this._bodyContentType)),new ru(this.method.toUpperCase(),o,this._bodyContent,{params:r,headers:i,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let ZZ=(()=>{class n extends ya{constructor(e,o){super(e,o)}getSecurityAuctionMetadataWithStats$Response(e,o){const r=new Ln(this.rootUrl,n.SecurityAuctionStatControllerGetSecurityAuctionMetadataWithStatsPath,"get");return e&&(r.path("auctionNumber",e.auctionNumber,{}),r.path("name",e.name,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}getSecurityAuctionMetadataWithStats(e,o){return this.getSecurityAuctionMetadataWithStats$Response(e,o).pipe($(r=>r.body))}}return n.SecurityAuctionStatControllerGetSecurityAuctionMetadataWithStatsPath="/security-auction/stats/{auctionNumber}/{name}/{unit}",n.\u0275fac=function(e){return new(e||n)(Se(hi),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KZ=(()=>{class n{constructor(){this.rootUrl="http://localhost:3002"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),y4e=(()=>{class n{constructor(e,o){this.config=e,this.http=o,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}}return n.\u0275fac=function(e){return new(e||n)(Se(KZ),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const w4e=new class C4e{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class z8{constructor(t,e,o,r,i){this.name=t,this.value=e,this.options=o,this.options=o||{},null==this.options.style&&(this.options.style=r),null==this.options.explode&&(this.options.explode=i)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(o=>this.serializeValue(o).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];null!=i&&(i=this.serializeValue(i).split(e).join(encodeURIComponent(e)),this.options.explode?o.push(`${r}=${i}`):(o.push(r),o.push(i)))}return o.join(e)}return String(t)}}class P4e extends z8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let o="label"===this.options.style?".":"",r=this.options.explode?""===o?",":o:",",i=!1;return"matrix"===this.options.style&&(o=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(o=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),i=!0):(e=this.serializeValue(e,";"),i=!0))),e=o+(i?e:this.serializeValue(e,r)),(t=t.replace(`{${this.name}}`,e)).replace(`{${o}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var o="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(o=(o=o.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class x4e extends z8{constructor(t,e,o){super(t,e,o,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(o)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(e,this.serializeValue(o)))}else{const e=[];for(const o of Object.keys(this.value)){const r=this.value[o];null!=r&&(e.push(o),e.push(r))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class q4e extends z8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class JZ{constructor(t,e,o){this.rootUrl=t,this.operationPath=e,this.method=o,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,o){this._path.set(t,new P4e(t,e,o||{}))}query(t,e,o){this._query.set(t,new x4e(t,e,o||{}))}header(t,e,o){this._header.set(t,new q4e(t,e,o||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];i instanceof Array||(i=[i]);for(const a of i){const s=this.formDataValue(a);null!==s&&o.push([r,s])}}this._bodyContent=o.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const o=new FormData;if(null!=t)for(const r of Object.keys(t)){const i=t[r];if(i instanceof Array)for(const a of i){const s=this.formDataValue(a);null!==s&&o.append(r,s)}else{const a=this.formDataValue(i);null!==a&&o.set(r,a)}}this._bodyContent=o}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const o=this.rootUrl+e;let r=new fc({encoder:w4e});for(const a of this._query.values())r=a.append(r);let i=new wi;t.accept&&(i=i.append("Accept",t.accept));for(const a of this._header.values())i=a.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set("Content-Type",this._bodyContentType)),new ru(this.method.toUpperCase(),o,this._bodyContent,{params:r,headers:i,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let W4e=(()=>{class n extends y4e{constructor(e,o){super(e,o)}getCostByTypeAndUnit$Response(e,o){const r=new JZ(this.rootUrl,n.CloudVmCostControllerGetCostByTypeAndUnitPath,"get");return e&&(r.path("type",e.type,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}getCostByTypeAndUnit(e,o){return this.getCostByTypeAndUnit$Response(e,o).pipe($(r=>r.body))}getProductionCostByMeasurementAndUnit$Response(e,o){const r=new JZ(this.rootUrl,n.CloudVmCostControllerGetProductionCostByMeasurementAndUnitPath,"get");return e&&(r.path("unit",e.unit,{}),r.path("costType",e.costType,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}getProductionCostByMeasurementAndUnit(e,o){return this.getProductionCostByMeasurementAndUnit$Response(e,o).pipe($(r=>r.body))}}return n.CloudVmCostControllerGetCostByTypeAndUnitPath="/cost/compute/{type}/{unit}",n.CloudVmCostControllerGetProductionCostByMeasurementAndUnitPath="/cost/production/{unit}/{costType}",n.\u0275fac=function(e){return new(e||n)(Se(KZ),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gP=(()=>{class n extends ya{constructor(e,o){super(e,o)}getResourceByTypeAndSubType$Response(e,o){const r=new Ln(this.rootUrl,n.StoreCloudVmControllerGetResourceByTypeAndSubTypePath,"get");return e&&(r.path("type",e.type,{}),r.path("subtype",e.subtype,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}getResourceByTypeAndSubType(e,o){return this.getResourceByTypeAndSubType$Response(e,o).pipe($(r=>r.body))}getResourceByType$Response(e,o){const r=new Ln(this.rootUrl,n.StoreCloudVmControllerGetResourceByTypePath,"get");return e&&(r.path("type",e.type,{}),r.path("unit",e.unit,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}getResourceByType(e,o){return this.getResourceByType$Response(e,o).pipe($(r=>r.body))}}return n.StoreCloudVmControllerGetResourceByTypeAndSubTypePath="/cloudspace-vm/dedicated/{type}/{subtype}/{unit}",n.StoreCloudVmControllerGetResourceByTypePath="/cloudspace-vm/dedicated/{type}/{unit}",n.\u0275fac=function(e){return new(e||n)(Se(hi),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QZ=(()=>{class n extends ya{constructor(e,o){super(e,o)}convert$Response(e,o){const r=new Ln(this.rootUrl,n.TokenPriceControllerConvertPath,"get");return e&&(r.path("from",e.from,{}),r.path("to",e.to,{}),r.path("amount",e.amount,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}convert(e,o){return this.convert$Response(e,o).pipe($(r=>r.body))}getTokenPriceByCurrency$Response(e,o){const r=new Ln(this.rootUrl,n.TokenPriceControllerGetTokenPriceByCurrencyPath,"get");return e&&(r.path("ids",e.ids,{}),r.path("vs_currency",e.vs_currency,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}getTokenPriceByCurrency(e,o){return this.getTokenPriceByCurrency$Response(e,o).pipe($(r=>r.body))}}return n.TokenPriceControllerConvertPath="/token-prices/convert/{from}/{to}/{amount}",n.TokenPriceControllerGetTokenPriceByCurrencyPath="/token-prices/{ids}/{vs_currency}",n.\u0275fac=function(e){return new(e||n)(Se(hi),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const{isArray:L4e}=Array;const D4e=["*"],k4e=function(n,t){return{"border-color":n,"border-right-color":t}};function E4e(n,t){if(1&n&&(v(0,"div"),p(1,"\n "),Me(2,"hot-toast-error",2),p(3,"\n "),A()),2&n){const e=le(3);q(2),D("theme",e.theme)}}function N4e(n,t){if(1&n&&(v(0,"div"),p(1,"\n "),Me(2,"hot-toast-checkmark",2),p(3,"\n "),A()),2&n){const e=le(3);q(2),D("theme",e.theme)}}function I4e(n,t){if(1&n&&(v(0,"div"),p(1,"\n "),Me(2,"hot-toast-warning",2),p(3,"\n "),A()),2&n){const e=le(3);q(2),D("theme",e.theme)}}function B4e(n,t){if(1&n&&(v(0,"div"),p(1,"\n "),Me(2,"hot-toast-info",2),p(3,"\n "),A()),2&n){const e=le(3);q(2),D("theme",e.theme)}}function F4e(n,t){if(1&n&&(v(0,"div",4),p(1,"\n "),v(2,"div",5),p(3,"\n "),Q(4,E4e,4,1,"div",6),p(5,"\n "),Q(6,N4e,4,1,"div",6),p(7,"\n "),Q(8,I4e,4,1,"div",6),p(9,"\n "),Q(10,B4e,4,1,"div",6),p(11,"\n "),A(),p(12,"\n "),A()),2&n){const e=le(2);q(2),D("ngSwitch",e.type),q(2),D("ngSwitchCase","error"),q(2),D("ngSwitchCase","success"),q(2),D("ngSwitchCase","warning"),q(2),D("ngSwitchCase","info")}}function Y4e(n,t){if(1&n&&(v(0,"div",1),p(1,"\n "),Me(2,"hot-toast-loader",2),p(3,"\n "),Q(4,F4e,13,5,"div",3),p(5,"\n"),A()),2&n){const e=le();q(2),D("theme",e.theme),q(2),D("ngIf","loading"!==e.type)}}const H4e=["hotToastBarBase"];function X4e(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"hot-toast-animated-icon",10),p(3),A(),p(4,"\n "),He()),2&n){const e=le(2);q(2),D("iconTheme",e.toast.iconTheme),q(1),t0(e.toast.icon)}}function j4e(n,t){if(1&n&&(p(0,"\n "),v(1,"div"),p(2,"\n "),m0(3,11),p(4,"\n "),A(),p(5,"\n ")),2&n){const e=le(2);q(3),D("dynamicView",e.toast.icon)}}function U4e(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,X4e,5,2,"ng-container",4),p(3,"\n "),Q(4,j4e,6,1,"ng-template",null,9,$t),p(6,"\n "),He()),2&n){const e=Ot(5),o=le();q(2),D("ngIf",o.isIconString)("ngIfElse",e)}}function V4e(n,t){if(1&n&&(p(0,"\n "),Me(1,"hot-toast-indicator",12),p(2,"\n ")),2&n){const e=le();q(1),D("theme",e.toast.iconTheme)("type",e.toast.type)}}function $4e(n,t){1&n&&m0(0)}function G4e(n,t){if(1&n){const e=b1();v(0,"button",13),yt("click",function(){return T0(e),v0(le().close())}),A()}2&n&&D("ngStyle",le().toast.closeStyle)}function Z4e(n,t){if(1&n){const e=b1();v(0,"hot-toast",3),yt("height",function(r){const a=T0(e).$implicit;return v0(le().updateHeight(r,a))})("beforeClosed",function(){const i=T0(e).$implicit;return v0(le().beforeClosed(i))})("afterClosed",function(r){return T0(e),v0(le().afterClosed(r))}),A()}if(2&n){const e=t.$implicit,o=t.index,r=le();D("toast",e)("offset",r.calculateOffset(e.id,e.position))("toastRef",r.toastRefs[o])}}const eK={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3,info:4e3};class v8{constructor(t){this.toast=t,this._onClosed=new N}get data(){return this.toast.data}set dispose(t){this._dispose=t}getToast(){return this.toast}appendTo(t){const{dispose:e,updateMessage:o,updateToast:r,afterClosed:i}=t.addToast(this);return this.dispose=e,this.updateMessage=o,this.updateToast=r,this.afterClosed=function R4e(...n){return 1===(n=function T4e(n){return 1===n.length&&L4e(n[0])?n[0]:n}(n)).length?D0(n[0]):new U(function S4e(n){return t=>{let e=[];for(let o=0;e&&!t.closed&&o{if(e){for(let i=0;i{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme"},ngContentSelectors:D4e,decls:5,vars:2,consts:[[1,"hot-toast-animated-icon"]],template:function(e,o){1&e&&(function hN(n){const t=gt()[I0][Nr];if(!t.projection){const o=t.projection=Sc(n?n.length:1,null),r=o.slice();let i=t.child;for(;null!==i;){const a=n?a0e(i,n):0;null!==a&&(r[a]?r[a].projectionNext=i:o[a]=i,r[a]=i),i=i.next}}}(),v(0,"div",0),p(1,"\n "),function MN(n,t=0,e){const o=gt(),r=d1(),i=_2(r,yn+n,16,null,e||null);null===i.projection&&(i.projection=t),Wf(),32!=(32&i.flags)&&function Rq(n,t,e){Ry(t[De],0,t,e,yy(n,e,t),xy(e.parent||t[Nr],e,t))}(r,o,i)}(2),p(3,"\n"),A(),p(4,"\n")),2&e&&v2("color",null==o.iconTheme?null:o.iconTheme.primary)},encapsulation:2,changeDetection:0}),n})(),tCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(e,o){1&e&&(Me(0,"div",0),p(1,"\n")),2&e&&v2("--check-primary",null==o.theme?null:o.theme.primary)("--check-secondary",null==o.theme?null:o.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),nCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(e,o){1&e&&(Me(0,"div",0),p(1,"\n")),2&e&&v2("--error-primary",null==o.theme?null:o.theme.primary)("--error-secondary",null==o.theme?null:o.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),oCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon",3,"ngStyle"]],template:function(e,o){1&e&&(Me(0,"div",0),p(1,"\n")),2&e&&D("ngStyle",Cr(1,k4e,null==o.theme?null:o.theme.primary,null==o.theme?null:o.theme.secondary))},dependencies:[ao],encapsulation:2,changeDetection:0}),n})(),rCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(e,o){1&e&&(Me(0,"div",0),p(1,"\n")),2&e&&v2("--warn-primary",null==o.theme?null:o.theme.primary)("--warn-secondary",null==o.theme?null:o.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),iCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["hot-toast-info"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-info-icon"]],template:function(e,o){1&e&&(Me(0,"div",0),p(1,"\n")),2&e&&v2("--warn-primary",null==o.theme?null:o.theme.primary)("--warn-secondary",null==o.theme?null:o.theme.secondary)},encapsulation:2,changeDetection:0}),n})(),aCe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:2,vars:1,consts:[["class","hot-toast-indicator-wrapper",4,"ngIf"],[1,"hot-toast-indicator-wrapper"],[3,"theme"],["class","hot-toast-status-wrapper",4,"ngIf"],[1,"hot-toast-status-wrapper"],[3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(e,o){1&e&&(Q(0,Y4e,6,2,"div",0),p(1,"\n")),2&e&&D("ngIf","blank"!==o.type)},dependencies:[f1,uC,bB,tCe,nCe,oCe,rCe,iCe],encapsulation:2,changeDetection:0}),n})(),nK=(()=>{class n{constructor(e,o,r){this.injector=e,this.renderer=o,this.ngZone=r,this.offset=0,this.height=new G1,this.beforeClosed=new G1,this.afterClosed=new G1,this.isManualClose=!1,this.unlisteners=[]}get containerPositionStyle(){const e=this.toast.position.includes("top"),o=e?{top:0}:{bottom:0},r=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return{transform:`translateY(${this.offset*(e?1:-1)}px)`,...o,...r}}get toastBarBaseStyles(){const e=this.toast.position.includes("top"),o=`hotToastEnterAnimation${e?"Negative":"Positive"} 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`;return{...this.toast.style,animation:this.toast.autoClose?`${o}, hotToastExitAnimation${e?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) ${this.toast.duration}ms`:o}}get isIconString(){return"string"==typeof this.toast.icon}ngOnInit(){aP(this.toast.message)&&(this.context={$implicit:this.toastRef}),Lv(this.toast.message)&&(this.toastComponentInjector=Jo.create({providers:[{provide:v8,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){const e=this.toastBarBase.nativeElement;requestAnimationFrame(()=>{this.height.emit(e.offsetHeight)}),this.ngZone.runOutsideAngular(()=>{this.unlisteners.push(this.renderer.listen(e,"animationstart",o=>{this.isExitAnimation(o)&&this.ngZone.run(()=>this.beforeClosed.emit())}),this.renderer.listen(e,"animationend",o=>{this.isExitAnimation(o)&&this.ngZone.run(()=>this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id}))}))}),this.setToastAttributes()}close(){this.isManualClose=!0;((n,t)=>{this.toastBarBase.nativeElement.style.animation=t})(0,`hotToastExitAnimation${this.toast.position.includes("top")?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`)}ngOnDestroy(){for(this.close();this.unlisteners.length;)this.unlisteners.pop()()}isExitAnimation(e){return e.animationName.includes("hotToastExitAnimation")}setToastAttributes(){const e=this.toast.attributes;for(const[o,r]of Object.entries(e))this.renderer.setAttribute(this.toastBarBase.nativeElement,o,r)}}return n.\u0275fac=function(e){return new(e||n)(Te(Jo),Te(P1),Te(Lo))},n.\u0275cmp=kt({type:n,selectors:[["hot-toast"]],viewQuery:function(e,o){if(1&e&&uc(H4e,5),2&e){let r;xs(r=qs())&&(o.toastBarBase=r.first)}},inputs:{toast:"toast",offset:"offset",defaultConfig:"defaultConfig",toastRef:"toastRef"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed"},decls:25,vars:14,consts:[[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["hotToastBarBase",""],["aria-hidden","true",1,"hot-toast-icon"],[4,"ngIf","ngIfElse"],["indicator",""],[1,"hot-toast-message"],[4,"dynamicView","dynamicViewContext","dynamicViewInjector"],["type","button","class","hot-toast-close-btn","aria-label","Close",3,"ngStyle","click",4,"ngIf"],["iconTemplateOrComponent",""],[3,"iconTheme"],[3,"dynamicView"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"ngStyle","click"]],template:function(e,o){if(1&e&&(v(0,"div",0),p(1,"\n "),v(2,"div",1,2),p(4,"\n "),v(5,"div",3),p(6,"\n "),Q(7,U4e,7,2,"ng-container",4),p(8,"\n\n "),Q(9,V4e,3,2,"ng-template",null,5,$t),p(11,"\n "),A(),p(12,"\n\n "),v(13,"div",6),p(14,"\n "),v(15,"div"),p(16,"\n "),Q(17,$4e,1,0,"ng-container",7),p(18,"\n "),A(),p(19,"\n "),A(),p(20,"\n\n "),Q(21,G4e,1,1,"button",8),p(22,"\n "),A(),p(23,"\n"),A(),p(24,"\n")),2&e){const r=Ot(10);D("ngStyle",o.containerPositionStyle)("ngClass","hot-toast-theme-"+o.toast.theme),q(2),v2("--hot-toast-animation-state",o.isManualClose?"running":"paused"),D("ngStyle",o.toastBarBaseStyles)("ngClass",o.toast.className),Fc("aria-live",o.toast.ariaLive)("role",o.toast.role),q(5),D("ngIf",void 0!==o.toast.icon)("ngIfElse",r),q(10),D("dynamicView",o.toast.message)("dynamicViewContext",o.context)("dynamicViewInjector",o.toastComponentInjector),q(4),D("ngIf",o.toast.dismissible)}},dependencies:[ko,f1,ao,rve,eCe,aCe],encapsulation:2,changeDetection:0}),n})(),sCe=(()=>{class n{constructor(e){this.cdr=e,this.toasts=[],this.toastRefs=[],this._onClosed=new N,this.onClosed$=this._onClosed.asObservable()}trackById(e,o){return o.id}calculateOffset(e,o){const r=this.toasts.filter(s=>s.visible&&s.position===o),i=r.findIndex(s=>s.id===e);return-1!==i?r.slice(...this.defaultConfig.reverseOrder?[i+1]:[0,i]).reduce((s,c)=>s+(c.height||0)+8,0):0}updateHeight(e,o){o.height=e,this.cdr.detectChanges()}addToast(e){this.toastRefs.push(e);const o=e.getToast();return this.toasts.push(e.getToast()),this.cdr.detectChanges(),{dispose:()=>{this.closeToast(o.id)},updateMessage:r=>{o.message=r,this.cdr.detectChanges()},updateToast:r=>{this.updateToasts(o,r),this.cdr.detectChanges()},afterClosed:this.getAfterClosed(o)}}closeToast(e){if(e){const o=this.hotToastComponentList.find(r=>r.toast.id===e);o&&o.close()}else this.hotToastComponentList.forEach(o=>o.close())}beforeClosed(e){e.visible=!1}afterClosed(e){this.toasts.findIndex(r=>r.id===e.id)>-1&&(this._onClosed.next(e),this.toasts=this.toasts.filter(r=>r.id!==e.id),this.toastRefs=this.toastRefs.filter(r=>r.getToast().id!==e.id),this.cdr.detectChanges())}hasToast(e){return this.toasts.findIndex(o=>o.id===e)>-1}getAfterClosed(e){return this.onClosed$.pipe(zt(o=>o.id===e.id))}updateToasts(e,o){this.toasts=this.toasts.map(r=>({...r,...r.id===e.id&&{...e,...o}}))}}return n.\u0275fac=function(e){return new(e||n)(Te(dc))},n.\u0275cmp=kt({type:n,selectors:[["hot-toast-container"]],viewQuery:function(e,o){if(1&e&&uc(nK,5),2&e){let r;xs(r=qs())&&(o.hotToastComponentList=r)}},inputs:{defaultConfig:"defaultConfig"},decls:8,vars:2,consts:[[2,"position","fixed","z-index","9999","top","0","right","0","bottom","0","left","0","pointer-events","none"],[2,"position","relative","height","100%"],[3,"toast","offset","toastRef","height","beforeClosed","afterClosed",4,"ngFor","ngForOf","ngForTrackBy"],[3,"toast","offset","toastRef","height","beforeClosed","afterClosed"]],template:function(e,o){1&e&&(v(0,"div",0),p(1,"\n "),v(2,"div",1),p(3,"\n "),Q(4,Z4e,1,3,"hot-toast",2),p(5,"\n "),A(),p(6,"\n"),A(),p(7,"\n")),2&e&&(q(4),D("ngForOf",o.toasts)("ngForTrackBy",o.trackById))},dependencies:[er,nK],encapsulation:2,changeDetection:0}),n})();class oK{constructor(){this.reverseOrder=!1,this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.attributes={},this.info={content:""},this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}}class pCe{constructor(){this.storage="local",this.key="ngneat/hototast-${id}",this.count=1,this.enabled=!1}}let Wd=(()=>{class n{constructor(e,o,r){this._viewService=e,this.platformId=o,this._isInitialized=!1,this._defaultConfig=new oK,this._defaultPersistConfig=new pCe,r&&(this._defaultConfig={...this._defaultConfig,...r})}get defaultConfig(){return this._defaultConfig}set defaultConfig(e){this._defaultConfig={...this._defaultConfig,...e},this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultConfig)}show(e,o){return this.createToast(e||this._defaultConfig.blank.content,"blank",{...this._defaultConfig,...o})}error(e,o){return this.createToast(e||this._defaultConfig.error.content,"error",{...this._defaultConfig,...this._defaultConfig?.error,...o})}success(e,o){return this.createToast(e||this._defaultConfig.success.content,"success",{...this._defaultConfig,...this._defaultConfig?.success,...o})}loading(e,o){return this.createToast(e||this._defaultConfig.loading.content,"loading",{...this._defaultConfig,...this._defaultConfig?.loading,...o})}warning(e,o){return this.createToast(e||this._defaultConfig.warning.content,"warning",{...this._defaultConfig,...this._defaultConfig?.warning,...o})}info(e,o){return this.createToast(e||this._defaultConfig.info.content,"info",{...this._defaultConfig,...this._defaultConfig?.info,...o})}observe(e){return o=>{let r,i=0;const a=e.loading??this._defaultConfig.loading?.content,s=e.success??this._defaultConfig.success?.content,c=e.error??this._defaultConfig.error?.content;return I_(()=>(a&&(r=this.createLoadingToast(a),i=Date.now()),o.pipe(Xo({...s&&{next:l=>{r=this.createOrUpdateToast(e,l,r,"success",0===i?i:Date.now()-i)}},...c&&{error:l=>{r=this.createOrUpdateToast(e,l,r,"error",0===i?i:Date.now()-i)}}}))))}}close(e){this._componentRef&&this._componentRef.ref.instance.closeToast(e)}init(){lL(this.platformId)||(this._componentRef=this._viewService.createComponent(sCe).setInput("defaultConfig",this._defaultConfig).appendTo(document.body))}createOrUpdateToast(e,o,r,i,a){let s=null,c={};if(({content:s,options:c}=this.getContentAndOptions(i,e[i]||(this._defaultConfig[i]?this._defaultConfig[i].content:""))),s=((n,t)=>(n=>"function"==typeof n)(n)?n(t):n)(s,o),r){r.updateMessage(s);const l={type:i,duration:a+eK[i],...c,...c.duration&&{duration:a+c.duration}};r.updateToast(l)}else this.createToast(s,i,c);return r}createToast(e,o,r,i){this._isInitialized||(this._isInitialized=!0,this.init());const a=Date.now(),s=r?.id??a.toString();if(!this.isDuplicate(s)&&(!r.persist?.enabled||r.persist?.enabled&&this.handleStorageValue(s,r))){const c={ariaLive:r?.ariaLive??"polite",createdAt:a,duration:r?.duration??eK[o],id:s,message:e,role:r?.role??"status",type:o,visible:!0,observableMessages:i??void 0,...r};return new v8(c).appendTo(this._componentRef.ref.instance)}}isDuplicate(e){return this._componentRef.ref.instance.hasToast(e)}handleStorageValue(e,o){let r=1;const i={...this._defaultPersistConfig,...o.persist},a="local"===i.storage?localStorage:sessionStorage,s=i.key.replace(/\${id}/g,e);let c=a.getItem(s);return c?(c=parseInt(c,10),r=c>0?c-1:c):r=i.count,a.setItem(s,r.toString()),r}getContentAndOptions(e,o){let r,i={...this._defaultConfig,...this._defaultConfig[e]};if("string"==typeof o||aP(o)||Lv(o))r=o;else{let a;({content:r,...a}=o),i={...i,...a}}return{content:r,options:i}}createLoadingToast(e){let o=null,r={};return({content:o,options:r}=this.getContentAndOptions("loading",e)),this.loading(o,r)}}return n.\u0275fac=function(e){return new(e||n)(Se(u8),Se(Pg),Se(oK,8))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var dM;let Hs=(dM=class{constructor(t,e,o,r,i,a,s){this.http=t,this.securityAuctionStatsService=e,this.cloudVmCostControllerService=o,this.storeCloudVmService=r,this.tokenPriceService=i,this.hotToastService=a,this.oracleFormatValuePipe=s,this.totalValueLocked$=null,this.dyPos$=null,this.dyPosSurge$=null,this.security$=null,this.costOfCompute$=null,this.dDosProtection$=null,this.networkOperators$=null,this.cloudCapacity$=null,this.governanceResults=null,this.auctionEconomics=null,this.circulatingSupplyInfo$=null,this.totalSupplyInfo$=null,this.allocatedSupplyInfo$=null,this.storePrice={}}getStorePrice(){return ve(0).pipe(Pi(500))}getTrendData(t,e){return this.http.get("/consensus"+t+(e?.from&&e?.till?`?from=${e?.from}&till=${e?.till}`:""))}getTransactionById(t,e){return this.http.get(e+"/transactions/"+t)}getExchangeRate(t,e){return this.http.get(`https://api.coingecko.com/api/v3/simple/price?ids=${t}&vs_currencies=${e}`)}getEtherPrice(){var t=this;return Nt(function*(){const e=yield t.tokenPriceService.getTokenPriceByCurrency({ids:lt.Unit.USD,vs_currency:lt.Unit.ETH}).toPromise();return e1(e?.[lt.Unit.USD]??0)?.toNumber()})()}getAllTimeMarketCapFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vRdKLBsiJyE1O1eKuXUn_QnJfwOxnu_yLLpaOgd79zJfpvdMpbR2eDAZn5oBsF39CCaXewTG6biB0JX/pub?gid=0&single=true&output=csv",{responseType:"text",context:(new Ei).set(Fi,!0)}).pipe($(t=>this.parseCSV(t)))}getAllocatedSupplyHistoryFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vTWQ-hIY86B-xRlAoLPOQc1L0-Dmb59AUtp-_declUDUtr2FEOGjQgDBGP9rJbmiqQcVocGRV1ugxEr/pub?gid=1834631508&single=true&output=csv",{responseType:"text",context:(new Ei).set(Fi,!0)}).pipe($(t=>this.parseCSV(t)))}getTreasuryScheduleChartFromGSheet(){return this.http.get("https://docs.google.com/spreadsheets/d/e/2PACX-1vTWQ-hIY86B-xRlAoLPOQc1L0-Dmb59AUtp-_declUDUtr2FEOGjQgDBGP9rJbmiqQcVocGRV1ugxEr/pub?gid=0&single=true&output=csv",{responseType:"text",context:(new Ei).set(Fi,!0)}).pipe($(t=>this.parseCSV(t)))}postGenerateTransaction(t){return this.http.post("/consensus/transactions",t).pipe(at(this))}convertUSDIntoRates(t,e){e=e||this.storePrice;const o={};Object.keys(e).forEach(i=>{o[i]=e1(e[i]).times(t)});const r=t?e1(t).div(e[lt.Unit.USD]):e1(t);return{...o,store:r,usd:e1(t),bits:r.times($e.one$STOREEqualsToOneBit),bytes:r.times($e.one$STOREEqualsToOneBit).div(8)}}call(t,e,o){var r=this;return Nt(function*(){return e?.showLoading(),r.error=null,t.pipe(x2(()=>{o||e?.showSuccess()}),at(r)).toPromise().catch(()=>{e?.showError()})})()}bindStats(){var t=this;return Nt(function*(){t.bindTotalValueLocked(),t.bindDyPos(),t.bindDyPosSurge(),t.bindSecurity(),t.bindCostOfCompute(),t.bindDDosProtection(),t.bindNetworkOperators(),t.bindCloudCapacity(),t.bindGovernanceResults(),t.bindAuctionEconomics(),t.bindTotalSupplyInfo$(),t.bindCirculatingSupplyInfo$(),t.bindAllocatedSupplyInfo$()})()}setStorePrice(){var t=this;return Nt(function*(){try{const e=["usd","store","bits","seth","usdc","op","matic","arb","eth","btc"],o=yield t.tokenPriceService.getTokenPriceByCurrency({ids:e?.toString(),vs_currency:lt.Unit.STORE},(new Ei).set(Fi,!0)).toPromise();o&&(t.storePrice=o)}catch{t.hotToastService.warning("Failed to fetch latest STORE price.")}})()}bindTotalValueLocked(){const t=this.getStorePrice().pipe(at(this),$(r=>({label:"TREASURIES",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string"}))),e=this.getStorePrice().pipe(at(this),$(r=>({label:"STAKED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string"}))),o=this.getStorePrice().pipe(at(this),$(r=>({label:"TOTAL VALUE LOCKED",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}})));this.totalValueLocked$={title:"TOTAL VALUE LOCKED",tooltip:"Description (in progress)",items$:[t,e,o]}}bindDyPos(){var t=this;return Nt(function*(){const e=t.securityAuctionStatsService.getSecurityAuctionMetadataWithStats({auctionNumber:"latest",name:"sb-final",unit:lt.Unit.PERCENT}).pipe(at(t),$(i=>({label:"SECURITY BUDGET MET",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent"}))),o=t.securityAuctionStatsService.getSecurityAuctionMetadataWithStats({auctionNumber:"latest",name:"sb-max",unit:lt.Unit.PERCENT}).pipe(at(t),$(i=>({label:"SECURITY BUDGET MAX",tooltip:"Description (in progress)",inlineTooltip:!0,value:.1,type:"percent"}))),r=t.securityAuctionStatsService.getSecurityAuctionMetadataWithStats({auctionNumber:"latest",name:"inflation-rate",unit:lt.Unit.PERCENT}).pipe(at(t),$(i=>({label:"INFLATION RATE",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent"})));t.dyPos$={title:"PROTOCOL SECURITY",tooltip:"Description (in progress)",items$:[e,o,r]}})()}bindDyPosSurge(){const t=this.getStorePrice().pipe(at(this),$(a=>({label:"\u{1f4c8} SURGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:"x"}))),e=this.getStorePrice().pipe(at(this),$(a=>({label:"GROWTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"percent"}))),o=this.getStorePrice().pipe(at(this),$(a=>({label:"REBALANCE",tooltip:"Description (in progress)",inlineTooltip:!0,value:`~${a?.toFixed(0)}`,type:"string",symbol:" Secs"}))),r=this.getStorePrice().pipe(at(this),$(a=>({label:"FEES",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:"bits"}))),i=this.getStorePrice().pipe(at(this),$(a=>({label:"\u{1f525} BURN",tooltip:"Description (in progress)",inlineTooltip:!0,value:a,type:"number",symbol:" bits"})));this.dyPosSurge$={title:"DyPoS SURGE",tooltip:"Description (in progress)",items$:[t,e,o,r,i]}}bindSecurity(){const t=this.getStorePrice().pipe(at(this),$(r=>({label:"COST TO \u2154 ATTACK",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.USD,value:{[lt.Unit.USD]:r}},4),symbol:" MM"}))),e=this.getStorePrice().pipe(at(this),$(r=>({label:"COST TO MINT $STORE",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.USD,value:{[lt.Unit.USD]:r}},4),symbol:" MM"}))),o=this.cloudVmCostControllerService.getProductionCostByMeasurementAndUnit({unit:lt.Unit.USD,costType:lt.CostType.Yearly}).pipe(at(this),$(r=>({label:"PRODUCTION COST/YR",tooltip:"Description (in progress)",inlineTooltip:!0,preSymbol:"$",value:Math.round(r?.value??0)?.toLocaleString(),type:"string"})));this.security$={title:"PROTOCOL ECONOMICS",tooltip:"Description (in progress)",items$:[t,o,e]}}bindCostOfCompute(){const t=this.storeCloudVmService.getResourceByTypeAndSubType({type:lt.Type.Compute,subtype:lt.SubType.GeneralPurpose,unit:lt.Unit.BITS},(new Ei).set(Fi,!0)).pipe(at(this),$(i=>({label:"CPU (1 CORE-SEC)",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.BITS,value:{[lt.Unit.BITS]:i.value}})}))),e=this.storeCloudVmService.getResourceByTypeAndSubType({type:lt.Type.Storage,subtype:lt.SubType.Tier1,unit:lt.Unit.BITS},(new Ei).set(Fi,!0)).pipe(at(this),$(i=>({label:"STORAGE (1 GB-SEC)",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.BITS,value:{[lt.Unit.BITS]:i.value}})}))),o=this.storeCloudVmService.getResourceByTypeAndSubType({type:lt.Type.Storage,subtype:lt.SubType.Permanent,unit:lt.Unit.BITS},(new Ei).set(Fi,!0)).pipe(at(this),$(i=>({label:"1 iBYTE EQUALS",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.BITS,value:{[lt.Unit.BITS]:i.value}})}))),r=this.storeCloudVmService.getResourceByTypeAndSubType({type:lt.Type.Storage,subtype:lt.SubType.Permanent,unit:lt.Unit.USD},(new Ei).set(Fi,!0)).pipe(at(this),$(i=>({label:"COST PER iBYTE",tooltip:"Description (in progress)",inlineTooltip:!0,...this.oracleFormatValuePipe.transform({unit:lt.Unit.USD,value:{[lt.Unit.USD]:i.value}})})));this.costOfCompute$={title:"STORE CLOUD VM",tooltip:"Description (in progress)",items$:[t,e,o,r]}}bindDDosProtection(){const t=this.getStorePrice().pipe(at(this),$(i=>({label:"ACTUAL TPS",value:i,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),e=this.getStorePrice().pipe(at(this),$(i=>({label:"TXN BURST",value:i,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),o=this.getStorePrice().pipe(at(this),$(i=>({label:"RATE LIMIT/SEC",value:i,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),r=this.getStorePrice().pipe(at(this),$(i=>({label:"MAX TPS(24-HOUR)",value:i,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbolPosition:"after",symbol:"(+0%)",symbolCssClass:"text-light"})));this.dDosProtection$={title:"STORE CHAIN DDoS PROTECTION",tooltip:"Description (in progress)",items$:[t,e,o,r]}}bindNetworkOperators(){const t=this.getStorePrice().pipe(at(this),$(a=>({label:"MARKETS",tooltip:"Description (in progress)",inlineTooltip:!0,value:1,type:"number"}))),e=this.getStorePrice().pipe(at(this),$(a=>({label:"CLOUD MINERS",tooltip:"Description (in progress)",inlineTooltip:!0,value:10,type:"number"}))),o=this.getStorePrice().pipe(at(this),$(a=>({label:"BLOCK MINERS",tooltip:"Description (in progress)",inlineTooltip:!0,value:7,type:"number"}))),r=this.getStorePrice().pipe(at(this),$(a=>({label:"VOTERS",value:82,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),i=this.getStorePrice().pipe(at(this),$(a=>({label:"Status: Alpha",value:null,type:"string"})));this.networkOperators$={title:"NETWORK OPERATORS",tooltip:"Description (in progress)",subTitle:{enable:!0,item$:i},items$:[t,e,o,r]}}bindCloudCapacity(){const t=this.getStorePrice().pipe(at(this),$(i=>({label:"DATA CENTERS",value:5,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number"}))),e=this.getStorePrice().pipe(at(this),$(i=>({label:"COMPUTE",value:26400,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"vCPUS"}))),o=this.getStorePrice().pipe(at(this),$(i=>({label:"MEMORY",value:240,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"TB"}))),r=this.getStorePrice().pipe(at(this),$(i=>({label:"STORAGE",value:12e3,tooltip:"Description (in progress)",inlineTooltip:!0,type:"number",symbol:"TB HHD"})));this.cloudCapacity$={title:"STORE CLOUD CAPACITY",tooltip:"Description (in progress)",items$:[t,e,o,r]}}bindGovernanceResults(){const t=ve({label:"% TRUSTED",tooltip:"Description (in progress)",inlineTooltip:!0,value:"100%",type:"string"}),e=ve({label:"BALLOTS APPROVED",tooltip:"Description (in progress)",inlineTooltip:!0,value:5,type:"number"}),o=ve({label:"AVG. APPROVAL RATE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"76.95%",type:"string"}),r=ve({label:"BALLOTS VETOED",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"number"});this.governanceResults={title:"GOVERNANCE RESULTS",tooltip:"Description (in progress)",items$:[t,e,o,r]}}bindAuctionEconomics(){const t=ve({label:"NEXT AUCTION",tooltip:"Description (in progress)",inlineTooltip:!0,value:"TBD",type:"string"}),e=ve({label:"SB GROWTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"}),o=ve({label:"SB+",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"}),r=ve({label:"LAST AUCTION SUBSCRIPTON",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0%",type:"string"});this.auctionEconomics={title:"AUCTION ECONOMICS",tooltip:"Description (in progress)",items$:[t,e,o,r]}}parseCSV(t){for(var e=[],o=!1,r=0,i=0,a=0;a({label:"CIRCULATING SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}}))),e=this.getStorePrice().pipe(at(this),$(r=>({label:"MARKET CAP/TVL",tooltip:"Description (in progress)",inlineTooltip:!0,value:"00.00",type:"string"}))),o=this.getStorePrice().pipe(at(this),$(r=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}})));this.circulatingSupplyInfo$={title:"CIRCULATING SUPPLY",tooltip:"Description (in progress)",items$:[t,e,o]}}bindTotalSupplyInfo$(){const t=this.getStorePrice().pipe(at(this),$(r=>({label:"TOTAL SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"0.0",symbol:"B",type:"string",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}}))),e=this.getStorePrice().pipe(at(this),$(r=>({label:"FDV/TVL",tooltip:"Description (in progress)",inlineTooltip:!0,value:"00.00",type:"string"}))),o=this.getStorePrice().pipe(at(this),$(r=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}})));this.totalSupplyInfo$={title:"TOTAL SUPPLY",tooltip:"Description (in progress)",items$:[t,e,o]}}bindAllocatedSupplyInfo$(){const t=this.getStorePrice().pipe(at(this),$(o=>({label:"ALLOCATED SUPPLY",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",symbol:"MM",type:"string",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}}))),e=this.getStorePrice().pipe(at(this),$(o=>({label:"% LOCKED FOR +2-YEARS",tooltip:"Description (in progress)",inlineTooltip:!0,value:0,type:"percent",subItems:{value:"$0.0000",cssClass:"text-light",preSymbol:"(",type:"string",symbol:"MM)"}})));this.allocatedSupplyInfo$={title:"ALLOCATED SUPPLY",tooltip:"Description (in progress)",items$:[t,e]}}},dM.\u0275fac=function(t){return new(t||dM)(Se(G0),Se(ZZ),Se(W4e),Se(gP),Se(QZ),Se(Wd),Se(uP))},dM.\u0275prov=ot({token:dM,factory:dM.\u0275fac,providedIn:"root"}),dM);Hs=Ke([h0()],Hs);class OP{constructor(){this.refreshOnTransactionGenerate=new No({count:void 0,state:Qn.State.Completed}),this.scrollToTransactionBlocks=new No(!1),this.refreshOnTransactionGenerate$=this.refreshOnTransactionGenerate.asObservable(),this.scrollToTransactionBlocks$=this.scrollToTransactionBlocks.asObservable()}changeState(t){this.refreshOnTransactionGenerate.next(t)}scrollToTransactionBlocksSection(){this.scrollToTransactionBlocks.next(!0)}}function rK(n,t=iz){return mt((e,o)=>{let r=null,i=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const l=i;i=null,o.next(l)}};function c(){const l=a+n,u=t.now();if(u{i=l,a=t.now(),r||(r=t.schedule(c,n),o.add(r))},()=>{s(),o.complete()},void 0,()=>{i=r=null}))})}let A8=class{constructor(t,e,o,r){this.disableResetData=!1,this._loading$=new No(!0),this._search$=new N,this._data$=new No([]),this._numOfPages$=new No(0),this._state={page:1,pageSize:8,status:null,searchTerm:"",sortColumn:"",sortDirection:""},this.http=t,this.serviceAPIUrl=o,this.data=e,this.map=r,this.initSearch()}get data$(){return this._data$.asObservable()}get numOfPages$(){return this._numOfPages$.asObservable()}get loading$(){return this._loading$.asObservable()}get page(){return this._state.page}get pageSize(){return this._state.pageSize}get searchTerm(){return this._state.searchTerm}get status(){return this._state.status}set page(t){this._set({page:t})}set pageSize(t){this._set({pageSize:t})}set searchTerm(t){this._set({searchTerm:t})}set sortColumn(t){this._set({sortColumn:t})}set sortDirection(t){this._set({sortDirection:t})}set status(t){this._set({status:t})}set loading(t){this._loading$.next(t)}_set(t){Object.assign(this._state,t),this._search$.next()}_search(){var t=this;return Nt(function*(){return t.serviceAPIUrl?t.getAPIData():t.data?t.getLocalData():ve({data:[],numOfPages:0})})()}getLocalData(){var t=this;return Nt(function*(){const{pageSize:e,page:o,status:r,sortColumn:i,sortDirection:a}=t._state;if(!t.data)return ve({data:[],numOfPages:0});let s=yield tr(t.data);t.map&&(s=t.map(s));let c=t.sort(s,i,a);r&&"Any"!==r&&"All"!==r&&(c=c?.filter(u=>u?.status===r));const l=Math.ceil(c?.length/e);return c=c?.slice((o-1)*e,(o-1)*e+e),ve({data:c,numOfPages:l})})()}getAPIData(){var t=this;return Nt(function*(){const{pageSize:e,page:o}=t._state,r=t.preparePagination(o,e),i=yield tr(t.http.get(t.serviceAPIUrl+r));return t.map&&(i.data=t.map(i?.data)),ve(i)})()}preparePagination(t,e){return`?page=${t-1}&limit=${e}&time=desc`}sort(t,e,o){return""===o||""===e?t:[...t].sort((r,i)=>{const a=((n,t)=>nt?1:0)(r[e],i[e]);return"asc"===o?a:-a})}initSearch(){var t=this;(this.data||this.serviceAPIUrl)&&(this._search$.pipe(Xo(()=>{this.disableResetData||(this._loading$.next(!0),this._data$.next([])),this._numOfPages$.next(0)}),rK(200),ui(Nt(function*(){return yield tr(yield t._search())})),Xo(()=>{this.disableResetData||this._loading$.next(!1)}),x2(()=>{this.disableResetData||this._loading$.next(!1)})).subscribe(e=>{this._data$.next(e.data),this._numOfPages$.next(e.numOfPages)}),this._search$.next())}};var fM;A8=Ke([h0({checkProperties:!0})],A8);let mP=(fM=class{constructor(t,e){this.http=t,this.stateService=e,this.totalTransactions$={title:"TOTAL TRANSACTIONS",tooltip:"Description (in progress)",subTitle:{enable:!0,item:null},items:null,available:{items:!0}},this.totalBlocks$={title:"TOTAL BLOCKS",tooltip:"Description (in progress)",subTitle:{enable:!0,item:null},items:null,available:{items:!0}},this.bindTotalTransactionsAndBlocks(),this.attachStateChange()}getDashboardStats(){return this.http.get("/consensus/dashboard2").pipe(at(this))}bindTotalTransactionsAndBlocks(){var t=this;return Nt(function*(){const e=yield tr(t.getDashboardStats());t.attachTotalTransactionsAndBlocks(e)})()}attachTotalTransactionsAndBlocks(t){const e={label:"Waiting",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.pendingTransactions,type:"short-number",icon:"clock"},o={label:"Confirming",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.confirmingTransactions,type:"short-number",icon:"box"},r={label:"Finalized",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.finalizedTransactions,type:"short-number",decimal:{count:2},icon:"check-circle"};this.totalTransactions$.subTitle={enable:!0,item:{label:"",value:t?.totalTransactions,type:"short-number",decimal:{count:2},cssClass:"d-flex g-1"}},this.totalTransactions$.items=[e,o,r];const a={label:"Confirming",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.confirmingBlocks,type:"short-number",icon:"box"},s={label:"Finalized",tooltip:"Description (in progress)",inlineTooltip:!0,value:t?.finalizedBlocks,type:"short-number",decimal:{count:2},icon:"check-circle"};this.totalBlocks$.subTitle={enable:!0,item:{label:"",value:t?.totalBlocks,type:"short-number",decimal:{count:2},cssClass:"d-flex g-1"}},this.totalBlocks$.items=[a,s]}attachStateChange(){this.stateService.refreshOnTransactionGenerate$.pipe(at(this),ui(t=>this.transactionStateChange(t))).subscribe()}transactionStateChange(t){var e=this;return Nt(function*(){switch(t.state){case Qn.State.Requested:e.Requested(t);break;case Qn.State.Block_Added:e.Block_Added(t);break;case Qn.State.Network_Updated:yield e.Network_Updated(t)}})()}Requested(t){this.totalTransactions$.items&&(this.totalTransactions$.items[0].icon="clock_animated",this.totalTransactions$.items[0].value$=ve({value:t?.count?.transaction})),this.totalTransactions$?.subTitle?.item&&(this.totalTransactions$.subTitle.item.valueIcon="box_animated")}Block_Added(t){this.totalTransactions$.items&&(this.totalTransactions$.items[0].icon="clock",this.totalTransactions$.items[0].value$=ve({value:0}),this.totalTransactions$.items[1].icon="box_animated",this.totalTransactions$.items[1].value$=ve({value:t?.count?.transaction})),this.totalBlocks$.items&&(this.totalBlocks$.items[0].icon="box_animated",this.totalBlocks$.items[0].value$=ve({value:t?.count?.block})),this.totalBlocks$?.subTitle?.item&&(this.totalBlocks$.subTitle.item.valueIcon="box_animated")}Network_Updated(t){var e=this;return Nt(function*(){const o=yield tr(e.getDashboardStats());e.setNetworkUpdateValue(o)})()}setNetworkUpdateValue(t){var e=this;return Nt(function*(){e.totalTransactions$.items&&(e.totalTransactions$.items[0].icon="clock",e.totalTransactions$.items[0].value$=ve({value:0}),e.totalTransactions$.items[1].icon="box",e.totalTransactions$.items[1].value$=ve({value:0})),e.totalBlocks$.items&&(e.totalBlocks$.items[0].icon="box",e.totalBlocks$.items[0].value$=ve({value:0})),e.attachTotalTransactionsAndBlocks(t),e.totalTransactions$.items&&(e.totalTransactions$.items[2].icon="check-circle_animated_once"),e.totalBlocks$.items&&(e.totalBlocks$.items[1].icon="check-circle_animated_once"),e.totalTransactions$?.subTitle?.item&&(e.totalTransactions$.subTitle.item.valueIcon="check-circle_animated_once"),e.totalBlocks$?.subTitle?.item&&(e.totalBlocks$.subTitle.item.valueIcon="check-circle_animated_once"),yield tr(ve(0).pipe(Pi(1e3))),e.setSubTitleIcon()})()}setSubTitleIcon(){this.totalTransactions$?.subTitle?.item&&(this.totalTransactions$.subTitle.item.valueIcon=void 0),this.totalBlocks$?.subTitle?.item&&(this.totalBlocks$.subTitle.item.valueIcon=void 0)}},fM.\u0275fac=function(t){return new(t||fM)(Se(G0),Se(OP))},fM.\u0275prov=ot({token:fM,factory:fM.\u0275fac}),fM);mP=Ke([h0()],mP);class y8{constructor(t,e,o,r){var i=this;this.extraQuery=[],this.destroy$=new N,this._search$=new N,this._loading$=new No(!0),this._result$=new No([]),this._total$=new No(-1),this._state={page:1,pageSize:4,searchTerm:"",sortHeaders:[]},this.service$=t,this.fields=e,this.extraQuery=o,this.map=r,t?(this._search$.pipe(Xo(Nt(function*(){i._loading$.next(!0),i._result$.next([]),i._total$.next(0)})),rK(100),ui(Nt(function*(){return yield(yield i._search()).toPromise()})),Xo(()=>this._loading$.next(!1)),x2(()=>this._loading$.next(!1)),hc(this.destroy$)).subscribe(a=>{this._result$.next(a?.result??[]),this._total$.next(a?.total??-1)}),this._search$.next()):this._loading$.next(!0)}get result$(){return this._result$.asObservable()}get total$(){return this._total$.asObservable()}get loading$(){return this._loading$.asObservable()}get page(){return this._state.page}get pageSize(){return this._state.pageSize}get searchTerm(){return this._state.searchTerm}set page(t){this._set({page:t})}set pageSize(t){this._set({pageSize:t})}set searchTerm(t){this._set({searchTerm:t})}set sortHeaders(t){this._set({sortHeaders:t})}set loading(t){this._loading$.next(t)}load$(){this._search$.next()}getFilter(t){const{sortHeaders:e,pageSize:o,page:r,searchTerm:i}=this._state;let a={},s={"filter[offset]":"0","filter[limit]":o.toString(),"filter[skip]":((r-1)*o).toString()};return t&&(delete s["filter[limit]"],delete s["filter[skip]"]),i&&(s=this.generateFilterUsingColumns(s,this.fields,i),a=this.generateWhereUsingColumns(a,this.fields,i)),this.extraQuery&&(s=this.generateFilterExtraQuery(s),a=this.generateWhereExtraQuery(a)),e?.length>0?s=this.generateFilterOrder(s,e):s["filter[order]"]="createdOn DESC",{filter:s,where:a}}_set(t){Object.assign(this._state,t),this._search$.next()}_search(){var t=this;return Nt(function*(){const e=t.getFilter(),o=yield t.service$?.count({where:e?.where}).toPromise();let r=yield t.service$?.find({filter:e?.filter}).toPromise();return t.map&&(r=t.map(r)),ve({result:r,total:o?.count??0})})()}generateFilterUsingColumns(t,e,o){for(let r=0;r{t["filter"+e.key]=e.value}),t}generateWhereExtraQuery(t){return this.extraQuery.forEach(e=>{t[e.key]=e.value}),t}generateFilterOrder(t,e){e=e.filter(o=>""!==o.direction);for(let o=0;o{class n{constructor(){this.rootUrl="http://localhost:3001/api"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ld=(()=>{class n{constructor(e,o){this.config=e,this.http=o,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}}return n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const fCe=new class dCe{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class C8{constructor(t,e,o,r,i){this.name=t,this.value=e,this.options=o,this.options=o||{},null==this.options.style&&(this.options.style=r),null==this.options.explode&&(this.options.explode=i)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(o=>this.serializeValue(o).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];null!=i&&(i=this.serializeValue(i).split(e).join(encodeURIComponent(e)),this.options.explode?o.push(`${r}=${i}`):(o.push(r),o.push(i)))}return o.join(e)}return String(t)}}class hCe extends C8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let o="label"===this.options.style?".":"",r=this.options.explode?""===o?",":o:",",i=!1;return"matrix"===this.options.style&&(o=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(o=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),i=!0):(e=this.serializeValue(e,";"),i=!0))),e=o+(i?e:this.serializeValue(e,r)),(t=t.replace(`{${this.name}}`,e)).replace(`{${o}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var o="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(o=(o=o.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class MCe extends C8{constructor(t,e,o){super(t,e,o,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(o)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(e,this.serializeValue(o)))}else{const e=[];for(const o of Object.keys(this.value)){const r=this.value[o];null!=r&&(e.push(o),e.push(r))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class bCe extends C8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class eo{constructor(t,e,o){this.rootUrl=t,this.operationPath=e,this.method=o,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,o){this._path.set(t,new hCe(t,e,o||{}))}query(t,e,o){this._query.set(t,new MCe(t,e,o||{}))}header(t,e,o){this._header.set(t,new bCe(t,e,o||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];i instanceof Array||(i=[i]);for(const a of i){const s=this.formDataValue(a);null!==s&&o.push([r,s])}}this._bodyContent=o.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const o=new FormData;if(null!=t)for(const r of Object.keys(t)){const i=t[r];if(i instanceof Array)for(const a of i){const s=this.formDataValue(a);null!==s&&o.append(r,s)}else{const a=this.formDataValue(i);null!==a&&o.set(r,a)}}this._bodyContent=o}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const o=this.rootUrl+e;let r=new fc({encoder:fCe});for(const a of this._query.values())r=a.append(r);let i=new wi;t.accept&&(i=i.append("Accept",t.accept));for(const a of this._header.values())i=a.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set("Content-Type",this._bodyContentType)),new ru(this.method.toUpperCase(),o,this._bodyContent,{params:r,headers:i,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let iK=(()=>{class n extends Ld{constructor(e,o){super(e,o)}count$Response(e,o){const r=new eo(this.rootUrl,n.NetworkBandwidthStatsControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}count(e,o){return this.count$Response(e,o).pipe($(r=>r.body))}findLatest$Response(e,o){const r=new eo(this.rootUrl,n.NetworkBandwidthStatsControllerFindLatestPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findLatest(e,o){return this.findLatest$Response(e,o).pipe($(r=>r.body))}findById$Response(e,o){const r=new eo(this.rootUrl,n.NetworkBandwidthStatsControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe($(r=>r.body))}find$Response(e,o){const r=new eo(this.rootUrl,n.NetworkBandwidthStatsControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}find(e,o){return this.find$Response(e,o).pipe($(r=>r.body))}}return n.NetworkBandwidthStatsControllerCountPath="/bandwidth/stats/count",n.NetworkBandwidthStatsControllerFindLatestPath="/bandwidth/stats/latest",n.NetworkBandwidthStatsControllerFindByIdPath="/bandwidth/stats/{id}",n.NetworkBandwidthStatsControllerFindPath="/bandwidth/stats",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gCe=(()=>{class n extends Ld{constructor(e,o){super(e,o)}networkBandwidthDetailedStats$Response(e,o){const r=new eo(this.rootUrl,n.DiskDetailedStatsControllerNetworkBandwidthDetailedStatsPath,"get");return e&&(r.path("filter",e.filter,{}),r.query("from",e.from,{}),r.query("to",e.to,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}networkBandwidthDetailedStats(e,o){return this.networkBandwidthDetailedStats$Response(e,o).pipe($(r=>r.body))}diskDetailedStats$Response(e,o){const r=new eo(this.rootUrl,n.DiskDetailedStatsControllerDiskDetailedStatsPath,"get");return e&&(r.path("filter",e.filter,{}),r.query("from",e.from,{}),r.query("to",e.to,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}diskDetailedStats(e,o){return this.diskDetailedStats$Response(e,o).pipe($(r=>r.body))}instanceDetailedStats$Response(e,o){const r=new eo(this.rootUrl,n.DiskDetailedStatsControllerInstanceDetailedStatsPath,"get");return e&&(r.path("filter",e.filter,{}),r.query("from",e.from,{}),r.query("to",e.to,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}instanceDetailedStats(e,o){return this.instanceDetailedStats$Response(e,o).pipe($(r=>r.body))}networkIpAddressDetailedStats$Response(e,o){const r=new eo(this.rootUrl,n.DiskDetailedStatsControllerNetworkIpAddressDetailedStatsPath,"get");return e&&(r.path("filter",e.filter,{}),r.query("from",e.from,{}),r.query("to",e.to,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}networkIpAddressDetailedStats(e,o){return this.networkIpAddressDetailedStats$Response(e,o).pipe($(r=>r.body))}}return n.DiskDetailedStatsControllerNetworkBandwidthDetailedStatsPath="/detailed/stats/bandwidth/{filter}",n.DiskDetailedStatsControllerDiskDetailedStatsPath="/detailed/stats/disk/{filter}",n.DiskDetailedStatsControllerInstanceDetailedStatsPath="/detailed/stats/instance/{filter}",n.DiskDetailedStatsControllerNetworkIpAddressDetailedStatsPath="/detailed/stats/ip/{filter}",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),OCe=(()=>{class n extends Ld{constructor(e,o){super(e,o)}count$Response(e,o){const r=new eo(this.rootUrl,n.DeveloperControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}count(e,o){return this.count$Response(e,o).pipe($(r=>r.body))}findById$Response(e,o){const r=new eo(this.rootUrl,n.DeveloperControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe($(r=>r.body))}find$Response(e,o){const r=new eo(this.rootUrl,n.DeveloperControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}find(e,o){return this.find$Response(e,o).pipe($(r=>r.body))}}return n.DeveloperControllerCountPath="/developers/count",n.DeveloperControllerFindByIdPath="/developers/{id}",n.DeveloperControllerFindPath="/developers",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aK=(()=>{class n extends Ld{constructor(e,o){super(e,o)}count$Response(e,o){const r=new eo(this.rootUrl,n.DiskStatsControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}count(e,o){return this.count$Response(e,o).pipe($(r=>r.body))}findLatest$Response(e,o){const r=new eo(this.rootUrl,n.DiskStatsControllerFindLatestPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findLatest(e,o){return this.findLatest$Response(e,o).pipe($(r=>r.body))}findById$Response(e,o){const r=new eo(this.rootUrl,n.DiskStatsControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe($(r=>r.body))}find$Response(e,o){const r=new eo(this.rootUrl,n.DiskStatsControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}find(e,o){return this.find$Response(e,o).pipe($(r=>r.body))}}return n.DiskStatsControllerCountPath="/disk/stats/count",n.DiskStatsControllerFindLatestPath="/disk/stats/latest",n.DiskStatsControllerFindByIdPath="/disk/stats/{id}",n.DiskStatsControllerFindPath="/disk/stats",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mCe=(()=>{class n extends Ld{constructor(e,o){super(e,o)}health$Response(e,o){const r=new eo(this.rootUrl,n.HealthControllerHealthPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}health(e,o){return this.health$Response(e,o).pipe($(r=>r.body))}live$Response(e,o){const r=new eo(this.rootUrl,n.HealthControllerLivePath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}live(e,o){return this.live$Response(e,o).pipe($(r=>r.body))}ready$Response(e,o){const r=new eo(this.rootUrl,n.HealthControllerReadyPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}ready(e,o){return this.ready$Response(e,o).pipe($(r=>r.body))}}return n.HealthControllerHealthPath="/health",n.HealthControllerLivePath="/live",n.HealthControllerReadyPath="/ready",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sK=(()=>{class n extends Ld{constructor(e,o){super(e,o)}count$Response(e,o){const r=new eo(this.rootUrl,n.InstanceStatsControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}count(e,o){return this.count$Response(e,o).pipe($(r=>r.body))}findLatest$Response(e,o){const r=new eo(this.rootUrl,n.InstanceStatsControllerFindLatestPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findLatest(e,o){return this.findLatest$Response(e,o).pipe($(r=>r.body))}findById$Response(e,o){const r=new eo(this.rootUrl,n.InstanceStatsControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe($(r=>r.body))}find$Response(e,o){const r=new eo(this.rootUrl,n.InstanceStatsControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}find(e,o){return this.find$Response(e,o).pipe($(r=>r.body))}}return n.InstanceStatsControllerCountPath="/instance/stats/count",n.InstanceStatsControllerFindLatestPath="/instance/stats/latest",n.InstanceStatsControllerFindByIdPath="/instance/stats/{id}",n.InstanceStatsControllerFindPath="/instance/stats",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_Ce=(()=>{class n extends Ld{constructor(e,o){super(e,o)}count$Response(e,o){const r=new eo(this.rootUrl,n.NetworkIpaddressStatsControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}count(e,o){return this.count$Response(e,o).pipe($(r=>r.body))}findLatest$Response(e,o){const r=new eo(this.rootUrl,n.NetworkIpaddressStatsControllerFindLatestPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findLatest(e,o){return this.findLatest$Response(e,o).pipe($(r=>r.body))}findById$Response(e,o){const r=new eo(this.rootUrl,n.NetworkIpaddressStatsControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe($(r=>r.body))}find$Response(e,o){const r=new eo(this.rootUrl,n.NetworkIpaddressStatsControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}find(e,o){return this.find$Response(e,o).pipe($(r=>r.body))}}return n.NetworkIpaddressStatsControllerCountPath="/ip/stats/count",n.NetworkIpaddressStatsControllerFindLatestPath="/ip/stats/latest",n.NetworkIpaddressStatsControllerFindByIdPath="/ip/stats/{id}",n.NetworkIpaddressStatsControllerFindPath="/ip/stats",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zCe=(()=>{class n extends Ld{constructor(e,o){super(e,o)}count$Response(e,o){const r=new eo(this.rootUrl,n.MarketControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}count(e,o){return this.count$Response(e,o).pipe($(r=>r.body))}findById$Response(e,o){const r=new eo(this.rootUrl,n.MarketControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe($(r=>r.body))}find$Response(e,o){const r=new eo(this.rootUrl,n.MarketControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}find(e,o){return this.find$Response(e,o).pipe($(r=>r.body))}}return n.MarketControllerCountPath="/markets/count",n.MarketControllerFindByIdPath="/markets/{id}",n.MarketControllerFindPath="/markets",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vCe=(()=>{class n extends Ld{constructor(e,o){super(e,o)}ping$Response(e,o){const r=new eo(this.rootUrl,n.PingControllerPingPath,"get");return this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}ping(e,o){return this.ping$Response(e,o).pipe($(r=>r.body))}}return n.PingControllerPingPath="/ping",n.\u0275fac=function(e){return new(e||n)(Se(pl),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var hM;let _P=(hM=class{constructor(t,e,o){this.instanceStats=t,this.diskStats=e,this.networkBandwidthStats=o,this.instanceAndMemoryChart$={title:"INSTANCES & MEMORY",tooltip:"Description (in progress)",id:"vm_chart_1",showTabs:!1,height:270,data:null,data$:null},this.diskAndSpaceChart$={title:"DISKS & STORAGE",tooltip:"Description (in progress)",id:"vm_chart_2",showTabs:!1,height:270,data:null,data$:null},this.ipAddressChart$={title:"IP ADDRESSES",tooltip:"Description (in progress)",id:"vm_chart_3",showTabs:!1,height:270,data:null,data$:null},this.networkUtilizationHistoryChart$={title:"STORE NETWORK UTILIZATION",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_4",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"},this.storageUtilizationHistoryChart$={title:"STORAGE UTILIZATION",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_5",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"},this.instanceAndMemoryHistoryChart$={title:"INSTANCES & MEMORY",type:"cloud",yAxisName:"# of Transactions",tooltip:"Description (in progress)",id:"vm_chart_6",showTabs:!0,height:170,showGrid:!0,maxTick:{x:2,y:1},data:null,xAxisName:"Date",xType:"time",showYAxisLabel:!0,showXAxisLabel:!0,lineColor:"#1db0a9"}}bindInstanceAndMemoryChart(){this.instanceStats.findLatest(void 0,(new Ei).set(Fi,!0)).pipe(at(this)).subscribe(t=>{const e={title:{text:"INSTANCES",subText:this.nFormatter(t?.map(o=>parseFloat(o.count?.toString()??"0")).reduce((o,r)=>o+r),0)?.toLocaleString()},subTitle:{text:"MEMORY",subText:this.formatBytes(t?.map(o=>parseFloat(o.memory?.toString()??"0")).reduce((o,r)=>o+r),2)?.toLocaleString()},data:t?.map(o=>({value:o?.count,name:o?.name}))};this.instanceAndMemoryChart$.data$=ve(e)})}bindDiskAndSpaceChart(){this.diskStats.findLatest(void 0,(new Ei).set(Fi,!0)).pipe(at(this)).subscribe(t=>{const e={title:{text:"DISKS",subText:this.nFormatter(t?.map(o=>parseFloat(o.count?.toString()??"0")).reduce((o,r)=>o+r),0)?.toLocaleString()},subTitle:{text:"STORAGE",subText:this.formatBytes(t?.map(o=>parseFloat(o.size?.toString()??"0")).reduce((o,r)=>o+r),2)?.toLocaleString()},data:t?.map(o=>({value:o?.count,name:o?.name}))};this.diskAndSpaceChart$.data$=ve(e)})}bindIpAddressChart(){this.networkBandwidthStats.findLatest(void 0,(new Ei).set(Fi,!0)).pipe(at(this)).subscribe(t=>{const e={title:{text:"IP ADDRESSES",subText:this.nFormatter(t?.map(o=>parseFloat(o.count?.toString()??"0")).reduce((o,r)=>o+r),0)?.toLocaleString()},subTitle:{text:"AVAILABLE",subText:this.nFormatter(t?.map(o=>parseFloat(o.count?.toString()??"0")).reduce((o,r)=>o+r),0)?.toLocaleString()},data:t?.map(o=>({value:o?.count,name:o?.name}))};this.ipAddressChart$.data$=ve(e)})}bindNetworkUtilizationHistoryChart(t){this.networkBandwidthStats.find({filter:this.prepareDateFilter(t)},(new Ei).set(Fi,!0)).pipe(at(this)).subscribe(e=>{const o=cu.groupBy(e,"date"),r=Object.keys(o),i=[];r?.forEach(s=>{i.push({date:s,value:o?.[s]?.map(c=>parseFloat(c.bandwidth?.toString()??"0")).reduce((c,l)=>c+l)})}),this.networkUtilizationHistoryChart$.data$=ve({series:[{name:"Bandwidth Usage",data:i}]})})}bindStorageUtilizationHistoryChart(t){this.diskStats.find({filter:this.prepareDateFilter(t)},(new Ei).set(Fi,!0)).pipe(at(this)).subscribe(e=>{const o=cu.groupBy(e,"date"),r=Object.keys(o),i=[];r?.forEach(s=>{i.push({date:s,value:o?.[s]?.map(c=>parseFloat(c.sizeUsage?.toString()??"0")).reduce((c,l)=>c+l)})}),this.storageUtilizationHistoryChart$.data$=ve({series:[{name:"Storage Usage",data:i}]})})}bindInstanceAndMemoryHistoryChart(t){this.instanceStats.find({filter:this.prepareDateFilter(t)},(new Ei).set(Fi,!0)).pipe(at(this)).subscribe(e=>{const o=cu.groupBy(e,"date"),r=Object.keys(o),i=[];r?.forEach(s=>{i.push({date:s,value:o?.[s]?.map(c=>parseFloat(c.memoryUsage?.toString()??"0")).reduce((c,l)=>c+l)})}),this.instanceAndMemoryHistoryChart$.data$=ve({series:[{name:"Memory Usage",data:i}]})})}formatBytes(t,e=2){if(!+t)return"0 Bytes";const r=e<0?0:e,a=Math.floor(Math.log(t)/Math.log(1e3));return`${parseFloat((t/Math.pow(1e3,a)).toFixed(r))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}`}nFormatter(t,e){const i=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}].slice().reverse().find(function(a){return t>=a.value});return i?(t/i.value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+i.symbol:"0"}prepareDateFilter(t){const{from:e,till:o}=t??{from:void 0,till:void 0};let r={};return e&&o&&(r={"filter[where][date][between][0]":new Date(e).toISOString(),"filter[where][date][between][1]":new Date(o).toISOString()}),r}},hM.\u0275fac=function(t){return new(t||hM)(Se(sK),Se(aK),Se(iK))},hM.\u0275prov=ot({token:hM,factory:hM.\u0275fac}),hM);var MM;_P=Ke([h0()],_P);let w8=(MM=class{constructor(){this.transactionList$=null,this.trendChart$={title:"TRANSACTION HISTORY",type:"transaction",yAxisName:"# of Transactions",tooltip:"Description (in progress)"}}bindTransactionList(t){let r=[{key:"status",label:"Status",type:"progress-status",tooltip:"Description (in progress)",width:"90px"},{key:"from",label:"From",type:"hash",trimSize:12,trimSizeMobile:14,link:"/transactions/account-detail",tooltip:"Description (in progress)",width:"140px"},{key:"fromToIcon",label:"",type:"custom-col",width:"36px"},{key:"to",label:"To",type:"hash",trimSize:12,trimSizeMobile:14,link:"/transactions/account-detail",tooltip:"Description (in progress)",width:"140px"},{key:"amount",label:"STORE",type:"short-number",decimal:{count:8,force:!0},valueIcon:"store-logo-only",tooltip:"Description (in progress)",width:"160px"},{key:"feeSurge",label:"\u{1f4c8} Surge",type:"number",symbol:"x",cssClass:"no-space",tooltip:"Description (in progress)",width:"115px"},{key:"fee",label:"Blockspace Fee",valueIcon:"store-logo-only",type:"number",symbol:"000000 bits",tooltip:"Description (in progress)",width:"170px"},{key:"burntFeeWithPercent",label:"\u{1f525} Burnt Fee",type:"string",symbol:"(0.00%)",symbolCssClass:"text-light",tooltip:"Description (in progress)",width:"200px"},{key:"nonce",label:"Nonce",type:"number",tooltip:"Description (in progress)",width:"90px"},{key:"time",label:"Age",type:"time",tooltip:"Description (in progress)",width:"130px"},{key:"signature",label:"Signature",type:"hash",trimSize:12,trimSizeMobile:14,tooltip:"Description (in progress)",width:"140px"},{key:"transactionId",label:"Transaction ID",type:"hash",link:"/transactions/detail",trimSize:12,trimSizeMobile:10,tooltip:"Description (in progress)",width:"180px"}];t?.status&&(r=r?.filter(i=>"status"!==i?.key)),this.transactionList$={title:"TRANSACTIONS",type:"transaction",columns:r,serviceAPIUrl:"/consensus/transactions",map:i=>i?.map(a=>(a.feeSurge=0,a.burntFee=0,a.amount=a?.amount||1,a.nonce=a?.nonce||1,a.status={...a,txnTime:null},a.burntFeeWithPercent="000000 bits",a.fromToIcon={valueIcon:"left-right",valueIconSize:20,type:"string"},a))}}},MM.\u0275fac=function(t){return new(t||MM)},MM.\u0275prov=ot({token:MM,factory:MM.\u0275fac}),MM);w8=Ke([h0()],w8);var ACe=G(8538),y1=G.n(ACe);let cK=!1,lK=!1;const zP={debug:1,default:2,info:2,warning:3,error:4,off:5};let pK=zP.default,P8=null;const uK=function CCe(){try{const n=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch{n.push(t)}}),n.length)throw new Error("missing "+n.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(n){return n.message}return null}();var vP=(()=>(function(n){n.DEBUG="DEBUG",n.INFO="INFO",n.WARNING="WARNING",n.ERROR="ERROR",n.OFF="OFF"}(vP||(vP={})),vP))(),ul=(()=>(function(n){n.UNKNOWN_ERROR="UNKNOWN_ERROR",n.NOT_IMPLEMENTED="NOT_IMPLEMENTED",n.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",n.NETWORK_ERROR="NETWORK_ERROR",n.SERVER_ERROR="SERVER_ERROR",n.TIMEOUT="TIMEOUT",n.BUFFER_OVERRUN="BUFFER_OVERRUN",n.NUMERIC_FAULT="NUMERIC_FAULT",n.MISSING_NEW="MISSING_NEW",n.INVALID_ARGUMENT="INVALID_ARGUMENT",n.MISSING_ARGUMENT="MISSING_ARGUMENT",n.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",n.CALL_EXCEPTION="CALL_EXCEPTION",n.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",n.NONCE_EXPIRED="NONCE_EXPIRED",n.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",n.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",n.TRANSACTION_REPLACED="TRANSACTION_REPLACED",n.ACTION_REJECTED="ACTION_REJECTED"}(ul||(ul={})),ul))();const dK="0123456789abcdef";let it=(()=>{class n{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,o){const r=e.toLowerCase();null==zP[r]&&this.throwArgumentError("invalid log level name","logLevel",e),!(pK>zP[r])&&console.log.apply(console,o)}debug(...e){this._log(n.levels.DEBUG,e)}info(...e){this._log(n.levels.INFO,e)}warn(...e){this._log(n.levels.WARNING,e)}makeError(e,o,r){if(lK)return this.makeError("censored error",o,{});o||(o=n.errors.UNKNOWN_ERROR),r||(r={});const i=[];Object.keys(r).forEach(l=>{const u=r[l];try{if(u instanceof Uint8Array){let d="";for(let h=0;h>4],d+=dK[15&u[h]];i.push(l+"=Uint8Array(0x"+d+")")}else i.push(l+"="+JSON.stringify(u))}catch{i.push(l+"="+JSON.stringify(r[l].toString()))}}),i.push(`code=${o}`),i.push(`version=${this.version}`);const a=e;let s="";switch(o){case ul.NUMERIC_FAULT:{s="NUMERIC_FAULT";const l=e;switch(l){case"overflow":case"underflow":case"division-by-zero":s+="-"+l;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case ul.CALL_EXCEPTION:case ul.INSUFFICIENT_FUNDS:case ul.MISSING_NEW:case ul.NONCE_EXPIRED:case ul.REPLACEMENT_UNDERPRICED:case ul.TRANSACTION_REPLACED:case ul.UNPREDICTABLE_GAS_LIMIT:s=o}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(e+=" ("+i.join(", ")+")");const c=new Error(e);return c.reason=a,c.code=o,Object.keys(r).forEach(function(l){c[l]=r[l]}),c}throwError(e,o,r){throw this.makeError(e,o,r)}throwArgumentError(e,o,r){return this.throwError(e,n.errors.INVALID_ARGUMENT,{argument:o,value:r})}assert(e,o,r,i){e||this.throwError(o,r,i)}assertArgument(e,o,r,i){e||this.throwArgumentError(o,r,i)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),uK&&this.throwError("platform missing String.prototype.normalize",n.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:uK})}checkSafeUint53(e,o){"number"==typeof e&&(null==o&&(o="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(o,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(o,n.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,o,r){r=r?": "+r:"",eo&&this.throwError("too many arguments"+r,n.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:o})}checkNew(e,o){(e===Object||null==e)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:o.name})}checkAbstract(e,o){e===o?this.throwError("cannot instantiate abstract class "+JSON.stringify(o.name)+" directly; use a sub-class",n.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",n.errors.MISSING_NEW,{name:o.name})}static globalLogger(){return P8||(P8=new n("logger/5.7.0")),P8}static setCensorship(e,o){if(!e&&o&&this.globalLogger().throwError("cannot permanently disable censorship",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),cK){if(!e)return;this.globalLogger().throwError("error censorship permanent",n.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}lK=!!e,cK=!!o}static setLogLevel(e){const o=zP[e.toLowerCase()];null!=o?pK=o:n.globalLogger().warn("invalid log level - "+e)}static from(e){return new n(e)}}return n.errors=ul,n.levels=vP,n})();const br=new it("bytes/5.7.0");function fK(n){return!!n.toHexString}function GO(n){return n.slice||(n.slice=function(){const t=Array.prototype.slice.call(arguments);return GO(new Uint8Array(Array.prototype.slice.apply(n,t)))}),n}function x8(n){return Ao(n)&&!(n.length%2)||ZO(n)}function hK(n){return"number"==typeof n&&n==n&&n%1==0}function ZO(n){if(null==n)return!1;if(n.constructor===Uint8Array)return!0;if("string"==typeof n||!hK(n.length)||n.length<0)return!1;for(let t=0;t=256)return!1}return!0}function c1(n,t){if(t||(t={}),"number"==typeof n){br.checkSafeUint53(n,"invalid arrayify value");const e=[];for(;n;)e.unshift(255&n),n=parseInt(String(n/256));return 0===e.length&&e.push(0),GO(new Uint8Array(e))}if(t.allowMissingPrefix&&"string"==typeof n&&"0x"!==n.substring(0,2)&&(n="0x"+n),fK(n)&&(n=n.toHexString()),Ao(n)){let e=n.substring(2);e.length%2&&("left"===t.hexPad?e="0"+e:"right"===t.hexPad?e+="0":br.throwArgumentError("hex data is odd-length","value",n));const o=[];for(let r=0;rc1(r)),e=t.reduce((r,i)=>r+i.length,0),o=new Uint8Array(e);return t.reduce((r,i)=>(o.set(i,r),r+i.length),0),GO(o)}function KO(n){let t=c1(n);if(0===t.length)return t;let e=0;for(;e>4]+q8[15&r]}return e}return br.throwArgumentError("invalid hexlify value","value",n)}function bM(n){if("string"!=typeof n)n=a1(n);else if(!Ao(n)||n.length%2)return null;return(n.length-2)/2}function Ca(n,t,e){return"string"!=typeof n?n=a1(n):(!Ao(n)||n.length%2)&&br.throwArgumentError("invalid hexData","value",n),t=2+2*t,null!=e?"0x"+n.substring(t,2+2*e):"0x"+n.substring(t)}function Xs(n){let t="0x";return n.forEach(e=>{t+=a1(e).substring(2)}),t}function Nv(n){const t=function xCe(n){"string"!=typeof n&&(n=a1(n)),Ao(n)||br.throwArgumentError("invalid hex string","value",n),n=n.substring(2);let t=0;for(;t2*t+2&&br.throwArgumentError("value out of range","value",arguments[1]);n.length<2*t+2;)n="0x0"+n.substring(2);return n}function Iv(n){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(x8(n)){let e=c1(n);64===e.length?(t.v=27+(e[32]>>7),e[32]&=127,t.r=a1(e.slice(0,32)),t.s=a1(e.slice(32,64))):65===e.length?(t.r=a1(e.slice(0,32)),t.s=a1(e.slice(32,64)),t.v=e[64]):br.throwArgumentError("invalid signature string","signature",n),t.v<27&&(0===t.v||1===t.v?t.v+=27:br.throwArgumentError("signature invalid v byte","signature",n)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(e[32]|=128),t._vs=a1(e.slice(32,64))}else{if(t.r=n.r,t.s=n.s,t.v=n.v,t.recoveryParam=n.recoveryParam,t._vs=n._vs,null!=t._vs){const r=function PCe(n,t){(n=c1(n)).length>t&&br.throwArgumentError("value out of range","value",arguments[0]);const e=new Uint8Array(t);return e.set(n,t-n.length),GO(e)}(c1(t._vs),32);t._vs=a1(r);const i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&br.throwArgumentError("signature recoveryParam mismatch _vs","signature",n),r[0]&=127;const a=a1(r);null==t.s?t.s=a:t.s!==a&&br.throwArgumentError("signature v mismatch _vs","signature",n)}null==t.recoveryParam?null==t.v?br.throwArgumentError("signature missing v and recoveryParam","signature",n):t.recoveryParam=0===t.v||1===t.v?t.v:1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==(0===t.v||1===t.v?t.v:1-t.v%2)&&br.throwArgumentError("signature recoveryParam mismatch v","signature",n),null!=t.r&&Ao(t.r)?t.r=nr(t.r,32):br.throwArgumentError("signature missing or invalid r","signature",n),null!=t.s&&Ao(t.s)?t.s=nr(t.s,32):br.throwArgumentError("signature missing or invalid s","signature",n);const e=c1(t.s);e[0]>=128&&br.throwArgumentError("signature s out of range","signature",n),t.recoveryParam&&(e[0]|=128);const o=a1(e);t._vs&&(Ao(t._vs)||br.throwArgumentError("signature invalid _vs","signature",n),t._vs=nr(t._vs,32)),null==t._vs?t._vs=o:t._vs!==o&&br.throwArgumentError("signature _vs mismatch v and s","signature",n)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}const MK="bignumber/5.7.0";var Bv=y1().BN;const Td=new it(MK),W8={},bK=9007199254740991;let gK=!1;class e0{constructor(t,e){t!==W8&&Td.throwError("cannot call constructor directly; use BigNumber.from",it.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return js(an(this).fromTwos(t))}toTwos(t){return js(an(this).toTwos(t))}abs(){return"-"===this._hex[0]?e0.from(this._hex.substring(1)):this}add(t){return js(an(this).add(an(t)))}sub(t){return js(an(this).sub(an(t)))}div(t){return e0.from(t).isZero()&&dl("division-by-zero","div"),js(an(this).div(an(t)))}mul(t){return js(an(this).mul(an(t)))}mod(t){const e=an(t);return e.isNeg()&&dl("division-by-zero","mod"),js(an(this).umod(e))}pow(t){const e=an(t);return e.isNeg()&&dl("negative-power","pow"),js(an(this).pow(e))}and(t){const e=an(t);return(this.isNegative()||e.isNeg())&&dl("unbound-bitwise-result","and"),js(an(this).and(e))}or(t){const e=an(t);return(this.isNegative()||e.isNeg())&&dl("unbound-bitwise-result","or"),js(an(this).or(e))}xor(t){const e=an(t);return(this.isNegative()||e.isNeg())&&dl("unbound-bitwise-result","xor"),js(an(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&dl("negative-width","mask"),js(an(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&dl("negative-width","shl"),js(an(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&dl("negative-width","shr"),js(an(this).shrn(t))}eq(t){return an(this).eq(an(t))}lt(t){return an(this).lt(an(t))}lte(t){return an(this).lte(an(t))}gt(t){return an(this).gt(an(t))}gte(t){return an(this).gte(an(t))}isNegative(){return"-"===this._hex[0]}isZero(){return an(this).isZero()}toNumber(){try{return an(this).toNumber()}catch{dl("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Td.throwError("this platform does not support BigInt",it.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?gK||(gK=!0,Td.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):Td.throwError(16===arguments[0]?"BigNumber.toString does not accept any parameters; use bigNumber.toHexString()":"BigNumber.toString does not accept parameters",it.errors.UNEXPECTED_ARGUMENT,{})),an(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof e0)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e0(W8,Fv(t)):t.match(/^-?[0-9]+$/)?new e0(W8,Fv(new Bv(t))):Td.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&dl("underflow","BigNumber.from",t),(t>=bK||t<=-bK)&&dl("overflow","BigNumber.from",t),e0.from(String(t));const e=t;if("bigint"==typeof e)return e0.from(e.toString());if(ZO(e))return e0.from(a1(e));if(e)if(e.toHexString){const o=e.toHexString();if("string"==typeof o)return e0.from(o)}else{let o=e._hex;if(null==o&&"BigNumber"===e.type&&(o=e.hex),"string"==typeof o&&(Ao(o)||"-"===o[0]&&Ao(o.substring(1))))return e0.from(o)}return Td.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function Fv(n){if("string"!=typeof n)return Fv(n.toString(16));if("-"===n[0])return"-"===(n=n.substring(1))[0]&&Td.throwArgumentError("invalid hex","value",n),"0x00"===(n=Fv(n))?n:"-"+n;if("0x"!==n.substring(0,2)&&(n="0x"+n),"0x"===n)return"0x00";for(n.length%2&&(n="0x0"+n.substring(2));n.length>4&&"0x00"===n.substring(0,4);)n="0x"+n.substring(4);return n}function js(n){return e0.from(Fv(n))}function an(n){const t=e0.from(n).toHexString();return new Bv("-"===t[0]?"-"+t.substring(3):t.substring(2),16)}function dl(n,t,e){const o={fault:n,operation:t};return null!=e&&(o.value=e),Td.throwError(n,it.errors.NUMERIC_FAULT,o)}const cs=new it(MK),Yv={},OK=e0.from(0),mK=e0.from(-1);function _K(n,t,e,o){const r={fault:t,operation:e};return void 0!==o&&(r.value=o),cs.throwError(n,it.errors.NUMERIC_FAULT,r)}let Hv="0";for(;Hv.length<256;)Hv+=Hv;function L8(n){if("number"!=typeof n)try{n=e0.from(n).toNumber()}catch{}return"number"==typeof n&&n>=0&&n<=256&&!(n%1)?"1"+Hv.substring(0,n):cs.throwArgumentError("invalid decimal size","decimals",n)}function AP(n,t){null==t&&(t=0);const e=L8(t),o=(n=e0.from(n)).lt(OK);o&&(n=n.mul(mK));let r=n.mod(e).toString();for(;r.length2&&cs.throwArgumentError("too many decimal points","value",n);let i=r[0],a=r[1];for(i||(i="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>e.length-1&&_K("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==t[a]?c:(typeof t[a]!==s&&cs.throwArgumentError("invalid fixed format ("+a+" not "+s+")","format."+a,t[a]),t[a]);e=i("signed","boolean",e),o=i("width","number",o),r=i("decimals","number",r)}return o%8&&cs.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",o),r>80&&cs.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new JO(Yv,e,o,r)}}class Yi{constructor(t,e,o,r){t!==Yv&&cs.throwError("cannot use FixedNumber constructor; use FixedNumber.from",it.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=e,this._value=o,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&cs.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=Pu(this._value,this.format.decimals),o=Pu(t._value,t.format.decimals);return Yi.fromValue(e.add(o),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=Pu(this._value,this.format.decimals),o=Pu(t._value,t.format.decimals);return Yi.fromValue(e.sub(o),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=Pu(this._value,this.format.decimals),o=Pu(t._value,t.format.decimals);return Yi.fromValue(e.mul(o).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=Pu(this._value,this.format.decimals),o=Pu(t._value,t.format.decimals);return Yi.fromValue(e.mul(this.format._multiplier).div(o),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=Yi.from(t[0],this.format);const o=!t[1].match(/^(0*)$/);return this.isNegative()&&o&&(e=e.subUnsafe(zK.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=Yi.from(t[0],this.format);const o=!t[1].match(/^(0*)$/);return!this.isNegative()&&o&&(e=e.addUnsafe(zK.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&cs.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const o=Yi.from("1"+Hv.substring(0,t),this.format),r=LCe.toFormat(this.format);return this.mulUnsafe(o).addUnsafe(r).floor().divUnsafe(o)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&cs.throwArgumentError("invalid byte width","width",t),nr(e0.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return Yi.fromString(this._value,t)}static fromValue(t,e,o){return null==o&&null!=e&&!function qCe(n){return null!=n&&(e0.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&!!n.match(/^-?[0-9]+$/)||Ao(n)||"bigint"==typeof n||ZO(n))}(e)&&(o=e,e=null),null==e&&(e=0),null==o&&(o="fixed"),Yi.fromString(AP(t,e),JO.from(o))}static fromString(t,e){null==e&&(e="fixed");const o=JO.from(e),r=Pu(t,o.decimals);!o.signed&&r.lt(OK)&&_K("unsigned value cannot be negative","overflow","value",t);let i=null;o.signed?i=r.toTwos(o.width).toHexString():(i=r.toHexString(),i=nr(i,o.width/8));const a=AP(r,o.decimals);return new Yi(Yv,i,a,o)}static fromBytes(t,e){null==e&&(e="fixed");const o=JO.from(e);if(c1(t).length>o.width/8)throw new Error("overflow");let r=e0.from(t);o.signed&&(r=r.fromTwos(o.width));const i=r.toTwos((o.signed?0:1)+o.width).toHexString(),a=AP(r,o.decimals);return new Yi(Yv,i,a,o)}static from(t,e){if("string"==typeof t)return Yi.fromString(t,e);if(ZO(t))return Yi.fromBytes(t,e);try{return Yi.fromValue(t,0,e)}catch(o){if(o.code!==it.errors.INVALID_ARGUMENT)throw o}return cs.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const zK=Yi.from(1),LCe=Yi.from("0.5"),vK=new it("units/5.7.0"),AK=["wei","kwei","mwei","gwei","szabo","finney","ether"];function yK(n,t){if("string"==typeof t){const e=AK.indexOf(t);-1!==e&&(t=3*e)}return AP(n,t??18)}function CK(n,t){if("string"!=typeof n&&vK.throwArgumentError("value must be a string","value",n),"string"==typeof t){const e=AK.indexOf(t);-1!==e&&(t=3*e)}return Pu(n,t??18)}function QO(n){return yK(n,18)}var DCe=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})};const yP=new it("properties/5.7.0");function O1(n,t,e){Object.defineProperty(n,t,{enumerable:!0,value:e,writable:!1})}function Xv(n,t){for(let e=0;e<32;e++){if(n[t])return n[t];if(!n.prototype||"object"!=typeof n.prototype)break;n=Object.getPrototypeOf(n.prototype).constructor}return null}function Hi(n){return DCe(this,void 0,void 0,function*(){const t=Object.keys(n).map(o=>Promise.resolve(n[o]).then(i=>({key:o,value:i})));return(yield Promise.all(t)).reduce((o,r)=>(o[r.key]=r.value,o),{})})}function Us(n){const t={};for(const e in n)t[e]=n[e];return t}const ECe={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function wK(n){if(null==n||ECe[typeof n])return!0;if(Array.isArray(n)||"object"==typeof n){if(!Object.isFrozen(n))return!1;const t=Object.keys(n);for(let e=0;erf(t)));if("object"==typeof n){const t={};for(const e in n){const o=n[e];void 0!==o&&O1(t,e,rf(o))}return t}return yP.throwArgumentError("Cannot deepCopy "+typeof n,"object",n)}function rf(n){return NCe(n)}class ICe{constructor(t){for(const e in t)this[e]=rf(t[e])}}const CP="abi/5.7.0",T8=new it(CP);class Rd{constructor(t,e,o,r){this.name=t,this.type=e,this.localName=o,this.dynamic=r}_throwError(t,e){T8.throwArgumentError(t,this.localName,e)}}class R8{constructor(t){O1(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return Xs(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(pp(t._data))}writeBytes(t){let e=c1(t);const o=e.length%this.wordSize;return o&&(e=pp([e,this._padding.slice(o)])),this._writeData(e)}_getValue(t){let e=c1(e0.from(t));return e.length>this.wordSize&&T8.throwError("value out-of-bounds",it.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=pp([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class wP{constructor(t,e,o,r){O1(this,"_data",c1(t)),O1(this,"wordSize",e||32),O1(this,"_coerceFunc",o),O1(this,"allowLoose",r),this._offset=0}get data(){return a1(this._data)}get consumed(){return this._offset}static coerce(t,e){let o=t.match("^u?int([0-9]+)$");return o&&parseInt(o[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):wP.coerce(t,e)}_peekBytes(t,e,o){let r=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&o&&this._offset+e<=this._data.length?r=e:T8.throwError("data out-of-bounds",it.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(t){return new wP(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let o=this._peekBytes(0,t,!!e);return this._offset+=o.length,o.slice(0,t)}readValue(){return e0.from(this.readBytes(this.wordSize))}}var BCe=G(4237),FCe=G.n(BCe);function Xi(n){return"0x"+FCe().keccak_256(c1(n))}const xu=new it("rlp/5.7.0");function PK(n){const t=[];for(;n;)t.unshift(255&n),n>>=8;return t}function xK(n,t,e){let o=0;for(let r=0;rt+1+o&&xu.throwError("child data too short",it.errors.BUFFER_OVERRUN,{})}return{consumed:1+o,result:r}}function LK(n,t){if(0===n.length&&xu.throwError("data too short",it.errors.BUFFER_OVERRUN,{}),n[t]>=248){const e=n[t]-247;t+1+e>n.length&&xu.throwError("data short segment too short",it.errors.BUFFER_OVERRUN,{});const o=xK(n,t+1,e);return t+1+e+o>n.length&&xu.throwError("data long segment too short",it.errors.BUFFER_OVERRUN,{}),WK(n,t,t+1+e,e+o)}if(n[t]>=192){const e=n[t]-192;return t+1+e>n.length&&xu.throwError("data array too short",it.errors.BUFFER_OVERRUN,{}),WK(n,t,t+1,e)}if(n[t]>=184){const e=n[t]-183;t+1+e>n.length&&xu.throwError("data array too short",it.errors.BUFFER_OVERRUN,{});const o=xK(n,t+1,e);return t+1+e+o>n.length&&xu.throwError("data array too short",it.errors.BUFFER_OVERRUN,{}),{consumed:1+e+o,result:a1(n.slice(t+1+e,t+1+e+o))}}if(n[t]>=128){const e=n[t]-128;return t+1+e>n.length&&xu.throwError("data too short",it.errors.BUFFER_OVERRUN,{}),{consumed:1+e,result:a1(n.slice(t+1,t+1+e))}}return{consumed:1,result:a1(n[t])}}function S8(n){const t=c1(n),e=LK(t,0);return e.consumed!==t.length&&xu.throwArgumentError("invalid rlp data","data",n),e.result}const af=new it("address/5.7.0");function TK(n){Ao(n,20)||af.throwArgumentError("invalid address","address",n);const t=(n=n.toLowerCase()).substring(2).split(""),e=new Uint8Array(40);for(let r=0;r<40;r++)e[r]=t[r].charCodeAt(0);const o=c1(Xi(e));for(let r=0;r<40;r+=2)o[r>>1]>>4>=8&&(t[r]=t[r].toUpperCase()),(15&o[r>>1])>=8&&(t[r+1]=t[r+1].toUpperCase());return"0x"+t.join("")}const D8={};for(let n=0;n<10;n++)D8[String(n)]=String(n);for(let n=0;n<26;n++)D8[String.fromCharCode(65+n)]=String(10+n);const RK=Math.floor(function jCe(n){return Math.log10?Math.log10(n):Math.log(n)/Math.LN10}(9007199254740991));function ji(n){let t=null;if("string"!=typeof n&&af.throwArgumentError("invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==n.substring(0,2)&&(n="0x"+n),t=TK(n),n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==n&&af.throwArgumentError("bad address checksum","address",n);else if(n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(n.substring(2,4)!==function SK(n){let t=(n=(n=n.toUpperCase()).substring(4)+n.substring(0,2)+"00").split("").map(o=>D8[o]).join("");for(;t.length>=RK;){let o=t.substring(0,RK);t=parseInt(o,10)%97+t.substring(o.length)}let e=String(98-parseInt(t,10)%97);for(;e.length<2;)e="0"+e;return e}(n)&&af.throwArgumentError("bad icap checksum","address",n),t=function WCe(n){return new Bv(n,36).toString(16)}(n.substring(4));t.length<40;)t="0"+t;t=TK("0x"+t)}else af.throwArgumentError("invalid address","address",n);return t}class VCe extends Rd{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=ji(e)}catch(o){this._throwError(o.message,e)}return t.writeValue(e)}decode(t){return ji(nr(t.readValue().toHexString(),20))}}class $Ce extends Rd{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const em=new it(CP);function DK(n,t,e){let o=null;if(Array.isArray(e))o=e;else if(e&&"object"==typeof e){let c={};o=t.map(l=>{const u=l.localName;return u||em.throwError("cannot encode object for signature with missing names",it.errors.INVALID_ARGUMENT,{argument:"values",coder:l,value:e}),c[u]&&em.throwError("cannot encode object for signature with duplicate names",it.errors.INVALID_ARGUMENT,{argument:"values",coder:l,value:e}),c[u]=!0,e[u]})}else em.throwArgumentError("invalid tuple value","tuple",e);t.length!==o.length&&em.throwArgumentError("types/value length mismatch","tuple",e);let r=new R8(n.wordSize),i=new R8(n.wordSize),a=[];t.forEach((c,l)=>{let u=o[l];if(c.dynamic){let d=i.length;c.encode(i,u);let h=r.writeUpdatableValue();a.push(M=>{h(M+d)})}else c.encode(r,u)}),a.forEach(c=>{c(r.length)});let s=n.appendWriter(r);return s+=n.appendWriter(i),s}function kK(n,t){let e=[],o=n.subReader(0);t.forEach(i=>{let a=null;if(i.dynamic){let s=n.readValue(),c=o.subReader(s.toNumber());try{a=i.decode(c)}catch(l){if(l.code===it.errors.BUFFER_OVERRUN)throw l;a=l,a.baseType=i.name,a.name=i.localName,a.type=i.type}}else try{a=i.decode(n)}catch(s){if(s.code===it.errors.BUFFER_OVERRUN)throw s;a=s,a.baseType=i.name,a.name=i.localName,a.type=i.type}null!=a&&e.push(a)});const r=t.reduce((i,a)=>{const s=a.localName;return s&&(i[s]||(i[s]=0),i[s]++),i},{});t.forEach((i,a)=>{let s=i.localName;if(!s||1!==r[s]||("length"===s&&(s="_length"),null!=e[s]))return;const c=e[a];c instanceof Error?Object.defineProperty(e,s,{enumerable:!0,get:()=>{throw c}}):e[s]=c});for(let i=0;i{throw a}})}return Object.freeze(e)}class GCe extends Rd{constructor(t,e,o){super("array",t.type+"["+(e>=0?e:"")+"]",o,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let o=0;ot._data.length&&em.throwError("insufficient data length",it.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let o=[];for(let r=0;r(function(n){n.current="",n.NFC="NFC",n.NFD="NFD",n.NFKC="NFKC",n.NFKD="NFKD"}(tm||(tm={})),tm))(),Vs=(()=>(function(n){n.UNEXPECTED_CONTINUE="unexpected continuation byte",n.BAD_PREFIX="bad codepoint prefix",n.OVERRUN="string overrun",n.MISSING_CONTINUE="missing continuation byte",n.OUT_OF_RANGE="out of UTF-8 range",n.UTF16_SURROGATE="UTF-16 surrogate",n.OVERLONG="overlong representation"}(Vs||(Vs={})),Vs))();function BK(n,t,e,o,r){if(n===Vs.BAD_PREFIX||n===Vs.UNEXPECTED_CONTINUE){let i=0;for(let a=t+1;a>6==2;a++)i++;return i}return n===Vs.OVERRUN?e.length-t-1:0}const s5e=Object.freeze({error:function i5e(n,t,e,o,r){return IK.throwArgumentError(`invalid codepoint at offset ${t}; ${n}`,"bytes",e)},ignore:BK,replace:function a5e(n,t,e,o,r){return n===Vs.OVERLONG?(o.push(r),0):(o.push(65533),BK(n,t,e))}});function k8(n,t){null==t&&(t=s5e.error),n=c1(n);const e=[];let o=0;for(;o>7)){e.push(r);continue}let i=null,a=null;if(192==(224&r))i=1,a=127;else if(224==(240&r))i=2,a=2047;else{if(240!=(248&r)){o+=t(128==(192&r)?Vs.UNEXPECTED_CONTINUE:Vs.BAD_PREFIX,o-1,n,e);continue}i=3,a=65535}if(o-1+i>=n.length){o+=t(Vs.OVERRUN,o-1,n,e);continue}let s=r&(1<<8-i-1)-1;for(let c=0;c1114111){o+=t(Vs.OUT_OF_RANGE,o-1-i,n,e,s);continue}if(s>=55296&&s<=57343){o+=t(Vs.UTF16_SURROGATE,o-1-i,n,e,s);continue}if(s<=a){o+=t(Vs.OVERLONG,o-1-i,n,e,s);continue}e.push(s)}}return e}function qu(n,t=tm.current){t!=tm.current&&(IK.checkNormalize(),n=n.normalize(t));let e=[];for(let o=0;o>6|192),e.push(63&r|128);else if(55296==(64512&r)){o++;const i=n.charCodeAt(o);if(o>=n.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const a=65536+((1023&r)<<10)+(1023&i);e.push(a>>18|240),e.push(a>>12&63|128),e.push(a>>6&63|128),e.push(63&a|128)}else e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)}return c1(e)}function jv(n,t){return function c5e(n){return n.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))).join("")}(k8(n,t))}class p5e extends EK{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,qu(e))}decode(t){return jv(super.decode(t))}}class xP extends Rd{constructor(t,e){let o=!1;const r=[];t.forEach(a=>{a.dynamic&&(o=!0),r.push(a.type)}),super("tuple","tuple("+r.join(",")+")",e,o),this.coders=t}defaultValue(){const t=[];this.coders.forEach(o=>{t.push(o.defaultValue())});const e=this.coders.reduce((o,r)=>{const i=r.localName;return i&&(o[i]||(o[i]=0),o[i]++),o},{});return this.coders.forEach((o,r)=>{let i=o.localName;!i||1!==e[i]||("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[r]))}),Object.freeze(t)}encode(t,e){return DK(t,this.coders,e)}decode(t){return t.coerce(this.name,kK(t,this.coders))}}const hn=new it(CP),gM={};let FK={calldata:!0,memory:!0,storage:!0},u5e={calldata:!0,memory:!0};function qP(n,t){if("bytes"===n||"string"===n){if(FK[t])return!0}else if("address"===n){if("payable"===t)return!0}else if((n.indexOf("[")>=0||"tuple"===n)&&u5e[t])return!0;return(FK[t]||"payable"===t)&&hn.throwArgumentError("invalid modifier","name",t),!1}function WP(n,t){for(let e in t)O1(n,e,t[e])}const lo=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),f5e=new RegExp(/^(.*)\[([0-9]*)\]$/);class Ui{constructor(t,e){t!==gM&&hn.throwError("use fromString",it.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),WP(this,e);let o=this.type.match(f5e);WP(this,o?{arrayLength:parseInt(o[2]||"-1"),arrayChildren:Ui.fromObject({type:o[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=lo.sighash),lo[t]||hn.throwArgumentError("invalid format type","format",t),t===lo.json){let o={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(o.indexed=this.indexed),this.components&&(o.components=this.components.map(r=>JSON.parse(r.format(t)))),JSON.stringify(o)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==lo.sighash&&(e+=this.type),e+="("+this.components.map(o=>o.format(t)).join(t===lo.full?", ":",")+")"):e+=this.type,t!==lo.sighash&&(!0===this.indexed&&(e+=" indexed"),t===lo.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?Ui.fromString(t,e):Ui.fromObject(t)}static fromObject(t){return Ui.isParamType(t)?t:new Ui(gM,{name:t.name||null,type:nm(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(Ui.fromObject):null})}static fromString(t,e){return function o(r){return Ui.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}(function d5e(n,t){let e=n;function o(s){hn.throwArgumentError(`unexpected character at position ${s}`,"param",n)}function r(s){let c={type:"",name:"",parent:s,state:{allowType:!0}};return t&&(c.indexed=!1),c}n=n.replace(/\s/g," ");let i={type:"",name:"",state:{allowType:!0}},a=i;for(let s=0;sthis._getCoder(o)),t.name);case"":return new QCe(t.name)}let e=t.type.match(g5e);if(e){let o=parseInt(e[2]||"256");return(0===o||o>256||o%8!=0)&&LP.throwArgumentError("invalid "+e[1]+" bit length","param",t),new o5e(o/8,"int"===e[1],t.name)}if(e=t.type.match(b5e),e){let o=parseInt(e[1]);return(0===o||o>32)&&LP.throwArgumentError("invalid bytes length","param",t),new JCe(o,t.name)}return LP.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new wP(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new R8(this._getWordSize())}getDefaultValue(t){const e=t.map(r=>this._getCoder(Ui.from(r)));return new xP(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&LP.throwError("types/values length mismatch",it.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const o=t.map(a=>this._getCoder(Ui.from(a))),r=new xP(o,"_"),i=this._getWriter();return r.encode(i,e),i.data}decode(t,e,o){const r=t.map(a=>this._getCoder(Ui.from(a)));return new xP(r,"_").decode(this._getReader(c1(e),o))}};var Bo,OM,om=(()=>(function(n){n.BuyViews="buy-views"}(om||(om={})),om))();!function(n){let t;var o;let e;(o=t=n.Color||(n.Color={})).White="White",o.Black="Black",o.Gold="Gold",o.Silver="Silver",function(o){o.Left="Left",o.Right="Right",o.Middle="Middle",o.Top="Top",o.Bottom="Bottom"}(e=n.Placement||(n.Placement={}))}(Bo||(Bo={}));let N8=(OM=class{constructor(t){this.nftPayFormDummy={name:"Title in 100 characters or less",description:"Lorem Ipsum in 1,000 characters or less",supply:1,supplyIndex:1,mintPrice:1,incentive:{totalDiscountAmount:.0012734123805000002,storeStamp:{color:Bo.Color.Black,placement:Bo.Placement.Left,discountPercentage:.1,discount:.0006367061902500001},nftAddressStamp:{color:Bo.Color.Black,placement:Bo.Placement.Middle,discountPercentage:.05,discount:.00031835309512500006},supplyCountStamp:{color:Bo.Color.Silver,placement:Bo.Placement.Right,discountPercentage:.05,discount:.00031835309512500006}},image:"../../assets/nft/store-it.jpg",size:{metadata:558243,content:54e3},assetViewsTracking:{maxViews:$e.maxViewsForNFT,currentViews:0},fees:{storeCloudVMFee:0,storeChainVMFee:0,totalFees:0,platformFee:0,costOfCompute:0,permanentStorage:0,totalDiscountAmount:0},prices:{costOfCompute:0,permanentStorage:0,productionCostYearly:0,platformFeePercentage:$e.platformFee,token:{}},id:"showcase",network:rn.STORE},this.whiteIncentive={totalDiscountAmount:.0012734123805000002,storeStamp:{color:Bo.Color.White,placement:Bo.Placement.Left,discountPercentage:.1,discount:.0006367061902500001},nftAddressStamp:{color:Bo.Color.White,placement:Bo.Placement.Middle,discountPercentage:.05,discount:.00031835309512500006},supplyCountStamp:{color:Bo.Color.Gold,placement:Bo.Placement.Right,discountPercentage:.05,discount:.00031835309512500006}},this.prepareDummyNFTList(t??4)}prepareDummyNFTList(t){const e=JSON.parse(JSON.stringify(Array(6).fill(this.nftPayFormDummy)));e[0].supply=1,e[0].mintPrice=5,e[0].image="../../assets/nft/nft-1.jpg",e[1].supply=3,e[1].mintPrice=4,e[1].image="../../assets/nft/nft-2.jpg",e[1].incentive=this.whiteIncentive,e[2].supply=1,e[2].mintPrice=3,e[2].image="../../assets/nft/nft-3.jpg",e[3].supply=10,e[3].mintPrice=2,e[3].image="../../assets/nft/nft-4.jpg",e[3].incentive=this.whiteIncentive,e[4].supply=1,e[4].mintPrice=1,e[4].image="../../assets/nft/nft-11.jpg",e[4].incentive=this.whiteIncentive,e[5].supply=1,e[5].mintPrice=.5,e[5].image="../../assets/nft/store-it.jpg",e[5].incentive=this.whiteIncentive,this.latestNFTStored=e?.slice(0,t);const o=JSON.parse(JSON.stringify(Array(6).fill(this.nftPayFormDummy)));o[0].supplyIndex=3,o[0].supply=5,o[0].mintPrice=5,o[0].lastSale=4,o[0].image="../../assets/nft/nft-5.jpg",o[1].supplyIndex=1,o[1].supply=1,o[1].mintPrice=4,o[1].lastSale=3,o[1].image="../../assets/nft/nft-6.jpg",o[1].incentive=this.whiteIncentive,o[2].supplyIndex=26,o[2].supply=40,o[2].mintPrice=3,o[2].lastSale=2,o[2].image="../../assets/nft/nft-7.jpg",o[3].supplyIndex=4,o[3].supply=10,o[3].mintPrice=2,o[3].lastSale=1,o[3].image="../../assets/nft/nft-8.jpg",o[3].incentive=this.whiteIncentive,o[4].supplyIndex=1,o[4].supply=1,o[4].mintPrice=1,o[4].image="../../assets/nft/nft-9.jpg",o[5].supplyIndex=1,o[5].supply=1,o[5].mintPrice=.5,o[5].image="../../assets/nft/nft-10.jpg",this.latestNFTTraded=o?.slice(0,t);for(let r=1;r0?e:{}}prepareAIAttributionOptions(t){const e={show:!1,name:"A.I. ATTRIBUTION",reverseFlex:!0,groupedItems:[]};if(t?.aiAssisted){const o=this.prepareAIAssistedEconomy(t?.aiAssisted)?.filter(r=>r);e.groupedItems=o}return e?.groupedItems?.length>0?e:{}}prepareHumanAttributionOptions(t){const e={show:!1,name:"HUMAN ATTRIBUTION",reverseFlex:!0,groupedItems:[]};if(t?.attribution){const o=this.prepareAttributionEconomy(t?.attribution)?.filter(r=>r);e.groupedItems=o}return e?.groupedItems?.length>0?e:{}}prepareAIAssistedEconomy(t){const e=[],o=[],r=[];let i=1;return t?.rows.forEach(a=>{a?.basicInfo?.name&&a?.basicInfo?.createdByAI&&(e.push(ve({label:a.basicInfo.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),e.push(ve({label:"% created by A.I.",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:a.basicInfo.createdByAI}))),a.economics?.address&&a.economics?.ownedByAI&&a.economics?.royaltyToAI&&(o.push(ve({label:a.basicInfo.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),o.push(ve({label:"Ethereum Address",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"hash",value:a.economics.address,link:`${$e.wallet.etherscanURL}/address/${a.economics.address}`,cssClass:"text-black-light",externalLink:!0,copy:!0,trimSize:26,trimSizeMobile:25,hideBorderBottom:!0})),o.push(ve({label:"% this I.P. is owned by A.I.",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:a.economics.ownedByAI,hideBorderBottom:!0})),o.push(ve({label:"% royalties owed to this A.I.",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:a.economics.royaltyToAI}))),i+=1}),e?.length>0&&r.push({show:!0,name:"Basic Info",indent:1,items$:e,tooltip:"Detail"}),o?.length>0&&r.push({show:!0,name:"Economics",indent:1,items$:o,tooltip:"Detail"}),r}prepareAttributionEconomy(t){const e=[],o=[],r=[];let i=1;t.createdBy.forEach(d=>{d?.name&&d?.address&&d?.royalty&&(e.push(ve({label:d.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),e.push(ve({label:"Ethereum Address",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:d.address,link:`${$e.wallet.etherscanURL}/address/${d.address}`,externalLink:!0,copy:!0,trimSize:26,trimSizeMobile:25,hideBorderBottom:!0})),e.push(ve({label:"% Royalties Owed",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:d.royalty})),i+=1)});let a=1;t.whoOwnsIt.forEach(d=>{d?.name&&d?.address&&d?.royalty&&(o.push(ve({label:d.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),o.push(ve({label:"Ethereum Address",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:d.address,link:`${$e.wallet.etherscanURL}/address/${d.address}`,externalLink:!0,copy:!0,trimSize:26,trimSizeMobile:25,hideBorderBottom:!0})),o.push(ve({label:"% Royalties Owed",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:d.royalty})),a+=1)});let s=1;return t.whoIsInIt.forEach(d=>{d?.name&&d?.address&&d?.royalty&&(r.push(ve({label:d.name,labelCssClass:"flex-basis-80 text-black extra-bold",tooltip:"Description (in progress)",type:"string",hideBorderBottom:!0})),r.push(ve({label:"Ethereum Address",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:d.address,link:`${$e.wallet.etherscanURL}/address/${d.address}`,externalLink:!0,copy:!0,trimSize:26,trimSizeMobile:25,hideBorderBottom:!0})),r.push(ve({label:"% Royalties Owed",labelCssClass:"text-black-light bold",tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:d.royalty})),s+=1)}),[o?.length>0?{show:!0,name:"Who owns this data or I.P.",indent:1,items$:o,tooltip:"Detail"}:void 0,e?.length>0?{show:!0,name:"Who created this data or I.P.",indent:1,items$:e,tooltip:"Detail"}:void 0,r?.length>0?{show:!0,name:"Who is in this data or I.P.",indent:1,items$:r,tooltip:"Detail"}:void 0]}prepareIPRightEconomy(t){const e=[],o=[];if(t.creativeCommons&&e.push(ve({label:this.publisherEconomy.ipRights.creativeCommons.title,tooltip:this.publisherEconomy.ipRights.creativeCommons.detail??"Description (in progress)",type:"string",cssClass:"text-black-light",value:"Enabled"})),t.nonExclusiveCommercialRights){const i=[];t.nonExclusiveCommercialRights.revenueLimit&&i.push(ve({label:this.publisherEconomy.ipRights.nonExclusiveCommercialRights.revenueLimit.title,tooltip:"Description (in progress)",type:"currency",cssClass:"text-black-light",value:t.nonExclusiveCommercialRights.revenueLimit})),t.nonExclusiveCommercialRights.venueLimit&&i.push(ve({label:this.publisherEconomy.ipRights.nonExclusiveCommercialRights.venueLimit.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.nonExclusiveCommercialRights.venueLimit})),t.nonExclusiveCommercialRights.periodLimit&&i.push(ve({label:this.publisherEconomy.ipRights.nonExclusiveCommercialRights.periodLimit.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.nonExclusiveCommercialRights.periodLimit})),t.nonExclusiveCommercialRights.hateSpeechTermination&&i.push(ve({label:this.publisherEconomy.ipRights.nonExclusiveCommercialRights.hateSpeechTermination?.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"Enabled"})),o.push({show:!0,name:this.publisherEconomy.ipRights.nonExclusiveCommercialRights.title,indent:2,items$:i,tooltip:this.publisherEconomy.ipRights.nonExclusiveCommercialRights.detail})}if(t.exclusiveCommercialRights){const i=[];t.exclusiveCommercialRights.revenueLimit&&i.push(ve({label:this.publisherEconomy.ipRights.exclusiveCommercialRights.revenueLimit.title,tooltip:"Description (in progress)",type:"currency",cssClass:"text-black-light",value:t.exclusiveCommercialRights.revenueLimit})),t.exclusiveCommercialRights.venueLimit&&i.push(ve({label:this.publisherEconomy.ipRights.exclusiveCommercialRights.venueLimit.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.exclusiveCommercialRights.venueLimit})),t.exclusiveCommercialRights.periodLimit&&i.push(ve({label:this.publisherEconomy.ipRights.exclusiveCommercialRights.periodLimit.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.exclusiveCommercialRights.periodLimit})),o.push({show:!0,name:this.publisherEconomy.ipRights.exclusiveCommercialRights.title,indent:2,items$:i,tooltip:this.publisherEconomy.ipRights.exclusiveCommercialRights.detail})}if(t.personUseOnly){const i=[];t.personUseOnly.displayRightsLimits&&i.push(ve({label:this.publisherEconomy.ipRights.personUseOnly.displayRightsLimits.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.personUseOnly.displayRightsLimits})),t.personUseOnly.hateSpeechTermination&&i.push(ve({label:this.publisherEconomy.ipRights.personUseOnly.hateSpeechTermination.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.personUseOnly.hateSpeechTermination})),o.push({show:!0,name:this.publisherEconomy.ipRights.personUseOnly.title,indent:2,items$:i,tooltip:this.publisherEconomy.ipRights.personUseOnly.detail})}return{show:!0,name:this.publisherEconomy.ipRights.title,indent:1,items$:e,groupedItems:o,tooltip:this.publisherEconomy.ipRights.detail}}preparePayPerViewEconomy(t){const o=[];if(t.payWall){const i=[];if(t.payWall.singleTicket){const a=this.sharedStatsService.convertUSDIntoRates(t.payWall.singleTicket);i.push(ve({label:this.publisherEconomy.payPerView.payWall.singleTicket.title,tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}))}if(t.payWall.threeDaysRental){const a=this.sharedStatsService.convertUSDIntoRates(t.payWall.threeDaysRental);i.push(ve({label:this.publisherEconomy.payPerView.payWall.threeDaysRental.title,tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}))}if(t.payWall.lifeTimeAccess){const a=this.sharedStatsService.convertUSDIntoRates(t.payWall.lifeTimeAccess);i.push(ve({label:this.publisherEconomy.payPerView.payWall.lifeTimeAccess.title,tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}))}o.push({show:!0,name:this.publisherEconomy.payPerView.payWall.title,indent:2,items$:i})}return{show:!0,name:this.publisherEconomy.payPerView.title,indent:1,items$:[],groupedItems:o,tooltip:this.publisherEconomy.payPerView.detail}}prepareDistributionEconomy(t){const o=[];if(t.shareTo={facebook:!0,twitter:!0},t.fund={distributeTo:{facebookAmount:5,twitterAmount:5},amount:10},t.shareTo){const i=[];t.shareTo.facebook&&i.push(ve({label:this.publisherEconomy.distribution.shareTo.facebook.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",icon:"facebook",value:"Enabled"})),t.shareTo.twitter&&i.push(ve({label:this.publisherEconomy.distribution.shareTo.twitter.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",icon:"x",value:"Enabled"})),o.push({show:!0,name:this.publisherEconomy.distribution.shareTo.title,indent:2,items$:i})}if(t.fund){const i=[];if(t.fund.amount){const a=this.sharedStatsService.convertUSDIntoRates(t.fund.amount);i.push(ve({label:this.publisherEconomy.distribution.fund.amount.title,tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}))}if(t.fund.distributeTo.facebookAmount){const a=this.sharedStatsService.convertUSDIntoRates(t.fund.distributeTo.facebookAmount);i.push(ve({label:this.publisherEconomy.distribution.fund.distributeTo.facebookAmount.title,tooltip:this.publisherEconomy.distribution.fund.distributeTo.facebookAmount.detail??"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",icon:"facebook",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"string",preSymbol:" | ",value:"Per 1,000 Followers",cssClass:"text-black-light"}}}))}if(t.fund.distributeTo.twitterAmount){const a=this.sharedStatsService.convertUSDIntoRates(t.fund.distributeTo.twitterAmount);i.push(ve({label:this.publisherEconomy.distribution.fund.distributeTo.twitterAmount.title,tooltip:this.publisherEconomy.distribution.fund.distributeTo.twitterAmount.detail??"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",icon:"x",value:a[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:a[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"string",preSymbol:" | ",value:"Per 1,000 Followers",cssClass:"text-black-light"}}}))}o.push({show:!0,name:this.publisherEconomy.distribution.fund.title,indent:2,items$:i,tooltip:this.publisherEconomy.distribution.fund.detail})}if(t.fundDistributionWithPayPerView){const i=[];t.fundDistributionWithPayPerView.percentageOfRevenue&&i.push(ve({label:this.publisherEconomy.distribution.fundDistributionWithPayPerView.percentageOfRevenue.title,tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:t.fundDistributionWithPayPerView.percentageOfRevenue/100})),o.push({show:!0,name:this.publisherEconomy.distribution.fundDistributionWithPayPerView.title,indent:2,items$:i})}return{show:!0,name:this.publisherEconomy.distribution.title,indent:1,items$:[],groupedItems:o,tooltip:this.publisherEconomy.distribution.detail}}prepareRoyaltyEconomy(t){const e=[],o=[];if(t.owner={me:!1,otherOwners:[{title:"title",name:"Name",organization:"organization",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",percent:2},{title:"title",name:"Name",organization:"organization",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",percent:2}]},t.customContract={enable:!0,musicIndustry:{frequency:"Monthly",aiAssist:!0,[oM.Composition]:{enable:!0,publisherAssociated:!0,[sp.MechanicalRoyalties]:{enable:!0,royaltyRows:[{name:"Name",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",cut:2}]},[sp.PerformanceRoyalties]:{enable:!0,royaltyRows:[{name:"Name",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",cut:2}]}},[oM.Recording]:{enable:!0,publisherAssociated:!0,[sp.Identical]:{enable:!0,royaltyRows:[{name:"Name",address:"0xc7cA31A8398dc5247FCe496B26B61a5eA4Ee2366",cut:2}]}}}},e.push(ve({label:this.publisherEconomy.royalty.baseRoyatly.title,tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:$e.permanentStorageRoyalty})),t.owner&&(t.owner.me&&e.push(ve({label:this.publisherEconomy.royalty.owner.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"Yes"})),t.owner.otherOwners)){let i="",a=!0;for(const s of t.owner.otherOwners)i+=this.prepareOwnerRow(s,a),a=!1;e.push(ve({label:this.publisherEconomy.royalty.owner.otherOwners.title,tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${i}
`}))}if(t.standardContract&&e.push(ve({label:this.publisherEconomy.royalty.standardContract.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"Yes"})),t?.customContract?.musicIndustry){let i=[],a=[];a.push(ve({label:this.publisherEconomy.royalty.customContract.musicIndustry.frequency.title,tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t.customContract.musicIndustry.frequency})),t.customContract.musicIndustry.composition&&a.concat(this.prepareCustomContract(oM.Composition,t.customContract.musicIndustry.composition,a)),t.customContract.musicIndustry.recording&&a.concat(this.prepareCustomContract(oM.Recording,t.customContract.musicIndustry.recording,a)),i.push({show:!0,name:this.publisherEconomy.royalty.customContract.musicIndustry.title,indent:3,items$:a}),o.push({show:!0,name:this.publisherEconomy.royalty.customContract.title,indent:2,groupedItems:i})}if(t.payOnEachSale&&e.push(ve({label:this.publisherEconomy.royalty.payOnEachSale.title,tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:(t.payOnEachSalePercentage??100)/100})),t.toOthers?.others&&t.toOthers?.others){let i="",a=!0;for(const s of t.toOthers?.others)i+=this.prepareOwnerRow(s,a),a=!1;e.push(ve({label:this.publisherEconomy.royalty.toOthers.title,tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${i}
`}))}return t.totalPercentage&&e.push(ve({label:this.publisherEconomy.royalty.totalPercentage.title,tooltip:"Description (in progress)",type:"percent",cssClass:"text-black-light",value:(t.totalPercentage??100)/100})),{show:!0,name:this.publisherEconomy.royalty.title,indent:1,items$:e,groupedItems:o,tooltip:this.publisherEconomy.royalty.detail}}prepareIncentiveEconomy(t){const e=[];if(t.poweredByStoreStamp={color:"White",placement:"Left",discountPercentage:.1,discount:.1558963994359914},t.storeStamp){const i=this.sharedStatsService.convertUSDIntoRates(t.storeStamp.discount);e.push(ve({label:'
\n Add a STORE icon to your NFT\n
',labelType:"html",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:i[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:i[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"percent",value:t.storeStamp.discountPercentage,cssClass:"text-light",preSymbol:"(",symbol:"Off)"}}}))}if(t.poweredByStoreStamp){const i=this.sharedStatsService.convertUSDIntoRates(t.poweredByStoreStamp.discount);e.push(ve({label:'
\n Add to your NFT\n
',labelType:"html",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:i[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:i[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"percent",value:t.poweredByStoreStamp.discountPercentage,cssClass:"text-light",preSymbol:"(",symbol:"Off)"}}}))}if(t.nftAddressStamp){const i=this.sharedStatsService.convertUSDIntoRates(t.nftAddressStamp.discount);e.push(ve({label:this.publisherEconomy.incentive.nftAddressStamp.title,labelType:"html",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:i[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:i[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"percent",value:t.nftAddressStamp.discountPercentage,cssClass:"text-light",preSymbol:"(",symbol:"Off)"}}}))}if(t.supplyCountStamp){const i=this.sharedStatsService.convertUSDIntoRates(t.supplyCountStamp.discount);e.push(ve({label:'Add limited supply number 1/1',labelType:"html",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",valueIcon:"store-logo-only",value:i[lt.Unit.STORE]?.toNumber(),subItems:{type:"currency",value:i[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)",subItems:{type:"percent",value:t.supplyCountStamp.discountPercentage,cssClass:"text-light",preSymbol:"(",symbol:"Off)"}}}))}return{show:!0,name:this.publisherEconomy.incentive.title,indent:1,items$:e,groupedItems:[],tooltip:this.publisherEconomy.incentive.detail}}prepareOwnerRow(t,e){return`
\n
\n

${t.name}\n ${t.title}.${t?.organization??""}\n

\n

${t.percent}%

\n
\n

\n \n ${t.address}\n

\n
`}prepareCategoryRow(t,e){return`
\n
\n

${t.name}\n

\n

${t.cut}%

\n
\n

\n \n ${t.address}\n

\n
`}prepareCustomContract(t,e,o){let r="",i=!0;for(const a of[sp.Identical,sp.MechanicalRoyalties,sp.PerformanceRoyalties,sp.SyncRoyalties,sp.ReproductionRoyalties]){const s=e[a]?.royaltyRows;if(s)for(const c of s)r+=this.prepareCategoryRow(c,i),i=!1}return o.push(ve({label:this.publisherEconomy.royalty.customContract.musicIndustry[t].title,tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${r}
`})),o}}let UK=(()=>{class n{constructor(){this.rootUrl="http://localhost:3003"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),v5e=(()=>{class n{constructor(e,o){this.config=e,this.http=o,this._rootUrl=""}get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}}return n.\u0275fac=function(e){return new(e||n)(Se(UK),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();const y5e=new class A5e{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};class I8{constructor(t,e,o,r,i){this.name=t,this.value=e,this.options=o,this.options=o||{},null==this.options.style&&(this.options.style=r),null==this.options.explode&&(this.options.explode=i)}serializeValue(t,e=","){if(null==t)return"";if(t instanceof Array)return t.map(o=>this.serializeValue(o).split(e).join(encodeURIComponent(e))).join(e);if("object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];null!=i&&(i=this.serializeValue(i).split(e).join(encodeURIComponent(e)),this.options.explode?o.push(`${r}=${i}`):(o.push(r),o.push(i)))}return o.join(e)}return String(t)}}class C5e extends I8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){let e=this.value;null==e&&(e="");let o="label"===this.options.style?".":"",r=this.options.explode?""===o?",":o:",",i=!1;return"matrix"===this.options.style&&(o=`;${this.name}=`,this.options.explode&&"object"==typeof e&&(o=";",e instanceof Array?(e=e.map(a=>`${this.name}=${this.serializeValue(a,";")}`),e=e.join(";"),i=!0):(e=this.serializeValue(e,";"),i=!0))),e=o+(i?e:this.serializeValue(e,r)),(t=t.replace(`{${this.name}}`,e)).replace(`{${o}${this.name}${this.options.explode?"*":""}}`,e)}serializeValue(t,e=","){var o="string"==typeof t?encodeURIComponent(t):super.serializeValue(t,e);return(o=(o=o.replace(/%3D/g,"=")).replace(/%3B/g,";")).replace(/%2C/g,",")}}class w5e extends I8{constructor(t,e,o){super(t,e,o,"form",!0)}append(t){if(this.value instanceof Array){if(!this.options.explode)return t.append(this.name,this.serializeValue(this.value,"spaceDelimited"===this.options.style?" ":"pipeDelimited"===this.options.style?"|":","));for(const e of this.value)t=t.append(this.name,this.serializeValue(e))}else if(null!==this.value&&"object"==typeof this.value)if("deepObject"===this.options.style)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(`${this.name}[${e}]`,this.serializeValue(o)))}else if(this.options.explode)for(const e of Object.keys(this.value)){const o=this.value[e];null!=o&&(t=t.append(e,this.serializeValue(o)))}else{const e=[];for(const o of Object.keys(this.value)){const r=this.value[o];null!=r&&(e.push(o),e.push(r))}t=t.append(this.name,this.serializeValue(e))}else null!=this.value&&(t=t.append(this.name,this.serializeValue(this.value)));return t}}class P5e extends I8{constructor(t,e,o){super(t,e,o,"simple",!1)}append(t){if(null!=this.value)if(this.value instanceof Array)for(const e of this.value)t=t.append(this.name,this.serializeValue(e));else t=t.append(this.name,this.serializeValue(this.value));return t}}class B8{constructor(t,e,o){this.rootUrl=t,this.operationPath=e,this.method=o,this._path=new Map,this._query=new Map,this._header=new Map}path(t,e,o){this._path.set(t,new C5e(t,e,o||{}))}query(t,e,o){this._query.set(t,new w5e(t,e,o||{}))}header(t,e,o){this._header.set(t,new P5e(t,e,o||{}))}body(t,e="application/json"){if(this._bodyContentType=t instanceof Blob?t.type:e,"application/x-www-form-urlencoded"===this._bodyContentType&&null!==t&&"object"==typeof t){const o=[];for(const r of Object.keys(t)){let i=t[r];i instanceof Array||(i=[i]);for(const a of i){const s=this.formDataValue(a);null!==s&&o.push([r,s])}}this._bodyContent=o.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join("&")}else if("multipart/form-data"===this._bodyContentType){const o=new FormData;if(null!=t)for(const r of Object.keys(t)){const i=t[r];if(i instanceof Array)for(const a of i){const s=this.formDataValue(a);null!==s&&o.append(r,s)}else{const a=this.formDataValue(i);null!==a&&o.set(r,a)}}this._bodyContent=o}else this._bodyContent=t}formDataValue(t){return null==t?null:t instanceof Blob?t:"object"==typeof t?JSON.stringify(t):String(t)}build(t){t=t||{};let e=this.operationPath;for(const a of this._path.values())e=a.append(e);const o=this.rootUrl+e;let r=new fc({encoder:y5e});for(const a of this._query.values())r=a.append(r);let i=new wi;t.accept&&(i=i.append("Accept",t.accept));for(const a of this._header.values())i=a.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set("Content-Type",this._bodyContentType)),new ru(this.method.toUpperCase(),o,this._bodyContent,{params:r,headers:i,responseType:t.responseType,reportProgress:t.reportProgress,context:t.context})}}let F8=(()=>{class n extends v5e{constructor(e,o){super(e,o)}count$Response(e,o){const r=new B8(this.rootUrl,n.AssetTransactionHistoryControllerCountPath,"get");return e&&r.query("where",e.where,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}count(e,o){return this.count$Response(e,o).pipe($(r=>r.body))}findById$Response(e,o){const r=new B8(this.rootUrl,n.AssetTransactionHistoryControllerFindByIdPath,"get");return e&&(r.path("id",e.id,{}),r.query("filter",e.filter,{})),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}findById(e,o){return this.findById$Response(e,o).pipe($(r=>r.body))}find$Response(e,o){const r=new B8(this.rootUrl,n.AssetTransactionHistoryControllerFindPath,"get");return e&&r.query("filter",e.filter,{}),this.http.request(r.build({responseType:"json",accept:"application/json",context:o})).pipe(zt(i=>i instanceof Ft),$(i=>i))}find(e,o){return this.find$Response(e,o).pipe($(r=>r.body))}}return n.AssetTransactionHistoryControllerCountPath="/asset-transaction-history/count",n.AssetTransactionHistoryControllerFindByIdPath="/asset-transaction-history/{id}",n.AssetTransactionHistoryControllerFindPath="/asset-transaction-history",n.\u0275fac=function(e){return new(e||n)(Se(UK),Se(G0))},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var mM;let TP=(mM=class extends w8{constructor(t,e,o){super(),this.http=t,this.sharedStatsService=e,this.assetTransactionHistoryControllerService=o,this.nftDummy=new N8(4),this.total$=null,this.formatBytes=new SZ,this.baseRoyalty=100*$e.permanentStorageRoyalty}getETH_TransactionByHashFromCloudflare(t){var e=this;return Nt(function*(){const o=new wi;o.append("Content-Type","application/json");const r=JSON.stringify({jsonrpc:"2.0",method:"eth_getTransactionByHash",params:[t],id:1}),i=yield tr(e.http.post($e.wallet.cloudflareEthAPIURL,r,{headers:o}));return i?.result?i?.result:null})()}getETH_BlockByNoFromCloudflare(t){var e=this;return Nt(function*(){const o=new wi;o.append("Content-Type","application/json");const r=JSON.stringify({jsonrpc:"2.0",method:"eth_getBlockByNumber",params:[t,!1],id:1}),i=yield tr(e.http.post($e.wallet.cloudflareEthAPIURL,r,{headers:o}));return i?.result?i?.result:null})()}getETH_TransactionReceiptByHashFromCloudflare(t){var e=this;return Nt(function*(){const o=new wi;o.append("Content-Type","application/json");const r=JSON.stringify({jsonrpc:"2.0",method:"eth_getTransactionReceipt",params:[t],id:1}),i=yield tr(e.http.post($e.wallet.cloudflareEthAPIURL,r,{headers:o}));return i?.result?i?.result:null})()}getETH_TransactionByHashFromEtherscan(t){var e=this;return Nt(function*(){const o=`${$e.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getTransactionByHash&txhash=${t}&apikey=${$e.wallet.etherscanAPIKey}`,r=yield tr(e.http.get(o));return r?.result?r?.result:yield e.getETH_TransactionByHashFromCloudflare(t)})()}getETH_BlockByNoFromEtherscan(t){var e=this;return Nt(function*(){const o=`${$e.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getBlockByNumber&tag=${t}&boolean=false&apikey=${$e.wallet.etherscanAPIKey}`,r=yield tr(e.http.get(o));return r?.result?r?.result:yield e.getETH_BlockByNoFromCloudflare(t)})()}getETH_TransactionReceiptByHashFromEtherscan(t){var e=this;return Nt(function*(){const o=`${$e.wallet.etherscanAPI_URL}/?module=proxy&action=eth_getTransactionReceipt&txhash=${t}&apikey=${$e.wallet.etherscanAPIKey}`,r=yield tr(e.http.get(o));return r?.result?r?.result:yield e.getETH_TransactionReceiptByHashFromCloudflare(t)})()}bindSTORETransactionDetail(t,e,o){var r=this;return Nt(function*(){const i=e?.storeId??e?.id,a={label:"Mint Price",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:e?.mintPrice||0,symbol:"STORE",subItems:{type:"currency",value:(e?.mintPrice||0)*e1(r.sharedStatsService.storePrice[lt.Unit.USD])?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},s={label:"Transaction Value",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:t?.amount||0,symbol:"STORE",subItems:{type:"bit",value:(t?.amount||0)*$e.one$STOREEqualsToOneBit,preSymbol:"(",symbol:"bits)",cssClass:"text-black-light",subItems:{type:"currency",value:t?.amountInUSD||0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}}},l={label:"\u{1f4c8} Surge",tooltip:"Description (in progress)",type:"number",value:t?.feeSurge||0,symbol:"x",cssClass:"text-black-light no-space-me"},u={label:"Blockspace Fee",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"bit",value:t?.fee??0,symbol:"bits",cssClass:"text-black-light"},d=r.sharedStatsService.convertUSDIntoRates(e?.fees?.storeCloudVMFee),h={label:"Cloudspace Fees",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"bit",value:Math.round(d[lt.Unit.BITS]?.toNumber()),symbol:"bits",cssClass:"text-black-light",subItems:{type:"currency",value:d[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},M={label:"\u{1f525} Burnt Fee",tooltip:"Description (in progress)",type:"bit",value:t?.burntFee??0,symbol:"bits",cssClass:"text-black-light",subItems:{type:"percent",value:t?.burntFeePercent,cssClass:"text-light",preSymbol:"(",symbol:"0.00%)"}},g={label:"From",tooltip:"Description (in progress)",type:"hash",value:t?.from,link:$e.externalURL.explorer_app+"/transactions/account-detail/"+t?.from,externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",copy:!0,...o},_={label:"To",tooltip:"Description (in progress)",type:"hash",value:t?.to||"00000",cssClass:"text-black-light",link:$e.externalURL.explorer_app+"/transactions/account-detail/"+t?.to,externalLink:!0,openInExistingTab:!0,copy:!0,...o},z={icon:"store-logo-only",label:"Block ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t?.blockId,link:$e.externalURL.explorer_app+"/blocks/detail/"+t?.blockId,externalLink:!0,openInExistingTab:!0},y={icon:"store-logo-only",label:"Transaction ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:t?.transactionId,link:$e.externalURL.explorer_app+"/transactions/detail/"+t?.transactionId,externalLink:!0,openInExistingTab:!0,...o},x={label:"Status",tooltip:"Description (in progress)",type:"string",cssClass:"text-black text-flex-icon",valueIcon:"store-logo-only",value:"Stored Forever",valueTooltip:"Description (in progress)",link:$e.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0},L={label:"Block Time",tooltip:"Description (in progress)",type:"string",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon",value:`${t?.blockTime} ms`},S={label:"Timestamp",tooltip:"Description (in progress)",type:"time",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon align-center",value:t?.time,subItems:{type:"date-time",value:t?.time,preSymbol:"(",symbol:")",cssClass:"text-black-light d-flex-end"}},X={label:"Nonce",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:t?.nonce||0},H={label:"Signature",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:t?.hash,...o},ie={label:"Forever Stored on",tooltip:"Description (in progress)",type:"string",link:$e.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Cloud"},ee={label:"Governed by",tooltip:"Description (in progress)",type:"string",link:$e.externalURL.explorer_app+"/governance",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Governance"},ce={label:"Incentivized by",tooltip:"Description (in progress)",type:"string",link:$e.externalURL.explorer_app+"/monetary-policy",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Monetary Policy"},fe={label:"Asset ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:`${$e.externalURL.explorer_app}/${rn.STORE}/${i}`,link:`${$e.externalURL.explorer_app}/${rn.STORE}/${i}`,externalLink:!0,openInExistingTab:!0},he={label:"NFT Asset",tooltip:"Description (in progress)",type:"asset",cssClass:"text-black-light",value:e},Oe={label:"Asset Size",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:r.formatBytes.transform(e?.size?.content+e?.size?.metadata)||"00.00 MB"},xe={icon:"store-logo-only",label:"Contract ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"1x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},st={label:"Total Supply",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:e?.supply||1},nt={label:"Serial Number",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light gold",preSymbol:`${e?.supplyIndex??1}/`,value:e?.supply||1,disabled:!(e?.supplyIndex>1)},Ut={disabled:!e?.incentive,label:"Incentives ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},qe={disabled:!e?.distribution,label:"Distribution ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},ke={disabled:!e?.royalty,label:"Royalties ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},Ge={disabled:!e?.payPerView,label:"Pay-Per-View ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...o},Gt=e1(h?.subItems?.value).add(a?.subItems?.value),l1={label:"Total Cost",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:r.sharedStatsService.convertUSDIntoRates(Gt?.toNumber())[lt.Unit.STORE]?.toNumber(),symbol:"STORE",subItems:{type:"currency",value:Gt?.toString(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},Tn=r.prepareIPFSData("showcase"===e?.id?"bafkreiatl6zspgmmh5f5u7znhi2zzxypewffmwaqxpd757i25i3ig6b7va":e.ipfsId),Sn={label:"STORE ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:`${$e.externalURL.explorer_app}/${rn.STORE}/${i}`,link:`${$e.externalURL.explorer_app}/${rn.STORE}/${i}`,externalLink:!0,openInExistingTab:!0,copy:!0,trimSize:32,trimSizeMobile:20},to={icon:"store-logo-only",label:"NFT Owner",tooltip:"Description (in progress)",type:"hash",value:e.userAddress,cssClass:"text-black-light",externalLink:!1,copy:!0,...o},V0=r.sharedStatsService.convertUSDIntoRates(5621204618e-14),Or={label:"Production Cost",tooltip:"Description (in progress)",cssClass:"text-black-light",type:"bit",valueIcon:"store-logo-only",value:Math.round(V0[lt.Unit.BITS]?.toNumber()),symbol:"bits",subItems:{type:"currency",value:V0[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},bi={label:"% of Production Cost",tooltip:"Description (in progress)",type:"short-number",symbol:"%",cssClass:"text-black-light",decimal:{force:!1,count:12},value:e?.prices?.productionCostYearly?e1(V0[lt.Unit.USD]).div(e?.prices?.productionCostYearly??0)?.toNumber():0},qr={label:"Maximum Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",value:e?.assetViewsTracking?.maxViews??$e.maxViewsForNFT,subItems:{type:"currency",value:0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},Qr={label:"# of Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold "+(e?.assetViewsTracking?.blocked?"red":""),value:e?.assetViewsTracking?.currentViews,parentCssClass:"d-flex-justify-space-between",subItems:"showcase"!==i?{type:"string",cssClass:"btn-primary text-black-light bold white",value:"Buy Views",event:!0,eventType:om.BuyViews}:{}},Zi={label:"Views Remaining",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold",value:(e?.assetViewsTracking?.maxViews??$e.maxViewsForNFT)-(e?.assetViewsTracking?.currentViews??0)},ds=`${e.userAddress?.substring(0,10)}....${e.userAddress?.substring(e.userAddress?.length-10)}`,Ta={label:"Forever Storage Royalty",tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`${ds} (${r.baseRoyalty}%)`},Wr={label:"Bandwidth Royalty",tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${e.assetTransactionWithRelations?.map(Ji=>Ji.from===e.userAddress?`${Ji.from?.substring(0,10)}....${Ji.from?.substring(Ji.from?.length-10)} (2.5%)`:`${Ji.from?.substring(0,10)}....${Ji.from?.substring(Ji.from?.length-10)} (2.5%)`)?.toString()?.replaceAll(",","")}
`};return{asset:he,totalSupply$:st,serialNumber$:nt,mintPrice$:a,value$:s,type$:{label:"Transaction Type",tooltip:"Description (in progress)",type:"string",value:"Mint",cssClass:"text-black-light"},cloudSpaceFees$:h,status$:x,timeStamp$:S,blockTime$:L,feeSurge$:l,blockspaceFee$:u,burntFee$:M,from$:g,to$:_,nonce$:X,signature$:H,transId$:y,blockId$:z,contractId:xe,incentiveId:Ut,distributionId:qe,royaltiesId:ke,payPerViewId:Ge,tokenId$:{label:"Token ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"1x12345"},assetId:fe,appId:{label:"App ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"STORE Explorer (1x12345)"},assetSize:Oe,foreeverStoreOn:ie,governedBy:ee,incentivizedBy:ce,chain:{label:"Blockchain",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",value:"STORE",valueIcon:"store-logo-only"},cloud:{label:"Cloud",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",valueIcon:"store-logo-only",value:"STORE"},totalPrice$:l1,ipfsId:Tn,storeId$:Sn,owner$:to,redundancy$:{label:"Redundancy",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"5 copies in 5 locations (99.99999999%)"},bft$:{label:"BFT",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"3f + 1",link:"https://medium.com/codechain/why-n-3f-1-in-the-byzantine-fault-tolerance-system-c3ca6bab8fe9",externalLink:!0,withOutIdLink:!0,subItems:{type:"string",cssClass:"text-black-light",value:"Byzantine Fault Tolerant"}},costOfCompute:Or,productionCostPercentage:bi,maxViewsData$:qr,viewsData$:Qr,metaDataGroup:new Zv(r.sharedStatsService).prepareContractOptions(e),remainingViewsData$:Zi,forverStorageRoyalty$:Ta,bandwidthRoyalty$:Wr,aIandAttributionGroup:new Zv(r.sharedStatsService).prepareAIAttributionOptions(e),humanAttributionGroup:new Zv(r.sharedStatsService).prepareHumanAttributionOptions(e)}})()}bindETHTransactionDetail(t,e,o,r){var i=this;return Nt(function*(){const a={label:"Mint Price",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:o?.mintPrice||0,symbol:"STORE",subItems:{type:"currency",value:(o?.mintPrice||0)*e1(i.sharedStatsService.storePrice[lt.Unit.USD])?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},s=e0.from(e?.gasPrice).toNumber(),c=parseFloat(QO((s*e0.from(e.gasUsed).toNumber()).toString())),l={label:"Transaction Fee",tooltip:"Description (in progress)",type:"short-number",valueIcon:"network_icon/ethereum-eth",value:c||0,symbol:"Ether",decimal:{force:!1,count:14},subItems:{type:"currency",value:e?.usdExRate*c||0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},u={label:"Gas Price",tooltip:"Description (in progress)",valueIcon:"network_icon/ethereum-eth",type:"short-number",value:parseFloat(yK(s,"gwei"))||0,symbol:"Gwei",cssClass:"text-black-light",decimal:{force:!1,count:8},subItems:{type:"short-number",value:parseFloat(QO(s))||0,cssClass:"text-light",preSymbol:"(",symbol:"Ether)",decimal:{force:!1,count:14}}},d=i.sharedStatsService.convertUSDIntoRates(o?.fees?.storeCloudVMFee??0),h={label:"Cloudspace Fees",tooltip:"Description (in progress)",valueIcon:"store-logo-only",type:"bit",value:Math.round(d[lt.Unit.USD]?.toNumber())??0,symbol:"bits",cssClass:"text-black-light",subItems:{type:"currency",value:d[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},M={icon:"network_icon/ethereum-eth",label:"NFT Owner",tooltip:"Description (in progress)",type:"hash",value:o.userAddress,link:`${$e.wallet.etherscanURL}/address/${o.userAddress}`,cssClass:"text-black-light",externalLink:!0,copy:!0,...r},g={icon:"network_icon/ethereum-eth",label:"Block ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:e0.from(e?.blockNumber).toBigInt(),link:$e.wallet.etherscanURL+"/block/"+e0.from(e?.blockNumber).toBigInt(),externalLink:!0},_={icon:"network_icon/ethereum-eth",label:"Transaction ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:e?.hash,link:`${$e.wallet.etherscanURL}/tx/${e?.hash}`,externalLink:!0,...r},z={label:"Status",tooltip:"Description (in progress)",type:"string",cssClass:"text-black text-flex-icon",valueIcon:"store-logo-only",value:"Stored Forever",valueTooltip:"Description (in progress)",link:$e.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0},y={label:"Timestamp",tooltip:"Description (in progress)",type:"time",valueIcon:"clock_grey",cssClass:"text-black-light text-flex-icon align-center",value:new Date(1e3*e?.timestamp),disabled:!e?.timestamp,subItems:{type:"date-time",value:new Date(1e3*e?.timestamp),preSymbol:"(",symbol:")",cssClass:"text-black-light d-flex-end"}},x={label:"Forever Stored on",tooltip:"Description (in progress)",type:"string",link:$e.externalURL.explorer_app+"/cloud",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Cloud"},L={label:"Governed by",tooltip:"Description (in progress)",type:"string",link:$e.externalURL.explorer_app+"/governance",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Governance"},S={label:"Incentivized by",tooltip:"Description (in progress)",type:"string",link:$e.externalURL.explorer_app+"/monetary-policy",externalLink:!0,openInExistingTab:!0,cssClass:"text-black-light",value:"STORE Monetary Policy"},X=i.prepareIPFSData(o.ipfsId,r),H={label:"STORE ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:`${$e.externalURL.explorer_app}/ethereum/${t}`,link:`${$e.externalURL.explorer_app}/ethereum/${t}`,externalLink:!0,copy:!0,trimSize:32,trimSizeMobile:20},ie={label:"NFT Asset",tooltip:"Description (in progress)",type:"asset",cssClass:"text-black-light",value:o},ee={label:"Asset Size",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:i.formatBytes.transform(o?.size?.content+o?.size?.metadata)||"00.00 MB"},ce={icon:"network_icon/ethereum-eth",label:"Contract ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:$e.contract.address,externalLink:!0,link:`${$e.wallet.etherscanURL}/address/${$e.contract.address}`,...r},fe={label:"Total Supply",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:o?.supply||1},he={label:"Serial Number",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light gold",preSymbol:`${o?.supplyIndex??1}/`,value:o?.supply||1,disabled:!(o?.supplyIndex>1)},Oe={disabled:!o?.incentive,label:"Incentives ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},xe={disabled:!o?.distribution,label:"Distribution ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},Ue={disabled:!o?.royalty,label:"Royalties ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},st={disabled:!o?.payPerView,label:"Pay-Per-View ID",tooltip:"Description (in progress)",type:"hash",cssClass:"text-black-light",value:"2x4fc3bedf886760edf886760e5f60bb14fc3bedf8",...r},ke=e1(h?.subItems?.value).add(a?.subItems?.value).add(l?.subItems?.value).add(u?.subItems?.value),vt={label:"Total Cost",tooltip:"Description (in progress)",type:"store-currency",valueIcon:"store-logo-only",value:i.sharedStatsService.convertUSDIntoRates(ke?.toNumber())[lt.Unit.STORE]?.toNumber(),symbol:"STORE",subItems:{type:"currency",value:ke?.toString(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},Gt=i.sharedStatsService.convertUSDIntoRates(5621204618e-14),E0={label:"Production Cost",tooltip:"Description (in progress)",cssClass:"text-black-light",type:"bit",valueIcon:"store-logo-only",value:Math.round(Gt[lt.Unit.BITS]?.toNumber())??0,symbol:"bits",subItems:{type:"currency",value:Gt[lt.Unit.USD]?.toNumber(),cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},l1=e1(Gt[lt.Unit.USD]).div(o?.prices?.productionCostYearly)?.toNumber(),Tn={label:"% of Production Cost",tooltip:"Description (in progress)",type:"short-number",cssClass:"text-black-light",symbol:"%",decimal:{force:!1,count:12},value:l1},Sn={label:"Maximum Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light",value:o?.assetViewsTracking?.maxViews??$e.maxViewsForNFT,subItems:{type:"currency",value:0,cssClass:"text-light",preSymbol:"(",symbol:"USD)"}},to={label:"# of Views",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold "+(o?.assetViewsTracking?.blocked?"red":""),value:o?.assetViewsTracking?.currentViews,parentCssClass:"d-flex-justify-space-between",subItems:{type:"string",cssClass:"btn-primary light-radius text-black-light bold white",value:"Buy Views",event:!0,eventType:om.BuyViews}},sn={label:"Views Remaining",tooltip:"Description (in progress)",type:"number",cssClass:"text-black-light bold",value:(o?.assetViewsTracking?.maxViews??$e.maxViewsForNFT)-(o?.assetViewsTracking?.currentViews??0)},q0={label:"Token ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:e?.tokenId,link:`${$e.wallet.etherscanURL}/token/${e?.to}?a=${e?.tokenId}`,openInExistingTab:!1,externalLink:!0},V0=`${o.userAddress?.substring(0,10)}....${o.userAddress?.substring(o.userAddress?.length-10)}`;return{asset:ie,totalSupply$:fe,serialNumber$:he,mintPrice$:a,fee$:l,cloudSpaceFees$:h,status$:z,timeStamp$:y,gasPrice$:u,owner$:M,transId$:_,blockId$:g,contractId:ce,incentiveId:Oe,distributionId:xe,royaltiesId:Ue,payPerViewId:st,storeId$:H,ipfsId:X,appId:{label:"App ID",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"STORE Explorer (1x00001)"},assetSize:ee,foreeverStoreOn:x,governedBy:L,incentivizedBy:S,chain:{label:"Blockchain",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",value:"Ethereum",valueIcon:"network_icon/ethereum-eth"},cloud:{label:"Cloud",tooltip:"Description (in progress)",type:"string",cssClass:"text-black",valueIcon:"store-logo-only",value:"STORE"},totalPrice$:vt,redundancy$:{label:"Redundancy",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"5 copies in 5 locations (99.99999999%)"},bft$:{label:"BFT",tooltip:"Description (in progress)",type:"string",cssClass:"text-black-light",value:"3f + 1",link:"https://medium.com/codechain/why-n-3f-1-in-the-byzantine-fault-tolerance-system-c3ca6bab8fe9",externalLink:!0,withOutIdLink:!0,subItems:{type:"string",cssClass:"text-black-light",value:"Byzantine Fault Tolerant"}},costOfCompute:E0,productionCostPercentage:Tn,maxViewsData$:Sn,viewsData$:to,tokenId$:q0,remainingViewsData$:sn,forverStorageRoyalty$:{label:"Forever Storage Royalty",tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`${V0} (${i.baseRoyalty}%)`},bandwidthRoyalty$:{label:"Bandwidth Royalty",tooltip:"Description (in progress)",type:"html",cssClass:"text-black-light",value:`
${o.assetTransactionWithRelations?.map(Qr=>`\n ${Qr.from?.substring(0,10)}....${Qr.from?.substring(Qr.from?.length-10)} (2.5%)`)?.toString()?.replaceAll(",","")}
`},aIandAttributionGroup:new Zv(i.sharedStatsService).prepareAIAttributionOptions(o),humanAttributionGroup:new Zv(i.sharedStatsService).prepareHumanAttributionOptions(o)}})()}getEthTransactionById(t){var e=this;return Nt(function*(){const o=yield e.getETH_TransactionReceiptByHashFromEtherscan(t);if(!o)return{eth_txn:null,eth_txnRecpt:null};const r=yield e.getETH_TransactionByHashFromEtherscan(t);if(!r)return{eth_txn:null,eth_txnRecpt:null};const i=yield e.getETH_BlockByNoFromEtherscan(r?.blockNumber?.toString()),s=(yield e.sharedStatsService.getEtherPrice())||0,c=m5e.decode(["string","string","string"],Ca(r?.input,4));return r&&(r.timestamp=e0.from(i?.timestamp).toNumber(),r.usdExRate=s,r.gasUsed=o?.gasUsed,r.data=c,r.logs=o?.logs,r.tokenId=e0.from(o?.logs?.[0]?.topics?.[3]).toNumber()),{eth_txn:r,eth_txnRecpt:o}})()}getMetaData(t,e,o){var r=this;return Nt(function*(){const i=yield r.getFromIPFS(e),a=yield r.bandwidthFundedData(t);return i.ipfsId=e,i.storeId=t,i.userAddress=o,i.assetTransactionWithRelations=a,{metadata:i,storeId:t}})()}getFromIPFS(t){var e=this;return Nt(function*(){const o=`${$e.ipfs.main_url}/${t}?x-ipfs-companion-no-redirect`;return yield tr(e.http.get(o))})()}prepareIPFSData(t,e={}){const o=(r,i)=>({type:"hash",cssClass:"text-black-light d-flex-column",preSymbolCssClass:"mr-minus-0",preSymbol:`IPFS Server ${r}: `,value:` ${i}/${t}`,link:`${i}/${t}`,externalLink:!0,copy:!0,trimSize:40,trimSizeMobile:36});return{label:"IPFS ID",tooltip:"Description (in progress)",direction:"column",...o(1,$e.ipfs.astore_url),subItems:{...o(2,$e.ipfs.bstore_url),subItems:{...o(3,$e.ipfs.cstore_url),subItems:{...o(4,$e.ipfs.dstore_url),subItems:{...o(5,$e.ipfs.estore_url)}}}}}}bandwidthFundedData(t){var e=this;return Nt(function*(){return e.assetTransactionHistoryControllerService.find({filter:{"filter[where][or][0][type]":Qn.Type.BanwidthFunded,"filter[where][assetId]":t,"filter[fields][0]":"from"}}).toPromise()})()}},mM.\u0275fac=function(t){return new(t||mM)(Se(G0),Se(Hs),Se(F8))},mM.\u0275prov=ot({token:mM,factory:mM.\u0275fac}),mM);TP=Ke([h0()],TP);const Kv=new U(At),q5e={connector:()=>new N};function VK(n,t=q5e){const{connector:e}=t;return mt((o,r)=>{const i=e();D0(n(function x5e(n){return new U(t=>n.subscribe(t))}(i))).subscribe(r),r.add(o.subscribe(i))})}const Y8="Service workers are disabled or not supported by this browser";class $K{constructor(t){if(this.serviceWorker=t,t){const o=cp(t,"controllerchange").pipe($(()=>t.controller)),i=Lg(I_(()=>ve(t.controller)),o);this.worker=i.pipe(zt(u=>!!u)),this.registration=this.worker.pipe(ui(()=>t.getRegistration()));const l=cp(t,"message").pipe($(u=>u.data)).pipe(zt(u=>u&&u.type)).pipe(function L5e(n){return n?t=>VK(n)(t):t=>function W5e(n,t){const e=m(n)?n:()=>n;return m(t)?VK(t,{connector:e}):o=>new RL(o,e)}(new N)(t)}());l.connect(),this.events=l}else this.worker=this.events=this.registration=function T5e(n){return I_(()=>rh(new Error(n)))}(Y8)}postMessage(t,e){return this.worker.pipe($l(1),Xo(o=>{o.postMessage({action:t,...e})})).toPromise().then(()=>{})}postMessageWithOperation(t,e,o){const r=this.waitForOperationCompleted(o),i=this.postMessage(t,e);return Promise.all([i,r]).then(([,a])=>a)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){let e;return e="string"==typeof t?o=>o.type===t:o=>t.includes(o.type),this.events.pipe(zt(e))}nextEventOfType(t){return this.eventsOfType(t).pipe($l(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(zt(e=>e.nonce===t),$l(1),$(e=>{if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let R5e=(()=>{class n{get isEnabled(){return this.sw.isEnabled}constructor(e){if(this.sw=e,!e.isEnabled)return this.versionUpdates=Kv,this.available=Kv,this.activated=Kv,void(this.unrecoverable=Kv);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe(zt(o=>"VERSION_READY"===o.type),$(o=>({type:"UPDATE_AVAILABLE",current:o.currentVersion,available:o.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Y8));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:e},e)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Y8));const e=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:e},e)}}return n.\u0275fac=function(e){return new(e||n)(Se($K))},n.\u0275prov=ot({token:n,factory:n.\u0275fac}),n})();var _M,rm;let KK=(_M=class{constructor(t,e,o){if(this._swUpdate=t,this.toastService=e,console.log("%c Update service is running...","color: green; font-weight: 500;"),this._swUpdate?.isEnabled){console.log("%c Service worker enabled","color: orange; font-weight: 500;");const r=o?.isStable?.pipe(iu(s=>!0===s));Lg(r,BD(216e5).pipe(zC(0))).pipe(at(this)).subscribe(()=>{console.log("%c Checks for updates...","color: blue; font-weight: 500;"),this._swUpdate.checkForUpdate().then(()=>console.log("%c Finish checking for updates...","color: blue; font-weight: 500;"))})}else console.log("%c No service worker allow","color: red; font-weight: 500;")}subscribeForUpdates(){this._swUpdate?.available?.pipe(at(this)).subscribe(t=>{this.showAppUpdateAlert()})}showAppUpdateAlert(){this.toastService.show(H8,{autoClose:!1,dismissible:!0,position:"bottom-right",className:"black-bg"}).afterClosed.subscribe(e=>{this._swUpdate.activateUpdate().then(()=>document.location.reload())})}},_M.\u0275fac=function(t){return new(t||_M)(Se(R5e),Se(Wd),Se(C2))},_M.\u0275prov=ot({token:_M,factory:_M.\u0275fac}),_M);KK=Ke([h0()],KK);let H8=(rm=class{constructor(t){this.toastRef=t}},rm.\u0275fac=function(t){return new(t||rm)(Te(v8,8))},rm.\u0275cmp=kt({type:rm,selectors:[["app-update-component"]],decls:7,vars:0,consts:[[3,"click"]],template:function(t,e){1&t&&(p(0,"\n "),v(1,"div"),p(2,"\n We've improved!\n "),v(3,"a",0),yt("click",function(){return e.toastRef.close({dismissedByAction:!0})}),p(4,"\n Click here to refresh."),A(),p(5,"\n "),A(),p(6,"\n "))},styles:[".black-bg[_ngcontent-%COMP%]{background:var(--bg-gradient, linear-gradient(to right, #1e1e20, #38415d))}div[_ngcontent-%COMP%]{font-size:1.4rem;color:#888;cursor:pointer}div[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1db0a9}"]}),rm);var zM;H8=Ke([h0({checkProperties:!0})],H8);let JK=(zM=class{constructor(t,e){this.sharedStatsService=t,this.http=e,this.blockMinersList$=null,this.cloudMinersList$=null,this.blockMinersRequirement$=null,this.cloudMinersRequirement$=null,this.storeChainTechnicalDetails$=null,this.blockMinerEconomicsAndGovernance$=null,this.cloudMinerEconomicsAndGovernance$=null,this.blockMinerAndCloudMinerSharedInfrasInfo$=null,this.otherInfraInfo$=null,this.trendChart$={title:"TRANSACTION HISTORY",type:"transaction",yAxisName:"# of Transactions",tooltip:"Description (in progress)"},this.bindBlockMinersList(),this.bindCloudMinersList(),this.bindBlockMinersRequirements(),this.bindCloudMinersRequirements(),this.bindStoreChainTechnicalDetails(),this.bindBlockMinerEconomicsAndGovernance(),this.bindCloudMinerEconomicsAndGovernance(),this.bindBlockMinerAndCloudMinerSharedInfrasInfo(),this.bindOtherInfraInfo()}getBlockMinersList(){return this.http.get("/consensus/blockminers").pipe(at(this),$(t=>t?.data))}getCloudMinersList(){return this.http.get("/consensus/cloudminer").pipe(at(this),$(t=>t?.data))}bindBlockMinersList(){this.blockMinersList$={title:"BLOCK MINERS",type:"miner",pageSize:8,columns:[{key:"minerId",label:"Miner ID",type:"string",tooltip:"Block Miner ID",width:"140px"},{key:"minerKey",label:"Block Miner Key",type:"hash",trimSize:40,tooltip:"Block Miner Key"},{key:"transactionsProcessed",label:"TXNs Confirmed",type:"number",cssClass:"align-right",width:"200px"}],data$:this.getBlockMinersList()}}bindCloudMinersList(){this.cloudMinersList$={title:"CLOUD MINERS",type:"miner",pageSize:8,columns:[{key:"minerId",label:"Miner ID",type:"string",tooltip:"Cloud Miner ID",width:"140px"},{key:"minerKey",label:"Cloud Miner Key",type:"hash",trimSize:40,trimSizeMobile:20,tooltip:"Cloud Miner Key"},{key:"transactionsProcessed",label:"TXNs Confirmed",type:"number",cssClass:"align-right",width:"200px"}],data$:this.getCloudMinersList()}}bindBlockMinersRequirements(){const t=ve({label:"TYPE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"PRIMARY",type:"string",inlineSubItems:!0,subItems:{value:"PROXY",type:"string",cssClass:"text-black",subItems:{value:"NGINIX",type:"string",cssClass:"text-black"}}}),e=ve({label:"COMPUTE",tooltip:"Description (in progress)",inlineTooltip:!0,value:8,type:"number",symbol:"vCPUS",inlineSubItems:!0,subItems:{value:12,type:"number",symbol:"vCPUS",cssClass:"text-black",subItems:{value:8,type:"number",symbol:"vCPUS",cssClass:"text-black"}}}),o=ve({label:"RAM",tooltip:"Description (in progress)",inlineTooltip:!0,value:8,type:"number",symbol:"GB",inlineSubItems:!0,subItems:{value:8,type:"number",symbol:"GB",cssClass:"text-black",subItems:{value:4,type:"number",symbol:"GB",cssClass:"text-black"}}}),r=ve({label:"STORAGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:1,type:"number",symbol:"TB SSD",inlineSubItems:!0,subItems:{value:1,type:"number",symbol:"TB SSD",cssClass:"text-black",subItems:{value:.5,type:"number",symbol:"TB SSD",cssClass:"text-black"}}}),i=ve({label:"BANDWIDTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"2x 1 GbE",type:"string",inlineSubItems:!0,subItems:{value:"2x 1 GbE",type:"string",cssClass:"text-black",subItems:{value:"2x 1 GbE",type:"string",cssClass:"text-black"}}}),a=ve({label:"REPLICAS",tooltip:"Description (in progress)",inlineTooltip:!0,value:2,type:"string",inlineSubItems:!0,subItems:{value:5,type:"string",cssClass:"text-black",subItems:{value:2,type:"string",cssClass:"text-black"}}});this.blockMinersRequirement$={title:"BLOCK MINER INFRASTRUCTURE REQUIREMENTS",tooltip:"Description (in progress)",items$:[t,e,o,r,i,a]}}bindCloudMinersRequirements(){const t=ve({label:"TYPE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"PRIMARY",type:"string",inlineSubItems:!0,subItems:{value:"PROXY",type:"string",cssClass:"text-black",subItems:{value:"NGINIX",type:"string",cssClass:"text-black"}}}),e=ve({label:"COMPUTE",tooltip:"Description (in progress)",inlineTooltip:!0,value:8,type:"number",symbol:"vCPUS",inlineSubItems:!0,subItems:{value:16,type:"number",symbol:"vCPUS",cssClass:"text-black",subItems:{value:4,type:"number",symbol:"vCPUS",cssClass:"text-black"}}}),o=ve({label:"RAM",tooltip:"Description (in progress)",inlineTooltip:!0,value:8,type:"number",symbol:"GB",inlineSubItems:!0,subItems:{value:16,type:"number",symbol:"GB",cssClass:"text-black",subItems:{value:4,type:"number",symbol:"GB",cssClass:"text-black"}}}),r=ve({label:"STORAGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:1,type:"number",symbol:"TB SSD",inlineSubItems:!0,subItems:{value:1,type:"number",symbol:"TB SSD",cssClass:"text-black",subItems:{value:.5,type:"number",symbol:"TB SSD",cssClass:"text-black"}}}),i=ve({label:"BANDWIDTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"2x 1 GbE",type:"string",inlineSubItems:!0,subItems:{value:"2x 1 GbE",type:"string",cssClass:"text-black",subItems:{value:"2x 1 GbE",type:"string",cssClass:"text-black"}}}),a=ve({label:"REPLICAS",tooltip:"Description (in progress)",inlineTooltip:!0,value:2,type:"string",inlineSubItems:!0,subItems:{value:5,type:"string",cssClass:"text-black",subItems:{value:2,type:"string",cssClass:"text-black"}}});this.cloudMinersRequirement$={title:"CLOUD MINER INFRASTRUCTURE REQUIREMENTS",tooltip:"Description (in progress)",items$:[t,e,o,r,i,a]}}bindBlockMinerEconomicsAndGovernance(){const t=this.sharedStatsService.getStorePrice().pipe(at(this),$(r=>({label:"EST. MONTHLY INFRA COSTS",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",type:"string",symbolPosition:"after",symbol:"($00.00)",symbolCssClass:"text-light"}))),e=this.sharedStatsService.getStorePrice().pipe(at(this),$(r=>({label:"SHARE OF REVENUES",tooltip:"Description (in progress)",inlineTooltip:!0,value:"TO BE VOTED ON",type:"string"}))),o=this.sharedStatsService.getStorePrice().pipe(at(this),$(r=>({label:"GOVERNANCE VOTES",tooltip:"Description (in progress)",inlineTooltip:!0,value:"NONE",type:"string"})));this.blockMinerEconomicsAndGovernance$={title:"BLOCK MINER ECONOMICS AND GOVERNANCE",tooltip:"Description (in progress)",items$:[t,e,o]}}bindCloudMinerEconomicsAndGovernance(){const t=this.sharedStatsService.getStorePrice().pipe(at(this),$(r=>({label:"EST. MONTHLY INFRA COSTS",tooltip:"Description (in progress)",inlineTooltip:!0,valueIcon:"store-logo-only",value:"00.00",type:"string",symbolPosition:"after",symbol:"($00.00)",symbolCssClass:"text-light"}))),e=this.sharedStatsService.getStorePrice().pipe(at(this),$(r=>({label:"SHARE OF REVENUES",tooltip:"Description (in progress)",inlineTooltip:!0,value:"65% AT LAUNCH",type:"string"}))),o=this.sharedStatsService.getStorePrice().pipe(at(this),$(r=>({label:"GOVERNANCE VOTES",tooltip:"Description (in progress)",inlineTooltip:!0,value:"1 AT LAUNCH",type:"string"})));this.cloudMinerEconomicsAndGovernance$={title:"CLOUD MINER ECONOMICS AND GOVERNANCE",tooltip:"Description (in progress)",items$:[t,e,o]}}bindBlockMinerAndCloudMinerSharedInfrasInfo(){const t=this.sharedStatsService.getStorePrice().pipe(at(this),$(s=>({label:"TYPE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"REPLICA",type:"string"}))),e=this.sharedStatsService.getStorePrice().pipe(at(this),$(s=>({label:"COMPUTE",tooltip:"Description (in progress)",inlineTooltip:!0,value:64,symbol:"vCPUS",type:"string"}))),o=this.sharedStatsService.getStorePrice().pipe(at(this),$(s=>({label:"RAM",tooltip:"Description (in progress)",inlineTooltip:!0,value:128,type:"number",symbol:"GB"}))),r=this.sharedStatsService.getStorePrice().pipe(at(this),$(s=>({label:"STORAGE",tooltip:"Description (in progress)",inlineTooltip:!0,value:4,type:"number",symbol:"TB SSD"}))),i=this.sharedStatsService.getStorePrice().pipe(at(this),$(s=>({label:"BANDWIDTH",tooltip:"Description (in progress)",inlineTooltip:!0,value:"2x 40 GbE",type:"string"}))),a=this.sharedStatsService.getStorePrice().pipe(at(this),$(s=>({label:"REPLICAS",tooltip:"Description (in progress)",inlineTooltip:!0,value:5,type:"string"})));this.blockMinerAndCloudMinerSharedInfrasInfo$={title:"BLOCK MINER AND CLOUD MINER SHARED INFRASTRUCTURE REQUIREMENTS",tooltip:"Description (in progress)",items$:[t,e,o,r,i,a]}}bindOtherInfraInfo(){const t=this.sharedStatsService.getStorePrice().pipe(at(this),$(e=>({label:"",tooltip:"Description (in progress)",inlineTooltip:!0,value:"Each miner has a primary instance and a proxy Instance. The proxy server sits next to the database replica. As STORE grows, through governance, miners vote to upgrade infrastructure , expand to new data centers, and add more nodes. As demand for STORE apps grow, it\u2019s likely that Edge miners emerge.",cssClass:"text-light infra-info-text",type:"string"})));this.otherInfraInfo$={title:"OTHER INFRASTRUCTURE INFORMATION",tooltip:"Description (in progress)",items$:[t]}}bindStoreChainTechnicalDetails(){const t=this.sharedStatsService.getStorePrice().pipe(at(this),$(c=>({label:"MINIMUM BFT",tooltip:"Description (in progress)",inlineTooltip:!0,value:"N = 3F + 1",type:"string"}))),e=this.sharedStatsService.getStorePrice().pipe(at(this),$(c=>({label:"MINER SIGNATURES REQUIRED",tooltip:"Description (in progress)",inlineTooltip:!0,value:"2/3+",type:"string"}))),o=this.sharedStatsService.getStorePrice().pipe(at(this),$(c=>({label:"TIME-TO-FINALITY",tooltip:"Description (in progress)",inlineTooltip:!0,value:c,symbol:"ms",type:"number"}))),r=this.sharedStatsService.getStorePrice().pipe(at(this),$(c=>({label:"LATENCY",tooltip:"Description (in progress)",inlineTooltip:!0,value:c,type:"number",symbol:"ms"}))),i=this.sharedStatsService.getStorePrice().pipe(at(this),$(c=>({label:"TPS CAPACITY",tooltip:"Description (in progress)",inlineTooltip:!0,value:c,type:"number"}))),a=this.sharedStatsService.getStorePrice().pipe(at(this),$(c=>({label:"DATABASE SIZE",tooltip:"Description (in progress)",inlineTooltip:!0,value:"0.000",symbol:"GB",type:"string"}))),s=this.sharedStatsService.getStorePrice().pipe(at(this),$(c=>({label:"DATABASE COPIES",tooltip:"Description (in progress)",inlineTooltip:!0,value:5,type:"number",symbolPosition:"after",symbol:"(99.99999999%)",symbolCssClass:"text-light"})));this.storeChainTechnicalDetails$={title:"STORE CHAIN TECHNICAL DETAILS",tooltip:"Description (in progress)",items$:[t,e,o,r,i,a,s]}}},zM.\u0275fac=function(t){return new(t||zM)(Se(Hs),Se(G0))},zM.\u0275prov=ot({token:zM,factory:zM.\u0275fac}),zM);var im;function S5e(n,t){if(1&n&&Me(0,"storecloud-tooltip",19),2&n){const e=le(3);D("tooltip",null==e.table$?null:e.table$.tooltip)}}JK=Ke([h0()],JK);const D5e=function(){return{class:"card-desktop"}};function k5e(n,t){if(1&n&&(v(0,"div",15),p(1,"\n "),v(2,"p",16),p(3),Q(4,S5e,1,1,"storecloud-tooltip",17),p(5,"\n "),A(),p(6,"\n "),Ye(7,18),p(8,"\n "),He(),p(9,"\n "),A()),2&n){const e=le(2),o=Ot(47);q(3),Rt("\n ",null==e.table$?null:e.table$.title,"\n "),q(1),D("ngIf",null==e.table$?null:e.table$.tooltip),q(3),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Et(4,D5e))}}function E5e(n,t){if(1&n&&Me(0,"storecloud-shared-table-pagination",20),2&n){const e=le(2);D("tableService",e.tableService)("total$",e.total$)}}function N5e(n,t){if(1&n&&(v(0,"div",12),p(1,"\n "),Q(2,k5e,10,5,"div",13),p(3,"\n "),Q(4,E5e,1,2,"storecloud-shared-table-pagination",14),p(5,"\n "),A()),2&n){const e=le();q(2),D("ngIf",null==e.table$?null:e.table$.title),q(2),D("ngIf",!(null!=e.table$&&e.table$.disablePagination))}}function I5e(n,t){if(1&n&&(v(0,"storecloud-tooltip",19),p(1," "),A()),2&n){const e=le(2).$implicit;D("tooltip",null==e?null:e.tooltip)}}function B5e(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"span"),p(3),Q(4,I5e,2,1,"storecloud-tooltip",17),p(5,"\n "),A(),p(6,"\n "),He()),2&n){const e=le().$implicit;q(3),Rt("",null==e?null:e.label,"\n "),q(1),D("ngIf",null==e?null:e.tooltip)}}function F5e(n,t){if(1&n&&(Ye(0),p(1),He()),2&n){const e=le().$implicit;q(1),Rt("\n ",null==e?null:e.label,"\n ")}}const Y5e=function(n){return{width:n}};function H5e(n,t){if(1&n){const e=b1();v(0,"th",21),yt("sort",function(r){return T0(e),v0(le().onSort(r))}),p(1,"\n "),Q(2,B5e,7,2,"ng-container",8),p(3,"\n "),Q(4,F5e,2,1,"ng-container",8),p(5,"\n "),A()}if(2&n){const e=t.$implicit;Yc(null==e?null:e.cssClass),Wo("sortable",null==e?null:e.key),D("ngStyle",Ht(7,Y5e,(null==e?null:e.width)||"auto")),q(2),D("ngIf",null==e?null:e.tooltip),q(2),D("ngIf",!(null!=e&&e.tooltip))}}const X5e=function(n,t,e){return{height:n,stateCount:t,icon:e}},X8=function(n){return{setting:n}};function j5e(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,18),p(3,"\n "),He()),2&n){const e=le().$implicit,o=le(),r=Ot(41);q(2),D("ngTemplateOutlet",r)("ngTemplateOutletContext",Ht(6,X8,NI(2,X5e,null==o.table$?null:o.table$.loadingHeight,null==e?null:e.stateCount,null==e?null:e.icon)))}}function U5e(n,t){if(1&n&&Me(0,"storecloud-shared-value-formatter",26),2&n){const e=le().$implicit;D("item",e)("cssClass",null==e?null:e.cssClass)("iconSize",14)}}function V5e(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,U5e,1,3,"storecloud-shared-value-formatter",25),p(3,"\n "),He()),2&n){const e=t.$implicit;q(2),D("ngIf",e)}}function $5e(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"td"),p(3,"\n "),v(4,"div",23),p(5,"\n "),v(6,"storecloud-shared-value-formatter",24),p(7,"\n "),A(),p(8,"\n "),Q(9,V5e,4,1,"ng-container",22),p(10,"\n "),A(),p(11,"\n "),A(),p(12,"\n "),He()),2&n){const e=t.$implicit,o=le(2).$implicit,r=le();let i;q(2),sd("",null==e?null:e.cssClass," ",null==e?null:e.type,""),q(4),D("item",r.prepareItem(e,o[null==e?null:e.key]))("iconSize",null!==(i=null==o[null==e?null:e.key]?null:o[null==e?null:e.key].valueIconSize)&&void 0!==i?i:14),q(3),D("ngForOf",r.getAllSubItems(r.prepareItem(e,o[null==e?null:e.key])))}}function G5e(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,$5e,13,7,"ng-container",22),p(3,"\n "),He()),2&n){const e=le(2);q(2),D("ngForOf",null==e.table$?null:e.table$.columns)}}function Z5e(n,t){if(1&n&&(v(0,"tr"),p(1,"\n "),Q(2,j5e,4,8,"ng-container",8),p(3,"\n "),Q(4,G5e,4,1,"ng-container",8),p(5,"\n "),A()),2&n){const e=t.$implicit;q(2),D("ngIf",null==e?null:e.stateCount),q(2),D("ngIf",!(null!=e&&e.stateCount))}}const QK=function(n){return{height:n}};function K5e(n,t){if(1&n&&(v(0,"td",28),p(1,"\n "),m0(2,18),p(3,"\n "),A()),2&n){const e=le(3),o=Ot(44);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(4,X8,Ht(2,QK,null==e.table$?null:e.table$.loadingHeight)))}}function J5e(n,t){if(1&n&&(v(0,"tr"),p(1,"\n "),Q(2,K5e,4,6,"td",27),p(3,"\n "),A()),2&n){const e=le(2);q(2),D("ngForOf",null==e.table$?null:e.table$.columns)("ngForTrackBy",e.trackByFuntion)}}function Q5e(n,t){if(1&n&&(v(0,"tbody"),p(1,"\n "),Q(2,J5e,4,2,"tr",22),p(3,"\n "),A()),2&n){const e=le();q(2),D("ngForOf",e.convertPageSizeIntoArray(null==e.tableService?null:e.tableService.pageSize))}}function ewe(n,t){1&n&&(v(0,"tbody"),p(1,"\n "),v(2,"tr"),p(3,"\n "),v(4,"td",29),p(5,"No record exist"),A(),p(6,"\n "),A(),p(7,"\n "),A())}function twe(n,t){if(1&n&&(v(0,"div",34),p(1,"\n "),Me(2,"storecloud-icon",35),p(3,"\n "),A()),2&n){const e=le(2).setting;q(2),D("icon",null==e?null:e.icon)("size",18)}}function nwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Ye(2,18),p(3,"\n "),He(),p(4,"\n "),He()),2&n){const e=le(3),o=Ot(44);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(4,X8,Ht(2,QK,null==e.table$?null:e.table$.loadingHeight)))}}function owe(n,t){if(1&n&&(v(0,"td",32),p(1,"\n "),Q(2,twe,4,2,"div",33),p(3,"\n "),Q(4,nwe,5,6,"ng-container",8),p(5,"\n "),A()),2&n){const e=t.index;q(2),D("ngIf",0===e),q(2),D("ngIf",e>0)}}function rwe(n,t){if(1&n&&(p(0,"\n "),Ye(1,30),p(2,"\n "),Q(3,owe,6,2,"td",31),p(4,"\n "),He(),p(5,"\n")),2&n){const e=le();q(3),D("ngForOf",null==e.table$?null:e.table$.columns)("ngForTrackBy",e.trackByFuntion)}}const iwe=function(){return{display:"contents"}},awe=function(n){return{"margin-top":"5px","margin-bottom":"5px",height:n}};function swe(n,t){if(1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",36),p(2,"\n")),2&n){const e=t.setting;q(1),D("ngStyle",Et(2,iwe))("theme",Ht(3,awe,((null==e?null:e.height)||29.5)+"px"))}}function cwe(n,t){if(1&n&&(v(0,"storecloud-shared-table-status-filter",38),p(1,"\n "),A()),2&n){const e=le().class,o=le();Yc(e),D("tableService",o.tableService)("filter",null==o.table$?null:o.table$.filters)}}function lwe(n,t){if(1&n&&(p(0,"\n "),Q(1,cwe,2,5,"storecloud-shared-table-status-filter",37),p(2,"\n")),2&n){const e=le();q(1),D("ngIf","status"===(null==e.table$||null==e.table$.filters?null:e.table$.filters.type))}}const pwe=function(n){return{card:n}};let vM=(im=class{set refresh$(t){t.pipe(at(this)).subscribe(e=>{if((e.state===Qn.State.Requested||e.state===Qn.State.Block_Added||e.state===Qn.State.Network_Updated)&&("block"===this.table$?.type||"transaction"===this.table$?.type)&&e?.count&&1===this.tableService?.page){const o=this.putIntoStateChangeLoading(this.table$?.type,e);this.result=o}this.tableService&&e.state===Qn.State.Completed&&(this.tableService.disableResetData=e?.disableLoading||!1,this.tableService.searchTerm="")})}set data$(t){t?.pipe(at(this)).subscribe(e=>{this.result=e,this.tableService&&0===e.length&&(this.tableService.loading=!1)})}set table$(t){this._table$=t,this.tableService=new A8(this.http,t?.data$,t?.serviceAPIUrl,t?.map),this.tableService.pageSize=t?.pageSize||8,this.tableService.data$.pipe(at(this)).subscribe(e=>{this.tableService&&(this.tableService.disableResetData=!1),this.result=e}),this.total$=this.tableService.numOfPages$.pipe(at(this))}get table$(){return this._table$}constructor(t){this.http=t,this.tableCssClass=null,this.disabledCardClass=!1,this.total$=null,this._table$=null}trackByFuntion(t,e){return e?.from??e?.to??t?.id}prepareItem(t,e){return"progress-status"===t?.type||"block-status"===t?.type?{type:t?.type,value:e}:"custom-col"===t?.type?{...t,...e,link:t?.link||e?.link?t?.withOutIdLink?t?.valueLink?e?.value:t?.link||e?.link:`${t?.link||e?.link}/${e?.value}`:null}:{...t,value:e,link:t?.link?t?.withOutIdLink?t?.valueLink?e:t?.link:`${t?.link}/${e}`:null}}onSort({}){}convertPageSizeIntoArray(t){return Array(t??8).fill(!0)}getAllSubItems(t){return this.getAllSubItemsChildren(t)}getAllSubItemsChildren(t){const e=[],o=t?.subItems;if(e.push(o),o?.subItems){const r=this.getAllSubItemsChildren(o);e.push(...r)}return e}putIntoStateChangeLoading(t,e){let o=this.result||[];const r=o?.length||0;o=e?.state===Qn.State.Requested?o?.slice(0,r-(e?.count?.[t]&&e?.count?.[t]>r?r:e?.count?.[t]||0)):o?.filter(c=>!c?.stateCount);const a=e?.count?.[t]>r?r:e?.count?.[t];let s="box_animated";switch(e?.state){case Qn.State.Requested:s="block"===t?"box_animated":"clock_animated";break;case Qn.State.Block_Added:case Qn.State.Network_Updated:s="box_animated"}for(let c=0;c{class n{constructor(){this.cloudSpaceFee={store:0,usd:0}}set size(e){this.calculateGasFee(e)}calculateGasFee(e){const a=e/$e.one$STOREEqualToOneByte,s=a*$e.storePriceUSD;this.cloudSpaceFee.store=a||0,this.cloudSpaceFee.usd=s||0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["storecloud-cloudspace-fee"]],inputs:{size:"size"},decls:29,vars:16,consts:[[1,"cloud-space-fee"],[1,"cloud-space-fee-heading"],[1,"icons",3,"icon","size"],[3,"tooltip","placement"],[1,"cloud-space-fee-desc"]],template:function(e,o){1&e&&(v(0,"div",0),p(1,"\n "),v(2,"div",1),p(3,"\n "),Me(4,"storecloud-icon",2),p(5,"\n "),v(6,"h1"),p(7,"Cloudspace Fee"),A(),p(8,"\n "),Me(9,"storecloud-tooltip",3),p(10,"\n "),A(),p(11,"\n "),v(12,"div",4),p(13,"\n "),Me(14,"storecloud-icon",2),p(15,"\n "),v(16,"h2"),p(17),ut(18,"number"),A(),p(19,"\n "),v(20,"p"),p(21),ut(22,"currency"),A(),p(23,"\n "),v(24,"p"),p(25,"(+1.00x Mint Price)"),A(),p(26,"\n "),A(),p(27,"\n"),A(),p(28,"\n")),2&e&&(q(4),D("icon","store-logo-only")("size",14),q(5),D("tooltip","Description in Progress")("placement","top-start"),q(5),D("icon","store-logo-only")("size",14),q(3),t0(mo(18,8,(null==o.cloudSpaceFee?null:o.cloudSpaceFee.store)||0,"1.4-12")),q(4),Rt("(",ha(22,11,(null==o.cloudSpaceFee?null:o.cloudSpaceFee.usd)||0,"USD","symbol","1.4-12"),")"))},dependencies:[Mr,as,ou,qg],styles:[".cloud-space-fee[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%]{display:flex;align-items:center}.cloud-space-fee[_ngcontent-%COMP%]{padding:12px 35px;border-bottom:1px solid #dcebeb;gap:13px}@media screen and (max-width: 768px){.cloud-space-fee[_ngcontent-%COMP%]{padding:12px 20px}}.cloud-space-fee[_ngcontent-%COMP%] .gradient[_ngcontent-%COMP%]{height:8px;background:#1db0a9}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%]{gap:5px}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:600}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%]{gap:3px}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#888}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:500;color:#111}.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem;padding-top:2px}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.17rem}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.1rem}}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8rem}}@media screen and (max-width: 400px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%]{width:12px}}@media screen and (max-width: 400px) and (max-width: 385px){.cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-heading[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%], .cloud-space-fee[_ngcontent-%COMP%] .cloud-space-fee-desc[_ngcontent-%COMP%] .icons[_ngcontent-%COMP%]{width:10px}}"]}),n})();var am;function uwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,10),p(3,"\n "),He()),2&n){le();const e=Ot(20);q(2),D("ngTemplateOutlet",e)}}const eJ=function(n){return{groupedItems:n}};function dwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),p(2,"\n "),Ye(3,12),p(4,"\n "),He(),p(5,"\n "),He()),2&n){const e=t.ngIf;le(2);const o=Ot(14);q(3),D("ngTemplateOutletContext",Ht(2,eJ,e))("ngTemplateOutlet",o)}}function fwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,dwe,6,4,"ng-container",11),p(3,"\n "),He()),2&n){const e=le(),o=Ot(26);q(2),D("ngIf",null==e.stats$?null:e.stats$.groupedItems)("ngIfElse",o)}}const hwe=function(n){return{groupedItem:n}};function Mwe(n,t){if(1&n&&(Ye(0,12),p(1,"\n "),He()),2&n){const e=le().$implicit;le(2);const o=Ot(17);D("ngTemplateOutletContext",Ht(2,hwe,e))("ngTemplateOutlet",o)}}function bwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,Mwe,2,4,"ng-container",14),p(3,"\n "),He()),2&n){const e=t.$implicit;q(2),D("ngIf",null==e?null:e.name)}}function gwe(n,t){if(1&n&&(p(0,"\n "),Q(1,bwe,4,1,"ng-container",13),p(2,"\n")),2&n){const e=t.groupedItems;q(1),D("ngForOf",e)}}function Owe(n,t){if(1&n&&Me(0,"storecloud-tooltip",19),2&n){const e=le().groupedItem;D("placement","top-end")("tooltip",null==e?null:e.tooltip)}}const tJ=function(n){return{item:n}};function mwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Ye(2,12),p(3,"\n "),He(),p(4,"\n "),He()),2&n){const e=t.ngIf;le(4);const o=Ot(23);q(2),D("ngTemplateOutletContext",Ht(2,tJ,e))("ngTemplateOutlet",o)}}function _we(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,mwe,5,4,"ng-container",11),ut(3,"async"),p(4,"\n "),He()),2&n){const e=t.$implicit;le(3);const o=Ot(26);q(2),D("ngIf",a0(3,2,e))("ngIfElse",o)}}function zwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Ye(2,12),p(3,"\n "),He(),p(4,"\n "),He()),2&n){const e=le(2).groupedItem;le();const o=Ot(14);q(2),D("ngTemplateOutletContext",Ht(2,eJ,null==e?null:e.groupedItems))("ngTemplateOutlet",o)}}function vwe(n,t){if(1&n&&(Ye(0),p(1,"\n\n\n "),Q(2,_we,5,4,"ng-container",13),p(3,"\n\n\n "),Q(4,zwe,5,4,"ng-container",2),p(5,"\n "),He()),2&n){const e=le().groupedItem;q(2),D("ngForOf",null==e?null:e.items$),q(2),D("ngIf",null==e?null:e.groupedItems)}}const Awe=function(){return{enable:!0}};function ywe(n,t){if(1&n){const e=b1();p(0,"\n\n "),v(1,"div",15),yt("click",function(){const i=T0(e).groupedItem;return v0(i.show=!(null!=i&&i.show))}),p(2,"\n "),v(3,"div",16),p(4,"\n "),v(5,"p",17),p(6),A(),p(7,"\n "),Q(8,Owe,1,2,"storecloud-tooltip",18),p(9,"\n "),A(),p(10,"\n "),Ye(11,12),p(12,"\n "),He(),p(13,"\n "),A(),p(14,"\n\n "),v(15,"div"),p(16,"\n "),Q(17,vwe,6,2,"ng-container",2),p(18,"\n "),A(),p(19,"\n")}if(2&n){const e=t.groupedItem,o=le(),r=Ot(32);q(1),sd("basic d-flex-g-14 b-0 clickable group-title-row data-div ",e.show?"active":""," ",e.indent?"indent-level-"+e.indent:"",""),q(5),t0(null==e?null:e.name),q(2),D("ngIf","basic"===o.type&&(null==e?null:e.tooltip)),q(3),D("ngTemplateOutletContext",Et(13,Awe))("ngTemplateOutlet",r),q(4),sd("bb-4 ",null!=e&&e.groupedItems&&null!=e&&e.show?"has-child-items":e.indent?"indent-level-"+e.indent:""," ",null!=e&&e.reverseFlex?"reverse-flex-basis":"",""),q(2),D("ngIf",e.show)}}function Cwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),m0(2,12),p(3,"\n "),He()),2&n){const e=t.ngIf;le(3);const o=Ot(23);q(2),D("ngTemplateOutletContext",Ht(2,tJ,e))("ngTemplateOutlet",o)}}function wwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,Cwe,4,4,"ng-container",11),ut(3,"async"),p(4,"\n "),He()),2&n){const e=t.$implicit;le(2);const o=Ot(26);q(2),D("ngIf",a0(3,2,e))("ngIfElse",o)}}function Pwe(n,t){if(1&n&&(p(0),ut(1,"json"),Q(2,wwe,5,4,"ng-container",13),p(3,"\n")),2&n){const e=le();Rt("\n ",a0(1,2,null==e.stats$?null:e.stats$.items),"\n "),q(2),D("ngForOf",null==e.stats$?null:e.stats$.items$)}}function xwe(n,t){if(1&n&&Me(0,"storecloud-tooltip",19),2&n){const e=le(3).item;D("placement","top-end")("tooltip",null==e?null:e.tooltip)}}function qwe(n,t){if(1&n&&Me(0,"storecloud-icon",24),2&n){const e=le(3).item;D("icon",null==e?null:e.icon)("size",14)}}function Wwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"span",25),p(3),A(),p(4,"\n "),He()),2&n){const e=le(3).item;q(3),t0(null==e?null:e.preLabel)}}function Lwe(n,t){if(1&n&&Me(0,"storecloud-tooltip",19),2&n){const e=le(3).item;D("placement","top-end")("tooltip",null==e?null:e.tooltip)}}function Twe(n,t){if(1&n&&(v(0,"p"),p(1,"\n "),Q(2,xwe,1,2,"storecloud-tooltip",18),p(3,"\n "),Q(4,qwe,1,2,"storecloud-icon",22),p(5,"\n "),Q(6,Wwe,5,1,"ng-container",2),p(7,"\n "),Me(8,"span",23),p(9,"\n "),Q(10,Lwe,1,2,"storecloud-tooltip",18),p(11,"\n "),A()),2&n){const e=le(2).item,o=le();wn("",null!=e&&e.labelCssClass?null==e?null:e.labelCssClass:"text-black"," d-flex flex-basis-20"),q(2),D("ngIf","basic"===o.type&&(null==e?null:e.tooltip)),q(2),D("ngIf",null==e?null:e.icon),q(2),D("ngIf",null==e?null:e.preLabel),q(2),D("innerHTML",null==e?null:e.label,Uf),q(2),D("ngIf","nft-view"===o.type&&(null==e?null:e.tooltip))}}function Rwe(n,t){if(1&n){const e=b1();v(0,"storecloud-shared-value-formatter",26),yt("click",function(){T0(e);const r=le().$implicit;return v0(le(4).clicked(r))}),A()}if(2&n){const e=le().$implicit;D("cssClass",null==e?null:e.cssClass)("iconSize",14)("item",e)}}function Swe(n,t){if(1&n&&Me(0,"storecloud-tooltip",19),2&n){const e=le(4).item;D("placement","top-end")("tooltip",null==e?null:e.valueTooltip)}}function Dwe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,Rwe,1,3,"storecloud-shared-value-formatter",27),p(3,"\n "),Q(4,Swe,1,2,"storecloud-tooltip",18),p(5,"\n "),He()),2&n){const e=t.$implicit,o=le(3).item;q(2),D("ngIf",e),q(2),D("ngIf",null==o?null:o.valueTooltip)}}function kwe(n,t){if(1&n){const e=b1();v(0,"div"),p(1,"\n "),v(2,"storecloud-shared-value-formatter",26),yt("click",function(){T0(e);const r=le(2).item;return v0(le().clicked(r))}),A(),p(3,"\n\n "),Q(4,Dwe,6,2,"ng-container",13),p(5,"\n "),A()}if(2&n){const e=le(2).item,o=le();sd("d-flex g-1-half flex-basis-80 ",null==e?null:e.parentCssClass," ","column"===(null==e?null:e.direction)?"d-flex-column":"",""),q(2),D("cssClass",(null==e?null:e.cssClass)||"text-black")("iconSize",14)("item",e),q(2),D("ngForOf",o.getAllSubItems(e))}}const Ewe=function(n){return{nft:n}};function Nwe(n,t){if(1&n&&(v(0,"div",28),p(1,"\n "),m0(2,12),p(3,"\n "),A()),2&n){const e=le(2).item;le();const o=Ot(29);q(2),D("ngTemplateOutletContext",Ht(2,Ewe,null==e?null:e.value))("ngTemplateOutlet",o)}}function Iwe(n,t){if(1&n&&(v(0,"div"),p(1,"\n "),v(2,"div"),p(3,"\n "),Q(4,Twe,12,8,"p",20),p(5,"\n "),Q(6,kwe,6,8,"div",20),p(7,"\n "),Q(8,Nwe,4,4,"div",21),p(9,"\n "),A(),p(10,"\n "),A()),2&n){const e=le().item,o=le();XN("d-flex-g-14 ",o.type," ",o.enableBorderOnLast?"border-last":""," ",null!=e&&e.hideBorderBottom?"hide-bottom-border":"",""),q(2),wn("data-div ","asset"===(null==e?null:e.type)?"align-start":"",""),q(2),D("ngIf",!(null!=e&&e.hideLabel)),q(2),D("ngIf","asset"!==(null==e?null:e.type)&&(void 0!==(null==e?null:e.value)||null!==(null==e?null:e.value))),q(2),D("ngIf","asset"===(null==e?null:e.type))}}function Bwe(n,t){if(1&n&&(p(0,"\n "),Q(1,Iwe,11,11,"div",20),p(2,"\n")),2&n){const e=t.item;q(1),D("ngIf",!(null!=e&&e.disabled))}}const Fwe=function(){return{display:"block",padding:"0 15px"}},Ywe=function(){return{"margin-top":"8px",height:"25px"}};function Hwe(n,t){if(1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",29),p(2,"\n")),2&n){const e=le();q(1),Wo("count",e.loadingCount),D("ngStyle",Et(3,Fwe))("theme",Et(4,Ywe))}}function Xwe(n,t){if(1&n&&(v(0,"p",37),p(1),A()),2&n){const e=le(2).nft;q(1),t0(null==e?null:e.description)}}function jwe(n,t){if(1&n&&(v(0,"div",34),p(1,"\n "),v(2,"p",35),p(3),A(),p(4,"\n "),Q(5,Xwe,2,1,"p",36),p(6,"\n "),A()),2&n){const e=le().nft;q(3),t0(null==e?null:e.name),q(2),D("ngIf",null==e?null:e.description)}}function Uwe(n,t){if(1&n&&(p(0,"\n "),v(1,"div",30),p(2,"\n "),v(3,"div",31),p(4,"\n "),Me(5,"storecloud-publisher-nft-stamp-image",32),p(6,"\n "),A(),p(7,"\n "),Q(8,jwe,7,2,"div",33),p(9,"\n "),A(),p(10,"\n")),2&n){const e=t.nft;q(5),D("nft",e)("type","detail"),q(3),D("ngIf",(null==e?null:e.name)||(null==e?null:e.description))}}const Vwe=function(n){return{stroke:n}};function $we(n,t){if(1&n&&(p(0,"\n "),v(1,"div",38),p(2,"\n "),Si(),v(3,"svg",39),p(4,"\n "),Me(5,"polyline",40),p(6,"\n "),A(),p(7,"\n "),A(),p(8,"\n")),2&n){const e=t.enable;q(1),D("ngStyle",Ht(1,Vwe,e?"#1db0a9":"#888"))}}const Gwe=function(n,t){return{card:n,"flex-col-between":t,"p-0":!0}};let Jv=(am=class{constructor(){this.stats$=null,this.disableCardClass=!1,this.loadingCount=3,this.type="basic",this.enableBorderOnLast=!1,this.subItemClicked=new G1}ngOnInit(){}getAllSubItems(t){return this.getAllSubItemsChildren(t)}getAllSubItemsChildren(t){const e=[],o=t?.subItems;if(e.push(o),o?.subItems){const r=this.getAllSubItemsChildren(o);e.push(...r)}return e}clicked(t){t?.event&&this.subItemClicked.emit(t)}},am.\u0275fac=function(t){return new(t||am)},am.\u0275cmp=kt({type:am,selectors:[["storecloud-shared-stats-card-detail"]],inputs:{stats$:"stats$",disableCardClass:"disableCardClass",loadingCount:"loadingCount",type:"type",enableBorderOnLast:"enableBorderOnLast"},outputs:{subItemClicked:"subItemClicked"},decls:35,vars:6,consts:[[3,"ngClass"],[1,"content","p-0"],[4,"ngIf"],["groupedItemTemp",""],["groupedItemRowsTemp",""],["singleTemplate",""],["itemTemplate",""],["loader3",""],["asset",""],["chevronDown",""],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutletContext","ngTemplateOutlet",4,"ngIf"],[3,"click"],[1,"d-flex","g-1","flex-basis-20"],[1,"text-black","teal"],[3,"placement","tooltip",4,"ngIf"],[3,"placement","tooltip"],[3,"class",4,"ngIf"],["class","d-flex g-1-half flex-basis-80",4,"ngIf"],[3,"icon","size",4,"ngIf"],[3,"innerHTML"],[3,"icon","size"],[1,"text-black-light","text-12px","p-8-10","badge"],[3,"cssClass","iconSize","item","click"],[3,"cssClass","iconSize","item","click",4,"ngIf"],[1,"d-flex","g-1-half","flex-basis-80"],["animation","progress",1,"loader-for-all",3,"ngStyle","theme","count"],[1,"asset-container"],[1,"asset-image","stats-card-detail-asset"],[3,"nft","type"],["class","asset-details",4,"ngIf"],[1,"asset-details"],[1,"title"],["class","desc",4,"ngIf"],[1,"desc"],[1,"chevron-down","flex-basis-80",3,"ngStyle"],["fill","none","height","24","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","viewBox","0 0 24 24","width","24","xmlns","http://www.w3.org/2000/svg"],["points","6 9 12 15 18 9"]],template:function(t,e){1&t&&(v(0,"div",0),p(1,"\n "),Ye(2),p(3,"\n "),v(4,"div",1),p(5,"\n "),Q(6,uwe,4,1,"ng-container",2),p(7,"\n "),Q(8,fwe,4,2,"ng-container",2),p(9,"\n "),A(),p(10,"\n "),He(),p(11,"\n"),A(),p(12,"\n\n"),Q(13,gwe,3,1,"ng-template",null,3,$t),p(15,"\n\n"),Q(16,ywe,20,14,"ng-template",null,4,$t),p(18,"\n\n"),Q(19,Pwe,4,4,"ng-template",null,5,$t),p(21,"\n\n"),Q(22,Bwe,3,1,"ng-template",null,6,$t),p(24,"\n"),Q(25,Hwe,3,5,"ng-template",null,7,$t),p(27,"\n"),Q(28,Uwe,11,3,"ng-template",null,8,$t),p(30,"\n\n"),Q(31,$we,9,3,"ng-template",null,9,$t),p(33,"\n\n"),p(34,"\n")),2&t&&(D("ngClass",Cr(3,Gwe,!e.disableCardClass,!e.disableCardClass)),q(6),D("ngIf",null==e.stats$||null==e.stats$.available?null:e.stats$.available.items$),q(2),D("ngIf",null==e.stats$||null==e.stats$.available?null:e.stats$.available.groupedItems))},styles:[".data-div[_ngcontent-%COMP%]{flex-direction:row!important;width:100%}.data-div[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:20%;gap:5px;align-items:center}.data-div[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:80%;align-items:center}.data-div[_ngcontent-%COMP%] .d-flex-column[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:5px!important}.data-div.align-start[_ngcontent-%COMP%]{align-items:flex-start}.data-div.group-title-row[_ngcontent-%COMP%]{border-bottom:0px!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div[_ngcontent-%COMP%]{gap:40px}.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%]{border-top:1px solid #1db0a9!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:80%!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:20%!important}.reverse-flex-basis[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:40%!important}.reverse-flex-basis[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:60%!important}.asset-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 9fr;gap:20px}.asset-container[_ngcontent-%COMP%] .asset-image[_ngcontent-%COMP%]{display:flex;align-items:center;height:293px;width:293px;justify-content:center}.asset-container[_ngcontent-%COMP%] .asset-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #d0d0d0}.asset-container[_ngcontent-%COMP%] .asset-details[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;line-height:1.3;white-space:pre-line}.p-0[_ngcontent-%COMP%]{padding:0!important}.chevron-down[_ngcontent-%COMP%]{display:flex;margin-left:-3px;justify-content:flex-end}.bb-4[_ngcontent-%COMP%]:not(:last-child){border-bottom:3px solid #1db0a9}.bb-4.has-child-items[_ngcontent-%COMP%]{padding-left:20px;border-top:0px solid #1db0a9}.bb-4.has-child-items[_ngcontent-%COMP%] .has-child-items[_ngcontent-%COMP%]{padding-left:0}.bb-4.has-child-items[_ngcontent-%COMP%] .bb-4[_ngcontent-%COMP%]:not(:last-child){border-bottom:0px solid #1db0a9}.bb-4.indent-level-1[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #1db0a9}.bb-4[_ngcontent-%COMP%] .indent-level-2[_ngcontent-%COMP%]{padding-left:30px}.bb-4[_ngcontent-%COMP%] .indent-level-3[_ngcontent-%COMP%]{padding-left:40px}.clickable[_ngcontent-%COMP%]{padding:10px 15px}.clickable[_ngcontent-%COMP%] .chevron-down[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]:hover{animation:up-down 2s;animation-iteration-count:infinite} .clickable.active .chevron-down svg{transition:transform .2s;transform:rotate(180deg)} .stats-card-detail-asset storecloud-publisher-nft-stamp-image{display:contents} .stats-card-detail-asset storecloud-publisher-nft-stamp-image .detail-image .default-img{border-radius:4px;width:100%;height:300px;display:block}@media screen and (max-width: 800px){.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:80%!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:20%!important}}@media screen and (max-width: 525px){.asset-container[_ngcontent-%COMP%]{grid-template-columns:1fr}.asset-container[_ngcontent-%COMP%] .asset-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:240px!important}.data-div[_ngcontent-%COMP%]{flex-direction:column!important}.data-div[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:100%!important}.data-div[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{margin-left:15px;flex-basis:100%!important}.data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-20[_ngcontent-%COMP%]{flex-basis:80%!important}.data-div.group-title-row[_ngcontent-%COMP%] .flex-basis-80[_ngcontent-%COMP%]{flex-basis:20%!important} .loader-for-all .loader{height:44px!important}.reverse-flex-basis[_ngcontent-%COMP%] .data-div[_ngcontent-%COMP%]{gap:5px} .stats-card-detail-asset storecloud-publisher-nft-stamp-image{display:contents} .stats-card-detail-asset storecloud-publisher-nft-stamp-image .detail-image .default-img{border-radius:4px;width:100%!important;height:300px!important;display:block}.clickable.data-div[_ngcontent-%COMP%]{flex-direction:row!important}.chevron-down[_ngcontent-%COMP%]{justify-content:flex-end}}"]}),am);var sm;function Zwe(n,t){if(1&n&&Me(0,"storecloud-tooltip",14),2&n){const e=le(3);D("tooltip",null==e.table$?null:e.table$.tooltip)}}function Kwe(n,t){if(1&n&&(v(0,"div",11),p(1,"\n "),v(2,"p",12),p(3),Q(4,Zwe,1,1,"storecloud-tooltip",13),p(5,"\n "),A(),p(6,"\n "),A()),2&n){const e=le(2);q(3),Rt("\n ",null==e.table$?null:e.table$.title,"\n "),q(1),D("ngIf",null==e.table$?null:e.table$.tooltip)}}function Jwe(n,t){if(1&n&&Me(0,"storecloud-shared-table-pagination",15),2&n){const e=le(2);D("tableService",e.tableService)("total$",e.total$)}}function Qwe(n,t){if(1&n&&(v(0,"div",8),p(1,"\n "),Q(2,Kwe,7,2,"div",9),p(3,"\n "),Q(4,Jwe,1,2,"storecloud-shared-table-pagination",10),p(5,"\n "),A()),2&n){const e=le();q(2),D("ngIf",null==e.table$?null:e.table$.title),q(2),D("ngIf",!(null!=e.table$&&e.table$.disablePagination))}}function ePe(n,t){if(1&n&&(v(0,"storecloud-tooltip",14),p(1," "),A()),2&n){const e=le(3).$implicit;D("tooltip",null==e?null:e.tooltip)}}function tPe(n,t){if(1&n&&(Ye(0),p(1,"\n "),v(2,"span"),p(3),Q(4,ePe,2,1,"storecloud-tooltip",13),p(5,"\n "),A(),p(6,"\n "),He()),2&n){const e=le(2).$implicit;q(3),Rt("",null==e?null:e.label,"\n "),q(1),D("ngIf",null==e?null:e.tooltip)}}function nPe(n,t){if(1&n&&(Ye(0),p(1),He()),2&n){const e=le(2).$implicit;q(1),Rt("\n ",null==e?null:e.label,"\n ")}}Jv=Ke([h0({checkProperties:!0})],Jv);const oPe=function(n){return{width:n}};function rPe(n,t){if(1&n){const e=b1();v(0,"th",17),yt("sort",function(r){return T0(e),v0(le(2).onSort(r))}),p(1,"\n "),Q(2,tPe,7,2,"ng-container",6),p(3,"\n "),Q(4,nPe,2,1,"ng-container",6),p(5,"\n "),A()}if(2&n){const e=le().$implicit;Yc(null==e?null:e.cssClass),Wo("sortable",null==e?null:e.key),D("ngStyle",Ht(7,oPe,(null==e?null:e.width)||"auto")),q(2),D("ngIf",null==e?null:e.tooltip),q(2),D("ngIf",!(null!=e&&e.tooltip))}}function iPe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,rPe,6,9,"th",16),p(3,"\n "),He()),2&n){const e=t.$implicit;q(2),D("ngIf",!(null!=e&&e.disabled))}}function aPe(n,t){if(1&n&&Me(0,"storecloud-shared-value-formatter",22),2&n){const e=le().$implicit;D("item",e)("cssClass",null==e?null:e.cssClass)("iconSize",14)}}function sPe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,aPe,1,3,"storecloud-shared-value-formatter",21),p(3,"\n "),He()),2&n){const e=t.$implicit;q(2),D("ngIf",e)}}function cPe(n,t){if(1&n&&(v(0,"td"),p(1,"\n "),v(2,"div",19),p(3,"\n "),v(4,"storecloud-shared-value-formatter",20),p(5,"\n "),A(),p(6,"\n "),Q(7,sPe,4,1,"ng-container",4),p(8,"\n "),A(),p(9,"\n "),A()),2&n){const e=le().$implicit,o=le().$implicit,r=le();let i;sd("",null==e?null:e.cssClass," ",null==e?null:e.type,""),q(4),D("item",r.prepareItem(e,o[null==e?null:e.key]))("iconSize",null!==(i=null==o[null==e?null:e.key]?null:o[null==e?null:e.key].valueIconSize)&&void 0!==i?i:14),q(3),D("ngForOf",r.getAllSubItems(r.prepareItem(e,o[null==e?null:e.key])))}}function lPe(n,t){if(1&n&&(Ye(0),p(1,"\n "),Q(2,cPe,10,7,"td",18),p(3,"\n "),He()),2&n){const e=t.$implicit;q(2),D("ngIf",!(null!=e&&e.disabled))}}function pPe(n,t){if(1&n&&(v(0,"tr"),p(1,"\n "),Q(2,lPe,4,1,"ng-container",4),p(3,"\n "),A()),2&n){const e=le();q(2),D("ngForOf",null==e.table$?null:e.table$.columns)}}const uPe=function(n){return{height:n}},dPe=function(n){return{setting:n}};function fPe(n,t){if(1&n&&(v(0,"td",24),p(1,"\n "),m0(2,25),p(3,"\n "),A()),2&n){const e=le(3),o=Ot(38);q(2),D("ngTemplateOutlet",o)("ngTemplateOutletContext",Ht(4,dPe,Ht(2,uPe,null==e.table$?null:e.table$.loadingHeight)))}}function hPe(n,t){if(1&n&&(v(0,"tr"),p(1,"\n "),Q(2,fPe,4,6,"td",23),p(3,"\n "),A()),2&n){const e=le(2);q(2),D("ngForOf",null==e.table$?null:e.table$.columns)("ngForTrackBy",e.trackByFuntion)}}function MPe(n,t){if(1&n&&(v(0,"tbody"),p(1,"\n "),Q(2,hPe,4,2,"tr",4),p(3,"\n "),A()),2&n){const e=le();q(2),D("ngForOf",e.convertPageSizeIntoArray(null==e.tableService?null:e.tableService.pageSize))}}function bPe(n,t){1&n&&(v(0,"tbody"),p(1,"\n "),v(2,"tr"),p(3,"\n "),v(4,"td",26),p(5,"No record exist"),A(),p(6,"\n "),A(),p(7,"\n "),A())}const gPe=function(){return{display:"contents"}},OPe=function(n){return{"margin-top":"5px","margin-bottom":"5px",height:n}};function mPe(n,t){if(1&n&&(p(0,"\n "),Me(1,"ngx-skeleton-loader",27),p(2,"\n")),2&n){const e=t.setting;q(1),D("ngStyle",Et(2,gPe))("theme",Ht(3,OPe,((null==e?null:e.height)||29.5)+"px"))}}const _Pe=function(n){return{card:n}};let cm=(sm=class{set table$(t){this._table$=t,this.tableService=new y8(t?.serviceController,[],t?.extrafilter??[],t?.map),this.tableService.pageSize=t?.pageSize||8,this.total$=this.tableService.total$.pipe($(e=>Math.ceil(e/(t?.pageSize||8))),at(this)),this.result$=this.tableService.result$.pipe(at(this))}get table$(){return this._table$}constructor(t){this.http=t,this.tableCssClass=null,this.disabledCardClass=!1,this.total$=null,this._table$=null}trackByFuntion(t,e){return e?.from??e?.to??t?.id}prepareItem(t,e){return"progress-status"===t?.type||"block-status"===t?.type?{type:t?.type,value:e}:"custom-col"===t?.type?{...t,...e,link:t?.link||e?.link?t?.withOutIdLink?t?.valueLink?e?.value:t?.link||e?.link:`${t?.link||e?.link}/${e?.value}`:null}:{...t,value:e,link:t?.link?t?.withOutIdLink?t?.valueLink?e:t?.link:`${t?.link}/${e}`:null}}onSort({}){}convertPageSizeIntoArray(t){return Array(t??8).fill(!0)}getAllSubItems(t){return this.getAllSubItemsChildren(t)}getAllSubItemsChildren(t){const e=[],o=t?.subItems;if(e.push(o),o?.subItems){const r=this.getAllSubItemsChildren(o);e.push(...r)}return e}},sm.\u0275fac=function(t){return new(t||sm)(Te(G0))},sm.\u0275cmp=kt({type:sm,selectors:[["storecloud-shared-table-card-api"]],inputs:{tableCssClass:"tableCssClass",disabledCardClass:"disabledCardClass",table$:"table$"},decls:40,vars:22,consts:[[3,"ngClass"],["class","heading flex",4,"ngIf"],[1,"content"],[1,"table-container"],[4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["loader",""],[1,"heading","flex"],["class","heading-tabs-div",4,"ngIf"],[3,"tableService","total$",4,"ngIf"],[1,"heading-tabs-div"],[1,"heading-text"],[3,"tooltip",4,"ngIf"],[3,"tooltip"],[3,"tableService","total$"],["scope","col",3,"sortable","class","ngStyle","sort",4,"ngIf"],["scope","col",3,"sortable","ngStyle","sort"],[3,"class",4,"ngIf"],[1,"d-flex","g-1-half"],["cssClass","",3,"item","iconSize"],[3,"item","cssClass","iconSize",4,"ngIf"],[3,"item","cssClass","iconSize"],["class","pb-0 pt-1",4,"ngFor","ngForOf","ngForTrackBy"],[1,"pb-0","pt-1"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["colSpan","14",1,"align-center","grey"],["count","1","animation","progress",3,"ngStyle","theme"]],template:function(t,e){if(1&t&&(v(0,"div",0),p(1,"\n "),Q(2,Qwe,6,2,"div",1),p(3,"\n "),v(4,"div",2),p(5,"\n "),v(6,"div",3),p(7,"\n "),v(8,"table"),p(9,"\n "),v(10,"thead"),p(11,"\n "),v(12,"tr"),p(13,"\n "),p(14,"\n "),Q(15,iPe,4,1,"ng-container",4),p(16,"\n\n "),A(),p(17,"\n "),A(),p(18,"\n "),v(19,"tbody"),p(20,"\n "),Q(21,pPe,4,1,"tr",5),ut(22,"async"),p(23,"\n "),A(),p(24,"\n "),Q(25,MPe,4,1,"tbody",6),ut(26,"async"),ut(27,"async"),p(28,"\n "),Q(29,bPe,8,0,"tbody",6),ut(30,"async"),ut(31,"async"),p(32,"\n "),A(),p(33,"\n "),A(),p(34,"\n "),A(),p(35,"\n"),A(),p(36,"\n\n"),Q(37,mPe,3,5,"ng-template",null,7,$t),p(39,"\n")),2&t){let o,r;D("ngClass",Ht(20,_Pe,!e.disabledCardClass)),q(2),D("ngIf",(null==e.table$?null:e.table$.title)||!(null!=e.table$&&e.table$.disablePagination)),q(6),Yc(e.tableCssClass),q(7),D("ngForOf",null==e.table$?null:e.table$.columns),q(6),D("ngForOf",a0(22,10,e.result$))("ngForTrackBy",e.trackByFuntion),q(4),D("ngIf",a0(26,12,null==e.tableService?null:e.tableService.loading$)&&((null==(o=a0(27,14,e.result$))?null:o.length)||0)<1),q(4),D("ngIf",0===(null==(r=a0(30,16,e.result$))?null:r.length)&&!1===a0(31,18,null==e.tableService?null:e.tableService.loading$))}},styles:["[_ngcontent-%COMP%]:export{bg-gradient:linear-gradient(to right,#1e1e20,#38415d);teal:#1db0a9;explorer-bg:linear-gradient(to right,#1e1e20,#38415d);explorer-teal:#1db0a9;developer-bg:linear-gradient(to top,#3375a7,#2b3a98);developer-teal:#1db0a9;governor-bg:linear-gradient(to top,#9d51b8,#4b2d83);governor-teal:#1db0a9;cloud-bg:linear-gradient(to top,#24272f,#222);cloud-teal:#1db0a9}.teal[_ngcontent-%COMP%]{color:#1db0a9}.heading-tabs-div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:40px}@media screen and (max-width: 1200px){.table-container[_ngcontent-%COMP%]{overflow-x:auto}}.table-container[_ngcontent-%COMP%] table.table-scroll[_ngcontent-%COMP%]{width:100%}@media screen and (max-width: 1200px){.table-container[_ngcontent-%COMP%] table.table-scroll[_ngcontent-%COMP%]{min-width:1300px}} table td .text-light{font-size:1.4rem!important}@media screen and (max-width: 1670px){ table td .text-light{font-size:1.3rem!important}}@media screen and (max-width: 1670px){ table td .text-light{font-size:1.2rem!important}}@media screen and (max-width: 1300px){ table td .text-light{font-size:1rem!important}}@media screen and (max-width: 1546px) and (max-width: 1200px){.table-container[_ngcontent-%COMP%]{overflow-x:scroll}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%] table.table-large[_ngcontent-%COMP%]{min-width:1545px}}@media screen and (max-width: 1546px) and (max-width: 1200px){.table-container[_ngcontent-%COMP%] table.table-large[_ngcontent-%COMP%]{min-width:1545px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-medium[_ngcontent-%COMP%]{min-width:1000px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-small[_ngcontent-%COMP%]{min-width:840px}}@media screen and (max-width: 1546px){.table-container[_ngcontent-%COMP%] table.table-smaller[_ngcontent-%COMP%]{min-width:500px}}@media screen and (max-width: 470px){.card[_ngcontent-%COMP%] .heading.flex[_ngcontent-%COMP%]{align-items:center}}@media screen and (max-width: 1200px){.card[_ngcontent-%COMP%] .pb-2[_ngcontent-%COMP%]{padding-bottom:0!important}}.card.col-span-8.grid-2[_ngcontent-%COMP%]{display:none}"]}),sm);cm=Ke([h0({checkProperties:!0})],cm);let nJ=(()=>{class n{constructor(e,o){this._renderer=e,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,o){this._renderer.setProperty(this._elementRef.nativeElement,e,o)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(Te(P1),Te(fn))},n.\u0275dir=b0({type:n}),n})(),AM=(()=>{class n extends nJ{}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275dir=b0({type:n,features:[In]}),n})();const up=new Qt("NgValueAccessor"),vPe={provide:up,useExisting:Yn(()=>U8),multi:!0};let U8=(()=>{class n extends AM{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,o){1&e&&yt("change",function(i){return o.onChange(i.target.checked)})("blur",function(){return o.onTouched()})},features:[$1([vPe]),In]}),n})();const APe={provide:up,useExisting:Yn(()=>uf),multi:!0},CPe=new Qt("CompositionEventMode");let uf=(()=>{class n extends nJ{constructor(e,o,r){super(e,o),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yPe(){const n=tu()?tu().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(Te(P1),Te(fn),Te(CPe,8))},n.\u0275dir=b0({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,o){1&e&&yt("input",function(i){return o._handleInput(i.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(i){return o._compositionEnd(i.target.value)})},features:[$1([APe]),In]}),n})();const wPe=!1;function df(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function oJ(n){return null!=n&&"number"==typeof n.length}const wa=new Qt("NgValidators"),ff=new Qt("NgAsyncValidators"),PPe=/^(?=.{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])?)*$/;class ls{static min(t){return function rJ(n){return t=>{if(df(t.value)||df(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(df(t.value)||df(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return aJ(t)}static requiredTrue(t){return function sJ(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function cJ(n){return df(n.value)||PPe.test(n.value)?null:{email:!0}}(t)}static minLength(t){return lJ(t)}static maxLength(t){return pJ(t)}static pattern(t){return function uJ(n){if(!n)return RP;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),o=>{if(df(o.value))return null;const r=o.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return gJ(t)}static composeAsync(t){return OJ(t)}}function aJ(n){return df(n.value)?{required:!0}:null}function lJ(n){return t=>df(t.value)||!oJ(t.value)?null:t.value.lengthoJ(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function RP(n){return null}function dJ(n){return null!=n}function fJ(n){const t=m_(n)?Un(n):n;if(wPe&&!aW(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new Pt(-1101,e)}return t}function hJ(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function MJ(n,t){return t.map(e=>e(n))}function bJ(n){return n.map(t=>function xPe(n){return!n.validate}(t)?t:e=>t.validate(e))}function gJ(n){if(!n)return null;const t=n.filter(dJ);return 0==t.length?null:function(e){return hJ(MJ(e,t))}}function V8(n){return null!=n?gJ(bJ(n)):null}function OJ(n){if(!n)return null;const t=n.filter(dJ);return 0==t.length?null:function(e){return function zPe(...n){const t=ti(n),{args:e,keys:o}=c9(n),r=new U(i=>{const{length:a}=e;if(!a)return void i.complete();const s=new Array(a);let c=a,l=a;for(let u=0;u{d||(d=!0,l--),s[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(o?l9(o,s):s),i.complete())}))}});return t?r.pipe(WL(t)):r}(MJ(e,t).map(fJ)).pipe($(hJ))}}function $8(n){return null!=n?OJ(bJ(n)):null}function mJ(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function _J(n){return n._rawValidators}function zJ(n){return n._rawAsyncValidators}function G8(n){return n?Array.isArray(n)?n:[n]:[]}function SP(n,t){return Array.isArray(n)?n.includes(t):n===t}function vJ(n,t){const e=G8(t);return G8(n).forEach(r=>{SP(e,r)||e.push(r)}),e}function AJ(n,t){return G8(t).filter(e=>!SP(n,e))}class yJ{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=V8(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=$8(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class ps extends yJ{get formDirective(){return null}get path(){return null}}class hf extends yJ{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class CJ{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let lm=(()=>{class n extends CJ{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(Te(hf,2))},n.\u0275dir=b0({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,o){2&e&&A2("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[In]}),n})(),pm=(()=>{class n extends CJ{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(Te(ps,10))},n.\u0275dir=b0({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,o){2&e&&A2("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[In]}),n})();function wJ(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const J8=!1,Qv="VALID",kP="INVALID",um="PENDING",eA="DISABLED";function Q8(n){return(EP(n)?n.validators:n)||null}function ek(n,t){return(EP(t)?t.asyncValidators:n)||null}function EP(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function PJ(n,t,e){const o=n.controls;if(!(t?Object.keys(o):o).length)throw new Pt(1e3,J8?function TPe(n){return`\n There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!o[e])throw new Pt(1001,J8?function RPe(n,t){return`Cannot find form control ${wJ(n,t)}`}(t,e):"")}function xJ(n,t,e){n._forEachChild((o,r)=>{if(void 0===e[r])throw new Pt(1002,J8?function SPe(n,t){return`Must supply a value for form control ${wJ(n,t)}`}(t,r):"")})}class NP{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Qv}get invalid(){return this.status===kP}get pending(){return this.status==um}get disabled(){return this.status===eA}get enabled(){return this.status!==eA}get dirty(){return!this.pristine}get untouched(){return!this.touched}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(vJ(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(vJ(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(AJ(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(AJ(t,this._rawAsyncValidators))}hasValidator(t){return SP(this._rawValidators,t)}hasAsyncValidator(t){return SP(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=um,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=eA,this.errors=null,this._forEachChild(o=>{o.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Qv,this._forEachChild(o=>{o.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(o=>o(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qv||this.status===um)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?eA:Qv}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=um,this._hasOwnPendingAsyncValidator=!0;const e=fJ(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(o=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(o,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((o,r)=>o&&o._find(r),this)}getError(t,e){const o=e?this.get(e):this;return o&&o.errors?o.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){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new G1,this.statusChanges=new G1}_calculateStatus(){return this._allControlsDisabled()?eA:this.errors?kP:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(um)?um:this._anyControlsHaveStatus(kP)?kP:Qv}_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={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){EP(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function DPe(n){return Array.isArray(n)?V8(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function kPe(n){return Array.isArray(n)?$8(n):n||null}(this._rawAsyncValidators)}}class mc extends NP{constructor(t,e,o){super(Q8(e),ek(o,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,o={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,o={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){xJ(this,!0,t),Object.keys(t).forEach(o=>{PJ(this,!0,o),this.controls[o].setValue(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(o=>{const r=this.controls[o];r&&r.patchValue(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((o,r)=>{o.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,o)=>(t[o]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,o)=>!!o._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const o=this.controls[e];o&&t(o,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,o]of Object.entries(this.controls))if(this.contains(e)&&t(o))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,o,r)=>((o.enabled||this.disabled)&&(e[r]=o.value),e))}_reduceChildren(t,e){let o=t;return this._forEachChild((r,i)=>{o=e(o,r,i)}),o}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class qJ extends mc{}const yM=new Qt("CallSetDisabledState",{providedIn:"root",factory:()=>tA}),tA="always";function IP(n,t){return[...t.path,n]}function nA(n,t,e=tA){tk(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function NPe(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&WJ(n,t)})}(n,t),function BPe(n,t){const e=(o,r)=>{t.valueAccessor.writeValue(o),r&&t.viewToModelUpdate(o)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function IPe(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&WJ(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function EPe(n,t){if(t.valueAccessor.setDisabledState){const e=o=>{t.valueAccessor.setDisabledState(o)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function BP(n,t,e=!0){const o=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(o),t.valueAccessor.registerOnTouched(o)),YP(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function FP(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function tk(n,t){const e=_J(n);null!==t.validator?n.setValidators(mJ(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const o=zJ(n);null!==t.asyncValidator?n.setAsyncValidators(mJ(o,t.asyncValidator)):"function"==typeof o&&n.setAsyncValidators([o]);const r=()=>n.updateValueAndValidity();FP(t._rawValidators,r),FP(t._rawAsyncValidators,r)}function YP(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=_J(n);if(Array.isArray(r)&&r.length>0){const i=r.filter(a=>a!==t.validator);i.length!==r.length&&(e=!0,n.setValidators(i))}}if(null!==t.asyncValidator){const r=zJ(n);if(Array.isArray(r)&&r.length>0){const i=r.filter(a=>a!==t.asyncValidator);i.length!==r.length&&(e=!0,n.setAsyncValidators(i))}}}const o=()=>{};return FP(t._rawValidators,o),FP(t._rawAsyncValidators,o),e}function WJ(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function LJ(n,t){tk(n,t)}function ok(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function TJ(n,t){n._syncPendingControls(),t.forEach(e=>{const o=e.control;"submit"===o.updateOn&&o._pendingChange&&(e.viewToModelUpdate(o._pendingValue),o._pendingChange=!1)})}function rk(n,t){if(!t)return null;let e,o,r;return Array.isArray(t),t.forEach(i=>{i.constructor===uf?e=i:function HPe(n){return Object.getPrototypeOf(n.constructor)===AM}(i)?o=i:r=i}),r||o||e||null}const jPe={provide:ps,useExisting:Yn(()=>rA)},oA=(()=>Promise.resolve())();let rA=(()=>{class n extends ps{constructor(e,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new G1,this.form=new mc({},V8(e),$8(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){oA.then(()=>{const o=this._findContainer(e.path);e.control=o.registerControl(e.name,e.control),nA(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){oA.then(()=>{const o=this._findContainer(e.path);o&&o.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){oA.then(()=>{const o=this._findContainer(e.path),r=new mc({});LJ(r,e),o.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){oA.then(()=>{const o=this._findContainer(e.path);o&&o.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,o){oA.then(()=>{this.form.get(e.path).setValue(o)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,TJ(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(Te(wa,10),Te(ff,10),Te(yM,8))},n.\u0275dir=b0({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,o){1&e&&yt("submit",function(i){return o.onSubmit(i)})("reset",function(){return o.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$1([jPe]),In]}),n})();function RJ(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function SJ(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const po=class extends NP{constructor(t=null,e,o){super(Q8(e),ek(o,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),EP(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=SJ(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(o=>o(this.value,!1!==e.emitViewToModelChange)),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),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){RJ(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){RJ(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){SJ(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};let DJ=(()=>{class n extends ps{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return IP(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275dir=b0({type:n,features:[In]}),n})();const $Pe={provide:hf,useExisting:Yn(()=>HP)},EJ=(()=>Promise.resolve())();let HP=(()=>{class n extends hf{constructor(e,o,r,i,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new po,this._registered=!1,this.update=new G1,this._parent=e,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=rk(0,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const o=e.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ok(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){nA(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){EJ.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const o=e.isDisabled.currentValue,r=0!==o&&xg(o);EJ.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?IP(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(Te(ps,9),Te(wa,10),Te(ff,10),Te(up,10),Te(dc,8),Te(yM,8))},n.\u0275dir=b0({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[$1([$Pe]),In,Fo]}),n})(),iA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=b0({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const GPe={provide:up,useExisting:Yn(()=>ik),multi:!0};let ik=(()=>{class n extends AM{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=o=>{e(""==o?null:parseFloat(o))}}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,o){1&e&&yt("input",function(i){return o.onChange(i.target.value)})("blur",function(){return o.onTouched()})},features:[$1([GPe]),In]}),n})(),NJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({}),n})();const ak=new Qt("NgModelWithFormControlWarning"),exe={provide:ps,useExisting:Yn(()=>dm)};let dm=(()=>{class n extends ps{constructor(e,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new G1,this._setValidators(e),this._setAsyncValidators(o)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(YP(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const o=this.form.get(e.path);return nA(o,e,this.callSetDisabledState),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),o}getControl(e){return this.form.get(e.path)}removeControl(e){BP(e.control||null,e,!1),function XPe(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,o){this.form.get(e.path).setValue(o)}onSubmit(e){return this.submitted=!0,TJ(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const o=e.control,r=this.form.get(e.path);o!==r&&(BP(o||null,e),(n=>n instanceof po)(r)&&(nA(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const o=this.form.get(e.path);LJ(o,e),o.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const o=this.form.get(e.path);o&&function FPe(n,t){return YP(n,t)}(o,e)&&o.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tk(this.form,this),this._oldForm&&YP(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(Te(wa,10),Te(ff,10),Te(yM,8))},n.\u0275dir=b0({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,o){1&e&&yt("submit",function(i){return o.onSubmit(i)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$1([exe]),In,Fo]}),n})();const txe={provide:ps,useExisting:Yn(()=>XP)};let XP=(()=>{class n extends DJ{constructor(e,o,r){super(),this._parent=e,this._setValidators(o),this._setAsyncValidators(r)}_checkParentType(){YJ(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(Te(ps,13),Te(wa,10),Te(ff,10))},n.\u0275dir=b0({type:n,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[$1([txe]),In]}),n})();const nxe={provide:ps,useExisting:Yn(()=>sk)};let sk=(()=>{class n extends ps{constructor(e,o,r){super(),this._parent=e,this._setValidators(o),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return IP(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){YJ(this._parent)}}return n.\u0275fac=function(e){return new(e||n)(Te(ps,13),Te(wa,10),Te(ff,10))},n.\u0275dir=b0({type:n,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[$1([nxe]),In]}),n})();function YJ(n){return!(n instanceof XP||n instanceof dm||n instanceof sk)}const oxe={provide:hf,useExisting:Yn(()=>aA)};let aA=(()=>{class n extends hf{set isDisabled(e){}constructor(e,o,r,i,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new G1,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=rk(0,i)}ngOnChanges(e){this._added||this._setUpControl(),ok(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return IP(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(Te(ps,13),Te(wa,10),Te(ff,10),Te(up,10),Te(ak,8))},n.\u0275dir=b0({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[$1([oxe]),In,Fo]}),n})();const rxe={provide:up,useExisting:Yn(()=>ck),multi:!0};function HJ(n,t){return null==n?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let ck=(()=>{class n extends AM{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=HJ(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=o=>{this.value=this._getOptionValue(o),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const o of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(o),e))return o;return null}_getOptionValue(e){const o=function ixe(n){return n.split(":")[0]}(e);return this._optionMap.has(o)?this._optionMap.get(o):e}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,o){1&e&&yt("change",function(i){return o.onChange(i.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[$1([rxe]),In]}),n})(),XJ=(()=>{class n{constructor(e,o,r){this._element=e,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(HJ(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(Te(fn),Te(P1),Te(ck,9))},n.\u0275dir=b0({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const axe={provide:up,useExisting:Yn(()=>lk),multi:!0};function jJ(n,t){return null==n?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let lk=(()=>{class n extends AM{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let o;if(this.value=e,Array.isArray(e)){const r=e.map(i=>this._getOptionId(i));o=(i,a)=>{i._setSelected(r.indexOf(a.toString())>-1)}}else o=(r,i)=>{r._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(e){this.onChange=o=>{const r=[],i=o.selectedOptions;if(void 0!==i){const a=i;for(let s=0;s{class n{constructor(e,o,r){this._element=e,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(jJ(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(jJ(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(Te(fn),Te(P1),Te(lk,9))},n.\u0275dir=b0({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();function VJ(n){return"number"==typeof n?n:parseInt(n,10)}let CM=(()=>{class n{constructor(){this._validator=RP}ngOnChanges(e){if(this.inputName in e){const o=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):RP,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=b0({type:n,features:[Fo]}),n})();const pxe={provide:wa,useExisting:Yn(()=>wM),multi:!0};let wM=(()=>{class n extends CM{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=xg,this.createValidator=e=>aJ}enabled(e){return e}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,o){2&e&&Fc("required",o._enabled?"":null)},inputs:{required:"required"},features:[$1([pxe]),In]}),n})();const fxe={provide:wa,useExisting:Yn(()=>pk),multi:!0};let pk=(()=>{class n extends CM{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>VJ(e),this.createValidator=e=>lJ(e)}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,o){2&e&&Fc("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},features:[$1([fxe]),In]}),n})();const hxe={provide:wa,useExisting:Yn(()=>uk),multi:!0};let uk=(()=>{class n extends CM{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>VJ(e),this.createValidator=e=>pJ(e)}}return n.\u0275fac=function(){let t;return function(o){return(t||(t=ur(n)))(o||n)}}(),n.\u0275dir=b0({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,o){2&e&&Fc("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[$1([hxe]),In]}),n})(),eQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({imports:[NJ]}),n})();class tQ extends NP{constructor(t,e,o){super(Q8(e),ek(o,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,o={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:o.emitEvent})}removeAt(t,e={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,o={}){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.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){xJ(this,!1,t),t.forEach((o,r)=>{PJ(this,!1,r),this.at(r).setValue(o,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((o,r)=>{this.at(r)&&this.at(r).patchValue(o,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((o,r)=>{o.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}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,o)=>!!o._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,o)=>{t(e,o)})}_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(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function nQ(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let oQ=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,o=null){const r=this._reduceControls(e);let i={};return nQ(o)?i=o:null!==o&&(i.validators=o.validator,i.asyncValidators=o.asyncValidator),new mc(r,i)}record(e,o=null){const r=this._reduceControls(e);return new qJ(r,o)}control(e,o,r){let i={};return this.useNonNullable?(nQ(o)?i=o:(i.validators=o,i.asyncValidators=r),new po(e,{...i,nonNullable:!0})):new po(e,o,r)}array(e,o,r){const i=e.map(a=>this._createControl(a));return new tQ(i,o,r)}_reduceControls(e){const o={};return Object.keys(e).forEach(r=>{o[r]=this._createControl(e[r])}),o}_createControl(e){return e instanceof po||e instanceof NP?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jP=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:yM,useValue:e.callSetDisabledState??tA}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({imports:[eQ]}),n})(),sA=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:ak,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:yM,useValue:e.callSetDisabledState??tA}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({imports:[eQ]}),n})();function UP(n,t,e,o){var a,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,o);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(i=(r<3?a(i):r>3?a(t,e,i):a(t,e))||i);return r>3&&i&&Object.defineProperty(t,e,i),i}function iQ(n,t){return function(e,o){t(e,o,n)}}var gxe=G(9093),Oxe=G.n(gxe);const fk=new Qt("COPY_TO_CLIPBOARD_HANDLER");let hk=(()=>{let n=class{constructor(e){this.globalOnCopy=e,this.options={}}copy(){Oxe()(this.text,Object.assign({onCopy:e=>{var o;null===(o=this.globalOnCopy)||void 0===o||o.call(this,this.text,e)}},this.options))}};return n.\u0275fac=function(e){return new(e||n)(Te(fk,8))},n.\u0275dir=b0({type:n,selectors:[["","copyToClipboard",""]],hostBindings:function(e,o){1&e&&yt("click",function(){return o.copy()})},inputs:{options:["copyToClipboardOptions","options"],text:["copyToClipboard","text"]}}),UP([O7("copyToClipboard")],n.prototype,"text",void 0),UP([O7("copyToClipboardOptions")],n.prototype,"options",void 0),UP([Ine("click")],n.prototype,"copy",null),n=UP([iQ(0,Up()),iQ(0,Ef(fk))],n),n})(),Mk=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Nn({type:n}),n.\u0275inj=bo({}),n})();var sQ=G(7530);const mxe=["backdrop"],_xe=["dialog"];function zxe(n,t){if(1&n&&Me(0,"div",6),2&n){const e=le(),o=Ot(3);D("dialogDragEnabled",!0)("dialogDragTarget",o)("dragConstraint",e.config.dragConstraint)}}function vxe(n,t){if(1&n){const e=b1();v(0,"div",7),yt("click",function(){return T0(e),v0(le().closeDialog())}),Si(),v(1,"svg",8),Me(2,"path",9),A()()}}class $s{}class bk extends $s{constructor(t={}){super(),this.beforeCloseGuards=[],this.mutate(t)}close(t){this.canClose(t).pipe(zt(Boolean)).subscribe({next:()=>this.onClose(t)})}beforeClose(t){this.beforeCloseGuards.push(t)}resetDrag(t){this.onReset(t)}canClose(t){return ka(...this.beforeCloseGuards.map(o=>o(t)).filter(o=>void 0!==o&&!0!==o).map(o=>"boolean"==typeof o?ve(o):Un(o).pipe(zt(r=>!r)))).pipe(B_(!0),iu())}mutate(t){Object.assign(this,t)}asDialogRef(){return this}}function $P(n){return function Axe(n){return null==n}(n)?"":function yxe(n){return"string"==typeof n}(n)?n:`${n}px`}let cQ=(()=>{class n{constructor(){this.dialogDragEnabled=!1,this.host=c0(fn),this.zone=c0(Lo),this.delta={x:0,y:0},this.offset={x:0,y:0},this.enabled=!0,this.destroy$=new N}set dialogDragOffset(e){this.reset(e)}ngAfterViewInit(){this.enabled&&this.init()}ngOnChanges(){!this.enabled&&this.dialogDragEnabled&&this.dialogDragTarget&&(this.enabled=!0,this.handle?this.handle.style.setProperty("cursor","move"):this.enabled&&this.init()),this.dialogDragEnabled||(this.enabled=!1,this.handle&&this.handle.style.setProperty("cursor",""))}ngOnDestroy(){this.destroy$.next()}reset(e){const o={x:0,y:0};this.offset={...o,...e},this.delta={...o},this.translate()}setupEvents(){this.zone.runOutsideAngular(()=>{const e=cp(this.handle,"mousedown"),o=cp(document,"mousemove"),r=cp(document,"mouseup");e.pipe(zt(()=>this.enabled),$(a=>({startX:a.clientX,startY:a.clientY})),ui(({startX:a,startY:s})=>o.pipe($(c=>{c.preventDefault(),this.delta={x:c.clientX-a,y:c.clientY-s},"constrain"===this.dragConstraint&&this.checkConstraint()}),hc(r))),hc(this.destroy$)).subscribe(()=>{0===this.delta.x&&0===this.delta.y||this.translate()}),r.pipe(zt(()=>this.enabled),zt(()=>0!==this.delta.x||0!==this.delta.y),hc(this.destroy$)).subscribe(()=>{"bounce"===this.dragConstraint&&(this.checkConstraint(),this.translate()),this.offset.x+=this.delta.x,this.offset.y+=this.delta.y,this.delta={x:0,y:0}})})}translate(){this.target&&this.zone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.target.style.setProperty("transform",`translate(${this.translateX}px, ${this.translateY}px)`)})})}get translateX(){return this.offset.x+this.delta.x}get translateY(){return this.offset.y+this.delta.y}init(){if(!this.dialogDragTarget)throw new Error("You need to specify the drag target");this.handle=this.dialogDragHandle instanceof Element?this.dialogDragHandle:"string"==typeof this.dialogDragHandle&&this.dialogDragHandle?document.querySelector(this.dialogDragHandle):this.host.nativeElement,this.handle&&this.enabled&&this.handle.style.setProperty("cursor","move"),this.target=this.dialogDragTarget instanceof HTMLElement?this.dialogDragTarget:document.querySelector(this.dialogDragTarget),this.setupEvents(),this.translate()}checkConstraint(){const{width:e,height:o}=this.target.getBoundingClientRect(),{innerWidth:r,innerHeight:i}=window,a=this.translateY>0?this.translateY+o/2:this.translateY-o/2,s=i/2,c=this.translateX>0?this.translateX+e/2:this.translateX-e/2,l=r/2;-s>a&&(this.delta.y=o/2-s-this.offset.y),sc&&(this.delta.x=e/2-l-this.offset.x),lc0(Hr)}),Ok=new Qt("config",{providedIn:"root",factory:()=>({})});const pQ=new Qt("Global dialog config token",{providedIn:"root",factory:()=>function lQ(){return{id:void 0,container:c0(gk).body,backdrop:!0,closeButton:!0,enableClose:!0,draggable:!1,dragConstraint:"none",resizable:!1,size:"md",windowClass:void 0,width:void 0,height:void 0,minHeight:void 0,maxHeight:void 0,data:void 0,vcr:void 0,sizes:{sm:{height:"auto",width:"400px"},md:{height:"auto",width:"560px"},lg:{height:"auto",width:"800px"},fullScreen:{height:"100%",width:"100%"}},onClose:void 0,onOpen:void 0}}()}),uQ=new Qt("Nodes inserted into the dialog");let Cxe=(()=>{class n{constructor(){this.config=c0(Ok),this.dialogRef=c0(bk),this.size=this.config.sizes?.[this.config.size||"md"],this.styles={width:$P(this.config.width||this.size?.width),height:$P(this.config.height||this.size?.height),minHeight:$P(this.config.minHeight||this.size?.minHeight),maxHeight:$P(this.config.maxHeight||this.size?.maxHeight)},this.destroy$=new N,this.nodes=c0(uQ),this.document=c0(Hr),this.host=c0(fn).nativeElement,this.host.id=this.config.id,this.nodes.forEach(e=>this.host.appendChild(e)),this.config.windowClass&&this.config.windowClass.split(/\s/).filter(o=>o).forEach(o=>this.host.classList.add(o))}ngOnInit(){const e=this.config.backdrop?this.backdrop.nativeElement:this.document.body,o=this.dialogElement.nativeElement,r=cp(e,"click",{capture:!0}).pipe(zt(({target:i})=>!o.contains(i)));if(r.pipe(hc(this.destroy$)).subscribe(this.dialogRef.backdropClick$),this.config.enableClose&&ka(cp(this.document.body,"keyup").pipe(zt(({key:i})=>"Escape"===i)),r).pipe(hc(this.destroy$)).subscribe(()=>this.closeDialog()),this.nodes.forEach(i=>o.appendChild(i)),this.config.zIndexGetter){const i=this.config.zIndexGetter().toString();e.style.setProperty("--dialog-backdrop-z-index",i)}}reset(e){this.config.draggable&&this.draggable.reset(e)}closeDialog(){this.dialogRef.close()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.dialogRef=null,this.nodes=null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=kt({type:n,selectors:[["ngneat-dialog"]],viewQuery:function(e,o){if(1&e&&(uc(mxe,7),uc(_xe,7),uc(cQ,5)),2&e){let r;xs(r=qs())&&(o.backdrop=r.first),xs(r=qs())&&(o.dialogElement=r.first),xs(r=qs())&&(o.draggable=r.first)}},standalone:!0,features:[Ho],decls:6,vars:8,consts:[[1,"ngneat-dialog-backdrop",3,"hidden"],["backdrop",""],["role","dialog",1,"ngneat-dialog-content",3,"ngStyle"],["dialog",""],["class","ngneat-drag-marker","dialogDraggable","",3,"dialogDragEnabled","dialogDragTarget","dragConstraint",4,"ngIf"],["class","ngneat-close-dialog",3,"click",4,"ngIf"],["dialogDraggable","",1,"ngneat-drag-marker",3,"dialogDragEnabled","dialogDragTarget","dragConstraint"],[1,"ngneat-close-dialog",3,"click"],["viewBox","0 0 329.26933 329","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","m194.800781 164.769531 128.210938-128.214843c8.34375-8.339844 8.34375-21.824219 0-30.164063-8.339844-8.339844-21.824219-8.339844-30.164063 0l-128.214844 128.214844-128.210937-128.214844c-8.34375-8.339844-21.824219-8.339844-30.164063 0-8.34375 8.339844-8.34375 21.824219 0 30.164063l128.210938 128.214843-128.210938 128.214844c-8.34375 8.339844-8.34375 21.824219 0 30.164063 4.15625 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921875-2.089844 15.082031-6.25l128.210937-128.214844 128.214844 128.214844c4.160156 4.160156 9.621094 6.25 15.082032 6.25 5.460937 0 10.921874-2.089844 15.082031-6.25 8.34375-8.339844 8.34375-21.824219 0-30.164063zm0 0"]],template:function(e,o){1&e&&(v(0,"div",0,1)(2,"div",2,3),Q(4,zxe,1,3,"div",4),Q(5,vxe,3,0,"div",5),A()()),2&e&&(A2("ngneat-dialog-backdrop-visible",o.config.backdrop),D("hidden",!o.config.backdrop),q(2),A2("ngneat-dialog-resizable",o.config.resizable),D("ngStyle",o.styles),q(2),D("ngIf",o.config.draggable),q(1),D("ngIf",o.config.closeButton))},dependencies:[cQ,Gn,f1,ao],styles:[".ngneat-dialog-content{display:flex;flex-direction:column;overflow:hidden;position:relative;animation:dialog-open .4s cubic-bezier(.25,.8,.25,1);border-radius:var(--dialog-content-border-radius, 4px);box-sizing:border-box;box-shadow:var(--dialog-content-box-shadow, 0px 11px 19px rgba(15, 20, 58, .14));background:var(--dialog-content-bg, #fff);width:auto;max-width:100%;height:auto;max-height:100%}@keyframes dialog-open{0%{transform:translate(50px)}to{transform:none}}.ngneat-dialog-content.ngneat-dialog-resizable{resize:both}.ngneat-dialog-backdrop{position:fixed;display:flex;align-items:center;justify-content:center;inset:0;height:100%;width:100%;padding:30px;z-index:var(--dialog-backdrop-z-index, 1050);background-color:transparent;animation:dialog-open-backdrop .3s}.ngneat-dialog-backdrop.ngneat-dialog-backdrop-visible{background:var(--dialog-backdrop-bg, rgba(0, 0, 0, .32))}@keyframes dialog-open-backdrop{0%{opacity:0}to{opacity:1}}.ngneat-drag-marker{position:absolute;left:0;top:0;cursor:move;width:100%;height:10px}.ngneat-close-dialog{display:flex;align-items:center;justify-content:center;position:absolute;cursor:pointer;top:var(--dialog-close-btn-top, 6px);right:var(--dialog-close-btn-right, 10px);width:var(--dialog-close-btn-size, 30px);height:var(--dialog-close-btn-size, 30px);color:var(--dialog-close-btn-color, #5f6368);transition:all .2s ease-in-out;border-radius:50%}.ngneat-close-dialog svg{width:var(--dialog-close-svg-size, 12px);height:var(--dialog-close-svg-size, 12px)}.ngneat-close-dialog:hover{color:var(--dialog-close-btn-color-hover, #5f6368);background-color:var(--dialog-close-btn-bg-hover, #eee)}body.ngneat-dialog-hidden{overflow:hidden}\n"],encapsulation:2}),n})();const dQ="ngneat-dialog-hidden";let Wu=(()=>{class n{constructor(){this.appRef=c0(C2),this.injector=c0(cc),this.document=c0(gk),this.globalConfig=c0(pQ),this.dialogs=[],this.hasOpenDialogSub=new No(!1),this.hasOpenDialogs$=this.hasOpenDialogSub.asObservable()}hasOpenDialogs(){return this.dialogs.length>0}isOpen(e){return this.dialogs.some(o=>o.id===e)}closeAll(){this.dialogs.forEach(e=>e.close())}open(e,o={}){const r=this.mergeConfig(o);r.onOpen?.();const i=new bk({id:r.id,data:r.data,backdropClick$:new N});this.throwIfIDAlreadyExists(r.id);const a={config:r,dialogRef:i};return this.dialogs.push(i),this.hasOpenDialogSub.next(!0),1===this.dialogs.length&&this.document.body.classList.add(dQ),e instanceof Hc?this.openTemplate(e,a):"function"==typeof e?this.openComponent(e,a):function wxe(n){throw new TypeError(`Dialog must receive a Component or a TemplateRef, but this has been passed instead: ${n}`)}(e)}openTemplate(e,{config:o,dialogRef:r}){const i={$implicit:r,config:o},a=o.vcr?.createEmbeddedView(e,i)||e.createEmbeddedView(i);return this.attach({dialogRef:r,config:o,ref:e,view:a,attachToApp:!o.vcr})}openComponent(e,{config:o,dialogRef:r}){const i=$7(e,{elementInjector:Jo.create({providers:[{provide:$s,useValue:r},{provide:Ok,useValue:o}],parent:o.vcr?.injector||this.injector}),environmentInjector:this.injector});return this.attach({dialogRef:r,config:o,ref:i,view:i.hostView,attachToApp:!0})}attach({dialogRef:e,config:o,ref:r,view:i,attachToApp:a}){const s=this.createDialog(o,e,i),c=o.container instanceof fn?o.container.nativeElement:o.container,l={after:new N};return e.mutate({id:o.id,data:o.data,ref:r,onClose:h=>{this.globalConfig.onClose?.(),this.dialogs=this.dialogs.filter(({id:M})=>e.id!==M),this.hasOpenDialogSub.next(this.hasOpenDialogs()),c.removeChild(s.location.nativeElement),this.appRef.detachView(s.hostView),this.appRef.detachView(i),s.destroy(),i.destroy(),e.backdropClick$.complete(),e.mutate({ref:null,onClose:null,afterClosed$:null,backdropClick$:null,beforeCloseGuards:null,onReset:null}),l.after.next(h),l.after.complete(),0===this.dialogs.length&&this.document.body.classList.remove(dQ)},afterClosed$:l.after.asObservable(),onReset:h=>{s.instance.reset(h)}}),c.appendChild(s.location.nativeElement),this.appRef.attachView(s.hostView),a&&this.appRef.attachView(i),e.asDialogRef()}createDialog(e,o,r){return $7(Cxe,{elementInjector:Jo.create({providers:[{provide:bk,useValue:o},{provide:uQ,useValue:r.rootNodes},{provide:Ok,useValue:e}],parent:this.injector}),environmentInjector:this.injector})}mergeConfig(e){return{...this.globalConfig,id:`dialog-${Math.random().toString(36).substring(7)}`,...e,sizes:this.globalConfig?.sizes}}throwIfIDAlreadyExists(e){if(this.dialogs.find(o=>o.id===e))throw new Error(`Please, ID must be unique, but there is already a dialog created with this ID: ${e}`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ot({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cA="providers/5.7.2";var dp=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})};const fl=new it("abstract-signer/5.7.0"),qxe=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Wxe=[it.errors.INSUFFICIENT_FUNDS,it.errors.NONCE_EXPIRED,it.errors.REPLACEMENT_UNDERPRICED];class mk{constructor(){fl.checkAbstract(new.target,mk),O1(this,"_isSigner",!0)}getBalance(t){return dp(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return dp(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return dp(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const e=yield Hi(this.checkTransaction(t));return yield this.provider.estimateGas(e)})}call(t,e){return dp(this,void 0,void 0,function*(){this._checkProvider("call");const o=yield Hi(this.checkTransaction(t));return yield this.provider.call(o,e)})}sendTransaction(t){return dp(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),o=yield this.signTransaction(e);return yield this.provider.sendTransaction(o)})}getChainId(){return dp(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return dp(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return dp(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return dp(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(const o in t)-1===qxe.indexOf(o)&&fl.throwArgumentError("invalid transaction key: "+o,"transaction",t);const e=Us(t);return e.from=null==e.from?this.getAddress():Promise.all([Promise.resolve(e.from),this.getAddress()]).then(o=>(o[0].toLowerCase()!==o[1].toLowerCase()&&fl.throwArgumentError("from address mismatch","transaction",t),o[0])),e}populateTransaction(t){return dp(this,void 0,void 0,function*(){const e=yield Hi(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then(r=>dp(this,void 0,void 0,function*(){if(null==r)return null;const i=yield this.resolveName(r);return null==i&&fl.throwArgumentError("provided ENS name resolves to null","tx.to",r),i})),e.to.catch(r=>{}));const o=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!o?(0===e.type||1===e.type)&&o&&fl.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):fl.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas)if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const r=yield this.getFeeData();if(null==e.type)if(null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)if(e.type=2,null!=e.gasPrice){const i=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=i,e.maxPriorityFeePerGas=i}else null==e.maxFeePerGas&&(e.maxFeePerGas=r.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=r.maxPriorityFeePerGas);else null!=r.gasPrice?(o&&fl.throwError("network does not support EIP-1559",it.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=r.gasPrice),e.type=0):fl.throwError("failed to get consistent fee data",it.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=r.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=r.maxPriorityFeePerGas))}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch(r=>{if(Wxe.indexOf(r.code)>=0)throw r;return fl.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",it.errors.UNPREDICTABLE_GAS_LIMIT,{error:r,tx:e})})),e.chainId=null==e.chainId?this.getChainId():Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then(r=>(0!==r[1]&&r[0]!==r[1]&&fl.throwArgumentError("chainId address mismatch","transaction",t),r[0])),yield Hi(e)})}_checkProvider(t){this.provider||fl.throwError("missing provider",it.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!(!t||!t._isSigner)}}const hQ="hash/5.7.0";function MQ(n){return Xi(qu(n))}const or=new it(hQ),bQ=new Uint8Array(32);bQ.fill(0);const Txe=e0.from(-1),gQ=e0.from(0),OQ=e0.from(1),Rxe=e0.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Dxe=nr(OQ.toHexString(),32),kxe=nr(gQ.toHexString(),32),mQ={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_k=["name","version","chainId","verifyingContract","salt"];function _Q(n){return function(t){return"string"!=typeof t&&or.throwArgumentError(`invalid domain value for ${JSON.stringify(n)}`,`domain.${n}`,t),t}}const Exe={name:_Q("name"),version:_Q("version"),chainId:function(n){try{return e0.from(n).toString()}catch{}return or.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",n)},verifyingContract:function(n){try{return ji(n).toLowerCase()}catch{}return or.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",n)},salt:function(n){try{const t=c1(n);if(32!==t.length)throw new Error("bad length");return a1(t)}catch{}return or.throwArgumentError('invalid domain value "salt"',"domain.salt",n)}};function zk(n){{const t=n.match(/^(u?)int(\d*)$/);if(t){const e=""===t[1],o=parseInt(t[2]||"256");(o%8!=0||o>256||t[2]&&t[2]!==String(o))&&or.throwArgumentError("invalid numeric width","type",n);const r=Rxe.mask(e?o-1:o),i=e?r.add(OQ).mul(Txe):gQ;return function(a){const s=e0.from(a);return(s.lt(i)||s.gt(r))&&or.throwArgumentError(`value out-of-bounds for ${n}`,"value",a),nr(s.toTwos(256).toHexString(),32)}}}{const t=n.match(/^bytes(\d+)$/);if(t){const e=parseInt(t[1]);return(0===e||e>32||t[1]!==String(e))&&or.throwArgumentError("invalid bytes width","type",n),function(o){return c1(o).length!==e&&or.throwArgumentError(`invalid length for ${n}`,"value",o),function Sxe(n){const t=c1(n),e=t.length%32;return e?Xs([t,bQ.slice(e)]):a1(t)}(o)}}}switch(n){case"address":return function(t){return nr(ji(t),32)};case"bool":return function(t){return t?Dxe:kxe};case"bytes":return function(t){return Xi(t)};case"string":return function(t){return MQ(t)}}return null}function zQ(n,t){return`${n}(${t.map(({name:e,type:o})=>o+" "+e).join(",")})`}class _c{constructor(t){O1(this,"types",Object.freeze(rf(t))),O1(this,"_encoderCache",{}),O1(this,"_types",{});const e={},o={},r={};Object.keys(t).forEach(s=>{e[s]={},o[s]=[],r[s]={}});for(const s in t){const c={};t[s].forEach(l=>{c[l.name]&&or.throwArgumentError(`duplicate variable name ${JSON.stringify(l.name)} in ${JSON.stringify(s)}`,"types",t),c[l.name]=!0;const u=l.type.match(/^([^\x5b]*)(\x5b|$)/)[1];u===s&&or.throwArgumentError(`circular type reference to ${JSON.stringify(u)}`,"types",t),!zk(u)&&(o[u]||or.throwArgumentError(`unknown type ${JSON.stringify(u)}`,"types",t),o[u].push(s),e[s][u]=!0)})}const i=Object.keys(o).filter(s=>0===o[s].length);0===i.length?or.throwArgumentError("missing primary type","types",t):i.length>1&&or.throwArgumentError(`ambiguous primary types or unused types: ${i.map(s=>JSON.stringify(s)).join(", ")}`,"types",t),O1(this,"primaryType",i[0]),function a(s,c){c[s]&&or.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",t),c[s]=!0,Object.keys(e[s]).forEach(l=>{o[l]&&(a(l,c),Object.keys(c).forEach(u=>{r[u][l]=!0}))}),delete c[s]}(this.primaryType,{});for(const s in r){const c=Object.keys(r[s]);c.sort(),this._types[s]=zQ(s,t[s])+c.map(l=>zQ(l,t[l])).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const r=zk(t);if(r)return r}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const r=e[1],i=this.getEncoder(r),a=parseInt(e[3]);return s=>{a>=0&&s.length!==a&&or.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",s);let c=s.map(i);return this._types[r]&&(c=c.map(Xi)),Xi(Xs(c))}}const o=this.types[t];if(o){const r=MQ(this._types[t]);return i=>{const a=o.map(({name:s,type:c})=>{const l=this.getEncoder(c)(i[s]);return this._types[c]?Xi(l):l});return a.unshift(r),Xs(a)}}return or.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||or.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return Xi(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,o){if(zk(t))return o(t,e);const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const a=r[1],s=parseInt(r[3]);return s>=0&&e.length!==s&&or.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map(c=>this._visit(a,c,o))}const i=this.types[t];return i?i.reduce((a,{name:s,type:c})=>(a[s]=this._visit(c,e[s],o),a),{}):or.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new _c(t)}static getPrimaryType(t){return _c.from(t).primaryType}static hashStruct(t,e,o){return _c.from(e).hashStruct(t,o)}static hashDomain(t){const e=[];for(const o in t){const r=mQ[o];r||or.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(o)}`,"domain",t),e.push({name:o,type:r})}return e.sort((o,r)=>_k.indexOf(o.name)-_k.indexOf(r.name)),_c.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,o){return Xs(["0x1901",_c.hashDomain(t),_c.from(e).hash(o)])}static hash(t,e,o){return Xi(_c.encode(t,e,o))}static resolveNames(t,e,o,r){return function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){t=Us(t);const i={};t.verifyingContract&&!Ao(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const a=_c.from(e);a.visit(o,(s,c)=>("address"===s&&!Ao(c,20)&&(i[c]="0x"),c));for(const s in i)i[s]=yield r(s);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),o=a.visit(o,(s,c)=>"address"===s&&i[c]?i[c]:c),{domain:t,value:o}})}static getPayload(t,e,o){_c.hashDomain(t);const r={},i=[];_k.forEach(c=>{const l=t[c];null!=l&&(r[c]=Exe[c](l),i.push({name:c,type:mQ[c]}))});const a=_c.from(e),s=Us(e);return s.EIP712Domain?or.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):s.EIP712Domain=i,a.encode(o),{types:s,domain:r,primaryType:a.primaryType,message:a.visit(o,(c,l)=>{if(c.match(/^bytes(\d*)/))return a1(c1(l));if(c.match(/^u?int/))return e0.from(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return"string"!=typeof l&&or.throwArgumentError("invalid string","value",l),l}return or.throwArgumentError("unsupported type","type",c)})}}}var Nxe=G(7084),Lu=G.n(Nxe);function fm(n,t,e){return n(e={path:t,exports:{},require:function(o,r){return function Ixe(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"&&self;var vk=vQ;function vQ(n,t){if(!n)throw new Error(t||"Assertion failed")}vQ.equal=function(t,e,o){if(t!=e)throw new Error(o||"Assertion failed: "+t+" != "+e)};var fp=fm(function(n,t){var e=t;function r(a){return 1===a.length?"0"+a:a}function i(a){for(var s="",c=0;c>8,h=255&u;d?c.push(d,h):c.push(h)}return c},e.zero2=r,e.toHex=i,e.encode=function(s,c){return"hex"===c?i(s):s}}),zc=fm(function(n,t){var e=t;e.assert=vk,e.toArray=fp.toArray,e.zero2=fp.zero2,e.toHex=fp.toHex,e.encode=fp.encode,e.getNAF=function o(c,l,u){var d=new Array(Math.max(c.bitLength(),u)+1);d.fill(0);for(var h=1<(h>>1)-1?(h>>1)-z:z):_=0,d[g]=_,M.iushrn(1)}return d},e.getJSF=function r(c,l){var u=[[],[]];c=c.clone(),l=l.clone();for(var M,d=0,h=0;c.cmpn(-d)>0||l.cmpn(-h)>0;){var z,y,g=c.andln(3)+d&3,_=l.andln(3)+h&3;3===g&&(g=-1),3===_&&(_=-1),z=1&g?3!=(M=c.andln(7)+d&7)&&5!==M||2!==_?g:-g:0,u[0].push(z),y=1&_?3!=(M=l.andln(7)+h&7)&&5!==M||2!==g?_:-_:0,u[1].push(y),2*d===z+1&&(d=1-d),2*h===y+1&&(h=1-h),c.iushrn(1),l.iushrn(1)}return u},e.cachedProperty=function i(c,l,u){var d="_"+l;c.prototype[l]=function(){return void 0!==this[d]?this[d]:this[d]=u.call(this)}},e.parseBytes=function a(c){return"string"==typeof c?e.toArray(c,"hex"):c},e.intFromLE=function s(c){return new(y1())(c,"hex","le")}}),GP=zc.getNAF,Bxe=zc.getJSF,ZP=zc.assert;function Mf(n,t){this.type=n,this.p=new(y1())(t.p,16),this.red=t.prime?y1().red(t.prime):y1().mont(this.p),this.zero=new(y1())(0).toRed(this.red),this.one=new(y1())(1).toRed(this.red),this.two=new(y1())(2).toRed(this.red),this.n=t.n&&new(y1())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var e=this.n&&this.p.div(this.n);!e||e.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var PM=Mf;function hl(n,t){this.curve=n,this.type=t,this.precomputed=null}Mf.prototype.point=function(){throw new Error("Not implemented")},Mf.prototype.validate=function(){throw new Error("Not implemented")},Mf.prototype._fixedNafMul=function(t,e){ZP(t.precomputed);var o=t._getDoubles(),r=GP(e,1,this._bitLength),i=(1<=s;l--)c=(c<<1)+r[l];a.push(c)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(s=0;s=0;c--){for(var l=0;c>=0&&0===a[c];c--)l++;if(c>=0&&l++,s=s.dblp(l),c<0)break;var u=a[c];ZP(0!==u),s="affine"===t.type?s.mixedAdd(u>0?i[u-1>>1]:i[-u-1>>1].neg()):s.add(u>0?i[u-1>>1]:i[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},Mf.prototype._wnafMulAdd=function(t,e,o,r,i){var u,d,h,a=this._wnafT1,s=this._wnafT2,c=this._wnafT3,l=0;for(u=0;u=1;u-=2){var g=u-1,_=u;if(1===a[g]&&1===a[_]){var z=[e[g],null,null,e[_]];0===e[g].y.cmp(e[_].y)?(z[1]=e[g].add(e[_]),z[2]=e[g].toJ().mixedAdd(e[_].neg())):0===e[g].y.cmp(e[_].y.redNeg())?(z[1]=e[g].toJ().mixedAdd(e[_]),z[2]=e[g].add(e[_].neg())):(z[1]=e[g].toJ().mixedAdd(e[_]),z[2]=e[g].toJ().mixedAdd(e[_].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],x=Bxe(o[g],o[_]);for(l=Math.max(x[0].length,l),c[g]=new Array(l),c[_]=new Array(l),d=0;d=0;u--){for(var ie=0;u>=0;){var ee=!0;for(d=0;d=0&&ie++,X=X.dblp(ie),u<0)break;for(d=0;d0?h=s[d][ce-1>>1]:ce<0&&(h=s[d][-ce-1>>1].neg()),X="affine"===h.type?X.mixedAdd(h):X.add(h))}}for(u=0;u=Math.ceil((t.bitLength()+1)/e.step)},hl.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var o=[this],r=this,i=0;i=0&&(M=l,g=u),d.negative&&(d=d.neg(),h=h.neg()),M.negative&&(M=M.neg(),g=g.neg()),[{a:d,b:h},{a:M,b:g}]},Ml.prototype._endoSplit=function(t){var e=this.endo.basis,o=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),a=o.b.neg().mul(t).divRound(this.n),s=i.mul(o.a),c=a.mul(r.a),l=i.mul(o.b),u=a.mul(r.b);return{k1:t.sub(s).sub(c),k2:l.add(u).neg()}},Ml.prototype.pointFromX=function(t,e){(t=new(y1())(t,16)).red||(t=t.toRed(this.red));var o=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=o.redSqrt();if(0!==r.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},Ml.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,o=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===o.redSqr().redISub(i).cmpn(0)},Ml.prototype._endoWnafMulAdd=function(t,e,o){for(var r=this._endoWnafT1,i=this._endoWnafT2,a=0;a":""},xi.prototype.isInfinity=function(){return this.inf},xi.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var o=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,r)},xi.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,o=this.x.redSqr(),r=t.redInvm(),i=o.redAdd(o).redIAdd(o).redIAdd(e).redMul(r),a=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},xi.prototype.getX=function(){return this.x.fromRed()},xi.prototype.getY=function(){return this.y.fromRed()},xi.prototype.mul=function(t){return t=new(y1())(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},xi.prototype.mulAdd=function(t,e,o){var r=[this,e],i=[t,o];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},xi.prototype.jmulAdd=function(t,e,o){var r=[this,e],i=[t,o];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},xi.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},xi.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var o=this.precomputed,r=function(i){return i.neg()};e.precomputed={naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(r)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(r)}}}return e},xi.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Ak(Vi,PM.BasePoint),Ml.prototype.jpoint=function(t,e,o){return new Vi(this,t,e,o)},Vi.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),o=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(o,r)},Vi.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Vi.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),o=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(o),a=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(o.redMul(this.z)),c=r.redSub(i),l=a.redSub(s);if(0===c.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=c.redSqr(),d=u.redMul(c),h=r.redMul(u),M=l.redSqr().redIAdd(d).redISub(h).redISub(h),g=l.redMul(h.redISub(M)).redISub(a.redMul(d)),_=this.z.redMul(t.z).redMul(c);return this.curve.jpoint(M,g,_)},Vi.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),o=this.x,r=t.x.redMul(e),i=this.y,a=t.y.redMul(e).redMul(this.z),s=o.redSub(r),c=i.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),d=o.redMul(l),h=c.redSqr().redIAdd(u).redISub(d).redISub(d),M=c.redMul(d.redISub(h)).redISub(i.redMul(u)),g=this.z.redMul(s);return this.curve.jpoint(h,M,g)},Vi.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var o=this;for(e=0;e=0)return!1;if(o.redIAdd(i),0===this.x.cmp(o))return!0}},Vi.prototype.inspect=function(){return this.isInfinity()?"":""},Vi.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var KP=fm(function(n,t){var e=t;e.base=PM,e.short=Yxe,e.mont=null,e.edwards=null}),JP=fm(function(n,t){var a,e=t,o=zc.assert;function r(s){this.curve="short"===s.type?new KP.short(s):"edwards"===s.type?new KP.edwards(s):new KP.mont(s),this.g=this.curve.g,this.n=this.curve.n,this.hash=s.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(s,c){Object.defineProperty(e,s,{configurable:!0,enumerable:!0,get:function(){var l=new r(c);return Object.defineProperty(e,s,{configurable:!0,enumerable:!0,value:l}),l}})}e.PresetCurve=r,i("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Lu().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Lu().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Lu().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Lu().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),i("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Lu().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Lu().sha256,gRed:!1,g:["9"]}),i("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Lu().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{a=null.crash()}catch{a=void 0}i("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Lu().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})});function bf(n){if(!(this instanceof bf))return new bf(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=fp.toArray(n.entropy,n.entropyEnc||"hex"),e=fp.toArray(n.nonce,n.nonceEnc||"hex"),o=fp.toArray(n.pers,n.persEnc||"hex");vk(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,e,o)}var AQ=bf;bf.prototype._init=function(t,e,o){var r=t.concat(e).concat(o);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(o||[])),this._reseed=1},bf.prototype.generate=function(t,e,o,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=o,o=e,e=null),o&&(o=fp.toArray(o,r||"hex"),this._update(o));for(var i=[];i.length"};var Hxe=zc.assert;function QP(n,t){if(n instanceof QP)return n;this._importDER(n,t)||(Hxe(n.r&&n.s,"Signature without r or s"),this.r=new(y1())(n.r,16),this.s=new(y1())(n.s,16),this.recoveryParam=void 0===n.recoveryParam?null:n.recoveryParam)}var ex=QP;function Xxe(){this.place=0}function wk(n,t){var e=n[t.place++];if(!(128&e))return e;var o=15&e;if(0===o||o>4)return!1;for(var r=0,i=0,a=t.place;i>>=0;return!(r<=127)&&(t.place=a,r)}function yQ(n){for(var t=0,e=n.length-1;!n[t]&&!(128&n[t+1])&&t>>3);for(n.push(128|e);--e;)n.push(t>>>(e<<3)&255);n.push(t)}}QP.prototype._importDER=function(t,e){t=zc.toArray(t,e);var o=new Xxe;if(48!==t[o.place++])return!1;var r=wk(t,o);if(!1===r||r+o.place!==t.length||2!==t[o.place++])return!1;var i=wk(t,o);if(!1===i)return!1;var a=t.slice(o.place,i+o.place);if(o.place+=i,2!==t[o.place++])return!1;var s=wk(t,o);if(!1===s||t.length!==s+o.place)return!1;var c=t.slice(o.place,s+o.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new(y1())(a),this.s=new(y1())(c),this.recoveryParam=null,!0},QP.prototype.toDER=function(t){var e=this.r.toArray(),o=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&o[0]&&(o=[0].concat(o)),e=yQ(e),o=yQ(o);!(o[0]||128&o[1]);)o=o.slice(1);var r=[2];Pk(r,e.length),(r=r.concat(e)).push(2),Pk(r,o.length);var i=r.concat(o),a=[48];return Pk(a,i.length),a=a.concat(i),zc.encode(a,t)};var jxe=function(){throw new Error("unsupported")},CQ=zc.assert;function bl(n){if(!(this instanceof bl))return new bl(n);"string"==typeof n&&(CQ(Object.prototype.hasOwnProperty.call(JP,n),"Unknown curve "+n),n=JP[n]),n instanceof JP.PresetCurve&&(n={curve:n}),this.curve=n.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=n.curve.g,this.g.precompute(n.curve.n.bitLength()+1),this.hash=n.hash||n.curve.hash}var Uxe=bl;bl.prototype.keyPair=function(t){return new Ck(this,t)},bl.prototype.keyFromPrivate=function(t,e){return Ck.fromPrivate(this,t,e)},bl.prototype.keyFromPublic=function(t,e){return Ck.fromPublic(this,t,e)},bl.prototype.genKeyPair=function(t){t||(t={});for(var e=new AQ({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||jxe(),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),r=this.n.sub(new(y1())(2));;){var i=new(y1())(e.generate(o));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},bl.prototype._truncateToN=function(t,e){var o=8*t.byteLength()-this.n.bitLength();return o>0&&(t=t.ushrn(o)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},bl.prototype.sign=function(t,e,o,r){"object"==typeof o&&(r=o,o=null),r||(r={}),e=this.keyFromPrivate(e,o),t=this._truncateToN(new(y1())(t,16));for(var i=this.n.byteLength(),a=e.getPrivate().toArray("be",i),s=t.toArray("be",i),c=new AQ({hash:this.hash,entropy:a,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new(y1())(1)),u=0;;u++){var d=r.k?r.k(u):new(y1())(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(l)>=0)){var h=this.g.mul(d);if(!h.isInfinity()){var M=h.getX(),g=M.umod(this.n);if(0!==g.cmpn(0)){var _=d.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(_=_.umod(this.n)).cmpn(0)){var z=(h.getY().isOdd()?1:0)|(0!==M.cmp(g)?2:0);return r.canonical&&_.cmp(this.nh)>0&&(_=this.n.sub(_),z^=1),new ex({r:g,s:_,recoveryParam:z})}}}}}},bl.prototype.verify=function(t,e,o,r){t=this._truncateToN(new(y1())(t,16)),o=this.keyFromPublic(o,r);var i=(e=new ex(e,"hex")).r,a=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var u,s=a.invm(this.n),c=s.mul(t).umod(this.n),l=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(c,o.getPublic(),l)).isInfinity()&&u.eqXToP(i):!(u=this.g.mulAdd(c,o.getPublic(),l)).isInfinity()&&0===u.getX().umod(this.n).cmp(i)},bl.prototype.recoverPubKey=function(n,t,e,o){CQ((3&e)===e,"The recovery param is more than two bits"),t=new ex(t,o);var r=this.n,i=new(y1())(n),a=t.r,s=t.s,c=1&e,l=e>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");a=this.curve.pointFromX(l?a.add(this.curve.n):a,c);var u=t.r.invm(r),d=r.sub(i).mul(u).umod(r),h=s.mul(u).umod(r);return this.g.mulAdd(d,a,h)},bl.prototype.getKeyRecoveryParam=function(n,t,e,o){if(null!==(t=new ex(t,o)).recoveryParam)return t.recoveryParam;for(var r=0;r<4;r++){var i;try{i=this.recoverPubKey(n,t,r)}catch{continue}if(i.eq(e))return r}throw new Error("Unable to find valid recovery factor")};var Vxe=fm(function(n,t){var e=t;e.version="6.5.4",e.utils=zc,e.rand=function(){throw new Error("unsupported")},e.curve=KP,e.curves=JP,e.ec=Uxe,e.eddsa=null}),$xe=Vxe.ec;const xk=new it("signing-key/5.7.0");let qk=null;function Tu(){return qk||(qk=new $xe("secp256k1")),qk}class Zxe{constructor(t){O1(this,"curve","secp256k1"),O1(this,"privateKey",a1(t)),32!==bM(this.privateKey)&&xk.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=Tu().keyFromPrivate(c1(this.privateKey));O1(this,"publicKey","0x"+e.getPublic(!1,"hex")),O1(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),O1(this,"_isSigningKey",!0)}_addPoint(t){const e=Tu().keyFromPublic(c1(this.publicKey)),o=Tu().keyFromPublic(c1(t));return"0x"+e.pub.add(o.pub).encodeCompressed("hex")}signDigest(t){const e=Tu().keyFromPrivate(c1(this.privateKey)),o=c1(t);32!==o.length&&xk.throwArgumentError("bad digest length","digest",t);const r=e.sign(o,{canonical:!0});return Iv({recoveryParam:r.recoveryParam,r:nr("0x"+r.r.toString(16),32),s:nr("0x"+r.s.toString(16),32)})}computeSharedSecret(t){const e=Tu().keyFromPrivate(c1(this.privateKey)),o=Tu().keyFromPublic(c1(wQ(t)));return nr("0x"+e.derive(o.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function wQ(n,t){const e=c1(n);if(32===e.length){const o=new Zxe(e);return t?"0x"+Tu().keyFromPrivate(e).getPublic(!0,"hex"):o.publicKey}return 33===e.length?t?a1(e):"0x"+Tu().keyFromPublic(e).getPublic(!1,"hex"):65===e.length?t?"0x"+Tu().keyFromPublic(e).getPublic(!0,"hex"):a1(e):xk.throwArgumentError("invalid public or private key","key","[REDACTED]")}const xa=new it("transactions/5.7.0");function Wk(n){return"0x"===n?null:ji(n)}function qa(n){return"0x"===n?NK:e0.from(n)}function PQ(n,t){return function tqe(n){return ji(Ca(Xi(Ca(wQ(n),1)),12))}(function Kxe(n,t){const e=Iv(t),o={r:c1(e.r),s:c1(e.s)};return"0x"+Tu().recoverPubKey(c1(n),o,e.recoveryParam).encode("hex",!1)}(c1(n),t))}function vc(n,t){const e=KO(e0.from(n).toHexString());return e.length>32&&xa.throwArgumentError("invalid length for "+t,"transaction:"+t,n),e}function Lk(n,t){return{address:ji(n),storageKeys:(t||[]).map((e,o)=>(32!==bM(e)&&xa.throwArgumentError("invalid access list storageKey",`accessList[${n}:${o}]`,e),e.toLowerCase()))}}function hm(n){if(Array.isArray(n))return n.map((e,o)=>Array.isArray(e)?(e.length>2&&xa.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${o}]`,e),Lk(e[0],e[1])):Lk(e.address,e.storageKeys));const t=Object.keys(n).map(e=>{const o=n[e].reduce((r,i)=>(r[i]=!0,r),{});return Lk(e,Object.keys(o).sort())});return t.sort((e,o)=>e.address.localeCompare(o.address)),t}function xQ(n){return hm(n).map(t=>[t.address,t.storageKeys])}function qQ(n,t){if(null!=n.gasPrice){const o=e0.from(n.gasPrice),r=e0.from(n.maxFeePerGas||0);o.eq(r)||xa.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:o,maxFeePerGas:r})}const e=[vc(n.chainId||0,"chainId"),vc(n.nonce||0,"nonce"),vc(n.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),vc(n.maxFeePerGas||0,"maxFeePerGas"),vc(n.gasLimit||0,"gasLimit"),null!=n.to?ji(n.to):"0x",vc(n.value||0,"value"),n.data||"0x",xQ(n.accessList||[])];if(t){const o=Iv(t);e.push(vc(o.recoveryParam,"recoveryParam")),e.push(KO(o.r)),e.push(KO(o.s))}return Xs(["0x02",PP(e)])}function WQ(n,t){const e=[vc(n.chainId||0,"chainId"),vc(n.nonce||0,"nonce"),vc(n.gasPrice||0,"gasPrice"),vc(n.gasLimit||0,"gasLimit"),null!=n.to?ji(n.to):"0x",vc(n.value||0,"value"),n.data||"0x",xQ(n.accessList||[])];if(t){const o=Iv(t);e.push(vc(o.recoveryParam,"recoveryParam")),e.push(KO(o.r)),e.push(KO(o.s))}return Xs(["0x01",PP(e)])}function LQ(n,t,e){try{const o=qa(t[0]).toNumber();if(0!==o&&1!==o)throw new Error("bad recid");n.v=o}catch{xa.throwArgumentError("invalid v for transaction type: 1","v",t[0])}n.r=nr(t[1],32),n.s=nr(t[2],32);try{const o=Xi(e(n));n.from=PQ(o,{r:n.r,s:n.s,recoveryParam:n.v})}catch{}}function TQ(n){n=atob(n);const t=[];for(let e=0;e{i[s.toLowerCase()]=a}):o.headers.keys().forEach(a=>{i[a.toLowerCase()]=o.headers.get(a)}),{headers:i,statusCode:o.status,statusMessage:o.statusText,body:c1(new Uint8Array(r))}})}var pqe=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})};const hp=new it("web/5.7.1");function SQ(n){return new Promise(t=>{setTimeout(t,n)})}function gf(n,t){if(null==n)return null;if("string"==typeof n)return n;if(x8(n)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return jv(n)}catch{}return a1(n)}return n}function uqe(n){return qu(n.replace(/%([0-9a-f][0-9a-f])/gi,(t,e)=>String.fromCharCode(parseInt(e,16))))}function tx(n,t,e){let r=null;if(null!=t){r=qu(t);const i="string"==typeof n?{url:n}:Us(n);i.headers?0!==Object.keys(i.headers).filter(s=>"content-type"===s.toLowerCase()).length||(i.headers=Us(i.headers),i.headers["content-type"]="application/json"):i.headers={"content-type":"application/json"},n=i}return function dqe(n,t,e){const o="object"==typeof n&&null!=n.throttleLimit?n.throttleLimit:12;hp.assertArgument(o>0&&o%1==0,"invalid connection throttle limit","connection.throttleLimit",o);const r="object"==typeof n?n.throttleCallback:null,i="object"==typeof n&&"number"==typeof n.throttleSlotInterval?n.throttleSlotInterval:100;hp.assertArgument(i>0&&i%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);const a="object"==typeof n&&!!n.errorPassThrough,s={};let c=null;const l={method:"GET"};let u=!1,d=12e4;if("string"==typeof n)c=n;else if("object"==typeof n){if((null==n||null==n.url)&&hp.throwArgumentError("missing URL","connection.url",n),c=n.url,"number"==typeof n.timeout&&n.timeout>0&&(d=n.timeout),n.headers)for(const y in n.headers)s[y.toLowerCase()]={key:y,value:String(n.headers[y])},["if-none-match","if-modified-since"].indexOf(y.toLowerCase())>=0&&(u=!0);l.allowGzip=!!n.allowGzip,null!=n.user&&null!=n.password&&("https:"!==c.substring(0,6)&&!0!==n.allowInsecureAuthentication&&hp.throwError("basic authentication requires a secure https url",it.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:n.user,password:"[REDACTED]"}),s.authorization={key:"Authorization",value:"Basic "+RQ(qu(n.user+":"+n.password))}),null!=n.skipFetchSetup&&(l.skipFetchSetup=!!n.skipFetchSetup),null!=n.fetchOptions&&(l.fetchOptions=Us(n.fetchOptions))}const h=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),M=c?c.match(h):null;if(M)try{const y={statusCode:200,statusMessage:"OK",headers:{"content-type":M[1]||"text/plain"},body:M[2]?TQ(M[3]):uqe(M[3])};let x=y.body;return e&&(x=e(y.body,y)),Promise.resolve(x)}catch(y){hp.throwError("processing response error",it.errors.SERVER_ERROR,{body:gf(M[1],M[2]),error:y,requestBody:null,requestMethod:"GET",url:c})}t&&(l.method="POST",l.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)}));const g={};Object.keys(s).forEach(y=>{const x=s[y];g[x.key]=x.value}),l.headers=g;const _=function(){let y=null;return{promise:new Promise(function(S,X){d&&(y=setTimeout(()=>{null!=y&&(y=null,X(hp.makeError("timeout",it.errors.TIMEOUT,{requestBody:gf(l.body,g["content-type"]),requestMethod:l.method,timeout:d,url:c})))},d))}),cancel:function(){null!=y&&(clearTimeout(y),y=null)}}}(),z=function(){return pqe(this,void 0,void 0,function*(){for(let y=0;y=300)&&(_.cancel(),hp.throwError("bad response",it.errors.SERVER_ERROR,{status:x.statusCode,headers:x.headers,body:gf(L,x.headers?x.headers["content-type"]:null),requestBody:gf(l.body,g["content-type"]),requestMethod:l.method,url:c})),e)try{const S=yield e(L,x);return _.cancel(),S}catch(S){if(S.throttleRetry&&y{let s=null;if(null!=i)try{s=JSON.parse(jv(i))}catch(c){hp.throwError("invalid JSON",it.errors.SERVER_ERROR,{body:i,error:c})}return e&&(s=e(s,a)),s})}function lA(n,t){return t||(t={}),null==(t=Us(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(e,o){let r=null,i=!1;const a=()=>!i&&(i=!0,r&&clearTimeout(r),!0);t.timeout&&(r=setTimeout(()=>{a()&&o(new Error("timeout"))},t.timeout));const s=t.retryLimit;let c=0;!function l(){return n().then(function(u){if(void 0!==u)a()&&e(u);else if(t.oncePoll)t.oncePoll.once("poll",l);else if(t.onceBlock)t.onceBlock.once("block",l);else if(!i){if(c++,c>s)return void(a()&&o(new Error("retry limit reached")));let d=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));dt.ceiling&&(d=t.ceiling),setTimeout(l,d)}return null},function(u){a()&&o(u)})}()})}const pA=new it("abstract-provider/5.7.0");class Mqe extends ICe{static isForkEvent(t){return!(!t||!t._isForkEvent)}}class Tk{constructor(){pA.checkAbstract(new.target,Tk),O1(this,"_isProvider",!0)}getFeeData(){return function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){const{block:t,gasPrice:e}=yield Hi({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(a=>null)});let o=null,r=null,i=null;return t&&t.baseFeePerGas&&(o=t.baseFeePerGas,i=e0.from("1500000000"),r=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:o,maxFeePerGas:r,maxPriorityFeePerGas:i,gasPrice:e}})}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}class DQ{constructor(t){O1(this,"alphabet",t),O1(this,"base",t.length),O1(this,"_alphabetMap",{}),O1(this,"_leader",t.charAt(0));for(let e=0;e0;)o.push(a%this.base),a=a/this.base|0}let r="";for(let i=0;0===e[i]&&i=0;--i)r+=this.alphabet[o[i]];return r}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let o=0;o>=8;for(;i>0;)e.push(255&i),i>>=8}for(let o=0;t[o]===this._leader&&o0&&Array.isArray(s)?r(s,a-1):e.push(s)})};return r(n,t),e}function zqe(n){return 1&n?~n>>1:n>>1}function EQ(n,t){let e=Array(n);for(let o=0,r=-1;ot[a]):e}function NQ(n,t,e){let o=Array(n).fill(void 0).map(()=>[]);for(let r=0;ro[a].push(i));return o}function wqe(n,t){let e=1+t(),o=t(),r=function Cqe(n){let t=[];for(;;){let e=n();if(0==e)break;t.push(e)}return t}(t);return kQ(NQ(r.length,1+n,t).map((a,s)=>{const c=a[0],l=a.slice(1);return Array(r[s]).fill(void 0).map((u,d)=>{let h=d*o;return[c+d*e,l.map(M=>M+h)]})}))}function Pqe(n,t){return NQ(1+t(),1+n,t).map(r=>[r[0],r.slice(1)])}const ox=function qqe(){return function _qe(n){return function mqe(n){let t=0;return()=>n[t++]}(function Oqe(n){let t=0;function e(){return n[t++]<<8|n[t++]}let o=e(),r=1,i=[0,1];for(let X=1;X>--c&1}const h=Math.pow(2,31),M=h>>>1,g=M>>1,_=h-1;let z=0;for(let X=0;X<31;X++)z=z<<1|u();let y=[],x=0,L=h;for(;;){let X=Math.floor(((z-x+1)*r-1)/L),H=0,ie=o;for(;ie-H>1;){let fe=H+ie>>>1;X>>1|u(),ee=ee<<1^M,ce=(ce^M)<<1|M|1;x=ee,L=1+ce-ee}let S=o-4;return y.map(X=>{switch(X-S){case 3:return S+65792+(n[s++]<<16|n[s++]<<8|n[s++]);case 2:return S+256+(n[s++]<<8|n[s++]);case 1:return S+n[s++];default:return X-1}})}(n))}(TQ("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}(),Wqe=new Set(nx(ox)),Lqe=new Set(nx(ox)),Tqe=function yqe(n){let t=[];for(;;){let e=n();if(0==e)break;t.push(wqe(e,n))}for(;;){let e=n()-1;if(e<0)break;t.push(Pqe(e,n))}return function gqe(n){const t={};for(let e=0;eo-r);return function e(){let o=[];for(;;){let l=nx(n,t);if(0==l.length)break;o.push({set:new Set(l),node:e()})}o.sort((l,u)=>u.set.size-l.set.size);let r=n(),i=r%3;r=r/3|0;let a=!!(1&r);return r>>=1,{branches:o,valid:i,fe0f:a,save:1==r,check:2==r}}()}(ox),IQ=45,BQ=95;function FQ(n){return function l5e(n,t=tm.current){return k8(qu(n,t))}(n)}function Sqe(n){return n.filter(t=>65039!=t)}function YQ(n){for(let t of n.split(".")){let e=FQ(t);try{for(let o=e.lastIndexOf(BQ)-1;o>=0;o--)if(e[o]!==BQ)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every(o=>o<128)&&e[2]===IQ&&e[3]===IQ)throw new Error("invalid label extension")}catch(o){throw new Error(`Invalid label "${t}": ${o.message}`)}}return n}function Nqe(n,t){var e;let r,i,o=Rqe,a=[],s=n.length;for(t&&(t.length=0);s;){let c=n[--s];if(o=null===(e=o.branches.find(l=>l.set.has(c)))||void 0===e?void 0:e.node,!o)break;if(o.save)i=c;else if(o.check&&c===i)break;a.push(c),o.fe0f&&(a.push(65039),s>0&&65039==n[s-1]&&s--),o.valid&&(r=a.slice(),2==o.valid&&r.splice(1,1),t&&t.push(...n.slice(s).reverse()),n.length=s)}return r}const Iqe=new it(hQ),HQ=new Uint8Array(32);function XQ(n){if(0===n.length)throw new Error("invalid ENS name; empty component");return n}function rx(n){const t=qu(function Dqe(n){return YQ(function kqe(n,t){let e=FQ(n).reverse(),o=[];for(;e.length;){let r=Nqe(e);if(r){o.push(...t(r));continue}let i=e.pop();if(Wqe.has(i)){o.push(i);continue}if(Lqe.has(i))continue;let a=Tqe[i];if(!a)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);o.push(...a)}return YQ(function Eqe(n){return n.normalize("NFC")}(String.fromCodePoint(...o)))}(n,Sqe))}(n)),e=[];if(0===n.length)return e;let o=0;for(let r=0;r=t.length)throw new Error("invalid ENS name; empty component");return e.push(XQ(t.slice(o))),e}function ix(n){"string"!=typeof n&&Iqe.throwArgumentError("invalid ENS name; not a string","name",n);let t=HQ;const e=rx(n);for(;e.length;)t=Xi(pp([t,Xi(e.pop())]));return a1(t)}function Bqe(n){return a1(pp(rx(n).map(t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e})))+"00"}HQ.fill(0);const jQ=new it("networks/5.7.1");function Sd(n){const t=function(e,o){null==o&&(o={});const r=[];if(e.InfuraProvider&&"-"!==o.infura)try{r.push(new e.InfuraProvider(n,o.infura))}catch{}if(e.EtherscanProvider&&"-"!==o.etherscan)try{r.push(new e.EtherscanProvider(n,o.etherscan))}catch{}if(e.AlchemyProvider&&"-"!==o.alchemy)try{r.push(new e.AlchemyProvider(n,o.alchemy))}catch{}if(e.PocketProvider&&"-"!==o.pocket){const i=["goerli","ropsten","rinkeby","sepolia"];try{const a=new e.PocketProvider(n,o.pocket);a.network&&-1===i.indexOf(a.network.name)&&r.push(a)}catch{}}if(e.CloudflareProvider&&"-"!==o.cloudflare)try{r.push(new e.CloudflareProvider(n))}catch{}if(e.AnkrProvider&&"-"!==o.ankr)try{const i=["ropsten"],a=new e.AnkrProvider(n,o.ankr);a.network&&-1===i.indexOf(a.network.name)&&r.push(a)}catch{}if(0===r.length)return null;if(e.FallbackProvider){let i=1;return null!=o.quorum?i=o.quorum:"homestead"===n&&(i=2),new e.FallbackProvider(r,i)}return r[0]};return t.renetwork=function(e){return Sd(e)},t}function ax(n,t){const e=function(o,r){return o.JsonRpcProvider?new o.JsonRpcProvider(n,t):null};return e.renetwork=function(o){return ax(n,o)},e}const UQ={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Sd("homestead")},VQ={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Sd("ropsten")},$Q={chainId:63,name:"classicMordor",_defaultProvider:ax("https://www.ethercluster.com/mordor","classicMordor")},sx={unspecified:{chainId:0,name:"unspecified"},homestead:UQ,mainnet:UQ,morden:{chainId:2,name:"morden"},ropsten:VQ,testnet:VQ,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Sd("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Sd("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Sd("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Sd("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:ax("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:$Q,classicTestnet:$Q,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:ax("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Sd("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Sd("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function GQ(n){return"0x"+Lu().sha256().update(c1(n)).digest("hex")}new it("sha2/5.7.0");var Uqe=G(988),ZQ=G.n(Uqe);const uA=new it(cA);class _0{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),o=this.bigNumber.bind(this),r=this.blockTag.bind(this),i=this.data.bind(this),a=this.hash.bind(this),s=this.hex.bind(this),c=this.number.bind(this),l=this.type.bind(this);return t.transaction={hash:a,type:l,accessList:_0.allowNull(this.accessList.bind(this),null),blockHash:_0.allowNull(a,null),blockNumber:_0.allowNull(c,null),transactionIndex:_0.allowNull(c,null),confirmations:_0.allowNull(c,null),from:e,gasPrice:_0.allowNull(o),maxPriorityFeePerGas:_0.allowNull(o),maxFeePerGas:_0.allowNull(o),gasLimit:o,to:_0.allowNull(e,null),value:o,nonce:c,data:i,r:_0.allowNull(this.uint256),s:_0.allowNull(this.uint256),v:_0.allowNull(c),creates:_0.allowNull(e,null),raw:_0.allowNull(i)},t.transactionRequest={from:_0.allowNull(e),nonce:_0.allowNull(c),gasLimit:_0.allowNull(o),gasPrice:_0.allowNull(o),maxPriorityFeePerGas:_0.allowNull(o),maxFeePerGas:_0.allowNull(o),to:_0.allowNull(e),value:_0.allowNull(o),data:_0.allowNull(d=>this.data(d,!0)),type:_0.allowNull(c),accessList:_0.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:c,blockNumber:c,transactionHash:a,address:e,topics:_0.arrayOf(a),data:i,logIndex:c,blockHash:a},t.receipt={to:_0.allowNull(this.address,null),from:_0.allowNull(this.address,null),contractAddress:_0.allowNull(e,null),transactionIndex:c,root:_0.allowNull(s),gasUsed:o,logsBloom:_0.allowNull(i),blockHash:a,transactionHash:a,logs:_0.arrayOf(this.receiptLog.bind(this)),blockNumber:c,confirmations:_0.allowNull(c,null),cumulativeGasUsed:o,effectiveGasPrice:_0.allowNull(o),status:_0.allowNull(c),type:l},t.block={hash:_0.allowNull(a),parentHash:a,number:c,timestamp:c,nonce:_0.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:o,gasUsed:o,miner:_0.allowNull(e),extraData:i,transactions:_0.allowNull(_0.arrayOf(a)),baseFeePerGas:_0.allowNull(o)},t.blockWithTransactions=Us(t.block),t.blockWithTransactions.transactions=_0.allowNull(_0.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:_0.allowNull(r,void 0),toBlock:_0.allowNull(r,void 0),blockHash:_0.allowNull(a,void 0),address:_0.allowNull(e,void 0),topics:_0.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:_0.allowNull(c),blockHash:_0.allowNull(a),transactionIndex:c,removed:_0.allowNull(this.boolean.bind(this)),address:e,data:_0.allowFalsish(i,"0x"),topics:_0.arrayOf(a),transactionHash:a,logIndex:c},t}accessList(t){return hm(t||[])}number(t){return"0x"===t?0:e0.from(t).toNumber()}type(t){return"0x"===t||null==t?0:e0.from(t).toNumber()}bigNumber(t){return e0.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(!e&&"0x"!==t.substring(0,2)&&(t="0x"+t),Ao(t))?t.toLowerCase():uA.throwArgumentError("invalid hash","value",t)}data(t,e){const o=this.hex(t,e);if(o.length%2!=0)throw new Error("invalid data; odd-length - "+t);return o}address(t){return ji(t)}callAddress(t){if(!Ao(t,32))return null;const e=ji(Ca(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}contractAddress(t){return function UCe(n){let t=null;try{t=ji(n.from)}catch{af.throwArgumentError("missing from address","transaction",n)}return ji(Ca(Xi(PP([t,KO(c1(e0.from(n.nonce).toHexString()))])),12))}(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";switch(t){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return t}if("number"==typeof t||Ao(t))return Nv(t);throw new Error("invalid blockTag")}hash(t,e){const o=this.hex(t,e);return 32!==bM(o)?uA.throwArgumentError("invalid hash","value",t):o}difficulty(t){if(null==t)return null;const e=e0.from(t);try{return e.toNumber()}catch{}return null}uint256(t){if(!Ao(t))throw new Error("invalid uint256");return nr(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const o=null!=t._difficulty?t._difficulty:t.difficulty,r=_0.check(e,t);return r._difficulty=null==o?null:e0.from(o),r}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return _0.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&e0.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),(1===t.type||2===t.type)&&null==t.accessList&&(t.accessList=[]);const e=_0.check(this.formats.transaction,t);if(null!=t.chainId){let o=t.chainId;Ao(o)&&(o=e0.from(o).toNumber()),e.chainId=o}else{let o=t.networkId;null==o&&null==e.v&&(o=t.chainId),Ao(o)&&(o=e0.from(o).toNumber()),"number"!=typeof o&&null!=e.v&&(o=(e.v-35)/2,o<0&&(o=0),o=parseInt(o)),"number"!=typeof o&&(o=0),e.chainId=o}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return function aqe(n){const t=c1(n);if(t[0]>127)return function iqe(n){const t=S8(n);9!==t.length&&6!==t.length&&xa.throwArgumentError("invalid raw transaction","rawTransaction",n);const e={nonce:qa(t[0]).toNumber(),gasPrice:qa(t[1]),gasLimit:qa(t[2]),to:Wk(t[3]),value:qa(t[4]),data:t[5],chainId:0};if(6===t.length)return e;try{e.v=e0.from(t[6]).toNumber()}catch{return e}if(e.r=nr(t[7],32),e.s=nr(t[8],32),e0.from(e.r).isZero()&&e0.from(e.s).isZero())e.chainId=e.v,e.v=0;else{e.chainId=Math.floor((e.v-35)/2),e.chainId<0&&(e.chainId=0);let o=e.v-27;const r=t.slice(0,6);0!==e.chainId&&(r.push(a1(e.chainId)),r.push("0x"),r.push("0x"),o-=2*e.chainId+8);const i=Xi(PP(r));try{e.from=PQ(i,{r:a1(e.r),s:a1(e.s),recoveryParam:o})}catch{}e.hash=Xi(n)}return e.type=null,e}(t);switch(t[0]){case 1:return function rqe(n){const t=S8(n.slice(1));8!==t.length&&11!==t.length&&xa.throwArgumentError("invalid component count for transaction type: 1","payload",a1(n));const e={type:1,chainId:qa(t[0]).toNumber(),nonce:qa(t[1]).toNumber(),gasPrice:qa(t[2]),gasLimit:qa(t[3]),to:Wk(t[4]),value:qa(t[5]),data:t[6],accessList:hm(t[7])};return 8===t.length||(e.hash=Xi(n),LQ(e,t.slice(8),WQ)),e}(t);case 2:return function oqe(n){const t=S8(n.slice(1));9!==t.length&&12!==t.length&&xa.throwArgumentError("invalid component count for transaction type: 2","payload",a1(n));const e=qa(t[2]),o=qa(t[3]),r={type:2,chainId:qa(t[0]).toNumber(),nonce:qa(t[1]).toNumber(),maxPriorityFeePerGas:e,maxFeePerGas:o,gasPrice:null,gasLimit:qa(t[4]),to:Wk(t[5]),value:qa(t[6]),data:t[7],accessList:hm(t[8])};return 9===t.length||(r.hash=Xi(n),LQ(r,t.slice(9),qQ)),r}(t)}return xa.throwError(`unsupported transaction type: ${t[0]}`,it.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}(t)}receiptLog(t){return _0.check(this.formats.receiptLog,t)}receipt(t){const e=_0.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const o=e0.from(e.root).toNumber();0===o||1===o?(null!=e.status&&e.status!==o&&uA.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=o,delete e.root):uA.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&uA.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map(e=>this.topics(e)):null!=t?this.hash(t,!0):null}filter(t){return _0.check(this.formats.filter,t)}filterLog(t){return _0.check(this.formats.filterLog,t)}static check(t,e){const o={};for(const r in t)try{const i=t[r](e[r]);void 0!==i&&(o[r]=i)}catch(i){throw i.checkKey=r,i.checkValue=e[r],i}return o}static allowNull(t,e){return function(o){return null==o?e:t(o)}}static allowFalsish(t,e){return function(o){return o?t(o):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const o=[];return e.forEach(function(r){o.push(t(r))}),o}}}let KQ=!1;var m1=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})};const j1=new it(cA);function JQ(n){return null==n?"null":(32!==bM(n)&&j1.throwArgumentError("invalid topic","topic",n),n.toLowerCase())}function QQ(n){for(n=n.slice();n.length>0&&null==n[n.length-1];)n.pop();return n.map(t=>{if(Array.isArray(t)){const e={};t.forEach(r=>{e[JQ(r)]=!0});const o=Object.keys(e);return o.sort(),o.join("|")}return JQ(t)}).join("&")}function Mm(n){if("string"==typeof n){if(32===bM(n=n.toLowerCase()))return"tx:"+n;if(-1===n.indexOf(":"))return n}else{if(Array.isArray(n))return"filter:*:"+QQ(n);if(Mqe.isForkEvent(n))throw j1.warn("not implemented"),new Error("not implemented");if(n&&"object"==typeof n)return"filter:"+(n.address||"*")+":"+QQ(n.topics||[])}throw new Error("invalid event - "+n)}function dA(){return(new Date).getTime()}function eee(n){return new Promise(t=>{setTimeout(t,n)})}const Jqe=["block","network","pending","poll"];class Qqe{constructor(t,e,o){O1(this,"tag",t),O1(this,"listener",e),O1(this,"once",o),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],o=function Kqe(n){return""===n?[]:n.split(/&/g).map(t=>{if(""===t)return[];const e=t.split("|").map(o=>"null"===o?null:o);return 1===e.length?e[0]:e})}(t[2]),r={};return o.length>0&&(r.topics=o),e&&"*"!==e&&(r.address=e),r}pollable(){return this.tag.indexOf(":")>=0||Jqe.indexOf(this.tag)>=0}}const e6e={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function Sk(n){return nr(e0.from(n).toHexString(),32)}function tee(n){return Rk.encode(pp([n,Ca(GQ(GQ(n)),0,4)]))}const nee=new RegExp("^(ipfs)://(.*)$","i"),oee=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),nee,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function cx(n,t){try{return jv(fA(n,t))}catch{}return null}function fA(n,t){if("0x"===n)return null;const e=e0.from(Ca(n,t,t+32)).toNumber(),o=e0.from(Ca(n,e,e+32)).toNumber();return Ca(n,e+32,e+32+o)}function Dk(n){return n.match(/^ipfs:\/\/ipfs\//i)?n=n.substring(12):n.match(/^ipfs:\/\//i)?n=n.substring(7):j1.throwArgumentError("unsupported IPFS format","link",n),`https://gateway.ipfs.io/ipfs/${n}`}function ree(n){const t=c1(n);if(t.length>32)throw new Error("internal; should not happen");const e=new Uint8Array(32);return e.set(t,32-t.length),e}function t6e(n){if(n.length%32==0)return n;const t=new Uint8Array(32*Math.ceil(n.length/32));return t.set(n),t}function iee(n){const t=[];let e=0;for(let o=0;oe0.from(t).eq(1)).catch(t=>{if(t.code===it.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t})),this._supportsEip2544}_fetch(t,e){return m1(this,void 0,void 0,function*(){const o={to:this.address,ccipReadEnabled:!0,data:Xs([t,ix(this.name),e||"0x"])};let r=!1;(yield this.supportsWildcard())&&(r=!0,o.data=Xs(["0x9061b923",iee([Bqe(this.name),o.data])]));try{let i=yield this.provider.call(o);return c1(i).length%32==4&&j1.throwError("resolver threw error",it.errors.CALL_EXCEPTION,{transaction:o,data:i}),r&&(i=fA(i,0)),i}catch(i){if(i.code===it.errors.CALL_EXCEPTION)return null;throw i}})}_fetchBytes(t,e){return m1(this,void 0,void 0,function*(){const o=yield this._fetch(t,e);return null!=o?fA(o,0):null})}_getAddress(t,e){const o=e6e[String(t)];if(null==o&&j1.throwError(`unsupported coin type: ${t}`,it.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===o.ilk)return this.provider.formatter.address(e);const r=c1(e);if(null!=o.p2pkh){const i=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){const a=parseInt(i[1],16);if(i[2].length===2*a&&a>=1&&a<=75)return tee(pp([[o.p2pkh],"0x"+i[2]]))}}if(null!=o.p2sh){const i=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(i){const a=parseInt(i[1],16);if(i[2].length===2*a&&a>=1&&a<=75)return tee(pp([[o.p2sh],"0x"+i[2]]))}}if(null!=o.prefix){const i=r[1];let a=r[0];if(0===a?20!==i&&32!==i&&(a=-1):a=-1,a>=0&&r.length===2+i&&i>=1&&i<=75){const s=ZQ().toWords(r.slice(2));return s.unshift(a),ZQ().encode(o.prefix,s)}}return null}getAddress(t){return m1(this,void 0,void 0,function*(){if(null==t&&(t=60),60===t)try{const r=yield this._fetch("0x3b3b57de");return"0x"===r||"0x0000000000000000000000000000000000000000000000000000000000000000"===r?null:this.provider.formatter.callAddress(r)}catch(r){if(r.code===it.errors.CALL_EXCEPTION)return null;throw r}const e=yield this._fetchBytes("0xf1cb7e06",Sk(t));if(null==e||"0x"===e)return null;const o=this._getAddress(t,e);return null==o&&j1.throwError("invalid or unsupported coin data",it.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),o})}getAvatar(){return m1(this,void 0,void 0,function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(null==e)return null;for(let o=0;oa[c])}return j1.throwError("invalid or unsupported content hash data",it.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})})}getText(t){return m1(this,void 0,void 0,function*(){let e=qu(t);e=pp([Sk(64),Sk(e.length),e]),e.length%32!=0&&(e=pp([e,nr("0x",32-t.length%32)]));const o=yield this._fetchBytes("0x59d1d43c",a1(e));return null==o||"0x"===o?null:jv(o)})}}let kk=null,n6e=1;class see extends Tk{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),O1(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch(e=>{}),this._ready().catch(e=>{});else{const e=Xv(new.target,"getNetwork")(t);e?(O1(this,"_network",e),this.emit("network",e,null)):j1.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return m1(this,void 0,void 0,function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch{}null==t&&(t=yield this.detectNetwork()),t||j1.throwError("no network detected",it.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:O1(this,"_network",t),this.emit("network",t,null))}return this._network})}get ready(){return lA(()=>this._ready().then(t=>t,t=>{if(t.code!==it.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))}static getFormatter(){return null==kk&&(kk=new _0),kk}static getNetwork(t){return function Hqe(n){if(null==n)return null;if("number"==typeof n){for(const o in sx){const r=sx[o];if(r.chainId===n)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:n,name:"unknown"}}if("string"==typeof n){const o=sx[n];return null==o?null:{name:o.name,chainId:o.chainId,ensAddress:o.ensAddress,_defaultProvider:o._defaultProvider||null}}const t=sx[n.name];if(!t)return"number"!=typeof n.chainId&&jQ.throwArgumentError("invalid network chainId","network",n),n;0!==n.chainId&&n.chainId!==t.chainId&&jQ.throwArgumentError("network chainId mismatch","network",n);let e=n._defaultProvider||null;return null==e&&t._defaultProvider&&(e=function Yqe(n){return n&&"function"==typeof n.renetwork}(t._defaultProvider)?t._defaultProvider.renetwork(n):t._defaultProvider),{name:n.name,chainId:t.chainId,ensAddress:n.ensAddress||t.ensAddress||null,_defaultProvider:e}}(t??"homestead")}ccipReadFetch(t,e,o){return m1(this,void 0,void 0,function*(){if(this.disableCcipRead||0===o.length)return null;const r=t.to.toLowerCase(),i=e.toLowerCase(),a=[];for(let s=0;s=0?null:JSON.stringify({data:i,sender:r}),d=yield tx({url:l,errorPassThrough:!0},u,(M,g)=>(M.status=g.statusCode,M));if(d.data)return d.data;const h=d.message||"unknown error";if(d.status>=400&&d.status<500)return j1.throwError(`response not found during CCIP fetch: ${h}`,it.errors.SERVER_ERROR,{url:c,errorMessage:h});a.push(h)}return j1.throwError(`error encountered during CCIP fetch: ${a.map(s=>JSON.stringify(s)).join(", ")}`,it.errors.SERVER_ERROR,{urls:o,errorMessages:a})})}_getInternalBlockNumber(t){return m1(this,void 0,void 0,function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const r=this._internalBlockNumber;try{const i=yield r;if(dA()-i.respTime<=t)return i.blockNumber;break}catch{if(this._internalBlockNumber===r)break}}const e=dA(),o=Hi({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(r=>null,r=>r)}).then(({blockNumber:r,networkError:i})=>{if(i)throw this._internalBlockNumber===o&&(this._internalBlockNumber=null),i;const a=dA();return(r=e0.from(r).toNumber()){this._internalBlockNumber===o&&(this._internalBlockNumber=null)}),(yield o).blockNumber})}poll(){return m1(this,void 0,void 0,function*(){const t=n6e++,e=[];let o=null;try{o=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(r){return void this.emit("error",r)}if(this._setFastBlockNumber(o),this.emit("poll",t,o),o!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=o-1),Math.abs(this._emitted.block-o)>1e3)j1.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${o})`),this.emit("error",j1.makeError("network block skew detected",it.errors.NETWORK_ERROR,{blockNumber:o,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",o);else for(let r=this._emitted.block+1;r<=o;r++)this.emit("block",r);this._emitted.block!==o&&(this._emitted.block=o,Object.keys(this._emitted).forEach(r=>{if("block"===r)return;const i=this._emitted[r];"pending"!==i&&o-i>12&&delete this._emitted[r]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=o-1),this._events.forEach(r=>{switch(r.type){case"tx":{const i=r.hash;let a=this.getTransactionReceipt(i).then(s=>(!s||null==s.blockNumber||(this._emitted["t:"+i]=s.blockNumber,this.emit(i,s)),null)).catch(s=>{this.emit("error",s)});e.push(a);break}case"filter":if(!r._inflight){r._inflight=!0,-2===r._lastBlockNumber&&(r._lastBlockNumber=o-1);const i=r.filter;i.fromBlock=r._lastBlockNumber+1,i.toBlock=o;const a=i.toBlock-this._maxFilterBlockRange;a>i.fromBlock&&(i.fromBlock=a),i.fromBlock<0&&(i.fromBlock=0);const s=this.getLogs(i).then(c=>{r._inflight=!1,0!==c.length&&c.forEach(l=>{l.blockNumber>r._lastBlockNumber&&(r._lastBlockNumber=l.blockNumber),this._emitted["b:"+l.blockHash]=l.blockNumber,this._emitted["t:"+l.transactionHash]=l.blockNumber,this.emit(i,l)})}).catch(c=>{this.emit("error",c),r._inflight=!1});e.push(s)}}}),this._lastBlockNumber=o,Promise.all(e).then(()=>{this.emit("didPoll",t)}).catch(r=>{this.emit("error",r)})}else this.emit("didPoll",t)})}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return m1(this,void 0,void 0,function*(){return j1.throwError("provider does not support network detection",it.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return m1(this,void 0,void 0,function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield eee(0),this._network;const o=j1.makeError("underlying network changed",it.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",o),o}return t})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(t=>{this._setFastBlockNumber(t)},t=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const t=dA();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,o){return m1(this,void 0,void 0,function*(){return this._waitForTransaction(t,e??1,o||0,null)})}_waitForTransaction(t,e,o,r){return m1(this,void 0,void 0,function*(){const i=yield this.getTransactionReceipt(t);return(i?i.confirmations:0)>=e?i:new Promise((a,s)=>{const c=[];let l=!1;const u=function(){return!!l||(l=!0,c.forEach(h=>{h()}),!1)},d=h=>{h.confirmations{this.removeListener(t,d)}),r){let h=r.startBlock,M=null;const g=_=>m1(this,void 0,void 0,function*(){l||(yield eee(1e3),this.getTransactionCount(r.from).then(z=>m1(this,void 0,void 0,function*(){if(!l){if(z<=r.nonce)h=_;else{{const y=yield this.getTransaction(t);if(y&&null!=y.blockNumber)return}for(null==M&&(M=h-3,M{l||this.once("block",g)}))});if(l)return;this.once("block",g),c.push(()=>{this.removeListener("block",g)})}if("number"==typeof o&&o>0){const h=setTimeout(()=>{u()||s(j1.makeError("timeout exceeded",it.errors.TIMEOUT,{timeout:o}))},o);h.unref&&h.unref(),c.push(()=>{clearTimeout(h)})}})})}getBlockNumber(){return m1(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return e0.from(t)}catch(e){return j1.throwError("bad result from backend",it.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}})}getBalance(t,e){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const o=yield Hi({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getBalance",o);try{return e0.from(r)}catch(i){return j1.throwError("bad result from backend",it.errors.SERVER_ERROR,{method:"getBalance",params:o,result:r,error:i})}})}getTransactionCount(t,e){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const o=yield Hi({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getTransactionCount",o);try{return e0.from(r).toNumber()}catch(i){return j1.throwError("bad result from backend",it.errors.SERVER_ERROR,{method:"getTransactionCount",params:o,result:r,error:i})}})}getCode(t,e){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const o=yield Hi({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getCode",o);try{return a1(r)}catch(i){return j1.throwError("bad result from backend",it.errors.SERVER_ERROR,{method:"getCode",params:o,result:r,error:i})}})}getStorageAt(t,e,o){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Hi({address:this._getAddress(t),blockTag:this._getBlockTag(o),position:Promise.resolve(e).then(a=>Nv(a))}),i=yield this.perform("getStorageAt",r);try{return a1(i)}catch(a){return j1.throwError("bad result from backend",it.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:i,error:a})}})}_wrapTransaction(t,e,o){if(null!=e&&32!==bM(e))throw new Error("invalid response - sendTransaction");const r=t;return null!=e&&t.hash!==e&&j1.throwError("Transaction hash mismatch from Provider.sendTransaction.",it.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),r.wait=(i,a)=>m1(this,void 0,void 0,function*(){let s;null==i&&(i=1),null==a&&(a=0),0!==i&&null!=o&&(s={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:o});const c=yield this._waitForTransaction(t.hash,i,a,s);return null==c&&0===i?null:(this._emitted["t:"+t.hash]=c.blockNumber,0===c.status&&j1.throwError("transaction failed",it.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:c}),c)}),r}sendTransaction(t){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then(i=>a1(i)),o=this.formatter.transaction(t);null==o.confirmations&&(o.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const i=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(o,i,r)}catch(i){throw i.transaction=o,i.transactionHash=o.hash,i}})}_getTransactionRequest(t){return m1(this,void 0,void 0,function*(){const e=yield t,o={};return["from","to"].forEach(r=>{null!=e[r]&&(o[r]=Promise.resolve(e[r]).then(i=>i?this._getAddress(i):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(r=>{null!=e[r]&&(o[r]=Promise.resolve(e[r]).then(i=>i?e0.from(i):null))}),["type"].forEach(r=>{null!=e[r]&&(o[r]=Promise.resolve(e[r]).then(i=>i??null))}),e.accessList&&(o.accessList=this.formatter.accessList(e.accessList)),["data"].forEach(r=>{null!=e[r]&&(o[r]=Promise.resolve(e[r]).then(i=>i?a1(i):null))}),this.formatter.transactionRequest(yield Hi(o))})}_getFilter(t){return m1(this,void 0,void 0,function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach(o=>{null!=t[o]&&(e[o]=t[o])}),["fromBlock","toBlock"].forEach(o=>{null!=t[o]&&(e[o]=this._getBlockTag(t[o]))}),this.formatter.filter(yield Hi(e))})}_call(t,e,o){return m1(this,void 0,void 0,function*(){o>=10&&j1.throwError("CCIP read exceeded maximum redirections",it.errors.SERVER_ERROR,{redirects:o,transaction:t});const r=t.to,i=yield this.perform("call",{transaction:t,blockTag:e});if(o>=0&&"latest"===e&&null!=r&&"0x556f1830"===i.substring(0,10)&&bM(i)%32==4)try{const a=Ca(i,4),s=Ca(a,0,32);e0.from(s).eq(r)||j1.throwError("CCIP Read sender did not match",it.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const c=[],l=e0.from(Ca(a,32,64)).toNumber(),u=e0.from(Ca(a,l,l+32)).toNumber(),d=Ca(a,l+32);for(let y=0;ym1(this,void 0,void 0,function*(){const i=yield this.perform("getBlock",r);if(null==i)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&o>this._emitted.block?null:void 0;if(e){let a=null;for(let c=0;cthis._wrapTransaction(c)),s}return this.formatter.block(i)}),{oncePoll:this})})}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return m1(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return lA(()=>m1(this,void 0,void 0,function*(){const o=yield this.perform("getTransaction",e);if(null==o)return null==this._emitted["t:"+t]?null:void 0;const r=this.formatter.transactionResponse(o);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;a<=0&&(a=1),r.confirmations=a}return this._wrapTransaction(r)}),{oncePoll:this})})}getTransactionReceipt(t){return m1(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return lA(()=>m1(this,void 0,void 0,function*(){const o=yield this.perform("getTransactionReceipt",e);if(null==o)return null==this._emitted["t:"+t]?null:void 0;if(null==o.blockHash)return;const r=this.formatter.receipt(o);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let a=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;a<=0&&(a=1),r.confirmations=a}return r}),{oncePoll:this})})}getLogs(t){return m1(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield Hi({filter:this._getFilter(t)}),o=yield this.perform("getLogs",e);return o.forEach(r=>{null==r.removed&&(r.removed=!1)}),_0.arrayOf(this.formatter.filterLog.bind(this.formatter))(o)})}getEtherPrice(){return m1(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(t){return m1(this,void 0,void 0,function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&j1.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)})}getResolver(t){return m1(this,void 0,void 0,function*(){let e=t;for(;;){if(""===e||"."===e||"eth"!==t&&"eth"===e)return null;const o=yield this._getResolver(e,"getResolver");if(null!=o){const r=new aee(this,o,t);return e===t||(yield r.supportsWildcard())?r:null}e=e.split(".").slice(1).join(".")}})}_getResolver(t,e){return m1(this,void 0,void 0,function*(){null==e&&(e="ENS");const o=yield this.getNetwork();o.ensAddress||j1.throwError("network does not support ENS",it.errors.UNSUPPORTED_OPERATION,{operation:e,network:o.name});try{const r=yield this.call({to:o.ensAddress,data:"0x0178b8bf"+ix(t).substring(2)});return this.formatter.callAddress(r)}catch{}return null})}resolveName(t){return m1(this,void 0,void 0,function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(o){if(Ao(t))throw o}"string"!=typeof t&&j1.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null})}lookupAddress(t){return m1(this,void 0,void 0,function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(e,"lookupAddress");if(null==o)return null;const r=cx(yield this.call({to:o,data:"0x691f3431"+ix(e).substring(2)}),0);return(yield this.resolveName(r))!=t?null:r})}getAvatar(t){return m1(this,void 0,void 0,function*(){let e=null;if(Ao(t)){const i=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(i,"getAvatar");if(!a)return null;e=new aee(this,a,i);try{const s=yield e.getAvatar();if(s)return s.url}catch(s){if(s.code!==it.errors.CALL_EXCEPTION)throw s}try{const s=cx(yield this.call({to:a,data:"0x691f3431"+ix(i).substring(2)}),0);e=yield this.getResolver(s)}catch(s){if(s.code!==it.errors.CALL_EXCEPTION)throw s;return null}}else if(e=yield this.getResolver(t),!e)return null;const o=yield e.getAvatar();return null==o?null:o.url})}perform(t,e){return j1.throwError(t+" not implemented",it.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(t){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(t,e,o){const r=new Qqe(Mm(t),e,o);return this._events.push(r),this._startEvent(r),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let o=!1,r=[],i=Mm(t);return this._events=this._events.filter(a=>a.tag!==i||(setTimeout(()=>{a.listener.apply(this,e)},0),o=!0,!a.once||(r.push(a),!1))),r.forEach(a=>{this._stopEvent(a)}),o}listenerCount(t){if(!t)return this._events.length;let e=Mm(t);return this._events.filter(o=>o.tag===e).length}listeners(t){if(null==t)return this._events.map(o=>o.listener);let e=Mm(t);return this._events.filter(o=>o.tag===e).map(o=>o.listener)}off(t,e){if(null==e)return this.removeAllListeners(t);const o=[];let r=!1,i=Mm(t);return this._events=this._events.filter(a=>!(a.tag===i&&a.listener==e&&!r&&(r=!0,o.push(a),1))),o.forEach(a=>{this._stopEvent(a)}),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const o=Mm(t);this._events=this._events.filter(r=>r.tag!==o||(e.push(r),!1))}return e.forEach(o=>{this._stopEvent(o)}),this}}var Dd=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})};const Jr=new it(cA),o6e=["call","estimateGas"];function hA(n,t){if(null==n)return null;if("string"==typeof n.message&&n.message.match("reverted")){const e=Ao(n.data)?n.data:null;if(!t||e)return{message:n.message,data:e}}if("object"==typeof n){for(const e in n){const o=hA(n[e],t);if(o)return o}return null}if("string"==typeof n)try{return hA(JSON.parse(n),t)}catch{}return null}function cee(n,t,e){const o=e.transaction||e.signedTransaction;if("call"===n){const i=hA(t,!0);if(i)return i.data;Jr.throwError("missing revert data in call exception; Transaction reverted without a reason string",it.errors.CALL_EXCEPTION,{data:"0x",transaction:o,error:t})}if("estimateGas"===n){let i=hA(t.body,!1);null==i&&(i=hA(t,!1)),i&&Jr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",it.errors.UNPREDICTABLE_GAS_LIMIT,{reason:i.message,method:n,transaction:o,error:t})}let r=t.message;throw t.code===it.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?r=t.error.message:"string"==typeof t.body?r=t.body:"string"==typeof t.responseText&&(r=t.responseText),r=(r||"").toLowerCase(),r.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Jr.throwError("insufficient funds for intrinsic transaction cost",it.errors.INSUFFICIENT_FUNDS,{error:t,method:n,transaction:o}),r.match(/nonce (is )?too low/i)&&Jr.throwError("nonce has already been used",it.errors.NONCE_EXPIRED,{error:t,method:n,transaction:o}),r.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Jr.throwError("replacement fee too low",it.errors.REPLACEMENT_UNDERPRICED,{error:t,method:n,transaction:o}),r.match(/only replay-protected/i)&&Jr.throwError("legacy pre-eip-155 transactions not supported",it.errors.UNSUPPORTED_OPERATION,{error:t,method:n,transaction:o}),o6e.indexOf(n)>=0&&r.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Jr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",it.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:n,transaction:o}),t}function lee(n){return new Promise(function(t){setTimeout(t,n)})}function r6e(n){if(n.error){const t=new Error(n.error.message);throw t.code=n.error.code,t.data=n.error.data,t}return n.result}function MA(n){return n&&n.toLowerCase()}const Ek={};class pee extends mk{constructor(t,e,o){if(super(),t!==Ek)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");O1(this,"provider",e),null==o&&(o=0),"string"==typeof o?(O1(this,"_address",this.provider.formatter.address(o)),O1(this,"_index",null)):"number"==typeof o?(O1(this,"_index",o),O1(this,"_address",null)):Jr.throwArgumentError("invalid address or index","addressOrIndex",o)}connect(t){return Jr.throwError("cannot alter JSON-RPC Signer connection",it.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new i6e(Ek,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(t=>(t.length<=this._index&&Jr.throwError("unknown account #"+this._index,it.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index])))}sendUncheckedTransaction(t){t=Us(t);const e=this.getAddress().then(o=>(o&&(o=o.toLowerCase()),o));if(null==t.gasLimit){const o=Us(t);o.from=e,t.gasLimit=this.provider.estimateGas(o)}return null!=t.to&&(t.to=Promise.resolve(t.to).then(o=>Dd(this,void 0,void 0,function*(){if(null==o)return null;const r=yield this.provider.resolveName(o);return null==r&&Jr.throwArgumentError("provided ENS name resolves to null","tx.to",o),r}))),Hi({tx:Hi(t),sender:e}).then(({tx:o,sender:r})=>{null!=o.from?o.from.toLowerCase()!==r&&Jr.throwArgumentError("from address mismatch","transaction",t):o.from=r;const i=this.provider.constructor.hexlifyTransaction(o,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then(a=>a,a=>("string"==typeof a.message&&a.message.match(/user denied/i)&&Jr.throwError("user rejected transaction",it.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),cee("sendTransaction",a,i)))})}signTransaction(t){return Jr.throwError("signing transactions is unsupported",it.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return Dd(this,void 0,void 0,function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),o=yield this.sendUncheckedTransaction(t);try{return yield lA(()=>Dd(this,void 0,void 0,function*(){const r=yield this.provider.getTransaction(o);if(null!==r)return this.provider._wrapTransaction(r,o,e)}),{oncePoll:this.provider})}catch(r){throw r.transactionHash=o,r}})}signMessage(t){return Dd(this,void 0,void 0,function*(){const e="string"==typeof t?qu(t):t,o=yield this.getAddress();try{return yield this.provider.send("personal_sign",[a1(e),o.toLowerCase()])}catch(r){throw"string"==typeof r.message&&r.message.match(/user denied/i)&&Jr.throwError("user rejected signing",it.errors.ACTION_REJECTED,{action:"signMessage",from:o,messageData:t}),r}})}_legacySignMessage(t){return Dd(this,void 0,void 0,function*(){const e="string"==typeof t?qu(t):t,o=yield this.getAddress();try{return yield this.provider.send("eth_sign",[o.toLowerCase(),a1(e)])}catch(r){throw"string"==typeof r.message&&r.message.match(/user denied/i)&&Jr.throwError("user rejected signing",it.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:o,messageData:t}),r}})}_signTypedData(t,e,o){return Dd(this,void 0,void 0,function*(){const r=yield _c.resolveNames(t,e,o,a=>this.provider.resolveName(a)),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(_c.getPayload(r.domain,e,r.value))])}catch(a){throw"string"==typeof a.message&&a.message.match(/user denied/i)&&Jr.throwError("user rejected signing",it.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:r.domain,types:e,value:r.value}}),a}})}unlock(t){return Dd(this,void 0,void 0,function*(){const e=this.provider,o=yield this.getAddress();return e.send("personal_unlockAccount",[o.toLowerCase(),t,null])})}}class i6e extends pee{sendTransaction(t){return this.sendUncheckedTransaction(t).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:o=>this.provider.waitForTransaction(e,o)}))}}const a6e={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class s6e extends see{constructor(t,e){let o=e;null==o&&(o=new Promise((r,i)=>{setTimeout(()=>{this.detectNetwork().then(a=>{r(a)},a=>{i(a)})},0)})),super(o),t||(t=Xv(this.constructor,"defaultUrl")()),O1(this,"connection",Object.freeze("string"==typeof t?{url:t}:Us(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Dd(this,void 0,void 0,function*(){yield lee(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch{try{t=yield this.send("net_version",[])}catch{}}if(null!=t){const e=Xv(this.constructor,"getNetwork");try{return e(e0.from(t).toNumber())}catch(o){return Jr.throwError("could not detect network",it.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:o})}}return Jr.throwError("could not detect network",it.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(t){return new pee(Ek,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(t=>t.map(e=>this.formatter.address(e)))}send(t,e){const o={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:rf(o),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(r&&this._cache[t])return this._cache[t];const i=tx(this.connection,JSON.stringify(o),r6e).then(a=>(this.emit("debug",{action:"response",request:o,response:a,provider:this}),a),a=>{throw this.emit("debug",{action:"response",error:a,request:o,provider:this}),a});return r&&(this._cache[t]=i,setTimeout(()=>{this._cache[t]=null},0)),i}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[MA(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[MA(e.address),e.blockTag]];case"getCode":return["eth_getCode",[MA(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[MA(e.address),nr(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[Xv(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[Xv(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=MA(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return Dd(this,void 0,void 0,function*(){if("call"===t||"estimateGas"===t){const r=e.transaction;if(r&&null!=r.type&&e0.from(r.type).isZero()&&null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas){const i=yield this.getFeeData();null==i.maxFeePerGas&&null==i.maxPriorityFeePerGas&&((e=Us(e)).transaction=Us(r),delete e.transaction.type)}}const o=this.prepareRequest(t,e);null==o&&Jr.throwError(t+" not implemented",it.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(o[0],o[1])}catch(r){return cee(t,r,e)}})}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then(function(o){return function r(){t.send("eth_getFilterChanges",[o]).then(function(i){if(t._pendingFilter!=e)return null;let a=Promise.resolve();return i.forEach(function(s){t._emitted["t:"+s.toLowerCase()]="pending",a=a.then(function(){return t.getTransaction(s).then(function(c){return t.emit("pending",c),null})})}),a.then(function(){return lee(1e3)})}).then(function(){if(t._pendingFilter==e)return setTimeout(function(){r()},0),null;t.send("eth_uninstallFilter",[o])}).catch(i=>{})}(),o}).catch(o=>{})}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const o=Us(a6e);if(e)for(const i in e)e[i]&&(o[i]=!0);!function kCe(n,t){(!n||"object"!=typeof n)&&yP.throwArgumentError("invalid object","object",n),Object.keys(n).forEach(e=>{t[e]||yP.throwArgumentError("invalid object key - "+e,"transaction:"+e,n)})}(t,o);const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(i){if(null==t[i])return;const a=Nv(e0.from(t[i]));"gasLimit"===i&&(i="gas"),r[i]=a}),["from","to","data"].forEach(function(i){null!=t[i]&&(r[i]=a1(t[i]))}),t.accessList&&(r.accessList=hm(t.accessList)),r}}const uee=new it(cA);let c6e=1;function dee(n,t){const e="Web3LegacyFetcher";return function(o,r){const i={method:o,params:r,id:c6e++,jsonrpc:"2.0"};return new Promise((a,s)=>{this.emit("debug",{action:"request",fetcher:e,request:rf(i),provider:this}),t(i,(c,l)=>{if(c)return this.emit("debug",{action:"response",fetcher:e,error:c,request:i,provider:this}),s(c);if(this.emit("debug",{action:"response",fetcher:e,request:i,response:l,provider:this}),l.error){const u=new Error(l.error.message);return u.code=l.error.code,u.data=l.error.data,s(u)}a(l.result)})})}}class p6e extends s6e{constructor(t,e){null==t&&uee.throwArgumentError("missing provider","provider",t);let o=null,r=null,i=null;"function"==typeof t?(o="unknown:",r=t):(o=t.host||t.path||"",!o&&t.isMetaMask&&(o="metamask"),i=t,t.request?(""===o&&(o="eip-1193:"),r=function l6e(n){return function(t,e){null==e&&(e=[]);const o={method:t,params:e};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:rf(o),provider:this}),n.request(o).then(r=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,response:r,provider:this}),r),r=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,error:r,provider:this}),r})}}(t)):t.sendAsync?r=dee(0,t.sendAsync.bind(t)):t.send?r=dee(0,t.send.bind(t)):uee.throwArgumentError("unsupported provider","provider",t),o||(o="unknown:")),super(o,e),O1(this,"jsonRpcFetchFunc",r),O1(this,"provider",i)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}var lx=function(n,t,e,o){return new(e||(e=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):function r(i){return i instanceof e?i:new e(function(a){a(i)})}(u.value).then(s,c)}l((o=o.apply(n,t||[])).next())})};const Of=new it(cA);function fee(n){const t={};for(let e in n){if(null==n[e])continue;let o=n[e];"type"===e&&0===o||(o={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[e]?Nv(a1(o)):"accessList"===e?"["+hm(o).map(r=>`{address:"${r.address}",storageKeys:["${r.storageKeys.join('","')}"]}`).join(",")+"]":a1(o),t[e]=o)}return t}function u6e(n){if(0==n.status&&("No records found"===n.message||"No transactions found"===n.message))return n.result;if(1!=n.status||"string"!=typeof n.message||!n.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(n),(n.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return n.result}function hee(n){if(n&&0==n.status&&"NOTOK"==n.message&&(n.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(n),t.throttleRetry=!0,t}if("2.0"!=n.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(n),t}if(n.error){const t=new Error(n.error.message||"unknown error");throw n.error.code&&(t.code=n.error.code),n.error.data&&(t.data=n.error.data),t}return n.result}function Mee(n){if("pending"===n)throw new Error("pending not supported");return"latest"===n?n:parseInt(n.substring(2),16)}function Nk(n,t,e){if("call"===n&&t.code===it.errors.SERVER_ERROR){const r=t.error;if(r&&(r.message.match(/reverted/i)||r.message.match(/VM execution error/i))){let i=r.data;if(i&&(i="0x"+i.replace(/^.*0x/i,"")),Ao(i))return i;Of.throwError("missing revert data in call exception",it.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let o=t.message;throw t.code===it.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText)),o=(o||"").toLowerCase(),o.match(/insufficient funds/)&&Of.throwError("insufficient funds for intrinsic transaction cost",it.errors.INSUFFICIENT_FUNDS,{error:t,method:n,transaction:e}),o.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Of.throwError("nonce has already been used",it.errors.NONCE_EXPIRED,{error:t,method:n,transaction:e}),o.match(/another transaction with same nonce/)&&Of.throwError("replacement fee too low",it.errors.REPLACEMENT_UNDERPRICED,{error:t,method:n,transaction:e}),o.match(/execution failed due to an exception|execution reverted/)&&Of.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",it.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:n,transaction:e}),t}class d6e extends see{constructor(t,e){super(t),O1(this,"baseUrl",this.getBaseUrl()),O1(this,"apiKey",e||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return Of.throwArgumentError("unsupported network","network",this.network.name)}getUrl(t,e){const o=Object.keys(e).reduce((i,a)=>{const s=e[a];return null!=s&&(i+=`&${a}=${s}`),i},"");return`${this.baseUrl}/api?module=${t}${o}${this.apiKey?`&apikey=${this.apiKey}`:""}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e}fetch(t,e,o){return lx(this,void 0,void 0,function*(){const r=o?this.getPostUrl():this.getUrl(t,e),i=o?this.getPostData(t,e):null,a="proxy"===t?hee:u6e;this.emit("debug",{action:"request",request:r,provider:this});const s={url:r,throttleSlotInterval:1e3,throttleCallback:(u,d)=>(this.isCommunityResource()&&function Gqe(){KQ||(KQ=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}(),Promise.resolve(!0))};let c=null;i&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(i).map(u=>`${u}=${i[u]}`).join("&"));const l=yield tx(s,c,a||hee);return this.emit("debug",{action:"response",request:r,response:rf(l),provider:this}),l})}detectNetwork(){return lx(this,void 0,void 0,function*(){return this.network})}perform(t,e){const o=Object.create(null,{perform:{get:()=>super.perform}});return lx(this,void 0,void 0,function*(){switch(t){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch(r=>Nk("sendTransaction",r,e.signedTransaction));case"getBlock":if(e.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.transactionHash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const r=fee(e.transaction);r.module="proxy",r.action="eth_call";try{return yield this.fetch("proxy",r,!0)}catch(i){return Nk("call",i,e.transaction)}}case"estimateGas":{const r=fee(e.transaction);r.module="proxy",r.action="eth_estimateGas";try{return yield this.fetch("proxy",r,!0)}catch(i){return Nk("estimateGas",i,e.transaction)}}case"getLogs":{const r={action:"getLogs"};if(e.filter.fromBlock&&(r.fromBlock=Mee(e.filter.fromBlock)),e.filter.toBlock&&(r.toBlock=Mee(e.filter.toBlock)),e.filter.address&&(r.address=e.filter.address),e.filter.topics&&e.filter.topics.length>0&&(e.filter.topics.length>1&&Of.throwError("unsupported topic count",it.errors.UNSUPPORTED_OPERATION,{topics:e.filter.topics}),1===e.filter.topics.length)){const s=e.filter.topics[0];("string"!=typeof s||66!==s.length)&&Of.throwError("unsupported topic format",it.errors.UNSUPPORTED_OPERATION,{topic0:s}),r.topic0=s}const i=yield this.fetch("logs",r);let a={};for(let s=0;s{["contractAddress","to"].forEach(function(c){""==a[c]&&delete a[c]}),null==a.creates&&null!=a.contractAddress&&(a.creates=a.contractAddress);const s=this.formatter.transactionResponse(a);return a.timeStamp&&(s.timestamp=parseInt(a.timeStamp)),s})})}isCommunityResource(){return null==this.apiKey}}var xM=(n=>(n.MissingApiKey="MISSING_API_KEY",n.ModalNotReady="MODAL_NOT_READY",n.MalformedResponse="MALFORMED_RESPONSE",n.InvalidArgument="INVALID_ARGUMENT",n.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",n.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",n))(xM||{}),px=(n=>(n.SyncWeb3Method="SYNC_WEB3_METHOD",n.DuplicateIframe="DUPLICATE_IFRAME",n.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",n.DeprecationNotice="DEPRECATION_NOTICE",n))(px||{}),Ik=(n=>(n[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",n[n.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",n[n.MagicLinkExpired=-10001]="MagicLinkExpired",n[n.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",n[n.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",n[n.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",n[n.UpdateEmailFailed=-10004]="UpdateEmailFailed",n[n.UserRequestEditEmail=-10005]="UserRequestEditEmail",n[n.InactiveRecipient=-10010]="InactiveRecipient",n[n.AccessDeniedToUser=-10011]="AccessDeniedToUser",n))(Ik||{}),xn=(n=>(n.LoginWithSms="magic_auth_login_with_sms",n.LoginWithEmailOTP="magic_auth_login_with_email_otp",n.LoginWithMagicLink="magic_auth_login_with_magic_link",n.LoginWithCredential="magic_auth_login_with_credential",n.GetIdToken="magic_auth_get_id_token",n.GenerateIdToken="magic_auth_generate_id_token",n.GetMetadata="magic_auth_get_metadata",n.IsLoggedIn="magic_auth_is_logged_in",n.Logout="magic_auth_logout",n.UpdateEmail="magic_auth_update_email",n.UserSettings="magic_auth_settings",n.UserSettingsTestMode="magic_auth_settings_testing_mode",n.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",n.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",n.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",n.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",n.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",n.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",n.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",n.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",n.LogoutTestMode="magic_auth_logout_testing_mode",n.UpdateEmailTestMode="magic_auth_update_email_testing_mode",n.IntermediaryEvent="magic_intermediary_event",n.RequestAccounts="eth_requestAccounts",n.GetInfo="mc_get_wallet_info",n.ShowUI="mc_wallet",n.NFTPurchase="magic_nft_purchase",n.RequestUserInfoWithUI="mc_request_user_info",n.Disconnect="mc_disconnect",n.UpdatePhoneNumber="magic_auth_update_phone_number",n.UpdatePhoneNumberTestMode="magic_auth_update_phone_number_testing_mode",n.RecoverAccount="magic_auth_recover_account",n.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",n))(xn||{}),bm=(n=>(n.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",n.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",n.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",n.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",n.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",n))(bm||{}),ux=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(ux||{}),f6e=(n=>(n.Harmony="HARMONY",n))(f6e||{}),h6e=Object.create,dx=Object.defineProperty,M6e=Object.defineProperties,b6e=Object.getOwnPropertyDescriptor,g6e=Object.getOwnPropertyDescriptors,O6e=Object.getOwnPropertyNames,bee=Object.getOwnPropertySymbols,m6e=Object.getPrototypeOf,gee=Object.prototype.hasOwnProperty,_6e=Object.prototype.propertyIsEnumerable,Oee=(n,t,e)=>t in n?dx(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,mee=(n,t)=>{for(var e in t||(t={}))gee.call(t,e)&&Oee(n,e,t[e]);if(bee)for(var e of bee(t))_6e.call(t,e)&&Oee(n,e,t[e]);return n},kd=(n,t,e)=>new Promise((o,r)=>{var i=c=>{try{s(e.next(c))}catch(l){r(l)}},a=c=>{try{s(e.throw(c))}catch(l){r(l)}},s=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,a);s((e=e.apply(n,t)).next())}),w6e=((n,t)=>()=>(t||n(t={exports:{}},t),t.exports))((n,t)=>{var e=Object.prototype.hasOwnProperty,o="~";function r(){}function i(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function a(l,u,d,h,M){if("function"!=typeof d)throw new TypeError("The listener must be a function");var g=new i(d,h||l,M),_=o?o+u:u;return l._events[_]?l._events[_].fn?l._events[_]=[l._events[_],g]:l._events[_].push(g):(l._events[_]=g,l._eventsCount++),l}function s(l,u){0==--l._eventsCount?l._events=new r:delete l._events[u]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),c.prototype.eventNames=function(){var u,d,l=[];if(0===this._eventsCount)return l;for(d in u=this._events)e.call(u,d)&&l.push(o?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},c.prototype.listeners=function(l){var d=this._events[o?o+l:l];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,M=d.length,g=new Array(M);hconsole.error("SEMVER",...n):()=>{},uo=q6e,bA=function P6e(n){let t={exports:{}};return n(t,t.exports),t.exports}(function(n,t){let{MAX_SAFE_COMPONENT_LENGTH:e}=Bk,o=(t=n.exports={}).re=[],r=t.src=[],i=t.t={},a=0,s=(c,l,u)=>{let d=a++;uo(d,l),i[c]=d,r[d]=l,o[d]=new RegExp(l,u?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION",`(${r[i.NUMERICIDENTIFIER]})\\.(${r[i.NUMERICIDENTIFIER]})\\.(${r[i.NUMERICIDENTIFIER]})`),s("MAINVERSIONLOOSE",`(${r[i.NUMERICIDENTIFIERLOOSE]})\\.(${r[i.NUMERICIDENTIFIERLOOSE]})\\.(${r[i.NUMERICIDENTIFIERLOOSE]})`),s("PRERELEASEIDENTIFIER",`(?:${r[i.NUMERICIDENTIFIER]}|${r[i.NONNUMERICIDENTIFIER]})`),s("PRERELEASEIDENTIFIERLOOSE",`(?:${r[i.NUMERICIDENTIFIERLOOSE]}|${r[i.NONNUMERICIDENTIFIER]})`),s("PRERELEASE",`(?:-(${r[i.PRERELEASEIDENTIFIER]}(?:\\.${r[i.PRERELEASEIDENTIFIER]})*))`),s("PRERELEASELOOSE",`(?:-?(${r[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[i.PRERELEASEIDENTIFIERLOOSE]})*))`),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD",`(?:\\+(${r[i.BUILDIDENTIFIER]}(?:\\.${r[i.BUILDIDENTIFIER]})*))`),s("FULLPLAIN",`v?${r[i.MAINVERSION]}${r[i.PRERELEASE]}?${r[i.BUILD]}?`),s("FULL",`^${r[i.FULLPLAIN]}$`),s("LOOSEPLAIN",`[v=\\s]*${r[i.MAINVERSIONLOOSE]}${r[i.PRERELEASELOOSE]}?${r[i.BUILD]}?`),s("LOOSE",`^${r[i.LOOSEPLAIN]}$`),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE",`${r[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),s("XRANGEIDENTIFIER",`${r[i.NUMERICIDENTIFIER]}|x|X|\\*`),s("XRANGEPLAIN",`[v=\\s]*(${r[i.XRANGEIDENTIFIER]})(?:\\.(${r[i.XRANGEIDENTIFIER]})(?:\\.(${r[i.XRANGEIDENTIFIER]})(?:${r[i.PRERELEASE]})?${r[i.BUILD]}?)?)?`),s("XRANGEPLAINLOOSE",`[v=\\s]*(${r[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[i.XRANGEIDENTIFIERLOOSE]})(?:${r[i.PRERELEASELOOSE]})?${r[i.BUILD]}?)?)?`),s("XRANGE",`^${r[i.GTLT]}\\s*${r[i.XRANGEPLAIN]}$`),s("XRANGELOOSE",`^${r[i.GTLT]}\\s*${r[i.XRANGEPLAINLOOSE]}$`),s("COERCE",`(^|[^\\d])(\\d{1,${e}})(?:\\.(\\d{1,${e}}))?(?:\\.(\\d{1,${e}}))?(?:$|[^\\d])`),s("COERCERTL",r[i.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${r[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",s("TILDE",`^${r[i.LONETILDE]}${r[i.XRANGEPLAIN]}$`),s("TILDELOOSE",`^${r[i.LONETILDE]}${r[i.XRANGEPLAINLOOSE]}$`),s("LONECARET","(?:\\^)"),s("CARETTRIM",`(\\s*)${r[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",s("CARET",`^${r[i.LONECARET]}${r[i.XRANGEPLAIN]}$`),s("CARETLOOSE",`^${r[i.LONECARET]}${r[i.XRANGEPLAINLOOSE]}$`),s("COMPARATORLOOSE",`^${r[i.GTLT]}\\s*(${r[i.LOOSEPLAIN]})$|^$`),s("COMPARATOR",`^${r[i.GTLT]}\\s*(${r[i.FULLPLAIN]})$|^$`),s("COMPARATORTRIM",`(\\s*)${r[i.GTLT]}\\s*(${r[i.LOOSEPLAIN]}|${r[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE",`^\\s*(${r[i.XRANGEPLAIN]})\\s+-\\s+(${r[i.XRANGEPLAIN]})\\s*$`),s("HYPHENRANGELOOSE",`^\\s*(${r[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[i.XRANGEPLAINLOOSE]})\\s*$`),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),_ee=/^[0-9]+$/,zee=(n,t)=>{let e=_ee.test(n),o=_ee.test(t);return e&&o&&(n=+n,t=+t),n===t?0:e&&!o?-1:o&&!e?1:nzee(t,n)},{MAX_LENGTH:vee,MAX_SAFE_INTEGER:fx}=Bk,{re:Aee,t:yee}=bA,{compareIdentifiers:gA}=L6e,$i=class{constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof $i){if(n.loose===!!t.loose&&n.includePrerelease===!!t.includePrerelease)return n;n=n.version}else if("string"!=typeof n)throw new TypeError(`Invalid Version: ${n}`);if(n.length>vee)throw new TypeError(`version is longer than ${vee} characters`);uo("SemVer",n,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let e=n.trim().match(t.loose?Aee[yee.LOOSE]:Aee[yee.FULL]);if(!e)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+e[1],this.minor=+e[2],this.patch=+e[3],this.major>fx||this.major<0)throw new TypeError("Invalid major version");if(this.minor>fx||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>fx||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=e[4]?e[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let r=+o;if(r>=0&&r=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${n}`)}return this.format(),this.raw=this.version,this}},gm=(n,t,e)=>new $i(n,e).compare(new $i(t,e)),Fk=(n,t,e,o)=>{switch(t){case"===":return"object"==typeof n&&(n=n.version),"object"==typeof e&&(e=e.version),n===e;case"!==":return"object"==typeof n&&(n=n.version),"object"==typeof e&&(e=e.version),n!==e;case"":case"=":case"==":return((n,t,e)=>0===gm(n,t,e))(n,e,o);case"!=":return((n,t,e)=>0!==gm(n,t,e))(n,e,o);case">":return((n,t,e)=>gm(n,t,e)>0)(n,e,o);case">=":return((n,t,e)=>gm(n,t,e)>=0)(n,e,o);case"<":return((n,t,e)=>gm(n,t,e)<0)(n,e,o);case"<=":return((n,t,e)=>gm(n,t,e)<=0)(n,e,o);default:throw new TypeError(`Invalid operator: ${t}`)}},OA=Symbol("SemVer ANY"),mA=class{static get ANY(){return OA}constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof mA){if(n.loose===!!t.loose)return n;n=n.value}uo("comparator",n,t),this.options=t,this.loose=!!t.loose,this.parse(n),this.value=this.semver===OA?"":this.operator+this.semver.version,uo("comp",this)}parse(n){let e=n.match(this.options.loose?Cee[wee.COMPARATORLOOSE]:Cee[wee.COMPARATOR]);if(!e)throw new TypeError(`Invalid comparator: ${n}`);this.operator=void 0!==e[1]?e[1]:"","="===this.operator&&(this.operator=""),this.semver=e[2]?new $i(e[2],this.options.loose):OA}toString(){return this.value}test(n){if(uo("Comparator.test",n,this.options.loose),this.semver===OA||n===OA)return!0;if("string"==typeof n)try{n=new $i(n,this.options)}catch{return!1}return Fk(n,this.operator,this.semver,this.options)}intersects(n,t){if(!(n instanceof mA))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new Om(n.value,t).test(this.value);if(""===n.operator)return""===n.value||new Om(this.value,t).test(n.semver);let e=!(">="!==this.operator&&">"!==this.operator||">="!==n.operator&&">"!==n.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==n.operator&&"<"!==n.operator),r=this.semver.version===n.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==n.operator&&"<="!==n.operator),a=Fk(this.semver,"<",n.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===n.operator||"<"===n.operator),s=Fk(this.semver,">",n.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===n.operator||">"===n.operator);return e||o||r&&i||a||s}},{re:Cee,t:wee}=bA,Om=class{constructor(n,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof Om)return n.loose===!!t.loose&&n.includePrerelease===!!t.includePrerelease?n:new Om(n.raw,t);if(n instanceof mA)return this.raw=n.value,this.set=[[n]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=n,this.set=n.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${n}`);this.format()}format(){return this.range=this.set.map(n=>n.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(n){let{loose:t}=this.options;n=(n=n.trim()).replace(t?Wa[Gi.HYPHENRANGELOOSE]:Wa[Gi.HYPHENRANGE],rWe(this.options.includePrerelease)),uo("hyphen replace",n),n=n.replace(Wa[Gi.COMPARATORTRIM],U6e),uo("comparator trim",n,Wa[Gi.COMPARATORTRIM]),n=(n=(n=n.replace(Wa[Gi.TILDETRIM],V6e)).replace(Wa[Gi.CARETTRIM],$6e)).split(/\s+/).join(" ");let o=t?Wa[Gi.COMPARATORLOOSE]:Wa[Gi.COMPARATOR];return n.split(" ").map(r=>G6e(r,this.options)).join(" ").split(/\s+/).map(r=>oWe(r,this.options)).filter(this.options.loose?r=>!!r.match(o):()=>!0).map(r=>new mA(r,this.options))}intersects(n,t){if(!(n instanceof Om))throw new TypeError("a Range is required");return this.set.some(e=>Pee(e,t)&&n.set.some(o=>Pee(o,t)&&e.every(r=>o.every(i=>r.intersects(i,t)))))}test(n){if(!n)return!1;if("string"==typeof n)try{n=new $i(n,this.options)}catch{return!1}for(let t=0;t{let e=!0,o=n.slice(),r=o.pop();for(;e&&o.length;)e=o.every(i=>r.intersects(i,t)),r=o.pop();return e},G6e=(n,t)=>(uo("comp",n,t),n=J6e(n,t),uo("caret",n),n=Z6e(n,t),uo("tildes",n),n=eWe(n,t),uo("xrange",n),n=nWe(n,t),uo("stars",n),n),us=n=>!n||"x"===n.toLowerCase()||"*"===n,Z6e=(n,t)=>n.trim().split(/\s+/).map(e=>K6e(e,t)).join(" "),K6e=(n,t)=>n.replace(t.loose?Wa[Gi.TILDELOOSE]:Wa[Gi.TILDE],(o,r,i,a,s)=>{let c;return uo("tilde",n,o,r,i,a,s),us(r)?c="":us(i)?c=`>=${r}.0.0 <${+r+1}.0.0-0`:us(a)?c=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:s?(uo("replaceTilde pr",s),c=`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`):c=`>=${r}.${i}.${a} <${r}.${+i+1}.0-0`,uo("tilde return",c),c}),J6e=(n,t)=>n.trim().split(/\s+/).map(e=>Q6e(e,t)).join(" "),Q6e=(n,t)=>{uo("caret",n,t);let o=t.includePrerelease?"-0":"";return n.replace(t.loose?Wa[Gi.CARETLOOSE]:Wa[Gi.CARET],(r,i,a,s,c)=>{let l;return uo("caret",n,r,i,a,s,c),us(i)?l="":us(a)?l=`>=${i}.0.0${o} <${+i+1}.0.0-0`:us(s)?l="0"===i?`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`:`>=${i}.${a}.0${o} <${+i+1}.0.0-0`:c?(uo("replaceCaret pr",c),l="0"===i?"0"===a?`>=${i}.${a}.${s}-${c} <${i}.${a}.${+s+1}-0`:`>=${i}.${a}.${s}-${c} <${i}.${+a+1}.0-0`:`>=${i}.${a}.${s}-${c} <${+i+1}.0.0-0`):(uo("no pr"),l="0"===i?"0"===a?`>=${i}.${a}.${s}${o} <${i}.${a}.${+s+1}-0`:`>=${i}.${a}.${s}${o} <${i}.${+a+1}.0-0`:`>=${i}.${a}.${s} <${+i+1}.0.0-0`),uo("caret return",l),l})},eWe=(n,t)=>(uo("replaceXRanges",n,t),n.split(/\s+/).map(e=>tWe(e,t)).join(" ")),tWe=(n,t)=>(n=n.trim()).replace(t.loose?Wa[Gi.XRANGELOOSE]:Wa[Gi.XRANGE],(o,r,i,a,s,c)=>{uo("xRange",n,o,r,i,a,s,c);let l=us(i),u=l||us(a),d=u||us(s);return"="===r&&d&&(r=""),c=t.includePrerelease?"-0":"",l?o=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(c="-0"),o=`${r+i}.${a}.${s}${c}`):u?o=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(o=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),uo("xRange return",o),o}),nWe=(n,t)=>(uo("replaceStars",n,t),n.trim().replace(Wa[Gi.STAR],"")),oWe=(n,t)=>(uo("replaceGTE0",n,t),n.trim().replace(Wa[t.includePrerelease?Gi.GTE0PRE:Gi.GTE0],"")),rWe=n=>(t,e,o,r,i,a,s,c,l,u,d,h,M)=>`${e=us(o)?"":us(r)?`>=${o}.0.0${n?"-0":""}`:us(i)?`>=${o}.${r}.0${n?"-0":""}`:a?`>=${e}`:`>=${e}${n?"-0":""}`} ${c=us(l)?"":us(u)?`<${+l+1}.0.0-0`:us(d)?`<${l}.${+u+1}.0-0`:h?`<=${l}.${u}.${d}-${h}`:n?`<${l}.${u}.${+d+1}-0`:`<=${c}`}`.trim(),iWe=(n,t,e)=>{for(let o=0;o0){let r=n[o].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},aWe=(n,t,e)=>{try{t=new Om(t,e)}catch{return!1}return t.test(n)},{MAX_LENGTH:sWe}=Bk,{re:xee,t:qee}=bA,{re:hx,t:Mx}=bA,pWe=(n,t)=>{if(n instanceof $i)return n;if("number"==typeof n&&(n=String(n)),"string"!=typeof n)return null;let e=null;if((t=t||{}).rtl){let o;for(;(o=hx[Mx.COERCERTL].exec(n))&&(!e||e.index+e[0].length!==n.length);)e&&o.index+o[0].length===e.index+e[0].length||(e=o),hx[Mx.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;hx[Mx.COERCERTL].lastIndex=-1}else e=n.match(hx[Mx.COERCE]);return null===e?null:((n,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),n instanceof $i)return n;if("string"!=typeof n||n.length>sWe||!(t.loose?xee[qee.LOOSE]:xee[qee.FULL]).test(n))return null;try{return new $i(n,t)}catch{return null}})(`${e[2]}.${e[3]||"0"}.${e[4]||"0"}`,t)};function uWe(n){return String.fromCharCode(parseInt(n.slice(1),16))}function dWe(n){return`%${`00${n.charCodeAt(0).toString(16)}`.slice(-2)}`}function Wee(n){return function fWe(n){return btoa(encodeURIComponent(n).replace(/%[0-9A-F]{2}/g,uWe))}(JSON.stringify(n))}function MWe(n){return JSON.parse(function hWe(n){return decodeURIComponent(Array.from(atob(n),dWe).join(""))}(n))}function Ed(n){return typeof n>"u"}function bx(n){return function bWe(n){return null===n}(n)||Ed(n)}function Yk(n){if(!n)return!0;for(let t in n)if(Object.hasOwnProperty.call(n,t))return!1;return!0}var gr={},_We={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},qM=class extends Error{constructor(n,t){super(`Magic SDK Error: [${n}] ${t}`),this.code=n,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,qM.prototype)}},gx=class extends Error{constructor(n){super(),this.__proto__=Error;let t=Number(n?.code);this.rawMessage=n?.message||"Internal error",this.code=function OWe(n){return!bx(n)&&"number"==typeof n&&Object.values(Ik).includes(n)}(t)?t:Ik.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=n?.data||void 0,Object.setPrototypeOf(this,gx.prototype)}},Ox=class{constructor(n,t){this.code=n,this.rawMessage=t,this.message=`Magic SDK Warning: [${n}] ${t}`}log(){console.warn(this.message)}},Lee=class extends Error{constructor(n,t,e,o){super(`Magic Extension Error (${n.name}): [${t}] ${e}`),this.code=t,this.rawMessage=e,this.data=o,this.__proto__=Error,Object.setPrototypeOf(this,Lee.prototype)}},Tee=class{constructor(n,t,e){this.code=t,this.rawMessage=e,this.message=`Magic Extension Warning (${n.name}): [${t}] ${e}`}log(){console.warn(this.message)}},LWe=function*WWe(){let n=0;for(;;)n(e=null!=n?h6e(m6e(n)):{},((n,t,e,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of O6e(t))!gee.call(n,r)&&undefined!==r&&dx(n,r,{get:()=>t[r],enumerable:!(o=b6e(t,r))||o.enumerable});return n})(n&&n.__esModule?e:dx(e,"default",{value:n,enumerable:!0}),n)))(w6e()),SWe=class extends RWe.default{};function kee(){let n=new SWe;return{emitter:n,createChainingEmitterMethod:(t,e)=>(...o)=>(n[t].apply(n,o),e),createBoundEmitterMethod:t=>(...e)=>n[t].apply(n,e)}}var Eee=Symbol("isPromiEvent");function DWe(n){return!!n[Eee]}function Nee(n){let t=Iee(n),{createBoundEmitterMethod:e,createChainingEmitterMethod:o}=kee(),r=Symbol("Promise.then"),i=Symbol("Promise.catch"),a=Symbol("Promise.finally"),s=(u,d)=>(...h)=>{let M=d[u].apply(d,h);return c(M)},c=u=>Object.assign(u,{[Eee]:!0,[r]:u[r]||u.then,[i]:u[i]||u.catch,[a]:u[a]||u.finally,then:s(r,u),catch:s(i,u),finally:s(a,u),on:o("on",u),once:o("once",u),addListener:o("addListener",u),off:o("off",u),removeListener:o("removeListener",u),removeAllListeners:o("removeAllListeners",u),emit:e("emit"),eventNames:e("eventNames"),listeners:e("listeners"),listenerCount:e("listenerCount")}),l=c(t.then(u=>(l.emit("done",u),l.emit("settled"),u),u=>{throw l.emit("error",u),l.emit("settled"),u}));return l}function Iee(n){return new Promise((t,e)=>{let o=n(t,e);Promise.resolve(o).catch(e)})}var _x,WM=class{constructor(n){this.sdk=n}get overlay(){return this.sdk.overlay}request(n){let t=this.overlay.post(ux.MAGIC_HANDLE_REQUEST,mx(n)),e=Nee((r,i)=>{t.then(a=>{if(o(),a.hasError)i(new gx(a.payload.error));else{if(!a.hasResult)throw function AWe(){return new qM(xM.MalformedResponse,"Response from the Magic iframe is malformed.")}();r(a.payload.result)}}).catch(a=>{o(),i(a)})}),o=this.overlay.on(bm.MAGIC_HANDLE_EVENT,r=>{var i;let{response:a}=r.data;if(a.id===n.id&&null!=(i=a.result)&&i.event){let{event:s,params:c=[]}=a.result;e.emit(s,...c)}});return e}createIntermediaryEvent(n,t){return e=>{let o=rr(xn.IntermediaryEvent,[{payloadId:t,eventType:n,args:e}]);this.request(o)}}},kWe=class extends WM{loginWithMagicLink(n){let{email:t,showUI:e=!0,redirectURI:o}=n,r=rr(this.sdk.testMode?xn.LoginWithMagicLinkTestMode:xn.LoginWithMagicLink,[{email:t,showUI:e,redirectURI:o}]);return this.request(r)}loginWithSMS(n){let{phoneNumber:t}=n,e=rr(this.sdk.testMode?xn.LoginWithSmsTestMode:xn.LoginWithSms,[{phoneNumber:t,showUI:!0}]);return this.request(e)}loginWithEmailOTP(n){let{email:t,showUI:e}=n,o=rr(this.sdk.testMode?xn.LoginWithEmailOTPTestMode:xn.LoginWithEmailOTP,[{email:t,showUI:e}]);if(!e){let r=this.request(o);return r&&r.on("otp-input-sent",i=>{this.createIntermediaryEvent("verify-email-otp",o.id)(i)}),r}return this.request(o)}loginWithCredential(n){let t=n??"";if(!n&&"web"===gr.platform){t=window.location.search;let o=window.location.origin+window.location.pathname;window.history.replaceState(null,"",o)}let e=rr(this.sdk.testMode?xn.LoginWithCredentialTestMode:xn.LoginWithCredential,[t]);return this.request(e)}},Bee={};function mf(n){return(...t)=>kd(this,null,function*(){return _x||(_x=yield gr.configureStorage()),yield _x.ready(),_x[n](...t)})}((n,t)=>{for(var e in t)dx(n,e,{get:t[e],enumerable:!0})})(Bee,{clear:()=>EWe,getItem:()=>_A,iterate:()=>FWe,key:()=>IWe,keys:()=>BWe,length:()=>NWe,removeItem:()=>Xk,setItem:()=>zx});var _A=mf("getItem"),zx=mf("setItem"),Xk=mf("removeItem"),EWe=mf("clear"),NWe=mf("length"),IWe=mf("key"),BWe=mf("keys"),FWe=mf("iterate");function YWe(){let n=window.crypto.getRandomValues(new Uint8Array(16));n[6]=15&n[6]|64,n[8]=191&n[8]|128;let t="";return t+=n[0].toString(16),t+=n[1].toString(16),t+=n[2].toString(16),t+=n[3].toString(16),t+="-",t+=n[4].toString(16),t+=n[5].toString(16),t+="-",t+=n[6].toString(16),t+=n[7].toString(16),t+="-",t+=n[8].toString(16),t+=n[9].toString(16),t+="-",t+=n[10].toString(16),t+=n[11].toString(16),t+=n[12].toString(16),t+=n[13].toString(16),t+=n[14].toString(16),t+=n[15].toString(16),t}var jk="STORE_KEY_PRIVATE_KEY",vx="STORE_KEY_PUBLIC_JWK",Uk="ECDSA",HWe={name:Uk,namedCurve:"P-256"},XWe={name:Uk,namedCurve:"P-256"};function Yee(){Xk(vx),Xk(jk)}function Hee(n){return Xee(function ZWe(n){return encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(t,e)=>String.fromCharCode(parseInt(e,16)))}(n))}function Xee(n){return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+/g,"")}var JWe=class extends WM{getIdToken(n){let t=rr(this.sdk.testMode?xn.GetIdTokenTestMode:xn.GetIdToken,[n]);return this.request(t)}generateIdToken(n){let t=rr(this.sdk.testMode?xn.GenerateIdTokenTestMode:xn.GenerateIdToken,[n]);return this.request(t)}getMetadata(){let n=rr(this.sdk.testMode?xn.GetMetadataTestMode:xn.GetMetadata);return this.request(n)}updateEmail(n){let{email:t,showUI:e=!0}=n,o=rr(this.sdk.testMode?xn.UpdateEmailTestMode:xn.UpdateEmail,[{email:t,showUI:e}]);return this.request(o)}isLoggedIn(){let n=rr(this.sdk.testMode?xn.IsLoggedInTestMode:xn.IsLoggedIn);return this.request(n)}logout(){Yee();let n=rr(this.sdk.testMode?xn.LogoutTestMode:xn.Logout);return this.request(n)}showSettings(){let n=rr(this.sdk.testMode?xn.UserSettingsTestMode:xn.UserSettings);return this.request(n)}updatePhoneNumber(){let n=rr(this.sdk.testMode?xn.UpdatePhoneNumberTestMode:xn.UpdatePhoneNumber);return this.request(n)}recoverAccount(n){let t=rr(this.sdk.testMode?xn.RecoverAccountTestMode:xn.RecoverAccount,[n]);return this.request(t)}},QWe=class extends WM{connectWithUI(){let n=rr(xn.RequestAccounts);return this.request(n)}showUI(){let n=rr(xn.ShowUI);return this.request(n)}getInfo(){let n=rr(xn.GetInfo);return this.request(n)}requestUserInfoWithUI(n){let t=rr(xn.RequestUserInfoWithUI,n?[n]:[]);return this.request(t)}disconnect(){Yee();let n=rr(xn.Disconnect);return this.request(n)}},{createBoundEmitterMethod:Ax,createChainingEmitterMethod:mm}=kee(),eLe=class extends WM{constructor(){super(...arguments),this.isMagic=!0,this.on=mm("on",this),this.once=mm("once",this),this.addListener=mm("addListener",this),this.off=mm("off",this),this.removeListener=mm("removeListener",this),this.removeAllListeners=mm("removeAllListeners",this),this.emit=Ax("emit"),this.eventNames=Ax("eventNames"),this.listeners=Ax("listeners"),this.listenerCount=Ax("listenerCount")}sendAsync(n,t){if(!t)throw function wWe(n){return new qM(xM.InvalidArgument,`Invalid ${(e=>{let o=e+1,r=o%10,i=o%100;return 1===r&&11!==i?`${o}st`:2===r&&12!==i?`${o}nd`:3===r&&13!==i?`${o}rd`:`${o}th`})(n.argument)} argument given to \`${n.procedure}\`.\n Expected: \`${n.expected}\`\n Received: \`${n.received}\``)}({procedure:"Magic.rpcProvider.sendAsync",argument:1,expected:"function",received:null===t?"null":typeof t});if(Array.isArray(n))this.overlay.post(ux.MAGIC_HANDLE_REQUEST,n.map(e=>{let o=mx(e);return this.prefixPayloadMethodForTestMode(o),o})).then(e=>{t(null,e.map(o=>((n,t)=>M6e(n,g6e(t)))(mee({},o.payload),{error:o.hasError?new gx(o.payload.error):null})))});else{let e=mx(n);this.prefixPayloadMethodForTestMode(e),this.overlay.post(ux.MAGIC_HANDLE_REQUEST,e).then(o=>{t(o.hasError?new gx(o.payload.error):null,o.payload)})}}send(n,t){if("string"==typeof n){let o=rr(n,Array.isArray(t)?t:[]);return this.request(o)}if(Array.isArray(n)||t)return void this.sendAsync(n,t);let e=function xWe(){return new Ox(px.SyncWeb3Method,"Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.")}();return e.log(),new Hk(n).applyError({code:-32603,message:e.rawMessage}).payload}enable(){let n=rr("eth_accounts");return this.request(n)}request(n){return this.prefixPayloadMethodForTestMode(n),super.request(n)}prefixPayloadMethodForTestMode(n){this.sdk.testMode&&(n.method=`testMode/eth/${n.method}`)}};function yx(n,t){return t?new URL(n,t):new URL(n)}var jee=["request","overlay","sdk"];function tLe(n){let t=Object.getPrototypeOf(n),e=[t];for(;t!==WM.prototype;)t=Object.getPrototypeOf(t),e.push(t);return e}var Uee=class extends WM{constructor(){super(void 0),this.__sdk_access_field_descriptors__=new Map,this.__is_initialized__=!1,this.utils={createPromiEvent:Nee,isPromiEvent:DWe,encodeJSON:Wee,decodeJSON:MWe,createJsonRpcRequestPayload:rr,standardizeJsonRpcRequestPayload:mx,storage:Bee};let n=[this,...tLe(this)];jee.forEach(t=>{let e=n.map(a=>Object.getOwnPropertyDescriptor(a,t)),o=e.findIndex(a=>!!a),i=e[o];i&&(this.__sdk_access_field_descriptors__.set(t,{descriptor:i,isPrototypeField:o>0}),Object.defineProperty(this,t,{configurable:!0,get:()=>{throw function yWe(n){return new qM(xM.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${n}\` can be accessed. Do not invoke \`Extension.${n}\` inside an extension constructor.`)}(t)}}))})}init(n){this.__is_initialized__||(jee.forEach(t=>{if(this.__sdk_access_field_descriptors__.has(t)){let{descriptor:e,isPrototypeField:o}=this.__sdk_access_field_descriptors__.get(t);o?delete this[t]:Object.defineProperty(this,t,e)}}),this.sdk=n,this.__is_initialized__=!0)}createDeprecationWarning(n){let{method:t,removalVersion:e,useInstead:o}=n;return new Tee(this,"DEPRECATION_NOTICE",`\`${t}\` will be removed from this Extension in version \`${e}\`.${o?` Use \`${o}\` instead.`:""}`)}createWarning(n,t){return new Tee(this,n,t)}createError(n,t,e){return new Lee(this,n,t,e)}},zA=class extends Uee{};zA.Internal=class extends Uee{},zA.Anonymous="anonymous extension";var oLe=class extends WM{purchase(n){let t=rr(xn.NFTPurchase,[n]);return this.request(t)}};function Vee(n){return!n.compat||null==n.compat[gr.sdkName]||("string"==typeof n.compat[gr.sdkName]?aWe(pWe(gr.version),n.compat[gr.sdkName]):!!n.compat[gr.sdkName])}function rLe(n){var t;let e=null!=(t=n?.extensions)?t:[],o={},r=[];if(Array.isArray(e)?e.forEach(i=>{Vee(i)?(i.init(this),(i.name||i.name!==zA.Anonymous)&&(this[i.name]=i),i instanceof zA.Internal&&(Yk(i.config)||(o[i.name]=i.config))):r.push(i)}):Object.keys(e).forEach(i=>{if(Vee(e[i])){e[i].init(this);let a=e[i];this[i]=a,a instanceof zA.Internal&&(Yk(a.config)||(o[e[i].name]=a.config))}else r.push(e[i])}),r.length)throw function CWe(n){let t=`Some extensions are incompatible with \`${gr.sdkName}@${gr.version}\`:`;return n.filter(e=>typeof e.compat<"u"&&null!==e.compat).forEach(e=>{let o=e.compat[gr.sdkName];"string"==typeof o?t+=`\n - Extension \`${e.name}\` supports version(s) \`${o}\``:o||(t+=`\n - Extension \`${e.name}\` does not support ${gr.platform} environments.`)}),new qM(xM.IncompatibleExtensions,t)}(r);return o}var Cx=class{constructor(n,t){var e;if(this.apiKey=n,!n)throw function zWe(){return new qM(xM.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}();"react-native"===gr.platform&&t?.endpoint&&function qWe(){return new Ox(px.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`